/* ==================== ROOT VARIABLES & DESIGN TOKENS ==================== */
:root {
    /* Color Palette */
    --sky-primary: #0ea5e9;       /* Refreshing sky blue */
    --sky-light: #f0f9ff;         /* Super soft white-blue background */
    --sky-accent: #38bdf8;        /* Vivid sky highlight */
    --sky-dark: #0369a1;          /* Royal/trustworthy deep blue */
    --amber-vip: #d97706;         /* Gold/Amber for First Class */
    --amber-light: #fef3c7;       /* Soft gold background */
    --text-dark: #0f172a;         /* Slate 900 */
    --text-muted: #475569;        /* Slate 600 */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 
                    0 1px 3px rgba(255, 255, 255, 0.3) inset;
    
    /* Layout & Styling */
    --font-sans: 'Outfit', 'Noto Sans KR', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* ==================== GLOBAL BASE & LAYOUT ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #bae6fd; /* Soft fallback */
    background-image: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==================== CUSTOM AIRPLANE CURSOR ==================== */
/* Normal state: Sky Blue Airplane Cursor (pointing to the top-left) */
html, body {
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%230ea5e9' transform='rotate(-45 12 12)' d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L14 19v-5.5l8 2.5z'/%3E%3C/svg%3E") 6 6, auto;
}

/* Hover state on all interactive elements: Standard Hand Pointer */
a, button, [role="button"], input[type="submit"], input[type="button"], 
.profile-ticket, .btn-board, .btn-back, .btn-action-primary, .btn-return-standby, #btn-return-standby {
    cursor: pointer !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.6);
}

/* ==================== FLOATING CLOUDS BACKGROUND ==================== */
.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 100px;
    filter: blur(8px);
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.cloud-1 {
    width: 250px;
    height: 80px;
    top: 15%;
    left: -10%;
    animation: drift-cloud 45s linear infinite;
}
.cloud-1::before { width: 120px; height: 120px; top: -60px; left: 30px; }
.cloud-1::after { width: 90px; height: 90px; top: -45px; left: 120px; }

.cloud-2 {
    width: 320px;
    height: 100px;
    top: 55%;
    left: -20%;
    animation: drift-cloud 60s linear infinite 5s;
    opacity: 0.7;
}
.cloud-2::before { width: 150px; height: 150px; top: -80px; left: 40px; }
.cloud-2::after { width: 110px; height: 110px; top: -55px; left: 160px; }

.cloud-3 {
    width: 180px;
    height: 60px;
    top: 80%;
    left: -15%;
    animation: drift-cloud 35s linear infinite 12s;
    opacity: 0.6;
}
.cloud-3::before { width: 90px; height: 90px; top: -45px; left: 20px; }
.cloud-3::after { width: 70px; height: 70px; top: -35px; left: 80px; }

.cloud-4 {
    width: 400px;
    height: 120px;
    top: 5%;
    left: -30%;
    animation: drift-cloud 80s linear infinite 20s;
    opacity: 0.5;
}
.cloud-4::before { width: 180px; height: 180px; top: -100px; left: 60px; }
.cloud-4::after { width: 130px; height: 130px; top: -65px; left: 200px; }

@keyframes drift-cloud {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(120vw); }
}

/* ==================== PAGE CONTROLLER & GENERAL VIEWS ==================== */
#app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.page-view {
    display: none;
    width: 100%;
    max-width: 1280px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== MAIN DASHBOARD ==================== */

