:root {
    --primary: #3d3d3d;
    --primary-dark: #808080;
    --primary-bg: rgba(32, 32, 32, 0.06);
    --bg-sidebar: #f6f6f6;
    --bg-main: radial-gradient(ellipse at 30% 20%, #e0e0e0 0%, #f7f7f7 62%);
    --card-bg: rgba(238, 238, 238, 0.94);
    --glass-border: rgba(32, 32, 32, 0.2);
    --text-primary: #282828;
    --text-secondary: #4f4f4f;
    --accent: #2a2a2a;
    --danger: #909090;
    --success: #646464;
    --sidebar-width: 288px;
    --cyan-glow: 0 0 10px rgba(32, 32, 32, 0.09);
    --gold-gradient: var(--cyan-gradient);
    --gold-glow: var(--cyan-glow);
    --gold-shimmer: var(--cyan-shimmer);
    --cyan-gradient: linear-gradient(135deg, #a1a1a1 0%, #2c2c2c 48%, #797979 100%);
    --cyan-shimmer: linear-gradient(to right, #969696 0%, #525252 35%, #202020 50%, #525252 65%, #969696 100%);
    --panel-shadow: 0 18px 50px -18px rgba(250, 250, 250, 0.9);
    --cyan-border-glow: 0 0 12px rgba(32, 32, 32, 0.06);
    --font-ui: 'Outfit', sans-serif;
    --font-display: 'Syne', 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 5px rgba(87, 87, 87, 0.3); }
    50% { box-shadow: 0 0 20px rgba(87, 87, 87, 0.6); }
    100% { box-shadow: 0 0 5px rgba(87, 87, 87, 0.3); }
}

@keyframes ambient-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, -3%) scale(1.08); }
}

@keyframes ambient-drift-alt {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, 4%) scale(1.12); }
}

@keyframes scan-sweep {
    0% { transform: translateY(-100%); opacity: 0; }
    15% { opacity: 0.35; }
    50% { opacity: 0.12; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes status-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(78, 78, 78, 0.55); }
    50% { opacity: 0.65; box-shadow: 0 0 0 6px rgba(78, 78, 78, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-ui);
}

body {
    background:
        radial-gradient(ellipse at 12% 18%, rgba(32, 32, 32, 0.09) 0%, transparent 42%),
        radial-gradient(ellipse at 88% 78%, rgba(82, 82, 82, 0.07) 0%, transparent 46%),
        radial-gradient(circle at 70% 10%, rgba(32, 32, 32, 0.045) 0%, transparent 28%),
        #f7f7f7 !important;
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(87, 87, 87, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 87, 87, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, #fafafa 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #fafafa 20%, transparent 75%);
}

.ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}

.ambient-orb-a {
    width: 420px;
    height: 420px;
    top: -120px;
    left: 18%;
    background: radial-gradient(circle, rgba(32, 32, 32, 0.12), transparent 70%);
    animation: ambient-drift 14s ease-in-out infinite;
}

.ambient-orb-b {
    width: 380px;
    height: 380px;
    bottom: -80px;
    right: 8%;
    background: radial-gradient(circle, rgba(115, 115, 115, 0.1), transparent 70%);
    animation: ambient-drift-alt 18s ease-in-out infinite;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(32, 32, 32, 0.045), transparent 40%),
        linear-gradient(180deg, transparent, rgba(250, 250, 250, 0.35));
}

.ambient-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(32, 32, 32, 0.018), transparent);
    animation: scan-sweep 9s linear infinite;
}

.app-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.app-wrapper[hidden] {
    display: none !important;
}

/* ========== LOGIN SCREEN ========== */
@keyframes login-glow-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate3d(3%, -4%, 0) scale(1.08); opacity: 0.8; }
}

@keyframes login-glow-drift-alt {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate3d(-4%, 3%, 0) scale(1.12); opacity: 0.7; }
}

@keyframes login-ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.28; }
    50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.45; }
}

@keyframes login-sheen-sweep {
    0% { transform: translateX(-30%) rotate(18deg); opacity: 0; }
    25% { opacity: 0.35; }
    55% { opacity: 0.18; }
    100% { transform: translateX(40%) rotate(18deg); opacity: 0; }
}

.login-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vh, 2rem) 1.25rem;
    box-sizing: border-box;
    overflow: auto;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(32, 32, 32, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 18% 82%, rgba(89, 89, 89, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 86% 14%, rgba(66, 66, 66, 0.06) 0%, transparent 55%),
        linear-gradient(165deg, #f5f5f5 0%, #f8f8f8 48%, #f7f7f7 100%);
}

.login-screen[hidden] {
    display: none !important;
}

.login-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.login-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(32, 32, 32, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 32, 32, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #fafafa 18%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #fafafa 18%, transparent 72%);
    opacity: 0.45;
}

.login-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 42%, rgba(250, 250, 250, 0.55) 100%),
        linear-gradient(180deg, rgba(32, 32, 32, 0.04), transparent 18%, transparent 82%, rgba(250, 250, 250, 0.35));
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.login-glow-a {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(32, 32, 32, 0.16) 0%, rgba(89, 89, 89, 0.06) 42%, transparent 70%);
    animation: login-glow-drift 14s ease-in-out infinite;
}

.login-glow-b {
    width: min(420px, 60vw);
    height: min(420px, 60vw);
    bottom: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(103, 103, 103, 0.14) 0%, transparent 70%);
    animation: login-glow-drift-alt 18s ease-in-out infinite;
}

.login-glow-c {
    width: min(380px, 55vw);
    height: min(380px, 55vw);
    top: 12%;
    right: -8%;
    background: radial-gradient(circle, rgba(57, 57, 57, 0.1) 0%, transparent 68%);
    animation: login-glow-drift 16s ease-in-out infinite reverse;
}

.login-sheen {
    position: absolute;
    top: -20%;
    left: 0;
    width: 42%;
    height: 140%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(32, 32, 32, 0.03) 35%,
        rgba(32, 32, 32, 0.09) 50%,
        rgba(32, 32, 32, 0.03) 65%,
        transparent 100%
    );
    animation: login-sheen-sweep 9s ease-in-out infinite;
}

