@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── VARS ───────────────────────────────────────────────────── */
:root {
  --accent:  #7c3aed;
  --accent2: #4f1aad;
  --accent3: #a855f7;
  --pink:    #f43f5e;
  --teal:    #10b981;
  --amber:   #f59e0b;
  --red:     #ef4444;
  --surface:  #111118;
  --surface2: #18181f;
  --surface3: #1f1f2a;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.13);
  --text:     #ede9ff;
  --muted:    rgba(237,233,255,.48);
  --muted2:   rgba(237,233,255,.22);
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r: 14px;
  --rl: 22px;
  --rxl: 28px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #07070d; color: var(--text); font-family: var(--fb); font-size: 15px; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--fh); line-height: 1.1; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.5rem; border-radius: 100px;
  font-family: var(--fb); font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .18s; text-decoration: none;
  border: none; white-space: nowrap; letter-spacing: .01em;
}
.btn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; box-shadow: 0 4px 24px rgba(124,58,237,.38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.52); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-teal { background: rgba(16,185,129,.12); color: var(--teal); border: 1px solid rgba(16,185,129,.28); }
.btn-danger { background: rgba(239,68,68,.12); color: var(--red); border: 1px solid rgba(239,68,68,.28); }
.btn-amber { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.28); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .32rem .85rem; font-size: .76rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.75rem; }

/* ── FORM FIELDS ────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); padding: .7rem 1rem; color: var(--text);
  font-family: var(--fb); font-size: .9rem; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted2); }
.field select option { background: var(--surface2); }
.field textarea { resize: vertical; min-height: 90px; }
.field-error { font-size: .75rem; color: var(--red); margin-top: .3rem; display: none; }
.field-error.show { display: block; }

/* ── TAGS ───────────────────────────────────────────────────── */
.tag { display: inline-block; font-size: .68rem; font-weight: 600; padding: 2px 9px; border-radius: 100px; }
.tag-free    { background: rgba(237,233,255,.08); color: var(--muted); }
.tag-monthly { background: rgba(124,58,237,.15); color: var(--accent); }
.tag-yearly  { background: rgba(16,185,129,.15);  color: var(--teal); }
.tag-admin   { background: rgba(245,158,11,.15);  color: var(--amber); }
.tag-pink    { background: rgba(244,63,94,.15);   color: var(--pink); }
.tag-teal    { background: rgba(16,185,129,.15);  color: var(--teal); }
.tag-purple  { background: rgba(124,58,237,.15);  color: var(--accent); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(8px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--rxl); padding: 2.5rem; max-width: 480px; width: 100%; transform: translateY(20px) scale(.97); transition: transform .25s cubic-bezier(.34,1.56,.64,1); position: relative; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .8rem; transition: all .15s; }
.modal-close:hover { color: var(--text); }

/* ── LOGO ───────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--fh); font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--accent2), var(--accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* ── TOAST ──────────────────────────────────────────────────── */
#toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: .85rem 1.4rem; font-size: .875rem; z-index: 9999; transform: translateY(120px); opacity: 0; transition: all .3s cubic-bezier(.34,1.56,.64,1); max-width: 340px; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: rgba(16,185,129,.45); }
#toast.error   { border-color: rgba(244,63,94,.45); }
#toast.info    { border-color: rgba(124,58,237,.45); }

/* ── SPINNER ────────────────────────────────────────────────── */
.spinner { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted2); font-size: .8rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* ── SECTION TAG ────────────────────────────────────────────── */
.section-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .75rem; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