/* Header Badges */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.badge-left, .badge-right {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--sky-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.badge-left i, .badge-right i {
    font-size: 0.95rem;
    color: var(--sky-primary);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.year-badge {
    display: inline-block;
    background: var(--sky-dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--sky-dark);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.welcome-text {
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
    margin-bottom: 50px;
}

/* ==================== LEFT: VIP FREQUENT FLYER CARD ==================== */
.profile-ticket {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.profile-ticket:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 
                0 0 20px rgba(14, 165, 233, 0.2);
}

.ticket-header-vip {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.vip-label {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.class-label {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.profile-card-body {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar / Passport Stamp */
.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.avatar-stamp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e0f2fe;
    border: 3px dashed var(--sky-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.avatar-stamp::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px solid var(--sky-accent);
}

.plane-icon {
    font-size: 3.5rem;
    color: var(--sky-dark);
    transition: var(--transition-smooth);
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.profile-ticket:hover .avatar-stamp {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--amber-vip);
}

.profile-ticket:hover .plane-icon {
    color: var(--amber-vip);
    transform: scale(1.1);
}

.profile-ticket:hover .avatar-glow {
    opacity: 1;
}

/* Passenger Info */
.passenger-name {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.passenger-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Stats */
.passenger-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    border-top: 1px dashed rgba(14, 165, 233, 0.2);
    border-bottom: 1px dashed rgba(14, 165, 233, 0.2);
    padding: 20px 0;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sky-dark);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Button CTA */
.btn-action-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--sky-primary) 0%, var(--sky-dark) 100%);
    border: none;
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.profile-ticket:hover .btn-action-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(217, 119, 6 0.3);
}

/* ==================== RIGHT: 4 BOARDING PASS BUTTONS ==================== */
.grid-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boarding-pass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    display: flex;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.boarding-pass:hover {
    transform: translateX(8px) translateY(-3px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06), 0 0 15px rgba(14, 165, 233, 0.15);
}

/* Ticket Stub Left */
.ticket-stub-left {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flight-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--sky-primary);
    letter-spacing: 1.5px;
}

.airport-codes {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0;
}

.airport {
    display: flex;
    flex-direction: column;
}

.airport .code {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.airport .city {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.plane-fly {
    font-size: 1.3rem;
    color: var(--sky-accent);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.boarding-pass:hover .plane-fly {
    transform: translateX(10px) scale(1.1);
    color: var(--sky-dark);
}

/* Ticket Details */
.ticket-details {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 12px;
}

.detail-col {
    display: flex;
    flex-direction: column;
}

.detail-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-val {
    font-size: 0.9rem;
    font-weight: 700;
}

.text-gold { color: var(--amber-vip); }
.text-blue { color: var(--sky-dark); }
.text-red { color: #e11d48; }
.text-purple { color: #a855f7; }

/* Perforated Divider */
.perforated-line {
    width: 2px;
    border-left: 2px dashed rgba(15, 23, 42, 0.12);
    position: relative;
    margin: 15px 0;
}

/* Semi-circular cuts on top/bottom */
.perforated-line::before, .perforated-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #a9e0f9; /* Color similar to backdrop for mask effect */
    border-radius: 50%;
    left: -11px;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
}

.perforated-line::before {
    top: -26px;
}

.perforated-line::after {
    bottom: -26px;
}

/* Ticket Stub Right */
.ticket-stub-right {
    width: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(14, 165, 233, 0.03);
}

/* Barcode CSS */
.barcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 12px; /* Add elegant spacing between app name and first button */
}

.barcode {
    width: 100%;
    height: 38px; /* Slightly shorter for a sleeker, more balanced airline stub layout */
    background: repeating-linear-gradient(
        90deg,
        var(--text-dark),
        var(--text-dark) 2px,
        transparent 2px,
        transparent 5px,
        var(--text-dark) 5px,
        var(--text-dark) 8px,
        transparent 8px,
        transparent 9px
    );
    opacity: 0.8;
}

.barcode-text {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 6px;
    color: var(--text-muted);
}

.btn-board {
    width: 100%;
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-quick);
}

.btn-concept {
    background: transparent;
    border: 2px solid var(--sky-primary);
    color: var(--sky-primary);
}

.btn-concept:hover {
    background: var(--sky-primary);
    color: white;
}

.btn-website {
    background: var(--sky-primary);
    border: 2px solid var(--sky-primary);
    color: white;
}

.btn-website:hover {
    background: var(--sky-dark);
    border-color: var(--sky-dark);
    color: white;
}

.ticket-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ==================== DASHBOARD FOOTER ==================== */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.copyright-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--sky-dark);
}

.compass-rotate {
    font-size: 1rem;
    color: var(--sky-primary);
    animation: rotate-compass 10s linear infinite;
}

@keyframes rotate-compass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==================== SUBPAGES TEMPLATE ==================== */
.subpage-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    width: 100%;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.subpage-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
}

.subpage-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--sky-dark);
    letter-spacing: -0.5px;
}

.btn-back {
    background: transparent;
    border: 2px solid var(--sky-accent);
    color: var(--sky-dark);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--sky-accent);
    color: white;
    transform: translateX(-4px);
}

