/* Ventrix — lightweight, mobile-first, performance-focused */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe3ef;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --green: #16a34a;
  --green-dark: #15803d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --brand: var(--green);
  --brand-dark: var(--green-dark);
  --accent: var(--blue);
  --success: var(--green);
  --warning: #d97706;
  --danger: var(--red);
  --info: var(--blue);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% -8%, rgba(22, 163, 74, 0.12), transparent 55%),
    radial-gradient(900px 400px at 95% 0%, rgba(37, 99, 235, 0.10), transparent 50%),
    radial-gradient(700px 300px at 70% 100%, rgba(220, 38, 38, 0.06), transparent 45%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 245, 0.88);
  border-bottom: 1px solid rgba(215, 227, 222, 0.8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand span {
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-soft);
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { background: rgba(37, 99, 235, 0.1); color: var(--blue-dark); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: .45rem .7rem; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .75rem 1.25rem;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22); }
.btn-primary:hover { background: linear-gradient(135deg, var(--green-dark), var(--blue-dark)); color: #fff; }
.btn-accent { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy { max-width: 620px; animation: rise .55s ease both; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: .8rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(120deg, var(--brand), #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.08rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hero-visual {
  min-height: 280px;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.92), rgba(11, 90, 84, 0.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  animation: rise .7s ease .08s both;
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: auto -20% -30% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(196, 92, 38, 0.35); filter: blur(10px);
}
.hero-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: .8rem;
  backdrop-filter: blur(4px);
}
.hero-card strong { display: block; font-size: 1.35rem; margin-bottom: .2rem; }
.hero-card span { opacity: .9; font-size: .92rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-head { margin-bottom: 1.6rem; max-width: 560px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }

.feature, .plan-card, .panel, .stat-card, .faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.feature h3, .plan-card h3 { font-size: 1.2rem; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(15, 118, 110, 0.12); color: var(--brand);
  font-weight: 700; margin-bottom: .8rem;
}

.plan-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2); }
.plan-price { font-family: var(--display); font-size: 2rem; color: var(--brand); margin: .4rem 0 .8rem; }
.plan-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.plan-meta li {
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
}
.plan-meta li strong { color: var(--ink); }

/* Forms */
.auth-wrap, .page-narrow { width: min(100% - 2rem, 480px); margin: 2.5rem auto; }
.page-wide { width: min(100% - 2rem, 920px); margin: 2rem auto; }
.form-card, .content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .72rem .85rem;
  font: inherit;
  background: #fbfdfc;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.help { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.checkbox input { margin-top: .25rem; }

/* Alerts / badges */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .92rem;
}
.alert-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: capitalize;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #ffedd5; color: #9a3412; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-muted { background: #eef2f1; color: #475569; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { background: #f7faf9; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

/* Admin shell (sidebar kept for admin) */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #0b1f3a 0%, #0f2a22 100%);
  color: #d7e3de;
  padding: 1.25rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: #fff; display: block; margin-bottom: 1.4rem; padding: 0 .4rem; }
