@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════
   ALXZY STORE — Premium Dark UI v2
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-card2: #111111;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);

    --primary: #ffffff;
    --primary-d: #ededed;
    --primary-light: rgba(255, 255, 255, 0.1);
    --primary-glow: rgba(255, 255, 255, 0.05);

    --accent: #0ea5e9;
    --accent-light: rgba(14, 165, 233, 0.1);
    --accent-glow: rgba(14, 165, 233, 0.25);

    --pink: #ec4899;
    --pink-light: rgba(236, 72, 153, 0.12);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);

    --text: #ededed;
    --text-muted: #a1a1aa;
    --text-dim: #52525b;

    --radius: 8px;
    --radius-sm: 4px;
    --radius-xl: 12px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
    --glow-p: 0 0 0 transparent;
    --glow-a: 0 0 0 transparent;

    --mono: 'JetBrains Mono', monospace;
    --font: 'Outfit', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Noise Background ──────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    font-family: 'Outfit', sans-serif;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--text);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-nav {
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 0 24px var(--primary-glow);
    letter-spacing: -0.01em;
}

.btn-nav:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 32px var(--primary-glow);
}

/* ─── Developer portal ─────────────────────────────────── */
.auth-shell,
.docs-page {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    backdrop-filter: blur(18px);
    border-color: rgba(255, 255, 255, .14)
}

.auth-card h1 {
    font-size: 36px;
    line-height: 1.05;
    margin: 12px 0
}

.auth-kicker {
    color: var(--accent);
    font: 700 12px var(--mono);
    text-transform: uppercase;
    letter-spacing: .1em
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px
}

.auth-switch a,
.docs-note a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none
}

.oauth-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 12px
}

.oauth-note i {
    color: #f87171;
    font-size: 16px
}

.portal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: 72px 0 44px
}

.portal-header .page-sub {
    margin: 0
}

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

.portal-card,
.orders-card {
    overflow: hidden
}

.portal-card .card-body {
    padding: 24px
}

.api-key-preview {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 14px;
    border-radius: 10px;
    margin: 18px 0
}

.api-key-preview span {
    font-size: 11px;
    color: var(--success);
    font-weight: 700
}

.new-key {
    display: block;
    margin-top: 10px;
    word-break: break-all;
    color: var(--text)
}

.portal-stat strong {
    display: block;
    font-size: 42px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.portal-stat span {
    color: var(--text-muted)
}

.orders-card {
    margin-top: 18px
}

.docs-page {
    display: block
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 70px
}

.doc-card {
    padding: 24px
}

.doc-card h2 {
    font-size: 21px;
    margin: 12px 0 6px
}

.doc-card p,
.docs-note p {
    color: var(--text-muted);
    font-size: 14px
}

.doc-method {
    display: inline-block;
    font: 700 11px var(--mono);
    padding: 5px 9px;
    border-radius: 6px
}

.doc-method.get {
    background: var(--success-light);
    color: var(--success)
}

.doc-method.post {
    background: var(--accent-light);
    color: var(--accent)
}

pre {
    margin-top: 18px;
    padding: 16px;
    overflow: auto;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    color: #bae6fd;
    font: 12px/1.6 var(--mono)
}

.docs-note {
    padding: 26px;
    grid-column: span 2
}

.docs-note i {
    color: var(--accent);
    font-size: 22px
}

.docs-note h3 {
    margin: 12px 0 7px
}

.docs-note .btn {
    margin-top: 18px
}

.developer-cta {
    max-width: 1160px;
    margin: 0 auto 80px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(14, 165, 233, .25);
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(14, 165, 233, .12), rgba(139, 92, 246, .08));
    backdrop-filter: blur(16px)
}

.developer-cta h2 {
    font-size: 26px;
    margin: 4px 0
}

.developer-cta p {
    color: var(--text-muted);
    font-size: 14px
}

.developer-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.status-badge {
    font: 700 10px var(--mono);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08)
}

.status-done {
    color: var(--success)
}

.status-pending {
    color: var(--warning)
}

.status-failed {
    color: var(--danger)
}

.empty-table {
    text-align: center;
    color: var(--text-dim);
    padding: 24px
}