.subpage-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==================== SUBPAGE: PROFILE STYLES ==================== */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-summary {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- Crew Passport ID Card (Left Side) --- */
.passenger-passport-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.passport-photo-slot {
    width: 130px;
    height: 160px;
    background: #f8fafc;
    border: 3px double #cbd5e1;
    border-radius: var(--radius-sm);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 6px 12px rgba(15, 23, 42, 0.04);
}

.captain-avatar {
    font-size: 5rem;
    color: #94a3b8;
}

.stamp-overlay {
    position: absolute;
    bottom: 20px;
    right: -10px;
    border: 3px solid #f97316;
    color: #f97316;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    transform: rotate(-15deg);
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
    animation: stamp-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stamp-pop {
    0% { transform: scale(1.6) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(-15deg); opacity: 1; }
}

.passport-name-kr {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.passport-name-en {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sky-dark);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.passport-title {
    display: inline-block;
    background: #e0f2fe;
    color: var(--sky-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.passport-personal-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.passport-personal-info .info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.passport-personal-info .info-row .lbl {
    font-weight: 700;
    color: var(--text-muted);
}

.passport-personal-info .info-row .val {
    font-weight: 800;
    color: var(--text-dark);
}

.passport-contact-info {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #bae6fd;
    padding-top: 16px;
    margin-bottom: 20px;
}

.passport-contact-info li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.passport-contact-info li i {
    color: var(--sky-primary);
    width: 16px;
    font-size: 0.9rem;
}

.passport-stamps-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
}

.stamp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 2px dashed rgba(14, 165, 233, 0.4);
    border-radius: 8px;
    width: 76px;
    background: rgba(240, 249, 255, 0.5);
    transition: var(--transition-quick);
}

.stamp-item:hover {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--sky-primary);
    background: #e0f2fe;
}

.stamp-item i {
    font-size: 1.1rem;
    color: var(--sky-primary);
}

.stamp-item span {
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--sky-dark);
    letter-spacing: 0.5px;
}

/* --- 🕸️ CORE ABILITY RADAR 방사형 그래프 --- */
.ability-radar-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.ability-radar-card h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--sky-dark);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}

.radar-chart-wrapper {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.radar-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.radar-svg .grid-poly {
    fill: none;
    stroke: rgba(14, 165, 233, 0.12);
    stroke-width: 0.5px;
}

.radar-svg .axis-line {
    stroke: rgba(14, 165, 233, 0.15);
    stroke-width: 0.5px;
    stroke-dasharray: 2, 2;
}

.radar-svg .data-poly {
    fill: rgba(14, 165, 233, 0.18);
    stroke: var(--sky-primary);
    stroke-width: 2px;
    stroke-linejoin: round;
    animation: radar-glow 2.5s infinite alternate ease-in-out;
}

@keyframes radar-glow {
    0% { fill: rgba(14, 165, 233, 0.18); stroke-width: 2px; }
    50% { fill: rgba(14, 165, 233, 0.28); stroke-width: 2.5px; filter: drop-shadow(0 0 3px rgba(14, 165, 233, 0.4)); }
    100% { fill: rgba(14, 165, 233, 0.18); stroke-width: 2px; }
}

.radar-svg .data-node {
    fill: white;
    stroke: var(--sky-primary);
    stroke-width: 1.5px;
    transition: all 0.3s ease;
}

.radar-svg .data-node:hover {
    fill: var(--sky-accent);
    r: 3;
}

.radar-svg .label-text {
    font-size: 5px;
    font-weight: 800;
    color: var(--text-dark);
    fill: var(--text-dark);
    font-family: var(--font-sans);
    text-anchor: middle;
}

/* --- Right Side Innovation Resume Dashboard --- */
.info-section {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sky-dark);
    border-left: 4px solid var(--sky-primary);
    padding-left: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 🎛️ CORE COMPETENCY GAUGE - 3색 도넛형 서클 다이얼 --- */
.circle-gauges-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 15px;
}

.gauge-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
    transition: all 0.3s ease;
}

.gauge-item:hover {
    transform: translateY(-4px);
    border-color: var(--sky-primary);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.06);
    background: white;
}

.chart-box {
    width: 100%;
    max-width: 110px;
    margin: 0 auto 16px;
}

.circular-chart {
    display: block;
    width: 100%;
    height: auto;
}

.circular-chart .circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.8px;
}