/* ── NAV ────────────────────────────────────────────────────── */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(20px); background: rgba(7,7,13,.82); border-bottom: 1px solid var(--border); }
.topnav-links { display: flex; align-items: center; gap: 1.75rem; }
.topnav-links a { color: var(--muted); font-size: .875rem; transition: color .2s; }
.topnav-links a:hover { color: var(--text); }
.topnav-cta { display: flex; gap: .75rem; align-items: center; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1.25rem 0; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── PLAN OPTION ────────────────────────────────────────────── */
.plan-opt { border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1.1rem; cursor: pointer; margin-bottom: .65rem; transition: all .15s; display: flex; align-items: center; justify-content: space-between; }
.plan-opt:hover, .plan-opt.sel { border-color: var(--accent); background: rgba(124,58,237,.07); }
.plan-opt.featured { border-color: rgba(124,58,237,.4); background: rgba(124,58,237,.09); }
.plan-opt-name { font-weight: 600; font-size: .88rem; margin-bottom: 1px; }
.plan-opt-detail { font-size: .75rem; color: var(--muted); }
.plan-opt-price { font-family: var(--fh); font-weight: 800; font-size: .98rem; color: var(--accent); }

/* ── SIDEBAR LAYOUT ─────────────────────────────────────────── */
.sidebar { width: 232px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.25rem 1rem; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; overflow-y: auto; transition: transform .3s; }
.sb-logo { margin-bottom: 1.5rem; }
.acct-pill { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .85rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.acct-av { width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent2), var(--pink)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.nav-sec { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted2); padding: 0 .75rem; margin: 1rem 0 .4rem; }
.nav-item { display: flex; align-items: center; gap: .6rem; padding: .58rem .75rem; border-radius: 10px; font-size: .85rem; color: var(--muted); cursor: pointer; transition: all .15s; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left; font-family: var(--fb); }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { background: rgba(124,58,237,.13); color: var(--accent); }
.nav-icon { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.pro-tag { font-size: .6rem; background: rgba(124,58,237,.2); color: var(--accent); padding: 1px 6px; border-radius: 100px; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.sb-upgrade { background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(124,58,237,.08)); border: 1px solid rgba(124,58,237,.25); border-radius: 14px; padding: 1rem; text-align: center; margin-bottom: 1rem; }
.sb-upgrade-t { font-family: var(--fh); font-size: .85rem; font-weight: 700; margin-bottom: .25rem; }
.sb-upgrade-s { font-size: .73rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.4; }
.sidebar-main { margin-left: 232px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 1.5rem; }
.table-head { padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.table-title { font-family: var(--fh); font-size: .95rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .65rem 1.4rem; text-align: left; border-bottom: 1px solid var(--border); background: var(--surface2); white-space: nowrap; }
td { font-size: .83rem; padding: .7rem 1.4rem; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); color: var(--text); }
.empty-row td { text-align: center; color: var(--muted2); padding: 2.5rem; font-size: .875rem; }

/* ── LEGAL PAGES ────────────────────────────────────────────── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.legal-wrap h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .5rem; }
.legal-meta { color: var(--muted); font-size: .85rem; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-wrap h2 { font-family: var(--fh); font-size: 1.15rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.legal-wrap p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: .9rem; }
.legal-wrap ul { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; padding-left: 1.5rem; font-size: .9rem; }
.legal-wrap ul li { margin-bottom: .35rem; }
.legal-wrap strong { color: var(--text); }
.legal-highlight { background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2); border-radius: var(--r); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.legal-highlight p { color: var(--text); margin-bottom: 0; font-size: .88rem; }

/* ── UPLOAD BOX ─────────────────────────────────────────────── */
.upload-box { background: var(--surface); border: 2px dashed rgba(124,58,237,.3); border-radius: var(--rl); padding: 2.5rem 1.5rem; text-align: center; transition: all .2s; position: relative; overflow: hidden; cursor: pointer; }
.upload-box.ig { border-color: rgba(244,63,94,.3); }
.upload-box:hover, .upload-box.dragging { border-color: var(--accent); background: rgba(124,58,237,.04); }
.upload-box.ig:hover, .upload-box.ig.dragging { border-color: var(--pink); background: rgba(244,63,94,.04); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topnav-links { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-main { margin-left: 0; }
  .hamburger { display: flex; }
}
