:root {
    --bg-base: #0e1015;
    --bg-panel: #171a21;
    --bg-panel-alt: #1e222b;
    --bg-raised: #262b36;
    --border: #2c313c;
    --border-light: #3a4150;
    --text-primary: #eceef2;
    --text-secondary: #9aa1b0;
    --text-muted: #6b7280;
    --accent-red: #ef4444;
    --accent-red-dim: #3a1a1c;
    --accent-green: #22c55e;
    --accent-green-dim: #14261c;
    --accent-amber: #f59e0b;
    /* Brand accent: matches the burnt-orange used across the author's
       portfolio (rafiqohfitriani.com/porto) - kept as one variable so it
       stays purely a *brand* color, distinct from the red/green/amber
       pass-fail semantics used elsewhere in this module. */
    --accent-brand: #ff631e;
    --accent-brand-tint: #ffefe9;
    --overlay-bg: radial-gradient(circle at top, #171b24 0%, #0a0b0e 100%);
    --radius: 10px;
    --radius-lg: 16px;
    --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Merriweather", Georgia, "Times New Roman", serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --transition: 0.2s ease;
}

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

html, body { height: 100%; }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.55;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul { list-style: none; }

/* ============ UTILITY ============ */
.hidden { display: none !important; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius);
    padding: 13px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--accent-brand);
    color: #fff;
}
.btn-primary:hover { background: #e2551a; transform: translateY(-1px); }

/* ============ BRAND LOGO ============
   Recreates the author's real monogram from rafiqohfitriani.com/porto:
   a white circular badge, a bold black serif initial, and a small
   orange accent swash - rather than the site's exact (auth-signed,
   non-portable) image asset. */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-mark {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #14161b;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.brand-mark::after {
    content: "";
    position: absolute;
    top: -2px; right: -1px;
    width: 9px; height: 9px;
    background: var(--accent-brand);
    border-radius: 50% 50% 50% 3px;
    transform: rotate(-45deg);
}

.brand-logo-sm {
    margin-bottom: 0;
}
.brand-logo-sm .brand-mark {
    width: 30px; height: 30px;
    font-size: 0.68rem;
    box-shadow: none;
}
.brand-logo-sm .brand-mark::after {
    width: 6px; height: 6px;
    top: -1px; right: -1px;
}

/* ============ BADGE ============ */
.badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.badge-alert {
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============ SHARED PANEL (intro cards + overlays) ============ */
.overlay-panel {
    max-width: 560px;
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.overlay-panel h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.overlay-panel p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.overlay-panel p:last-of-type { margin-bottom: 28px; }

.overlay-panel strong { color: var(--text-primary); }

/* ============ INTRO SEQUENCE (Screens 0-4) ============ */
.intro-wrap {
    position: fixed; inset: 0; z-index: 50;
    background: var(--overlay-bg);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    /* Screen 0 (designer credit) runs longer than a single viewport on
       shorter windows, so the wrap scrolls instead of clipping it. */
    overflow-y: auto;
}

.intro-screen {
    position: relative;
    max-width: 560px;
    width: 100%;
    animation: introFade 0.4s ease;
}

@keyframes introFade {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

.intro-card-center { text-align: center; }
.intro-card-center .brand-logo { margin-bottom: 20px; }
.intro-card-center p,
.intro-card-center h1 { text-align: left; }

.intro-bg-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 320px;
    line-height: 1;
    opacity: 0.05;
    z-index: -1;
    filter: grayscale(1);
    pointer-events: none;
}

.intro-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 28px;
}

.intro-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.intro-list li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-green);
    font-weight: 800;
}

.intro-progress {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.intro-progress-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all var(--transition);
}

.intro-progress-dot.active {
    background: var(--accent-brand);
    width: 18px;
    border-radius: 4px;
}

/* ============ TRANSITION / RESULT OVERLAYS ============ */
.overlay {
    position: fixed; inset: 0; z-index: 100;
    background: var(--overlay-bg);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

.overlay-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.pulse-icon {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-red);
    margin-bottom: 18px;
    position: relative;
}

.pulse-icon::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    animation: pulseRing 1.6s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Result overlay variants */
.overlay-result { text-align: center; }
.overlay-result .overlay-panel { text-align: center; }

.overlay-result.flash-red { animation: flashRed 900ms ease-out; }
.overlay-result.flash-yellow { animation: flashYellow 900ms ease-out; }
.overlay-result.flash-green { animation: flashGreen 900ms ease-out; }

@keyframes flashRed {
    0% { background: rgba(239,68,68,0.55); }
    100% { background: var(--overlay-bg); }
}
@keyframes flashYellow {
    0% { background: rgba(245,158,11,0.5); }
    100% { background: var(--overlay-bg); }
}
@keyframes flashGreen {
    0% { background: rgba(34,197,94,0.5); }
    100% { background: var(--overlay-bg); }
}

