/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   DNDseo User Panel â Vexlora Dark Theme
   Fonts: Syne (display) + DM Sans (body) + JetBrains Mono (data)
   Aksen: cyan #00e8c8 + ungu #7c6bff
   Struktur layout & komponen mengadopsi template "Vexlora" (Themiverse)
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

@import url(../../../fonts.googleapis.com/css2_0310bd7d);

/* ââââââââ TOKENS ââââââââ */
:root, [data-theme="dark"] {
    /* Backgrounds */
    --bg:        #07080f;
    --surf:      #10121f;
    --surf2:     #141728;
    --surf3:     #1a1e33;

    /* Borders */
    --bdr-color:        rgba(255,255,255,0.07);
    --bdr2:             rgba(255,255,255,0.05);
    --bdr-line:         1px solid var(--bdr-color);
    --bdr-line-thick:   1px solid rgba(255,255,255,0.13);
    --bdr:              var(--bdr-color);

    /* Text */
    --t1: #eef0ff;
    --t2: #b9c0e0;
    --t3: #8990b5;
    --t4: #6c7395;

    /* Sidebar/topbar surfaces */
    --sb-bg:    #0b0d19;
    --top-bg:   rgba(7,8,15,0.85);

    /* Accents */
    --acc:      #00e8c8;
    --acc2:     #00c9ad;
    --acc-dim:  rgba(0,232,200,0.12);
    --acc-glow: rgba(0,232,200,0.30);
    --green:    #00e8c8;
    --green2:   #00c9ad;
    --green3:   rgba(0,232,200,0.15);

    --pur:      #7c6bff;
    --pur-dim:  rgba(124,107,255,0.12);
    --blue:     #4f8ef7;
    --blue-dim: rgba(79,142,247,0.12);
    --red:      #e24b4a;
    --red-dim:  rgba(226,75,74,0.12);
    --yel:      #f59e0b;
    --yel-dim:  rgba(245,158,11,0.12);
    --orange:   #ef9e27;
    --cyan:     #06b6d4;

    /* Icon backgrounds */
    --ico-green:  var(--acc-dim);
    --ico-blue:   var(--blue-dim);
    --ico-pur:    var(--pur-dim);
    --ico-red:    var(--red-dim);
    --ico-yel:    var(--yel-dim);
    --ico-orange: rgba(239,158,39,0.12);

    /* Shadows */
    --sh:        0 4px 24px rgba(0,0,0,0.35);
    --sh-sm:     0 2px 8px rgba(0,0,0,0.25);
    --sh-hover:  0 6px 32px rgba(0,0,0,0.45);
    --sh-active: 0 2px 6px rgba(0,0,0,0.30);
    --shadow-color: rgba(0,0,0,0.5);

    /* Gradients */
    --grad-green: linear-gradient(135deg, var(--acc) 0%, var(--pur) 100%);

    /* Fonts */
    --ff:      'DM Sans', sans-serif;
    --display: 'Syne', sans-serif;
    --mono:    'JetBrains Mono', monospace;

    /* Layout */
    --sb-w:    248px;
    --top-h:   64px;
    --r:       14px;
    --rx:      10px;
    --r-sm:    8px;
    --r-lg:    22px;

    /* Brutal hold-over (so pages using --brutal-bdr / --brutal-sh-sm don't break) */
    --brutal-bdr:       var(--bdr-line);
    --brutal-bdr-thick: var(--bdr-line-thick);
    --brutal-sh:        var(--sh);
    --brutal-sh-sm:     var(--sh-sm);
    --brutal-sh-hover:  var(--sh-hover);
}

/* ââââââââ RESET ââââââââ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--t1);
    font-family: var(--ff);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--acc); color: #000; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surf); }
::-webkit-scrollbar-thumb { background: var(--t4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: var(--ff); cursor: pointer; }
input, textarea, select { font-family: var(--ff); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--t1);
}

/* Background atmosphere (subtle glow) */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background:
      radial-gradient(circle at 0% 0%, rgba(0,232,200,0.04) 0%, transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(124,107,255,0.04) 0%, transparent 40%);
}

/* ââââââââ DASH LAYOUT ââââââââ */
.dash-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.main {
    flex: 1;
    margin-left: var(--sb-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left .3s ease;
}
.main-content {
    flex: 1;
    padding: 28px 32px 64px;
    margin-top: var(--top-h);
    max-width: 100%;
    width: 100%;
}
@media (max-width: 1100px) {
    .main-content { padding: 24px 24px 56px; }
}
@media (max-width: 960px) {
    .main { margin-left: 0; }
    .main-content { padding: 20px 18px 48px; }
}

/* ââââââââ SIDEBAR ââââââââ */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sb-w);
    background: var(--sb-bg);
    border-right: 1px solid var(--bdr-color);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform .3s ease;
}
.sb-brand {
    height: var(--top-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--bdr-color);
    flex-shrink: 0;
}
.sb-brand-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 14px;
    flex-shrink: 0;
}
.sb-brand-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--t1);
}
.sb-brand-name span { color: var(--acc); }
.sb-brand-sub {
    font-size: 10px;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 1px;
}

.sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-sec {
    font-size: 10px;
    font-weight: 700;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 14px 14px 8px;
}
.sb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.sb-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--t1);
}
.sb-item.active {
    background: var(--acc-dim);
    color: var(--acc);
    font-weight: 600;
}
.sb-item.active .sb-item-ico { color: var(--acc); }
.sb-item-ico {
    width: 20px;
    color: var(--t3);
    font-size: 18px;
    flex-shrink: 0;
    text-align: center;
}
.sb-item-lbl { flex: 1; }
.sb-div {
    height: 1px;
    background: var(--bdr-color);
    margin: 10px 14px;
}

.sb-quota {
    margin: 12px 18px 14px;
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 12px 14px;
}
.sq-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.sq-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sq-val {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--t1);
}
.sq-bar {
    height: 6px;
    background: var(--surf2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.sq-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .5s ease;
}
.sq-note {
    font-size: 10px;
    color: var(--t4);
    font-weight: 500;
}

.sb-upgrade {
    margin: 0 18px 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px;
    background: var(--acc);
    color: #000;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    transition: box-shadow .2s, transform .2s;
}
.sb-upgrade:hover {
    box-shadow: 0 0 20px var(--acc-glow);
    transform: translateY(-1px);
}

.sb-footer {
    padding: 12px 22px;
    font-size: 10px;
    color: var(--t4);
    border-top: 1px solid var(--bdr-color);
    text-align: center;
}

.sb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 150;
}
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sb-overlay.show { display: block; }
}