.circular-chart .circle {
    fill: none;
    stroke-width: 2.8px;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.circular-chart .circle-conversational {
    stroke: var(--sky-primary);
}

.circular-chart .circle-agentic {
    stroke: #0ea5e9;
}

.circular-chart .circle-integration {
    stroke: var(--sky-dark);
}

.circular-chart .percentage {
    fill: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 800;
    text-anchor: middle;
}

.gauge-label h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.gauge-label p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

/* --- ⚙️ Workflow: OCR Automation Pipeline Flowchart --- */
.ocr-pipeline-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pipeline-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 10px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.pipeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--sky-primary);
    background: white;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.08);
}

.step-num {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sky-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    color: var(--sky-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 14px;
    font-size: 1.4rem;
    transition: var(--transition-quick);
}

.pipeline-step:hover .step-icon-wrap {
    background: var(--sky-primary);
    color: white;
    transform: scale(1.1);
}

.scanner-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    animation: scanner-pulse 2s infinite;
}

@keyframes scanner-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 25px rgba(14, 165, 233, 0.5); }
}

.pipeline-step h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-tag-mini {
    display: inline-block;
    font-size: 0.62rem;
    color: var(--sky-dark);
    background: rgba(14, 165, 233, 0.08);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.pipeline-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--sky-accent);
    font-size: 1.2rem;
    animation: arrow-bounce 1.5s infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.pipeline-stats-badge {
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.stat-badge-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-badge-item:first-child {
    border-right: 1px solid rgba(14, 165, 233, 0.15);
}

.stat-badge-item .num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--sky-dark);
    line-height: 1;
}

.stat-badge-item .desc {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- ✈️ Dotted Flight Path: Projects Dotted Timeline --- */
.flight-path-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    margin-top: 15px;
    overflow: hidden;
}

.flight-path-line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50px;
    height: 2px;
    border-top: 2.5px dotted var(--sky-accent);
    z-index: 1;
}

.flight-path-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    transition: all 0.3s ease;
}

.node-icon-wrap {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--sky-accent);
    color: var(--sky-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flight-path-node:hover .node-icon-wrap {
    transform: rotate(45deg) scale(1.18);
    background: var(--sky-primary);
    color: white;
    border-color: var(--sky-primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.node-bubble {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.node-flight-no {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--sky-primary);
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.node-bubble h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.node-badge-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* --- Credentials --- */
.credentials-badge-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.credential-badge-item {
    background: #fdfefe;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.02);
    transition: var(--transition-quick);
}

.credential-badge-item:hover {
    transform: scale(1.02);
    border-color: var(--sky-primary);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.06);
}

.icon-badge {
    font-size: 2.2rem;
    color: var(--sky-primary);
    background: #f0f9ff;
    padding: 12px;
    border-radius: 50%;
    border: 1.5px dashed var(--sky-accent);
}

.badge-texts h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.badge-texts p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ==================== SUBPAGE: PORTFOLIO SHOWCASE ==================== */
.showcase-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: center;
}

.showcase-visual {
    width: 100%;
}

.visual-card {
    height: 380px;
    background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.museum-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.vr-card {
    background: linear-gradient(135deg, #fecdd3 0%, #ffe4e6 100%);
}

.project-huge-icon {
    font-size: 6.5rem;
    color: var(--sky-dark);
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.08));
}

.museum-card .project-huge-icon {
    color: var(--amber-vip);
}

.vr-card .project-huge-icon {
    color: #be123c;
}

.visual-tag {
    position: absolute;
    bottom: 24px;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.showcase-desc h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.project-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.project-features {
    margin-bottom: 30px;
}

.project-features h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sky-dark);
    margin-bottom: 12px;
}

.project-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-features ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.project-features ul li i {
    color: var(--sky-primary);
    margin-top: 3px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}


/* ==================== SUBPAGE: INTERACTIVE LOTTERY ==================== */
.lotto-showcase {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.lotto-intro {
    text-align: center;
    margin-bottom: 35px;
}

.lotto-intro h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--sky-dark);
    margin-bottom: 10px;
}

.lotto-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Machine Globe */
.lotto-generator-box {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.lotto-machine {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 50%;
    border: 5px solid #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.lotto-glass-sphere {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.6), inset 0 -8px 16px rgba(15, 23, 42, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.Clover-pulse {
    font-size: 3rem;
    color: #22c55e;
    animation: clover-glow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes clover-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Sphere rolling animation */
.lotto-machine.shaking {
    animation: machine-shake 0.15s ease infinite;
}

@keyframes machine-shake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(-2px, 2px) rotate(-1deg); }
    50% { transform: translate(2px, -2px) rotate(1deg); }
    75% { transform: translate(-2px, -2px) rotate(-0.5deg); }
}

