/* ═══════════════════════════════════════════════
   QWP CLIENT PORTAL — portal.css
   Copied verbatim from design reference
═══════════════════════════════════════════════ */

:root {
  --platinum:   #F2F5F5;
  --plat-2:     #E8ECEC;
  --plat-3:     #D8DEDE;
  --charcoal:   #0A0A0A;
  --char-2:     #141414;
  --char-3:     #1E1E1E;
  --teal:       #00FFC4;
  --darkGreen:  #05403E;
  --green-mid:  #0A6B67;
  --warm-white: #FAFBFB;
  --white:      #FFFFFF;

  /* Text — high contrast everywhere */
  --t-strong:   #0F0F0F;
  --t-body:     #2A2A2A;
  --t-mid:      #4A4A4A;
  --t-soft:     #6B6B6B;
  --t-xsoft:    #909090;

  /* Sidebar text */
  --s-strong:   #F2F5F5;
  --s-mid:      rgba(242,245,245,0.75);
  --s-soft:     rgba(242,245,245,0.45);
  --s-xsoft:    rgba(242,245,245,0.25);

  --border:     rgba(0,0,0,0.07);
  --border-mid: rgba(0,0,0,0.12);
  --border-str: rgba(0,0,0,0.18);

  --sidebar-w:  268px;
  --radius-card: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--t-body);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--plat-2); }
::-webkit-scrollbar-thumb { background: var(--plat-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--darkGreen); }

/* ───────────────── SIDEBAR ───────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 34px 26px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--s-strong);
  line-height: 1;
}
.logo-mark span { color: var(--teal); }

.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s-soft);
  margin-top: 7px;
}

/* Client identity block */
.sidebar-client {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.client-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s-soft);
  margin-bottom: 8px;
}

.client-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--s-strong);
  margin-bottom: 5px;
}

.client-brand {
  font-size: 12px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.live-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--s-soft);
  padding: 14px 12px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--s-mid);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--s-strong);
  background: rgba(242,245,245,0.06);
}

.nav-item.active {
  color: var(--teal);
  background: rgba(0,255,196,0.07);
  border-color: rgba(0,255,196,0.14);
}

.nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.18s;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-pill {
  margin-left: auto;
  background: var(--teal);
  color: var(--charcoal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--s-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 7px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.sidebar-footer button:hover { color: var(--s-strong); }

/* ───────────────── MAIN ───────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: 66px;
  background: var(--white);
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.greeting {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--t-strong);
}
.greeting em { color: var(--darkGreen); font-style: italic; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--t-mid);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.18s;
  position: relative;
}
.icon-btn:hover { border-color: var(--darkGreen); color: var(--darkGreen); }

.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  border: 1.5px solid var(--white);
  box-shadow: 0 0 6px var(--teal);
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--darkGreen);
  color: var(--teal);
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ───────────────── PAGE ───────────────── */
.page { padding: 44px 48px; flex: 1; position: relative; }

/* QWP watermark */
.page::before {
  content: 'QWP.';
  position: fixed;
  bottom: -80px;
  right: -60px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(240px, 30vw, 460px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(170,175,175,0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  line-height: 1;
}

/* Section scaffold */
.section { margin-bottom: 48px; position: relative; z-index: 1; }
.welcome-banner { position: relative; z-index: 1; }
.bottom-row { position: relative; z-index: 1; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--darkGreen);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 16px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--t-strong);
  line-height: 1.15;
}

.see-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--darkGreen);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(5,64,62,0.35);
  padding-bottom: 1px;
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.see-all:hover { opacity: 0.65; }

/* ───────────────── WELCOME BANNER ───────────────── */
.welcome-banner {
  background: var(--charcoal);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.wb-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: var(--darkGreen);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}

.wb-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--darkGreen), var(--teal) 50%, var(--darkGreen));
}

.wb-left { position: relative; z-index: 1; }

.wb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,196,0.1);
  border: 1px solid rgba(0,255,196,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.wb-heading {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--s-strong);
  line-height: 1.2;
  margin-bottom: 12px;
}
.wb-heading em { color: var(--teal); font-style: italic; }