/* ââââââââ TOPBAR ââââââââ */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sb-w);
    right: 0;
    height: var(--top-h);
    background: var(--top-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bdr-color);
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 100;
    gap: 16px;
}
@media (max-width: 960px) {
    .topbar { left: 0; padding: 0 18px; }
}

.topbar-mob-toggle {
    display: none;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    color: var(--t2);
    cursor: pointer;
    transition: background .2s;
}
.topbar-mob-toggle:hover { background: var(--surf2); color: var(--t1); }
@media (max-width: 960px) { .topbar-mob-toggle { display: flex; } }

.topbar-bc {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--t3);
    flex: 1;
}
.topbar-bc a {
    color: var(--t3);
    transition: color .2s;
}
.topbar-bc a:hover { color: var(--acc); }
.topbar-bc .cur {
    color: var(--t1);
    font-weight: 600;
}

.topbar-right {
    display: flex; align-items: center; gap: 8px;
}
.top-btn {
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t2);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
}
.top-btn:hover {
    border-color: var(--acc);
    color: var(--acc);
    background: var(--acc-dim);
}

/* user dropdown */
.user-dropdown-wrap { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 12px 5px 5px;
    background: transparent;
    border: 1px solid var(--bdr-color);
    border-radius: 40px;
    cursor: pointer;
    transition: border-color .2s;
}
.user-btn:hover { border-color: var(--acc); }
.user-av-small {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    color: #000;
    font-weight: 700;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.user-av-small img { width: 100%; height: 100%; object-fit: cover; }
.user-name-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
}
@media (max-width: 580px) { .user-name-small { display: none; } }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    box-shadow: var(--sh-hover);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, visibility .2s, transform .2s;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dm-head {
    padding: 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--bdr-color);
}
.dm-head-av {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.dm-head-av img { width: 100%; height: 100%; object-fit: cover; }
.dm-head-info { min-width: 0; }
.dm-head-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-head-plan {
    font-size: 10px;
    color: var(--acc);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dm-head-plan i { font-size: 9px; }
.dm-body {
    padding: 8px;
}
.dm-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.dm-item:hover { background: var(--surf2); color: var(--t1); }
.dm-item.danger { color: var(--red); }
.dm-item.danger:hover { background: var(--red-dim); }
.dm-item i { width: 16px; text-align: center; font-size: 13px; }
.fdiv { height: 1px; background: var(--bdr-color); }

/* ââââââââ PAGE HEADER ââââââââ */
.page-hd {
    margin-bottom: 24px;
}
.page-title {
    font-family: var(--display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.page-sub {
    font-size: 13px;
    color: var(--t3);
    font-weight: 400;
}
.page-sub strong { color: var(--t1); font-weight: 600; }

/* ââââââââ CARD ââââââââ */
.card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.card:hover {
    border-color: rgba(0,232,200,0.18);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--bdr-color);
    gap: 12px;
}
.card-title {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
    display: flex; align-items: center; gap: 9px;
    letter-spacing: -0.01em;
}
.card-title i { color: var(--acc); font-size: 13px; }
.card-body { padding: 22px; }
.card-body-flex { padding: 18px 22px; }
.card-link {
    font-size: 12px;
    color: var(--acc);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
}
.card-link:hover { gap: 8px; }

/* ââââââââ COLUMNS ââââââââ */
.col-main-side {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 18px;
}
@media (max-width: 1100px) {
    .col-main-side { grid-template-columns: 1fr; }
}
.two-col {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}
@media (max-width: 1100px) {
    .two-col { grid-template-columns: 1fr; }
}

/* ââââââââ BUTTONS ââââââââ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px;
    padding: 0 22px;
    background: var(--acc);
    color: #000;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--ff);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover {
    box-shadow: 0 0 22px var(--acc-glow);
    transform: translateY(-1px);
}
.btn-primary:disabled, .btn-primary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px;
    padding: 0 22px;
    background: transparent;
    color: var(--t1);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    font-family: var(--ff);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: var(--acc);
    color: var(--acc);
    background: var(--acc-dim);
}

.btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px;
    padding: 0 22px;
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(226,75,74,0.25);
    border-radius: var(--r-sm);
    font-family: var(--ff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}
.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: var(--surf2);
    color: var(--t2);
    border: 1px solid var(--bdr-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-sm:hover { border-color: var(--acc); color: var(--acc); }

.btn-ss {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    width: 30px; height: 30px;
    background: var(--surf2);
    color: var(--t3);
    border: 1px solid var(--bdr-color);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-ss:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }

.btn-act {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: var(--surf2);
    color: var(--t2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.btn-act:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }

.btn-action, .btn-report {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: var(--surf2);
    color: var(--t2);
    border: 1px solid var(--bdr-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-action:hover, .btn-report:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.btn-clear, .btn-clear-text {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent;
    color: var(--red);
    border: 1px solid rgba(226,75,74,0.22);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-clear:hover, .btn-clear-text:hover {
    background: var(--red-dim);
}

.btn-text {
    /* span inside buttons that hides on mobile */
}
.hide-mob {
    /* shown by default */
}
@media (max-width: 580px) {
    .hide-mob { display: none; }
}

/* ââââââââ FLASH ââââââââ */
.flash {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.flash.ok {
    background: var(--acc-dim);
    color: var(--acc);
    border: 1px solid rgba(0,232,200,0.22);
}
.flash.err {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(226,75,74,0.22);
}

/* ââââââââ STATS GRID (Dashboard) ââââââââ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.stat-card:hover {
    border-color: rgba(0,232,200,0.22);
    transform: translateY(-2px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--acc);
    opacity: 0.5;
}
.stat-card.sc-g::before { background: var(--acc); }
.stat-card.sc-b::before { background: var(--blue); }
.stat-card.sc-p::before { background: var(--pur); }
.stat-card.sc-a::before { background: var(--yel); }

.stat-ico {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.stat-card.sc-b .stat-ico { background: var(--blue-dim); color: var(--blue); }
.stat-card.sc-p .stat-ico { background: var(--pur-dim);  color: var(--pur);  }
.stat-card.sc-a .stat-ico { background: var(--yel-dim);  color: var(--yel);  }

.stat-icon {
    /* alias for stat-ico used in some files */
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.stat-val {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-lbl {
    font-size: 12px;
    color: var(--t3);
    font-weight: 500;
    margin-bottom: 10px;
}
.stat-meta {
    font-size: 11px;
    color: var(--t4);
    display: flex; align-items: center; gap: 6px;
    font-weight: 500;
}

.stat-box {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 14px;
}
.stat-box-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}
.stat-box-val {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
}
.stat-box-lbl {
    font-size: 11px;
    color: var(--t3);
    margin-top: 4px;
}
.stat-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bdr-color);
}
.stat-row:last-child { border-bottom: none; }
.stat-item {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 14px;
}

/* ââââââââ CHIPS / BADGES ââââââââ */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
    white-space: nowrap;
}
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-success {
    background: var(--acc-dim);
    color: var(--acc);
    border: 1px solid rgba(0,232,200,0.22);
}
.badge-pending {
    background: var(--yel-dim);
    color: var(--yel);
    border: 1px solid rgba(245,158,11,0.22);
}
.badge-soon {
    background: var(--surf2);
    color: var(--t4);
    border: 1px solid var(--bdr-color);
    margin-left: auto;
}