/* Balls Container */
.lotto-drawn-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 70px;
    align-items: center;
    width: 100%;
}

/* Lotto Ball Core Style */
.lotto-ball {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    position: relative;
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transform: scale(0);
    animation: pop-ball 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-ball {
    100% { transform: scale(1); }
}

/* Korea Lotto 6/45 Color Rules */
/* 1~10: Yellow */
.ball-yellow { background: radial-gradient(circle at 30% 30%, #fbbf24 0%, #d97706 100%); }
/* 11~20: Blue */
.ball-blue { background: radial-gradient(circle at 30% 30%, #60a5fa 0%, #2563eb 100%); }
/* 21~30: Red */
.ball-red { background: radial-gradient(circle at 30% 30%, #f87171 0%, #dc2626 100%); }
/* 31~40: Grey */
.ball-grey { background: radial-gradient(circle at 30% 30%, #94a3b8 0%, #475569 100%); }
/* 41~45: Green */
.ball-green { background: radial-gradient(circle at 30% 30%, #4ade80 0%, #16a34a 100%); }

/* Bonus Ball style */
.bonus-badge {
    position: absolute;
    top: -8px;
    font-size: 0.55rem;
    background: #ea580c;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 800;
}

/* Empty slots */
.empty-ball-slot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(248, 250, 252, 0.8);
}

.bonus-slot {
    border-color: #fca5a5;
    color: #f87171;
    position: relative;
}
.bonus-slot::after {
    content: 'BONUS';
    position: absolute;
    top: -16px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #ef4444;
}

/* Generator buttons */
.lotto-controls {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-draw {
    flex: 2;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-quick);
}

.btn-draw:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.btn-draw:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    flex: 1;
    background: white;
    border: 2px solid #cbd5e1;
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-quick);
}

.btn-reset:hover {
    background: #f1f5f9;
    color: var(--text-dark);
    border-color: #94a3b8;
}

/* History list */
.lotto-history {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.lotto-history h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

#lotto-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-history {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.85rem;
}
.history-item:last-child {
    border: none;
    padding-bottom: 0;
}

.history-balls {
    display: flex;
    gap: 6px;
}

.history-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
}


/* ==================== AIRPLANE TRANSITION OVERLAY ==================== */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sky-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    z-index: -2;
}

/* Decorative clouds within transition overlay */
.trans-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.45); /* Soft, beautiful cloud texture */
    border-radius: 100px;
    filter: blur(6px); /* Softer blur for depth */
    z-index: -1;
    opacity: 1; /* Always visible relative to parent overlay opacity */
}
.trans-cloud::before, .trans-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.trans-cloud-1 {
    width: 220px;
    height: 65px;
    top: 22%;
    left: 12%;
}
.trans-cloud-1::before { width: 110px; height: 110px; top: -55px; left: 35px; }
.trans-cloud-1::after { width: 90px; height: 90px; top: -45px; left: 110px; }

.trans-cloud-2 {
    width: 260px;
    height: 85px;
    top: 62%;
    right: 15%;
}
.trans-cloud-2::before { width: 130px; height: 130px; top: -65px; left: 45px; }
.trans-cloud-2::after { width: 100px; height: 100px; top: -50px; left: 140px; }

/* Plane & Vapor Trail Container */
.airplane-container {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* L -> R Direction styles (Main -> Profile) */
#transition-overlay.direction-right .airplane-container {
    left: -200px;
    transform: translateY(-50%);
}

#transition-overlay.direction-right .trans-airplane {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.25));
    transform: rotate(90deg); /* Points Right */
}

#transition-overlay.direction-right .vapor-trail {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
    width: 400px;
    right: 140px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: right center;
    border-radius: 20px;
}

/* R -> L Direction styles (Profile -> Main) */
#transition-overlay.direction-left .airplane-container {
    right: -200px;
    left: auto;
    transform: translateY(-50%);
}

#transition-overlay.direction-left .trans-airplane {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 -10px 20px rgba(15, 23, 42, 0.25));
    transform: rotate(-90deg); /* Points Left */
}

