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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #059669;
    --dark: #0f172a;
    --slate: #475569;
    --slate-light: #64748b;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --danger: #ef4444;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* BACKGROUND BLOB DEKORATIF */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}
.blob-1 { width: 500px; height: 500px; background: #2563eb; top: -100px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: #059669; bottom: -100px; right: -100px; }

/* CLEAN FORMAL HEADER */
.navbar-supreme {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.header-title-group h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
}

.header-subtext {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--slate-light);
}

.header-right-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-login-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.header-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, .3);
}

@media (max-width: 760px) {
    .header-right-info .verified-dikti-badge { display: none; }
    .header-login-button { padding: 0 11px; }
    .header-login-button span { display: none; }
}

/* MAIN CONTAINER */
.main-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.verified-dikti-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--secondary);
    background: #dcfce7;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid #a7f3d0;
}

/* HERO SEARCH CARD */
.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.hero-tag {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-card h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 900;
    color: #1e3a8a;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.hero-card p {
    color: var(--slate);
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 540px;
    margin: 0 auto;
}

.search-input-wrap {
    position: relative;
    max-width: 520px;
    margin: 16px auto 0;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 0.95rem;
}

.search-input-wrap input {
    width: 100%;
    height: 48px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    padding: 0 130px 0 46px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
    background: #ffffff;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 18px var(--primary-glow);
}

.btn-search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* PUBLIC TAB BUTTONS */
.public-tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.public-tab-btn:hover, .public-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* TARIK ITEM PUBLIC GRID */
.tarik-item-public {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
}

.tarik-lbl-public {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.tarik-val-public {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
    word-break: break-word;
}

/* LOADING CARD */
.loading-spinner-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px 28px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 410px;
    margin: 0 auto;
    box-shadow: 0 18px 45px rgba(30, 58, 138, 0.1);
}

.spinner-ring {
    width: 36px;
    height: 36px;
    border: 3.5px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 12px;
}

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

.loading-title {
    margin: 0;
    font-weight: 800;
    color: #1e3a8a;
}

.loading-hint {
    min-height: 36px;
    margin: 6px 0 14px;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.loading-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
}

.loading-meta span:first-child {
    color: #059669;
}

.btn-load-transcript {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 7px 11px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-load-transcript:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

.btn-load-transcript:disabled {
    opacity: 0.65;
    cursor: wait;
}

.submission-scope-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.45;
}

.submission-scope-notice.restricted {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.public-tab-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
    box-shadow: none;
}

/* UNIFIED DASHBOARD CARD */
.unified-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.unified-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.student-identity-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #bfdbfe;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.avatar-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.student-identity-group h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.student-identity-group p {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1d4ed8;
    margin-top: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    background: #dbeafe;
    border-left: 3px solid #2563eb;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.student-identity-copy {
    min-width: 0;
}

.student-record-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.student-status-actions {
    justify-content: flex-end;
}

.status-verified-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid #bbf7d0;
}

.unified-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
}

.unified-left {
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.unified-right {
    padding: 20px;
    background: #f8fafc;
}

.section-subhead {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.instruction-text {
    font-size: 0.82rem;
    color: var(--slate);
    font-weight: 600;
    margin-bottom: 14px;
}

/* FIELDS GRID COMPACT & RAPIH NO OVERFLOW */
.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.field-item {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box !important;
    overflow: hidden;
}

.field-info {
    flex: 1;
    min-width: 0;
}

.field-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.field-item.marked-invalid {
    background: #fef2f2;
    border-color: #fca5a5;
}

.field-item.amendment-locked {
    cursor: not-allowed;
    border-color: #a7f3d0;
    background: #f0fdf4;
    box-shadow: none;
}

.field-item.amendment-locked:hover {
    border-color: #6ee7b7;
    box-shadow: none;
}

.field-item.amendment-locked .btn-toggle-field {
    color: #047857;
    border-color: #a7f3d0;
    background: #dcfce7;
    cursor: not-allowed;
}

.field-item.amendment-revisable {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
}

.field-item.amendment-revisable .btn-toggle-field {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #dbeafe;
}

.prior-proposal {
    display: block;
    margin-top: 6px;
    color: #1d4ed8;
    font-size: .72rem;
    line-height: 1.4;
}

.prior-proposal i {
    margin-right: 4px;
}

.btn-document-revision {
    width: 100%;
    margin-top: 9px;
    padding: 11px 12px;
    border: 1px solid #f59e0b;
    border-radius: 11px;
    background: #fffbeb;
    color: #92400e;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
}

.btn-document-revision:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.field-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--slate-light);
    text-transform: uppercase;
    line-height: 1.25;
}