.sidebar .brand span { color: #4ade80; }
.side-nav a {
  display: flex; align-items: center; gap: .55rem;
  color: #b7c9c3; padding: .7rem .8rem; border-radius: 10px;
  margin-bottom: .2rem; font-size: .92rem; font-weight: 500;
}
.side-nav a:hover, .side-nav a.active { background: rgba(37, 99, 235, 0.22); color: #fff; }
.app-main { padding: 1.25rem 1.4rem 2.5rem; }

/* ========== USER SIDEBAR APP ========== */
.user-app {
  min-height: 100vh;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(22, 163, 74, 0.10), transparent 55%),
    radial-gradient(800px 360px at 100% 10%, rgba(37, 99, 235, 0.10), transparent 50%),
    radial-gradient(600px 280px at 80% 100%, rgba(220, 38, 38, 0.06), transparent 45%),
    #f3f6fb;
}
.user-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.user-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  padding: 1.35rem 1rem 1.5rem;
  background:
    linear-gradient(165deg, #0b1f3a 0%, #0f2f28 48%, #102a43 100%);
  color: #e8eef8;
  z-index: 80;
  box-shadow: 8px 0 30px rgba(11, 31, 58, 0.18);
}
.user-sidebar-glow {
  position: absolute; pointer-events: none;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  top: -40px; right: -50px; filter: blur(4px);
}
.user-side-brand {
  position: relative; z-index: 1;
  color: #fff !important; font-size: 1.7rem; display: inline-block;
  margin-bottom: .15rem; padding: 0 .35rem;
}
.user-side-brand span {
  background: linear-gradient(135deg, #4ade80, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.user-side-tag {
  position: relative; z-index: 1;
  margin: 0 0 1.1rem .35rem; font-size: .78rem; color: #93a8c3; font-weight: 500;
}
.user-side-wallet {
  position: relative; z-index: 1;
  margin: 0 .2rem 1.2rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(37, 99, 235, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.user-side-wallet span {
  display: block; font-size: .75rem; color: #c7d5ea; font-weight: 600; margin-bottom: .25rem;
}
.user-side-wallet strong {
  font-family: var(--display); font-size: 1.45rem; color: #fff; letter-spacing: -0.02em;
}
.user-side-nav { position: relative; z-index: 1; display: grid; gap: .18rem; }
.nav-label {
  margin: .35rem 0 .45rem .55rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: #7f93ad; font-weight: 700;
}
.user-side-nav a {
  display: flex; align-items: center; gap: .7rem;
  color: #c5d2e5; padding: .72rem .8rem; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.user-side-nav a:hover {
  background: rgba(255,255,255,0.08); color: #fff; transform: translateX(2px);
}
.user-side-nav a.active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.35), rgba(37, 99, 235, 0.45));
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.nav-ico {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); font-size: .85rem; flex-shrink: 0;
}
.user-side-nav a.active .nav-ico {
  background: rgba(255,255,255,0.18);
}
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: .68rem; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
}
.logout-link { margin-top: .55rem; color: #fca5a5 !important; }
.logout-link:hover { background: rgba(220, 38, 38, 0.18) !important; color: #fff !important; }

.user-content { min-width: 0; display: flex; flex-direction: column; }
.user-headbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
}
.user-head-left { display: flex; align-items: center; gap: .8rem; }
.user-head-title {
  margin: 0; font-size: 1.35rem; letter-spacing: -0.02em;
}
.user-head-sub { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.user-head-right { display: flex; align-items: center; gap: .65rem; }
.user-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.user-menu-btn span {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink);
}

.notif-wrap { position: relative; }
.notif-bell {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff;
  color: var(--blue-dark); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.notif-bell:hover, .notif-wrap.open .notif-bell {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
}
.notif-bell.has-unread { color: var(--red); }
.notif-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff;
  animation: pulse-soft 1.8s ease infinite;
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.notif-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  width: min(360px, calc(100vw - 1.5rem));
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; z-index: 100;
  animation: rise .2s ease;
}
.notif-wrap.open .notif-dropdown { display: block; }
.notif-dropdown-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; padding: .95rem 1rem;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(37, 99, 235, 0.10));
  border-bottom: 1px solid var(--line);
}
.notif-dropdown-head strong { display: block; font-size: .98rem; }
.notif-dropdown-head span { font-size: .78rem; color: var(--muted); }
.notif-dropdown-head a {
  font-size: .82rem; font-weight: 700; color: var(--blue);
  padding: .3rem .55rem; border-radius: 999px; background: rgba(37, 99, 235, 0.1);
}
.notif-dropdown-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; gap: .7rem; padding: .85rem 1rem;
  border-bottom: 1px solid #eef2f7; color: inherit;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: rgba(37, 99, 235, 0.04); }
.notif-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; flex-shrink: 0;
}
.notif-dot.green { background: var(--green); }
.notif-dot.blue { background: var(--blue); }
.notif-dot.red { background: var(--red); }
.notif-body { display: grid; gap: .15rem; min-width: 0; }
.notif-body strong { font-size: .9rem; color: var(--ink); }
.notif-body em {
  font-style: normal; font-size: .82rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-body small { color: var(--muted); font-size: .75rem; }
.notif-empty { padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }

.user-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .7rem .3rem .3rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff; font-weight: 700; font-size: .95rem;
}
.user-chip-text { display: grid; line-height: 1.15; }
.user-chip-text strong { font-size: .82rem; }
.user-chip-text small { color: var(--blue); font-size: .72rem; font-weight: 700; }