.login-ring {
    position: absolute;
    top: 46%;
    left: 50%;
    width: min(720px, 92vw);
    height: min(720px, 92vw);
    border-radius: 50%;
    border: 1px solid rgba(32, 32, 32, 0.08);
    box-shadow:
        inset 0 0 60px rgba(32, 32, 32, 0.03),
        0 0 80px rgba(32, 32, 32, 0.04);
    animation: login-ring-pulse 8s ease-in-out infinite;
}

.login-ring::before,
.login-ring::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(32, 32, 32, 0.05);
}

.login-ring::after {
    inset: 24%;
    border-color: rgba(32, 32, 32, 0.035);
}

.login-grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.login-shell {
    width: min(560px, 94vw);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.45s ease both;
}

.login-brand-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.login-brand-mark {
    display: block;
    width: clamp(148px, 28vw, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto -0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    filter: drop-shadow(0 14px 28px rgba(250, 250, 250, 0.55)) drop-shadow(0 0 22px rgba(73, 73, 73, 0.18));
    user-select: none;
    pointer-events: none;
}

.login-logo {
    width: 100%;
    max-width: none;
    padding: 0.95rem 1.2rem;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-color: rgba(32, 32, 32, 0.28);
    background:
        linear-gradient(135deg, rgba(32, 32, 32, 0.1), rgba(250, 250, 250, 0.35)),
        rgba(246, 246, 246, 0.88);
    box-shadow:
        0 18px 40px rgba(250, 250, 250, 0.45),
        inset 0 1px 0 rgba(32, 32, 32, 0.12),
        inset 0 0 24px rgba(32, 32, 32, 0.04);
}

.login-logo .logo-text {
    flex: 0 1 auto;
    align-items: center;
}

.login-logo .logo-brand {
    font-size: clamp(1.75rem, 4.8vw, 2.5rem);
    letter-spacing: 0.18em;
}

.login-tagline {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(57, 57, 57, 0.78);
    font-weight: 600;
    text-shadow: 0 1px 12px rgba(250, 250, 250, 0.45);
    margin-top: 0.55rem;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.85rem 1.8rem;
    border-radius: 22px;
    border: 1px solid rgba(32, 32, 32, 0.18);
    background:
        linear-gradient(165deg, rgba(32, 32, 32, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, rgba(233, 233, 233, 0.92), rgba(246, 246, 246, 0.94));
    box-shadow:
        0 28px 70px rgba(250, 250, 250, 0.55),
        0 0 0 1px rgba(32, 32, 32, 0.04),
        inset 0 1px 0 rgba(32, 32, 32, 0.1),
        inset 0 0 28px rgba(32, 32, 32, 0.03);
    backdrop-filter: blur(22px);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-field > span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(66, 66, 66, 0.92);
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap > i {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: rgba(57, 57, 57, 0.78);
    pointer-events: none;
}

.login-field input {
    width: 100%;
    border: 1px solid rgba(32, 32, 32, 0.16);
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.42), rgba(250, 250, 250, 0.28));
    color: var(--text-primary);
    border-radius: 14px;
    padding: 1.05rem 1.1rem 1.05rem 2.85rem;
    font-size: 1.02rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-password-wrap input {
    padding-right: 3rem;
}

.login-field input:focus {
    border-color: rgba(32, 32, 32, 0.5);
    box-shadow:
        0 0 0 3px rgba(32, 32, 32, 0.07),
        inset 0 0 18px rgba(32, 32, 32, 0.03);
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.5), rgba(248, 248, 248, 0.35));
}

.login-field input::placeholder {
    color: rgba(79, 79, 79, 0.55);
}

.login-eye {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6e6e6e;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0.4rem;
}

.login-eye:hover { color: #2b2b2b; }
.login-eye i { width: 18px; height: 18px; }

.login-error {
    margin: 0;
    font-size: 0.85rem;
    color: #5c5c5c;
    background: rgba(144, 144, 144, 0.12);
    border: 1px solid rgba(144, 144, 144, 0.35);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.login-submit {
    margin-top: 0.35rem;
    border: 1px solid rgba(32, 32, 32, 0.35);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #f7f7f7;
    background: linear-gradient(135deg, #8f8f8f 0%, #282828 48%, #616161 100%);
    box-shadow:
        0 14px 34px rgba(250, 250, 250, 0.4),
        inset 0 1px 0 rgba(32, 32, 32, 0.65);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 18px 40px rgba(250, 250, 250, 0.45),
        inset 0 1px 0 rgba(32, 32, 32, 0.7);
}

.login-submit i { width: 18px; height: 18px; }

.login-status {
    align-self: center;
    font-size: 0.72rem;
    padding: 0.65rem 1.05rem;
    backdrop-filter: blur(10px);
    background: rgba(247, 247, 247, 0.55);
    box-shadow: 0 8px 24px rgba(250, 250, 250, 0.35);
}

.logout-btn {
    margin-top: 0.75rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(32, 32, 32, 0.16);
    background: rgba(32, 32, 32, 0.04);
    color: #3d3d3d;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.logout-btn:hover {
    background: rgba(144, 144, 144, 0.18);
    color: #3d3d3d;
    border-color: rgba(144, 144, 144, 0.4);
}

.logout-btn i { width: 14px; height: 14px; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(248, 248, 248, 0.96) 0%, rgba(249, 249, 249, 0.98) 100%);
    backdrop-filter: blur(28px);
    border-right: 1px solid rgba(87, 87, 87, 0.18);
    display: flex;
    flex-direction: column;
    padding: 1.35rem 0 1rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 12px 0 40px rgba(250, 250, 250, 0.55);
    z-index: 100;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(87, 87, 87, 0.06), transparent 28%);
    pointer-events: none;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--cyan-gradient);
    opacity: 0.45;
    box-shadow: 0 0 18px rgba(87, 87, 87, 0.35);
}

.sidebar-header {
    padding: 0 1.15rem 1.4rem;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 0.8rem;
    border: 1px solid rgba(87, 87, 87, 0.45);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(87, 87, 87, 0.12), rgba(250, 250, 250, 0.35)),
        rgba(247, 247, 247, 0.8);
    box-shadow:
        0 0 30px rgba(87, 87, 87, 0.12),
        inset 0 0 20px rgba(87, 87, 87, 0.06);
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(32, 32, 32, 0.08) 48%, transparent 62%);
    transform: translateX(-120%);
    animation: shimmer 5.5s infinite linear;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(87, 87, 87, 0.12);
    border: 1px solid rgba(87, 87, 87, 0.45);
    display: grid;
    place-items: center;
    gap: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 0 12px rgba(87, 87, 87, 0.2);
}