/* ââââââââ FORMS ââââââââ */
.fg { margin-bottom: 18px; }
.fl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 8px;
}
.fw {
    position: relative;
    display: flex; align-items: center;
}
.fi {
    position: absolute;
    left: 14px;
    color: var(--t4);
    font-size: 13px;
    pointer-events: none;
}
.finput, .ftextarea {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t1);
    font-family: var(--ff);
    font-size: 13px;
    transition: border-color .2s, background .2s;
    outline: none;
}
.ftextarea {
    padding-left: 14px;
    resize: vertical;
    min-height: 80px;
}
.finput:focus, .ftextarea:focus {
    border-color: var(--acc);
    background: rgba(0,232,200,0.03);
}
.finput::placeholder, .ftextarea::placeholder { color: var(--t4); }
.finput:disabled { opacity: 0.5; cursor: not-allowed; }
.fhint {
    font-size: 11px;
    color: var(--t4);
    margin-top: 6px;
}

/* ââââââââ INFO ROWS ââââââââ */
.info-rows { display: flex; flex-direction: column; }
.ir {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--bdr-color);
    gap: 12px;
}
.ir:last-child { border-bottom: none; }
.ir-l {
    font-size: 12px;
    color: var(--t3);
    font-weight: 500;
}
.ir-v {
    font-size: 13px;
    color: var(--t1);
    font-weight: 600;
    text-align: right;
}

/* ââââââââ PROFILE AVATAR ââââââââ */
.profile-avatar {
    width: 86px; height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    color: #000;
    font-family: var(--display);
    font-weight: 800;
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 3px solid var(--surf);
    box-shadow: 0 0 0 1px var(--bdr-color), 0 0 22px var(--acc-glow);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ââââââââ DATA TABLE ââââââââ */
.table-container-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    overflow: hidden;
}
.table-wrap {
    overflow-x: auto;
}
.dtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dtable thead th {
    background: var(--surf2);
    color: var(--t3);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--bdr-color);
    white-space: nowrap;
}
.dtable tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--bdr-color);
    color: var(--t2);
    vertical-align: middle;
}
.dtable tbody tr:hover {
    background: rgba(0,232,200,0.02);
}
.dtable tbody tr:last-child td { border-bottom: none; }
.dom-name {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--t1);
}

/* export header bar */
.export-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--bdr-color);
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--surf2);
}
.export-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
}

/* ââââââââ CEK DOMAIN WORKSPACE ââââââââ */
.cek-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) {
    .cek-wrapper { grid-template-columns: 1fr; }
}
.cek-main { min-width: 0; }
.cek-sidebar { min-width: 0; }

.ta-wrap {
    position: relative;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 14px 14px 14px 0;
    transition: border-color .2s;
}
.ta-wrap:focus-within { border-color: var(--acc); }
.ta-gutter-bg {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 42px;
    background: rgba(0,0,0,0.25);
    border-right: 1px solid var(--bdr-color);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    overflow: hidden;
}
.ta-gutter-numbers {
    padding: 14px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--t4);
    text-align: center;
    line-height: 1.7;
}
.ta-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--t1);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    padding-left: 54px;
    outline: none;
    resize: none;
}
.ta-input::placeholder { color: var(--t4); }
.ta-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--t4);
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 600;
}

.action-bar {
    margin-top: 14px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.action-hint {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
    color: var(--t3);
    flex: 1;
    min-width: 200px;
}
.action-btns {
    display: flex; gap: 8px;
}

/* ââââââââ AUTH (login page) ââââââââ */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-left { display: none; }
}
.auth-left {
    background:
      radial-gradient(circle at 20% 20%, rgba(0,232,200,0.10) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(124,107,255,0.10) 0%, transparent 50%),
      var(--surf);
    border-right: 1px solid var(--bdr-color);
    padding: 48px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.al-brand {
    display: inline-flex; align-items: center; gap: 14px;
    margin-bottom: 56px;
}
.al-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 18px;
    flex-shrink: 0;
}
.al-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--t1);
}
.al-name span { color: var(--acc); }

.al-feats { display: flex; flex-direction: column; gap: 18px; }
.al-feat {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    transition: border-color .2s, transform .2s;
}
.al-feat:hover {
    border-color: rgba(0,232,200,0.22);
    transform: translateX(4px);
}
.al-feat-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.al-feat-ico.af-g { background: var(--acc-dim);  color: var(--acc); }
.al-feat-ico.af-b { background: var(--blue-dim); color: var(--blue); }
.al-feat-ico.af-p { background: var(--pur-dim);  color: var(--pur); }
.al-feat-ico.af-a { background: var(--yel-dim);  color: var(--yel); }
.al-feat-body b {
    display: block;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 3px;
}
.al-feat-body p {
    font-size: 12px;
    color: var(--t3);
    line-height: 1.55;
}
.al-footer {
    font-size: 11px;
    color: var(--t4);
    text-align: left;
}

.auth-right {
    padding: 48px;
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--sh-hover);
}
.auth-title {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 13px;
    color: var(--t3);
    line-height: 1.6;
}

