@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@700;800&family=Oswald:wght@600;700&display=swap');

/* DriveFlow Pro Modern Frontend & TV Display Styles */
:root {
    --df-bg-dark: #070d19;
    --df-bg-surface: #0f192d;
    --df-bg-card: rgba(18, 30, 56, 0.85);
    --df-primary: #10b981;
    --df-primary-glow: rgba(16, 185, 129, 0.35);
    --df-accent: #f59e0b;
    --df-accent-glow: rgba(245, 158, 11, 0.35);
    --df-danger: #ef4444;
    --df-text-main: #f8fafc;
    --df-text-muted: #94a3b8;
    --df-border: #1e2e4a;
    --df-font: 'Vazirmatn', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --df-radius: 12px;
}

/* Fullscreen Kiosk TV Display */
.driveflow-tv:fullscreen,
.driveflow-tv:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    padding: 28px !important;
    background: #070d19 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    z-index: 9999999 !important;
    border-radius: 0 !important;
}

.driveflow-app {
    box-sizing: border-box;
    font-family: var(--df-font);
    color: var(--df-text-main);
    background: radial-gradient(circle at top right, #132742 0%, var(--df-bg-dark) 60%, #030710 100%);
    min-height: 550px;
    padding: 24px;
}

.driveflow-app *, .driveflow-app *:before, .driveflow-app *:after {
    box-sizing: inherit;
}

/* Header */
.driveflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 950px;
    margin: 0 auto 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--df-border);
}

.driveflow-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.driveflow-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.driveflow-header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--df-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.df-live-indicator {
    width: 8px;
    height: 8px;
    background: var(--df-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--df-primary);
    animation: dfPulse 1.5s infinite;
}

@keyframes dfPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--df-primary); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Panel / Form Container */
.driveflow-panel {
    max-width: 950px;
    margin: 0 auto;
    background: var(--df-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    padding: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
}

.driveflow-form-title-area h1 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.driveflow-form-title-area p {
    margin: 0 0 24px 0;
    color: var(--df-text-muted);
    font-size: 14px;
}

/* Timer Bar */
.df-timer-bar {
    background: #081224;
    border: 1px solid #1a2c47;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.df-timer-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.df-timer-label {
    color: var(--df-text-muted);
    font-size: 13px;
}

.df-timer-digits {
    font-family: monospace, sans-serif;
    font-size: 22px;
    color: var(--df-accent);
    letter-spacing: 1px;
}

.df-timer-controls {
    display: flex;
    gap: 8px;
}

.driveflow-button-small {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--df-primary);
    color: var(--df-primary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.driveflow-button-small:hover {
    background: var(--df-primary);
    color: #03140e;
}

.driveflow-button-small.secondary {
    background: rgba(148, 163, 184, 0.1);
    border-color: #334155;
    color: var(--df-text-muted);
}
.driveflow-button-small.secondary:hover {
    background: #334155;
    color: #ffffff;
}

/* Grid & Inputs */
.driveflow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

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

.driveflow-app label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.driveflow-app input,
.driveflow-app select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    background: #060c18;
    border: 1px solid #1e2d45;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.driveflow-app input:focus,
.driveflow-app select:focus {
    border-color: var(--df-primary);
    box-shadow: 0 0 0 3px var(--df-primary-glow);
    outline: none;
}

/* Skills Evaluation Block */
.df-skills-eval-block {
    background: linear-gradient(180deg, #09152a 0%, #060e1d 100%);
    border: 1px solid #1d3356;
}

.df-skills-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.df-skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.df-skill-row span {
    font-size: 13px;
    color: #e2e8f0;
}

.df-star-group {
    display: flex;
    gap: 4px;
}

.df-star {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #475569;
    transition: color 0.15s, transform 0.15s;
    padding: 0 2px;
    line-height: 1;
}

.df-star:hover {
    transform: scale(1.25);
}

.df-star.is-active {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Capture Blocks */
.capture-block {
    background: #081224;
    border: 1px solid #1a2c47;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.capture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.capture-header h2 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.capture-hint {
    color: var(--df-text-muted);
    font-size: 12px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: #020610;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e2d45;
}

.video-container video,
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driveflow-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.driveflow-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--df-primary);
    color: #03140e;
    border: 1px solid var(--df-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.driveflow-button:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 0 12px var(--df-primary-glow);
}

.driveflow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.driveflow-button.secondary {
    background: transparent;
    border-color: #334155;
    color: var(--df-text-main);
}
.driveflow-button.secondary:hover:not(:disabled) {
    background: #1e293b;
    border-color: #64748b;
}

/* Signature Canvas */
.signature-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #334155;
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
}

.signature-guide-line {
    position: absolute;
    bottom: 35px;
    left: 40px;
    right: 40px;
    border-bottom: 1px dashed #cbd5e1;
    pointer-events: none;
    text-align: right;
}

.signature-guide-line span {
    font-size: 11px;
    color: #94a3b8;
    background: #ffffff;
    padding: 0 6px;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Agreement Checkboxes */
.df-agreements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.df-checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
    color: var(--df-text-muted) !important;
    cursor: pointer;
}

.df-checkbox-label input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--df-primary);
}