.wb-sub {
  font-size: 14px;
  color: var(--s-mid);
  line-height: 1.75;
  max-width: 500px;
  font-weight: 400;
}

.wb-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.wb-week-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s-soft);
  text-align: right;
}

.wb-week-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 400;
  color: rgba(242,245,245,0.07);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: right;
  margin-top: 4px;
}

.wb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--charcoal);
  padding: 13px 24px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.wb-cta:hover { background: var(--s-strong); box-shadow: 0 4px 20px rgba(0,255,196,0.25); }

/* ───────────────── ACTION NEEDED ───────────────── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.action-card {
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 12px 0 0 12px;
}

.action-card:hover {
  border-color: var(--darkGreen);
  box-shadow: 0 4px 20px rgba(5,64,62,0.1);
  transform: translateY(-1px);
}

.action-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,255,196,0.1);
  color: var(--darkGreen);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.action-body { flex: 1; }

.action-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--darkGreen);
  margin-bottom: 5px;
}

.action-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 4px;
  line-height: 1.35;
}

.action-sub {
  font-size: 12px;
  color: var(--t-soft);
  line-height: 1.5;
}

.action-arrow {
  color: var(--t-xsoft);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.18s, transform 0.18s;
}
.action-card:hover .action-arrow { color: var(--darkGreen); transform: translateX(3px); }

.action-empty {
  background: var(--white);
  border: 1.5px dashed var(--plat-3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--t-soft);
  font-size: 13px;
}
.action-empty i { font-size: 24px; color: var(--plat-3); margin-bottom: 10px; display: block; }

/* ───────────────── PROJECT CARDS ───────────────── */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
}

.project-card:hover {
  border-color: var(--darkGreen);
  box-shadow: 0 6px 28px rgba(5,64,62,0.1);
  transform: translateY(-3px);
}

.pc-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.pc-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}

.pc-type i { font-size: 10px; }

.pc-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pc-phase {
  font-size: 12px;
  color: var(--t-mid);
  font-weight: 500;
}

.pc-body { padding: 18px 24px; }

/* mini phase strip */
.mini-phases {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.mini-phase {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--plat-2);
  transition: background 0.3s;
}

.mini-phase.done { background: var(--darkGreen); opacity: 0.5; }
.mini-phase.active { background: linear-gradient(90deg, var(--darkGreen), var(--teal)); }

.pc-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pc-progress-label {
  font-size: 12px;
  color: var(--t-mid);
  font-weight: 500;
}

.pc-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--t-strong);
}

.pc-bar-track {
  height: 5px;
  background: var(--plat-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pc-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--darkGreen), var(--teal));
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.pc-badge.active  { background: rgba(0,255,196,0.12); color: var(--darkGreen); }
.pc-badge.review  { background: rgba(234,179,8,0.1);  color: #7A5D00; }
.pc-badge.queued  { background: var(--plat-2); color: var(--t-mid); }

.pc-arrow {
  font-size: 12px;
  color: var(--t-xsoft);
  transition: all 0.18s;
}
.project-card:hover .pc-arrow { color: var(--darkGreen); transform: translateX(4px); }

/* ───────────────── RECENT ACTIVITY ───────────────── */
.activity-list { display: flex; flex-direction: column; }

.act-row {
  display: flex;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.act-row:last-child { border-bottom: none; }

.act-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
  flex-shrink: 0;
}

.act-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.act-dot.green { background: var(--darkGreen); box-shadow: 0 0 6px rgba(5,64,62,0.35); }
.act-dot.grey  { background: var(--plat-3); }

.act-line {
  width: 1px; flex: 1; min-height: 24px;
  background: var(--border-mid);
  margin-top: 5px;
}

.act-content { flex: 1; }

.act-text {
  font-size: 13px;
  color: var(--t-body);
  line-height: 1.6;
  margin-bottom: 4px;
}
.act-text strong { color: var(--t-strong); font-weight: 600; }

.act-meta {
  font-size: 11px;
  color: var(--t-soft);
  display: flex; align-items: center; gap: 8px;
}

.act-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darkGreen);
  background: rgba(5,64,62,0.07);
  padding: 2px 7px;
  border-radius: 3px;
}