.oauth-buttons {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 22px;
}
.btn-oauth {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 18px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
    text-decoration: none;
    color: var(--t1);
    position: relative;
}
.btn-oauth:hover:not(.disabled) {
    border-color: var(--acc);
    background: var(--acc-dim);
    transform: translateY(-1px);
}
.btn-oauth.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-oauth-ico {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.btn-oauth-ico svg { width: 100%; height: 100%; }
.btn-oauth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    flex: 1;
}

.auth-sep {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0;
    color: var(--t4);
    font-size: 11px;
    font-weight: 500;
}
.auth-sep::before, .auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bdr-color);
}
.auth-foot {
    text-align: center;
    font-size: 12px;
}
.auth-foot a {
    color: var(--acc);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap .2s;
}
.auth-foot a:hover { gap: 9px; }

/* ââââââââ PLAN GRID ââââââââ */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    transition: border-color .2s, transform .2s;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.plan-card:hover {
    border-color: rgba(0,232,200,0.25);
    transform: translateY(-3px);
}
.plan-card:has(.pc-pop-badge) {
    border-color: var(--acc);
    background: linear-gradient(135deg, rgba(0,232,200,0.04), var(--surf));
}
.pc-pop-badge {
    position: absolute;
    top: 18px; right: -42px;
    background: var(--acc);
    color: #000;
    font-family: var(--display);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 44px;
    transform: rotate(45deg);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}
.pc-head { margin-bottom: 18px; }
.pc-slug {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.pc-tagline {
    font-size: 12px;
    color: var(--t3);
    margin-bottom: 14px;
    min-height: 32px;
}
.pc-price {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    color: var(--t1);
    line-height: 1;
    letter-spacing: -0.02em;
}
.pc-price .rp {
    font-size: 14px;
    color: var(--t3);
    vertical-align: super;
    font-weight: 600;
    margin-right: 2px;
}
.pc-body {
    flex: 1;
    display: flex; flex-direction: column;
}
.pc-feats {
    list-style: none;
    padding-top: 18px;
    border-top: 1px solid var(--bdr-color);
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 18px;
}
.pc-feats li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
}
.pc-feats li i {
    color: var(--acc);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}
.pc-feats li strong { color: var(--t1); font-weight: 700; }
.pf-on { /* utility class for "on" feature row */ }

.btn-plan-up {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px;
    background: var(--acc);
    color: #000;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--ff);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}
.btn-plan-up:hover {
    box-shadow: 0 0 22px var(--acc-glow);
    transform: translateY(-1px);
}
.btn-plan-cur {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px;
    background: var(--surf2);
    color: var(--t4);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
}

/* status akun box (plan.php) */
.status-akun-box {
    display: flex; align-items: center; gap: 14px;
}
.token-info-box {
    display: flex; align-items: center; gap: 14px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 12px 18px;
}
.token-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* QRIS Modal */
.qris-overlay {
    position: fixed; inset: 0;
    background: rgba(7,8,15,0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.qris-overlay.show { display: flex; }
.qris-modal-box {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    box-shadow: var(--sh-hover);
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popUp .25s ease-out both;
}
@keyframes popUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-close {
    position: absolute; top: -12px; right: -12px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px; line-height: 1;
    color: var(--t2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}
.modal-close:hover {
    background: var(--red-dim);
    color: var(--red);
    border-color: var(--red);
}
.qris-warning {
    background: var(--yel-dim);
    color: var(--yel);
    border: 1px solid rgba(245,158,11,0.22);
    padding: 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
}


/* ââââââââ DETAIL CARDS (cek-domain / peringkat) ââââââââ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px 22px 22px;
}
@media (max-width: 900px)  { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .detail-grid { grid-template-columns: 1fr; } }
.detail-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 16px;
}
.detail-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.detail-right { margin-left: auto; }
.detail-sep { height: 1px; background: var(--bdr-color); margin: 12px 0; }
.detail-desc-lbl {
    font-size: 10px;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 4px;
}
.detail-desc-txt {
    font-size: 12px;
    color: var(--t2);
    line-height: 1.55;
}

/* SEO metrics card (cek-domain) */
.seo-metrics-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 700px) { .seo-metrics-wrap { grid-template-columns: 1fr; } }
.seo-metric-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
}
.seo-metric-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.seo-metric-content { min-width: 0; flex: 1; }
.seo-metric-title {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.1;
}
.seo-metric-desc {
    font-size: 11px;
    color: var(--t3);
    margin-top: 3px;
}

/* circle gauge (cek-domain / peringkat) */
.circle {
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 1s ease;
    stroke: var(--acc);
    stroke-width: 8;
    fill: none;
}
.circle-bg {
    stroke: var(--bdr-color);
    stroke-width: 8;
    fill: none;
}

/* gauge cards */
.gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) { .gauge-grid { grid-template-columns: 1fr; } }
.gauge-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 16px;
    text-align: center;
}
.gauge-title {
    font-size: 11px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 4px;
}
.gauge-sub {
    font-size: 11px;
    color: var(--t4);
}

/* ââââââââ TREND / CHART card ââââââââ */
.trend-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 22px;
}
.trend-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.trend-title {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
}
.trend-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    background: var(--acc-dim);
    color: var(--acc);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
}
.trend-svg { width: 100%; height: auto; }
.trend-stroke-anim {
    fill: none;
    stroke: var(--acc);
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawTrend 2s ease forwards;
}
@keyframes drawTrend { to { stroke-dashoffset: 0; } }
.trend-dot-anim {
    fill: var(--acc);
    opacity: 0;
    animation: fadeIn .5s ease forwards 1.8s;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ââââââââ SUMMARY GRID (peringkat) ââââââââ */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.sum-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 14px;
}
.sum-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}
.sum-val {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1;
}
.sum-lbl {
    font-size: 11px;
    color: var(--t3);
    margin-top: 5px;
}

/* color-coded icon backgrounds */
.bg-moz, .ico-moz       { background: var(--acc-dim);  color: var(--acc); }
.bg-ahrefs, .ico-ahrefs { background: var(--blue-dim); color: var(--blue); }
.bg-maj, .ico-majestic  { background: var(--pur-dim);  color: var(--pur); }
.bg-rank, .ico-rank     { background: var(--yel-dim);  color: var(--yel); }
.bg-key, .ico-kw        { background: rgba(239,158,39,0.12); color: var(--orange); }
.bg-visit, .ico-visit   { background: var(--blue-dim); color: var(--blue); }
.bg-pages, .ico-pages   { background: var(--acc-dim);  color: var(--acc); }
.bg-dur, .ico-dur       { background: var(--pur-dim);  color: var(--pur); }
.ico-spam               { background: var(--red-dim);  color: var(--red); }
.ico-bounce             { background: var(--red-dim);  color: var(--red); }
.ico-ttf                { background: var(--pur-dim);  color: var(--pur); }
.ico-links              { background: var(--acc-dim);  color: var(--acc); }
.c-ahrefs               { color: var(--blue); }