#transition-overlay.direction-left .vapor-trail {
    position: absolute;
    height: 4px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
    width: 400px;
    left: 140px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    border-radius: 20px;
}

/* Transition text */
.transition-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 4px;
    text-shadow: 0 4px 15px rgba(3, 105, 161, 0.4);
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
}

/* ==================== TRANSITION ANIMATION PLAYERS ==================== */
#transition-overlay.direction-right.active .airplane-container {
    animation: flight-sweep-right 1.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

#transition-overlay.direction-left.active .airplane-container {
    animation: flight-sweep-left 1.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}



#transition-overlay.active .transition-title {
    animation: title-reveal-fade 1.6s ease forwards;
}

@keyframes flight-sweep-right {
    0% {
        left: -200px;
        transform: translateY(-50%) scale(0.7);
    }
    45% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        left: calc(100% + 200px);
        transform: translateY(-50%) scale(0.8);
    }
}

@keyframes flight-sweep-left {
    0% {
        right: -200px;
        transform: translateY(-50%) scale(0.7);
    }
    45% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        right: calc(100% + 200px);
        transform: translateY(-50%) scale(0.8);
    }
}



@keyframes title-reveal-fade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .profile-ticket {
        max-width: 480px;
        margin: 0 auto;
    }
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .showcase-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    .visual-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    .subpage-header h2 {
        font-size: 1.6rem;
    }
    .subpage-content {
        padding: 20px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .profile-summary {
        position: relative;
        top: 0;
    }
    .boarding-pass {
        flex-direction: column;
    }
    .perforated-line {
        width: 100%;
        height: 2px;
        border-left: none;
        border-top: 2px dashed rgba(15, 23, 42, 0.12);
        margin: 0;
    }
    .perforated-line::before, .perforated-line::after {
        top: -11px;
    }
    .perforated-line::before { left: -26px; }
    .perforated-line::after { right: -26px; left: auto; }
    
    .ticket-stub-right {
        width: 100%;
        flex-direction: row;
        padding: 20px 30px;
    }
    .barcode-container {
        width: 60%;
    }
    .btn-board {
        width: auto;
        padding: 10px 24px;
    }
}


/* ==================== INTRO / STANDBY SCREEN ==================== */
#page-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
    background: linear-gradient(180deg, #bae6fd 0%, #38bdf8 100%);
    display: none; /* Hidden by default to decouple from page-view padding/max-width */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#page-intro.active {
    display: flex; /* Flex only when active, bypassing grid constraints completely */
}

#intro-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Radar scanner scan effect */
.hud-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    background-size: 100% 4px;
    opacity: 0.35;
}

.intro-glass-panel {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    padding: 50px 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: intro-panel-entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes intro-panel-entrance {
    0% { transform: translateY(40px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Radar Theme */
.radar-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.radar-circle::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.4) 0deg, transparent 90deg, transparent 360deg);
    animation: radar-rotation 4s linear infinite;
}

@keyframes radar-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radar-plane-icon {
    font-size: 2.2rem;
    color: white;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Titles */
.intro-titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-tag {
    font-size: 2.0rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.intro-main-title {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(3, 105, 161, 0.2);
}

.intro-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #bae6fd;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.control-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: indicator-pulse 2s infinite;
}

@keyframes indicator-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.status-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #bae6fd;
    letter-spacing: 1px;
}

/* Go Around Button */
.btn-go-around {
    background: white;
    border: none;
    color: var(--sky-dark);
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(3, 105, 161, 0.25), 0 0 0 0px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-go-around i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    color: var(--sky-primary);
    transition: transform 0.4s ease;
}

.btn-go-around span {
    letter-spacing: 2px;
}

.btn-go-around .btn-subtext {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    margin-top: 1px;
}

.btn-go-around:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(3, 105, 161, 0.35), 0 0 0 10px rgba(255, 255, 255, 0.25);
    color: var(--sky-primary);
}

.btn-go-around:hover i {
    transform: translateY(-3px) scale(1.1) rotate(-5deg);
}

.btn-go-around:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 105, 161, 0.25);
}

.intro-instructions {
    position: absolute;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    pointer-events: none;
}

.text-bounce {
    animation: text-bounce-anim 2s infinite;
}

@keyframes text-bounce-anim {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==================== TAKEOFF TRANSITION WIPE ==================== */
#takeoff-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

#takeoff-transition.active {
    display: block;
}