.field-value {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.btn-toggle-field {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.marked-invalid .btn-toggle-field {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* RIGHT PANEL SUMMARY */
.right-panel-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.summary-box {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.summary-count-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-light);
}

.summary-count-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--danger);
    line-height: 1;
    margin-top: 2px;
}

.btn-action-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-block-action {
    width: 100%;
    justify-content: center;
}

.btn-action-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.sidebar-helper-panel {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-helper-panel i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
}

.sidebar-helper-panel strong {
    font-size: 0.78rem;
    color: #1e40af;
}

.sidebar-helper-panel p {
    font-size: 0.74rem;
    color: #1e3a8a;
    line-height: 1.35;
    margin-top: 2px;
}

/* FOOTER */
.footer-supreme {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--slate);
}

/* TABLE STYLING */
table { width: 100%; border-collapse: collapse; }
th { background: #f8fafc; padding: 10px 12px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #475569; border-bottom: 1.5px solid #cbd5e1; }
td { padding: 10px 12px; font-size: 0.82rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .header-right-info { display: none; }

    .unified-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .unified-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0 0 16px !important;
        min-width: 0;
    }

    .unified-right {
        display: block !important;
        width: 100% !important;
        min-width: 0;
        padding: 0 !important;
        background: transparent;
    }

    .unified-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
    }

    .student-identity-group,
    .student-status-actions {
        width: 100%;
    }

    .student-status-actions {
        justify-content: flex-start;
    }

    .public-tabs-bar {
        padding: 8px 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        overflow: hidden;
    }

    .public-tabs-bar .public-tab-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 8px 7px;
        font-size: 0.7rem;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    #tabContentProfil,
    #tabContentKoreksi {
        padding: 16px 12px !important;
    }

    #tabContentKoreksi .unified-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
        width: 100%;
    }

    #tabContentKoreksi .unified-right {
        order: -1;
    }

    #tabContentKoreksi .right-panel-card {
        width: 100%;
        border-color: #93c5fd;
        box-shadow: 0 8px 24px rgba(37, 99, 235, .1);
    }

    #fieldsGridKoreksi {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
    }

    .hero-card {
        padding: 18px 14px;
    }

    .hero-card h2 {
        font-size: 1.3rem;
    }

    .search-input-wrap input {
        padding-right: 110px;
        font-size: 0.82rem;
    }

    .btn-search-submit {
        padding: 0 14px;
        font-size: 0.78rem;
    }

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

/* ================================================================
   PUBLIC EXPERIENCE V9 — FMIPA identity, adaptive theme, mobile CTA
   ================================================================ */
:root {
    color-scheme: light;
    --page-bg: #eef4ff;
    --surface: rgba(255, 255, 255, .88);
    --surface-solid: #ffffff;
    --surface-soft: #f7f9fd;
    --text-main: #111c34;
    --text-muted: #60708d;
    --line-soft: rgba(123, 145, 181, .24);
    --shadow-card: 0 24px 70px rgba(39, 73, 139, .12);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #07111f;
    --surface: rgba(13, 27, 47, .9);
    --surface-solid: #0d1b2f;
    --surface-soft: #12233b;
    --text-main: #f2f6ff;
    --text-muted: #9eacc3;
    --line-soft: rgba(143, 169, 210, .18);
    --border-color: #263b59;
    --dark: #f2f6ff;
    --slate: #aab8cd;
    --slate-light: #8fa0b9;
    --card-bg: #0d1b2f;
}

body {
    background:
        radial-gradient(circle at 8% 4%, rgba(54, 117, 255, .14), transparent 28rem),
        radial-gradient(circle at 92% 85%, rgba(21, 184, 166, .12), transparent 30rem),
        var(--page-bg);
    color: var(--text-main);
    transition: background-color .25s ease, color .25s ease;
}