/* progress bars used inside cek-peringkat */
.cd-bar, .cd-track {
    width: 100%; height: 8px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.cd-fill {
    height: 100%;
    background: var(--acc);
    border-radius: 4px;
    transition: width .6s ease;
}
.cd-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--t3);
    margin-top: 4px;
}

/* ââââââââ BLOG-LIKE/POPUP/PAYMENT ââââââââ */
.popup-overlay {
    position: fixed; inset: 0;
    background: rgba(7,8,15,0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.popup-overlay.show { display: flex; }
.popup-container {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-hover);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: popUp .25s ease-out both;
}
.popup-header-top {
    padding: 20px 22px;
    border-bottom: 1px solid var(--bdr-color);
    display: flex; align-items: center; justify-content: space-between;
}
.popup-header-left { display: flex; align-items: center; gap: 12px; }
.popup-header-title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
}
.popup-content { padding: 22px; }
.popup-actions {
    padding: 16px 22px;
    border-top: 1px solid var(--bdr-color);
    display: flex; gap: 10px; justify-content: flex-end;
}

.payment-container {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 24px;
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
}

/* ââââââââ MISC ââââââââ */
.b-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 6px var(--acc-glow);
    flex-shrink: 0;
}
.b-url {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--t1);
    word-break: break-all;
}
.report-bar {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.report-count {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--t1);
    font-weight: 700;
}
.report-left { color: var(--t3); font-size: 12px; }
.rp-title {
    font-family: var(--display);
    font-size: 14px;
    color: var(--t1);
    font-weight: 700;
}

.filter-group {
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
}
.search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t1);
    font-size: 13px;
    outline: none;
    position: relative;
}
.search:focus { border-color: var(--acc); }

.pagination {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 36px; height: 36px;
    padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .2s, color .2s, background .2s;
}
.pagination a:hover {
    border-color: var(--acc);
    color: var(--acc);
}
.pagination .active, .pagination span.active {
    background: var(--acc);
    border-color: var(--acc);
    color: #000;
}

/* mobile / desktop view toggle (some pages use these) */
.desk-view { display: block; }
.mob-view  { display: none; }
@media (max-width: 700px) {
    .desk-view { display: none; }
    .mob-view  { display: block; }
}

/* responsive table card */
.rcard {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    margin-bottom: 12px;
    overflow: hidden;
}
.rcard-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bdr-color);
    background: var(--surf2);
}
.rcard-url {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--t1);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rcard-body { padding: 16px; }
.rcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.rcard-field {
    font-size: 12px;
    color: var(--t2);
}
.rcard-field b { display: block; color: var(--t4); font-size: 10px; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.rcard-chev { color: var(--t4); font-size: 12px; }
.rcard-redir, .redir-arrow { color: var(--yel); }

/* http-checker rows */
.ht-table { width: 100%; }
.htb {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bdr-color);
    font-size: 13px;
}
.htb-ok    { color: var(--acc); }
.htb-redir { color: var(--yel); }
.htb-err   { color: var(--red); }

/* kw table */
.kw-tbl { width: 100%; }
.niche-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: 100px;
    font-size: 10px;
    color: var(--t3);
    font-weight: 600;
    margin-right: 4px;
}

/* tab container */
.tab-container {
    display: flex; gap: 4px;
    border-bottom: 1px solid var(--bdr-color);
    margin-bottom: 22px;
    overflow-x: auto;
}

/* iframe / preview boxes */
.iframe-box, .ss-img {
    width: 100%;
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surf2);
}

/* browser mock */
.browser-mockup {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    overflow: hidden;
}
.browser-header {
    background: var(--surf2);
    padding: 8px 12px;
    border-bottom: 1px solid var(--bdr-color);
}

/* single url input (some tools) */
.single-url-wrap {
    position: relative;
    display: flex; align-items: center;
}
.single-url-icon {
    position: absolute; left: 14px;
    color: var(--t4);
}
.single-url-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t1);
    font-family: var(--mono);
    font-size: 13px;
    outline: none;
}
.single-url-input:focus { border-color: var(--acc); }

/* bp- (batch progress) used in cek-domain */
.bp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bp-ico {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
}
.bp-title { font-weight: 700; color: var(--t1); }
.bp-sub   { font-size: 11px; color: var(--t3); }
.bp-bar-track {
    width: 100%; height: 6px;
    background: var(--surf2);
    border-radius: 3px;
    overflow: hidden;
}
.bp-bar-fill {
    height: 100%;
    background: var(--acc);
    border-radius: 3px;
    transition: width .3s ease;
}
.bp-stat { font-family: var(--mono); font-size: 12px; color: var(--t2); }
.bp-fail { color: var(--red); }
.bp-actions { display: flex; gap: 8px; margin-top: 10px; }

/* misc one-class utilities seen in markup */
.c1, .c2, .c3, .c4 { } /* used for grouping */
.cur, .target, .val, .y { }
.danger { color: var(--red); }
.disabled { opacity: 0.5; pointer-events: none; }
.percentage { font-family: var(--mono); font-weight: 700; color: var(--t1); }
.ico { display: inline-flex; align-items: center; justify-content: center; }
.font-mono { font-family: var(--mono); }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.desc { font-size: 12px; color: var(--t3); }
.fdot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); display: inline-block; }
.fbtn, .fbtn-csv {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.fbtn:hover, .fbtn-csv:hover { border-color: var(--acc); color: var(--acc); }
.ts-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 14px;
}
.ts-card-title { font-family: var(--display); font-weight: 700; color: var(--t1); margin-bottom: 10px; font-size: 13px; }
.ts-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); margin-bottom: 6px; }
.ts-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bdr-color); }
.ts-row:last-child { border-bottom: none; }
.ts-name { flex: 1; font-size: 12px; color: var(--t2); }
.ts-pct  { font-family: var(--mono); font-size: 11px; color: var(--t3); font-weight: 700; }
.ts-bar  { width: 80px; height: 5px; background: var(--surf3); border-radius: 3px; overflow: hidden; }