.takeoff-airplane-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100vh) scale(0.5);
    width: 250px;
    height: 250px;
    z-index: 100;
}

.takeoff-airplane {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 25px 30px rgba(15, 23, 42, 0.4));
}

.takeoff-engine-trail {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 242, 254, 0.7) 30%, transparent 100%);
    filter: blur(8px);
    border-radius: 50px;
}

.takeoff-cloud-wipe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(224, 242, 254, 0.95) 60%, transparent 100%);
    opacity: 0;
    z-index: 50;
    transform: scale(0.1);
}

/* Takeoff Animations triggers */
#takeoff-transition.active .takeoff-airplane-wrapper {
    animation: takeoff-fly-up 1.6s cubic-bezier(0.66, -0.01, 0.38, 0.99) forwards;
}

#takeoff-transition.active .takeoff-cloud-wipe {
    animation: takeoff-cloud-expand 1.6s cubic-bezier(0.5, 0, 0.25, 1) forwards;
}

@keyframes takeoff-fly-up {
    0% {
        transform: translate(-50%, 10vh) scale(0.5);
    }
    35% {
        transform: translate(-50%, -20vh) scale(0.9);
    }
    100% {
        transform: translate(-50%, -150vh) scale(2.8);
    }
}

@keyframes takeoff-cloud-expand {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    40% {
        opacity: 1;
        transform: scale(1.5);
    }
    75% {
        opacity: 1;
        transform: scale(2.2);
    }
    100% {
        opacity: 0;
        transform: scale(3.5);
    }
}

/* Adjust button group stack in mobile view media query */
@media (max-width: 768px) {
    .ticket-btn-group {
        flex: 1;
        width: 100%;
    }
}


/* ==================== RETURN TO STANDBY HEADER BUTTON ==================== */
.btn-return-standby {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--sky-primary);
    font-size: 1.15rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    z-index: 10;
    outline: none;
    padding: 0;
}

.btn-return-standby i {
    transform: rotate(180deg); /* Point downwards (arrival style) */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-return-standby:hover {
    transform: translateY(2px) scale(1.05); /* Dip down slightly */
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--sky-dark);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.15);
}

.btn-return-standby:hover i {
    transform: rotate(180deg) translateY(2px);
}

.btn-return-standby:active {
    transform: translateY(1px) scale(0.98);
}


/* ==================== LANDING TRANSITION WIPE ==================== */
#landing-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

#landing-transition.active {
    display: block;
}

.landing-airplane-wrapper {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -100vh) scale(0.5);
    width: 250px;
    height: 250px;
    z-index: 100;
}

.landing-airplane {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 -25px 30px rgba(15, 23, 42, 0.4));
}

.landing-engine-trail {
    position: absolute;
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 300px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 242, 254, 0.7) 30%, transparent 100%);
    filter: blur(8px);
    border-radius: 50px;
}

.landing-cloud-wipe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(224, 242, 254, 0.95) 60%, transparent 100%);
    opacity: 0;
    z-index: 50;
    transform: scale(0.1);
}

/* Landing Animations triggers */
#landing-transition.active .landing-airplane-wrapper {
    animation: landing-fly-down 1.6s cubic-bezier(0.66, -0.01, 0.38, 0.99) forwards;
}

#landing-transition.active .landing-cloud-wipe {
    animation: landing-cloud-expand 1.6s cubic-bezier(0.5, 0, 0.25, 1) forwards;
}

@keyframes landing-fly-down {
    0% {
        transform: translate(-50%, -10vh) scale(0.5);
    }
    35% {
        transform: translate(-50%, 20vh) scale(0.9);
    }
    100% {
        transform: translate(-50%, 150vh) scale(2.8);
    }
}

@keyframes landing-cloud-expand {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    40% {
        opacity: 1;
        transform: scale(1.5);
    }
    75% {
        opacity: 1;
        transform: scale(2.2);
    }
    100% {
        opacity: 0;
        transform: scale(3.5);
    }
}


/* ==================== FLOATING LIVE SMARTPHONE PREVIEW ==================== */
.phone-preview-overlay {
    position: fixed;
    right: -360px; /* Hidden offscreen by default */
    top: 50%;
    transform: translate3d(0, -50%, 0) scale(0.9); /* Force GPU compositing */
    width: 280px;
    height: 600px;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                right 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    will-change: transform, opacity; /* Instruct GPU to prepare layer */
}

