/* Cupid Counsel — CSS (hand-rolled, no framework) */
:root {
  --pink: #E85F7B;
  --pink-hover: #d64866;
  --navy: #160F18;
  --blush: #FFF3F5;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-600: #475569;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink); }
::selection { background: var(--pink); color: #fff; }

.cc-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.font-serif { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; }
.font-mono  { font-family: 'JetBrains Mono', monospace; }
.cc-caption { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); font-weight: 600; }

/* --- NAV --- */
.cc-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,95,123,.1);
}
.cc-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.cc-logo { display: inline-flex; align-items: center; gap: .5rem; }
.cc-logo .cc-heart {
  width: 36px; height: 36px; border-radius: 999px; background: var(--pink);
  display: inline-block; position: relative;
}
.cc-logo .cc-heart::after {
  content:"♥"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:16px;
}
.cc-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; }
.cc-logo-white .cc-brand { color: #fff; }
.cc-nav-links { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; }
@media (min-width: 768px) { .cc-nav-links { display: flex; } }
.cc-nav-cta { display: flex; gap: .75rem; }

/* --- BUTTONS --- */
.cc-btn-primary, .cc-btn-secondary, .cc-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: all .2s ease;
}
.cc-btn-primary  { background: var(--pink); color: #fff; }
.cc-btn-primary:hover { background: var(--pink-hover); color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(232,95,123,.5); }
.cc-btn-secondary { background: var(--navy); color: #fff; }
.cc-btn-secondary:hover { background: #2a1f2d; color: #fff; }
.cc-btn-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(22,15,24,.12); }
.cc-btn-ghost:hover { background: var(--navy); color: #fff; }

/* --- CARDS --- */
.cc-card {
  background: #fff; border: 1px solid rgba(22,15,24,.08);
  border-radius: 20px; padding: 1.5rem;
  transition: all .2s ease;
}
.cc-card:hover { border-color: rgba(232,95,123,.35); box-shadow: 0 12px 30px -12px rgba(22,15,24,.12); }
.cc-card-blush { background: var(--blush); border: 1px solid rgba(232,95,123,.2); border-radius: 20px; padding: 1.5rem; }
.cc-card-navy  { background: var(--navy); color: #fff; border-radius: 20px; padding: 2rem; }

/* --- INPUTS --- */
.cc-input, .cc-textarea, .cc-select {
  width: 100%; padding: .75rem 1rem;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 12px;
  color: var(--navy); font-size: .95rem; font-family: inherit;
  transition: all .2s;
}
.cc-input:focus, .cc-textarea:focus, .cc-select:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(232,95,123,.15);
}
.cc-label { font-size: .72rem; font-weight: 600; color: var(--slate-600); text-transform: uppercase; letter-spacing: .05em; }

/* --- BADGES --- */
.cc-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.cc-badge-pink    { background: rgba(232,95,123,.12); color: var(--pink); }
.cc-badge-navy    { background: rgba(22,15,24,.08); color: var(--navy); }
.cc-badge-success { background: rgba(16,185,129,.12); color: #10B981; }

/* --- ALERTS --- */
.cc-alert { padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1rem; }
.cc-alert-err { background: #FEE2E2; color: #991B1B; }
.cc-alert-ok  { background: #D1FAE5; color: #065F46; }

/* --- HERO --- */
.cc-hero {
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(232,95,123,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(22,15,24,.05), transparent 60%),
    var(--blush);
  padding: 5rem 0;
}
.cc-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .cc-hero-grid { grid-template-columns: 7fr 5fr; padding: 2rem 0; } }
.cc-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; margin: .75rem 0;
  font-weight: 700;
}
.cc-hero h1 span { color: var(--pink); }
.cc-hero p { color: var(--slate-600); max-width: 560px; font-size: 1.05rem; line-height: 1.6; }
.cc-hero-image {
  border-radius: 32px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22,15,24,.3);
  border: 1px solid rgba(232,95,123,.2);
  position: relative;
}
.cc-hero-image img { width: 100%; height: 520px; object-fit: cover; display: block; }
.cc-hero-caption {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: var(--blush); border: 1px solid rgba(232,95,123,.2);
  padding: 1rem 1.25rem; border-radius: 16px;
}

/* --- SECTIONS --- */
.cc-section { padding: 5rem 0; }
.cc-section-blush { background: rgba(255,243,245,.5); }
.cc-section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.cc-section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin: .5rem 0;
}
.cc-grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cc-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.cc-grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cc-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.cc-grid-4 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .cc-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --- PLAN CARDS --- */
.cc-plan { position: relative; }
.cc-plan.featured { box-shadow: 0 20px 60px -20px rgba(232,95,123,.4); outline: 2px solid var(--pink); }
.cc-plan .cc-badge { position: absolute; top: -.75rem; left: 1.5rem; background: var(--pink); color:#fff; }
.cc-plan h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; margin: 0 0 .5rem; }
.cc-plan-price { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; }
.cc-plan-price small { font-size: .875rem; font-weight: 400; color: var(--slate-400); }

/* --- DASHBOARD LAYOUT --- */
.cc-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .cc-shell { grid-template-columns: 1fr; } }
.cc-sidebar { background: var(--navy); color: #fff; padding: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.cc-side-nav { display: flex; flex-direction: column; gap: .25rem; margin-top: 2rem; }
.cc-side-nav a {
  color: rgba(255,255,255,.7); padding: .625rem 1rem; border-radius: 12px;
  font-size: .9rem; transition: all .15s;
}
.cc-side-nav a:hover, .cc-side-nav a.active { color: #fff; background: rgba(232,95,123,.16); }
.cc-side-user { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.cc-side-caption { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.cc-side-name { font-size: .9rem; color: #fff; margin-top: .25rem; }
.cc-side-email { font-size: .75rem; color: rgba(255,255,255,.5); }
.cc-side-logout { display: inline-block; margin-top: 1rem; color: rgba(255,255,255,.7); font-size: .85rem; }
.cc-side-logout:hover { color: #fff; }
.cc-main { padding: 2rem; background: var(--slate-50); }

/* --- CHAT --- */
.cc-chat-panel { display: flex; flex-direction: column; height: calc(100vh - 4rem); border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid rgba(22,15,24,.08); }
.cc-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--slate-100); }
.cc-chat-scroll { flex: 1; overflow-y: auto; padding: 1.5rem; background: rgba(255,243,245,.3); }
.cc-msg-row { display: flex; margin-bottom: .75rem; }
.cc-msg-row-me { justify-content: flex-end; }
.cc-bubble { max-width: 70%; padding: .85rem 1rem; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.cc-bubble-me { background: var(--blush); border: 1px solid rgba(232,95,123,.2); border-bottom-right-radius: 4px; }
.cc-bubble-them { background: var(--navy); color: #fff; border-bottom-left-radius: 4px; }
.cc-bubble time { font-size: .68rem; opacity: .6; display: block; margin-top: .35rem; }
.cc-chat-composer { display: flex; gap: .5rem; padding: 1rem; border-top: 1px solid var(--slate-100); }
.cc-chat-locked { background: var(--navy); color: #fff; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* --- TABLES --- */
.cc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cc-table thead th { background: var(--blush); text-align: left; padding: .75rem 1rem; font-weight: 600; }
.cc-table tbody td { padding: .75rem 1rem; border-top: 1px solid var(--slate-100); }
.cc-table-card { background:#fff; border:1px solid rgba(22,15,24,.08); border-radius:16px; overflow:hidden; }

/* --- FOOTER --- */
.cc-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 6rem; }
.cc-footer-grid { padding: 4rem 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .cc-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.cc-footer-blurb { max-width: 460px; color: rgba(255,255,255,.6); font-size: .9rem; }
.cc-footer-small { color: rgba(255,255,255,.5); font-size: .75rem; margin-top: 1.5rem; }
.cc-footer ul { list-style: none; padding: 0; }
.cc-footer li { margin: .35rem 0; }
.cc-footer .cc-caption { color: var(--pink); }
.cc-footer a { color: rgba(255,255,255,.75); font-size: .9rem; }
.cc-footer a:hover { color: #fff; }
.cc-footer-baseline { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.4); }

/* --- FAQ --- */
details.cc-faq { background: #fff; border: 1px solid rgba(22,15,24,.08); border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
details.cc-faq summary { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; cursor: pointer; list-style: none; }
details.cc-faq[open] summary { color: var(--pink); }
details.cc-faq p { color: var(--slate-600); margin-top: .5rem; font-size: .95rem; line-height: 1.6; }

/* --- CENTERED FORMS --- */
.cc-auth-shell { padding: 4rem 1.5rem; max-width: 480px; margin: 0 auto; }
.cc-auth-shell h1 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; text-align: center; }

/* --- KPI CARD --- */
.cc-kpi .cc-caption { font-size: .68rem; }
.cc-kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 700; margin-top: .5rem; }

/* --- UTILITIES --- */
.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}
.text-center{text-align:center}
.flex{display:flex}.between{justify-content:space-between}.items-center{align-items:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}
.w-full{width:100%}.justify-center{justify-content:center}
.text-sm{font-size:.875rem}.text-xs{font-size:.75rem}
.text-slate{color:var(--slate-600)}
.hidden{display:none}