/* ───────────────── BOTTOM ROW ───────────────── */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

/* Card wrapper */
.card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.card-head-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--t-strong);
}

/* ───────────────── TEAM ───────────────── */
.team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s;
}
.team-row:last-child { border-bottom: none; }
.team-row:hover { background: var(--warm-white); }

.team-av {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.team-info { flex: 1; }
.team-name { font-size: 13px; font-weight: 600; color: var(--t-strong); margin-bottom: 2px; }
.team-role { font-size: 11px; color: var(--t-soft); }

.online  { width:8px; height:8px; border-radius:50%; background:#22C55E; box-shadow:0 0 6px rgba(34,197,94,.4); flex-shrink:0; }
.offline { width:8px; height:8px; border-radius:50%; background:var(--plat-3); flex-shrink:0; }

/* ───────────────── SUPPORT ───────────────── */
.support-card {
  background: var(--charcoal);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sc-glow {
  position: absolute;
  bottom: -50px; right: -50px;
  width: 180px; height: 180px;
  background: var(--darkGreen);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.sc-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.sc-icon {
  width: 50px; height: 50px;
  background: rgba(0,255,196,0.1);
  border: 1px solid rgba(0,255,196,0.2);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--teal);
  margin: 0 auto 16px;
  position: relative;
}

.sc-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--s-strong);
  margin-bottom: 8px;
  position: relative;
}

.sc-text {
  font-size: 12px;
  color: var(--s-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.sc-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--charcoal);
  border: none;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 10px;
}
.sc-btn:hover { background: var(--s-strong); }

.sc-link {
  font-size: 11px;
  color: var(--s-soft);
  cursor: pointer;
  background: none; border: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
  position: relative;
}
.sc-link:hover { color: var(--s-mid); }

/* ── APPOINTMENTS ── */
.appt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.appt-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s;
  cursor: pointer;
}

.appt-card:hover {
  border-color: var(--darkGreen);
  box-shadow: 0 4px 18px rgba(5,64,62,0.09);
  transform: translateY(-1px);
}

.appt-date-block {
  width: 52px;
  flex-shrink: 0;
  background: var(--darkGreen);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.appt-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}

.appt-day {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #F2F5F5;
  line-height: 1;
}

.appt-info { flex: 1; min-width: 0; }

.appt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 4px;
  line-height: 1.3;
}

.appt-meta {
  font-size: 11px;
  color: var(--t-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.appt-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--t-mid);
}

.appt-via {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5,64,62,0.07);
  color: var(--darkGreen);
  padding: 2px 7px;
  border-radius: 3px;
}

.appt-arrow {
  font-size: 12px;
  color: var(--t-xsoft);
  flex-shrink: 0;
  transition: all 0.18s;
}
.appt-card:hover .appt-arrow { color: var(--darkGreen); transform: translateX(3px); }

.appt-empty {
  background: var(--white);
  border: 1.5px dashed var(--plat-3);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--t-soft);
  font-size: 13px;
}

.appt-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: var(--darkGreen);
  color: #F2F5F5;
  padding: 10px 20px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.appt-book-btn:hover { background: var(--green-mid); }

/* ───────────────── ANIMATIONS ───────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fu  { animation: fadeUp 0.48s cubic-bezier(0.16,1,0.3,1) both; }
.d1  { animation-delay: 0.03s; }
.d2  { animation-delay: 0.08s; }
.d3  { animation-delay: 0.13s; }
.d4  { animation-delay: 0.18s; }
.d5  { animation-delay: 0.23s; }
.d6  { animation-delay: 0.30s; }

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 1100px) {
  .bottom-row { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .page { padding: 24px 20px; }
  .topbar { padding: 0 20px; }
  .welcome-banner { flex-direction: column; }
  .project-cards { grid-template-columns: 1fr; }
}

/* ───────────────── MOBILE NAV ───────────────── */
.mobile-topbar {
  display: none;
  height: 60px;
  background: var(--charcoal);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--s-strong);
}
.mobile-logo span { color: var(--teal); }

