/* ══════════════════════════════════════════════════════════
   NEXSSTORE.ID — Premium Dark Design System
   ══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --bg: #0b0b0f;
  --bg-surface: #13141e;
  --bg-card: #181926;
  --bg-card-hover: #1e2033;
  --bg-input: #0f1018;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --accent: #7c4dff;
  --accent-secondary: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-yellow: #eab308;
  --wa-green: #25d366;

  --text-primary: #f0f1ff;
  --text-secondary: #9494b8;
  --text-muted: #555870;
  --text-accent: #a5b4fc;

  --border: rgba(255,255,255,0.06);
  --border-normal: rgba(255,255,255,0.10);
  --border-focus: rgba(99,102,241,0.6);

  --gradient-main: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-green: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-orange: linear-gradient(135deg, #f97316, #ea580c);
  --gradient-wa: linear-gradient(135deg, #25d366, #128c7e);

  --glass: rgba(24, 25, 38, 0.85);
  --glass-blur: blur(24px);

  --card-radius: 16px;
  --input-radius: 10px;
  --btn-radius: 10px;
  --sidebar-width: 250px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,77,255,0.15);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(124,77,255,0.3); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--text-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.navbar-brand {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary); text-decoration: none;
}
.navbar-brand span, .text-accent { color: var(--accent); }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color var(--transition); position: relative;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text-primary); }
.navbar-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient-main); border-radius: 1px;
}
.navbar-actions { display: flex; gap: 10px; align-items: center; }
.navbar-hamburger {
  display: none; background: none; border: none; color: var(--text-primary);
  cursor: pointer; padding: 4px;
}
.navbar-hamburger svg { width: 24px; height: 24px; }
.navbar-mobile {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  padding: 16px 5%; flex-direction: column; gap: 12px;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  color: var(--text-secondary); font-size: 0.95rem; padding: 8px 0;
  text-decoration: none; border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  text-align: center; padding: 100px 5% 80px;
  background: radial-gradient(ellipse at 30% 0%, rgba(124,77,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(99,102,241,0.08) 0%, transparent 60%),
              var(--bg);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0f1ff 0%, #a5b4fc 50%, #8b5cf6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-normal);
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
button { cursor: pointer; font-family: var(--font-body); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-main); color: #fff; border: none;
  border-radius: var(--btn-radius); padding: 12px 24px;
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition); box-shadow: 0 4px 16px rgba(124,77,255,0.3);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,77,255,0.4); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-normal); border-radius: var(--btn-radius);
  padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,77,255,0.06); }
.btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-wa); color: #fff; border: none;
  border-radius: var(--btn-radius); padding: 12px 24px;
  font-size: 0.9rem; font-weight: 600; transition: all var(--transition);
  text-decoration: none;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(239,68,68,0.12); color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.25); border-radius: var(--btn-radius);
  padding: 10px 20px; font-size: 0.85rem; font-weight: 600; transition: all var(--transition);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-secondary); border: none;
  border-radius: var(--btn-radius); padding: 12px 24px;
  font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-glow { animation: btnGlow 2s ease-in-out infinite alternate; }
@keyframes btnGlow {
  from { box-shadow: 0 4px 16px rgba(124,77,255,0.3); }
  to { box-shadow: 0 4px 32px rgba(124,77,255,0.6), 0 0 60px rgba(124,77,255,0.2); }
}

/* ══════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 28px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-normal); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.card-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.card-icon.blue { background: rgba(99,102,241,0.15); }
.card-icon.purple { background: rgba(139,92,246,0.15); }
.card-icon.green { background: rgba(34,197,94,0.12); }
.card-icon.orange { background: rgba(249,115,22,0.12); }
.card-icon.red { background: rgba(239,68,68,0.12); }

/* Feature Card */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 28px;
  transition: all var(--transition-slow); text-align: center;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,77,255,0.3); box-shadow: var(--shadow-glow); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* Product Card */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 24px;
  transition: all var(--transition-slow); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(124,77,255,0.3); box-shadow: var(--shadow-glow); }
.product-card .product-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.product-card .product-icon.streaming { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(249,115,22,0.2)); }
.product-card .product-icon.ai { background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2)); }
.product-card .product-icon.design { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.2)); }
.product-card .product-icon.music { background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(16,185,129,0.2)); }
.product-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.product-card .product-desc { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.product-card .product-price {
  font-size: 1.15rem; font-weight: 700; color: var(--accent);
  margin-bottom: 12px;
}
.product-card .product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.product-card .product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-card .product-actions .btn-primary { flex: 1; font-size: 0.8rem; padding: 10px; }
.product-card .product-actions .btn-ghost { font-size: 0.75rem; padding: 10px; }

/* Stat Card */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 24px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-normal); }
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 12px; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.stat-card .stat-value .badge { font-size: 0.75rem; vertical-align: middle; margin-left: 8px; }