/* ─── Page Layout ───────────────────────────────────────── */
.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px 60px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.page-header {
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    animation: fadeSlideDown 0.6s ease both;
}

.page-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff 0%, rgba(139, 92, 246, 0.9) 40%, var(--accent) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    animation: fadeSlideDown 0.6s 0.1s ease both;
}

.page-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeSlideDown 0.6s 0.2s ease both;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeSlideDown 0.6s 0.25s ease both;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px var(--primary-glow);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.6s 0.3s ease both;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 28px;
    text-align: center;
    min-width: 105px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-p);
}

.stat-num {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* ─── Tabs ──────────────────────────────────────────────── */
.tabs-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    animation: fadeSlideUp 0.5s 0.4s ease both;
}

.tab-btn {
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-glass);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.tab-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1px 7px;
    font-weight: 700;
}

/* ─── Products Grid ─────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.tab-panel {
    animation: fadeSlideUp 0.35s ease both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Product Card ──────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-p);
    background: var(--bg-card2);
}

.product-card.selected {
    border-color: var(--primary);
    background: var(--bg-card2);
    box-shadow: 0 0 0 2px var(--primary-glow), var(--glow-p);
}

.product-card.selected::before {
    opacity: 1;
}

.product-card-inner {
    padding: 24px;
}

/* row: badge + subtype pill side-by-side */
.product-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 3px 10px;
}

/* auto-detect subtype pills */
.product-subtype-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 3px 9px;
    border: 1px solid transparent;
}

.product-subtype-private {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
}

.product-subtype-public {
    color: var(--accent);
    background: var(--accent-light);
    border-color: rgba(6, 182, 212, 0.25);
}

.product-subtype-shared {
    color: var(--warning);
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.25);
}

.product-subtype-premium {
    color: var(--pink);
    background: var(--pink-light);
    border-color: rgba(236, 72, 153, 0.25);
}

.product-subtype-starter {
    color: var(--success);
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.25);
}

.product-subtype-vip {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
}

.product-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.2;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.spec-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.spec-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.spec-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 11px;
    color: var(--primary);
    flex-shrink: 0;
}

.spec-val {
    color: var(--text);
    font-weight: 700;
    font-family: var(--mono);
    font-size: 11.5px;
}

.product-note {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--accent-light);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
}

.product-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.product-price span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 3px;
}

.btn-order {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font);
    box-shadow: 0 4px 16px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-order:active {
    transform: scale(0.97);
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state .sub {
    font-size: 13px;
    opacity: 0.7;
}

/* ─── Features Section ──────────────────────────────────── */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 52px;
    margin-bottom: 80px;
    animation: fadeSlideUp 0.5s 0.5s ease both;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    background: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Payment & QRIS ────────────────────────────────────── */
.payment-container {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 28px;
}

/* ─── Card ──────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeSlideUp 0.4s ease both;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card2);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-body {
    padding: 22px;
}

/* ─── Order Summary ─────────────────────────────────────── */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-glass);
}

.order-summary-row:nth-child(odd) {
    background: transparent;
}

.order-summary-row span:first-child {
    color: var(--text-muted);
}

.order-summary-row.total {
    background: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-weight: 700;
    margin-top: 4px;
}

/* ─── QRIS ──────────────────────────────────────────────── */
.qris-wrap {
    padding: 28px 22px;
    text-align: center;
}

.qris-label {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.qris-img {
    width: 220px;
    height: 220px;
    border-radius: var(--radius);
    border: 3px solid rgba(139, 92, 246, 0.3);
    padding: 8px;
    background: #fff;
    display: block;
    margin: 0 auto 18px;
    box-shadow: var(--glow-p);
    animation: qrisPulse 3s ease-in-out infinite;
}

@keyframes qrisPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.45);
    }
}

.qris-amount {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.qris-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--warning);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: var(--mono);
}

.countdown-wrap.danger {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.status-polling {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 12px 0;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulseDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ─── Form ──────────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-dim);
}

.form-mono {
    font-family: var(--mono);
    font-size: 13px;
}

