﻿/* === FONTS === */
@font-face {
  font-family: 'EditorialNew';
  src: url('PPEditorialNew-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'EditorialNew';
  src: url('PPEditorialNew-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Jost', -apple-system, sans-serif;
  background: #fffff1;
  color: #111;
  min-height: 100vh;
}

/* === VARIABLES === */
:root {
  --bg: #fffff1;
  --green: #12941c;
  --pink: #d95cbf;
  --yellow: #d6c742;
  --muted: #6B7280;
  --border: #e5e5d8;
  --card: #ffffff;
  --ari: #12941c;
  --tyler: #d95cbf;
  --gabrielle: #d6c742;
}

/* === LOCK SCREEN === */
#lock-screen {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.lock-box { text-align: center; color: #fffff1; width: 320px; }
.lock-logo {
  display: block;
  width: 340px; max-width: 85vw; height: auto;
  margin: 0 auto 4px;
}
.lock-sub {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  opacity: 0.45; margin-bottom: 48px;
}
#pw-input {
  display: block; width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(255,255,241,0.2);
  border-radius: 8px;
  background: rgba(255,255,241,0.07);
  color: #fffff1;
  font-family: 'Jost', sans-serif; font-size: 1rem;
  text-align: center; outline: none;
  margin-bottom: 12px; transition: border-color 0.2s;
}
#pw-input::placeholder { color: rgba(255,255,241,0.3); }
#pw-input:focus { border-color: #12941c; }
#pw-btn {
  display: block; width: 100%; padding: 14px;
  background: #12941c; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s;
}
#pw-btn:hover { opacity: 0.85; }
#pw-error { margin-top: 14px; font-size: 0.8rem; color: #d95cbf; display: none; }

/* === APP === */
#app { display: none; min-height: 100vh; background: var(--bg); }

/* === NAV === */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: #000; color: #fffff1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
}
.nav-logo {
  height: 26px; width: auto;
  display: block;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 15px; border-radius: 6px;
  color: rgba(255,255,241,0.5);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.15s; white-space: nowrap;
}
.nav-link:hover { color: #fffff1; background: rgba(255,255,241,0.1); }
.nav-link.active { color: #fffff1; background: rgba(255,255,241,0.15); }

/* === PAGES === */
.page { padding: 28px 20px; }
.page.hidden { display: none; }
.page-content { max-width: 920px; margin: 0 auto; }
.page-title {
  font-family: 'EditorialNew', serif;
  font-size: 2.2rem; font-weight: 900; margin-bottom: 4px;
}
.page-subtitle { color: var(--muted); font-size: 0.85rem; margin-bottom: 32px; }

/* === ARCADE COUNTER === */
.arcade-wrap {
  display: flex; justify-content: center;
  margin-bottom: 28px;
}
.arcade-screen {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.09) 3px, rgba(0,0,0,0.09) 4px
  ), #080808;
  border: 3px solid #12941c;
  border-radius: 12px;
  padding: 24px 56px;
  text-align: center;
  box-shadow: 0 0 32px rgba(18,148,28,0.35), inset 0 0 40px rgba(0,0,0,0.5);
  width: 100%; max-width: 520px;
}
.arcade-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; letter-spacing: 3px;
  color: rgba(18,148,28,0.6); text-transform: uppercase;
  margin-bottom: 12px;
}
.arcade-coins-row {
  font-size: 1.3rem; min-height: 32px; line-height: 1;
  letter-spacing: 3px; margin-bottom: 8px;
}
.arcade-score {
  font-family: 'Space Mono', monospace;
  font-size: 4.5rem; font-weight: 700;
  color: #12941c; line-height: 1;
  text-shadow: 0 0 20px rgba(18,148,28,0.9), 0 0 50px rgba(18,148,28,0.4);
  margin-bottom: 8px;
}
.arcade-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem; letter-spacing: 2px;
  color: rgba(18,148,28,0.5); text-transform: uppercase;
}

