/* =============================================================
   BASE
   ============================================================= */

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #1f2937;
    background: #fff;
    line-height: 1.6;
}

a   { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Prevent inline SVGs from expanding unexpectedly */
svg {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.container  { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.muted       { color: #6b7280; }


/* =============================================================
   NAVBAR
   ============================================================= */

.navbar {
    background: #110c2a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #a78bfa;
    letter-spacing: -.5px;
    flex-shrink: 0;
}

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

.nav-links a {
    padding: 8px 14px;
    color: #c4b5fd;
    font-weight: 500;
    font-size: .93rem;
    border-radius: 6px;
    transition: color .18s, background .18s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(167,139,250,.12);
}

.nav-cta {
    background: #7c3aed !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
}

.nav-cta:hover { background: #6d28d9 !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c4b5fd;
    margin: 5px 0;
    border-radius: 2px;
}


/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all .18s;
}

.btn-lg   { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm   { padding: 8px 16px;  font-size: .85rem; }
.btn-full { width: 100%; display: block; }

/* Amber - main CTA (unique vs reference's indigo) */
.btn-amber              { background: #f59e0b; color: #1c0a00; }
.btn-amber:hover        { background: #d97706; }

.btn-hero-outline        { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.25); color: #fff; }
.btn-hero-outline:hover  { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.btn-violet              { background: #7c3aed; color: #fff; }
.btn-violet:hover        { background: #6d28d9; }

.btn-violet-outline      { border: 2px solid #7c3aed; color: #7c3aed; background: transparent; }
.btn-violet-outline:hover { background: #7c3aed; color: #fff; }

.btn-white               { background: #fff; color: #1c0a00; }
.btn-white:hover         { background: #fef3c7; }

.btn-wa  { background: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover { background: #1aae55; }

/* legacy aliases used in inner pages */
.btn-sky              { background: #7c3aed; color: #fff; }
.btn-sky:hover        { background: #6d28d9; }
.btn-sky-outline      { border: 2px solid #7c3aed; color: #7c3aed; background: transparent; }
.btn-sky-outline:hover { background: #7c3aed; color: #fff; }

a.btn-back { display: inline-block; color: #6b7280; padding: 12px 0; }


/* =============================================================
   SECTION SHELLS
   ============================================================= */

.section-white { background: #fff;    padding: 80px 0; }
.section-gray  { background: #f8f7ff; padding: 80px 0; }

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-header p {
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}


/* =============================================================
   HERO -- violet dark, columns SWAPPED (mockup left, text right)
   ============================================================= */

.hero-full {
    background: #0c0919;
    background: linear-gradient(135deg, #0c0919 0%, #140d2e 40%, #1e1050 100%);
    color: #fff;
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Unique dot-grid texture */
.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(167,139,250,.07) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.hero-full > .container { position: relative; z-index: 1; }

/* Flex layout - mockup LEFT, text RIGHT */
.hero-split {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-left {
    flex: 0 0 52%;
    max-width: 52%;
    text-align: left;
}

.hero-right {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 36px 0 48px;
}

/* pill badge */
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(167,139,250,.5);
    background: rgba(124,58,237,.1);
    color: #c4b5fd;
    padding: 6px 14px 6px 10px;
    border-radius: 20px;
    font-size: .81rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-pill-badge svg {
    width: 14px; height: 14px;
    min-width: 14px; min-height: 14px;
    flex-shrink: 0;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: 20px;
}

/* Amber highlight - very different from reference's violet */
.hero-highlight {
    color: #fbbf24;
    text-decoration: underline;
    text-decoration-color: #7c3aed;
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

.hero-desc {
    color: #a09abc;
    font-size: .97rem;
    line-height: 1.75;
    max-width: 510px;
    margin-bottom: 22px;
}

.hero-desc strong { color: #fff; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }

.hero-tags span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b5f8a;
    font-size: .84rem;
}

.hero-tags span svg {
    width: 14px; height: 14px;
    min-width: 14px; min-height: 14px;
    color: #a78bfa;
    flex-shrink: 0;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-sep {
    border: none;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: 28px 0;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat { display: flex; align-items: baseline; gap: 5px; }
.hero-stat strong { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span   { color: #4a3f6b; font-size: .8rem; }
.stat-bullet      { color: #2d2552; font-size: 1.3rem; }


/* =============================================================
   BROWSER MOCKUP (hero right column)
   ============================================================= */

.browser-mock {
    background: #100d26;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(167,139,250,.15);
    box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(167,139,250,.05);
}

.browser-mock-bar {
    background: #18133a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(167,139,250,.08);
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.bdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bdot-r { background: #ef4444; }
.bdot-y { background: #f59e0b; }
.bdot-g { background: #10b981; }

.browser-mock-url {
    flex: 1;
    background: rgba(255,255,255,.05);
    border-radius: 5px;
    padding: 4px 12px;
    color: #4a3f6b;
    font-size: .74rem;
    font-family: monospace;
}

.browser-mock-body { padding: 16px; }

.bmock-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(167,139,250,.07);
}

.bmock-avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2060; flex-shrink: 0; }
.bmock-lines  { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.bmock-line   { height: 7px; background: rgba(167,139,250,.1); border-radius: 4px; }
.bmock-dash   { width: 22px; height: 7px; background: rgba(167,139,250,.1); border-radius: 4px; }

.bmock-hero-area {
    background: rgba(124,58,237,.08);
    border-radius: 8px;
    padding: 18px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(124,58,237,.15);
}

.bmock-cta {
    display: inline-block;
    background: #f59e0b;
    color: #1c0a00;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .72rem;
    margin-top: 12px;
    font-weight: 600;
}

.bmock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }

.bmock-card { padding: 10px; border-radius: 8px; }
.bmock-card-avatar { width: 26px; height: 26px; border-radius: 8px; background: rgba(167,139,250,.15); }

/* floating badge cards */
.float-badge {
    position: absolute;
    background: #18133a;
    border: 1px solid rgba(167,139,250,.18);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    z-index: 10;
}

.float-badge-tr { top: 0;      right: 0; }
.float-badge-bl { bottom: 8px; left: -10px; }

.float-badge-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(124,58,237,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a78bfa;
    overflow: hidden;
}

.float-badge-icon svg { width: 17px; height: 17px; flex-shrink: 0; }
.float-badge-icon-green { color: #10b981; background: rgba(16,185,129,.15); }

.float-badge-label {
    font-size: .63rem;
    color: #4a3f6b;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    margin-bottom: 2px;
}

.float-badge-value { font-size: .84rem; color: #e2d9ff; font-weight: 700; }


/* =============================================================
   TRUST BAR
   ============================================================= */

.trust-bar {
    background: #fff;
    border-bottom: 1px solid #ede9fe;
    box-shadow: 0 2px 10px rgba(124,58,237,.05);
}

.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    border-right: 1px solid #f3f0ff;
}

.trust-item:last-child { border-right: none; }

.trust-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
    overflow: hidden;
}

.trust-icon svg    { width: 22px; height: 22px; flex-shrink: 0; }
.trust-item strong { display: block; font-size: .92rem; color: #0f172a; }
.trust-item small  { color: #6b7280; font-size: .8rem; }


/* =============================================================
   BENEFIT CARDS
   ============================================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 28px;
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #ede9fe;
    transition: box-shadow .2s, transform .2s;
}

.benefit-card:hover {
    box-shadow: 0 8px 30px rgba(124,58,237,.1);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}

.benefit-icon svg { width: 26px; height: 26px; color: #fff; flex-shrink: 0; }

.benefit-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.benefit-amber  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.benefit-teal   { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.benefit-rose   { background: linear-gradient(135deg, #e11d48, #fb7185); }

/* legacy */
.benefit-blue   { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.benefit-green  { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.benefit-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.benefit-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }

.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;  color: #0f172a; }
.benefit-card p  { color: #6b7280; font-size: .92rem; line-height: 1.6; }


/* =============================================================
   TYPE CARDS
   ============================================================= */

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px,1fr));
    gap: 24px;
}

.type-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #ede9fe;
    transition: border-color .2s, box-shadow .2s;
}

.type-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 6px 24px rgba(124,58,237,.12);
}

.type-icon {
    width: 48px; height: 48px;
    background: #f5f3ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #7c3aed;
    overflow: hidden;
}

.type-icon svg { width: 24px; height: 24px; flex-shrink: 0; }
.type-card h3  { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.type-card ul  { list-style: none; margin-bottom: 16px; }

.type-card ul li {
    color: #6b7280;
    font-size: .88rem;
    padding: 4px 0 4px 16px;
    position: relative;
}

.type-card ul li::before { content: '-'; position: absolute; left: 0; color: #c4b5fd; }

.type-badge {
    display: inline-block;
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 600;
}


/* =============================================================
   PRICING
   ============================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    border: 2px solid #ede9fe;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}

.price-card:hover {
    box-shadow: 0 10px 40px rgba(124,58,237,.1);
    transform: translateY(-4px);
}

.price-card.price-popular {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124,58,237,.18);
}

.price-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .05em;
}

.price-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #7c3aed;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.1;
}

.price-amount span { font-size: 1rem; font-weight: 500; color: #6b7280; }

.price-desc { color: #6b7280; font-size: .88rem; margin-bottom: 22px; min-height: 38px; }

.price-features { list-style: none; margin: 24px 0 28px; }

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f3ff;
    color: #374151;
    font-size: .9rem;
}

.price-features li:last-child { border-bottom: none; }

.check-icon { width: 18px; height: 18px; color: #7c3aed; flex-shrink: 0; margin-top: 2px; }

.price-note { text-align: center; margin-top: 28px; color: #6b7280; font-size: .88rem; }
.price-note strong { color: #0f172a; }


/* =============================================================
   STEPS
   ============================================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 36px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #ede9fe, #7c3aed, #ede9fe);
    z-index: 0;
}

.step-card { text-align: center; position: relative; z-index: 1; }

.step-number {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(124,58,237,.4);
}

.step-card h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.step-card p  { color: #6b7280; font-size: .88rem; line-height: 1.6; max-width: 200px; margin: 0 auto; }


/* =============================================================
   FEATURES
   ============================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ede9fe;
    transition: box-shadow .2s;
}

.feature-item:hover { box-shadow: 0 4px 20px rgba(124,58,237,.08); }

.feature-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    overflow: hidden;
}

.feature-icon svg { width: 22px; height: 22px; flex-shrink: 0; }

.feature-item h4 { font-size: .97rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.feature-item p  { color: #6b7280; font-size: .87rem; line-height: 1.55; }


/* =============================================================
   TESTIMONIALS
   ============================================================= */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #ede9fe;
    box-shadow: 0 2px 12px rgba(124,58,237,.05);
    position: relative;
}

/* Unique quote mark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 14px; right: 20px;
    font-size: 5rem;
    line-height: 1;
    color: #ede9fe;
    font-family: Georgia, serif;
}

.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }

.testimonial-card > p {
    color: #374151;
    font-size: .93rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: .9rem; color: #0f172a; }
.testimonial-author small  { color: #6b7280; font-size: .8rem; }


/* =============================================================
   FAQ
   ============================================================= */

.faq-list { max-width: 820px; margin: 0 auto; }

details {
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}

details:hover     { box-shadow: 0 2px 12px rgba(124,58,237,.08); }
details[open]     { border-color: #c4b5fd; }

details summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: #0f172a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
    content: '+';
    font-size: 1.3rem;
    color: #7c3aed;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .2s;
}

details[open] summary      { color: #7c3aed; }
details[open] summary::after { transform: rotate(45deg); }

details > p {
    padding: 0 22px 18px;
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.65;
}


/* =============================================================
   ARTICLE CARDS (homepage) - layout lama (dipertahankan untuk halaman artikel)
   ============================================================= */

.artikel-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
    gap: 24px;
}
.artikel-home-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ede9fe;
    transition: box-shadow .2s, transform .2s;
}
.artikel-home-card:hover { box-shadow: 0 8px 28px rgba(124,58,237,.1); transform: translateY(-3px); }
.artikel-home-card img    { width: 100%; height: 190px; object-fit: cover; }
.artikel-home-placeholder { width: 100%; height: 190px; background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.artikel-home-body       { padding: 22px; }
.artikel-home-body small { color: #9ca3af; font-size: .8rem; }
.artikel-home-body h3    { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 8px 0 10px; line-height: 1.4; }
.artikel-home-body p     { color: #6b7280; font-size: .88rem; line-height: 1.6; margin-bottom: 14px; }
.read-more       { color: #7c3aed; font-size: .88rem; font-weight: 600; }
.read-more:hover { color: #6d28d9; text-decoration: underline; }

/* =============================================================
   NEWS SECTION (homepage - layout baru bergaya portal berita)
   ============================================================= */

/* Header */
.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.news-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.2;
}
.news-title span { color: #7c3aed; }
.news-subtitle   { font-size: .92rem; color: #6b7280; margin: 0; }
.news-see-all    {
    font-size: .88rem;
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s;
}
.news-see-all:hover { color: #6d28d9; text-decoration: underline; }

/* Main grid: featured + sidebar */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* -- Meta row -- */
.news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.news-cat  { color: #7c3aed; }
.news-dot  { color: #d1d5db; }

/* -- Featured article -- */
.news-featured { display: flex; flex-direction: column; gap: 0; }

.news-featured-img-wrap {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.news-featured-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-featured-img-wrap:hover img { transform: scale(1.04); }
.news-featured-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.news-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,.92);
    color: #374151;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.news-featured-body { padding: 20px 0 0; }
.news-featured-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 10px;
}
.news-featured-body h2 a { color: inherit; text-decoration: none; }
.news-featured-body h2 a:hover { color: #7c3aed; }
.news-featured-body p {
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* -- Mini articles (sidebar) -- */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    overflow: hidden;
}
.news-mini {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.news-mini:last-child { border-bottom: none; }
.news-mini:hover { background: #faf5ff; }

.news-mini-img {
    flex-shrink: 0;
    width: 90px; height: 70px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.news-mini-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.news-mini:hover .news-mini-img img { transform: scale(1.06); }
.news-mini-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.news-mini-body { flex: 1; min-width: 0; }
.news-mini-body h3 {
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-mini-body h3 a { color: inherit; text-decoration: none; }
.news-mini-body h3 a:hover { color: #7c3aed; }

/* -- Read more links -- */
.news-read-more {
    font-size: .83rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
    transition: color .15s;
}
.news-read-more:hover       { color: #6d28d9; text-decoration: underline; }
.news-read-more-sm          { font-size: .78rem; }

/* Responsive */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-sidebar { border: 1px solid #f3f4f6; }
}
@media (max-width: 540px) {
    .news-title  { font-size: 1.5rem; }
    .news-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .news-mini-img { width: 76px; height: 60px; }
    .news-featured-body h2 { font-size: 1.15rem; }
}


/* =============================================================
   ARTIKEL PAGE - portal berita style
   ============================================================= */

/* Hero */
.art-hero {
    background: linear-gradient(135deg, #0c0919 0%, #140d2e 50%, #1a1050 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.art-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(124,58,237,.18), transparent);
    pointer-events: none;
}
.art-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}
.art-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.25);
    border-radius: 99px;
    padding: 4px 14px;
    margin-bottom: 12px;
}
.art-hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}
.art-hero-text h1 span { color: #a78bfa; }
.art-hero-text p { font-size: .95rem; color: #9ca3af; margin: 0; max-width: 440px; }

/* Search form */
.art-search-form { flex-shrink: 0; }
.art-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 0 6px 0 14px;
    gap: 8px;
    width: 320px;
    transition: border-color .2s;
}
.art-search-wrap:focus-within { border-color: rgba(124,58,237,.6); background: rgba(255,255,255,.1); }
.art-search-icon { color: #9ca3af; flex-shrink: 0; }
.art-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: .9rem;
    padding: 12px 0;
}
.art-search-wrap input::placeholder { color: #6b7280; }
.art-search-clear {
    color: #9ca3af;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 4px;
    line-height: 1;
    transition: color .15s;
}
.art-search-clear:hover { color: #ef4444; }
.art-search-wrap button {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.art-search-wrap button:hover { background: #6d28d9; }

/* Content area */
.art-content { padding: 56px 0 72px; background: #f9fafb; }

/* Search info bar */
.art-search-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 16px;
    margin-bottom: 28px;
}
.art-search-info svg { color: #7c3aed; flex-shrink: 0; }
.art-search-info strong { color: #111827; }
.art-search-info em { color: #7c3aed; font-style: normal; }
.art-search-info a { color: #7c3aed; font-weight: 600; }

/* Empty state */
.art-empty {
    text-align: center;
    padding: 64px 0;
    color: #6b7280;
}
.art-empty svg { display: block; margin: 0 auto 18px; }
.art-empty p   { margin: 4px 0; font-size: .92rem; }
.art-empty a   { color: #7c3aed; font-weight: 600; }

/* Shared meta row */
.art-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 9px;
}
.art-cat  { color: #7c3aed; }
.art-dot  { color: #d1d5db; }
.art-date { color: #9ca3af; }

/* ── Featured article ── */
.art-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    margin-bottom: 48px;
}
.art-featured-img {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.art-featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.art-featured:hover .art-featured-img img { transform: scale(1.04); }
.art-featured-placeholder {
    width: 100%; height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.art-feat-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: #7c3aed;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.art-featured-body {
    padding: 36px 36px 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.art-featured-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 14px;
}
.art-featured-body h2 a { color: inherit; text-decoration: none; }
.art-featured-body h2 a:hover { color: #7c3aed; }
.art-featured-body > p {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 20px;
}
.art-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #7c3aed;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s, transform .15s;
}
.art-btn-read:hover { background: #6d28d9; transform: translateX(2px); }

/* Divider label */
.art-divider-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: .75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.art-divider-label::before,
.art-divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Article grid ── */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Card */
.art-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s, transform .22s;
}
.art-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    transform: translateY(-4px);
}

/* Card image */
.art-card-img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    flex-shrink: 0;
}
.art-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}
.art-card:hover .art-card-img img { transform: scale(1.07); }
.art-card-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category badge overlay */
.art-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,.92);
    color: #1a2e4a;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 99px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: .01em;
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

/* Card body */
.art-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.art-card-date {
    font-size: .75rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 9px;
}
.art-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e4a;
    line-height: 1.45;
    margin: 0 0 auto;
    padding-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-card-body h3 a { color: inherit; text-decoration: none; }
.art-card-body h3 a:hover { color: #2563eb; }

/* Card footer */
.art-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
}
.art-card-source {
    font-size: .73rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}
.art-card-readbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
    flex-shrink: 0;
}
.art-card-readbtn:hover { color: #1d4ed8; }
.art-card-arrow-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .15s;
}
.art-card-readbtn:hover .art-card-arrow-btn {
    background: #1d4ed8;
    transform: translateX(2px);
}

/* ── Pagination ── */
.art-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.art-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
}
.art-page-btn:hover:not(.art-page-disabled) { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.art-page-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.art-page-numbers { display: flex; align-items: center; gap: 6px; }
.art-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
}
.art-page-num:hover { background: #f5f3ff; border-color: #7c3aed; color: #7c3aed; }
.art-page-active { background: #7c3aed !important; color: #fff !important; border-color: #7c3aed !important; }
.art-page-ellipsis { color: #9ca3af; font-size: .88rem; padding: 0 4px; }
.art-page-info { text-align: center; font-size: .8rem; color: #9ca3af; }

/* Responsive */
@media (max-width: 960px) {
    .art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .art-hero-inner { flex-direction: column; align-items: flex-start; }
    .art-search-wrap { width: 100%; }
    .art-hero-text h1 { font-size: 1.7rem; }
    .art-grid { grid-template-columns: 1fr; }
    .art-card-img { aspect-ratio: 16/9; }
}

/* =============================================================
   ARTIKEL DETAIL PAGE
   ============================================================= */

.art-detail-page {
    background: #f5f7fb;
    min-height: 60vh;
    padding: 28px 0 72px;
}

/* Breadcrumb */
.art-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.art-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.art-breadcrumb a:hover { color: #2563eb; }
.art-breadcrumb svg    { color: #d1d5db; flex-shrink: 0; }
.art-breadcrumb span   { color: #374151; font-weight: 600; }

/* Article wrapper */
.art-detail-wrap {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 40px 48px 48px;
    max-width: 780px;
    margin: 0 auto 48px;
}

/* Meta row */
.art-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.art-detail-cat {
    font-size: .72rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.art-detail-meta-sep { color: #d1d5db; font-size: .85rem; }
.art-detail-date {
    font-size: .72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Title */
.art-detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a2e4a;
    line-height: 1.3;
    margin: 0 0 28px;
}

/* Image */
.art-detail-img-wrap {
    margin-bottom: 32px;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
}
.art-detail-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 14px;
}

/* Body typography */
.art-detail-body {
    font-size: .97rem;
    line-height: 1.8;
    color: #374151;
}
.art-detail-body p {
    margin: 0 0 18px;
}
.art-detail-body p:last-child { margin-bottom: 0; }
.art-detail-body a   { color: #2563eb; }
.art-detail-body h2  { font-size: 1.25rem; font-weight: 700; color: #1a2e4a; margin: 28px 0 12px; }
.art-detail-body h3  { font-size: 1.05rem; font-weight: 700; color: #1a2e4a; margin: 22px 0 10px; }
.art-detail-body ul,
.art-detail-body ol  { padding-left: 22px; margin: 0 0 18px; }
.art-detail-body li  { margin-bottom: 6px; }
.art-detail-body img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.art-detail-body blockquote {
    border-left: 4px solid #2563eb;
    padding: 12px 20px;
    margin: 20px 0;
    background: #eff6ff;
    border-radius: 0 10px 10px 0;
    color: #1e40af;
    font-style: italic;
}

/* Footer */
.art-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.art-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all .15s;
}
.art-back-btn:hover { background: #f3f4f6; border-color: #d1d5db; color: #111827; }
.art-detail-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: #9ca3af;
}
.art-share-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, opacity .15s;
}
.art-share-btn:hover { transform: scale(1.12); opacity: .85; }
.art-share-wa   { background: #25d366; color: #fff; }
.art-share-copy { background: #e5e7eb; color: #374151; }

/* Related articles */
.art-related { max-width: 780px; margin: 0 auto; }
.art-related-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e9ecef;
}
.art-related-head h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2e4a;
    margin: 0;
}
.art-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive */
@media (max-width: 780px) {
    .art-detail-wrap  { padding: 28px 22px 32px; border-radius: 14px; }
    .art-detail-title { font-size: 1.4rem; }
    .art-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .art-detail-footer { flex-direction: column; align-items: flex-start; }
    .art-detail-title  { font-size: 1.25rem; }
    .art-related-grid  { grid-template-columns: 1fr; }
}

/* =============================================================
   CTA BOTTOM
   ============================================================= */

.cta-bottom {
    background: #0c0919;
    background: linear-gradient(135deg, #0c0919 0%, #140d2e 40%, #1e1050 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bottom::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(167,139,250,.05) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.cta-bottom > .container { position: relative; z-index: 1; }

.cta-bottom h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; }

.cta-bottom > .container > p {
    font-size: 1.05rem;
    color: #a09abc;
    margin-bottom: 28px;
}

.cta-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.cta-pills span {
    background: rgba(167,139,250,.1);
    border: 1px solid rgba(167,139,250,.2);
    color: #c4b5fd;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 500;
}

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


/* =============================================================
   FOOTER
   ============================================================= */

/* =============================================================
   FOOTER V2 - dark navy portal style
   ============================================================= */

.fv2 { font-family: inherit; }

/* Main area */
.fv2-main {
    background: #0a1628;
    padding: 64px 0 48px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.fv2-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

/* Brand column */
.fv2-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.fv2-logo-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a8e);
    border: 1px solid rgba(56,189,248,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}
.fv2-logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -.3px;
    line-height: 1.2;
}
.fv2-logo-sub {
    font-size: .72rem;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: .01em;
}
.fv2-desc {
    font-size: .88rem;
    line-height: 1.75;
    color: #64748b;
    margin: 0;
    max-width: 320px;
}

/* Nav columns */
.fv2-col-head {
    font-size: .72rem;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 18px;
}
.fv2-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fv2-links a {
    font-size: .875rem;
    color: #64748b;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .15s, padding-left .15s;
}
.fv2-links a:last-child { border-bottom: none; }
.fv2-links a:hover {
    color: #38bdf8;
    padding-left: 6px;
}

/* Contact list */
.fv2-contact-list { display: flex; flex-direction: column; gap: 12px; }
.fv2-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .875rem;
    color: #64748b;
}
.fv2-contact-item svg { flex-shrink: 0; margin-top: 2px; color: #38bdf8; }
.fv2-contact-item a   { color: #64748b; text-decoration: none; transition: color .15s; }
.fv2-contact-item a:hover { color: #38bdf8; }
.fv2-contact-item span { line-height: 1.55; }

/* Bottom bar */
.fv2-bottom {
    background: #060f1e;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.05);
}
.fv2-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Social icons */
.fv2-socials { display: flex; align-items: center; gap: 10px; }
.fv2-social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.fv2-social-btn:hover {
    background: #1e3a5f;
    color: #38bdf8;
    border-color: rgba(56,189,248,.3);
    transform: translateY(-2px);
}
.fv2-social-wa:hover { background: #064e28; color: #25d366; border-color: rgba(37,211,102,.3); }

/* Copyright row */
.fv2-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    font-size: .78rem;
    color: #334155;
    flex-wrap: wrap;
}
.fv2-legal-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fv2-legal-links a    { color: #334155; text-decoration: none; transition: color .15s; }
.fv2-legal-links a:hover { color: #64748b; }
.fv2-legal-links span { color: #1e293b; }

/* Responsive */
@media (max-width: 900px) {
    .fv2-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .fv2-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .fv2-grid       { grid-template-columns: 1fr; gap: 32px; }
    .fv2-main       { padding: 44px 0 36px; }
    .fv2-bottom-row { flex-direction: column; text-align: center; }
    .fv2-legal-links { justify-content: center; }
    .fv2-desc       { max-width: 100%; }
}


/* =============================================================
   OTHER PAGES
   ============================================================= */

.page-head    { text-align: center; padding: 50px 0 20px; }
.page-head h1 { font-size: 2rem; }
.page-head p  { color: #6b7280; margin-top: 8px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px;
    margin: 30px 0;
}

.card    { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(124,58,237,.06); border: 1px solid #ede9fe; }
.card h3 { margin-bottom: 10px; }

.artikel-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.artikel-card a   { color: #7c3aed; font-weight: 600; display: inline-block; margin-top: 8px; }

.konten-halaman         { max-width: 800px; margin: 0 auto; }
.konten-halaman h2      { text-align: left; margin: 24px 0 10px; font-size: 1.3rem; }
.konten-halaman ul      { padding-left: 20px; }
.konten-halaman p       { margin-bottom: 14px; color: #374151; }

.artikel-detail {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(124,58,237,.07);
    border: 1px solid #ede9fe;
}

.artikel-detail h1 { margin-bottom: 8px; font-size: 1.7rem; }
.detail-img        { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin: 20px 0; }
.isi-artikel       { margin: 20px 0; color: #374151; line-height: 1.8; }


/* =============================================================
   LOGIN
   ============================================================= */

.login-body {
    background: linear-gradient(135deg, #0c0919, #1e1050);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.login-box h1     { text-align: center; margin-bottom: 20px; }
.login-box label  { display: block; margin: 12px 0 6px; font-weight: 600; }
.login-box input  { width: 100%; padding: 11px; border: 1px solid #ddd6fe; border-radius: 8px; }
.login-box button { margin-top: 20px; }

.alert         { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error   { background: #fee2e2; color: #b91c1c; }
.alert-success { background: #dcfce7; color: #15803d; }


/* =============================================================
   ADMIN PANEL
   ============================================================= */

.admin-body { background: #f5f3ff; }
.admin-wrap { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: #110c2a;
    color: #c4b5fd;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-brand   { font-size: 1.2rem; font-weight: 700; color: #a78bfa; padding: 0 24px 20px; border-bottom: 1px solid #1e1050; }
.sidebar nav     { margin-top: 16px; }
.sidebar nav a   { display: block; padding: 12px 24px; color: #c4b5fd; }
.sidebar nav a:hover,
.sidebar nav a.active { background: #1e1050; color: #a78bfa; }
.sidebar nav a.logout { margin-top: 30px; color: #f87171; }

.admin-main { flex: 1; }

.admin-topbar {
    background: #fff;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.admin-topbar h1 { font-size: 1.4rem; }
.admin-content   { padding: 28px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(124,58,237,.06);
    display: flex;
    flex-direction: column;
}

.stat-card .num { font-size: 2.2rem; font-weight: 700; color: #7c3aed; }

.panel      { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 10px rgba(124,58,237,.06); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.table             { width: 100%; border-collapse: collapse; }
.table th,
.table td          { text-align: left; padding: 12px; border-bottom: 1px solid #f5f3ff; }
.table th          { color: #6b7280; font-size: .9rem; }

.badge             { padding: 3px 10px; border-radius: 20px; font-size: .78rem; text-transform: capitalize; }
.badge.publish     { background: #dcfce7; color: #15803d; }
.badge.draft       { background: #fef3c7; color: #b45309; }

.link-edit  { color: #7c3aed; margin-right: 10px; }
.link-hapus { color: #ef4444; }

.panel form label { display: block; margin: 16px 0 6px; font-weight: 600; }

.panel form input[type=text],
.panel form textarea,
.panel form select,
.panel form input[type=file] {
    width: 100%;
    padding: 11px;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
}

.panel form textarea { resize: vertical; }

.panel form h2 {
    text-align: left;
    margin: 26px 0 6px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ede9fe;
    padding-bottom: 6px;
}

.panel form button { margin-top: 22px; }

.preview     { margin: 10px 0; }
.preview img { max-width: 200px; border-radius: 8px; display: block; margin-bottom: 4px; }


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 960px) {
    .hero-split {
        flex-direction: column;
        gap: 48px;
    }

    .hero-left {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .hero-right {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 16px 0 40px;
    }

    .hero-title     { font-size: 2.6rem; }
    .hero-actions   { justify-content: center; }
    .hero-tags      { justify-content: center; }
    .hero-stats-row { justify-content: center; }

    .float-badge-tr { top: -16px;  right: -8px; }
    .float-badge-bl { bottom: -16px; left: -8px; }

    .trust-grid { grid-template-columns: repeat(2,1fr); }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(3) { border-top: 1px solid #f3f0ff; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .steps-grid::before { display: none; }
}

@media (max-width: 720px) {
    .hero-full  { padding: 60px 0 56px; }
    .hero-title { font-size: 2rem; }
    .hero-desc  { font-size: .9rem; }

    .hero-actions            { flex-direction: column; align-items: center; }
    .hero-actions .btn       { width: 100%; max-width: 340px; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #110c2a;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 8px 20px rgba(0,0,0,.4);
    }

    .nav-links.open { display: flex; }
    .nav-toggle     { display: block; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .section-white,
    .section-gray  { padding: 56px 0; }

    .section-header    { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.6rem; }

    .cta-bottom h2 { font-size: 1.7rem; }
    .cta-btns      { flex-direction: column; align-items: center; }

    .admin-wrap  { flex-direction: column; }
    .sidebar     { width: 100%; }
    .sidebar nav { display: flex; flex-wrap: wrap; }
    .sidebar nav a { flex: 1; text-align: center; }
}


/* =============================================================
   PORTFOLIO SECTION
   ============================================================= */

.section-porto {
    background: linear-gradient(160deg, #080614 0%, #0c0f2a 45%, #060d1a 100%);
    padding: 88px 0 80px;
    position: relative;
    overflow: hidden;
}

.section-porto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(167,139,250,.05) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-porto > .container { position: relative; z-index: 1; }

/* Header */
.porto-header {
    text-align: center;
    margin-bottom: 52px;
}

.porto-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.porto-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245,158,11,.6);
}

.porto-eyebrow span:last-child {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f59e0b;
}

.porto-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.porto-header p {
    color: #6b7280;
    max-width: 580px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.65;
}

/* Grid */
.porto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 52px;
}

/* Card */
.porto-card {
    border-radius: 14px;
    overflow: hidden;
    background: #171240;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.porto-card > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1;
}

.porto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.7);
}

.porto-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.porto-card:hover img {
    transform: scale(1.04);
}

.porto-no-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1240, #0e0b25);
    color: #2d2552;
}

.porto-card-label {
    padding: 11px 14px 12px;
    background: #171240;
    color: #e2d9ff;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-top: 1px solid rgba(167,139,250,.08);
}

/* CTA buttons */
.porto-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.porto-btn-outline {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s, background .18s;
}

.porto-btn-outline:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.07);
}

/* Porto responsive */
@media (max-width: 1100px) {
    .porto-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .porto-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .porto-header h2 { font-size: 1.65rem; }
    .section-porto { padding: 64px 0 56px; }
}

@media (max-width: 480px) {
    .porto-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .porto-card-label { font-size: .8rem; padding: 28px 10px 10px; }
    .porto-actions { flex-direction: column; }
    .porto-btn-outline { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title       { font-size: 1.7rem; }
    .hero-stat strong { font-size: 1.15rem; }
    .hero-stats-row   { gap: 8px; }

    .float-badge          { padding: 8px 12px; gap: 8px; }
    .float-badge-icon     { width: 30px; height: 30px; }
    .float-badge-value    { font-size: .78rem; }

    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: none; border-bottom: 1px solid #f3f0ff; }
}


/* =============================================================
   AUTH PAGES (login & register)
   ============================================================= */

.auth-page {
    min-height: 100vh;
    background: #0c0919;
    background: linear-gradient(135deg, #0c0919 0%, #140d2e 40%, #1e1050 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(167,139,250,.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.auth-box {
    background: #18133a;
    border: 1px solid rgba(167,139,250,.18);
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #a78bfa;
    letter-spacing: -.5px;
    margin-bottom: 8px;
    text-decoration: none;
}

.auth-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.auth-sub {
    text-align: center;
    color: #6b5f8a;
    font-size: .9rem;
    margin-bottom: 28px;
}

.auth-sub a { color: #a78bfa; font-weight: 600; }
.auth-sub a:hover { color: #c4b5fd; text-decoration: underline; }

.auth-field { margin-bottom: 18px; }

.auth-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 10px;
    color: #fff;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}

.auth-field input::placeholder { color: #4a3f6b; }

.auth-field input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}

.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-divider {
    text-align: center;
    color: #2d2552;
    font-size: .8rem;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(167,139,250,.12);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-back {
    display: block;
    text-align: center;
    color: #4a3f6b;
    font-size: .85rem;
    transition: color .18s;
}

.auth-back:hover { color: #a78bfa; }

/* Nav member state */
.nav-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px !important;
    background: rgba(167,139,250,.1) !important;
    border: 1px solid rgba(167,139,250,.2) !important;
    border-radius: 8px !important;
    color: #c4b5fd !important;
    font-size: .88rem !important;
}

.nav-member:hover { background: rgba(167,139,250,.2) !important; }

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}


/* =============================================================
   MEMBER DASHBOARD
   ============================================================= */

.member-body { background: #0e0b1f; min-height: 100vh; overflow-x: hidden; }

/* Top navbar */
.member-navbar {
    background: #18133a;
    border-bottom: 1px solid rgba(167,139,250,.12);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.member-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.member-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #a78bfa;
    letter-spacing: -.4px;
}

.member-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar-lg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: .85rem;
    flex-shrink: 0;
}

.member-user-info span { color: #c4b5fd; font-size: .9rem; font-weight: 500; }

.btn-logout {
    background: rgba(239,68,68,.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.2);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s;
}

.btn-logout:hover { background: rgba(239,68,68,.22); }

/* Dashboard layout */
.member-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 1024px) { .member-layout { padding: 24px 20px; gap: 20px; } }
@media (max-width: 768px)  { .member-layout { padding: 16px; gap: 0; } }
@media (max-width: 480px)  { .member-layout { padding: 12px; } }

/* Sidebar */
.member-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #18133a;
    border: 1px solid rgba(167,139,250,.12);
    border-radius: 16px;
    padding: 12px;
    position: sticky;
    top: 88px;
}

.member-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #6b5f8a;
    font-size: .9rem;
    font-weight: 500;
    transition: background .18s, color .18s;
    text-decoration: none;
    margin-bottom: 2px;
}

.member-sidebar a svg { width: 17px; height: 17px; flex-shrink: 0; }
.member-sidebar a:hover { background: rgba(124,58,237,.1); color: #c4b5fd; }
.member-sidebar a.active { background: rgba(124,58,237,.18); color: #a78bfa; font-weight: 600; }
.member-sidebar a.logout-link { color: #f87171; margin-top: 12px; }
.member-sidebar a.logout-link:hover { background: rgba(239,68,68,.1); }

/* Main content */
.member-main { flex: 1; min-width: 0; }

/* Welcome banner */
.member-welcome {
    background: linear-gradient(135deg, #1e1050, #2d1b69);
    border: 1px solid rgba(167,139,250,.2);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.member-welcome h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.member-welcome p  { color: #a09abc; font-size: .9rem; }

.welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* Stats cards */
.member-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }

.m-stat-card {
    background: #18133a;
    border: 1px solid rgba(167,139,250,.12);
    border-radius: 14px;
    padding: 20px 22px;
}

.m-stat-card .label { font-size: .8rem; color: #6b5f8a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.m-stat-card .value { font-size: 1.4rem; font-weight: 800; color: #fff; }
.m-stat-card .sub   { font-size: .78rem; color: #4a3f6b; margin-top: 4px; }

.m-stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(124,58,237,.2);
    display: flex; align-items: center; justify-content: center;
    color: #a78bfa;
    margin-bottom: 12px;
}

.m-stat-icon svg { width: 18px; height: 18px; }

/* Section cards */
.m-card {
    background: #18133a;
    border: 1px solid rgba(167,139,250,.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.m-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(167,139,250,.08);
}

.m-card-head h3 { font-size: 1rem; font-weight: 700; color: #e2d9ff; }

.m-card-head a {
    font-size: .8rem;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

/* Profile form */
.m-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.m-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #6b5f8a;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px;
}

.m-field input,
.m-field select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(167,139,250,.18);
    border-radius: 10px;
    color: #e2d9ff;
    font-size: .92rem;
    font-family: inherit;
    outline: none;
    transition: border-color .18s;
}

.m-field input:focus,
.m-field select:focus { border-color: #7c3aed; }

.m-field input[readonly] { color: #4a3f6b; cursor: default; }

/* Package badge */
.paket-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.3);
    color: #c4b5fd;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
}

/* Status badge */
.status-aktif   { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.status-pending { background: rgba(245,158,11,.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,.2);  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; }

/* Quick links */
.quick-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(167,139,250,.1);
    border-radius: 12px;
    text-decoration: none;
    transition: background .18s, border-color .18s;
}

.quick-link-item:hover { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.3); }

.quick-link-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(124,58,237,.15);
    display: flex; align-items: center; justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}

.quick-link-icon svg { width: 17px; height: 17px; }
.quick-link-item strong { display: block; font-size: .88rem; color: #e2d9ff; font-weight: 600; }
.quick-link-item span  { font-size: .78rem; color: #4a3f6b; }

/* =============================================================
   HAMBURGER + SIDEBAR OVERLAY (MOBILE)
   ============================================================= */

/* Hamburger button - hidden on desktop */
.member-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background .15s;
    flex-shrink: 0;
}
.member-hamburger:hover { background: rgba(124,58,237,.1); }
.member-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: #7c3aed;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* Sidebar drawer overlay */
.member-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 299;
    backdrop-filter: blur(2px);
}
.member-sidebar-overlay.show { display: block; }

/* Sidebar head (user info + close btn) - hidden on desktop */
.member-sidebar-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(167,139,250,.12);
    margin-bottom: 8px;
}
.member-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.member-sidebar-close {
    width: 30px; height: 30px;
    border: none;
    background: rgba(124,58,237,.1);
    border-radius: 50%;
    font-size: 1.15rem;
    cursor: pointer;
    color: #7c3aed;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* =============================================================
   MEMBER - RESPONSIVE
   ============================================================= */

/* ── 768px: tablet & mobile ──────────────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .member-nav-inner { padding: 0 16px; height: 56px; }
    .member-brand     { font-size: 1.05rem; }
    .member-user-info span { display: none; }
    .member-hamburger { display: flex; }

    /* Layout - no sidebar space, full width */
    .member-layout { padding: 16px; gap: 0; }

    /* Sidebar → fixed drawer from left */
    .member-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        height: 100vh;
        z-index: 300;
        border-radius: 0 20px 20px 0;
        padding: 0 12px 24px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        box-shadow: 4px 0 32px rgba(0,0,0,.18);
    }
    .member-sidebar.open { transform: translateX(0); }

    /* Show sidebar header */
    .member-sidebar-head { display: flex; }

    /* Restore sidebar links to vertical */
    .member-sidebar a {
        flex: none;
        justify-content: flex-start;
        font-size: .9rem;
        padding: 11px 14px;
        white-space: normal;
        margin-bottom: 2px;
        border-radius: 10px;
    }
    .member-sidebar a svg { display: inline-block; }
    .member-sidebar a.logout-link { margin-top: 12px; }

    /* Main - full width */
    .member-main { width: 100%; min-width: 0; }

    /* Stats */
    .member-stats { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Form */
    .m-form-grid { grid-template-columns: 1fr; }

    /* Quick links */
    .quick-links { grid-template-columns: 1fr; }

    /* Welcome banner */
    .member-welcome { flex-direction: column; text-align: center; padding: 20px; }
    .welcome-avatar { width: 48px; height: 48px; font-size: 1.2rem; }

    /* Cards */
    .m-card { padding: 18px 16px; }
    .m-card-head { flex-wrap: wrap; gap: 8px; }

    /* Domain card header */
    .dc-header { padding: 16px; gap: 12px; }
    .dc-icon   { width: 44px; height: 44px; flex-shrink: 0; }
    .dc-domain-name a { font-size: .95rem; }

    /* Domain info row: 4→2 cols */
    .dc-info-row { grid-template-columns: 1fr 1fr; }
    .dc-info-col {
        border-right: none;
        border-bottom: 1px solid rgba(167,139,250,.08);
        padding: 14px 16px;
    }
    .dc-info-col:nth-child(odd) { border-right: 1px solid rgba(167,139,250,.08); }

    /* Auth */
    .auth-row-2 { grid-template-columns: 1fr; }

    /* Modal: slide up from bottom */
    .renew-overlay { padding: 0; align-items: flex-end; }
    .renew-modal   { border-radius: 20px 20px 0 0; max-width: 100%; max-height: 92vh; }
    .rm-header     { padding: 18px 18px 14px; }
    .rm-meta       { padding: 12px 18px; }
    .rm-options    { padding: 12px 18px; }
    .rm-invoice    { margin: 0 18px 4px; }
    #rmPayDetail   { margin: 0 18px 14px; }
    .rm-footer     { padding: 12px 18px 24px; gap: 8px; }
    #rmPmList      { padding: 12px 18px; }
}

/* ── 480px: small mobile portrait ─────────────────────── */
@media (max-width: 480px) {

    /* Navbar */
    .member-nav-inner { height: 52px; }
    .btn-logout   { padding: 5px 10px; font-size: .78rem; }
    .theme-toggle-btn { width: 32px; height: 32px; }

    /* Sidebar width */
    .member-sidebar { width: 260px; }

    /* Stats */
    .member-stats { gap: 8px; }
    .m-stat-card  { padding: 14px 12px; }
    .m-stat-card .value { font-size: 1.2rem; }
    .m-stat-card .label { font-size: .72rem; }

    /* Cards */
    .m-card       { padding: 16px 14px; margin-bottom: 14px; }
    .m-card-head h3 { font-size: .92rem; }

    /* Domain card */
    .dc-info-col   { padding: 12px 14px; }
    .dc-info-value { font-size: .88rem; }
    .dc-info-label { font-size: .7rem; }

    /* Quick links */
    .quick-link-item { padding: 12px 14px; gap: 10px; }
    .quick-link-icon { width: 32px; height: 32px; border-radius: 8px; }
    .quick-link-item strong { font-size: .84rem; }
    .quick-link-item span   { font-size: .74rem; }

    /* Modal */
    .renew-modal { max-height: 95vh; }
    .rm-header h3 { font-size: .92rem; }
    .rm-header p  { font-size: .78rem; }
    .rm-footer { flex-direction: column-reverse; }
    .rm-btn-bayar { width: 100%; text-align: center; }
    .rm-btn-batal { width: 100%; }
    .rm-inv-row   { font-size: .82rem; }
    .rm-pm-card   { padding: 12px 14px; }
}

/* =============================================================
   LIGHT THEME — scoped page classes
   ============================================================= */
html.light-theme .db-card,
html.light-theme .db-action-card,
html.light-theme .db-stat        { background: #fff; border-color: #e5e7eb; }
html.light-theme .db-stat-val    { color: #111827; }
html.light-theme .db-trx-item:hover { background: #f9fafb; }
html.light-theme .db-trx-domain  { color: #111827; }

html.light-theme .pf-card        { background: #fff; border-color: #e5e7eb; }
html.light-theme .pf-input       { background: #fff; border-color: #e5e7eb; color: #111827; }
html.light-theme .pf-input[readonly] { background: #f9fafb; color: #9ca3af; }
html.light-theme .pf-card-head-title { color: #111827; }
html.light-theme .pf-label       { color: #374151; }

html.light-theme .ws-card        { background: #fff; border-color: #e5e7eb; }
html.light-theme .ws-stat-value  { color: #111827; }
html.light-theme .ws-stat        { border-right-color: #f3f4f6; }
html.light-theme .ws-header      { background: linear-gradient(135deg,#f5f3ff,#ede9fe); }
html.light-theme .ws-domain-name { color: #1a1a2e; }

html.light-theme .cht-info-card  { background: #fff; border-color: #e5e7eb; }
html.light-theme .cht-window     { background: #fff; border-color: #e5e7eb; }
html.light-theme .cht-msgs       { background: #f8fafc; }
html.light-theme .cht-win-head   { background: #fafbff; border-color: #f1f5f9; }
html.light-theme .cht-input-wrap { background: #fff; border-color: #f1f5f9; }
html.light-theme .cht-input-row  { background: #f8fafc; border-color: #e5e7eb; }
html.light-theme .cht-textarea   { color: #1e293b; }
html.light-theme .cht-row.theirs .cht-bubble-text { background: #fff; color: #1e293b; border-color: #e9ecef; }

/* =============================================================
   RESPONSIVE — Dashboard, Profil, Website, Kontak (scoped classes)
   ============================================================= */

/* ── 900px: tablet landscape ── */
@media (max-width: 900px) {
    /* Dashboard */
    .db-main  { grid-template-columns: 1fr; }
    .db-stats { grid-template-columns: repeat(3,1fr); }

    /* Profil */
    .pf-grid  { grid-template-columns: 1fr; }
    .pf-hero  { padding: 24px; }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 768px) {
    /* Dashboard welcome */
    .db-welcome      { padding: 22px 20px; }
    .db-welcome-name { font-size: 1.2rem; }

    /* Dashboard alerts */
    .db-alert        { flex-direction: column; gap: 10px; }
    .db-alert-icon   { width: 34px; height: 34px; }

    /* Dashboard stats */
    .db-stats { grid-template-columns: repeat(2,1fr); gap: 12px; }

    /* Dashboard trx */
    .db-trx-item     { gap: 10px; }
    .db-action-item  { padding: 11px 16px; }

    /* Profil hero */
    .pf-hero         { flex-direction: column; text-align: center; padding: 22px 18px; }
    .pf-hero::before,.pf-hero::after { display: none; }
    .pf-hero-badges  { justify-content: center; }
    .pf-card-body    { padding: 18px; }

    /* Website Saya card */
    .ws-card         { border-radius: 14px; }

    /* Hubungi Kami */
    .cht-layout      { grid-template-columns: 1fr; }
    .cht-sidebar     { display: none; }
    .cht-window      { height: calc(100vh - 120px); min-height: 400px; max-height: none; border-radius: 14px; }
    .cht-msgs        { padding: 14px 16px; }
    .cht-input-wrap  { padding: 12px 14px; }
    .cht-bubble      { max-width: 78%; }
}

/* ── 600px: large mobile ── */
@media (max-width: 600px) {
    /* Dashboard */
    .db-welcome-avatar { width: 46px; height: 46px; font-size: 1.1rem; }
    .db-card-head    { padding: 14px 16px; }
    .db-actions      { gap: 12px; }

    /* Profil */
    .pf-avatar       { width: 62px; height: 62px; font-size: 1.4rem; }
    .pf-hero-name    { font-size: 1.1rem; }
    .pf-hero-badge   { font-size: .68rem; padding: 3px 9px; }
    .pf-label        { font-size: .7rem; }
    .pf-input        { font-size: .88rem; padding: 10px 12px; }
    .pf-submit       { font-size: .85rem; padding: 10px 18px; }

    /* Website */
    .ws-domain-name  { font-size: .92rem; }
    .ws-header-icon  { width: 44px; height: 44px; }
    .ws-stat-val     { font-size: .95rem; }
    .ws-stat-label   { font-size: .65rem; }
    .ws-stat-icon    { width: 32px; height: 32px; border-radius: 8px; }

    /* Hubungi Kami */
    .cht-win-head    { padding: 12px 14px; gap: 10px; }
    .cht-win-avatar  { width: 36px; height: 36px; }
    .cht-win-name    { font-size: .85rem; }
    .cht-bubble-text { font-size: .83rem; padding: 9px 12px; }
    .cht-bubble      { max-width: 84%; }
    .cht-send-btn    { width: 38px; height: 38px; }
}

/* ── 480px: small mobile ── */
@media (max-width: 480px) {
    /* Dashboard */
    .db-welcome      { padding: 16px; }
    .db-alert        { padding: 14px 14px; }
    .db-alert-btns   { flex-direction: column; }
    .db-alert-btn-inv, .db-alert-btn-renew { width: 100%; justify-content: center; text-align: center; }

    /* Profil */
    .pf-hero         { padding: 18px 14px; }
    .pf-hero-badges  { gap: 5px; }
    .pf-card-head    { padding: 14px 16px; }
    .pf-tips         { flex-direction: column; }

    /* Website */
    .ws-hero-name    { font-size: .95rem; }

    /* Hubungi Kami */
    .cht-window      { height: calc(100vh - 100px); }
    .cht-msgs        { padding: 12px; gap: 12px; }
    .cht-sys         { font-size: .65rem; }
    .cht-empty       { padding: 24px 16px; }
    .cht-empty-icon  { width: 56px; height: 56px; }
}

/* ── 380px: very small mobile ── */
@media (max-width: 380px) {
    .db-welcome-name { font-size: 1rem; }
    .ws-btn-primary, .ws-btn-outline { padding: 8px 12px; font-size: .75rem; }
    .pf-hero-name    { font-size: 1rem; }
    .cht-bubble      { max-width: 90%; }
}

/* =============================================================
   MEMBER THEME TOGGLE BUTTON
   ============================================================= */
.theme-toggle-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(167,139,250,.22);
    background: rgba(167,139,250,.09);
    color: #a78bfa;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    outline: none;
    transition: background .2s, transform .25s, border-color .2s;
}
.theme-toggle-btn:hover {
    background: rgba(167,139,250,.2);
    transform: scale(1.1) rotate(20deg);
}
.theme-toggle-btn svg { width: 18px; height: 18px; pointer-events: none; }

/* Smooth transitions for all themed elements */
.member-body,
.member-navbar,
.member-sidebar,
.member-sidebar a,
.m-stat-card,
.m-card,
.member-welcome,
.quick-link-item,
.m-field input,
.m-field select {
    transition: background .28s ease, border-color .28s ease,
                color .2s ease, box-shadow .28s ease;
}

/* =============================================================
   MEMBER - LIGHT THEME OVERRIDES
   ============================================================= */
html.light-theme .member-body { background: #f0ebff; }

html.light-theme .member-navbar {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 10px rgba(0,0,0,.08);
}

html.light-theme .member-brand { color: #7c3aed; }
html.light-theme .member-user-info span { color: #374151; }

html.light-theme .btn-logout {
    background: rgba(220,38,38,.08);
    color: #dc2626;
    border-color: rgba(220,38,38,.2);
}
html.light-theme .btn-logout:hover { background: rgba(220,38,38,.15); }

html.light-theme .theme-toggle-btn {
    border-color: rgba(124,58,237,.22);
    background: rgba(124,58,237,.08);
    color: #7c3aed;
}
html.light-theme .theme-toggle-btn:hover { background: rgba(124,58,237,.16); }

html.light-theme .member-hamburger span { background: #7c3aed; }
html.light-theme .member-sidebar-close { background: rgba(124,58,237,.1); color: #7c3aed; }
html.light-theme .member-sidebar-head  { border-bottom-color: #e5e7eb; }

html.light-theme .member-sidebar {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
html.light-theme .member-sidebar a { color: #4b5563; }
html.light-theme .member-sidebar a:hover { background: rgba(124,58,237,.08); color: #7c3aed; }
html.light-theme .member-sidebar a.active { background: rgba(124,58,237,.12); color: #7c3aed; }
html.light-theme .member-sidebar a.logout-link { color: #dc2626; }
html.light-theme .member-sidebar a.logout-link:hover { background: rgba(220,38,38,.07); }

html.light-theme .member-welcome {
    background: linear-gradient(135deg, #7c3aed, #9f60f5);
    border-color: rgba(124,58,237,.3);
}
html.light-theme .member-welcome p { color: rgba(255,255,255,.88); }

html.light-theme .m-stat-card {
    background: #ffffff;
    border-color: #ede9fe;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
html.light-theme .m-stat-card .label { color: #6b7280; }
html.light-theme .m-stat-card .value { color: #111827; }
html.light-theme .m-stat-card .sub   { color: #9ca3af; }
html.light-theme .m-stat-icon        { background: rgba(124,58,237,.12); }

html.light-theme .m-card {
    background: #ffffff;
    border-color: #ede9fe;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
html.light-theme .m-card-head { border-bottom-color: #f3f0ff; }
html.light-theme .m-card-head h3 { color: #111827; }
html.light-theme .m-card-head a { color: #7c3aed; }

html.light-theme .m-field label { color: #374151; }
html.light-theme .m-field input,
html.light-theme .m-field select {
    background: #f9f5ff;
    border-color: #c4b5fd;
    color: #111827;
}
html.light-theme .m-field input:focus,
html.light-theme .m-field select:focus { border-color: #7c3aed; background: #fdf9ff; }
html.light-theme .m-field input[readonly] {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

html.light-theme .quick-link-item { background: #f9f5ff; border-color: #ede9fe; }
html.light-theme .quick-link-item:hover { background: rgba(124,58,237,.08); border-color: #c4b5fd; }
html.light-theme .quick-link-item strong { color: #111827; }
html.light-theme .quick-link-item span   { color: #6b7280; }

html.light-theme .status-pending { color: #d97706; }
html.light-theme .m-stat-icon    { background: rgba(124,58,237,.12); }

/* =============================================================
   DOMAIN CARD (Website Saya)
   ============================================================= */
.domain-card {
    background: #18133a;
    border: 1px solid rgba(167,139,250,.15);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .2s, background .28s, border-color .28s;
}
.domain-card:hover { box-shadow: 0 4px 24px rgba(124,58,237,.15); }

.dc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.dc-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.25);
    display: flex; align-items: center; justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}

.dc-title-wrap { flex: 1; min-width: 0; }

.dc-domain-name a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
    transition: color .15s;
}
.dc-domain-name a:hover { color: #9f60f5; }
.dc-domain-name a svg   { flex-shrink: 0; opacity: .7; }

.dc-status { display: flex; align-items: center; gap: 10px; margin-top: 5px; }

.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
}
.dc-badge-aktif   { background: rgba(16,185,129,.12); color: #10b981; border: 1px solid rgba(16,185,129,.2); }
.dc-badge-suspend { background: rgba(239,68,68,.12);  color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
.dc-dot           { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dc-catatan       { font-size: .78rem; color: #6b5f8a; }

.dc-divider { height: 1px; background: rgba(167,139,250,.1); }

.dc-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.dc-info-col {
    padding: 20px 24px;
    border-right: 1px solid rgba(167,139,250,.08);
}
.dc-info-col:last-child { border-right: none; }

.dc-info-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}

.dc-info-label {
    font-size: .75rem;
    font-weight: 600;
    color: #6b5f8a;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.dc-info-value {
    font-size: .95rem;
    font-weight: 700;
    color: #e2d9ff;
    margin-bottom: 3px;
}

.dc-info-sub {
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.dc-info-link {
    font-size: .78rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    display: inline-block;
    transition: color .15s;
}
.dc-info-link:hover { color: #9f60f5; text-decoration: underline; }

@media (max-width: 768px) {
    .dc-info-row { grid-template-columns: 1fr 1fr; }
    .dc-info-col { border-right: none; border-bottom: 1px solid rgba(167,139,250,.08); }
    .dc-info-col:nth-child(odd) { border-right: 1px solid rgba(167,139,250,.08); }
}

/* Light theme */
html.light-theme .domain-card { background: #ffffff; border-color: #e5e7eb; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
html.light-theme .domain-card:hover { box-shadow: 0 4px 20px rgba(124,58,237,.12); }
html.light-theme .dc-icon       { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.2); }
html.light-theme .dc-divider    { background: #f3f4f6; }
html.light-theme .dc-info-col   { border-right-color: #f3f4f6; }
html.light-theme .dc-info-label { color: #6b7280; }
html.light-theme .dc-info-value { color: #111827; }
html.light-theme .dc-catatan    { color: #9ca3af; }
@media (max-width: 768px) {
    html.light-theme .dc-info-col         { border-bottom-color: #f3f4f6; }
    html.light-theme .dc-info-col:nth-child(odd) { border-right-color: #f3f4f6; }
}

/* Akun Email - clickable col */
.dc-info-col-clickable {
    cursor: pointer;
    transition: background .18s;
}
.dc-info-col-clickable:hover {
    background: rgba(16,185,129,.06);
}
html.light-theme .dc-info-col-clickable:hover {
    background: rgba(16,185,129,.08);
}

/* Billing Overview */
.dc-billing {
    padding: 18px 24px 22px;
}
.dc-billing-title {
    font-size: .72rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}
.dc-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}
.dc-billing-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.dc-billing-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dc-billing-label {
    font-size: .71rem;
    font-weight: 600;
    color: #c4943a;
    text-transform: none;
}
.dc-billing-value {
    font-size: .88rem;
    font-weight: 600;
    color: #e5e7eb;
}
@media (max-width: 768px) {
    .dc-billing-grid { gap: 0 20px; }
}
@media (max-width: 540px) {
    .dc-billing { padding: 14px 16px 18px; }
    .dc-billing-grid { grid-template-columns: 1fr; gap: 0; }
    .dc-billing-col  { gap: 0; }
    .dc-billing-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(167,139,250,.07);
    }
    .dc-billing-col:last-child .dc-billing-item:last-child { border-bottom: none; }
    .dc-billing-label { flex: 0 0 auto; }
    .dc-billing-value { text-align: right; }
}
/* Light theme */
html.light-theme .dc-billing-title { color: #1e40af; }
html.light-theme .dc-billing-label { color: #b45309; }
html.light-theme .dc-billing-value { color: #111827; }

/* =============================================================
   CHAT - Bantuan & Chat (member)
   ============================================================= */

.chat-page-head { margin-bottom: 20px; }
.chat-page-head h2 { font-size: 1.4rem; font-weight: 800; color: #111827; margin: 0 0 4px; }
.chat-page-head p  { font-size: .88rem; color: #6b7280; margin: 0; }

.chat-wrap {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 860px;
}
.chat-agent-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.chat-agent-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.chat-agent-info { flex: 1; }
.chat-agent-name { font-size: .9rem; font-weight: 700; color: #111827; }
.chat-agent-sub  { font-size: .75rem; color: #9ca3af; margin-top: 1px; }
.chat-status-badge { font-size:.72rem; font-weight:700; padding:4px 12px; border-radius:99px; }
.chat-status-badge.online  { background:#16a34a; color:#fff; }
.chat-status-badge.offline { background:#9ca3af; color:#fff; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 340px;
    max-height: 480px;
    background: #f8fafc;
}
.chat-system-msg {
    text-align: center;
    font-size: .72rem;
    color: #9ca3af;
    background: #f1f5f9;
    border-radius: 99px;
    padding: 4px 14px;
    align-self: center;
}
.chat-bubble-row         { display: flex; align-items: flex-end; gap: 9px; }
.chat-bubble-row.mine    { flex-direction: row-reverse; }
.chat-bubble-row.theirs  { flex-direction: row; }
.chat-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.chat-bubble { max-width: 68%; }
.chat-bubble-text {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .88rem;
    line-height: 1.55;
    word-break: break-word;
}
.chat-bubble-row.mine   .chat-bubble-text { background:#2563eb; color:#fff; border-bottom-right-radius:4px; }
.chat-bubble-row.theirs .chat-bubble-text { background:#f1f5f9; color:#1e293b; border-bottom-left-radius:4px; }
.chat-bubble-time { font-size:.68rem; color:#9ca3af; margin-top:4px; padding:0 4px; }
.chat-bubble-row.mine   .chat-bubble-time { text-align:right; }
.chat-bubble-row.theirs .chat-bubble-time { text-align:left; }
.chat-empty {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    padding: 36px 0; margin: auto;
    color: #9ca3af; font-size: .85rem; text-align: center;
}
.chat-input-area  { border-top:1px solid #e5e7eb; padding:14px 22px 12px; flex-shrink:0; background:#fff; }
.chat-input-wrap  {
    display: flex; align-items: flex-end; gap: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 8px 8px 8px 14px;
    transition: border-color .2s;
}
.chat-input-wrap:focus-within { border-color: #2563eb; }
.chat-textarea {
    flex: 1; border: none; background: transparent;
    outline: none; resize: none; font-size: .88rem;
    color: #1e293b; line-height: 1.5;
    max-height: 160px; min-height: 22px;
    font-family: inherit; padding: 0;
}
.chat-textarea::placeholder { color: #9ca3af; }
.chat-send-btn {
    width: 40px; height: 40px; border-radius: 10px;
    background: #2563eb; border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background .15s, transform .15s;
}
.chat-send-btn:hover    { background:#1d4ed8; transform:scale(1.05); }
.chat-send-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.chat-input-hint { font-size:.72rem; color:#9ca3af; margin-top:8px; }
.chat-input-hint kbd {
    display: inline-block; background:#1e293b; color:#fff;
    font-size:.68rem; padding:1px 6px; border-radius:4px; font-family:monospace;
}
html.light-theme .chat-messages  { background:#f8fafc; }
html.light-theme .chat-wrap      { background:#fff; border-color:#e5e7eb; }
html.light-theme .chat-input-area{ background:#fff; }
html.light-theme .chat-input-wrap{ background:#f8fafc; border-color:#e2e8f0; }
@media (max-width:560px) {
    .chat-messages   { min-height:260px; max-height:340px; padding:14px; }
    .chat-bubble     { max-width:82%; }
    .chat-agent-bar  { padding:14px 16px; }
    .chat-input-area { padding:12px 14px 10px; }
}

/* =============================================================
   RENEWAL MODAL
   ============================================================= */
.renew-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn .18s ease;
}
.renew-overlay.open { display: flex; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.renew-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: slideUp .22s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

.rm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.rm-header h3 { font-size: .95rem; font-weight: 700; color: #111827; margin-bottom: 3px; }
.rm-header p  { font-size: .78rem; color: #6b7280; }

.rm-close {
    width: 30px; height: 30px;
    border: none; background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.1rem; line-height: 1;
    cursor: pointer; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.rm-close:hover { background: #e5e7eb; color: #111827; }

.rm-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.rm-meta-label { font-size: .68rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.rm-meta-value { font-size: .85rem; font-weight: 600; color: #111827; }

.rm-options { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.rm-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    gap: 10px;
}
.rm-option input[type="radio"] { display: none; }
.rm-option.selected { border-color: #7c3aed; background: #fdf9ff; }
.rm-option:hover:not(.selected) { border-color: #c4b5fd; }

.rm-opt-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #374151; font-size: .83rem; }
.rm-opt-price { font-size: .88rem; color: #374151; text-align: right; white-space: nowrap; }
.rm-opt-coret { text-decoration: line-through; color: #9ca3af; margin-right: 5px; font-size: .82rem; }

.rm-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(124,58,237,.12);
    color: #7c3aed;
}

.rm-invoice {
    margin: 0 24px 4px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px;
    font-size: .83rem;
}
.rm-inv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    gap: 12px;
    font-size: .83rem;
}
.rm-inv-row:last-child { border-bottom: none; }
.rm-coret { text-decoration: line-through; color: #9ca3af; font-size: .78rem; margin-right: 6px; }
.rm-inv-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 2px;
    font-size: .9rem;
    font-weight: 700;
    color: #111827;
}

.rm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
}
.rm-btn-batal {
    padding: 9px 18px;
    border: none; background: none;
    color: #7c3aed; font-weight: 600;
    font-size: .83rem; cursor: pointer;
    border-radius: 9px;
    transition: background .15s;
}
.rm-btn-batal:hover { background: rgba(124,58,237,.07); }

.rm-btn-bayar {
    padding: 10px 20px;
    background: #7c3aed;
    color: #fff;
    border-radius: 9px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .15s, transform .15s;
    display: inline-block;
}
.rm-btn-bayar:hover { background: #6d28d9; transform: translateY(-1px); }

/* Payment method cards (step 2) */
.rm-pm-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    gap: 10px;
}
.rm-pm-card:hover:not(.selected) { border-color: #c4b5fd; background: #fdf9ff; }
.rm-pm-card.selected { border-color: #7c3aed; background: #fdf9ff; }
.rm-pm-name { font-weight: 700; color: #374151; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.rm-pm-type { font-size: .7rem; font-weight: 500; color: #9ca3af; background: #f3f4f6; padding: 2px 8px; border-radius: 99px; }
.rm-pm-no   { font-size: .83rem; color: #6b7280; }

/* Upload zone (step 3) */
.rm-upload-zone {
    border: 2px dashed #d8b4fe;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; align-items: center;
}
.rm-upload-zone:hover { border-color: #7c3aed; background: #fdf9ff; }

/* =============================================================
   PAYMENT SUCCESS ANIMATION (Step 4)
   ============================================================= */

/* Keyframes */
@keyframes rms-bounce-in {
    0%   { transform: scale(0);    opacity: 0; }
    55%  { transform: scale(1.18); opacity: 1; }
    75%  { transform: scale(.92);  opacity: 1; }
    90%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}
@keyframes rms-draw-check {
    to { stroke-dashoffset: 0; }
}
@keyframes rms-ring-out {
    0%   { transform: scale(1); opacity: .55; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes rms-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rms-confetti {
    0%   { transform: translate(var(--tx,0px), 0px) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx,0px), -160px) rotate(var(--rot,180deg)) scale(.4); opacity: 0; }
}
@keyframes rms-bounce-in {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    80%  { transform: scale(.92); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes rms-btn-pop {
    0%   { transform: scale(.8); opacity: 0; }
    70%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Icon wrapper */
.rms-icon-wrap {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 22px;
}
.rms-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; z-index: 2;
    opacity: 0;
}
.rms-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #6ee7b7;
    opacity: 0;
    z-index: 1;
}
.rms-check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

/* Text elements */
.rms-title { font-size: .98rem; font-weight: 700; color: #111827; margin: 0 0 8px; opacity: 0; }
.rms-kode  { font-size: .82rem; color: #6b7280; margin: 0 0 6px; opacity: 0; }
.rms-desc  { font-size: .78rem; color: #9ca3af; margin: 0 0 24px; opacity: 0; line-height: 1.55; }
.rms-btn   { margin: 0 auto; display: block; opacity: 0; }

/* Active state — class added to #rmS4 */
#rmS4.rms-play .rms-circle {
    animation: rms-bounce-in .55s cubic-bezier(.34,1.56,.64,1) .1s both;
}
#rmS4.rms-play .rms-ring1 {
    animation: rms-ring-out .7s ease-out .5s both;
}
#rmS4.rms-play .rms-ring2 {
    animation: rms-ring-out .7s ease-out .7s both;
}
#rmS4.rms-play .rms-check-path {
    animation: rms-draw-check .4s ease .55s both;
}
#rmS4.rms-play .rms-title {
    animation: rms-fade-up .38s ease .75s both;
}
#rmS4.rms-play .rms-kode {
    animation: rms-fade-up .38s ease .9s both;
}
#rmS4.rms-play .rms-desc {
    animation: rms-fade-up .38s ease 1.0s both;
}
#rmS4.rms-play .rms-btn {
    animation: rms-btn-pop .4s cubic-bezier(.34,1.56,.64,1) 1.15s both;
}

/* Dark theme override */
html:not(.light-theme) .rms-title { color: #e2d9ff; }
html:not(.light-theme) .rms-kode  { color: #6b5f8a; }

/* Dark theme modal */
html:not(.light-theme) .renew-modal   { background: #1e1745; }
html:not(.light-theme) .rm-header     { border-bottom-color: rgba(167,139,250,.1); }
html:not(.light-theme) .rm-header h3  { color: #e2d9ff; }
html:not(.light-theme) .rm-header p   { color: #6b5f8a; }
html:not(.light-theme) .rm-close      { background: rgba(255,255,255,.06); color: #6b5f8a; }
html:not(.light-theme) .rm-close:hover{ background: rgba(255,255,255,.12); color: #e2d9ff; }
html:not(.light-theme) .rm-meta       { border-bottom-color: rgba(167,139,250,.1); }
html:not(.light-theme) .rm-meta-label { color: #4a3f6b; }
html:not(.light-theme) .rm-meta-value { color: #e2d9ff; }
html:not(.light-theme) .rm-option     { border-color: rgba(167,139,250,.15); }
html:not(.light-theme) .rm-option.selected { border-color: #7c3aed; background: rgba(124,58,237,.12); }
html:not(.light-theme) .rm-opt-label  { color: #e2d9ff; }
html:not(.light-theme) .rm-opt-price  { color: #c4b5fd; }
html:not(.light-theme) .rm-invoice    { background: rgba(255,255,255,.04); }
html:not(.light-theme) .rm-inv-row    { color: #a09abc; border-bottom-color: rgba(167,139,250,.08); }
html:not(.light-theme) .rm-inv-total  { color: #e2d9ff; }

/* =============================================================
   ADMIN PANEL - ENHANCED MODERN LAYOUT
   ============================================================= */

/* Sidebar overlay (mobile) */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 199;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.admin-sidebar-overlay.show { display: block; }

/* Sidebar - enhanced */
.sidebar {
    width: 240px;
    background: #110c2a;
    color: #c4b5fd;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 200;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(167,139,250,.1);
    letter-spacing: -.2px;
}

.sidebar-brand svg { flex-shrink: 0; }

.sidebar nav {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    color: #7a6e9a;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: background .18s, color .18s;
    text-decoration: none;
}

.sidebar nav a svg { flex-shrink: 0; }

.sidebar nav a:hover {
    background: rgba(167,139,250,.1);
    color: #c4b5fd;
}

.sidebar nav a.active {
    background: rgba(124,58,237,.2);
    color: #a78bfa;
    font-weight: 600;
}

.sidebar nav a.logout {
    margin-top: auto;
    color: #f87171;
}
.sidebar nav a.logout:hover { background: rgba(239,68,68,.1); color: #fca5a5; }

/* Topbar - enhanced */
.admin-topbar {
    background: #fff;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 #f3f0ff, 0 2px 8px rgba(124,58,237,.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-topbar h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Hamburger toggle */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    transition: background .18s;
    flex-shrink: 0;
}

.sidebar-toggle:hover { background: #f5f3ff; }

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #7c3aed;
    border-radius: 2px;
    margin: 0 auto;
}

/* Admin user chip */
.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 24px;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-name {
    font-size: .85rem;
    font-weight: 600;
    color: #5b21b6;
}

/* Content area */
.admin-content { padding: 28px; }

/* Stat grid - enhanced */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(124,58,237,.04);
    transition: box-shadow .2s, transform .2s;
}

.stat-card:hover {
    box-shadow: 0 6px 24px rgba(124,58,237,.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; color: #fff; }

.stat-icon-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.stat-icon-green  { background: linear-gradient(135deg, #059669, #10b981); }
.stat-icon-amber  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.stat-icon-rose   { background: linear-gradient(135deg, #e11d48, #fb7185); }

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.stat-label {
    font-size: .8rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 4px;
}

/* Panel - enhanced */
.panel {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(124,58,237,.04);
    border: 1px solid #ede9fe;
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #f5f3ff;
    gap: 16px;
}

.panel-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.panel-sub {
    font-size: .8rem;
    color: #9ca3af;
    margin: 3px 0 0;
}

.btn-icon {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

/* Table wrap - horizontal scroll on small screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Table - enhanced */
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.table thead tr { background: #faf8ff; }

.table th {
    padding: 11px 16px;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    border-bottom: 1px solid #f5f3ff;
    white-space: nowrap;
}

.table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f9f7ff;
    vertical-align: middle;
    font-size: .9rem;
    color: #374151;
}

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

.table tbody tr:hover td { background: #faf8ff; }

.td-no   { color: #9ca3af; font-size: .82rem; }
.td-date { color: #9ca3af; font-size: .83rem; white-space: nowrap; }
.td-judul { font-weight: 500; color: #1f2937; }

.td-empty {
    text-align: center;
    padding: 52px 16px !important;
    color: #9ca3af;
}

.td-empty svg {
    display: block;
    margin: 0 auto 14px;
    color: #c4b5fd;
    opacity: .5;
}

.td-empty span {
    display: block;
    font-size: .92rem;
}

.td-empty a { color: #7c3aed; font-weight: 600; }

.td-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badges - enhanced */
.badge.publish {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.badge.draft {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

/* Action buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.btn-action svg { flex-shrink: 0; }

.btn-action-edit {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ede9fe;
}
.btn-action-edit:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.btn-action-hapus {
    background: #fff1f2;
    color: #ef4444;
    border-color: #fecdd3;
}
.btn-action-hapus:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Two-column admin layout (e.g. paket_harga) */
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

.admin-sticky-form { position: sticky; top: 88px; }

@media (max-width: 900px) {
    .stat-grid    { grid-template-columns: repeat(2,1fr); }
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-two-col > .panel:last-child { position: static !important; }
}

@media (max-width: 768px) {
    /* Show hamburger */
    .sidebar-toggle { display: flex; }

    /* Sidebar becomes a fixed drawer */
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100%;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar nav { flex-direction: column; }
    .sidebar nav a { flex: none; text-align: left; }

    /* Topbar */
    .admin-topbar { padding: 0 14px; }
    .admin-topbar h1 {
        font-size: .98rem;
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .admin-name { display: none; }

    /* Content */
    .admin-content { padding: 16px 14px; }

    /* Panel */
    .panel-head {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .panel-head > *:last-child { align-self: flex-start; }
    .panel-body { padding: 0 16px 18px; }

    /* Form grid collapse */
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }

    /* Filter tabs horizontal scroll */
    .filter-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; white-space: nowrap; }

    /* Table action buttons: hide label text, icon only */
    .btn-action span { display: none; }
    .btn-action { padding: 7px; }
    .btn-action svg { width: 14px; height: 14px; }

    /* Table: hide low-priority columns */
    .table .td-no,
    .table th:first-child { display: none; }

    /* Payment grid: single col */
    .payment-grid { grid-template-columns: 1fr; padding: 16px; }

    /* Two-col form */
    .admin-two-col { gap: 16px; }
}

@media (max-width: 480px) {
    .stat-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card  { padding: 14px 12px; gap: 10px; }
    .stat-num   { font-size: 1.5rem; }
    .stat-label { font-size: .74rem; }
    .stat-icon  { width: 40px; height: 40px; border-radius: 10px; }
    .stat-icon svg { width: 18px; height: 18px; }

    .admin-content { padding: 12px 10px; }
    .admin-topbar  { padding: 0 10px; }
    .admin-topbar h1 { font-size: .9rem; max-width: 120px; }

    /* Table: also hide status column on very small screens */
    .table th:nth-child(3),
    .table td:nth-child(3) { display: none; }

    /* Panel */
    .panel-head { padding: 12px 14px; }
    .panel-head h2 { font-size: .92rem; }

    /* Stat grid margin */
    .stat-grid { margin-bottom: 16px; }
}


/* =============================================================
   SIDEBAR NAV GROUP (accordion collapsible)
   ============================================================= */

/* Chat nav badge */
.nav-chat-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-chat-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.nav-sep {
    height: 1px;
    background: rgba(167,139,250,.1);
    margin: 10px 14px 8px;
}

.nav-group { margin: 0 10px 2px; }

.nav-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    color: #7a6e9a;
    font-size: .9rem;
    font-weight: 500;
    font-family: inherit;
    transition: background .18s, color .18s;
    text-align: left;
}

.nav-group-btn:hover { background: rgba(167,139,250,.1); color: #c4b5fd; }
.nav-group.open .nav-group-btn { color: #c4b5fd; background: rgba(167,139,250,.06); }

.ngb-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ngb-left svg { flex-shrink: 0; }

.ngb-arrow {
    flex-shrink: 0;
    transition: transform .22s cubic-bezier(.4,0,.2,1);
    color: inherit;
}

.nav-group.open .ngb-arrow { transform: rotate(90deg); }

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 10px;
    transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .22s;
}

.nav-group.open .nav-group-items {
    max-height: 360px;
    opacity: 1;
}

.nav-group-items a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: #5a5077;
    font-size: .84rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 1px;
    transition: background .18s, color .18s;
    text-decoration: none;
}

.nav-group-items a svg { flex-shrink: 0; }
.nav-group-items a:hover  { background: rgba(167,139,250,.08); color: #c4b5fd; }
.nav-group-items a.active { background: rgba(124,58,237,.16);  color: #a78bfa; font-weight: 600; }


/* =============================================================
   ADMIN FORMS
   ============================================================= */

.panel-body { padding: 0 24px 24px; }

.mb-panel { margin-bottom: 24px; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.req { color: #ef4444; }

.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=password],
.form-field input[type=number],
.form-field input[type=tel],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: .92rem;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.form-field textarea { resize: vertical; min-height: 76px; }

.form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Alert box */
.alert-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }


/* =============================================================
   BADGE VARIANTS (paket, action buttons)
   ============================================================= */

.badge-paket {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 700;
}

.badge-basic   { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.badge-premium { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-vip     { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }

/* Extra btn-action colors */
.btn-action-warn  { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.btn-action-warn:hover  { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-action-green { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.btn-action-green:hover { background: #059669; color: #fff; border-color: #059669; }


/* =============================================================
   PAYMENT METHOD CARDS
   ============================================================= */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 18px;
    padding: 20px 24px 24px;
}

.payment-card {
    border: 1.5px solid #ede9fe;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}

.payment-card:hover { box-shadow: 0 4px 20px rgba(124,58,237,.08); border-color: #c4b5fd; }

.payment-card-inactive { opacity: .6; }

.payment-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #faf8ff;
    border-bottom: 1px solid #ede9fe;
    gap: 10px;
}

.payment-card-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .92rem;
    color: #0f172a;
}

.payment-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.5px;
}

.logo-dana    { background: linear-gradient(135deg, #118ef2, #47bfff); }
.logo-mandiri { background: linear-gradient(135deg, #d97706, #fbbf24); }
.logo-custom  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.pm-type-badge {
    display: inline-block;
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.payment-card-body { padding: 14px 18px; }

.payment-field { margin-bottom: 10px; }

.payment-field label {
    display: block;
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

.payment-field span { font-size: .88rem; color: #1f2937; font-weight: 500; }

.payment-actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f5f3ff;
    flex-wrap: wrap;
}


/* =============================================================
   TRANSACTION TABLE EXTRAS
   ============================================================= */

.filter-tabs {
    display: flex;
    gap: 6px;
    padding: 16px 24px 0;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    transition: all .18s;
}

.filter-tab:hover     { border-color: #7c3aed; color: #7c3aed; }
.filter-tab.active    { background: #7c3aed; color: #fff; border-color: #7c3aed; }

.filter-count {
    background: rgba(0,0,0,.1);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .72rem;
}

.filter-tab.active .filter-count { background: rgba(255,255,255,.2); }

.jumlah-cell { font-weight: 700; color: #0f172a; white-space: nowrap; }

/* Status select (transaction table) */
.status-select {
    padding: 4px 8px;
    border-radius: 20px;
    border: 1.5px solid;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.status-select.status-pending { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.status-select.status-lunas   { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.status-select.status-gagal   { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.status-select.status-refund  { background: #f0f9ff; color: #0284c7; border-color: #bae6fd; }

@media (max-width: 768px) {
    .form-row-2  { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; padding: 16px; }
    .filter-tabs { padding: 12px 16px 0; }
    .panel-body  { padding: 0 16px 20px; }
    .panel-head  { padding: 14px 16px; }
    .payment-actions { flex-wrap: wrap; }
}


/* =============================================================
   EXPIRY NOTIFICATION BANNER (Dashboard)
   ============================================================= */

.expiry-notif {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1.5px solid;
    position: relative;
}

.expiry-warn {
    background: rgba(245,158,11,.08);
    border-color: rgba(245,158,11,.3);
}

.expiry-critical {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.3);
    animation: expiry-pulse 2s ease-in-out infinite;
}

@keyframes expiry-pulse {
    0%, 100% { border-color: rgba(239,68,68,.3); }
    50%       { border-color: rgba(239,68,68,.65); }
}

.expiry-notif-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

.expiry-warn .expiry-notif-icon     { background: rgba(245,158,11,.15); color: #f59e0b; }
.expiry-critical .expiry-notif-icon { background: rgba(239,68,68,.15);  color: #ef4444; }

.expiry-notif-body { flex: 1; min-width: 0; }

.expiry-notif-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.expiry-warn .expiry-notif-title     { color: #f59e0b; }
.expiry-critical .expiry-notif-title { color: #ef4444; }

.expiry-notif-text {
    font-size: .84rem;
    color: #a09abc;
    line-height: 1.55;
}

.expiry-notif-text strong { color: #e2d9ff; }

.expiry-notif-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-self: center;
}

.expiry-btn-invoice,
.expiry-btn-renew {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s;
}

.expiry-btn-invoice {
    background: rgba(255,255,255,.05);
    color: #a09abc;
    border: 1px solid rgba(167,139,250,.2);
}

.expiry-btn-invoice:hover {
    background: rgba(167,139,250,.15);
    color: #e2d9ff;
    border-color: rgba(167,139,250,.4);
}

.expiry-btn-renew {
    background: #7c3aed;
    color: #fff;
    border: 1px solid #7c3aed;
}

.expiry-btn-renew:hover { background: #6d28d9; border-color: #6d28d9; }

/* Light theme overrides */
html.light-theme .expiry-warn     { background: #fffbeb; border-color: #fde68a; }
html.light-theme .expiry-critical { background: #fff1f2; border-color: #fecdd3; }

html.light-theme .expiry-notif-text         { color: #6b7280; }
html.light-theme .expiry-notif-text strong  { color: #111827; }

html.light-theme .expiry-warn .expiry-notif-title     { color: #d97706; }
html.light-theme .expiry-critical .expiry-notif-title { color: #dc2626; }

html.light-theme .expiry-btn-invoice { background: #f9f5ff; color: #6b7280; border-color: #e5e7eb; }
html.light-theme .expiry-btn-invoice:hover { background: #ede9fe; color: #7c3aed; border-color: #c4b5fd; }

@media (max-width: 600px) {
    .expiry-notif { flex-direction: column; gap: 12px; }
    .expiry-notif-actions { width: 100%; }
}


/* =============================================================
   INVOICE PAGE
   ============================================================= */

.inv-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.inv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.inv-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(124,58,237,.25);
    transition: background .15s;
}

.inv-back:hover { background: rgba(124,58,237,.1); }

.inv-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(124,58,237,.12);
    color: #a78bfa;
    border: 1px solid rgba(124,58,237,.25);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.inv-print-btn:hover { background: rgba(124,58,237,.22); }

.inv-card {
    background: #18133a;
    border: 1px solid rgba(167,139,250,.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.2);
}

.inv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1e1050, #2d1b69);
    border-bottom: 1px solid rgba(167,139,250,.15);
}

.inv-brand   { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.inv-tagline { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 4px; }

.inv-header-right { text-align: right; flex-shrink: 0; }

.inv-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.4);
}

.inv-no { font-size: .95rem; font-weight: 700; color: #c4b5fd; letter-spacing: .5px; }

/* Alert banner inside invoice */
.inv-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: .86rem;
    font-weight: 500;
}

.inv-alert-amber { background: rgba(245,158,11,.1); color: #fbbf24; border-bottom: 1px solid rgba(245,158,11,.15); }
.inv-alert-red   { background: rgba(239,68,68,.1);  color: #f87171; border-bottom: 1px solid rgba(239,68,68,.15); }
.inv-alert strong { color: #fff; }

/* Billed-to / domain info */
.inv-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(167,139,250,.08);
}

.inv-meta-grid > div:first-child {
    padding-right: 24px;
    border-right: 1px solid rgba(167,139,250,.08);
}

.inv-meta-grid > div:last-child { padding-left: 24px; }

.inv-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b5f8a;
    margin-bottom: 8px;
}

.inv-meta-name { font-size: .98rem; font-weight: 700; color: #e2d9ff; }
.inv-meta-sub  { font-size: .82rem; color: #6b5f8a; margin-top: 3px; }

/* ── Invoice Items section ─────────────────────────────────── */

.inv-items-head {
    display: flex;
    align-items: center;
    padding: 20px 32px 14px;
    border-bottom: 1px solid rgba(167,139,250,.08);
}

.inv-items-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e2d9ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-items-title::before {
    content: '';
    display: inline-block;
    width: 4px; height: 18px;
    background: linear-gradient(180deg, #7c3aed, #a78bfa);
    border-radius: 2px;
    flex-shrink: 0;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
}

.inv-table thead th {
    background: rgba(124,58,237,.1);
    color: #6b5f8a;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 32px;
    text-align: left;
    border-bottom: 1px solid rgba(167,139,250,.1);
}

.inv-table thead th:not(:first-child) { text-align: right; }

.inv-table tbody td {
    padding: 18px 32px;
    border-bottom: 1px solid rgba(167,139,250,.06);
    vertical-align: top;
    color: #a09abc;
}

.inv-table tbody td:not(:first-child) { text-align: right; }

.inv-table tbody tr:last-child td { border-bottom: none; }
.inv-table tbody tr:hover { background: rgba(124,58,237,.04); }

.inv-td-desc {
    font-weight: 600;
    color: #e2d9ff;
    line-height: 1.45;
}

.inv-td-desc small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: #6b5f8a;
    margin-top: 5px;
}

.inv-badge-pop {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .04em;
    vertical-align: middle;
    margin-left: 6px;
}

.inv-discount-badge {
    display: inline-block;
    background: rgba(16,185,129,.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,.2);
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}

.inv-ppn-note {
    font-size: .74rem;
    color: #6b5f8a;
    margin-top: 3px;
    text-align: right;
}

/* Payment methods */
.inv-pm-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b5f8a;
    margin: 24px 32px 12px;
}

.inv-pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 12px;
    margin: 0 32px 24px;
}

.inv-pm-item {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(167,139,250,.1);
    border-radius: 10px;
    padding: 14px 16px;
}

.inv-pm-name {
    font-size: .88rem;
    font-weight: 700;
    color: #e2d9ff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inv-pm-type {
    font-size: .65rem;
    font-weight: 700;
    background: rgba(124,58,237,.15);
    color: #a78bfa;
    border: 1px solid rgba(124,58,237,.2);
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.inv-pm-no { font-size: .92rem; font-weight: 700; color: #7c3aed; letter-spacing: .5px; margin-top: 3px; }
.inv-pm-an { font-size: .78rem; color: #6b5f8a; margin-top: 2px; }

/* Note & footer */
.inv-note {
    margin: 0 32px 24px;
    padding: 14px 16px;
    background: rgba(124,58,237,.07);
    border: 1px solid rgba(124,58,237,.15);
    border-radius: 10px;
    font-size: .82rem;
    color: #6b5f8a;
    line-height: 1.6;
}

.inv-note strong { color: #a78bfa; }
.inv-note a { color: #7c3aed; font-weight: 600; text-decoration: none; }
.inv-note a:hover { text-decoration: underline; }

.inv-footer {
    display: flex;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(124,58,237,.06);
    border-top: 1px solid rgba(167,139,250,.08);
    font-size: .78rem;
    color: #4a3f6b;
}

.inv-cta { text-align: center; margin-top: 20px; }

/* ── Light theme - invoice ─────────────────────────────────── */
html.light-theme .inv-card { background: #fff; border-color: #ede9fe; box-shadow: 0 4px 24px rgba(124,58,237,.1); }

html.light-theme .inv-back { border-color: #c4b5fd; }
html.light-theme .inv-back:hover { background: #f5f3ff; }
html.light-theme .inv-print-btn { background: #f5f3ff; color: #7c3aed; border-color: #c4b5fd; }
html.light-theme .inv-print-btn:hover { background: #ede9fe; }

html.light-theme .inv-label { color: rgba(255,255,255,.55); }

html.light-theme .inv-alert-amber { background: #fffbeb; color: #92400e; border-bottom-color: #fde68a; }
html.light-theme .inv-alert-amber strong { color: #78350f; }
html.light-theme .inv-alert-red { background: #fff1f2; color: #be123c; border-bottom-color: #fecdd3; }
html.light-theme .inv-alert-red strong { color: #9f1239; }

html.light-theme .inv-meta-grid  { border-bottom-color: #f3f0ff; }
html.light-theme .inv-meta-grid > div:first-child { border-right-color: #f3f0ff; }
html.light-theme .inv-section-label { color: #9ca3af; }
html.light-theme .inv-meta-name { color: #111827; }
html.light-theme .inv-meta-sub  { color: #9ca3af; }

html.light-theme .inv-items-head  { border-bottom-color: #f3f0ff; }
html.light-theme .inv-items-title { color: #111827; }

html.light-theme .inv-table thead th { background: #f9f5ff; color: #9ca3af; border-bottom-color: #ede9fe; }
html.light-theme .inv-table tbody td { color: #6b7280; border-bottom-color: #f3f0ff; }
html.light-theme .inv-table tbody tr:hover { background: #faf8ff; }
html.light-theme .inv-td-desc { color: #111827; }
html.light-theme .inv-td-desc small { color: #9ca3af; }
html.light-theme .inv-ppn-note { color: #9ca3af; }

html.light-theme .inv-pm-section-label { color: #9ca3af; }
html.light-theme .inv-pm-item  { background: #f9f5ff; border-color: #ede9fe; }
html.light-theme .inv-pm-name  { color: #111827; }
html.light-theme .inv-pm-type  { background: #f0ebff; color: #7c3aed; border-color: #ddd6fe; }
html.light-theme .inv-pm-no    { color: #7c3aed; }
html.light-theme .inv-pm-an    { color: #9ca3af; }

html.light-theme .inv-note  { background: #faf8ff; border-color: #ede9fe; color: #6b7280; }
html.light-theme .inv-note strong { color: #7c3aed; }

html.light-theme .inv-footer { background: #faf8ff; border-top-color: #f3f0ff; color: #9ca3af; }

@media (max-width: 768px) {
    .inv-header { padding: 20px; flex-direction: column; gap: 14px; }
    .inv-header-right { text-align: left; }
    .inv-meta-grid { grid-template-columns: 1fr; padding: 20px; }
    .inv-meta-grid > div:first-child {
        padding-right: 0; border-right: none;
        border-bottom: 1px solid rgba(167,139,250,.08);
        padding-bottom: 16px; margin-bottom: 16px;
    }
    .inv-meta-grid > div:last-child { padding-left: 0; }
    .inv-items-head { padding: 16px 20px 12px; }
    .inv-table thead th,
    .inv-table tbody td { padding: 12px 16px; }
    .inv-pm-section-label { margin: 20px 20px 10px; }
    .inv-pm-grid { margin: 0 20px 20px; }
    .inv-note   { margin: 0 20px 20px; }
    .inv-footer { padding: 12px 20px; }
}

@media (max-width: 480px) {
    .inv-table thead th:nth-child(2),
    .inv-table tbody td:nth-child(2) { display: none; }
}

/* ── Payment History ─────────────────────────────────────────── */
.pay-hist-wrap { overflow-x: auto; }

.pay-hist-table {
    width: 100%; border-collapse: collapse; font-size: .84rem;
}
.pay-hist-table thead th {
    padding: 10px 14px; text-align: left; font-size: .72rem;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #6b5f8a; background: rgba(124,58,237,.06);
    border-bottom: 1px solid rgba(167,139,250,.1);
    white-space: nowrap;
}
.pay-hist-table tbody td {
    padding: 12px 14px; border-bottom: 1px solid rgba(167,139,250,.07);
    vertical-align: middle; color: #c4b5fd;
}
.pay-hist-table tbody tr:last-child td { border-bottom: none; }
.pay-hist-table tbody tr:hover { background: rgba(124,58,237,.04); }

.pay-hist-kode {
    font-family: monospace; font-size: .78rem; color: #9ca3af !important;
    white-space: nowrap;
}
.pay-hist-item strong { color: #e2d9ff; font-size: .86rem; }
.pay-hist-item span   { color: #6b5f8a; font-size: .78rem; }
.pay-hist-amount { font-weight: 700; color: #a78bfa !important; white-space: nowrap; }
.pay-hist-date   { color: #6b5f8a !important; white-space: nowrap; font-size: .8rem; }

.pay-status {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; white-space: nowrap;
}
.pay-status-paid   { background: rgba(5,150,105,.15);  color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.pay-status-unpaid { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(248,113,113,.25); }
.pay-status-failed { background: rgba(107,114,128,.12);color: #9ca3af; border: 1px solid rgba(156,163,175,.2); }
.pay-status-refund { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }

.pay-hist-dl {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 600;
    color: #a78bfa; border: 1px solid rgba(167,139,250,.3);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    background: none; font-family: inherit;
    transition: background .18s, border-color .18s;
}
.pay-hist-dl:hover { background: rgba(124,58,237,.12); border-color: #7c3aed; }
.pay-hist-dl-paid { color: #34d399; border-color: rgba(52,211,153,.35); }
.pay-hist-dl-paid:hover { background: rgba(5,150,105,.12); border-color: #34d399; }

.pay-hist-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; padding: 40px 20px;
    color: #6b5f8a; text-align: center;
}
.pay-hist-empty p { margin: 0; font-size: .88rem; }

/* Light theme overrides */
html.light-theme .pay-hist-table thead th {
    background: #f9f5ff; color: #9ca3af;
    border-bottom-color: #ede9fe;
}
html.light-theme .pay-hist-table tbody td { color: #374151; border-bottom-color: #f3f0ff; }
html.light-theme .pay-hist-table tbody tr:hover { background: #faf8ff; }
html.light-theme .pay-hist-kode   { color: #9ca3af !important; }
html.light-theme .pay-hist-item strong { color: #111827; }
html.light-theme .pay-hist-item span   { color: #9ca3af; }
html.light-theme .pay-hist-amount { color: #7c3aed !important; }
html.light-theme .pay-hist-date   { color: #9ca3af !important; }
html.light-theme .pay-hist-dl { color: #7c3aed; border-color: #c4b5fd; }
html.light-theme .pay-hist-dl:hover { background: #f5f3ff; border-color: #7c3aed; }
html.light-theme .pay-hist-dl-paid { color: #059669; border-color: rgba(5,150,105,.35); }
html.light-theme .pay-hist-dl-paid:hover { background: rgba(5,150,105,.08); border-color: #059669; }
html.light-theme .pay-hist-empty { color: #9ca3af; }

@media (max-width: 600px) {
    .pay-hist-table thead th:nth-child(2),
    .pay-hist-table tbody td:nth-child(2) { display: none; }
}

/* =============================================================
   HERO RIGHT - ANIMASI BROWSER MOCKUP
   ============================================================= */

/* ---- Keyframes ---- */

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-16px); }
}

@keyframes mockGlow {
    0%, 100% {
        box-shadow: 0 32px 80px rgba(0,0,0,.7),
                    0 0 40px rgba(124,58,237,.08),
                    0 0 0 1px rgba(167,139,250,.05);
    }
    50% {
        box-shadow: 0 32px 80px rgba(0,0,0,.7),
                    0 0 70px rgba(124,58,237,.28),
                    0 0 0 1px rgba(167,139,250,.18);
    }
}

@keyframes badgeFloatTR {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%       { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes badgeFloatBL {
    0%, 100% { transform: translateY(0px) rotate(1.5deg); }
    50%       { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes shimmerSkeleton {
    0%   { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

@keyframes dotLive {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.65); }
    60%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,.2); }
    50%       { box-shadow: 0 2px 24px rgba(245,158,11,.6); }
}

@keyframes urlCursor {
    0%, 49% { border-right-color: rgba(167,139,250,.65); }
    50%, 100% { border-right-color: transparent; }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroBgPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%       { opacity: .9;  transform: scale(1.12); }
}

/* ---- Aura latar di belakang browser mockup ---- */
.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 55% 50%,
        rgba(124,58,237,.22) 0%,
        rgba(88,28,235,.10) 45%,
        transparent 72%);
    pointer-events: none;
    animation: heroBgPulse 5s ease-in-out infinite;
    z-index: 0;
}

/* ---- Browser mock container ---- */
.browser-mock {
    animation: heroFloat 5s ease-in-out infinite,
               mockGlow  4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* ---- Float badges ---- */
.float-badge-tr {
    animation: badgeFloatTR 4.2s ease-in-out infinite;
}

.float-badge-bl {
    animation: badgeFloatBL 4.8s ease-in-out infinite;
    animation-delay: .9s;
}

/* ---- Green "live" dot ---- */
.bdot-g {
    animation: dotLive 2s ease-out infinite;
}

/* ---- URL bar cursor blink ---- */
.browser-mock-url {
    border-right: 1.5px solid rgba(167,139,250,.65);
    padding-right: 10px;
    animation: urlCursor 1.1s step-end infinite;
}

/* ---- Shimmer pada skeleton lines ---- */
.bmock-line,
.bmock-dash {
    background: linear-gradient(
        90deg,
        rgba(167,139,250,.07) 0%,
        rgba(167,139,250,.22) 40%,
        rgba(167,139,250,.07) 80%
    );
    background-size: 500px 100%;
    animation: shimmerSkeleton 2s linear infinite;
}

/* ---- CTA button glow ---- */
.bmock-cta {
    animation: ctaGlow 2.4s ease-in-out infinite;
}

/* ---- Staggered card entrance ---- */
.bmock-card {
    animation: cardSlideIn .55s cubic-bezier(.22,.68,0,1.2) both;
}
.bmock-card:nth-child(1) { animation-delay: .15s; }
.bmock-card:nth-child(2) { animation-delay: .30s; }
.bmock-card:nth-child(3) { animation-delay: .45s; }

/* ---- Pastikan z-index tidak tertutupi ---- */
.float-badge { z-index: 10; }