.user-main { padding: 1.35rem 1.5rem 2.8rem; }
.user-main > .topbar > .page-title,
.user-main > .topbar > div > .page-title { display: none; }
.user-main > .topbar { margin-top: -.15rem; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.35rem; flex-wrap: wrap;
}
.page-title { font-size: 1.55rem; margin: 0; letter-spacing: -0.02em; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: .85rem; }

/* ===== INNER CONTENT POLISH (excluding sidebar) ===== */
.user-content .user-headbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.9));
  box-shadow: 0 1px 0 rgba(219, 227, 239, 0.9), 0 10px 24px rgba(15, 23, 42, 0.03);
}
.user-content .user-head-title {
  background: linear-gradient(135deg, #0f172a 20%, #1d4ed8 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.user-main .grid-2,
.user-main .grid-3,
.user-main .grid-4 { gap: 1.05rem; }

.user-main .stat-card,
.user-main .panel,
.user-main .plan-card,
.user-main .form-card,
.user-main .content-card,
.user-main .table-wrap,
.user-main .empty,
.user-main .notif-card {
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.user-main .stat-card {
  position: relative; overflow: hidden;
  padding: 1.2rem 1.25rem 1.2rem 1.35rem;
  animation: rise .4s ease both;
}
.user-main .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.25);
}
.user-main .stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--green), var(--blue));
}
.user-main .stat-card:nth-child(3n+2)::before { background: linear-gradient(180deg, var(--blue), #38bdf8); }
.user-main .stat-card:nth-child(3n)::before { background: linear-gradient(180deg, var(--red), #f97316); }
.user-main .stat-card::after {
  content: ""; position: absolute; right: -18px; top: -18px;
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 70%);
}
.user-main .stat-card:nth-child(3n)::after {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.10), transparent 70%);
}
.user-main .stat-card:nth-child(3n+1)::after {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), transparent 70%);
}
.user-main .stat-card span {
  position: relative; z-index: 1;
  color: var(--muted); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.user-main .stat-card strong {
  position: relative; z-index: 1;
  display: block; margin-top: .45rem;
  font-size: 1.55rem; font-family: var(--display); color: var(--ink);
  letter-spacing: -0.02em;
}

.user-main .panel,
.user-main .form-card,
.user-main .content-card {
  padding: 1.35rem 1.4rem;
}
.user-main .panel:hover,
.user-main .form-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
}
.user-main .panel + .panel { margin-top: 1.05rem; }
.user-main .panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; margin-bottom: 1.05rem; flex-wrap: wrap;
  padding-bottom: .85rem;
  border-bottom: 1px dashed rgba(219, 227, 239, 0.95);
}
.user-main .panel-head h2,
.user-main .panel-head h3 {
  margin: 0; font-size: 1.12rem;
  position: relative; padding-left: .75rem;
}
.user-main .panel-head h2::before,
.user-main .panel-head h3::before {
  content: ""; position: absolute; left: 0; top: .15rem; bottom: .15rem; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, var(--green), var(--blue));
}
.user-main .panel p {
  margin: 0 0 .7rem;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(241, 245, 249, 0.95);
}
.user-main .panel p:last-child { margin-bottom: 0; }
.user-main .panel p strong { color: var(--ink); }

.user-main .plan-card {
  padding: 1.35rem;
  position: relative; overflow: hidden;
}
.user-main .plan-card::after {
  content: ""; position: absolute; inset: auto -30px -40px auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), transparent 70%);
}
.user-main .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.28);
}
.user-main .plan-card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 16px 34px rgba(37, 99, 235, 0.10);
}
.user-main .plan-price {
  font-size: 2.1rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.user-main .plan-meta li {
  display: flex; justify-content: space-between; gap: .6rem;
  padding: .55rem 0;
}

.user-main .task-item {
  display: grid; grid-template-columns: 1fr auto; gap: .9rem; align-items: center;
  padding: 1rem 1rem;
  margin: 0 0 .55rem;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.user-main .task-item:last-child { margin-bottom: 0; border-bottom: 1px solid #eef2f7; }
.user-main .task-item:hover {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateX(2px);
}
.user-main .task-item h4 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--ink); }

.user-main .table-wrap {
  padding: 0; overflow: hidden;
}
.user-main .table-wrap:hover { border-color: rgba(37, 99, 235, 0.2); }
.user-main table { min-width: 640px; }
.user-main th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: #475569;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: .95rem 1rem;
}
.user-main td {
  padding: .95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
}
.user-main tr:hover td { background: rgba(37, 99, 235, 0.03); }
.user-main tr:last-child td { border-bottom: 0; }

