/* Fahriservcloud — modern theme layer (dimuat setelah style.css).
   Palet diambil dari logo: hitam-navy dengan neon biru listrik. */
:root {
  --bg: #eef2fa;
  --ink: #0f1b30;
  --muted: #6b7a92;
  --line: #e1e8f3;
  --nav: #050a16;
  --nav-soft: #0b1428;
  --blue: #2f6bff;
  --blue-dark: #1f56e0;
  --cyan: #2bd0ff;
  --electric: #3d8bff;
  --green: #12b886;
  --red: #e5484d;
  --shadow: 0 18px 50px rgba(15, 35, 80, .09);
  --glow: 0 0 0 1px rgba(61, 139, 255, .35), 0 8px 30px rgba(47, 107, 255, .28);
  --radius: 18px;
}

body {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(47, 107, 255, .10), transparent 60%),
    radial-gradient(800px 420px at 0% 0%, rgba(43, 208, 255, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(47, 107, 255, .25); }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }

/* ---------- Topbar & brand ---------- */
.topbar {
  background: rgba(5, 10, 22, .9);
  border-bottom: 1px solid rgba(61, 139, 255, .18);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(2, 6, 20, .25);
}
.brand { color: #f2f6ff; }
.brand-accent { color: var(--cyan); }
.brand small { color: #6f86ad; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(61, 139, 255, .45), 0 0 18px rgba(47, 107, 255, .45);
  transition: box-shadow .25s, transform .25s;
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.05); box-shadow: 0 0 0 1px rgba(61, 139, 255, .7), 0 0 26px rgba(47, 107, 255, .7); }
.topbar .icon-button { background: #0b1428; border-color: #1b2b4d; }
.topbar .icon-button span { background: #9db6e0; }
.topbar .btn-ghost { color: #b9c9e6; }
.topbar .btn-ghost:hover { background: #ffffff10; border-color: #ffffff1c; color: #fff; }
.top-user { color: #b9c9e6; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: linear-gradient(120deg, #0d1c3d, #0a1530); border: 1px solid #21407a; color: #dbe8ff;
  font-size: 12px; transition: .2s;
}
.balance-chip:hover { border-color: var(--electric); box-shadow: var(--glow); }
.balance-label { color: #7f98c4; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.balance-chip b { font: 700 13px 'Space Grotesk', sans-serif; }
.balance-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-style: normal; font-size: 13px; font-weight: 800; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #050a16 0%, #080f21 55%, #0a1430 100%);
  border-right: 1px solid rgba(61, 139, 255, .12);
}
.sidebar-heading { color: #4f6690; }
.nav-link { color: #8da3c8; border-radius: 12px; }
.nav-link:hover { background: rgba(61, 139, 255, .09); color: #fff; }
.nav-link.active {
  background: linear-gradient(100deg, rgba(47, 107, 255, .30), rgba(43, 208, 255, .10));
  box-shadow: inset 3px 0 0 var(--electric), 0 6px 20px rgba(47, 107, 255, .12);
}
.nav-icon { color: #5c7bb0; }
.nav-link.active .nav-icon { color: var(--cyan); }
.sidebar-status { background: rgba(61, 139, 255, .06); border-color: rgba(61, 139, 255, .16); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; letter-spacing: .1px; }
.btn-primary { background: linear-gradient(110deg, #2f6bff, #1fa2ff 120%); box-shadow: 0 8px 22px rgba(47, 107, 255, .34); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(47, 107, 255, .5); filter: brightness(1.06); }
.btn-soft { background: #eaf1ff; color: #2358d6; border-color: #d7e4ff; }
.btn-soft:hover { background: #dfeaff; }
.btn-outline { border-color: #d3deef; }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Cards ---------- */
.panel-card, .form-panel, .stat-card, .feature-card, .package-card, .server-card, .metric-card, .auth-card {
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 35, 80, .04), 0 10px 30px rgba(15, 35, 80, .04);
  border-radius: 18px;
}
.stat-card:hover, .feature-card:hover, .server-card:hover { box-shadow: var(--shadow); border-color: #c9d9f5; }
.package-card.package-featured { border-color: var(--electric); box-shadow: 0 0 0 1px rgba(61, 139, 255, .25), 0 20px 45px rgba(47, 107, 255, .16); }
.package-card.package-featured:before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.eyebrow { color: var(--blue); }
.dashboard-head h1, .page-heading h1 { color: #0c1a33; }
.stat-icon, .feature-icon, .quick-icon { background: linear-gradient(135deg, #e8f0ff, #e3f8ff); color: var(--blue); }

/* ---------- Hero (dark, cocok dengan logo) ---------- */
.hero-section {
  position: relative; overflow: hidden; margin-bottom: 10px;
  background: radial-gradient(900px 480px at 80% 10%, rgba(47, 107, 255, .35), transparent 60%), linear-gradient(135deg, #02050d, #07102a 70%, #0a1a46);
  border: 1px solid rgba(61, 139, 255, .25); border-radius: 28px; padding: 54px 46px;
  box-shadow: 0 30px 70px rgba(5, 15, 45, .35);
}
.hero-section:before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(61, 139, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 139, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero-copy h1 { color: #f3f7ff; }
.hero-copy h1 span { background: linear-gradient(95deg, #5aa2ff, #2bd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #9fb2d4; }
.hero-section .eyebrow { color: #7fb2ff; }
.hero-section .btn-outline { background: rgba(255, 255, 255, .06); border-color: rgba(125, 170, 255, .35); color: #dbe8ff; }
.hero-section .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.hero-proof { color: #8aa0c6; }
.proof-avatars i { border-color: #07102a; }
.hero-logo {
  position: absolute; z-index: 0; width: min(340px, 70%); right: 2%; top: -6%; border-radius: 36px; opacity: .95;
  box-shadow: 0 0 80px rgba(47, 107, 255, .45); animation: float 6s ease-in-out infinite;
}
.terminal-card { margin-top: 90px; background: rgba(10, 20, 42, .92); border-color: #213a68; backdrop-filter: blur(6px); }
.floating-chip { background: #0c1730; border-color: #223b6b; }
.floating-chip b { color: #e6efff; }
.floating-chip small { color: #8aa0c6; }
.chip-icon { background: #12285a; color: #6fb0ff; }
.trust-strip { border-color: var(--line); }
.cta-band { background: linear-gradient(110deg, #06102b, #0f3a9c 60%, #1297d8); box-shadow: 0 20px 45px rgba(15, 58, 156, .3); }

/* ---------- Forms & tables ---------- */
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .domain-form input:focus,
.form-panel input:focus, .form-panel textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
th { background: #f5f8fe; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #f8faff; }
.file-table { min-width: 650px; }
.flash { border-radius: 14px; backdrop-filter: blur(4px); }
.page-loader { background: rgba(5, 10, 22, .86); }
.page-loader p { color: #a9bddf; }

/* ---------- Status pills ---------- */
.status-approved { background: #e6f8f0; color: #138a63; }
.status-rejected { background: #fff0f0; color: #d04a50; }
.status-pending_admin, .status-processing { background: #fff6e3; color: #b57b1a; }

/* ---------- Auth ---------- */
.auth-card { position: relative; overflow: hidden; }
.auth-card:before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.auth-symbol { background: linear-gradient(135deg, #e8f0ff, #e3f8ff); color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: #050a16; border-top: 1px solid rgba(61, 139, 255, .18); color: #6f86ad; }
.footer-brand { color: #dbe8ff; }
.site-footer > a { color: #7fb2ff; }

/* ---------- Top-up & wallet ---------- */
.balance-card, .wallet-strip {
  background: linear-gradient(120deg, #06102b, #0d2a6e 70%, #127fc9); color: #fff; border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 58, 156, .28); border: 1px solid rgba(125, 170, 255, .25);
}
.balance-card { padding: 14px 22px; min-width: 220px; }
.balance-card small, .wallet-strip small { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: #9dbcf2; }
.balance-card strong, .wallet-strip strong { display: block; font: 700 26px 'Space Grotesk', sans-serif; letter-spacing: -.6px; }
.wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; margin-bottom: 20px; }
.wallet-strip .btn-soft { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.wallet-strip .btn-soft:hover { background: rgba(255, 255, 255, .24); }
.topup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, #f1f6ff, #eafaff); border: 1px solid #d5e4fb; }
.pay-number small { display: block; color: #6b86b3; font-size: 10px; font-weight: 700; }
.pay-number strong { font: 700 24px 'Space Grotesk', sans-serif; letter-spacing: 1px; color: #0e2147; }
.qris-box { margin: 16px 0; text-align: center; }
.qris-box img { width: min(100%, 300px); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .25s; }
.qris-box img:hover { transform: scale(1.02); }
.qris-box small { display: block; margin-top: 8px; color: #8392a8; font-size: 10px; }
.pay-rules { margin: 0; padding: 0 0 0 18px; color: #6b7a92; font-size: 11px; line-height: 1.9; }
.pay-rules b { color: #33486b; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -6px; }
.amount-chip { border: 1px solid #d5e2f7; background: #f5f9ff; color: #2f5cb5; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; transition: .15s; }
.amount-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.dropzone { position: relative; display: grid; place-items: center; gap: 10px; min-height: 120px; padding: 16px; text-align: center; border: 2px dashed #c6d8f3; border-radius: 14px; background: #f8fbff; transition: .2s; cursor: pointer; overflow: hidden; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--electric); background: #eff5ff; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.dropzone-text { color: #6b7a92; font-size: 12px; font-weight: 500; }
.dropzone-text b { color: var(--blue); }
.dropzone img { max-height: 220px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.dropzone img[hidden] { display: none; }
.topup-history { margin-top: 0; }
.reason-cell { max-width: 340px; color: #7a889d; }
.ai-cell { font-size: 10px; line-height: 1.6; min-width: 190px; }
.proof-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.topup-table { min-width: 900px; }

/* ---------- Error page ---------- */
.error-page { display: grid; place-items: center; min-height: 60vh; }
.error-card { max-width: 520px; text-align: center; padding: 42px 34px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.error-logo { border-radius: 22px; box-shadow: 0 0 40px rgba(47, 107, 255, .4); margin-bottom: 14px; }
.error-card h1 { font: 700 28px 'Space Grotesk', sans-serif; letter-spacing: -.8px; margin: 4px 0 8px; }
.error-card p { color: #7a889d; font-size: 13px; margin: 0 0 22px; }
.error-card .hero-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .hero-section { padding: 40px 28px; } }
@media (max-width: 900px) {
  .topup-grid { grid-template-columns: 1fr; }
  .hero-logo { position: relative; right: auto; top: auto; margin: 0 auto 10px; width: 220px; }
  .terminal-card { margin-top: 20px; }
}
@media (max-width: 620px) {
  .balance-label { display: none; }
  .balance-chip { padding-left: 10px; }
  .hero-section { padding: 26px 18px; border-radius: 20px; }
  .balance-card { width: 100%; }
  .wallet-strip { flex-direction: column; align-items: stretch; text-align: left; }
  .pay-number strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