/* Submit Button */
.driveflow-submit {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #021a12;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--df-primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.driveflow-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -4px var(--df-primary-glow);
}

.driveflow-message {
    min-height: 24px;
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
    color: var(--df-primary);
    font-weight: 600;
}

.driveflow-message.is-error {
    color: var(--df-danger);
}

/* =========================================================== */
/* TV BOARD v2 — ULTRA-PREMIUM CINEMATIC LOBBY DISPLAY         */
/* =========================================================== */

/* ── Wrapper & Background ── */
.dfv2-tv-wrap {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #020810;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--df-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #f8fafc;
    box-sizing: border-box;
    padding: 0;
    left: 0;
    right: 0;
}

.dfv2-tv-wrap *, .dfv2-tv-wrap *::before, .dfv2-tv-wrap *::after {
    box-sizing: border-box;
}

/* Animated star canvas */
.dfv2-starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* All sections above the canvas */
.dfv2-tv-wrap > *:not(.dfv2-starfield) {
    position: relative;
    z-index: 2;
}

/* Ambient background glow blobs */
.dfv2-tv-wrap::before,
.dfv2-tv-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.dfv2-tv-wrap::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}
.dfv2-tv-wrap::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
}

/* ── INTEGRATED TV HEADER PERSPECTIVE SWITCHER ── */
.dfv2-header-view-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dfv2-mode-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.dfv2-mode-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.dfv2-mode-btn.is-active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.dfv2-refresh-quick-btn {
    padding: 5px 9px;
    color: #cbd5e1;
}

.dfv2-refresh-quick-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

/* ── LIVE ADMIN BROADCAST ALERT BANNER ── */
.dfv2-broadcast-banner {
    position: relative;
    margin: 12px 24px 0 24px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.95), rgba(153, 27, 27, 0.9));
    border: 1px solid rgba(248, 113, 113, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
    z-index: 50;
    animation: dfv2AlertGlow 2.5s infinite alternate ease-in-out;
}

.dfv2-broadcast-banner.is-warning {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(146, 64, 14, 0.9));
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
}

.dfv2-broadcast-banner.is-info {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(3, 105, 161, 0.9));
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.5);
}

@keyframes dfv2AlertGlow {
    0%   { box-shadow: 0 0 20px rgba(220, 38, 38, 0.4); transform: scale(0.998); }
    100% { box-shadow: 0 0 35px rgba(220, 38, 38, 0.75); transform: scale(1.002); }
}

.dfv2-broadcast-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    animation: dfv2PulseDot 1s infinite alternate;
}

.dfv2-broadcast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dfv2-broadcast-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.dfv2-broadcast-text {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.dfv2-broadcast-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

.dfv2-broadcast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── HEADER (MATCHING MOCKUP) ── */
.dfv2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 24px 20px 24px;
    padding: 16px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    gap: 20px;
    flex-shrink: 0;
}