.result-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.result-icon.icon-fail { background: var(--accent-red-dim); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.4); }
.result-icon.icon-warn { background: rgba(245,158,11,0.12); color: var(--accent-amber); border: 1px solid rgba(245,158,11,0.4); }
.result-icon.icon-pass { background: var(--accent-green-dim); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.4); }

.result-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.result-meta span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
}

.result-close-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ DASHBOARD SHELL ============ */
.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ticket-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
}

/* ============ DASHBOARD BODY (sidebar + main) ============ */
.dash-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.sidebar-item dt {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.sidebar-item dd {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-instructions {
    padding: 14px 32px;
    background: var(--bg-panel-alt);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============ TAB NAV ============ */
.tab-nav {
    display: flex;
    gap: 4px;
    padding: 0 32px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 16px 18px;
    transition: color var(--transition), border-color var(--transition);
}

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

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-brand);
}

.tab-check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #08130c;
    font-size: 0.68rem;
    font-weight: 900;
}

.tab-check.visible { display: inline-flex; }

/* ============ TAB CONTENT ============ */
.tab-content {
    flex: 1;
    padding: 32px;
    max-width: 900px;
    width: 100%;
}

.tab-panel:not(.hidden) { animation: fadeIn 0.25s ease; }

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

.panel-heading { margin-bottom: 20px; }
.panel-heading h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.panel-sub { color: var(--text-muted); font-size: 0.85rem; }

/* ============ VIDEO TAB ============ */
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, var(--bg-raised), var(--bg-panel-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* assets/video/interactive-video-simulator.html is a self-contained
   canvas-animated trailer with its own watermark hotspot and player
   controls; it just needs to fill the frame. It reports clicks back
   to this page via postMessage - see app.js. */
.video-sim-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.placeholder-label {
    position: absolute;
    top: 16px; left: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    z-index: 3;
}

/* ============ COVER TAB ============ */
.cover-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    max-width: 320px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    /* Layered fallback illustration: assets/images/cover-art.png fully
       covers the layers beneath it; if that file were ever missing,
       that layer simply wouldn't paint and the CSS-illustrated
       dusk/mountain/stars scene would show through automatically -
       no JS needed for this fallback. */
    background-image:
        url('assets/images/cover-art.png'),
        radial-gradient(circle at 68% 20%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.55) 5%, transparent 6%),
        radial-gradient(1.5px 1.5px at 20% 14%, rgba(255,255,255,0.85) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 40% 9%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 80% 30%, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 55% 6%, rgba(255,255,255,0.5) 50%, transparent 51%),
        linear-gradient(to bottom, #241046 0%, #5b2a7d 40%, #b1553f 75%, #e0954f 100%);
    background-size: cover, auto, auto, auto, auto, auto, cover;
    background-repeat: no-repeat;
}

.cover-frame::before {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 38%;
    background: #14091f;
    clip-path: polygon(0% 100%, 0% 55%, 15% 70%, 30% 40%, 45% 65%, 60% 30%, 75% 60%, 90% 45%, 100% 68%, 100% 100%);
    opacity: 0.92;
}

/* Decoy click layer over the illustration, same "child hotspot vs.
   direct hit on the layer itself" pattern as the video tab. */
.cover-click-layer {
    position: absolute; inset: 0;
    z-index: 3;
    cursor: pointer;
}

.hotspot-cover {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34px;
    display: flex;
    align-items: flex-end;
    padding: 0 12px 4px;
    cursor: pointer;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    outline: 2px dashed transparent;
    outline-offset: -2px;
    transition: outline-color var(--transition), background var(--transition);
}

.cropped-text {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
    white-space: nowrap;
    transform: translateY(60%);
}

/* ============ TERMS TAB ============ */
.terms-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 28px;
}

.terms-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.terms-row:last-child { border-bottom: none; }

.terms-row.clickable-decoy {
    cursor: pointer;
    margin: 0 -28px;
    padding: 14px 28px;
    border-radius: 6px;
    transition: background var(--transition);
}
.terms-row.clickable-decoy:hover { background: var(--bg-panel-alt); }

.terms-key {
    width: 90px;
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terms-value { font-size: 0.95rem; font-weight: 500; }

.terms-row-tags { align-items: flex-start; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 100px;
    outline: 2px dashed transparent;
    outline-offset: 2px;
    transition: outline-color var(--transition), background var(--transition);
}

.tag.clickable-decoy { cursor: pointer; }

.tag.hotspot-terms {
    cursor: pointer;
    color: #fecaca;
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.3);
}

/* ============ HOTSPOT / DECOY HOVER + FOUND STATES ============ */
/* Hover cues stay neutral on every clickable element (hotspots and
   decoys alike) so hovering never gives away which one is the real
   violation - only a successful click reveals that, via .found. */