.pstrip { background: var(--surf2); padding: 12px; border-radius: var(--r-sm); margin-bottom: 12px; }
.pi { font-size: 12px; color: var(--t3); }

/* responsive sidebar hide */
@media (max-width: 960px) {
    .topbar-bc { font-size: 12px; }
}

/* hide elements when sidebar is collapsed on small screens (existing dashboard logic) */
.r, .g { }

/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   PATCH v2 â FIX missing selectors & color drift
   - .popup-overlay.active (bukan .show)
   - .domain-card, .dc-*, .tab-*, .pbn
   - circular chart, gauge values
   - Warna: ganti --yel (kuning) â ungu/cyan biar konsisten
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

/* === FIX WARNA YANG MENGGANGGU === */
:root, [data-theme="dark"] {
    /* Ganti yel kekuningan menjadi varian aksen ungu (legacy --yel masih dipakai banyak tempat) */
    --yel:     #b399ff;
    --yel-dim: rgba(124,107,255,0.15);
    /* Orange dilembutkan menjadi pink/peach lembut, masih kontras */
    --orange:  #ff8ab3;
}
/* override stat-card top-bar warna kuning â ungu */
.stat-card.sc-a::before { background: var(--pur); }
.stat-card.sc-a .stat-ico { background: var(--pur-dim); color: var(--pur); }

/* === POPUP / MODAL FIX === */
.popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(7,8,15,0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 16px;
}
.popup-overlay.active,
.popup-overlay.show { display: flex; }

.popup-container {
    width: 100%; max-width: 900px;
    max-height: 90vh;
    background: var(--surf);
    color: var(--t1);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-lg);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: var(--sh-hover);
    animation: popUp .25s ease-out both;
}
.popup-container::-webkit-scrollbar { width: 6px; }
.popup-container::-webkit-scrollbar-thumb { background: var(--t4); border-radius: 3px; }

.watermark-capture-area {
    position: relative;
    min-height: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surf);
}
.watermark-capture-area::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: url(data:image/svg+xml,%3Csvg width='220' height='220' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-size='28' font-weight='900' fill='rgba(255,255,255,0.025)' font-family='sans-serif' text-anchor='middle' dominant-baseline='middle' transform='rotate(-35 110 110)'%3EDNDseo%3C/text%3E%3C/svg%3E");
}

.popup-content {
    position: relative; z-index: 1;
    padding: 28px;
}
.popup-header-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--bdr-color);
}
.popup-header-left { min-width: 0; flex: 1; }
.popup-header-title {
    font-family: var(--display);
    font-size: 22px; font-weight: 800;
    color: var(--t1); letter-spacing: -.02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.popup-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* btn-ss override (popup uses this for action buttons inside) */
.btn-ss {
    width: auto; height: 34px;
    padding: 0 14px;
    background: var(--surf2);
    color: var(--t1);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: all .2s; white-space: nowrap;
    cursor: pointer;
}
.btn-ss:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }
.btn-ss.blue { background: var(--blue-dim); color: var(--blue); border-color: rgba(79,142,247,0.25); }
.btn-ss.blue:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ss:disabled { opacity: 0.4; cursor: not-allowed; }

/* === DOMAIN CARD (cek-domain-masal & riwayat popup view) === */
.cek-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
@media (max-width: 1100px) { .cek-layout { grid-template-columns: 1fr; } }

.cek-textarea {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    padding: 16px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t1);
    width: 100%;
    resize: vertical;
    min-height: 180px;
    outline: none;
    transition: border-color .2s;
}
.cek-textarea:focus {
    border-color: var(--acc);
    background: rgba(0,232,200,0.03);
}

.domain-card {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    margin-bottom: 12px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    overflow: hidden;
}
.domain-card:hover {
    border-color: var(--acc);
    box-shadow: 0 4px 20px rgba(0,232,200,0.08);
    transform: translateY(-1px);
}
.dc-header {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    flex-wrap: wrap;
}
.dc-globe {
    width: 38px; height: 38px; min-width: 38px;
    border-radius: 10px;
    background: var(--acc-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--acc);
    flex-shrink: 0;
}
.dc-info { flex: 1; min-width: 0; }
.dc-name {
    font-family: var(--mono);
    font-size: 14px; font-weight: 700; color: var(--t1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-meta { font-size: 11px; color: var(--t4); margin-top: 2px; }
.dc-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dc-open {
    font-size: 12px; font-weight: 700;
    color: var(--acc); white-space: nowrap; margin-left: auto;
    display: inline-flex; align-items: center; gap: 5px;
}
.dc-open:hover { color: var(--acc2); }

/* === TAB CONTAINER (riwayat) === */
.tab-container {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--bdr-color);
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 0;
}
.tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: transparent;
    color: var(--t3);
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--ff);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--t1); }
.tab-btn.active {
    color: var(--acc);
    border-bottom-color: var(--acc);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* header-flex (riwayat card head with button) */
.header-flex {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; width: 100%; flex-wrap: wrap;
}

/* pagination button extra (pbn) */
.pbn {
    min-width: 36px; height: 36px;
    padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 13px; font-weight: 600;
    transition: all .2s;
    text-decoration: none;
}
.pbn:hover { border-color: var(--acc); color: var(--acc); }
.pbn.disabled, .pbn.disabled:hover {
    opacity: 0.4; pointer-events: none; cursor: not-allowed;
    color: var(--t4); border-color: var(--bdr-color);
}

/* === CIRCULAR CHART (popup detail) === */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    overflow: visible;
}
.circular-chart .circle-bg {
    fill: none;
    stroke: var(--surf3);
    stroke-width: 3;
}
.circular-chart .circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
    transform: none;
    transform-origin: unset;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 0;
}
@keyframes progress { from { stroke-dasharray: 0 100; } }
.circular-chart .percentage {
    fill: var(--t1);
    font-family: var(--display);
    font-size: 0.5em; font-weight: 800;
    text-anchor: middle;
}

/* circular-chart accent color variants */
.circular-chart.c-moz .circle    { stroke: var(--acc); }
.circular-chart.c-ahrefs .circle { stroke: var(--blue); }
.circular-chart.c-maj .circle    { stroke: var(--pur); }
.circular-chart.c-key .circle    { stroke: var(--orange); }
.circular-chart.c-spam .circle   { stroke: var(--red); }