.logo-mark span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(87, 87, 87, 0.8);
}

.logo-mark span:nth-child(2) { width: 11px; opacity: 0.75; }
.logo-mark span:nth-child(3) { width: 14px; opacity: 0.55; }

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.logo-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.94rem;
    letter-spacing: 0.13em;
    line-height: 1.1;
    white-space: nowrap;
    background: var(--cyan-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(87, 87, 87, 0.35));
    animation: shimmer 4s infinite linear;
}

.logo-sub {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
    color: rgba(70, 70, 70, 0.7);
    font-weight: 700;
}

.logo span {
    font-weight: 900;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    padding: 1rem 1.15rem 0.35rem;
    position: relative;
    z-index: 1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(70, 70, 70, 0.85);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(87, 87, 87, 0.18);
    background: rgba(87, 87, 87, 0.05);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4e4e4e;
    animation: status-blink 2s infinite;
}

.nav-section {
    margin-bottom: 1.35rem;
}

.nav-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.55rem;
    padding-left: 0.55rem;
    letter-spacing: 0.18em;
    opacity: 0.75;
    text-transform: uppercase;
}

.nav-group-frame {
    background: rgba(32, 32, 32, 0.02);
    border: 1px solid rgba(87, 87, 87, 0.08);
    border-radius: 18px;
    padding: 0.4rem;
    box-shadow: inset 0 0 24px rgba(250, 250, 250, 0.35);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.82rem 1rem;
    margin: 0.18rem 0;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.9rem;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(87, 87, 87, 0.06);
    color: #202020;
    border-color: rgba(87, 87, 87, 0.2);
    transform: translateX(4px);
}

.nav-item i {
    width: 18px;
    height: 18px;
    transition: 0.3s;
    flex-shrink: 0;
}

.nav-item span {
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.nav-item:hover i {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
    transform: scale(1.08);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(87, 87, 87, 0.16) 0%, rgba(87, 87, 87, 0.04) 55%, transparent 100%);
    color: #202020;
    border: 1px solid rgba(87, 87, 87, 0.28);
    border-radius: 12px;
    box-shadow: inset 0 0 18px rgba(87, 87, 87, 0.08);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 3px;
    background: var(--cyan-gradient);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 18px var(--primary);
}

.nav-item.active i {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.nav-item.active span {
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 14px rgba(87, 87, 87, 0.55);
    letter-spacing: 0.06em;
}

.nav-sub-item {
    padding: 0.6rem 2.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    margin: 2px 0.5rem;
    transition: 0.3s;
}

.nav-sub-item:hover,
.nav-sub-item.active {
    color: var(--primary);
    background: rgba(87, 87, 87, 0.1);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.15rem 1.6rem 1rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(87, 87, 87, 0.07), transparent 42%),
        linear-gradient(180deg, rgba(32, 32, 32, 0.015), transparent 18%);
    pointer-events: none;
    z-index: -1;
}

.main-content::after {
    content: none;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(87, 87, 87, 0.14);
    border-radius: 18px;
    background: rgba(249, 249, 249, 0.55);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(250, 250, 250, 0.25);
    position: relative;
    overflow: hidden;
}

.top-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(87, 87, 87, 0.08), transparent 35%, transparent 65%, rgba(87, 87, 87, 0.05));
    pointer-events: none;
}

.top-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 140px;
    height: 2px;
    background: var(--cyan-gradient);
    box-shadow: 0 0 12px rgba(87, 87, 87, 0.45);
}

.header-left {
    position: relative;
    z-index: 1;
}

.header-left h1 {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-left h1 span {
    color: rgba(32, 32, 32, 0.72);
    font-weight: 700;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.header-right {
    position: relative;
    z-index: 1;
}

.clock-card {
    text-align: right;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(87, 87, 87, 0.2);
    background: rgba(87, 87, 87, 0.05);
    box-shadow: inset 0 0 18px rgba(87, 87, 87, 0.05);
}

#clock,
#loginClock {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 14px rgba(87, 87, 87, 0.4);
    letter-spacing: 0.06em;
}

#date,
#loginDate {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-align: right;
    margin-top: 2px;
    letter-spacing: 0.04em;
}

/* SEARCH & TABS */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.shift-tabs {
    display: flex;
    background: rgba(250, 250, 250, 0.6);
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 7px;
    transition: 0.3s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--cyan-gradient);
    color: #fafafa;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(87, 87, 87, 0.5);
}

.result-shift-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 92px;
}

.result-reset-btn {
    border-left: 1px solid rgba(32, 32, 32, 0.16);
    color: #494949;
}

.result-reset-btn:hover {
    background: #c8c8c8;
    color: #202020;
}

.result-reset-btn svg {
    width: 14px;
    height: 14px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-container input {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid var(--primary);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 10px;
    color: #202020;
    font-size: 0.85rem;
    outline: none;
}

.search-container input:focus {
    box-shadow: 0 0 15px rgba(87, 87, 87, 0.2);
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    width: 16px;
    height: 16px;
}

/* TABLE AREA */
/* TABLE AREA (REFINED) */
.table-container {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--panel-shadow), var(--cyan-border-glow);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.table-container:hover {
    box-shadow: 0 18px 48px -10px rgba(87, 87, 87, 0.14);
    border-color: rgba(87, 87, 87, 0.35);
    transform: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(to bottom, rgba(242, 242, 242, 0.8), rgba(248, 248, 248, 0.9));
    padding: 1.2rem;
    text-align: left;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--glass-border);
}

/* Align headers 2-6 to center */
th:nth-child(n+2) {
    text-align: center;
}

td {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(87, 87, 87, 0.1);
    color: #282828;
}

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

tr:hover td {
    background: rgba(87, 87, 87, 0.05);
}

/* Highlight row when checked */
tr.row-highlight td {
    background: rgba(86, 86, 86, 0.1) !important;
    color: #313131 !important;
    border-bottom: 1px solid rgba(86, 86, 86, 0.2);
}

.row-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(87, 87, 87, 0.2));
}

.cell-name {
    font-weight: 700;
    color: #202020;
}

.cell-time {
    font-family: monospace;
    font-weight: 700;
    text-align: center;
}

.cell-result {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    text-shadow: 0 0 10px rgba(87, 87, 87, 0.3);
}