.mobile-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-icon-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--s-mid);
  cursor: pointer;
  font-size: 14px;
  position: relative;
  transition: all 0.18s;
}
.mobile-icon-btn:hover { border-color: var(--teal); color: var(--teal); }

.mobile-notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  box-shadow: 0 0 6px var(--teal);
}

.mobile-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--darkGreen);
  color: var(--teal);
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Bottom tab bar */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.18s;
  flex: 1;
  max-width: 80px;
  text-decoration: none;
  position: relative;
}

.tab-item:hover { background: rgba(255,255,255,0.04); }

.tab-icon {
  font-size: 18px;
  color: var(--s-soft);
  transition: color 0.18s;
  position: relative;
}

.tab-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--s-soft);
  transition: color 0.18s;
  white-space: nowrap;
}

.tab-item.active .tab-icon { color: var(--teal); }
.tab-item.active .tab-label { color: var(--teal); }

.tab-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  box-shadow: 0 0 5px var(--teal);
}

/* More drawer */
.more-drawer {
  display: none;
  position: fixed;
  bottom: 68px;
  left: 0; right: 0;
  background: var(--char-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 199;
  padding: 16px;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.more-drawer.open { transform: translateY(0); }

.drawer-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
}

.drawer-item:hover {
  background: rgba(0,255,196,0.06);
  border-color: rgba(0,255,196,0.15);
}

.drawer-item-icon {
  font-size: 20px;
  color: var(--s-mid);
}

.drawer-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--s-mid);
  text-align: center;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 198;
}
.drawer-overlay.open { display: block; }

@media (max-width: 768px) {
  .sidebar  { display: none !important; }
  .topbar   { display: none !important; }
  .main     { margin-left: 0; }
  .page     { padding: 20px 16px 88px; }

  .mobile-topbar { display: flex; }
  .bottom-nav    { display: block; }
  .more-drawer   { display: block; }

  .welcome-banner {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .wb-right { align-items: flex-start; flex-direction: row; align-items: center; gap: 16px; }
  .wb-week-num { font-size: 40px; }
  .wb-cta { width: 100%; justify-content: center; }

  .stats-grid,
  .project-cards,
  .appt-grid,
  .action-grid { grid-template-columns: 1fr; }

  .bottom-row { grid-template-columns: 1fr; }

  .section-title { font-size: 20px; }
  .wb-heading { font-size: 24px; }
}

/* ───────────────── DEMO WATERMARK ───────────────── */
.demo-watermark {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

/* ───────────────── PORTAL SHELL ───────────────── */
.portal-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ───────────────── PAGE HEADER ───────────────── */
.page-header {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.page-header .eyebrow {
  margin-bottom: 6px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--t-strong);
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 14px;
  color: var(--t-soft);
  line-height: 1.7;
  max-width: 560px;
}

/* ───────────────── DELIVERABLES ───────────────── */
.deliverable-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
}
.deliverable-row:last-child { border-bottom: none; }
.deliverable-row:hover { background: var(--warm-white); }

.deliverable-row.needs-review::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
}

.deliv-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.deliv-icon.brand  { background: rgba(0,255,196,0.1); color: var(--darkGreen); }
.deliv-icon.logo   { background: rgba(0,255,196,0.1); color: var(--darkGreen); }
.deliv-icon.strategy { background: rgba(10,107,103,0.1); color: var(--green-mid); }
.deliv-icon.default { background: var(--plat-2); color: var(--t-mid); }

.deliv-info { flex: 1; }
.deliv-title { font-size: 14px; font-weight: 600; color: var(--t-strong); margin-bottom: 3px; }
.deliv-meta { font-size: 11px; color: var(--t-soft); display: flex; align-items: center; gap: 8px; }

.deliv-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