.dfv2-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.dfv2-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.dfv2-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dfv2-school-name {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.dfv2-school-sub {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.dfv2-center-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.dfv2-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid #10b981;
    color: #10b981;
    padding: 8px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.dfv2-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
    animation: dfv2DotBlink 1.4s ease-in-out infinite;
}

@keyframes dfv2DotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.dfv2-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.dfv2-clock-block {
    text-align: right;
}

.dfv2-clock-time {
    display: block;
    font-family: 'Barlow Semi Condensed', 'Oswald', monospace, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #facc15;
    line-height: 1;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.dfv2-clock-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.dfv2-controls {
    display: flex;
    gap: 8px;
}

.dfv2-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dfv2-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.dfv2-ctrl-btn.is-on {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

/* ── AUTHENTIC MARYLAND DMV LICENSE PLATE (MATCHING MOCKUP) ── */
.maryland-plate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff url('images/maryland-plate-authentic.svg') no-repeat center center;
    background-size: 100% 100%;
    width: 154px;
    height: 76px;
    border-radius: 10px;
    box-shadow: 
        0 6px 18px rgba(0,0,0,0.4),
        inset 0 0 0 1px #cbd5e1;
    border: 1px solid rgba(0,0,0,0.25);
    box-sizing: border-box;
    vertical-align: middle;
    user-select: none;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.maryland-plate:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.maryland-plate .plate-number {
    font-family: 'Barlow Semi Condensed', 'Impact', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #0b2545;
    text-shadow: 
        1px 1px 0px rgba(255,255,255,0.95), 
        -1px -1px 1px rgba(0,0,0,0.4);
    margin-top: 14px;
    z-index: 2;
}

.maryland-plate .plate-bolt {
    display: none; /* SVG now contains crisp vector bolts */
}

.maryland-plate .plate-shine {
    display: none; /* SVG now contains vector metallic shine */
}

/* ── SESSIONS GRID (MATCHING MOCKUP) ── */
.dfv2-sessions-wrap {
    flex: 1 1 auto;
    padding: 0 24px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dfv2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-content: stretch;
}

@media (max-width: 1100px) {
    .dfv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .dfv2-grid { grid-template-columns: 1fr; }
}

/* ── SESSION CARDS (MATCHING MOCKUP) ── */
.dfv2-card {
    position: relative;
    background: rgba(10, 18, 38, 0.95);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dfv2-card:hover {
    transform: translateY(-4px);
}

/* Card Active (Green) */
.dfv2-card--active {
    border: 2px solid #10b981;
    background: linear-gradient(175deg, rgba(16, 185, 129, 0.08) 0%, rgba(7, 14, 30, 0.98) 60%);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.3),
        0 12px 40px rgba(16, 185, 129, 0.28),
        0 0 60px rgba(16, 185, 129, 0.12);
}
.dfv2-card--active .dfv2-status-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.dfv2-card--active .dfv2-card-time {
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}
.dfv2-card--active .dfv2-time-text {
    color: #facc15;
    text-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

/* Card Upcoming (Amber/Gold) */
.dfv2-card--upcoming {
    border: 2px solid #f59e0b;
    background: linear-gradient(175deg, rgba(245, 158, 11, 0.06) 0%, rgba(7, 14, 30, 0.98) 60%);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.25),
        0 12px 40px rgba(245, 158, 11, 0.22);
}
.dfv2-card--upcoming .dfv2-status-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1.5px solid #f59e0b;
    color: #fbbf24;
}
.dfv2-card--upcoming .dfv2-card-time {
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}
.dfv2-card--upcoming .dfv2-time-text {
    color: #facc15;
}

/* Card Completed (Muted Slate Blue) */
.dfv2-card--completed {
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    background: rgba(10, 18, 36, 0.7);
    opacity: 0.82;
}
.dfv2-card--completed .dfv2-status-badge {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.dfv2-card--completed .dfv2-student-name {
    color: #94a3b8;
}
.dfv2-card--completed .dfv2-card-time {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}
.dfv2-card--completed .dfv2-time-text {
    color: #64748b;
}

.dfv2-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dfv2-card-top-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Fuel Gauge (10-Segment LED Meter) */
.lb-fuel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: #060c18;
    color: var(--f, #22ff88);
    border: 1px solid color-mix(in srgb, var(--f, #22ff88) 45%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--f, #22ff88) 25%, transparent);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 110px;
    flex-shrink: 0;
}

.lb-fuel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.lb-fuel-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: currentColor;
}

.lb-fuel-pct {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.lb-fuel-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2.5px;
}

.lb-fuel-seg {
    display: block;
    height: 8px;
    border-radius: 1.5px;
    background: #1b2540;
    transition: background 0.3s ease;
}

.lb-fuel-seg.on {
    background: var(--f, #22ff88);
    box-shadow: 0 0 6px var(--f, #22ff88);
}

.lb-fuel-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 700;
    color: #6d7893;
    letter-spacing: 0.6px;
    line-height: 1;
}

.lb-fuel.low .lb-fuel-pct,
.lb-fuel.low .lb-fuel-icon {
    animation: lb-blink 1s ease-in-out infinite;
}

@keyframes lb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lb-pulse {
    0%, 100% { box-shadow: 0 0 1.2rem color-mix(in srgb, var(--c, #10b981) 40%, transparent), inset 0 0 1.4rem color-mix(in srgb, var(--c, #10b981) 8%, transparent); }
    50%      { box-shadow: 0 0 2.8rem color-mix(in srgb, var(--c, #10b981) 80%, transparent), inset 0 0 2rem color-mix(in srgb, var(--c, #10b981) 16%, transparent); }
}

.dfv2-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.dfv2-card-mid {
    text-align: center;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dfv2-card-cap-icon {
    font-size: 34px;
    opacity: 0.65;
    margin-bottom: -4px;
}

.dfv2-student-name {
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
}

.dfv2-pills-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.dfv2-pill-instructor {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 7px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dfv2-pill-lesson {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 7px 20px !important;
    border-radius: 9px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dfv2-card-time {
    margin: 0 -24px -24px -24px;
    padding: 18px 24px;
    border-radius: 0 0 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dfv2-time-clock-icon {
    font-size: 18px;
    color: #facc15;
}

.dfv2-time-text {
    font-family: 'Barlow Semi Condensed', 'Oswald', monospace, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* ── STANDBY CARD ── */
.dfv2-standby {
    grid-column: 1 / -1;
    padding: 60px 20px;
}

.dfv2-standby-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.dfv2-standby-icon-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfv2-standby-icon-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: dfv2RingPulse 2.5s ease-out infinite;
}

.dfv2-standby-icon-ring2 {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.5);
    animation: dfv2RingPulse 2.5s ease-out infinite 0.7s;
}

.dfv2-standby-emoji {
    font-size: 52px;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.4));
    animation: dfv2Float 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.dfv2-standby-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.dfv2-standby-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.dfv2-standby-desc {
    font-size: 16px;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 32px auto;
}

.dfv2-standby-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 28px;
}

.dfv2-stag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}

.dfv2-stag:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

/* ── TICKER FOOTER ── */
.dfv2-ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(5, 11, 24, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    overflow: hidden;
}

.dfv2-ticker-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #021a12;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.dfv2-ticker-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #021a12;
    animation: dfv2PulseDot 1.2s infinite alternate;
}

.dfv2-ticker-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.dfv2-ticker-text {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-left: 100%;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.9);
    animation: dfv2Marquee 42s linear infinite;
    letter-spacing: 0.3px;
}

.dfv2-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dfv2-ticker-bullet {
    color: #10b981;
    font-size: 10px;
    opacity: 0.8;
}

@keyframes dfv2Marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.dfv2-ticker-track:hover .dfv2-ticker-text {
    animation-play-state: paused;
}

/* ── SMART CAROUSEL / PAGER ── */
.dfv2-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    padding: 6px 0;
    position: relative;
    z-index: 10;
}

.dfv2-pager-inner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.dfv2-page-label {
    font-size: 13px;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.9);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dfv2-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfv2-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.dfv2-dot:hover {
    background: rgba(16, 185, 129, 0.7);
    transform: scale(1.25);
    border-color: rgba(16, 185, 129, 0.9);
}

.dfv2-dot.is-active {
    width: 28px;
    height: 10px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .dfv2-header { padding: 14px 20px; flex-wrap: wrap; }
    .dfv2-schedule-bar { padding: 12px 20px; }
    .dfv2-sessions-wrap { padding: 20px; }
    .dfv2-grid { grid-template-columns: 1fr; }
    .dfv2-clock-time { font-size: 28px; }
    .dfv2-school-name { font-size: 18px; }
    .dfv2-center-badge { flex-direction: row; gap: 10px; }
    .dfv2-session-counter { display: none; }
}

@media (max-width: 600px) {
    .dfv2-legend { display: none; }
    .dfv2-card-top { flex-direction: column; align-items: flex-start; }
    .dfv2-student-name { font-size: 22px; }
    .dfv2-standby { padding: 40px 16px; }
}

/* ── FULLSCREEN & KIOSK MODE (CSS Overlay + Native Fullscreen) ── */
.dfv2-tv-wrap.dfv2-is-fullscreen,
.dfv2-tv-wrap:fullscreen,
.dfv2-tv-wrap:-webkit-full-screen,
.dfv2-tv-wrap:-moz-full-screen,
.dfv2-tv-wrap:-ms-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 9999999 !important;
    background: #020810 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.dfv2-tv-wrap.dfv2-is-fullscreen .dfv2-sessions-wrap,
.dfv2-tv-wrap:fullscreen .dfv2-sessions-wrap,
.dfv2-tv-wrap:-webkit-full-screen .dfv2-sessions-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Hide WP Admin Bar, header, footer, menus in Kiosk mode */
body.dfv2-kiosk-mode {
    overflow: hidden !important;
}
body.dfv2-kiosk-mode #wpadminbar,
body.dfv2-kiosk-mode > header,
body.dfv2-kiosk-mode > footer,
body.dfv2-kiosk-mode header.site-header,
body.dfv2-kiosk-mode footer.site-footer,
body.dfv2-kiosk-mode #masthead,
body.dfv2-kiosk-mode #colophon,
body.dfv2-kiosk-mode nav,
body.dfv2-kiosk-mode .nav-menu,
body.dfv2-kiosk-mode .main-navigation,
body.dfv2-kiosk-mode #site-navigation,
body.dfv2-kiosk-mode .wp-block-navigation,
body.dfv2-kiosk-mode .sidebar {
    display: none !important;
}
html.dfv2-kiosk-mode {
    margin-top: 0 !important;
}

/* ── BACKWARD COMPAT: Keep old driveflow-tv for non-TV pages ── */
.driveflow-tv {
    min-height: 100vh;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.driveflow-tv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.df-tv-sub {
    display: block;
    font-size: 12px;
    color: var(--df-text-muted);
    font-weight: normal;
}

.df-live-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--df-primary);
    color: var(--df-primary);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.df-pulsing-dot {
    width: 10px;
    height: 10px;
    background: var(--df-primary);
    border-radius: 50%;
    animation: dfPulse 1.2s infinite;
}

.driveflow-tv-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.df-board-time-box {
    text-align: right;
}

.df-clock-time {
    display: block;
    font-family: monospace, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #facc15;
    line-height: 1;
}

.df-clock-date {
    font-size: 13px;
    color: var(--df-text-muted);
    margin-top: 4px;
}

.df-tv-controls {
    display: flex;
    gap: 8px;
}

.df-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.df-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.df-icon-btn.is-active {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--df-primary);
}

.driveflow-board-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.driveflow-board-heading h2 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

.df-board-legend {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--df-text-muted);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-item.active .dot { background: var(--df-primary); box-shadow: 0 0 8px var(--df-primary); }
.legend-item.upcoming .dot { background: var(--df-accent); box-shadow: 0 0 8px var(--df-accent); }

/* TV Cards Grid */
.driveflow-tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.driveflow-tv-card {
    background: var(--df-bg-card);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.driveflow-tv-card:hover {
    transform: translateY(-3px);
}

.driveflow-tv-card.is-active {
    border-color: var(--df-primary);
    box-shadow: 0 0 30px -5px var(--df-primary-glow);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 30, 56, 0.95) 100%);
}

.driveflow-tv-card.is-upcoming {
    border-color: #3b4d6e;
}

.df-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

/* Ultra Realistic Embossed Metallic Car License Plate Badge */
.df-tv-plate {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 55%, #f8fafc 100%);
    border: 2px solid #94a3b8;
    outline: 1px solid #475569;
    color: #0f172a;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Arial Black', Impact, monospace, sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 3px 6px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8), -1px -1px 0px rgba(0,0,0,0.2);
}

.df-tv-plate-crab {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.df-card-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.df-card-status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.df-card-status-badge.upcoming {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid #f59e0b;
}

.df-card-status-badge.completed {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    border: 1px solid #0284c7;
}

.driveflow-tv-card.is-completed {
    border-color: #0284c7;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(18, 30, 56, 0.95) 100%);
}

.legend-item.completed .dot {
    background: #0284c7;
    box-shadow: 0 0 8px #0284c7;
}

.df-pulsing-dot-sm {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: dfPulse 1.4s infinite;
}

.df-card-student-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.df-student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.df-card-student {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.df-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.df-meta-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.df-meta-pill.instructor {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.df-meta-pill.topic {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.df-card-time-bar {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f8fafc;
    font-weight: 700;
}

.df-time-range {
    letter-spacing: 0.5px;
    color: #facc15;
}

/* Standby Welcome Card */
.df-tv-standby-card {
    grid-column: 1 / -1;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 56px 36px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

.df-tv-standby-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 40px;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.df-tv-standby-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 auto 16px auto;
}

.df-tv-standby-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.df-tv-standby-desc {
    color: #94a3b8;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.df-tv-standby-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.df-standby-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.df-tv-live-tag {
    background: #10b981;
    color: #021a12;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.df-tv-logo-img {
    height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.df-tv-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.df-tv-school-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* Announcement Ticker Footer */
.driveflow-tv-ticker {
    margin-top: 30px;
    background: #050b14;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.df-ticker-badge {
    background: var(--df-primary);
    color: #021a12;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.df-ticker-scroll-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.df-ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: dfMarquee 28s linear infinite;
    font-size: 15px;
    color: #e2e8f0;
}

@keyframes dfMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .driveflow-grid { grid-template-columns: 1fr; }
    .driveflow-tv-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .driveflow-tv-right { width: 100%; justify-content: space-between; }
    .driveflow-tv-grid { grid-template-columns: 1fr; }
}

/* Student Portal Styles */
.driveflow-portal-wrap {
    max-width: 860px;
    margin: 20px auto;
    border-radius: var(--df-radius);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}
.df-portal-header {
    border-bottom: 1px solid var(--df-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.df-portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.df-portal-brand h2 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
}
.df-portal-brand span {
    font-size: 13px;
    color: var(--df-text-muted);
}
.df-portal-lookup-card {
    background: var(--df-bg-surface);
    border: 1px solid var(--df-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}
.df-portal-search-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 20px auto 0;
}
.df-portal-search-form input {
    flex: 1;
    background: #030712;
    border: 1px solid var(--df-border);
    border-radius: 6px;
    color: #fff;
    padding: 10px 14px;
}
.df-portal-profile-card {
    background: var(--df-bg-surface);
    border: 1px solid var(--df-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.df-portal-user-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.df-portal-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.df-portal-user-row h2 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 20px;
}
.df-portal-meter-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--df-border);
    border-radius: 8px;
    padding: 16px;
}
.df-portal-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}
.df-timeline-card {
    background: var(--df-bg-card);
    border: 1px solid var(--df-border);
    border-radius: 8px;
    padding: 16px;
}
.df-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.df-timeline-header h4 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 16px;
}
.df-portal-skills-box {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--df-border);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 12px;
}
.df-portal-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 6px;
}
.df-star-color {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 14px;
}

/* ============================================================
   Student Magic Self-Booking Portal Styles
   ============================================================ */
.df-magic-booking-wrap {
    max-width: 900px;
    margin: 30px auto;
    font-family: var(--df-font);
    color: #1e293b;
}

.df-portal-header {
    text-align: center;
    margin-bottom: 28px;
}

.df-portal-logo {
    max-height: 55px;
    max-width: 180px;
    margin-bottom: 12px;
}

.df-portal-school-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.df-portal-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.df-portal-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 28px;
    margin-bottom: 24px;
}

.df-student-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: none;
}

.df-summary-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.df-student-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.df-student-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.df-student-meta strong {
    color: #f1f5f9;
}

.df-balance-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.df-balance-num {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: #60a5fa;
}

.df-balance-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.df-balance-progress-wrap {
    margin-top: 10px;
    width: 200px;
}

.df-progress-bar-bg {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.df-progress-bar-fill {
    background: #3b82f6;
    height: 100%;
    border-radius: 999px;
}

.df-progress-caption {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    text-align: right;
    margin-top: 4px;
}

/* Wizard */
.df-wizard-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .df-wizard-grid {
        grid-template-columns: 1fr;
    }
}

.df-form-group {
    margin-bottom: 16px;
}

.df-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.df-portal-input, .df-portal-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s;
}

.df-portal-input:focus, .df-portal-select:focus {
    border-color: #2563eb;
    outline: none;
    background: #ffffff;
}

.df-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.df-slot-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.df-slot-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.df-slot-btn.is-selected {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.df-slot-btn.is-selected .df-slot-duration {
    color: #dbeafe;
}

.df-slot-time {
    font-weight: 700;
    font-size: 13px;
}

.df-slot-duration {
    font-size: 11px;
    color: #64748b;
}

.df-portal-btn {
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.df-portal-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.df-portal-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.df-portal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.df-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.df-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.df-table-responsive {
    overflow-x: auto;
}

.df-portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.df-portal-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
    color: #475569;
    font-weight: 700;
}

.df-portal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

/* Authentic Maryland DMV Stamped License Plate Component */
.maryland-plate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff url('images/maryland-plate.png') no-repeat center center;
    background-size: 100% 100%;
    width: 126px;
    height: 63px;
    border-radius: 6px;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.18),
        inset 0 0 0 1.5px #cbd5e1,
        inset 0 2px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.22);
    box-sizing: border-box;
    vertical-align: middle;
    user-select: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.maryland-plate:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 0 0 1.5px #94a3b8;
}

.maryland-plate:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Authentic Stamped Navy Typography */
.maryland-plate .plate-number {
    font-family: 'Barlow Semi Condensed', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #0b2545; /* Authentic Maryland DMV deep navy blue enamel */
    text-shadow: 
        1px 1px 0px rgba(255,255,255,0.95), 
        -1px -1px 1px rgba(0,0,0,0.55),
        0 0 1px #000;
    margin-top: 4px; /* Centered between top red Maryland script and bottom state flag */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    z-index: 2;
}

/* Metallic Corner Screw / Bolt Cutouts */
.maryland-plate .plate-bolt {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #e2e8f0 30%, #94a3b8 70%, #475569 100%);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.6), 0 0.5px 0 rgba(255,255,255,0.8);
    z-index: 2;
}
.maryland-plate .plate-bolt.bolt-tl { top: 4px; left: 16px; }
.maryland-plate .plate-bolt.bolt-tr { top: 4px; right: 16px; }
.maryland-plate .plate-bolt.bolt-bl { bottom: 4px; left: 16px; }
.maryland-plate .plate-bolt.bolt-br { bottom: 4px; right: 16px; }

/* Metallic Finish Reflection */
.maryland-plate .plate-shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.04) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Small Variant */
.maryland-plate.plate-sm {
    width: 90px;
    height: 45px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.14);
}

