/* ============================================================
   portal.css — SR-NET Portal Publik & Pelanggan (v2 — rombak total)
   ============================================================ */

:root {
    --bg:          #0b0f15;
    --bg-card:     #161b22;
    --bg-card2:    #1c222c;
    --border:      #232a35;
    --text:        #e6edf3;
    --muted:       #8b96a5;
    --blue:        #3b82f6;
    --blue-dark:   #2563eb;
    --green:       #22c55e;
    --red:         #ef4444;
    --amber:       #f59e0b;
    --purple:      #818cf8;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 8px 24px rgba(0,0,0,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:
        radial-gradient(ellipse 900px 500px at 15% -5%, rgba(59,130,246,0.10), transparent 60%),
        radial-gradient(ellipse 700px 400px at 100% 10%, rgba(129,140,248,0.07), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px; /* ruang untuk bottom-nav mobile */
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ===== NAVBAR ===== */
.portal-nav {
    background: rgba(13,17,23,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.12rem; color: var(--text);
    letter-spacing: 0.2px;
}
.nav-brand .brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--muted); font-size: 0.88rem;
    padding: 8px 14px; border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s; font-weight: 500;
}
.nav-links a:hover { background: rgba(59,130,246,0.12); color: var(--blue); }
.nav-links .btn-nav {
    background: var(--blue); color: #fff !important;
    padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.nav-links .btn-nav:hover { background: var(--blue-dark); }

.nav-toggle { display: none; background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 18px; border-top: 1px solid var(--border); background: var(--bg-card); }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--muted); font-size: 0.92rem; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.nav-mobile a:hover { background: rgba(59,130,246,0.10); color: var(--blue); }
.nav-mobile a.active-link { color: var(--blue); font-weight: 700; background: rgba(59,130,246,0.08); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; order: -1; }
    .portal-nav { justify-content: flex-start; gap: 14px; }
}

/* ===== HERO ===== */
.hero { padding: 56px 20px 44px; text-align: center; position: relative; overflow: hidden; }
.hero-bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #060a10; }
.hero-bg-video iframe {
    position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw;
    min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(6,10,16,0.45) 0%, rgba(6,10,16,0.78) 65%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
    color: var(--blue); border-radius: 24px; padding: 6px 16px;
    font-size: 0.76rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.3px;
}
.hero h1 { font-size: clamp(1.7rem, 6vw, 2.7rem); font-weight: 800; line-height: 1.22; margin-bottom: 14px; }
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 0.97rem; max-width: 480px; margin: 0 auto 26px; line-height: 1.65; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.status-wrap { max-width: 480px; margin: 26px auto 0; }
.status-desc { font-weight: 400; display: block; margin-top: 2px; }