.blob { opacity: .2; }

.navbar-supreme {
    background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
    border-color: var(--line-soft);
    padding: 13px 24px;
    box-shadow: 0 12px 40px rgba(13, 30, 58, .08);
}

.header-container { max-width: 1240px; }

.header-title-group h1 {
    color: var(--text-main);
    letter-spacing: -.02em;
}

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

.header-right-info {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.header-theme-button,
.header-login-button {
    min-height: 42px;
    border-radius: 13px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.header-theme-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
}

.header-theme-button:hover,
.header-login-button:hover { transform: translateY(-2px); }

.header-login-button {
    background: linear-gradient(135deg, #2d68ed, #1e4fc4);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .28);
}

.main-wrapper {
    max-width: 1240px;
    padding-top: 26px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 96%, #356fff 4%), var(--surface-solid));
    border-color: var(--line-soft);
    box-shadow: var(--shadow-card);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #4b7eff, #24c7bb);
}

.hero-card h2 {
    color: var(--text-main);
    font-size: clamp(1.55rem, 3vw, 2.2rem) !important;
    letter-spacing: -.035em;
}

.hero-card p {
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.7;
}

.hero-tag {
    color: #2762d7;
    background: rgba(55, 111, 235, .1);
    border: 1px solid rgba(55, 111, 235, .14);
}

.search-input-wrap input {
    color: var(--text-main);
    background: var(--surface-solid);
    border-color: var(--line-soft);
}

.search-input-wrap input::placeholder { color: var(--text-muted); }

.unified-card,
.unified-header,
.right-panel-card,
.tarik-item-public,
.field-item,
.summary-box,
.table-responsive {
    background: var(--surface-solid);
    border-color: var(--line-soft) !important;
    color: var(--text-main);
}

.unified-card { box-shadow: var(--shadow-card); }

.unified-header,
.public-tabs-bar,
table thead,
th {
    background: var(--surface-soft) !important;
}

.public-tab-btn {
    color: var(--text-muted);
    background: transparent;
}

.public-tab-btn.active {
    color: #2862d6;
    background: color-mix(in srgb, var(--surface-solid) 88%, #316de9 12%);
}

.tarik-lbl-public,
.field-label,
.instruction-text,
.transcript-login-gate p { color: var(--text-muted); }

.tarik-val-public,
.field-value,
.section-subhead,
td,
table strong { color: var(--text-main) !important; }

.transcript-login-gate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(55, 111, 235, .2);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(50, 105, 231, .09), rgba(25, 190, 170, .07)),
        var(--surface-solid);
}

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

.transcript-gate-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #3269e7, #1bb7aa);
    box-shadow: 0 10px 24px rgba(42, 102, 220, .25);
}

.transcript-gate-kicker {
    display: block;
    color: #2e68e4;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: 3px;
}