.user-main label {
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #475569;
}
.user-main input[type="text"],
.user-main input[type="email"],
.user-main input[type="password"],
.user-main input[type="number"],
.user-main input[type="tel"],
.user-main input[type="url"],
.user-main input[type="date"],
.user-main input[type="file"],
.user-main select,
.user-main textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: .78rem .95rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.user-main input:hover,
.user-main select:hover,
.user-main textarea:hover { border-color: #cbd5e1; }
.user-main input:focus,
.user-main select:focus,
.user-main textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.user-main .btn {
  border-radius: 12px;
  letter-spacing: .01em;
}
.user-main .btn-primary {
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}
.user-main .btn-outline {
  background: #fff;
  border: 1.5px solid #dbe3ef;
}
.user-main .btn-outline:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--blue);
}

.user-main .alert {
  border-radius: 14px;
  padding: .95rem 1.05rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.user-main .alert-success {
  background: linear-gradient(135deg, #ecfdf3, #f0fdf4);
  border-color: #86efac;
}
.user-main .alert-error {
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border-color: #fca5a5;
}
.user-main .alert-info {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border-color: #93c5fd;
}
.user-main .alert-warning {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-color: #fcd34d;
}

.user-main .badge {
  padding: .28rem .65rem;
  font-size: .72rem;
  letter-spacing: .03em;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.user-main .empty {
  padding: 2.4rem 1.2rem;
  border-style: dashed;
  border-width: 1.5px;
  color: #64748b;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.95));
}

.user-main .auth-wrap { width: min(100%, 540px); }

/* Notifications page cards */
.notif-page-list { display: grid; gap: .95rem; }
.notif-card {
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  position: relative; overflow: hidden;
  animation: rise .35s ease both;
}
.notif-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
}
.notif-card.tone-green::before { background: linear-gradient(180deg, var(--green), #4ade80); }
.notif-card.tone-blue::before { background: linear-gradient(180deg, var(--blue), #38bdf8); }
.notif-card.tone-red::before { background: linear-gradient(180deg, var(--red), #fb7185); }
.notif-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.notif-card-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: .7rem; margin-bottom: .55rem;
}
.notif-pill {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .28rem .6rem; border-radius: 999px;
}
.tone-green .notif-pill { background: #dcfce7; color: #166534; }
.tone-blue .notif-pill { background: #dbeafe; color: #1d4ed8; }
.tone-red .notif-pill { background: #fee2e2; color: #b91c1c; }
.notif-card-top time { color: var(--muted); font-size: .8rem; font-weight: 600; }
.notif-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.notif-card p { margin: 0; color: var(--ink-soft); }

/* Keep global fallbacks for admin/public */
.feature, .plan-card, .panel, .stat-card, .faq-item, .form-card, .content-card {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.stat-card { position: relative; overflow: hidden; }
.stat-card strong { display: block; font-size: 1.45rem; font-family: var(--display); margin-top: .25rem; color: var(--ink); }
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.panel + .panel { margin-top: 1rem; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.15rem; }
.empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.5);
}
.task-item {
  display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.task-item:last-child { border-bottom: 0; }
.task-item h4 { margin: 0 0 .25rem; font-size: 1.05rem; }

.footer {
  margin-top: 3rem; padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem;
}
.footer a { color: var(--ink-soft); }
.footer h4 { font-family: var(--font); font-size: .95rem; margin-bottom: .7rem; }

.mobile-bar { display: none; }

@media (max-width: 1100px) {
  .user-chip-text { display: none; }
  .user-chip { padding: .25rem; }
  .user-shell { grid-template-columns: 250px 1fr; }
}

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar, .user-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); height: 100vh;
    transform: translateX(-105%); transition: transform .22s ease; z-index: 85;
  }
  .sidebar.open, .user-sidebar.open { transform: none; }
  .user-shell { grid-template-columns: 1fr; }
  .user-menu-btn { display: inline-flex; }
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; gap: .75rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 68px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: .6rem; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .task-item { grid-template-columns: 1fr; }
  .app-main { padding: 1rem; }
  .user-main { padding: 1rem; }
  .user-headbar { padding: .9rem 1rem; }
  .notif-dropdown { right: -20px; }
}

.overlay {
  display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 70;
}
.overlay.show { display: block; }
