/* =========================================
   DASHBOARD STYLES (UPDATED)
   ========================================= */

:root {
  /* Default Dark Theme Variables */
  --bg: #000;
  --card: #0a0a0a;
  --card-2: #141414;
  --sidebar-bg: #000;
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.56);
  --muted: rgba(255, 255, 255, 0.56);
  --muted-2: rgba(255, 255, 255, 0.38);
  --accent: #9600e4;
  --accent-2: #4a2683;
  --accent-light: rgba(150, 0, 228, 0.1);
  --danger: #ed1c24;
  --success: #00c070;
  --warning: #ffcf00;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --font-main: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;

  /* Dashboard Specific */
  --chart-purple: #9600e4;
  --chart-orange: #ff7e5f;
  --chart-pink: #d946ef;
  --grad-purple: linear-gradient(135deg, #9600e4, #7000aa);
  --grad-insights: linear-gradient(145deg, #1a1033, #0a0a0a);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-2: #f9f9fb;
  --sidebar-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.04);
  --text: #111111;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --muted: rgba(0, 0, 0, 0.6);
  --muted-2: rgba(0, 0, 0, 0.4);
  --accent: #7c00be;
  --accent-2: #4a2683;
  --accent-light: rgba(124, 0, 190, 0.08);
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  
  --grad-insights: linear-gradient(145deg, #f0f0ff, #ffffff);
}

.dashboard-body {
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-main);
}

.dash-layout {
  display: flex;
  height: 100%;
}

/* Sidebar (Icon Rail) */
.dash-sidebar {
  width: 72px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  padding: 20px 0;
  transition: all 0.3s ease;
  z-index: 50;
}

.sidebar-top {
  margin-bottom: 30px;
}

.logo-icon {
  width: 50px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  width: 100%;
  align-items: center;
}

.nav-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.2s;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text);
  background: var(--card-2);
}

.nav-item.active {
  color: white;
  background: var(--accent-2);
  box-shadow: 0 4px 12px rgba(150, 0, 228, 0.25);
}

.nav-item.logout {
  color: var(--danger);
  margin-top: auto;
}

.nav-item.logout:hover {
  background: rgba(237, 28, 36, 0.1);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Main Content */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Header */
.dash-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--bg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.select-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #9600e4;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Dashboard Content */
.dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 40px;
}

/* KPI Grid */
.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header-clean h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.card-menu {
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 2px;
}

/* KPI Card Styling */
.kpi-card {
  min-height: 160px;
  justify-content: space-between;
}

.revenue-card {
  background: var(--grad-purple);
  border: 0;
  color: white;
}

.revenue-card .kpi-label,
.revenue-card .kpi-value,
.revenue-card .kpi-sub,
.revenue-card .card-menu {
  color: white;
}

.revenue-card .badge-pill {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.kpi-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  z-index: 2;
  position: relative;
}

.kpi-sub {
  font-size: 11px;
  color: var(--muted-2);
  z-index: 2;
  position: relative;
}

.badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.badge-pill.positive {
  background: rgba(0, 192, 112, 0.15);
  color: var(--success);
}

.badge-pill.negative {
  background: rgba(237, 28, 36, 0.15);
  color: var(--danger);
}

.sparkline {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 50px;
  opacity: 0.6;
  pointer-events: none;
}