.maryland-plate.plate-sm .plate-number {
    font-size: 14px;
    letter-spacing: 1.6px;
    margin-top: 3px;
}

.maryland-plate.plate-sm .plate-bolt {
    width: 3.5px;
    height: 3.5px;
}
.maryland-plate.plate-sm .plate-bolt.bolt-tl { top: 3px; left: 11px; }
.maryland-plate.plate-sm .plate-bolt.bolt-tr { top: 3px; right: 11px; }
.maryland-plate.plate-sm .plate-bolt.bolt-bl { bottom: 3px; left: 11px; }
.maryland-plate.plate-sm .plate-bolt.bolt-br { bottom: 3px; right: 11px; }

/* Large Variant */
.maryland-plate.plate-lg {
    width: 196px;
    height: 98px;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.24), inset 0 0 0 2px #cbd5e1;
}

.maryland-plate.plate-lg .plate-number {
    font-size: 32px;
    letter-spacing: 4.5px;
    margin-top: 7px;
}

.maryland-plate.plate-lg .plate-bolt {
    width: 8px;
    height: 8px;
}
.maryland-plate.plate-lg .plate-bolt.bolt-tl { top: 7px; left: 24px; }
.maryland-plate.plate-lg .plate-bolt.bolt-tr { top: 7px; right: 24px; }
.maryland-plate.plate-lg .plate-bolt.bolt-bl { bottom: 7px; left: 24px; }
.maryland-plate.plate-lg .plate-bolt.bolt-br { bottom: 7px; right: 24px; }