/* gauge layout in popup */
.gauge-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 18px 14px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.gauge-label {
    font-family: var(--mono);
    font-size: 16px; font-weight: 800;
    color: var(--t1);
    margin-top: 4px;
}

/* === SEO METRIC ITEM redesign â biar deskripsi metrik tidak generic === */
.seo-metrics-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.seo-metric-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    transition: border-color .2s;
}
.seo-metric-item:hover { border-color: rgba(0,232,200,0.22); }
.seo-metric-icon {
    width: 38px; height: 38px; min-width: 38px;
    border-radius: 10px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.seo-metric-content { min-width: 0; flex: 1; }
.seo-metric-title {
    font-family: var(--mono);
    font-size: 18px; font-weight: 700;
    color: var(--t1);
    line-height: 1.1;
}
.seo-metric-desc {
    font-size: 11px; color: var(--t3);
    margin-top: 4px; line-height: 1.4;
}

/* === DETAIL CARD (cek-peringkat) â needed values, more compact === */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 18px 22px 22px;
}
.detail-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.detail-top {
    display: flex; align-items: center; gap: 10px;
}
.detail-right {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 18px; font-weight: 800;
    color: var(--t1);
    line-height: 1;
}
.detail-sep { height: 1px; background: var(--bdr-color); margin: 6px 0; }
.detail-desc-lbl {
    font-size: 10px;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 2px;
}
.detail-desc-txt { font-size: 12px; color: var(--t2); line-height: 1.45; }

/* === REDUKSI WHITESPACE â kurangi padding card biar nggak banyak ruang kosong === */
.main-content { padding: 22px 28px 56px; }
@media (max-width: 1100px) { .main-content { padding: 18px 20px 48px; } }
@media (max-width: 960px)  { .main-content { padding: 16px 16px 40px; } }

.page-hd { margin-bottom: 18px; }
.card-head { padding: 13px 18px; }
.card-body { padding: 18px; }
.card-body-flex { padding: 14px 18px; }

.stats-grid {
    gap: 12px;
    margin-bottom: 18px;
}
.stat-card { padding: 16px 18px; }
.stat-ico {
    width: 36px; height: 36px;
    font-size: 15px;
    margin-bottom: 10px;
}
.stat-val { font-size: 24px; margin-bottom: 4px; }
.stat-lbl { font-size: 11px; margin-bottom: 7px; }
.stat-meta { font-size: 10px; }

.col-main-side { gap: 14px; }
.two-col { gap: 14px; }

/* plan-card compact */
.plan-card { padding: 22px 20px; }
.pc-head { margin-bottom: 14px; }
.pc-price { font-size: 26px; }
.pc-feats { padding-top: 14px; gap: 8px; margin-bottom: 14px; }
.pc-feats li { font-size: 14px; }
.btn-plan-up, .btn-plan-cur { height: 38px; font-size: 12px; }

/* status-akun-box + token-info-box compact */
.token-info-box { padding: 10px 14px; }
.token-icon { width: 38px; height: 38px; font-size: 15px; }

/* fix card-body inside top status row â kurangi ruang kosong */
.card-body-flex {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}

/* === QRIS modal fix â pastikan dark-friendly === */
.qris-modal-box {
    background: var(--surf);
    border: 1px solid var(--bdr-color);
    box-shadow: var(--sh-hover);
    color: var(--t1);
    padding: 28px 22px;
}
.qris-modal-box h3 {
    font-family: var(--display);
    color: var(--t1);
    font-weight: 800;
}
.qris-modal-box > p {
    color: var(--t3);
}
.qris-modal-box .modal-close {
    top: -14px; right: -14px;
    width: 34px; height: 34px;
    background: var(--surf);
    color: var(--t2);
    border: 1px solid var(--bdr-color);
    border-radius: 50%;
    box-shadow: var(--sh-sm);
    font-size: 18px; font-weight: 600;
    line-height: 1;
}
.qris-modal-box .modal-close:hover {
    background: var(--red-dim);
    color: var(--red);
    border-color: var(--red);
    box-shadow: none;
}

/* QRIS box style force â override inline styles legacy */
.qris-modal-box .qris-warning {
    background: var(--surf2) !important;
    color: var(--t2) !important;
    border: 1px solid var(--bdr-color) !important;
    box-shadow: none !important;
    border-radius: var(--r-sm) !important;
    font-weight: 500 !important;
}
.qris-modal-box .qris-warning i { color: var(--yel); }

/* QRIS image container â buang white box */
.qris-modal-box > div[style*="background: #fff"],
.qris-modal-box > div[style*="background:#fff"] {
    background: #fff !important;
    border: 1px solid var(--bdr-color) !important;
    box-shadow: none !important;
}

/* "Total Tagihan" label & value */
.qris-modal-box #qrisTotal {
    color: var(--acc) !important;
    font-family: var(--mono);
}

/* === MISC patches === */
/* Empty state inside dtable */
.dtable tbody td[colspan] {
    background: var(--surf);
}

/* generic styles inside cek-domain reports â make sure detail-card icon labels align */
.detail-card .seo-metric-icon { background: var(--acc-dim); color: var(--acc); }
.detail-card .ico-moz { background: var(--acc-dim);  color: var(--acc); }
.detail-card .ico-ahrefs { background: var(--blue-dim); color: var(--blue); }
.detail-card .ico-majestic { background: var(--pur-dim);  color: var(--pur); }
.detail-card .ico-spam { background: var(--red-dim); color: var(--red); }

/* tabel header icon yellow â ungu lembut */
.dtable thead th i { filter: none; }

/* ribbon: kunjungan periodik */
.report-bar { padding: 12px 16px; margin-bottom: 14px; }


/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   PATCH v3 â FIX dari screenshot user
   1. seo-metric-item: layout VERTICAL (icon+title di atas, desc di bawah)
   2. gauge-card di popup: lebih compact, circle lebih kecil
   3. cek-wrapper: sidebar Statistik isi penuh ke tinggi workspace
   4. tabel report angka: layout lebih ringkas
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

/* === 1. PENJELASAN METRIK SEO â layout vertikal, BUKAN flex row === */
.card-body.seo-metrics-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 18px;
}

/* Hard override agar item tidak jadi flex row */
.seo-metric-item {
    display: block !important;       /* batalkan flex parent */
    padding: 16px !important;
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    transition: border-color .2s;
}
.seo-metric-item:hover {
    border-color: rgba(0,232,200,0.22);
}