/* Tool Card (preview) */
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 24px;
  transition: all var(--transition-slow); text-decoration: none; display: block; color: inherit;
}
.tool-card:hover { transform: translateY(-3px); border-color: rgba(124,77,255,0.3); box-shadow: var(--shadow-glow); color: inherit; }
.tool-card .tool-icon { font-size: 2rem; margin-bottom: 12px; }
.tool-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.tool-card p { font-size: 0.8rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge-primary { background: rgba(124,77,255,0.12); color: var(--accent); border-color: rgba(124,77,255,0.25); }
.badge-success { background: rgba(34,197,94,0.12); color: var(--accent-green); border-color: rgba(34,197,94,0.25); }
.badge-warning { background: rgba(249,115,22,0.12); color: var(--accent-orange); border-color: rgba(249,115,22,0.25); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--accent-red); border-color: rgba(239,68,68,0.25); }

/* ══════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════ */
.section-padding { padding: 80px 5%; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 1rem;
  max-width: 550px; margin: 0 auto 48px;
}

/* ══════════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ══════════════════════════════════════════════════════════
   ORDER STEPS
   ══════════════════════════════════════════════════════════ */
.steps-container { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin: 40px 0; }
.step-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 1; min-width: 140px; padding: 16px; position: relative;
}
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 32px; right: -20px;
  width: 40px; height: 2px; background: var(--border-normal);
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(124,77,255,0.3);
}
.step-item h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.step-item p { font-size: 0.75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  color: var(--text-primary); transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-question .faq-arrow {
  transition: transform var(--transition); font-size: 1.2rem; color: var(--text-muted);
}
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height var(--transition-slow);
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════ */
.input-group { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .input-icon {
  position: absolute; left: 14px; color: var(--text-muted); pointer-events: none;
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-normal);
  border-radius: var(--input-radius); padding: 12px 16px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrapper input { padding-left: 42px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239494b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
select option { background: var(--bg-card); color: var(--text-primary); }
.input-error { font-size: 0.78rem; color: var(--accent-red); min-height: 18px; }
.input-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }

/* Checkbox */
.checkbox-label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 0.85rem; color: var(--text-secondary); text-transform: none;
  font-weight: 400; letter-spacing: 0;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; border: 2px solid var(--border-normal);
  border-radius: 5px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.checkbox-label input:checked + .checkbox-custom { background: var(--accent); border-color: var(--accent); }
.checkbox-label input:checked + .checkbox-custom::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: 2px solid white; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border-normal);
  box-shadow: var(--shadow-lg); font-size: 0.85rem; font-weight: 500;
  pointer-events: auto; min-width: 280px; max-width: 400px;
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success .toast-icon { color: var(--accent-green); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error .toast-icon { color: var(--accent-red); }
.toast.info { border-color: rgba(99,102,241,0.3); }
.toast.info .toast-icon { color: var(--accent-secondary); }
.toast.warning { border-color: rgba(249,115,22,0.3); }
.toast.warning .toast-icon { color: var(--accent-orange); }
.toast.hide { animation: toastOut 0.3s ease forwards; }
.toast-icon { flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }

/* ══════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--card-radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead { background: rgba(255,255,255,0.03); }
.data-table th {
  padding: 12px 16px; text-align: left; color: var(--text-muted);
  font-weight: 600; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR (Dashboard)
   ══════════════════════════════════════════════════════════ */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width); min-height: 100vh;
  background: var(--bg-surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.sidebar-logo { font-weight: 800; font-size: 1rem; color: var(--text-primary); }
.sidebar-logo span { color: var(--accent); }
.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); border: 1px solid transparent;
}
.sidebar .nav-item:hover { background: rgba(124,77,255,0.08); color: var(--text-primary); }
.sidebar .nav-item.active { background: rgba(124,77,255,0.15); color: var(--accent); border-color: rgba(124,77,255,0.25); }
.sidebar .nav-item .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-toggle {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  background: var(--bg-card); border: 1px solid var(--border-normal);
  border-radius: 10px; padding: 10px; color: var(--text-primary); cursor: pointer;
}
.dashboard-main {
  flex: 1; margin-left: var(--sidebar-width); padding: 32px;
  min-height: 100vh;
}
.dashboard-header { margin-bottom: 28px; }
.dashboard-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-header p { color: var(--text-secondary); font-size: 0.9rem; }
.dashboard-panel { display: none; flex-direction: column; gap: 24px; }
.dashboard-panel.active { display: flex; }

/* ══════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--bg-overlay); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-normal);
  border-radius: 20px; padding: 32px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h2 { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.5rem; padding: 4px; transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { margin-bottom: 24px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════════
   BIO LINK PAGE
   ══════════════════════════════════════════════════════════ */