/* ===== QUICK ACTIONS ===== */
.quick-section { padding-top: 8px; padding-bottom: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; font-family: inherit; transition: border-color 0.2s, transform 0.15s;
}
.quick-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-2px); }
.quick-card.active { background: #0d1117; border-color: var(--blue); box-shadow: 0 0 0 1px rgba(59,130,246,0.35) inset; }
.quick-card span { font-size: 0.74rem; font-weight: 600; color: var(--text); text-align: center; }
.quick-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

@media (max-width: 480px) {
    .quick-grid { gap: 8px; }
    .quick-card { padding: 13px 6px; }
    .quick-icon { width: 38px; height: 38px; font-size: 1rem; }
    .quick-card span { font-size: 0.68rem; }
}

/* ===== TAB SLIDER (icon-card panels) ===== */
.tabs-section { padding-top: 18px; }
.tab-viewport { overflow: hidden; margin-top: 16px; border-radius: var(--radius); }
.tab-track { display: flex; width: 400%; transition: transform 0.35s ease; }
.tab-panel { width: 25%; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.tab-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; display: flex; gap: 14px; align-items: flex-start;
}
.tab-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.tab-card-body { flex: 1; min-width: 0; }
.tab-card-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.tab-card-body p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.tab-panel[data-panel="info"] .tab-card,
.tab-panel[data-panel="info"] { gap: 10px; }
@media (min-width: 600px) {
    .tab-panel { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 12px; }
    .tab-panel[data-panel="info"] { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SECTION ===== */
.section { padding: 44px 20px; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 1.32rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.section-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; max-width: 560px; }

/* ===== CARDS GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.p-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.p-card:hover { border-color: rgba(59,130,246,0.35); transform: translateY(-2px); box-shadow: var(--shadow); }
.p-card.highlight { border-color: var(--blue); background: linear-gradient(160deg, #161b22 0%, #10192c 100%); position: relative; }
.p-card .card-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 14px; }
.p-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.p-card p  { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.harga-mulai { color: var(--blue); font-weight: 700; font-size: 0.85rem; margin-top: 8px; }

/* Paket card */
.paket-card { text-align: center; position: relative; }
.paket-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 700;
    padding: 4px 13px; border-radius: 20px; letter-spacing: 0.4px; white-space: nowrap;
    display: flex; align-items: center; gap: 5px; box-shadow: 0 4px 10px rgba(59,130,246,0.4);
}
.paket-speed { font-size: 2.1rem; font-weight: 800; color: var(--blue); margin: 6px 0 2px; }
.paket-nama { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.paket-price { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.paket-price span { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.paket-desc { font-size: 0.8rem; color: var(--muted); min-height: 38px; }
.paket-card .btn-p { margin-top: 16px; }

/* Voucher / Daftar cards */
.badge-soon {
    background: rgba(129,140,248,0.15); color: var(--purple); border: 1px solid rgba(129,140,248,0.3);
    font-size: 0.62rem; font-weight: 700; padding: 2px 9px; border-radius: 12px; margin-left: 6px; vertical-align: middle;
}

/* ===== STATUS JARINGAN ===== */
.status-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; border: 1px solid; }
.status-bar.normal      { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #22c55e; }
.status-bar.gangguan    { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #ef4444; }
.status-bar.maintenance { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #f59e0b; }
.status-bar.info        { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #3b82f6; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
.status-bar.normal .status-dot { background: #22c55e; }
.status-bar.gangguan .status-dot { background: #ef4444; }
.status-bar.maintenance .status-dot { background: #f59e0b; }
.status-bar.info .status-dot { background: #3b82f6; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ===== FORM ===== */
.p-form { display: flex; flex-direction: column; gap: 14px; }
.p-form label { font-size: 0.81rem; color: var(--muted); margin-bottom: 4px; display: block; font-weight: 500; }
.p-form input, .p-form select, .p-form textarea {
    width: 100%; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 11px 14px; font-size: 0.9rem; color: var(--text); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.p-form input:focus, .p-form select:focus, .p-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.p-form select option { background: var(--bg-card2); }
.p-form textarea { resize: vertical; min-height: 80px; }

.wa-status { font-size: 0.74rem; margin-top: 5px; min-height: 16px; display: flex; align-items: center; gap: 5px; }
.wa-status.ok  { color: var(--green); }
.wa-status.err { color: var(--red); }

/* ===== BUTTONS ===== */
.btn-p {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 22px; border-radius: var(--radius-sm); font-size: 0.89rem; font-weight: 700;
    cursor: pointer; border: none; transition: 0.2s; text-decoration: none; font-family: inherit;
}
.btn-p:active { transform: scale(0.97); }
.btn-p.primary   { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn-p.primary:hover  { filter: brightness(1.08); color: #fff; }
.btn-p.secondary { background: var(--bg-card2); color: var(--text); border: 1px solid var(--border); }
.btn-p.secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-p.success   { background: var(--green); color: #fff; }
.btn-p.success:hover { filter: brightness(1.08); color: #fff; }
.btn-p.full { width: 100%; }
.btn-p.sm { padding: 7px 14px; font-size: 0.82rem; }

/* ===== STAT MINI ===== */
.stat-mini { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-mini .sm-label { font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.stat-mini .sm-val   { font-size: 1.45rem; font-weight: 800; }
.stat-mini .sm-sub   { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ===== ALERT (inline) ===== */
.p-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.83rem; border: 1px solid; display: flex; align-items: flex-start; gap: 10px; }
.p-alert.success { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.25);  color: #22c55e; }
.p-alert.danger  { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.25);  color: #ef4444; }
.p-alert.info    { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); color: #60a5fa; }
.p-alert.warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: #f59e0b; }

/* ===== TOAST (hasil submit) ===== */
.toast-alert {
    position: fixed; left: 50%; bottom: -80px; transform: translateX(-50%);
    background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 13px 20px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 9px;
    box-shadow: var(--shadow); z-index: 300; transition: bottom 0.35s ease; max-width: 92vw;
}
.toast-alert.success { color: var(--green); border-color: rgba(34,197,94,0.3); }
.toast-alert.danger  { color: var(--red);   border-color: rgba(239,68,68,0.3); }
.toast-alert.show { bottom: 88px; }
@media (min-width: 769px) { .toast-alert.show { bottom: 24px; } }

/* ===== DIVIDER ===== */
.p-divider { border: none; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }

/* ===== FOOTER ===== */
.portal-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; margin-top: 44px; }
.portal-footer p { color: var(--muted); font-size: 0.82rem; }
.portal-footer .footer-contact { color: var(--text); font-weight: 600; margin-bottom: 6px; }
.portal-footer .wa-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff;
    padding: 11px 22px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700;
    margin-bottom: 16px; text-decoration: none; transition: background 0.2s;
}
.portal-footer .wa-btn:hover { background: #1ebe57; color: #fff; }

/* ===== WA FLOATING BUTTON ===== */
.wa-float {
    position: fixed; right: 18px; bottom: 84px; width: 54px; height: 54px;
    background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 6px 18px rgba(37,211,102,0.45); z-index: 200; transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (min-width: 769px) { .wa-float { bottom: 24px; } }

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: rgba(13,17,23,0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
    align-items: center; justify-content: space-around;
}
.bottom-nav a, .bottom-nav button {
    background: none; border: none; color: var(--muted); font-family: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.62rem; font-weight: 600;
    flex: 1; padding: 4px 0; cursor: pointer;
}
.bottom-nav a i, .bottom-nav button i { font-size: 1.05rem; }
.bottom-nav-cta {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple)) !important;
    color: #fff !important; margin-top: -22px; box-shadow: 0 6px 16px rgba(59,130,246,0.45);
    flex: 0 0 48px !important;
}
.bottom-nav-cta i { font-size: 1.2rem !important; }
@media (max-width: 768px) { .bottom-nav { display: flex; } }

/* ===== MODAL ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(5,8,12,0.72);
    backdrop-filter: blur(3px); z-index: 400; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-card); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
    border-radius: var(--radius) var(--radius) 0 0; padding: 26px 22px calc(env(safe-area-inset-bottom) + 22px);
    position: relative; border: 1px solid var(--border); border-bottom: none;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
    position: absolute; top: 16px; right: 16px; background: var(--bg-card2); border: 1px solid var(--border);
    color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
}
.modal-close:hover { color: var(--text); border-color: var(--blue); }
.modal-head { text-align: center; margin-bottom: 20px; }
.modal-icon {
    width: 50px; height: 50px; border-radius: 14px; background: rgba(59,130,246,0.15); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin: 0 auto 12px;
}
.modal-head h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.modal-head p { font-size: 0.82rem; color: var(--muted); }

@media (min-width: 600px) {
    .modal-overlay { align-items: center; }
    .modal-box { border-radius: var(--radius); border-bottom: 1px solid var(--border); animation: fadeScale 0.2s ease; }
    @keyframes fadeScale { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero { padding: 40px 16px 32px; }
    .section { padding: 32px 16px; }
    .paket-speed { font-size: 1.7rem; }
    .quick-section { padding-bottom: 4px; }
}

@media (max-width: 768px) {
    /* hero rata kiri + tombol sejajar */
    .hero { text-align: left; }
    .hero p { margin: 0 0 26px; max-width: 100%; }
    .hero-btns { justify-content: flex-start; flex-wrap: nowrap; }
    .hero-btns .btn-p { flex: 1 1 0; padding: 11px 8px; font-size: 0.78rem; white-space: nowrap; }
    .status-wrap { margin-left: 0; margin-right: 0; max-width: 100%; }

    /* status jadi 1 baris */
    .status-bar { justify-content: center; }
    .status-bar > div { text-align: center; }
    .status-desc { display: inline; margin-top: 0; }
    .status-desc::before { content: " : "; }

    /* tombol WA melayang disembunyikan, WA di footer tetap */
    .wa-float { display: none; }

    /* tombol + bottom-nav tidak terlalu naik */
    .bottom-nav-cta { margin-top: -10px; width: 44px; height: 44px; }
    .bottom-nav-cta i { font-size: 1.1rem !important; }

    /* tab card sedikit lebih ramping */
    .tab-card { padding: 13px; gap: 10px; }
    .tab-card-icon { width: 38px; height: 38px; font-size: 1rem; }

    /* wrapper nyatu: icon row + panel jadi 1 card */
    .tabs-section { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 14px; }
    #tabIcons { background: transparent; }
    .quick-card { background: #0d1117; }
    .tab-viewport { margin-top: 12px; border-radius: var(--radius-sm); }
}

@media (max-width: 600px) {
    /* paket: 2 kolom, kartu ke-3 full width */
    #paket .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    #paket .grid-3 .paket-card:nth-child(3) { grid-column: 1 / -1; }
    .paket-card { padding: 16px 10px; }
    .paket-speed { font-size: 1.5rem; margin: 4px 0 0; }
    .paket-nama { font-size: 0.72rem; margin-bottom: 8px; }
    .paket-price { font-size: 0.98rem; }
    .paket-desc { font-size: 0.72rem; min-height: 0; }
    .paket-card .btn-p { margin-top: 10px; padding: 9px 10px; font-size: 0.78rem; }
}