/* === PLAYER CARDS === */
.players-row {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.player-card {
  flex: 1; min-width: 160px; max-width: 220px;
  background: #090909;
  border: 2px solid #1c1c1c;
  border-radius: 10px;
  padding: 18px 12px; text-align: center;
}
.player-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem; letter-spacing: 2px;
  color: #3a3a3a; text-transform: uppercase; margin-bottom: 8px;
}
.player-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 14px;
}
.ari-color      { color: #12941c; text-shadow: 0 0 12px rgba(18,148,28,0.7); }
.tyler-color    { color: #d95cbf; text-shadow: 0 0 12px rgba(217,92,191,0.7); }
.gabrielle-color{ color: #d6c742; text-shadow: 0 0 12px rgba(214,199,66,0.7); }
.player-coins { font-size: 0.95rem; min-height: 22px; letter-spacing: 2px; margin-bottom: 8px; }
.player-score {
  font-family: 'Space Mono', monospace;
  font-size: 2.8rem; font-weight: 700; line-height: 1;
}
.player-unit {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem; letter-spacing: 2px;
  color: #3a3a3a; text-transform: uppercase; margin-top: 6px;
}

/* === CRM SECTIONS === */
.crm-section { margin-bottom: 36px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.crm-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.ari-bg      { background: #12941c; color: #fff; }
.tyler-bg    { background: #d95cbf; color: #fff; }
.gabrielle-bg{ background: #d6c742; color: #000; }
.crm-section-header h2 {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.3px;
}
.add-btn {
  background: rgba(255,255,255,0.18);
  color: inherit;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 6px; padding: 6px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.gabrielle-bg .add-btn { border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.1); }
.add-btn:hover { background: rgba(255,255,255,0.32); }
.gabrielle-bg .add-btn:hover { background: rgba(0,0,0,0.18); }

/* === CRM TABLE === */
.crm-table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-top: none; overflow-x: auto;
  border-radius: 0 0 12px 12px;
}
.crm-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.crm-table th {
  background: #fafaf0; text-align: left;
  padding: 10px 14px; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #999; border-bottom: 1px solid var(--border);
  white-space: nowrap; font-family: 'Jost', sans-serif; font-weight: 700;
}
.crm-table td { padding: 12px 14px; border-bottom: 1px solid #f5f5e8; vertical-align: top; }
.crm-table tr:last-child td { border-bottom: none; }
.crm-table tbody tr { cursor: pointer; transition: background 0.1s; }
.crm-table tbody tr:hover { background: #fafaf0; }
.crm-table tbody tr.preorder-row { background: #f0fdf0; }
.crm-table tbody tr.preorder-row:hover { background: #e0f7e0; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); font-size: 0.875rem; }
.li-link { font-size: 0.7rem; color: #0077b5; text-decoration: none; font-weight: 600; font-family: 'Jost', sans-serif; }
.li-link:hover { text-decoration: underline; }

/* === STATUS BADGES === */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.7rem; font-weight: 700;
  white-space: nowrap; font-family: 'Jost', sans-serif;
}
.badge-not-contacted   { background: #f0f0e8; color: #888; }
.badge-reached-out     { background: #e8f0ff; color: #2255cc; }
.badge-responded       { background: #e8ffe8; color: #127022; }
.badge-in-conversation { background: #fff8e0; color: #8a6000; }
.badge-buying-intent   { background: #ffeee8; color: #c04000; }
.badge-preorder        { background: #12941c; color: #fff; }

/* === CALENDAR / GANTT === */
.cal-month { margin-bottom: 40px; }
.cal-month-title {
  font-family: 'EditorialNew', serif;
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid #000;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.cal-header-cell {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem; letter-spacing: 1px; text-transform: uppercase;
  text-align: center; padding: 9px 4px;
  background: #000; color: #fffff1;
}
.cal-header-cell.cal-header-weekend { color: rgba(255,255,241,0.28); }
.cal-cell {
  min-height: 96px; padding: 6px;
  background: #fffff1;
  cursor: pointer; transition: background 0.1s;
}
.cal-cell:hover { background: #f5f5e0; }
.cal-cell.cal-weekend:hover { background: #e8e8d8; }
.cal-cell.cal-today:hover { background: #d4f7d4; }
.cal-cell.cal-weekend { background: #f0f0e4; }
.cal-cell.cal-other-month { background: #f5f5ec; opacity: 0.55; }
.cal-cell.cal-today { background: #e6ffe6; box-shadow: inset 0 0 0 2px #12941c; }
.cal-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; font-weight: 700; color: #333; margin-bottom: 4px;
}
.cal-cell.cal-weekend .cal-date { color: #bbb; }
.cal-cell.cal-other-month .cal-date { color: #ccc; }
.cal-cell.cal-today .cal-date { color: #12941c; }
.cal-interns { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 3px; }
.cal-intern-dot {
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.52rem; font-weight: 700; font-family: 'Jost', sans-serif;
}
.ari-dot       { background: #12941c; color: #fff; }
.tyler-dot     { background: #d95cbf; color: #fff; }
.gabrielle-dot { background: #d6c742; color: #000; }
.cal-event {
  font-size: 0.6rem; padding: 2px 5px;
  border-radius: 3px; margin-bottom: 2px;
  line-height: 1.2; font-family: 'Jost', sans-serif; font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ev-all   { background: #2d3748; color: #fffff1; }
.ev-ari   { background: #12941c; color: #fff; }
.ev-tamid { background: linear-gradient(to right, #d95cbf 50%, #d6c742 50%); color: #fff; text-shadow: 0 0 3px rgba(0,0,0,0.55); }

/* === DAY EVENT MODAL UI === */
.day-events-empty { font-size: 0.75rem; color: #aaa; margin-bottom: 6px; }
.day-event-item { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.day-event-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.day-event-name { flex: 1; font-size: 0.82rem; }
.day-event-del { background: none; border: none; color: #aaa; font-size: 1rem; cursor: pointer; padding: 0 2px; line-height: 1; }
.day-event-del:hover { color: #e53e3e; }
.day-event-add-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.day-input { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 0.82rem; font-family: inherit; }
.event-color-picker { display: flex; gap: 5px; flex-shrink: 0; }
.ev-color-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.1s; }
.ev-color-swatch:hover { transform: scale(1.2); }
.ev-color-swatch.selected { border-color: #222; transform: scale(1.15); }
.btn-sm { background: var(--green); color: #fff; border: none; border-radius: 6px; padding: 5px 10px; font-size: 0.8rem; font-family: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* === SCHEDULE LAYOUT === */
.schedule-layout {
  display: flex; gap: 28px; align-items: flex-start;
  max-width: 1200px; margin: 0 auto;
}
.schedule-main { flex: 1; min-width: 0; }
.schedule-sidebar {
  width: 156px; flex-shrink: 0;
  position: sticky; top: 72px;
}
.cal-legend-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 14px;
}
.legend-section-title {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #aaa; margin-bottom: 8px;
  font-family: 'Jost', sans-serif;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; margin-bottom: 7px;
  font-family: 'Jost', sans-serif; color: #333;
}
.legend-pip {
  display: inline-block; width: 12px; height: 10px;
  border-radius: 2px; flex-shrink: 0;
}
.legend-divider { border-top: 1px solid var(--border); margin: 12px 0 10px; }
.legend-note {
  font-size: 0.72rem; color: #999; line-height: 1.6;
  font-family: 'Jost', sans-serif;
}

/* === CALENDAR LOCATION TAG === */
.cal-location {
  font-size: 0.52rem; font-weight: 700; font-family: 'Jost', sans-serif;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: #f0e8ff; color: #5b21b6;
  padding: 1px 5px; border-radius: 3px;
  margin-bottom: 3px; display: inline-block;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  max-width: 100%;
}

/* === INTERN CHECKBOXES === */
.intern-checks { display: flex; flex-direction: column; gap: 9px; }
.intern-check {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Jost', sans-serif; font-size: 0.875rem;
  cursor: pointer; font-weight: 600;
}
.intern-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.ari-check      { color: #12941c; }
.tyler-check    { color: #d95cbf; }
.gabrielle-check{ color: #9a7b00; }

@media (max-width: 700px) {
  .schedule-layout { flex-direction: column-reverse; }
  .schedule-sidebar { width: 100%; position: static; }
  .cal-legend-box { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px; }
  .legend-divider { display: none; }
}

/* === PLAN PAGE === */
.brief-overview {
  background: #dee3f2; color: #111;
  border-radius: 12px; padding: 24px; margin-bottom: 28px;
}
.brief-overview h2 {
  font-family: 'EditorialNew', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
}
.brief-overview [data-plan-key] { margin-bottom: 20px; }
.brief-overview p { opacity: 0.82; line-height: 1.65; font-size: 0.88rem; margin-bottom: 10px; }
.brief-overview p:last-child { margin-bottom: 0; }
.brief-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.metric {
  background: rgba(0,0,0,0.07); border-radius: 8px;
  padding: 10px 16px; font-size: 0.78rem;
  flex: 1; min-width: 130px;
}
.metric strong { display: block; font-size: 0.85rem; margin-bottom: 2px; color: #111; }

.brief-cards { display: flex; flex-direction: column; gap: 20px; }
.brief-card { background: var(--card); border-radius: 12px; border: 2px solid var(--border); overflow: hidden; }
.ari-card { border-color: #12941c; }
.tyler-card { border-color: #d95cbf; }
.gabrielle-card { border-color: #d6c742; }
.brief-card-header {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
}
.brief-card-header.ari-bg { background: #12941c; color: #fff; }
.brief-card-header.tyler-bg { background: #d95cbf; color: #fff; }
.brief-card-header.gabrielle-bg { background: #d6c742; color: #000; }
.brief-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EditorialNew', serif;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
  background: rgba(255,255,255,0.2);
}
.gabrielle-bg .brief-avatar { background: rgba(0,0,0,0.1); }
.brief-name { font-weight: 700; font-size: 1rem; }
.brief-role { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }
.player-badge {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 4px 9px; border-radius: 4px; letter-spacing: 1px;
}
.gabrielle-bg .player-badge { background: rgba(0,0,0,0.1); color: #000; }
.brief-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.brief-section strong {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1px; color: #999; margin-bottom: 6px;
  font-family: 'Jost', sans-serif; font-weight: 700;
}
.brief-section p, .brief-section li { font-size: 0.875rem; line-height: 1.55; color: #333; }
.brief-section ul { padding-left: 18px; }
.brief-section li { margin-bottom: 4px; }
.brief-section.outcomes { background: #f0fff0; border-radius: 8px; padding: 12px 16px; }
.brief-section.outcomes strong { color: #12941c; }
.brief-section.edge { background: #fafaf0; border-radius: 8px; padding: 12px 16px; border-left: 3px solid #12941c; }

/* === OUTREACH BAR === */
.outreach-bar {
  display: flex; align-items: center; gap: 0;
  background: #f7f7ee; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 16px 24px;
  margin-bottom: 28px; flex-wrap: wrap; gap: 0;
}
.outreach-col {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 24px 8px 0;
}
.outreach-col:last-child { padding-right: 0; }
.outreach-divider {
  width: 1px; background: var(--border);
  align-self: stretch; margin: 0 24px 0 0; flex-shrink: 0;
}
.outreach-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #aaa; font-family: 'Jost', sans-serif;
}
.outreach-email-addr {
  font-size: 1rem; font-family: 'Jost', sans-serif;
  color: #12941c; font-weight: 700;
}
.outreach-sig-text {
  font-size: 0.85rem; font-family: 'Jost', sans-serif;
  color: #555; font-style: italic;
}
.outreach-note {
  font-size: 0.72rem; font-family: 'Jost', sans-serif;
  color: #aaa; margin-top: 1px;
}
@media (max-width: 600px) {
  .outreach-bar { flex-direction: column; align-items: flex-start; }
  .outreach-divider { width: 100%; height: 1px; margin: 8px 0; align-self: auto; }
  .outreach-col { padding: 0; }
}

/* === PLAN EDITING === */
.plan-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.plan-header .page-title { margin-bottom: 0; }
.plan-edit-btn {
  padding: 7px 16px; background: none;
  border: 1.5px solid var(--border); color: var(--muted);
  border-radius: 6px; font-family: 'Jost', sans-serif;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.15s; flex-shrink: 0;
}
.plan-edit-btn:hover { border-color: #555; color: #555; }
.plan-editing .plan-edit-btn {
  background: #12941c; color: #fff; border-color: #12941c;
}
.plan-editing [data-plan-key] {
  outline: 2px dashed rgba(18,148,28,0.4);
  border-radius: 6px; cursor: text;
  transition: outline-color 0.15s;
}
.plan-editing [data-plan-key]:focus,
.plan-editing [data-plan-key]:focus-within {
  outline: 2px solid #12941c;
}
.plan-editing .brief-overview [data-plan-key] {
  outline-color: rgba(0,0,0,0.2);
}
.plan-editing .brief-overview [data-plan-key]:focus,
.plan-editing .brief-overview [data-plan-key]:focus-within {
  outline-color: rgba(0,0,0,0.5);
}

/* === FUN PAGE === */
.fun-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fun-card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 20px; }
.fun-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #12941c; margin-bottom: 6px; }
.fun-title { font-family: 'EditorialNew', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.fun-desc { font-size: 0.875rem; color: #555; line-height: 1.5; }
.fun-loc { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--card); border-radius: 14px;
  width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff;
  border-radius: 14px 14px 0 0;
}
.modal-header h3 { font-family: 'EditorialNew', serif; font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 1rem; cursor: pointer;
  color: var(--muted); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.15s;
}
.modal-close:hover { background: #f5f5e8; }
#entry-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.72rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.875rem; font-family: 'Jost', sans-serif; color: #111;
  background: #fff; outline: none; transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #12941c; }
.form-group textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.btn-save {
  background: #12941c; color: #fff; border: none; border-radius: 7px;
  padding: 10px 28px; font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s;
}
.btn-save:hover { opacity: 0.85; }
.btn-delete {
  background: none; color: #EF4444; border: 1.5px solid #EF4444;
  border-radius: 7px; padding: 10px 16px;
  font-family: 'Jost', sans-serif; font-size: 0.875rem;
  cursor: pointer; transition: background 0.15s;
}
.btn-delete:hover { background: #FEF2F2; }
.btn-delete.hidden { display: none; }

/* === COIN BURST === */
.coin-burst {
  position: fixed; font-size: 3.5rem;
  pointer-events: none; z-index: 9999;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes coinBurst {
  0%   { transform: translate(-50%, -50%) scale(0.4) rotate(-10deg); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -350%) scale(2.5) rotate(15deg); opacity: 0; }
}

/* === CRM TABS === */
.crm-tabs-wrap {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 36px;
}
.crm-tabs {
  display: flex; align-items: center;
  background: #000; padding: 0 12px; gap: 2px; overflow-x: auto;
  border-radius: 12px 12px 0 0;
}
.crm-tab {
  padding: 13px 18px; background: none; border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,241,0.4);
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.crm-tab:hover { color: #fffff1; }
.crm-tab[data-intern="Ari"].active      { color: #fffff1; border-bottom-color: #12941c; }
.crm-tab[data-intern="Tyler"].active    { color: #fffff1; border-bottom-color: #d95cbf; }
.crm-tab[data-intern="Gabrielle"].active{ color: #fffff1; border-bottom-color: #d6c742; }
.crm-tab[data-intern="Naama"].active    { color: #fffff1; border-bottom-color: #fffff1; }
.crm-tab-actions {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-shrink: 0; padding: 4px 0;
}
.crm-action-btn {
  padding: 6px 12px;
  background: rgba(255,255,241,0.08);
  color: rgba(255,255,241,0.6);
  border: 1px solid rgba(255,255,241,0.18);
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.crm-action-btn:hover { background: rgba(255,255,241,0.16); color: #fffff1; }
.crm-add-btn {
  padding: 8px 16px; background: #12941c; color: #fff;
  border: none; border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.crm-add-btn:hover { opacity: 0.85; }
.crm-panel {
  background: #fff; overflow-x: auto;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 12px 12px;
}
.crm-panel.hidden { display: none; }

/* === NAAMA PLAYER === */
.naama-card { border-color: #fffff1; }
.naama-color { color: #fffff1; text-shadow: 0 0 12px rgba(255,255,241,0.5); }

/* === EXTRA BADGE STYLES === */
.badge-scheduling { background: #ede8ff; color: #5b21b6; }
.badge-pending     { background: #fff4e0; color: #9a5000; }
.badge-no-samples  { background: #ffe8e8; color: #b91c1c; }
.meal-tag {
  display: inline-block; font-size: 0.65rem;
  background: rgba(255,255,255,0.22); border-radius: 3px;
  padding: 0 5px; margin-left: 4px; vertical-align: middle;
}

/* === CRM DRAG === */
tr[draggable="true"] { cursor: grab; }
tr[draggable="true"]:active { cursor: grabbing; }
tr.dragging { opacity: 0.35; }
tr.drag-over { box-shadow: inset 0 2px 0 var(--green); }

/* === FUN PAGE === */
.fun-section { margin-bottom: 36px; }
.fun-cat-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.fun-cat-icon { font-size: 1.1rem; }
.fun-cat-name { font-family: 'EditorialNew', serif; font-size: 1.15rem; font-weight: 900; }
.fun-list { display: flex; flex-direction: column; }
.fun-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.fun-item:last-child { border-bottom: none; }
.fun-tip {
  background: #f7f7ec; border-radius: 8px;
  padding: 9px 14px; border-bottom: none; margin-bottom: 4px;
}
.fun-tip-icon { font-size: 0.95rem; flex-shrink: 0; }
.fun-item-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fun-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fun-item-name { font-weight: 600; font-size: 0.93rem; }
.fun-item-desc { color: var(--muted); font-size: 0.79rem; }
.fun-map-link {
  color: var(--green); font-size: 0.8rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.fun-map-link:hover { text-decoration: underline; }
.fun-custom-badge {
  font-size: 0.7rem; color: #a08c00; font-weight: 700;
  background: rgba(214,199,66,0.18); border-radius: 4px; padding: 1px 5px;
}
.fun-add-row { margin-top: 24px; text-align: center; }
.fun-add-btn {
  background: none; border: 2px solid var(--border);
  border-radius: 8px; padding: 10px 28px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: border-color 0.15s, color 0.15s;
}
.fun-add-btn:hover { border-color: #111; color: #111; }

/* === UTILS === */
.hidden { display: none !important; }

/* === MOBILE === */
@media (max-width: 600px) {
  #navbar { padding: 0 14px; height: 50px; }
  .nav-brand { font-size: 1rem; }
  .nav-link { padding: 5px 9px; font-size: 0.72rem; }

  .page { padding: 18px 12px; }
  .page-title { font-size: 1.7rem; }

  .arcade-screen { padding: 18px 20px; }
  .arcade-score { font-size: 3.2rem; }

  .players-row { gap: 10px; }
  .player-card { min-width: 90px; padding: 14px 8px; }
  .player-name { font-size: 0.75rem; letter-spacing: 1px; }
  .player-score { font-size: 2rem; }

  .crm-section-header { padding: 12px 14px; }
  .crm-table { font-size: 0.78rem; }
  .crm-table th, .crm-table td { padding: 9px 10px; }

  .cal-grid { font-size: 0.7rem; }
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-date { font-size: 0.6rem; }
  .cal-event { font-size: 0.52rem; padding: 1px 3px; }
  .cal-intern-dot { width: 11px; height: 11px; font-size: 0.44rem; }
  .cal-header-cell { font-size: 0.5rem; padding: 6px 2px; }

  .brief-body { padding: 16px; }
  .brief-metrics { flex-direction: column; }
  #entry-form { padding: 16px; }
  .modal-header { padding: 16px; }
}