.cell-countdown {
    font-family: monospace;
    font-weight: 700;
    text-align: center;
    color: #282828;
}

.cell-center {
    text-align: center;
}

.dash {
    opacity: 0.3;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid transparent;
    width: 100px;
}

.link-official {
    color: #fafafa;
    background: var(--primary);
    border-color: var(--primary);
}

.link-official:hover {
    background: #4f4f4f;
    box-shadow: 0 0 15px rgba(87, 87, 87, 0.4);
}

.link-red {
    color: #575757;
    background: rgba(124, 124, 124, 0.1);
    border-color: rgba(124, 124, 124, 0.4);
}

.link-red:hover {
    background: rgba(124, 124, 124, 0.2);
    border-color: #7c7c7c;
    color: #7c7c7c;
}

.link-blue {
    color: #525252;
    background: rgba(108, 108, 108, 0.1);
    border-color: rgba(108, 108, 108, 0.4);
}

.link-blue:hover {
    background: rgba(108, 108, 108, 0.2);
    border-color: #6c6c6c;
    color: #6c6c6c;
}

/* NOTES & INPUTS (FIXED LAYOUT) */
.premium-input-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--panel-shadow), inset 0 0 20px rgba(87, 87, 87, 0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.icon-title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-circle {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.input-grid .full {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: block;
    letter-spacing: 1px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(250, 250, 250, 0.4);
    border: 1px solid rgba(87, 87, 87, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #202020;
    outline: none;
    font-size: 0.85rem;
}

.input-group textarea {
    min-height: 80px;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--gold-glow);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(87, 87, 87, 0.1);
}

.btn-primary-large {
    background: var(--cyan-gradient);
    background-size: 200% auto;
    color: #fafafa;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-cyan 3s infinite ease-in-out;
}

.btn-primary-large:hover {
    background-position: right center;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(87, 87, 87, 0.6);
}

/* FOLDER CARDS (REFINED) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: #f5f5f5;
    border: 1px solid rgba(87, 87, 87, 0.3);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card.active {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(87, 87, 87, 0.15);
    transform: translateY(-3px);
}

.stat-card .label {
    display: block;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-card.active .label {
    color: var(--primary);
}

.stat-card .value {
    color: #202020;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card.active .value {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(87, 87, 87, 0.3);
}

/* NOTES GRID (FIXED) */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.note-item {
    background: rgba(247, 247, 247, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(67, 67, 67, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.4s ease forwards;
}

.note-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(250, 250, 250, 0.5), 0 0 15px rgba(87, 87, 87, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.note-item h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.note-item p {
    color: #404040;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Placeholder */
.placeholder-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Scrollbar Gold */
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

/* Snow Effect */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.snow-particle {
    position: absolute;
    background: #202020;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
        transform: translateY(20vh) translateX(-15px) rotate(45deg);
    }

    50% {
        transform: translateY(50vh) translateX(15px) rotate(180deg);
    }

    80% {
        opacity: 0.8;
        transform: translateY(80vh) translateX(-10px) rotate(270deg);
    }

    100% {
        transform: translateY(110vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* SCATTER / CROSSCHECK BONUS STYLES */
.scatter-content {
    padding: 0.5rem;
    animation: fadeInUp 0.5s ease;
}

.bonus-header {
    background: rgba(32, 32, 32, 0.02);
    border: 1px solid rgba(87, 87, 87, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.bonus-title-row h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.badge-loss {
    background: linear-gradient(to right, #aaaaaa, #818181);
    color: #202020;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(170, 170, 170, 0.4);
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
}

.bonus-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.btn-process {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: #fafafa;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(250, 250, 250, 0.4);
    text-transform: uppercase;
}

.btn-process:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(87, 87, 87, 0.5);
}

.label-input {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
}

.bonus-textarea {
    width: 100%;
    height: 120px;
    background: rgba(250, 250, 250, 0.4);
    border: 1px solid rgba(87, 87, 87, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #313131;
    font-family: 'Consolas', monospace;
    margin-top: 10px;
    resize: vertical;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.bonus-table-wrapper {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid #666666;
    background: #202020;
}

.bonus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #ebebeb !important;
    min-width: 900px;
}

.bonus-table th {
    background: #404040 !important;
    padding: 10px;
    border: 1px solid #666666;
    text-align: center;
    font-weight: 700;
    color: #ebebeb;
}

.group-header-live,
.group-header-slot {
    background: #353535 !important;
    /* light green/cyan */
    font-weight: 800;
    color: #f6f6f6;
    text-align: left !important;
}

.group-header-sport {
    background: #525252 !important;
    /* light blue */
    font-weight: 800;
    color: #f6f6f6;
    text-align: left !important;
}

.data-row td {
    background: #252525 !important;
    padding: 6px 10px;
    border: 1px solid #666666;
    color: #f6f6f6 !important;
}

.total-row td {
    background: #252525 !important;
    font-weight: 800;
    padding: 8px 10px;
    border: 1px solid #666666;
    color: #f6f6f6 !important;
}

.cell-center {
    text-align: center;
}

.cell-right {
    text-align: right;
}

.cell-bold {
    font-weight: 800;
}

/* === PARSER DATA PRO (LOCKPL) === */
#pdp-root {
    --pdp-bg-utama: transparent;
    --pdp-bg-kartu: var(--card-bg);
    --pdp-bg-input: rgba(250, 250, 250, 0.4);
    --pdp-garis: var(--glass-border);
    --pdp-emas: var(--primary);
    --pdp-merah: var(--danger);
    --pdp-teks-abu: var(--text-secondary);
}

.pdp-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    width: 100%;
    gap: 12px;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.pdp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pdp-bg-kartu);
    border: 1px solid var(--pdp-garis);
    border-radius: 8px;
    padding: 10px 15px;
    flex-shrink: 0;
}

.pdp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-logo-box {
    width: 32px;
    height: 32px;
    background: var(--gold-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fafafa;
    box-shadow: var(--gold-glow);
}

.pdp-logo-box svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.pdp-title-group h1 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    color: var(--pdp-emas);
}

.pdp-title-badge {
    font-size: 0.6rem;
    background: var(--pdp-merah);
    color: #202020;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.pdp-header-center {
    color: var(--pdp-emas);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pdp-header-right {
    color: var(--pdp-emas);
    border: 1px solid var(--pdp-emas);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(87, 87, 87, 0.1);
}

.pdp-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.pdp-panel {
    background: var(--pdp-bg-kartu);
    border: 1px solid var(--pdp-garis);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pdp-panel-head {
    padding: 10px 15px;
    border-bottom: 1px solid var(--pdp-garis);
    background: rgba(87, 87, 87, 0.05);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--pdp-emas);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-btn-header {
    background: rgba(87, 87, 87, 0.1);
    border: 1px solid rgba(87, 87, 87, 0.3);
    color: var(--pdp-emas);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    text-transform: uppercase;
}

.pdp-btn-header i {
    width: 12px;
    height: 12px;
}

.pdp-btn-header:hover {
    background: var(--pdp-emas);
    color: #fafafa;
}

.pdp-btn-clear:hover {
    background: var(--pdp-merah);
    border-color: var(--pdp-merah);
    color: #202020;
}

.pdp-format-list {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--pdp-garis);
    background: rgba(250, 250, 250, 0.2);
}

.pdp-btn-format {
    background: transparent;
    border: 1px solid rgba(87, 87, 87, 0.2);
    color: var(--pdp-teks-abu);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.pdp-btn-format:hover {
    border-color: var(--pdp-emas);
    color: #202020;
}

.pdp-btn-format.active {
    background: var(--cyan-gradient);
    border-color: var(--pdp-emas);
    color: #fafafa;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(87, 87, 87, 0.3);
}

.pdp-input-area {
    flex: 1;
    padding: 12px;
    display: flex;
}

.pdp-textarea {
    width: 100%;
    height: 100%;
    background: var(--pdp-bg-input);
    border: 1px solid rgba(87, 87, 87, 0.2);
    border-radius: 8px;
    color: #202020;
    padding: 12px;
    resize: none;
    font-size: 0.85rem;
    font-family: inherit;
    transition: 0.3s;
}

.pdp-textarea:focus {
    outline: none;
    border-color: var(--pdp-emas);
    box-shadow: var(--gold-glow);
}

.pdp-textarea::placeholder {
    color: #c3c3c3;
}

.pdp-action-box {
    padding: 0 12px 12px;
}

.pdp-btn-parse {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    background-size: 200% auto;
    border: none;
    border-radius: 8px;
    color: #fafafa;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    animation: pulse-gold 3s infinite ease-in-out;
}

.pdp-output-area {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.pdp-placeholder {
    color: #c3c3c3;
    border: 2px dashed rgba(87, 87, 87, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}

.pdp-footer {
    background: var(--pdp-bg-kartu);
    border: 1px solid var(--pdp-garis);
    border-radius: 8px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.pdp-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdp-stat-label {
    font-size: 0.65rem;
    color: var(--pdp-teks-abu);
    font-weight: 700;
    text-transform: uppercase;
}

.pdp-stat-val {
    font-size: 1.4rem;
    color: var(--pdp-emas);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(87, 87, 87, 0.2);
}

.pdp-separator {
    width: 1px;
    height: 30px;
    background: var(--pdp-garis);
}

.pdp-table-result {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.pdp-table-result th {
    background: rgba(87, 87, 87, 0.1);
    color: var(--pdp-emas);
    padding: 8px;
    font-size: 0.7rem;
    border-bottom: 2px solid var(--pdp-emas);
}

.pdp-table-result td {
    padding: 8px;
    border-bottom: 1px solid rgba(87, 87, 87, 0.05);
    color: #202020;
}

.pdp-table-result tr:hover td {
    background: rgba(87, 87, 87, 0.05);
}

/* VERIFIKASI DATA PANEL STYLES */
.vd-main-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.vd-output-box {
    flex: 1;
    background-color: #f7f7f7;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(250, 250, 250, 0.7);
}

.vd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #efefef;
}

.vd-title {
    color: var(--primary);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vd-btn-copy {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.vd-btn-copy:hover {
    background: var(--primary);
    color: #fafafa;
}

.vd-btn-clear {
    background: transparent;
    border: 1px solid #aaaaaa;
    color: #aaaaaa;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.vd-btn-clear:hover {
    background: #aaaaaa;
    color: #202020;
}

.vd-content-body {
    padding: 10px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.vd-dashed-border {
    border: 1px dashed #e2e2e2;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d4d4d4;
    font-size: 14px;
    text-align: center;
}

.vd-glow {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0.3;
}

.vd-textarea {
    width: 100%;
    flex: 1;
    min-height: 420px;
    background: rgba(250, 250, 250, 0.4);
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    color: #202020;
    padding: 25px;
    font-size: 15px;
    line-height: 1.8;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    resize: none;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.vd-textarea:focus {
    border-color: var(--primary);
    background: rgba(87, 87, 87, 0.05);
    box-shadow: 0 0 15px rgba(87, 87, 87, 0.1);
}

.vd-input-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* MINERA PANEL STYLES */
.minera-main-container {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
    height: calc(100vh - 250px);
}

.minera-panel {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: var(--panel-shadow);
    transition: all 0.3s ease;
}

.minera-panel:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(87, 87, 87, 0.1);
}

.minera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(250, 250, 250, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.minera-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(87, 87, 87, 0.3);
}

.minera-btn {
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.minera-btn-clear {
    border-color: var(--danger);
    color: var(--danger);
}

.minera-btn-clear:hover {
    background: var(--danger);
    color: #202020;
    box-shadow: 0 0 15px rgba(178, 178, 178, 0.4);
}

.minera-btn-copy {
    border-color: var(--primary);
    color: var(--primary);
}

.minera-btn-copy:hover {
    background: var(--primary);
    color: #fafafa;
    box-shadow: 0 0 15px rgba(87, 87, 87, 0.4);
}

.minera-content-area {
    flex: 1;
    background: rgba(250, 250, 250, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    font-family: 'JetBrains Mono', monospace;
}

.minera-textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    color: #202020;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.minera-textarea::placeholder {
    color: rgba(32, 32, 32, 0.2);
}

.minera-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(32, 32, 32, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 20px;
}

/* HOME PANEL BACKGROUND */
.home-panel-bg {
    position: absolute;
    top: -0.5rem;
    left: -0.75rem;
    right: -0.75rem;
    bottom: -0.5rem;
    background-image: url('https://i.postimg.cc/8zdQ57LQ/198c2e90c7de5d6f04148b6fb5cd7930.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: fadeInUp 0.8s ease;
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(87, 87, 87, 0.12),
        0 0 60px rgba(87, 87, 87, 0.08);
}

.content-body {
    position: relative;
    flex: 1;
    animation: fadeInUp 0.45s ease;
}

/* ===== DASHBOARD SHELL POLISH (visual only) ===== */
.main-footer {
    margin-top: 1rem;
    padding: 0.85rem 0 0.2rem;
    text-align: center;
    border-top: 1px solid rgba(87, 87, 87, 0.1);
}

.main-footer p {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(70, 70, 70, 0.45);
}

.shift-tabs {
    background: rgba(249, 249, 249, 0.72);
    border: 1px solid rgba(87, 87, 87, 0.18);
    box-shadow: inset 0 0 20px rgba(87, 87, 87, 0.04);
}

.tab-btn.active {
    box-shadow: 0 0 22px rgba(87, 87, 87, 0.4);
}

.search-container input {
    background: rgba(248, 248, 248, 0.9);
    border: 1px solid rgba(87, 87, 87, 0.35);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.premium-input-card,
.note-item,
.pdp-container,
.vd-output-box,
.minera-panel,
.bonus-header {
    border-color: rgba(87, 87, 87, 0.18) !important;
    box-shadow: 0 14px 40px rgba(250, 250, 250, 0.35), inset 0 0 24px rgba(87, 87, 87, 0.02);
}

.stat-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(87, 87, 87, 0.35);
}

#snow-container {
    z-index: 2;
}

.snow-particle {
    background: rgba(71, 71, 71, 0.38);
    box-shadow: none;
    opacity: 0.38;
}

.cell-time,
.cell-countdown,
.cell-result {
    font-family: var(--font-mono);
}

.btn-primary-large,
.btn-process,
.pdp-btn-parse {
    letter-spacing: 0.04em;
}

/* Comfortable monochrome palette */
.sidebar {
    background: linear-gradient(180deg, rgba(238, 238, 238, 0.99), rgba(247, 247, 247, 0.99));
    border-right-color: rgba(32, 32, 32, 0.2);
}

.sidebar::after {
    opacity: 0.28;
    box-shadow: none;
}

.logo,
.nav-item.active,
.top-header,
.clock-card {
    box-shadow: inset 0 0 16px rgba(32, 32, 32, 0.025);
}

.logo-brand,
.nav-item.active span,
#clock,
#loginClock {
    filter: none;
    text-shadow: none;
}

.nav-item.active::before {
    box-shadow: 0 0 7px rgba(32, 32, 32, 0.24);
}

.nav-item:hover i,
.nav-item.active i {
    filter: none;
}

.top-header {
    background: rgba(235, 235, 235, 0.9);
    min-height: 72px;
    overflow: visible;
    padding: 0.75rem 1rem;
}

.top-header::after {
    box-shadow: none;
}

.header-right {
    flex-shrink: 0;
    margin-left: 1rem;
}

.clock-card {
    min-width: 205px;
    padding: 0.65rem 1rem;
    text-align: center;
    border: 1px solid rgba(32, 32, 32, 0.22);
    border-radius: 12px;
    background: linear-gradient(145deg, #dadada, #eaeaea);
}

#clock,
#loginClock {
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: #272727;
    white-space: nowrap;
}

#date,
#loginDate {
    display: block;
    margin-top: 0.28rem;
    color: #525252;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.table-container,
.premium-input-card,
.note-item,
.pdp-container,
.vd-output-box,
.minera-panel,
.bonus-header {
    background-color: rgba(236, 236, 236, 0.95);
    box-shadow: 0 12px 32px rgba(250, 250, 250, 0.26);
}

.table-container:hover,
.stat-card:hover {
    box-shadow: 0 12px 32px rgba(250, 250, 250, 0.28);
}

.tab-btn.active {
    box-shadow: none;
}

.badge-loss {
    background: linear-gradient(135deg, #c3c3c3, #969696);
    color: #2a2a2a;
    box-shadow: none;
}

.btn-process:hover {
    box-shadow: 0 5px 14px rgba(250, 250, 250, 0.25);
}

/* Crosscheck table: reduce large bright-white area */
.bonus-table-wrapper {
    border-color: #aaaaaa;
    background: #ededed;
}

.bonus-table {
    color: #343434 !important;
}

.bonus-table th {
    background: #d2d2d2 !important;
    border-color: #a9a9a9;
    color: #2d2d2d;
}

.group-header-live,
.group-header-slot {
    background: #b9b9b9 !important;
    color: #2b2b2b;
}

.group-header-sport {
    background: #c9c9c9 !important;
    color: #2b2b2b;
}

.data-row td,
.total-row td {
    background: #e2e2e2 !important;
    border-color: #b4b4b4;
    color: #363636 !important;
}

.data-row:nth-child(even) td {
    background: #dcdcdc !important;
}

.data-row:hover td {
    background: #d0d0d0 !important;
}

.status-dot {
    background: #3e3e3e;
    box-shadow: none;
}

.snow-particle {
    background: rgba(66, 66, 66, 0.32);
}

.btn-import-excel,
.btn-clear-bonus,
.bonus-table button,
.link-btn,
.minera-btn,
.vd-btn-copy,
.vd-btn-clear {
    background: #cecece !important;
    border-color: #a9a9a9 !important;
    color: #2b2b2b !important;
    box-shadow: none !important;
}

.btn-import-excel:hover,
.btn-clear-bonus:hover,
.bonus-table button:hover,
.link-btn:hover,
.minera-btn:hover,
.vd-btn-copy:hover,
.vd-btn-clear:hover {
    background: #b4b4b4 !important;
    color: #202020 !important;
}

.stat-card.blue,
.stat-card.orange,
.stat-card.green,
.stat-card.red {
    background: linear-gradient(145deg, #d6d6d6, #e7e7e7) !important;
    border-color: #afafaf !important;
}

.stat-card .label,
.stat-card .value {
    color: #424242 !important;
}

/* REPORT QRIS PENDING */
.qris-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 1rem;
    min-height: calc(100vh - 155px);
}

.qris-report-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--panel-shadow);
}

.qris-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, #d6d6d6, #e7e7e7);
}

.qris-report-head h2 {
    margin-top: 0.15rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.qris-report-kicker {
    color: var(--text-secondary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.qris-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #a7a7a7;
    border-radius: 8px;
    background: #cecece;
    color: #2a2a2a;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qris-report-btn:hover {
    background: #b4b4b4;
}

.qris-report-btn svg {
    width: 14px;
    height: 14px;
}

.qris-raw-table,
.qris-result-wrapper {
    flex: 1;
    min-height: 0;
}

.qris-raw-table {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.qris-raw-label {
    padding: 0.65rem 0.8rem;
    border: 1px solid #c3c3c3;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #e1e1e1;
    color: #444444;
    font-size: 0.72rem;
    font-weight: 700;
}

#qrisRawInput {
    flex: 1;
    width: 100%;
    min-height: 380px;
    padding: 1rem;
    resize: none;
    outline: none;
    border: 1px solid #c3c3c3;
    border-radius: 0 0 10px 10px;
    background: #eeeeee;
    color: #2c2c2c;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
}

#qrisRawInput:focus {
    border-color: #7f7f7f;
    background: #ebebeb;
}

.qris-result-wrapper {
    margin: 1rem 1rem 0;
    overflow: auto;
    border: 1px solid #c3c3c3;
    border-radius: 10px;
}

.qris-result-table {
    width: 100%;
    min-width: 460px;
}

.qris-result-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.75rem;
    background: #d9d9d9;
    border-bottom: 1px solid #b3b3b3;
    color: #2c2c2c;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-align: left;
}

.qris-result-table th:first-child {
    width: 54px;
    text-align: center;
}

.qris-result-table td {
    padding: 0.7rem 0.75rem;
    border-right: 1px solid #cecece;
    border-bottom: 1px solid #d2d2d2;
    background: #eaeaea;
    color: #363636;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.qris-result-table tbody tr:nth-child(even) td {
    background: #e5e5e5;
}

.qris-result-table tbody tr:hover td {
    background: #dcdcdc;
}

.qris-result-table .qris-row-number {
    text-align: center;
    color: #535353;
    vertical-align: top;
}

.qris-report-output {
    margin: 0;
    color: #323232;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.qris-result-table .qris-empty-row td {
    height: 220px;
    text-align: center;
    color: #737373;
}

.qris-report-summary {
    padding: 0.75rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-align: right;
}

.qris-report-summary strong {
    color: var(--text-primary);
}

/* CUT OFF */
.cutoff-layout {
    display: grid;
    gap: 1rem;
}

.cutoff-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--panel-shadow);
}

.cutoff-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, #d5d5d5, #e5e5e5);
}

.cutoff-card-head h2 {
    margin-top: 0.15rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.07em;
}

.cutoff-kicker {
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.cutoff-head-actions {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.cutoff-upload-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 225px;
    padding: 0.6rem 0.75rem;
    border: 1px dashed #868686;
    border-radius: 10px;
    background: #cdcdcd;
    color: #2b2b2b;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cutoff-upload-box:hover {
    background: #bbbbbb;
    border-color: #5c5c5c;
}

.cutoff-upload-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cutoff-upload-box span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cutoff-upload-box strong {
    font-size: 0.72rem;
}

.cutoff-upload-box small {
    max-width: 180px;
    margin-top: 0.12rem;
    overflow: hidden;
    color: #4e4e4e;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cutoff-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #969696;
    border-radius: 10px;
    background: #dedede;
    color: #383838;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cutoff-clear-btn:hover {
    background: #c3c3c3;
    color: #202020;
}

.cutoff-clear-btn svg {
    width: 15px;
    height: 15px;
}

.cutoff-table-wrapper {
    max-height: 350px;
    overflow: auto;
}

.cutoff-table {
    width: 100%;
    min-width: 720px;
}

.cutoff-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.72rem;
    background: #dbdbdb;
    border-right: 1px solid #bbbbbb;
    border-bottom: 1px solid #b2b2b2;
    color: #2d2d2d;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
}

.cutoff-table th:first-child {
    width: 54px;
    text-align: center;
}

.cutoff-table td {
    padding: 0.65rem 0.72rem;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cfcfcf;
    background: #eaeaea;
    color: #373737;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    white-space: nowrap;
}

.cutoff-table tbody tr:nth-child(even) td {
    background: #e5e5e5;
}

.cutoff-table tbody tr:hover td {
    background: #dcdcdc;
}

.cutoff-row-number {
    text-align: center;
    color: #535353 !important;
}

.cutoff-empty-row td {
    height: 115px;
    text-align: center;
    color: #6f6f6f;
}

.cutoff-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-align: right;
}

.cutoff-card-footer strong {
    color: var(--text-primary);
}

.cutoff-crosscheck-card {
    border-color: #9e9e9e;
}

.cutoff-crosscheck-card .cutoff-card-head {
    padding: 0.6rem 0.75rem;
}

.cutoff-crosscheck-card .cutoff-card-head h2 {
    font-size: 0.9rem;
}

.cutoff-crosscheck-metrics {
    display: flex;
    gap: 0.65rem;
}

.cutoff-crosscheck-metrics > div {
    min-width: 140px;
    padding: 0.5rem 0.7rem;
    border: 1px solid #aaaaaa;
    border-radius: 9px;
    background: #e5e5e5;
    text-align: right;
}

.cutoff-crosscheck-metrics small {
    display: block;
    margin-bottom: 0.15rem;
    color: #606060;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
}

.cutoff-crosscheck-metrics strong {
    color: #292929;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.cutoff-crosscheck-status {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #cacaca;
    background: #e9e9e9;
    color: #525252;
    font-size: 0.64rem;
}

.cutoff-crosscheck-status.success {
    background: #e4e4e4;
    color: #484848;
}

.cutoff-crosscheck-status.warning {
    background: #e1e1e1;
    color: #494949;
}

.cutoff-crosscheck-status.error {
    background: #e7e7e7;
    color: #505050;
}

.cutoff-crosscheck-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0.6rem;
    padding: 0.55rem;
    align-items: start;
}

.cutoff-crosscheck-list {
    min-width: 0;
}

.cutoff-crosscheck-table-wrapper {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #c3c3c3;
    border-radius: 10px;
}

.cutoff-crosscheck-table-wrapper .cutoff-table th {
    padding: 0.45rem 0.5rem;
    font-size: 0.58rem;
}

.cutoff-crosscheck-table-wrapper .cutoff-table td {
    padding: 0.42rem 0.5rem;
    font-size: 0.62rem;
}

.cutoff-crosscheck-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0 0;
    color: #535353;
    font-size: 0.66rem;
}

.cutoff-crosscheck-pagination button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #acacac;
    border-radius: 7px;
    background: #d6d6d6;
    color: #2c2c2c;
    font-size: 0.62rem;
    cursor: pointer;
}

.cutoff-crosscheck-pagination button:hover:not(:disabled) {
    background: #c1c1c1;
}

.cutoff-crosscheck-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.cutoff-crosscheck-pagination button svg {
    width: 13px;
    height: 13px;
}

.cutoff-total-panel {
    overflow: hidden;
    border: 1px solid #acacac;
    border-radius: 10px;
    background: #eaeaea;
}

.cutoff-total-panel-title {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #b2b2b2;
    background: #d4d4d4;
    color: #2c2c2c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cutoff-total-panel table {
    width: 100%;
}

.cutoff-total-panel th,
.cutoff-total-panel td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #d0d0d0;
    background: #e5e5e5;
}

.cutoff-total-panel th {
    color: #535353;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: left;
}

.cutoff-total-panel td {
    color: #2a2a2a;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.cutoff-total-panel tr:last-child th,
.cutoff-total-panel tr:last-child td {
    border-bottom: 0;
}

.cutoff-missing-badge {
    display: inline-block;
    padding: 0.25rem 0.45rem;
    border: 1px solid #a6a6a6;
    border-radius: 999px;
    background: #e0e0e0;
    color: #474747;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.xpay-result-card {
    border-color: #a6a6a6;
}

.xpay-result-actions {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.xpay-result-actions .cutoff-clear-btn {
    min-width: 135px;
}

.xpay-result-count {
    min-width: 130px;
    padding: 0.5rem 0.7rem;
    border: 1px solid #aaaaaa;
    border-radius: 9px;
    background: #e5e5e5;
    text-align: right;
}

.xpay-result-count small {
    display: block;
    margin-bottom: 0.12rem;
    color: #606060;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
}

.xpay-result-count strong {
    color: #2a2a2a;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.xpay-result-table-wrapper {
    max-height: 360px;
}

.cutoff-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.cutoff-pagination button {
    display: grid;
    width: 28px;
    height: 26px;
    place-items: center;
    border: 1px solid #aeaeae;
    border-radius: 6px;
    background: #d3d3d3;
    color: #2c2c2c;
    cursor: pointer;
}

.cutoff-pagination button:hover:not(:disabled) {
    background: #bcbcbc;
}

.cutoff-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.cutoff-pagination button svg {
    width: 14px;
    height: 14px;
}

.cutoff-loading-row td {
    color: #444444;
}

.cutoff-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.45rem;
    vertical-align: middle;
    border: 2px solid #acacac;
    border-top-color: #2c2c2c;
    border-radius: 50%;
    animation: cutoff-spin 0.75s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .ambient-scan,
    .logo::after,
    .logo-brand,
    .snow-particle {
        animation: none !important;
    }

    .cutoff-loader {
        animation-duration: 1.5s;
    }
}

@media (max-width: 980px) {
    .sidebar {
        width: 248px;
    }

    .logo-brand {
        font-size: 0.92rem;
        letter-spacing: 0.12em;
    }

    .header-left h1 {
        font-size: 1.05rem;
    }

    #clock {
        font-size: 1.15rem;
    }

    .qris-report-layout {
        grid-template-columns: 1fr;
    }

    .cutoff-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cutoff-head-actions {
        width: 100%;
    }

    .cutoff-upload-box {
        flex: 1;
    }

    .cutoff-crosscheck-metrics {
        width: 100%;
    }

    .cutoff-crosscheck-metrics > div {
        flex: 1;
        min-width: 0;
    }

    .cutoff-crosscheck-content {
        grid-template-columns: 1fr;
    }
}

.xpay-flexible-controls{display:flex;flex-wrap:wrap;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(103, 103, 103,.2);align-items:end}.xpay-flexible-controls label{display:flex;flex:1 1 180px;flex-direction:column;gap:6px;font-size:12px;font-weight:600}.xpay-map-select{width:100%;padding:10px;border-radius:8px;background:#f0f0f0;color:#202020;border:1px solid #b4b4b4;min-width:0}.xpay-flexible-controls small{flex-basis:100%;opacity:.8;line-height:1.5}

/* CEK SELISIH XPAY: dua panel sumber sejajar, hasil di bawah selebar area. */
.xpay-difference-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
    width: 100%;
}
.xpay-difference-layout > .cutoff-card { min-width: 0; width: 100%; }
.xpay-difference-layout > .xpay-result-card { grid-column: 1 / -1; }
.xpay-difference-layout > .cutoff-card:not(.xpay-result-card) .cutoff-card-head {
    flex-wrap: wrap;
}
.xpay-difference-layout > .cutoff-card:not(.xpay-result-card) .cutoff-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}
@media (max-width: 760px) {
    .xpay-difference-layout { grid-template-columns: minmax(0, 1fr); }
    .xpay-difference-layout > .xpay-result-card { grid-column: 1; }
}

/* Pilihan kolom perbandingan, nominal, dan filter status. */
.xpay-flexible-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 16px}
.xpay-flexible-controls label{min-width:0;flex:auto}
.xpay-flexible-controls small{grid-column:1/-1}
@media(max-width:580px){.xpay-flexible-controls{grid-template-columns:1fr}}


/* Kolom perbandingan terpilih pada ALL IN ONE QRIS. */
.xpay-difference-layout .cutoff-table th.xpay-comparison-column {
    background: #d5d5d5;
    color: #202020;
    box-shadow: inset 3px 0 #6c6c6c, inset -3px 0 #6c6c6c;
}
.xpay-difference-layout .cutoff-table td.xpay-comparison-column {
    background: #6c6c6c26;
    color: #303030;
    box-shadow: inset 3px 0 #6c6c6c, inset -3px 0 #6c6c6c;
}

.xpay-difference-layout .cutoff-table th.xpay-amount-column { background: #d4d4d4; color: #202020; }
.xpay-difference-layout .cutoff-table td.xpay-amount-column { background: #5e5e5e26; color: #2b2b2b; }
.xpay-difference-layout .cutoff-table .xpay-amount-column:not(.xpay-comparison-column) { box-shadow: inset 3px 0 #5e5e5e, inset -3px 0 #5e5e5e; }