.phone-preview-overlay.active {
    right: 5%; /* Slide in smoothly! */
    transform: translate3d(0, -50%, 0) scale(1);
    pointer-events: auto;
    opacity: 1;
}

.phone-device {
    position: relative;
    width: 260px;
    height: 520px;
    background: #0f172a;
    border: 10px solid #1e293b;
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35), 
                0 0 0 1px rgba(255, 255, 255, 0.05), 
                0 0 30px rgba(14, 165, 233, 0.2);
    overflow: hidden;
}

/* Smartphone Notch / Dynamic Island */
.phone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: black;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #0f172a;
}

.phone-screen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                padding-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, padding-top;
    box-sizing: border-box;
    padding-top: 0;
}

.phone-screen-container img.loaded {
    opacity: 1;
}

/* Specific: Sungkok desktop screenshot stretched to fill the vertical phone screen */
.phone-screen-container img.preview-sungkok {
    object-fit: fill; /* Force stretch horizontally and vertically to fill screen */
    object-position: center;
}

/* Specific: Lotto pushed down by 40px to clear the dynamic island notch */
.phone-screen-container img.preview-lotto {
    padding-top: 40px; /* Shift screenshot down to clear the camera cutout */
    object-fit: cover;
    object-position: top center;
    background: #0f172a; /* Match lotto dark theme */
}

/* Smartphone reflection glass effect */
.phone-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 5;
}

.phone-label {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 260px;
    transform: translate3d(0, 10px, 0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    will-change: transform, opacity;
}

.phone-preview-overlay.active .phone-label {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Hide floating preview on smaller screens to prevent overlap */
@media (max-width: 1200px) {
    .phone-preview-overlay {
        display: none !important;
    }
}


/* ==================== PROFILE MOBILE RESPONSIVENESS ==================== */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .circle-gauges-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ocr-pipeline-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
        animation: arrow-bounce-vert 1.5s infinite;
    }
    
    .flight-path-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 24px;
    }
    
    .flight-path-line {
        left: 44px;
        top: 24px;
        bottom: 24px;
        width: 2px;
        height: auto;
        border-left: 2.5px dotted var(--sky-accent);
        border-top: none;
    }
    
    .flight-path-node {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 16px;
    }
    
    .node-icon-wrap {
        flex-shrink: 0;
    }
    
    .node-bubble {
        margin-top: 0;
        text-align: left;
        align-items: flex-start;
        gap: 3px;
    }
    
    .credentials-badge-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@keyframes arrow-bounce-vert {
    0%, 100% { transform: rotate(90deg) translate(0); }
    50% { transform: rotate(90deg) translate(4px); }
}

/* ==================== UNDER CONSTRUCTION MODAL OVERLAY ==================== */
.dev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dev-modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dev-modal-overlay.active .dev-modal-content {
    transform: scale(1) translateY(0);
}

/* Hazard Warning Tape */
.modal-hazard-tape {
    height: 10px;
    background: linear-gradient(
        45deg,
        #facc15 25%,
        #0f172a 25%,
        #0f172a 50%,
        #facc15 50%,
        #facc15 75%,
        #0f172a 75%,
        #0f172a
    );
    background-size: 20px 20px;
    width: 100%;
}

.modal-body {
    padding: 35px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modal-alert-icon {
    font-size: 3rem;
    color: #facc15;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
    margin-bottom: 5px;
}

.spin-safety {
    animation: alert-shake 2s ease-in-out infinite;
}

.modal-body h2 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #facc15;
    letter-spacing: 1px;
}

.modal-body h3 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    margin-top: -5px;
}

.modal-body p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 5px 0;
}

.modal-footer-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    margin-top: 5px;
}

.warning-flasher {
    font-size: 0.72rem;
    font-family: monospace;
    font-weight: bold;
    color: #ef4444;
    letter-spacing: 0.5px;
    animation: flash-red 0.8s ease-in-out infinite alternate;
}

.btn-close-modal {
    width: 100%;
    margin-top: 15px;
    background: #0284c7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
    cursor: pointer !important;
}

.btn-close-modal:hover {
    background: #0ea5e9;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.btn-close-modal:active {
    transform: translateY(1px);
}

@keyframes alert-shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(6deg); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(0deg); }
}

@keyframes flash-red {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