.bio-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,77,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.10) 0%, transparent 60%),
              var(--bg);
}
.bio-bg { position: absolute; inset: 0; pointer-events: none; }
.bio-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.bio-orb-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; left: -100px; }
.bio-orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -80px; right: -80px; animation-delay: 3s; }
.bio-orb-3 { width: 200px; height: 200px; background: #7c4dff; top: 40%; right: 15%; animation-delay: 5s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.1); }
}
.bio-container {
  position: relative; z-index: 1; max-width: 420px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.bio-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--gradient-main); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 16px;
  box-shadow: 0 0 40px rgba(124,77,255,0.4); border: 3px solid rgba(255,255,255,0.1);
}
.bio-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.bio-subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 32px; font-size: 0.9rem; }
.bio-links { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.bio-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-normal); border-radius: 14px;
  color: var(--text-primary); font-weight: 500; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; transition: all var(--transition);
  animation: bioLinkIn 0.4s ease backwards;
}
.bio-link:hover { transform: translateX(6px); border-color: var(--accent); background: rgba(124,77,255,0.08); color: var(--text-primary); }
.bio-link .link-icon { font-size: 1.2rem; }
.bio-footer { margin-top: 32px; text-align: center; color: var(--text-muted); font-size: 0.8rem; }
@keyframes bioLinkIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.10) 0%, transparent 60%),
              var(--bg);
}
.login-card {
  position: relative; z-index: 1;
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-normal); border-radius: 24px;
  padding: 48px 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-icon {
  width: 72px; height: 72px; background: var(--gradient-main);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; color: white;
  box-shadow: 0 8px 24px rgba(124,77,255,0.4);
}
.login-title {
  font-size: 1.5rem; font-weight: 800; text-align: center;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.login-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 28px; font-size: 0.9rem; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.8rem; }
.login-footer a { color: var(--text-accent); }
.btn-eye {
  position: absolute; right: 12px; background: none; border: none;
  cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 6px;
  transition: color var(--transition);
}
.btn-eye:hover { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════
   TOOLS PAGE
   ══════════════════════════════════════════════════════════ */
.tools-layout { max-width: 900px; margin: 0 auto; padding: 32px 5%; }
.tool-tabs {
  display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab-btn {
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-normal);
  background: transparent; color: var(--text-secondary); font-size: 0.8rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all var(--transition); font-family: var(--font-body);
}
.tool-tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tool-tab-btn.active { background: rgba(124,77,255,0.15); color: var(--accent); border-color: rgba(124,77,255,0.4); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }
.tool-result {
  margin-top: 20px; padding: 20px; border-radius: 12px;
  background: rgba(124,77,255,0.06); border: 1px solid rgba(124,77,255,0.2);
  animation: fadeIn 0.3s ease;
}

/* TMail Styles */
.tmail-display {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-normal);
  padding: 16px 20px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.tmail-layout { display: flex; gap: 16px; min-height: 400px; }
.tmail-sidebar-panel {
  flex: 1; min-width: 200px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.tmail-sidebar-header {
  padding: 12px 16px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.tmail-main-panel {
  flex: 2.5; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-direction: column;
}
.tmail-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
}
.tmail-item:hover { background: rgba(124,77,255,0.06); }
.tmail-sender { font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; }
.tmail-subject { font-size: 0.78rem; color: var(--text-secondary); }
.tmail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; padding: 40px; text-align: center;
}
.tmail-reader { flex: 1; display: flex; flex-direction: column; }
.tmail-reader-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tmail-reader-body { flex: 1; border: 0; width: 100%; background: #fff; border-radius: 0 0 12px 12px; min-height: 250px; }

/* Saved Key / Bulk Items */
.saved-key-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.bulk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,0.02);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 60px 5% 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a {
  display: block; color: var(--text-muted); font-size: 0.85rem;
  margin-bottom: 10px; text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; color: var(--text-muted); font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════
   FLOATING WA BUTTON
   ══════════════════════════════════════════════════════════ */
.floating-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-green); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition); animation: floatPulse 2s infinite;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6), 0 0 40px rgba(37,211,102,0.2); }
}
.floating-wa svg { width: 28px; height: 28px; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-fade-in { animation: fadeInUp 0.6s ease backwards; }
.animate-slide-in { animation: slideIn 0.4s ease backwards; }
[data-animate] { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.flex-wrap { flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { gap: 0; }
  .step-item:not(:last-child)::after { display: none; }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
  .navbar-links, .navbar-actions { display: none; }
  .navbar-hamburger { display: block; }
  .hero { padding: 60px 5% 50px; }
  .hero h1 { font-size: 1.8rem; }
  .section-padding { padding: 50px 5%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-container { flex-direction: column; align-items: center; }
  .step-item { min-width: auto; width: 100%; max-width: 300px; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition-slow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .dashboard-main { margin-left: 0; padding: 20px; padding-top: 70px; }
  .tmail-layout { flex-direction: column; min-height: auto; }
  .login-card { padding: 32px 24px; margin: 16px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: auto; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-badges { flex-direction: column; align-items: center; }
  .product-card .product-actions { flex-direction: column; }
  .product-card .product-actions .btn-primary,
  .product-card .product-actions .btn-ghost { width: 100%; }
}