.deliv-badge.delivered    { background: rgba(0,255,196,0.12); color: var(--darkGreen); }
.deliv-badge.approved     { background: rgba(34,197,94,0.1);  color: #166534; }
.deliv-badge.in_progress  { background: var(--plat-2); color: var(--t-mid); }
.deliv-badge.in-progress  { background: var(--plat-2); color: var(--t-mid); }

/* Deliverable actions */
.deliv-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-approve {
  padding: 7px 14px;
  background: var(--teal);
  color: var(--charcoal);
  border: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-approve:hover { background: var(--darkGreen); color: var(--teal); }

.btn-revise {
  padding: 7px 14px;
  background: transparent;
  color: var(--t-mid);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-revise:hover { border-color: var(--t-mid); color: var(--t-strong); }

/* ───────────────── MESSAGES ───────────────── */
.message-thread {
  display: flex;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
}
.message-thread:last-child { border-bottom: none; }
.message-thread:hover { background: var(--warm-white); }
.message-thread.unread { background: rgba(0,255,196,0.03); }

.msg-av {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--darkGreen);
  color: var(--teal);
}

.msg-info { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.msg-from { font-size: 13px; font-weight: 600; color: var(--t-strong); }
.msg-time { font-size: 11px; color: var(--t-xsoft); }
.msg-subject { font-size: 13px; font-weight: 500; color: var(--t-body); margin-bottom: 3px; }
.msg-preview { font-size: 12px; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-unread-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 6px var(--teal);
}

/* ───────────────── DOCUMENTS ───────────────── */
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--warm-white); }

.doc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(5,64,62,0.08);
  color: var(--darkGreen);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-info { flex: 1; }
.doc-title { font-size: 14px; font-weight: 600; color: var(--t-strong); margin-bottom: 3px; }
.doc-meta { font-size: 11px; color: var(--t-soft); }

/* ───────────────── TOAST ───────────────── */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--s-strong);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeUp 0.3s cubic-bezier(0.16,1,0.3,1) both;
  white-space: nowrap;
}

.toast i { color: var(--teal); font-size: 14px; }

/* ───────────────── PROJECT DETAIL ───────────────── */
.phase-list { display: flex; flex-direction: column; gap: 0; }

.phase-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.phase-item:last-child { border-bottom: none; }

.phase-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.phase-num.complete { background: var(--darkGreen); color: var(--teal); }
.phase-num.active   { background: rgba(0,255,196,0.15); color: var(--darkGreen); border: 1.5px solid var(--teal); }
.phase-num.queued   { background: var(--plat-2); color: var(--t-mid); }

.phase-name { font-size: 14px; font-weight: 500; color: var(--t-strong); flex: 1; }
.phase-name.queued-text { color: var(--t-soft); }

.phase-status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.phase-status-badge.complete { background: rgba(34,197,94,0.1); color: #166534; }
.phase-status-badge.active   { background: rgba(0,255,196,0.12); color: var(--darkGreen); }
.phase-status-badge.queued   { background: var(--plat-2); color: var(--t-mid); }

/* ───────────────── SCHEDULE & BILLING EXTRAS ───────────────── */
.booking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.booking-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s;
  cursor: default;
}

.booking-card:hover {
  border-color: var(--darkGreen);
  box-shadow: 0 4px 20px rgba(5,64,62,0.08);
}

.booking-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,255,196,0.1);
  color: var(--darkGreen);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.booking-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.booking-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--t-strong);
  line-height: 1.3;
}

.booking-desc {
  font-size: 13px;
  color: var(--t-soft);
  line-height: 1.6;
  flex: 1;
}

.booking-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--t-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--teal);
  color: var(--charcoal);
  border: none;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
}
.booking-cta:hover { background: var(--darkGreen); color: var(--teal); }

/* Billing */
.billing-summary-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 40px;
}

.billing-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.billing-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-soft);
  margin-bottom: 8px;
}

.billing-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--t-strong);
  line-height: 1;
}

.billing-stat-value.teal { color: var(--darkGreen); }

.billing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.payment-row:last-child { border-bottom: none; }
.payment-row.paid::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 3px 0 0 3px;
}

.payment-info { flex: 1; }
.payment-label { font-size: 14px; font-weight: 600; color: var(--t-strong); margin-bottom: 3px; }
.payment-sub { font-size: 12px; color: var(--t-soft); }

.payment-right { text-align: right; }
.payment-amount {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 4px;
}