.transcript-login-gate h4 {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.transcript-login-gate p {
    margin-top: 3px;
    font-size: .78rem;
    line-height: 1.5;
}

.transcript-login-gate a {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #3269e7, #2453bd);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 900;
    white-space: nowrap;
}

.footer-supreme {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    border-color: var(--line-soft);
}

:root[data-theme="dark"] .brand-icon-box {
    background: #f8fafc !important;
    border-color: rgba(255, 255, 255, .18) !important;
}

:root[data-theme="dark"] .status-verified-pill {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

:root[data-theme="dark"] select {
    color: var(--text-main) !important;
    background: var(--surface-soft) !important;
}

@media (max-width: 768px) {
    .navbar-supreme { padding: 10px 12px; }

    .header-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header-title-group {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
    }

    .brand-icon-box {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .header-title-group h1 {
        font-size: .86rem;
        white-space: nowrap;
    }

    .header-subtext {
        display: none;
    }

    .header-right-info {
        display: flex;
        gap: 6px;
    }

    .header-theme-button {
        width: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .header-theme-button span { display: none; }

    .header-login-button {
        width: auto;
        min-width: 72px;
        min-height: 38px;
        padding: 0 12px;
        justify-content: center;
        border-radius: 12px;
    }

    .header-login-button span { display: inline; }

    .main-wrapper { padding: 16px 12px; }

    .hero-card {
        padding: 22px 16px !important;
        border-radius: 22px !important;
    }

    .hero-card h2 {
        font-size: 1.55rem !important;
        line-height: 1.12;
    }

    .hero-card p {
        font-size: .78rem !important;
        line-height: 1.55;
    }

    .transcript-login-gate {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .transcript-login-gate a {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .header-title-group h1 { font-size: .76rem; }
    .header-login-button { min-width: 66px; padding: 0 9px; }
}

/* HOMEPAGE GUIDE SPOTLIGHT */
.homepage-guide-spotlight {
    position: relative;
    isolation: isolate;
    max-width: 820px;
    min-height: 92px;
    margin: 20px auto 0;
    padding: 14px 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    text-align: left;
    color: #eaf3ff;
    border: 1px solid rgba(147, 197, 253, .3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 0%, rgba(45, 212, 191, .25), transparent 13rem),
        linear-gradient(125deg, #102b65 0%, #1f56ba 58%, #0d7872 118%);
    box-shadow: 0 18px 38px rgba(22, 67, 145, .2);
    animation: homepageGuideFloat 4.2s ease-in-out infinite;
}

.homepage-guide-spotlight::before {
    position: absolute;
    z-index: -1;
    right: -58px;
    bottom: -92px;
    width: 190px;
    height: 190px;
    border: 25px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    content: '';
}

.homepage-guide-icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 17px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.homepage-guide-icon::after {
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(125, 238, 216, .6);
    border-radius: 21px;
    content: '';
    animation: homepageGuidePulse 2.2s ease-out infinite;
}

.homepage-guide-icon i {
    font-size: 1.28rem;
    animation: homepageGuideBook 2.8s ease-in-out infinite;
}

.homepage-guide-copy { min-width: 0; }
.homepage-guide-badge {
    width: fit-content;
    margin-bottom: 5px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a7f3d0;
    border-radius: 7px;
    background: rgba(16, 185, 129, .13);
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.homepage-guide-copy strong,
.homepage-guide-copy small { display: block; }
.homepage-guide-copy strong { color: #ffffff; font: 800 .88rem/1.25 var(--font-display); }
.homepage-guide-copy small { margin-top: 4px; color: rgba(226, 238, 255, .72); font-size: .59rem; line-height: 1.5; }

.homepage-guide-button {
    position: relative;
    min-height: 48px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    color: #1746a2;
    border: 1px solid #ffffff;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
    font-size: .68rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.homepage-guide-button::before {
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -35%;
    width: 30%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .18), transparent);
    content: '';
    animation: homepageGuideShine 3.6s ease-in-out infinite;
}

.homepage-guide-button span,
.homepage-guide-button i { position: relative; z-index: 1; }
.homepage-guide-button i { animation: homepageGuideArrow 1.35s ease-in-out infinite; }
.homepage-guide-button:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 17px 34px rgba(0, 0, 0, .22);
}
.homepage-guide-button:focus-visible {
    outline: 3px solid rgba(167, 243, 208, .75);
    outline-offset: 4px;
}

@keyframes homepageGuideFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes homepageGuidePulse {
    0% { transform: scale(.92); opacity: .75; }
    75%, 100% { transform: scale(1.14); opacity: 0; }
}
@keyframes homepageGuideBook {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-5deg) scale(1.08); }
}
@keyframes homepageGuideArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@keyframes homepageGuideShine {
    0%, 35% { left: -35%; opacity: 0; }
    50% { opacity: 1; }
    70%, 100% { left: 125%; opacity: 0; }
}

@media (max-width: 720px) {
    .homepage-guide-spotlight {
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
        border-radius: 19px;
    }
    .homepage-guide-icon { width: 47px; height: 47px; border-radius: 15px; }
    .homepage-guide-copy strong { font-size: .78rem; }
    .homepage-guide-copy small { font-size: .55rem; }
    .homepage-guide-button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 45px;
    }
}

@media (max-width: 420px) {
    .homepage-guide-spotlight { margin-top: 17px; }
    .homepage-guide-badge { font-size: .46rem; }
    .homepage-guide-copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-guide-spotlight,
    .homepage-guide-icon::after,
    .homepage-guide-icon i,
    .homepage-guide-button::before,
    .homepage-guide-button i {
        animation: none !important;
    }
}