/* Charts Rows */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Large Chart */
.chart-large {
  min-height: 320px;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.purple { background: #9600e4; }
.dot.orange { background: #ff7e5f; }

.chart-container {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  color: var(--muted-2);
}

/* Insights Card */
.insights-card {
  background: var(--grad-insights);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.insight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.insight-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.insight-icon.up { color: var(--success); background: rgba(0, 192, 112, 0.1); }
.insight-icon.wave { color: var(--warning); background: rgba(255, 207, 0, 0.1); }
.insight-icon.warn { color: var(--danger); background: rgba(237, 28, 36, 0.1); }

/* Bar Chart */
.bar-chart-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-bottom: 10px;
  height: 220px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 15%;
}

.bar {
  width: 100%;
  border-radius: 50px;
  background: var(--border);
  position: relative;
}

.bar.orange { background: #ff7e5f; }

.bar-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.bar-label {
  font-size: 12px;
  color: var(--muted);
}

/* Profit Donut */
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.donut-chart {
  position: relative;
  width: 160px;
  height: 160px;
}

.donut-text {
  font-size: 4px;
  fill: var(--text);
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-row .pct {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
}

/* Table */
.table-card {
  padding: 0;
}

.table-card .card-header-clean {
  padding: 20px 24px 0;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th {
  text-align: left;
  padding: 16px 24px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-2);
}

.dash-table td {
  padding: 16px 24px;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
}

.dash-table tr:last-child td {
  border-bottom: 0;
}

.status-icon {
  margin-right: 6px;
  font-weight: bold;
}

.status-icon.success { color: var(--success); }
.status-icon.pending { color: var(--warning); }
.status-icon.failed { color: var(--danger); }

.dash-table .positive { color: var(--success); }
.dash-table .negative { color: var(--danger); }

.status-img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.icon-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .dash-nav .icon-box img,
[data-theme="dark"] .sidebar-bottom .icon-box img {
  filter: brightness(0) invert(1);
}

.nav-item.active .icon-box img {
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1200px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
  .kpi-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dash-layout {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 10px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .dash-nav {
    flex-direction: row;
    width: auto;
    margin-left: auto;
  }
  .sidebar-top, .sidebar-bottom {
    margin: 0;
  }
  .dash-header {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .kpi-grid-5 {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 150% 70% at 50% -10%, rgba(237, 28, 36, 0.25) 0%, rgba(150, 0, 228, 0.35) 20%, rgba(74, 38, 131, 0.25) 40%, rgba(74, 38, 131, 0.15) 55%, transparent 75%),
    radial-gradient(ellipse 150% 70% at 50% 110%, rgba(237, 28, 36, 0.25) 0%, rgba(150, 0, 228, 0.35) 20%, rgba(74, 38, 131, 0.25) 40%, rgba(74, 38, 131, 0.15) 55%, transparent 75%);
}

.bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  opacity: 0.28;
  background: radial-gradient(
    ellipse 100% 50% at 50% 0%,
    rgba(237, 28, 36, 0.42) 0%,
    transparent 60%
  );
  filter: blur(60px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.34;
  }
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: blur(0px);
}

.header.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6b00a8);
  box-shadow: 0 14px 30px -18px rgba(150, 0, 228, 0.65);
  display: grid;
  place-items: center;
}

.logo-text {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.nav {
  display: none;
  gap: 26px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 860px) {
  .nav {
    display: inline-flex;
  }
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 4px;
  transition: color 180ms ease;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background 180ms ease, border-color 180ms ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 36px;
  border-radius: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  min-height: 48px;
  border-radius: 12px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  color: rgba(255, 255, 255, 0.92);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #6b00a8);
  color: #fff;
  box-shadow: 0 18px 40px -26px rgba(150, 0, 228, 0.9);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  opacity: 0;
  transition: opacity 220ms ease;
}

.btn-primary > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 26px 60px -34px rgba(150, 0, 228, 0.95);
}

.main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 160px 0 112px;
}

.hero h1 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero p {
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.typewriter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.typewriter .word {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 40%,
    var(--danger) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  animation: typewriter 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.typewriter .cursor {
  width: 2px;
  height: 0.9em;
  background: rgba(255, 255, 255, 0.95);
  animation: fadeOutCursor 0.5s ease-out 2.6s forwards;
}

@keyframes typewriter {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes fadeOutCursor {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.upload-card {
  margin: 54px auto 0;
  max-width: 960px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(150, 0, 228, 0.03) 45%,
    rgba(150, 0, 228, 0.08) 50%,
    rgba(150, 0, 228, 0.03) 55%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: sweep 8s ease-in-out infinite;
}

@keyframes sweep {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

.upload-card-inner {
  position: relative;
  padding: 28px;
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 44px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease,
    transform 180ms ease;
  background: rgba(255, 255, 255, 0.01);
}

.dropzone:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.dropzone.is-dragging {
  border-color: rgba(150, 0, 228, 0.5);
  background: rgba(150, 0, 228, 0.06);
  transform: scale(1.01);
}

.drop-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dropzone h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.dropzone p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.browse {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.browse:hover {
  color: rgba(150, 0, 228, 0.82);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.divider .line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
}

.integrations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 860px) {
  .integrations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.integration {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 180ms ease, background 180ms ease;
}

.integration:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.integration .name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.integration .sub {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

.trust {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

section.block {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 760px;
}

.section-title h2 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.card {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.card h3 {
  font-family: Outfit, system-ui, sans-serif;
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.stats {
  margin-top: 68px;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

@media (min-width: 860px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.stat .value {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat .label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.preview {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.92),
    rgba(10, 10, 10, 0.84)
  );
  box-shadow: 0 40px 120px -48px rgba(150, 0, 228, 0.52);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.76);
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.preview-badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--danger), var(--accent), #4a2683);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px -28px rgba(150, 0, 228, 0.75);
}

.preview-body {
  padding: 22px 18px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 860px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kpi {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.kpi .kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}

.kpi .kpi-value {
  margin-top: 6px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.plan {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.92);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  position: relative;
}

.plan.is-featured {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: rgba(150, 0, 228, 0.75);
  box-shadow: 0 48px 140px -68px rgba(150, 0, 228, 0.9);
  transform: translateY(-10px);
}

.plan .plan-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.plan .price {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan .desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 13px;
}

.plan.is-featured .desc {
  color: rgba(255, 255, 255, 0.92);
}

.plan ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.plan.is-featured ul {
  color: rgba(255, 255, 255, 0.9);
}

.plan .plan-cta {
  margin-top: auto;
  width: 100%;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.55);
}

.final-cta {
  padding: 120px 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 14px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.final-cta p {
  margin: 0 auto 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 76px 0 0;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer h4 {
  font-family: Outfit, system-ui, sans-serif;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.footer a {
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.55);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  padding: 18px 0 34px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.social a {
  padding: 6px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 180ms ease, background 180ms ease;
}

.social a:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.social svg {
  width: 16px;
  height: 16px;
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 18px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.94);
  box-shadow: 0 60px 160px -88px rgba(150, 0, 228, 0.65);
  overflow: hidden;
}

.modal-header {
  padding: 18px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header .title {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-header .close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal-body {
  padding: 18px;
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.field input:focus {
  border-color: rgba(150, 0, 228, 0.5);
}

.switch {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.switch button {
  border: 0;
  background: transparent;
  color: rgba(150, 0, 228, 0.95);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

/* Custom Dropdown for Profile/Logout */
.custom-dropdown {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  padding: 8px !important;
  margin-top: 10px !important;
  min-width: 200px !important;
}

.custom-dropdown .dropdown-item {
  color: var(--text) !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.2s ease !important;
}

.custom-dropdown .dropdown-item:hover {
  background: var(--card-2) !important;
  color: var(--text) !important;
}

.custom-dropdown .dropdown-item i {
  color: var(--muted) !important;
  width: 16px !important;
  text-align: center !important;
}

.custom-dropdown .dropdown-item:hover i {
  color: var(--accent) !important;
}