.payment-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.payment-badge.paid     { background: rgba(34,197,94,0.1); color: #166534; }
.payment-badge.upcoming { background: rgba(234,179,8,0.1); color: #7A5D00; }

/* ───────────────── GATE PAGE ───────────────── */
.gate-body {
  width: 100%;
  flex: 1;
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.gate-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: var(--darkGreen);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  pointer-events: none;
}

.gate-glow-2 {
  position: absolute;
  bottom: -200px; left: -100px;
  width: 400px; height: 400px;
  background: var(--darkGreen);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.gate-card {
  background: var(--char-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--darkGreen), var(--teal) 50%, var(--darkGreen));
}

.gate-logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--s-strong);
  margin-bottom: 6px;
}
.gate-logo span { color: var(--teal); }

.gate-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--s-soft);
  margin-bottom: 36px;
}

.gate-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--s-strong);
  margin-bottom: 8px;
}

.gate-text {
  font-size: 13px;
  color: var(--s-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.gate-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--s-strong);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.gate-input::placeholder { color: var(--s-soft); }
.gate-input:focus { border-color: rgba(0,255,196,0.4); }

.gate-input-pw {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2em;
}

.gate-btn {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--charcoal);
  border: none;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.gate-btn:hover { background: var(--s-strong); }
.gate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.gate-error {
  font-size: 12px;
  color: #FF6B6B;
  margin-top: -4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

.nda-scroll {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 20px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--s-soft);
  line-height: 1.8;
}

.nda-scroll h3 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--s-strong);
  margin-bottom: 12px;
  text-align: center;
}

.nda-scroll p { margin-bottom: 12px; }
.nda-scroll strong { color: var(--s-mid); font-weight: 600; }

.nda-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.nda-checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all 0.2s;
}
.nda-checkbox:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.nda-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid var(--charcoal);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.nda-checkbox-label {
  font-size: 12px;
  color: var(--s-mid);
  line-height: 1.6;
  cursor: pointer;
}

/* ─── Tour Button Pulse ─────────────────────────────────────── */

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 30px rgba(0, 255, 196, 0.5); }
  50%       { box-shadow: 0 4px 50px rgba(0, 255, 196, 0.9); }
}

/* ─── Driver.js Tour Overrides ──────────────────────────────── */

.qwp-tour-popover.driver-popover {
  background: var(--char-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
  color: var(--warm-white) !important;
  padding: 22px 24px !important;
  min-width: 280px !important;
  max-width: 360px !important;
}

.qwp-tour-popover .driver-popover-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #fafbfb !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.qwp-tour-popover .driver-popover-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.58) !important;
  line-height: 1.7 !important;
}

.qwp-tour-popover .driver-popover-footer {
  margin-top: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.qwp-tour-popover .driver-popover-next-btn {
  background: var(--teal) !important;
  color: var(--charcoal) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  text-shadow: none !important;
}

.qwp-tour-popover .driver-popover-prev-btn,
.qwp-tour-popover .driver-popover-done-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  text-shadow: none !important;
}

.qwp-tour-popover .driver-popover-prev-btn:hover,
.qwp-tour-popover .driver-popover-done-btn:hover {
  color: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.qwp-tour-popover .driver-popover-next-btn:hover {
  opacity: 0.85 !important;
}

.qwp-tour-popover .driver-popover-close-btn {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  top: 14px !important;
  right: 14px !important;
}

.qwp-tour-popover .driver-popover-close-btn:hover {
  color: rgba(255, 255, 255, 0.6) !important;
}

.qwp-tour-popover.driver-popover-arrow-side-left .driver-popover-arrow {
  border-right-color: var(--char-2) !important;
}

.qwp-tour-popover.driver-popover-arrow-side-right .driver-popover-arrow {
  border-left-color: var(--char-2) !important;
}

.qwp-tour-popover.driver-popover-arrow-side-top .driver-popover-arrow {
  border-bottom-color: var(--char-2) !important;
}

.qwp-tour-popover.driver-popover-arrow-side-bottom .driver-popover-arrow {
  border-top-color: var(--char-2) !important;
}