.input-hint {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 5px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-danger {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
}

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

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.6);
    animation: modalUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (min-width: 580px) {
    .modal-overlay {
        align-items: center;
    }

    .modal {
        border-radius: 24px;
        animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
}

@keyframes modalUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalScale {
    from {
        transform: scale(0.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card2);
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.modal-close {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card2);
}

/* ─── Success Page ──────────────────────────────────────── */
.success-container {
    max-width: 520px;
    margin: 0 auto;
    padding-top: 32px;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.server-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.server-info-item {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.server-info-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.server-info-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
}

/* ─── Renewal ───────────────────────────────────────────── */
.renewal-container {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 28px;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.duration-option {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-option:hover {
    border-color: var(--border-hover);
}

.duration-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 16px var(--primary-glow);
}

.duration-days {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.duration-label {
    font-size: 11px;
    color: var(--text-muted);
    margin: 3px 0;
}

.duration-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

/* ─── Admin styles ──────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 66px);
    position: relative;
}

/* Mobile Header */
.admin-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 66px;
    z-index: 90;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.btn-sidebar-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sidebar-toggle:hover {
    background: var(--primary-light);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.admin-sidebar {
    width: 260px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.admin-main {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.sidebar-section {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 20px 10px 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    user-select: none;
    border: 1px solid transparent;
}

.sidebar-item:hover {
    color: var(--text);
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.sidebar-item.active {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary-light), transparent);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

.sidebar-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

/* Removed display: none for admin-section */

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

thead th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-done,
.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-pending,
.badge-deploying {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-failed,
.badge-cancelled,
.badge-expired {
    background: var(--danger-light);
    color: var(--danger);
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    min-width: 240px;
    max-width: 380px;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

@keyframes toastIn {
    from {
        transform: translateX(40px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 24px;
    font-size: 12.5px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

/* ─── Spinner ───────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Position helpers ──────────────────────────────────── */
.position-relative {
    position: relative;
}

.text-muted {
    color: var(--text-muted);
}

.mt-8 {
    margin-top: 8px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0 18px;
    }

    .page-wrap {
        padding: 0 18px 48px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .admin-mobile-header {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 200;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        padding: 0 14px 28px;
        margin-top: 18px;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: unset;
    }
}

/* ─── Chat Widget ───────────────────────────────────────── */
.chat-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.6);
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    height: 400px;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-box.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 12px 12px 12px 2px;
    font-size: 13px;
    width: fit-content;
    max-width: 90%;
    word-break: break-word;
}

.chat-sender {
    font-weight: 700;
    color: var(--primary);
    font-size: 11px;
    display: inline-block;
    margin-right: 6px;
}

.chat-time {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-text {
    margin-top: 4px;
    color: var(--text);
    line-height: 1.4;
}

.chat-form {
    padding: 14px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@media (max-width: 480px) {
    .chat-box {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%);
    }

    @media(max-width:700px) {

        .portal-header,
        .developer-cta {
            align-items: flex-start;
            flex-direction: column
        }

        .portal-grid,
        .docs-grid {
            grid-template-columns: 1fr
        }

        .docs-note {
            grid-column: span 1
        }

        .auth-card {
            padding: 26px
        }

        .navbar {
            padding: 0 16px
        }

        .navbar-links .nav-link {
            padding: 8px
        }

        .developer-cta {
            margin-left: 20px;
            margin-right: 20px;
            padding: 24px
        }
    }

    .chat-box.show {
        transform: translateY(0);
    }

    .chat-float-btn {
        bottom: 16px;
        right: 16px;
    }
}

@media(max-width:700px) {

    .portal-header,
    .developer-cta {
        align-items: flex-start;
        flex-direction: column
    }

    .portal-grid,
    .docs-grid {
        grid-template-columns: 1fr
    }

    .docs-note {
        grid-column: span 1
    }

    .auth-card {
        padding: 26px
    }

    .navbar {
        padding: 0 16px
    }

    .navbar-links .nav-link {
        padding: 8px
    }

    .developer-cta {
        margin-left: 20px;
        margin-right: 20px;
        padding: 24px
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 36px;
    }

    .stat-card {
        min-width: 80px;
        padding: 12px 16px;
    }

    .stats-bar {
        gap: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .duration-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}