/* Extra-Large Showcase / Preview Variant */
.maryland-plate.plate-xl {
    width: 290px;
    height: 145px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28), inset 0 0 0 2.5px #cbd5e1;
}

.maryland-plate.plate-xl .plate-number {
    font-size: 46px;
    letter-spacing: 6.5px;
    margin-top: 10px;
}

.maryland-plate.plate-xl .plate-bolt {
    width: 11px;
    height: 11px;
}
.maryland-plate.plate-xl .plate-bolt.bolt-tl { top: 10px; left: 36px; }
.maryland-plate.plate-xl .plate-bolt.bolt-tr { top: 10px; right: 36px; }
.maryland-plate.plate-xl .plate-bolt.bolt-bl { bottom: 10px; left: 36px; }
.maryland-plate.plate-xl .plate-bolt.bolt-br { bottom: 10px; right: 36px; }

/* Maryland Plate Showcase Modal (Frontend & Portal) */
.df-plate-showcase-box {
    position: relative;
    display: inline-block;
    padding: 20px 24px;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.df-plate-sticker-tag {
    position: absolute;
    bottom: 28px;
    right: 36px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #111827;
    font-family: monospace;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.35);
    z-index: 10;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.6);
}

.df-plate-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.df-plate-info-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.df-plate-info-item span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* ══════════════════ CLEAN PORTAL SHELL & THEME PURGE ══════════════════ */
/* Completely strip and hide WordPress theme header, navigation, and footer when DriveFlow portals are active */
body:has(#driveflow-instructor-app),
body:has(#df-instructor-onboarding-app),
body:has(.df-magic-booking-wrap),
body:has(.sam-eval-container),
body:has(.dfv2-tv-wrap),
body:has(.driveflow-standalone-portal-body) {
    background: #0f172a !important;
}

body:has(#driveflow-instructor-app) #masthead,
body:has(#driveflow-instructor-app) .site-header,
body:has(#driveflow-instructor-app) .main-navigation,
body:has(#driveflow-instructor-app) #site-navigation,
body:has(#driveflow-instructor-app) .wp-block-navigation,
body:has(#driveflow-instructor-app) header.wp-block-template-part,
body:has(#driveflow-instructor-app) footer.wp-block-template-part,
body:has(#driveflow-instructor-app) header,
body:has(#driveflow-instructor-app) footer,
body:has(#driveflow-instructor-app) .entry-header,
body:has(#driveflow-instructor-app) .entry-title,
body:has(#driveflow-instructor-app) .wp-block-post-title,
body:has(#df-instructor-onboarding-app) #masthead,
body:has(#df-instructor-onboarding-app) .site-header,
body:has(#df-instructor-onboarding-app) .main-navigation,
body:has(#df-instructor-onboarding-app) #site-navigation,
body:has(#df-instructor-onboarding-app) .wp-block-navigation,
body:has(#df-instructor-onboarding-app) header.wp-block-template-part,
body:has(#df-instructor-onboarding-app) footer.wp-block-template-part,
body:has(#df-instructor-onboarding-app) header,
body:has(#df-instructor-onboarding-app) footer,
body:has(#df-instructor-onboarding-app) .entry-header,
body:has(#df-instructor-onboarding-app) .entry-title,
body:has(#df-instructor-onboarding-app) .wp-block-post-title,
body:has(.df-magic-booking-wrap) #masthead,
body:has(.df-magic-booking-wrap) .site-header,
body:has(.df-magic-booking-wrap) .main-navigation,
body:has(.df-magic-booking-wrap) #site-navigation,
body:has(.df-magic-booking-wrap) .wp-block-navigation,
body:has(.df-magic-booking-wrap) header,
body:has(.df-magic-booking-wrap) footer {
    display: none !important;
}