/* Header item (icon + title) tetap flex row, dari inline-style markup */
.seo-metric-item > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

/* Title-nya pakai Syne, tidak terlalu besar */
.seo-metric-title {
    font-family: var(--display);
    font-size: 15px !important;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.2;
}

/* Content & deskripsi: full width, bukan kolom sempit */
.seo-metric-content {
    width: 100%;
    display: block;
}
.seo-metric-desc {
    font-family: var(--ff);
    font-size: 12.5px;
    color: var(--t3);
    line-height: 1.6;
    margin: 0;
}

/* Pastikan icon ukurannya konsisten meski inline-style men-set width 38px */
.seo-metric-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* === 2. POPUP DETAIL â gauge cards lebih compact, biar tidak berdempetan === */
.popup-container {
    max-width: 820px;            /* sebelumnya 900, dikecilkan */
}
.popup-content {
    padding: 24px;
}

/* gauge-grid kompak */
.gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 700px) { .gauge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gauge-grid { grid-template-columns: 1fr; } }

.gauge-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gauge-label {
    font-family: var(--display);
    font-size: 10px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 2px;
}

/* Circle gauge dibuat lebih kecil dengan stroke lebih tipis */
.circular-chart {
    display: block;
    margin: 0 auto;
    width: 78px;             /* sebelumnya max 120 */
    height: 78px;
    overflow: visible;
}
.circular-chart .circle-bg {
    fill: none;
    stroke: var(--surf3);
    stroke-width: 2.2;
}
.circular-chart .circle {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke: var(--acc);
    animation: progress 1s ease-out forwards;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 0;
    transform: none;
}
.circular-chart .percentage {
    fill: var(--t1);
    font-family: var(--display);
    font-size: 0.50em;
    font-weight: 800;
    text-anchor: middle;
}

/* warna circle per ramp */
.circular-chart.c-moz .circle, .c-moz .circle    { stroke: var(--acc); }
.circular-chart.c-ahrefs .circle, .c-ahrefs .circle { stroke: var(--blue); }
.circular-chart.c-maj .circle, .c-maj .circle    { stroke: var(--pur); }
.circular-chart.c-key .circle, .c-key .circle    { stroke: var(--orange); }
.circular-chart.c-spam .circle, .c-spam .circle  { stroke: var(--red); }

.gauge-title {
    font-size: 11px;
    color: var(--t2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    line-height: 1.2;
}
.gauge-sub {
    font-size: 9.5px;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* summary-grid di popup juga compact */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
@media (max-width: 700px) { .summary-grid { grid-template-columns: repeat(2, 1fr); } }
.sum-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sum-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--acc-dim);
    color: var(--acc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-bottom: 2px;
}
.sum-val {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1;
}
.sum-lbl {
    font-size: 9.5px;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* trend-card lebih compact */
.trend-card {
    background: var(--surf2);
    border: 1px solid var(--bdr-color);
    border-radius: var(--r);
    padding: 14px 16px;
    margin-bottom: 14px;
}
.trend-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.trend-title {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    color: var(--t1);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === 3. RUANG KOSONG KANAN â cek-wrapper isi penuh === */
/* Workspace di kiri dan sidebar di kanan tinggi sama (stretch) */
.cek-wrapper {
    align-items: stretch;
}
.cek-main, .cek-sidebar {
    display: flex;
    flex-direction: column;
}
.cek-main > .card, .cek-sidebar > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Statistik card body penuh ke bawah, content menyebar */
.cek-sidebar .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

/* === 4. KURANGI RUANG KOSONG SETELAH WORKSPACE === */
/* Beberapa halaman tidak perlu margin bawah segede itu â kurangi */
.cek-wrapper { margin-bottom: 14px; }

/* tabel laporan analisis: header + row lebih compact */
.dtable thead th {
    padding: 10px 14px;
    font-size: 10px;
}
.dtable tbody td {
    padding: 11px 14px;
    font-size: 13px;
}
.dtable .dom-name {
    font-size: 13px;
}
/* domain icon di tabel (yang muncul di awal kolom Domain) */
.dtable tbody td .dc-globe,
.dtable tbody td img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    object-fit: cover;
}
/* angka metrik di tabel laporan harusnya ungu/cyan (color-coded ok), tapi pastikan kontras cukup */
.dtable tbody td[style*="--pur"] { font-family: var(--mono); font-weight: 700; }

/* tombol View di tabel report */
.btn-report {
    height: 28px;
    padding: 0 12px;
    font-size: 11px;
}

/* === 5. STATISTIK HARI INI box: angka 50 jangan terlalu besar di Vexlora === */
.cek-sidebar .card-body > div {
    /* divider antar stat row */
}
/* Generic large numeric value style di sidebar statistik */
.cek-sidebar .card-body div[style*="font-size: 28px"] {
    font-size: 22px !important;
    font-family: var(--display) !important;
}

/* ico bulat 44x44 di sidebar statistik */
.cek-sidebar .card-body div[style*="width: 44px"] {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
}

@keyframes spkDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes spkFade {
    to { opacity: 1; }
}
@keyframes spkRing {
    0%   { opacity: .7; r: 6;  }
    100% { opacity: 0;  r: 14; }
}
/* Base text lebih besar & readable */
body { font-size: 15px; }
p    { font-size: 14px; }

.card-title  { font-size: 20px; }
.stat-lbl    { font-size: 18px; }
.stat-meta   { font-size: 15px; }
.stat-val    { font-size: 20px; }

/* Topbar breadcrumb */
.topbar-bc   { font-size: 12px; }

/* Sidebar nav */
.sb-item     { font-size: 14px; }
.sb-sec      { font-size: 10px; }

/* Table */
.dtable thead th { font-size: 14px; }
.dtable tbody td { font-size: 14px; }

@keyframes spkDraw { to { stroke-dashoffset: 0; } }
@keyframes spkFade { to { opacity: 1; } }
@keyframes spkRing {
    0%   { opacity: .7; r: 6; }
    100% { opacity: 0;  r: 14; }
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0px currentColor; }
    70%  { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0px transparent; }
}
@keyframes spkDraw { to { stroke-dashoffset: 0; } }
@keyframes spkFade { to { opacity: 1; } }
@keyframes spkRing {
    0%   { opacity: .7; r: 6; }
    100% { opacity: 0;  r: 14; }
}