.hotspot:hover,
.clickable-decoy:hover,
.tag.clickable-decoy:hover,
.tag.hotspot-terms:hover {
    outline-color: rgba(255,255,255,0.35);
}

.hotspot.found {
    outline: 2px solid var(--accent-red) !important;
    outline-offset: 3px;
    filter: none;
    cursor: default;
}

.hotspot-cover.found { background: linear-gradient(to top, rgba(239,68,68,0.4), transparent); }
.tag.hotspot-terms.found { background: rgba(239,68,68,0.28); color: #fff; }

/* ============ FEEDBACK MODAL ============ */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6,7,10,0.7);
    backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
}

.modal-backdrop.visible { opacity: 1; pointer-events: auto; }

.modal {
    max-width: 440px;
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(12px);
    transition: transform var(--transition);
}

.modal-backdrop.visible .modal { transform: translateY(0); }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.modal.modal-violation .modal-title { color: var(--accent-red); }
.modal.modal-clear .modal-title { color: var(--accent-brand); }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 2px 6px;
    flex-shrink: 0;
}
.modal-close:hover { color: var(--text-primary); }

.modal-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

/* ============ DASHBOARD HEADER RIGHT ============ */
.dash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============ SCREEN 0: DESIGNER HERO ============
   The very first thing a viewer sees, before the module title. A
   compact two-column hero: portrait photo on the left, name/role and
   short copy on the right, collapsing to a stacked layout on narrow
   screens (see the responsive block at the end of this file). */
.intro-card-credit {
    max-width: 640px;
    text-align: left;
}

.credit-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Portrait photo: drop assets/images/profile-photo.jpg in and it fully
   covers the layers beneath it automatically - if that file is ever
   missing, the glow + gradient alone still read as an intentional
   placeholder rather than a broken image, no JS needed (same pattern
   as .cover-frame). */
.hero-photo {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background-image:
        url('assets/images/profile-photo.png'),
        radial-gradient(circle at 28% 22%, rgba(255,99,30,0.3) 0%, transparent 46%),
        radial-gradient(1.5px 1.5px at 70% 75%, rgba(255,255,255,0.25) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,255,255,0.18) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 80% 30%, rgba(255,255,255,0.2) 50%, transparent 51%),
        linear-gradient(160deg, #2a2f3d 0%, #1b1e27 100%);
    background-size: cover, auto, auto, auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.credit-logo-badge {
    position: absolute;
    right: -8px; bottom: -8px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    border: 2px solid var(--bg-panel);
}
.credit-logo-badge img {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.credit-content {
    flex: 1;
    min-width: 0;
}

.credit-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.credit-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.credit-section-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.credit-section-label:not(:first-of-type) { margin-top: 12px; }

.credit-section-body {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.credit-quote-box {
    font-size: 0.76rem;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-brand);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin: 14px 0;
}

.credit-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.credit-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-brand);
    font-size: 0.85rem;
    font-weight: 700;
}
.credit-cta-link:hover { text-decoration: underline; }

.credit-continue-btn {
    width: 100%;
}

/* ============ FOOTER / DECISION BUTTONS ============ */
.dash-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-status {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.btn-decision {
    color: #fff;
    opacity: 1;
}

.btn-decision:disabled {
    background: var(--bg-raised) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-approve { background: var(--accent-green); }
.btn-approve:not(:disabled):hover { background: #16a34a; }

.btn-escalate { background: var(--accent-amber); color: #221703; }
.btn-escalate:not(:disabled):hover { background: #d98608; }

.btn-reject { background: var(--accent-red); }
.btn-reject:not(:disabled):hover { background: #dc2626; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .dash-body { flex-direction: column; }
    .dash-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        flex-wrap: wrap;
        gap: 20px 40px;
        padding: 18px 20px;
    }
    .sidebar-list { flex-direction: row; flex-wrap: wrap; gap: 20px; margin-bottom: 0; }
    .sidebar-divider { display: none; }
}

@media (max-width: 720px) {
    .dash-header, .tab-nav, .tab-content, .dash-footer, .dash-instructions { padding-left: 18px; padding-right: 18px; }
    .terms-card { padding-left: 18px; padding-right: 18px; }
    .terms-row.clickable-decoy { margin: 0 -18px; padding: 14px 18px; }
    .tab-nav { overflow-x: auto; }
    .tab-btn { padding: 14px 12px; white-space: nowrap; }
    .dash-footer { flex-direction: column; align-items: stretch; }
    .footer-actions { flex-direction: column; }
    .footer-status { text-align: center; }
    .overlay-panel { padding: 28px 22px; }
    .intro-bg-icon { font-size: 200px; }
    .credit-hero { flex-direction: column; align-items: center; text-align: center; }
    .hero-photo { flex: 0 0 auto; }
    .credit-role { margin-bottom: 10px; }
    .credit-section-label:not(:first-of-type) { margin-top: 10px; }
    .credit-links-row { justify-content: center; }
}
