/* ==========================================================================
   seeyoung.net/mobile — Smartphone & Tablet App Shell + Responsive UI
   - Native Smartphone & Tablet: Fullscreen 100dvh app (zero bezel)
   - PC Browser Preview: Smartphone / Tablet Hardware Bezel Frame (Ref: Image 2)
   ========================================================================== */

:root {
    --app-primary: #2563EB;
    --app-primary-dark: #1D4ED8;
    --app-primary-light: #EFF6FF;
    --app-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --app-green: #0b9347;
    --app-green-dark: #087538;
    --app-green-light: #EAF7EE;
    --app-surface: #FFFFFF;
    --app-bg: #F8FAFC;
    --app-border: #E2E8F0;
    --app-text-main: #0F172A;
    --app-text-sub: #475569;
    --app-text-muted: #64748B;
    --app-shadow-card: 0 8px 25px -6px rgba(15, 23, 42, 0.07);
    --header-height: 60px;
    --max-width: 960px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
    font-family: 'Lexend', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--app-text-main);
    background-color: var(--app-bg);
    line-height: 1.55;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. PC PREVIEW HARDWARE BEZEL vs NATIVE SMARTPHONE/TABLET FULLSCREEN
   -------------------------------------------------------------------------- */
html.is-pc-preview,
html.is-pc-preview body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0B1120;
}

html.is-pc-preview .mobile-device-stage {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px;
    box-sizing: border-box;
    background: radial-gradient(circle at center, #1E293B 0%, #0B1120 100%);
}

/* PC Preview Device Mode Switcher (Smartphone / Tablet) */
.pc-device-switcher {
    display: none;
}

html.is-pc-preview .pc-device-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    z-index: 20;
}

.pc-device-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #94A3B8;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.pc-device-btn:hover {
    color: #F8FAFC;
}

.pc-device-btn.active {
    background: var(--app-primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
}

/* Hide switcher when PC browser window itself is already narrow like a phone popup */
@media screen and (max-width: 560px), screen and (max-height: 680px) {
    html.is-pc-preview .pc-device-switcher {
        display: none !important;
    }
    html.is-pc-preview .mobile-device-stage {
        padding: 14px 10px;
        gap: 0;
    }
}

/* PC Preview Hardware Bezel (Default: Smartphone 398x848) */
html.is-pc-preview .mobile-device-bezel {
    width: 100%;
    max-width: 398px;
    height: 848px;
    max-height: calc(100dvh - 76px);
    border-radius: 48px;
    box-shadow:
        0 30px 70px -15px rgba(0, 0, 0, 0.78),
        0 0 0 10px #1E293B,
        0 0 0 12px #334155,
        0 0 0 14px #0F172A;
    position: relative;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1), height 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.28s ease;
}

@media screen and (max-width: 560px), screen and (max-height: 680px) {
    html.is-pc-preview .mobile-device-bezel {
        max-height: calc(100dvh - 28px);
    }
}

/* PC Preview Tablet Modes — Exact Horizontal Landscape Aspect Ratios
   1) 태블릿 16:10 (Galaxy Tab / Android Wide: 1280 x 800, ratio 1.6 : 1)
   2) 태블릿 4:3  (iPad Standard Landscape:   1080 x 810, ratio 1.3333 : 1) */
html.is-pc-preview.preview-tablet-16-10,
html.is-pc-preview.preview-tablet-16-10-pc {
    --max-width: 1180px;
}

html.is-pc-preview.preview-tablet-4-3 {
    --max-width: 1020px;
}

html.is-pc-preview.preview-tablet-16-10 .mobile-device-bezel,
html.is-pc-preview.preview-tablet-16-10-pc .mobile-device-bezel {
    --bezel-h: min(800px, calc(100dvh - 84px), calc((100vw - 52px) * 0.625));
    width: calc(var(--bezel-h) * 1.6);
    max-width: none;
    height: var(--bezel-h);
    max-height: none;
    border-radius: 30px;
}

html.is-pc-preview.preview-tablet-4-3 .mobile-device-bezel {
    --bezel-h: min(810px, calc(100dvh - 84px), calc((100vw - 52px) * 0.75));
    width: calc(var(--bezel-h) * 1.3333);
    max-width: none;
    height: var(--bezel-h);
    max-height: none;
    border-radius: 32px;
}

/* Physical Buttons on PC Bezel (Vertical on Phone, Top-Edge on Horizontal Tablet) */
html.is-pc-preview .mobile-device-bezel::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 132px;
    width: 4px;
    height: 76px;
    background: #475569;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 96px 0 #475569;
    z-index: 5;
    pointer-events: none;
}

html.is-pc-preview .mobile-device-bezel::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 162px;
    width: 4px;
    height: 68px;
    background: #475569;
    border-radius: 0 3px 3px 0;
    z-index: 5;
    pointer-events: none;
}

html.is-pc-preview.preview-tablet .mobile-device-bezel::before {
    left: 78px;
    top: -16px;
    width: 48px;
    height: 4px;
    border-radius: 3px 3px 0 0;
    box-shadow: none;
}

html.is-pc-preview.preview-tablet .mobile-device-bezel::after {
    right: auto;
    left: 140px;
    top: -16px;
    width: 72px;
    height: 4px;
    border-radius: 3px 3px 0 0;
}

html.is-pc-preview .mobile-device-screen {
    width: 100%;
    height: 100%;
    border-radius: 46px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
    position: relative;
    /* Confines position:fixed children inside bezel screen */
    transform: translateZ(0);
}

html.is-pc-preview.preview-tablet-16-10 .mobile-device-screen,
html.is-pc-preview.preview-tablet-16-10-pc .mobile-device-screen {
    border-radius: 28px;
}

html.is-pc-preview.preview-tablet-4-3 .mobile-device-screen {
    border-radius: 30px;
}

/* Dynamic Island & Status Bar (PC Preview Only) */
.device-dynamic-island,
.device-status-bar,
.device-home-indicator {
    display: none;
}

html.is-pc-preview .device-dynamic-island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #000000;
    border-radius: 20px;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

html.is-pc-preview.preview-tablet .device-dynamic-island {
    width: 10px;
    height: 10px;
    top: 10px;
    padding: 0;
    justify-content: center;
}

html.is-pc-preview.preview-tablet .island-sensor {
    display: none;
}

.island-lens {
    width: 9px;
    height: 9px;
    background: #0F172A;
    border-radius: 50%;
    border: 1.5px solid #1E293B;
}

.island-sensor {
    width: 7px;
    height: 7px;
    background: #090D16;
    border-radius: 50%;
}

html.is-pc-preview .device-status-bar {
    height: 44px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    background: #FFFFFF;
    flex-shrink: 0;
    z-index: 1200;
}

html.is-pc-preview.preview-tablet .device-status-bar {
    height: 30px;
    padding: 0 22px;
    font-size: 12px;
}

.status-time {
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0F172A;
}

.status-net-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.battery-icon {
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 11px;
    border: 1.5px solid #0F172A;
    border-radius: 3px;
    padding: 1px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3.5px;
    top: 2.5px;
    width: 2px;
    height: 4px;
    background: #0F172A;
    border-radius: 0 1px 1px 0;
}

.battery-fill {
    width: 100%;
    height: 100%;
    background: #0F172A;
    border-radius: 1px;
}

html.is-pc-preview .device-home-indicator {
    display: block;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 132px;
    height: 4.5px;
    background: #0F172A;
    border-radius: 10px;
    opacity: 0.24;
    z-index: 25000;
    pointer-events: none;
}

html.is-pc-preview .mobile-app-scroll-shell {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--app-bg);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.is-pc-preview .mobile-app-scroll-shell::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 태블릿 16:10 (2) — PC 원본 화면(seeyoung.net / MY PAGE) 미러링 뷰포트 */
.pc-tablet-mirror-wrap {
    display: none;
}

html.is-pc-preview.preview-tablet-16-10-pc .mobile-app-scroll-shell,
html.is-pc-preview.preview-tablet-16-10-pc #login-overlay {
    display: none !important;
}

html.is-pc-preview.preview-tablet-16-10-pc .pc-tablet-mirror-wrap {
    display: block;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

.pc-tablet-scale-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    overflow: hidden;
}

.pc-tablet-iframe {
    width: 100%;
    height: 100%;
    flex: 1 1 0%;
    min-height: 0;
    border: none;
    display: block;
    background: #FFFFFF;
}

.pc-tablet-popup-layer {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: #FFFFFF;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.pc-tablet-popup-layer.open {
    display: flex;
}

.pc-tablet-popup-bar {
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    background: #0F172A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pc-tablet-popup-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-tablet-popup-close {
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.pc-tablet-popup-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Native Smartphone & Tablet Fullscreen Mode (Zero Hardware Bezel) */
html.is-native-device,
html.is-native-device body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--app-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

html.is-native-device .mobile-device-stage,
html.is-native-device .mobile-device-bezel,
html.is-native-device .mobile-device-screen,
html.is-native-device .mobile-app-scroll-shell {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--app-bg) !important;
    transform: none !important;
    overflow: visible !important;
    display: block;
}

html.is-native-device .pc-device-switcher,
html.is-native-device .device-dynamic-island,
html.is-native-device .device-status-bar,
html.is-native-device .device-home-indicator,
html.is-native-device .mobile-device-bezel::before,
html.is-native-device .mobile-device-bezel::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. APP HEADER (Logged-Out & Shared Sticky Bar)
   -------------------------------------------------------------------------- */
.container,
.app-section-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
}

header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(58px + var(--safe-top));
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    z-index: 1000;
}

html.is-pc-preview header {
    min-height: 56px;
    padding-top: 0;
}

#header-logged-out.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    min-height: 56px;
    margin: 0 auto;
    padding: 8px 14px;
    position: relative;
    gap: 10px;
}

#header-logged-out .logo {
    position: static !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lexend', 'Noto Sans KR', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: #0A369D;
    letter-spacing: -0.4px;
    white-space: nowrap;
    cursor: pointer;
}

#header-logged-out .logo img {
    height: 34px !important;
    width: auto;
    margin: 0 !important;
    object-fit: contain;
}

#header-logged-out .logo-text {
    display: inline-block !important;
}

#header-logged-out .header-actions {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    margin: 0 !important;
}

#header-logged-out .header-btn.login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    background: var(--app-primary-gradient) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#header-logged-out .header-btn.login:active {
    transform: scale(0.95);
}

#header-logged-out .header-btn.login.logout-mode {
    background: #EF4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

@media screen and (max-width: 350px) {
    #header-logged-out .logo-text {
        font-size: 16px;
    }
    #header-logged-out .logo img {
        height: 28px !important;
    }
    #header-logged-out .header-btn.login {
        padding: 7px 14px !important;
        font-size: 12.5px !important;
    }
}

/* --------------------------------------------------------------------------
   3. LOGGED-OUT MAIN SECTIONS (Card-Based Smartphone & Tablet UI)
   -------------------------------------------------------------------------- */
.app-badge-pill,
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--app-primary-light);
    color: var(--app-primary);
    font-family: 'Lexend', 'Noto Sans KR', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* 3-1. Hero Card Slider */
.hero {
    margin-top: 0 !important;
    padding: 14px 0 8px;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.hero-card-shell {
    background: var(--app-surface);
    border-radius: 24px;
    border: 1.5px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
    overflow: hidden;
}

.hero-slider {
    display: grid;
    grid-template-areas: "slide";
    width: 100%;
    height: auto !important;
    position: relative;
}

.hero-slide {
    grid-area: slide;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--app-surface) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    z-index: 1;
}

.hero-slide::before {
    display: none !important;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide-media {
    width: 100%;
    aspect-ratio: 1024 / 470;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0F172A;
    position: relative;
}

.hero-content {
    padding: 16px 18px 10px !important;
    text-align: center !important;
    color: var(--app-text-main) !important;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 1.24rem !important;
    font-weight: 800 !important;
    color: var(--app-text-main) !important;
    line-height: 1.38 !important;
    letter-spacing: -0.4px;
    margin: 0 0 6px 0 !important;
    text-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--app-text-muted) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    word-break: keep-all;
}

.slider-btn {
    position: absolute;
    top: 26%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(15, 23, 42, 0.72);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.hero-card-footer {
    padding: 6px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--app-surface);
}

.slider-indicators {
    position: static !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: all 0.25s ease;
    transform: none !important;
}

.indicator.active {
    width: 22px;
    background: var(--app-primary);
}

.hero-login-cta-btn {
    width: 100%;
    max-width: 340px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: var(--app-primary-gradient);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-login-cta-btn:active {
    transform: scale(0.97);
}

/* 3-2. Smart Learning Card Section */
.features {
    padding: 8px 0 !important;
    background: transparent !important;
    color: var(--app-text-main) !important;
}

.smart-section-card {
    background: var(--app-surface);
    border-radius: 24px;
    border: 1.5px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
    padding: 22px 16px;
}

.smart-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.smart-header-col {
    text-align: left;
}

.smart-main-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--app-text-main);
    line-height: 1.36;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
    word-break: keep-all;
}

.smart-lead-desc {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--app-text-muted);
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.smart-video-player {
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--app-border);
    display: block;
    background: #0F172A;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.smart-feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.smart-feature-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 15px 16px;
    text-align: left;
}

.smart-item-badge {
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--app-green);
    background: var(--app-green-light);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 7px;
}

.smart-feature-item h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--app-text-main);
    margin: 0 0 6px 0;
    word-break: keep-all;
}

.smart-feature-item p {
    font-size: 0.86rem !important;
    font-weight: 500;
    color: var(--app-text-sub) !important;
    line-height: 1.55;
    margin: 0 !important;
    word-break: keep-all;
}

/* 3-3. Awards History Card Section */
.awards-section {
    padding: 8px 0 12px !important;
    background: transparent !important;
    border-top: none !important;
}

.awards-card-shell {
    background: var(--app-surface);
    border-radius: 24px;
    border: 1.5px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
    padding: 22px 16px;
}

.awards-head {
    text-align: center;
    margin-bottom: 18px;
}

.awards-section .section-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--app-text-main);
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.awards-section .section-title::after {
    display: none !important;
}

.awards-lead-desc {
    font-size: 0.88rem;
    color: var(--app-text-muted);
    line-height: 1.55;
    margin: 0;
    word-break: keep-all;
}

.awards-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.awards-tabs::before,
.awards-tabs::after,
.awards-line,
.award-tab::before,
.award-tab::after {
    display: none !important;
    content: none !important;
}

.award-tab {
    background: #F8FAFC;
    border: 1.5px solid var(--app-border);
    border-radius: 16px;
    padding: 10px 6px;
    opacity: 0.72;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    transition: all 0.2s ease;
}

.award-tab.active {
    opacity: 1;
    background: var(--app-primary-light);
    border-color: #93C5FD;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.tab-icon {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 6px !important;
    background: transparent !important;
    padding: 0 !important;
}

.award-tab.active .tab-icon {
    transform: scale(1.06);
}

.tab-year {
    font-family: 'Lexend', sans-serif;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: var(--app-text-muted) !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.award-tab.active .tab-year {
    color: var(--app-primary) !important;
    font-weight: 800 !important;
}

.awards-display {
    min-height: 0 !important;
}

.award-content-item {
    background: #F8FAFC;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 18px 16px;
    flex-direction: column;
    align-items: center;
    gap: 14px !important;
    text-align: center;
}

.award-main-img {
    flex: 0 0 auto !important;
    width: 110px;
    height: 110px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--app-border);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.award-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.award-info {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.award-year-title {
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem !important;
    font-weight: 800;
    color: var(--app-primary);
    background: var(--app-primary-light);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.award-main-title {
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--app-text-main);
    line-height: 1.35;
    margin-bottom: 8px !important;
    word-break: keep-all;
}

.award-description {
    font-size: 0.86rem;
    color: var(--app-text-sub);
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* 3-4. Footer & Sticky Consultation Bar */
footer {
    background: transparent !important;
    color: var(--app-text-muted) !important;
    padding: 8px 0 calc(92px + var(--safe-bottom)) !important;
}

html.is-pc-preview footer {
    padding: 8px 0 22px !important;
}

.footer-content {
    display: block !important;
    text-align: center;
}

.footer-left {
    background: #F1F5F9;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 18px 16px;
}

.footer-logo {
    color: var(--app-text-sub) !important;
    font-family: 'Lexend', sans-serif;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

.footer-info p {
    margin-bottom: 4px !important;
    font-size: 11.5px !important;
    color: var(--app-text-muted);
    line-height: 1.5;
}

.sticky-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--app-border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

html.is-native-device .sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px calc(10px + var(--safe-bottom));
}

html.is-pc-preview .sticky-bar {
    position: relative;
    bottom: auto;
    left: auto;
    flex-shrink: 0;
    padding: 10px 14px 18px;
}

.sticky-btn {
    width: 100%;
    max-width: 440px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0b9347 0%, #10B981 100%) !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(11, 147, 71, 0.25);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. TABLET LAYOUT UPGRADES (Native Tablet >= 768px & PC Tablet 16:10 / 4:3)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
    html.is-native-device {
        --max-width: 1020px;
    }

    html.is-native-device .container,
    html.is-native-device .app-section-inner,
    html.is-native-device #header-logged-out.header-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    html.is-native-device .hero {
        padding: 18px 0 12px;
    }

    html.is-native-device .hero-content {
        padding: 22px 28px 12px !important;
    }

    html.is-native-device .hero-title {
        font-size: 1.58rem !important;
    }

    html.is-native-device .hero-subtitle {
        font-size: 0.96rem !important;
    }

    html.is-native-device .hero-card-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 28px 18px;
        border-top: 1px solid #F1F5F9;
        background: #FAFCFF;
    }

    html.is-native-device .hero-login-cta-btn {
        max-width: 280px;
    }

    html.is-native-device .smart-section-card,
    html.is-native-device .awards-card-shell {
        padding: 26px 28px;
    }

    html.is-native-device .smart-top-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 24px;
        margin-bottom: 22px;
    }

    html.is-native-device .smart-main-title {
        font-size: 1.52rem;
    }

    html.is-native-device .smart-feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    html.is-native-device .award-content-item {
        flex-direction: row;
        text-align: left;
        padding: 24px 26px;
        gap: 24px !important;
    }

    html.is-native-device .award-main-img {
        width: 150px;
        height: 150px;
    }

    html.is-native-device .award-info {
        text-align: left;
    }
}

/* Native Landscape Tablet (1024px+ iPad 4:3 & 1100px+ Galaxy Tab 16:10) */
@media screen and (min-width: 960px) {
    html.is-native-device .hero-slide {
        display: grid !important;
        grid-template-columns: 1.28fr 1fr;
        align-items: center;
    }

    html.is-native-device .hero-slide-media {
        height: 100%;
        min-height: 270px;
        aspect-ratio: 16 / 9;
    }

    html.is-native-device .hero-content {
        text-align: left !important;
        padding: 24px 48px 24px 28px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    html.is-native-device .slider-btn {
        top: 50%;
    }
}

@media screen and (min-width: 1120px) {
    html.is-native-device {
        --max-width: 1180px;
    }

    html.is-native-device .hero-slide {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* PC Preview Landscape Tablet Modes (16:10 Galaxy Tab & 4:3 iPad) */
@media screen and (min-width: 720px) {
    html.is-pc-preview.preview-tablet .container,
    html.is-pc-preview.preview-tablet .app-section-inner,
    html.is-pc-preview.preview-tablet #header-logged-out.header-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    html.is-pc-preview.preview-tablet .hero {
        padding: 16px 0 10px;
    }

    html.is-pc-preview.preview-tablet .hero-slide {
        display: grid !important;
        grid-template-columns: 1.25fr 1fr;
        align-items: center;
    }

    html.is-pc-preview.preview-tablet-16-10 .hero-slide {
        grid-template-columns: 1.42fr 1fr;
    }

    html.is-pc-preview.preview-tablet .hero-slide-media {
        height: 100%;
        min-height: 255px;
        aspect-ratio: 16 / 9;
    }

    html.is-pc-preview.preview-tablet .hero-content {
        text-align: left !important;
        padding: 22px 48px 22px 28px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    html.is-pc-preview.preview-tablet .hero-title {
        font-size: 1.56rem !important;
        margin-bottom: 10px !important;
    }

    html.is-pc-preview.preview-tablet-16-10 .hero-title {
        font-size: 1.66rem !important;
    }

    html.is-pc-preview.preview-tablet .hero-subtitle {
        font-size: 0.95rem !important;
    }

    html.is-pc-preview.preview-tablet .slider-btn {
        top: 50%;
    }

    html.is-pc-preview.preview-tablet .hero-card-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 11px 26px;
        border-top: 1px solid #F1F5F9;
        background: #FAFCFF;
    }

    html.is-pc-preview.preview-tablet .hero-login-cta-btn {
        max-width: 270px;
        height: 44px;
        font-size: 14.5px;
    }

    html.is-pc-preview.preview-tablet .smart-section-card,
    html.is-pc-preview.preview-tablet .awards-card-shell {
        padding: 24px 26px;
    }

    html.is-pc-preview.preview-tablet .smart-top-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 22px;
        margin-bottom: 20px;
    }

    html.is-pc-preview.preview-tablet .smart-main-title {
        font-size: 1.48rem;
    }

    html.is-pc-preview.preview-tablet .smart-feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    html.is-pc-preview.preview-tablet .award-content-item {
        flex-direction: row;
        text-align: left;
        padding: 22px 24px;
        gap: 24px !important;
    }

    html.is-pc-preview.preview-tablet .award-main-img {
        width: 140px;
        height: 140px;
    }

    html.is-pc-preview.preview-tablet .award-info {
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   5. LOGIN OVERLAY (Ref: Image 2 Clean App Intro / Card Sheet)
   -------------------------------------------------------------------------- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--app-bg);
    z-index: 20000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: calc(12px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
    overflow-y: auto;
    box-sizing: border-box;
}

html.is-pc-preview .login-overlay {
    top: 44px;
    height: calc(100% - 44px);
    padding: 10px 18px 24px;
}

html.is-pc-preview.preview-tablet .login-overlay {
    top: 30px;
    height: calc(100% - 30px);
    padding: 12px 24px 20px;
}

.login-overlay.active {
    display: flex;
    opacity: 1;
}

.login-modal-topbar {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.login-close-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #E2E8F0;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.login-close-icon-btn:active {
    background: #CBD5E1;
    transform: scale(0.92);
}

.login-sheet-card {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
    background: var(--app-surface);
    border: 1.5px solid var(--app-border);
    border-radius: 28px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.1);
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 22px;
    text-decoration: none;
    color: var(--app-text-main);
}

.login-logo-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--app-primary-light);
    border: 3px solid #BFDBFE;
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 12px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 0;
}

.login-logo span {
    font-family: 'Lexend', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--app-text-main);
    letter-spacing: -0.4px;
}

.login-logo-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--app-text-muted);
    margin-top: 2px;
}

.login-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Segmented Pill Selector (Student / Parent) */
.login-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--app-text-muted);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.18s ease;
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label:has(input[type="radio"]:checked) {
    background: #FFFFFF;
    color: var(--app-primary);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.login-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin-bottom: 12px;
    border: 1.5px solid var(--app-border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--app-text-main);
    background-color: #F8FAFC;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--app-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-submit-btn {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background: var(--app-primary-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.38);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit-btn:active {
    transform: scale(0.98);
}

.login-options {
    display: flex;
    justify-content: center;
    font-size: 13.5px;
    color: var(--app-text-muted);
}

.login-options a {
    color: var(--app-text-muted);
    font-weight: 600;
    text-decoration: underline;
}

.login-footer {
    margin-top: 18px;
    margin-bottom: 0;
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. LOGGED-IN APP NAVIGATION, SUBMENUS, WELCOME & IFRAME CONTAINER
   -------------------------------------------------------------------------- */
.user-menu-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto !important;
    padding: 8px 8px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--app-border);
    position: relative;
    z-index: 950;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
    gap: 4px;
}

.user-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--app-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.user-menu-item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--app-green);
    transition: transform 0.18s ease, color 0.18s ease;
}

.user-menu-item:hover {
    background: #F8FAFC;
    color: var(--app-green);
}

.user-menu-item span {
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

#parent-menu-bar {
    padding: 8px 6px;
    gap: 2px;
}

#parent-menu-bar .user-menu-item {
    padding: 7px 2px;
    font-size: 12px;
    min-width: 0;
}

.user-menu-item.active {
    background: var(--app-green-light);
    color: var(--app-green);
}

.user-menu-item.active i,
.user-menu-item.active span {
    color: var(--app-green);
    font-weight: 800;
    transform: translateY(-1px);
}

/* Logged-In State Layout Visibility */
html.logged-in-state .hero,
body.logged-in-state .hero,
html.logged-in-state .awards-section,
body.logged-in-state .awards-section,
html.logged-in-state .sticky-bar,
body.logged-in-state .sticky-bar,
html.logged-in-state footer,
body.logged-in-state footer,
html.logged-in-state .features,
body.logged-in-state .features {
    display: none !important;
}

.parent-student-badge {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    background: #F0FDF4;
    color: #166534;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid #BBF7D0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.parent-student-badge i {
    color: #16A34A;
}

/* Logged-In Welcome Card */
body.logged-in-state .welcome-section {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 24px 16px;
    background: transparent;
}

.welcome-card {
    background: #FFFFFF;
    padding: 36px 26px;
    border-radius: 24px;
    border: 1.5px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0b9347 0%, #10B981 100%);
}

.welcome-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--app-green-light);
    color: var(--app-green);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.welcome-title {
    font-size: 20px;
    color: var(--app-text-main);
    margin-bottom: 10px;
    font-weight: 800;
    word-break: keep-all;
    line-height: 1.4;
}

.welcome-subtitle {
    font-family: 'Lexend', sans-serif;
    font-size: 12.5px;
    color: var(--app-text-muted);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.welcome-decoration {
    width: 44px;
    height: 4px;
    background-color: #E2E8F0;
    margin: 0 auto;
    border-radius: 2px;
}

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

/* Submenus */
.submenu-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: #F1F5F9;
    border-bottom: 1px solid var(--app-border);
    position: relative;
    z-index: 900;
}

.submenu {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
    animation: slideDown 0.2s ease-out;
}

.submenu.active {
    display: flex;
}

.submenu-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.submenu a {
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.submenu a:hover,
.submenu a:active,
.submenu a.active,
.submenu-item.active {
    background: linear-gradient(135deg, #0b9347 0%, #95C03E 100%) !important;
    background-color: #0b9347 !important;
    color: #ffffff !important;
    border-color: #0b9347 !important;
    font-weight: 800 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 147, 71, 0.3) !important;
}

html.is-native-device.logged-in-state,
html.is-native-device.logged-in-state body,
html.is-native-device.logged-in-state .mobile-device-stage,
html.is-native-device.logged-in-state .mobile-device-bezel,
html.is-native-device.logged-in-state .mobile-device-screen,
html.is-native-device.logged-in-state .mobile-app-scroll-shell {
    min-height: 0 !important;
    height: auto !important;
}

/* Dynamic Iframe Content Container */
#dynamic-content-section {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto !important;
    padding: 6px 4px 6px !important;
    box-sizing: border-box;
}

.dynamic-iframe-card {
    background-color: transparent;
    overflow: hidden;
    border-radius: 14px;
    margin: 0;
}

/* Tablet Upgrades for Logged-In Bar & Content */
@media screen and (min-width: 768px) {
    html.is-native-device .user-menu-bar,
    html.is-native-device .submenu-container,
    html.is-native-device .parent-student-badge {
        border-left: 1px solid var(--app-border);
        border-right: 1px solid var(--app-border);
    }

    html.is-native-device .user-menu-bar {
        padding: 10px 18px;
        gap: 10px;
    }

    html.is-native-device .user-menu-item {
        flex-direction: row;
        gap: 8px;
        padding: 10px 14px;
        font-size: 14px;
    }

    html.is-native-device .user-menu-item i {
        margin-bottom: 0;
        font-size: 18px;
    }

    html.is-native-device #dynamic-content-section {
        padding: 12px 16px 24px !important;
    }
}

@media screen and (min-width: 720px) {
    html.is-pc-preview.preview-tablet .user-menu-bar {
        padding: 10px 16px;
        gap: 10px;
    }

    html.is-pc-preview.preview-tablet .user-menu-item {
        flex-direction: row;
        gap: 8px;
        padding: 10px 14px;
        font-size: 14px;
    }

    html.is-pc-preview.preview-tablet .user-menu-item i {
        margin-bottom: 0;
        font-size: 18px;
    }

    html.is-pc-preview.preview-tablet #dynamic-content-section {
        padding: 12px 16px 24px !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------- */
/* Logged In Header (LITTLEFOX  전아린 D2D  4:50~5:35 (화수금)  [로그아웃])   */
/* -------------------------------------------------------------------------- */
html.logged-in-state #header-logged-out,
body.logged-in-state #header-logged-out {
    display: none !important;
}

html.logged-in-state #header-logged-in,
body.logged-in-state #header-logged-in {
    display: flex !important;
}

html:not(.logged-in-state) #header-logged-in,
body:not(.logged-in-state) #header-logged-in {
    display: none !important;
}

html:not(.logged-in-state) #header-logged-out,
body:not(.logged-in-state) #header-logged-out {
    display: flex !important;
}

.header-container.logged-in-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: var(--max-width) !important;
    min-height: 56px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    background: transparent !important;
    position: relative !important;
}

.hdr-brand {
    font-size: 15px;
    font-weight: 900;
    color: #0A369D;
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hdr-student-box {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #EAF7EE; /* 연한 녹색 배경 */
    border-radius: 8px;
    padding: 6px 12px;
    border: none;
    box-shadow: none;
    cursor: default;
    user-select: text;
    flex-grow: 1;
    justify-content: center;
}

.hdr-student-name {
    font-weight: 900;
    color: #0F172A;
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.hdr-class-name {
    font-weight: 900;
    color: #0b9347;
    font-size: 15px;
    white-space: nowrap;
}

.hdr-class-time {
    font-weight: 700;
    color: #334155;
    font-size: 14px;
    white-space: nowrap;
}

.hdr-logout-btn {
    background: #e52528 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 5px rgba(229, 37, 40, 0.25) !important;
    line-height: 1.2 !important;
    transition: transform 0.1s, background-color 0.15s !important;
}

.hdr-logout-btn:active {
    transform: scale(0.96);
    background: #c81e21 !important;
}

@media (max-width: 410px) {
    .header-container.logged-in-header {
        padding: 0 8px !important;
        gap: 6px !important;
    }
    .hdr-brand {
        font-size: 14px;
    }
    .hdr-student-box {
        gap: 6px;
        padding: 5px 8px;
    }
    .hdr-student-name {
        font-size: 15px;
    }
    .hdr-class-name {
        font-size: 14px;
    }
    .hdr-class-time {
        font-size: 13px;
    }
    .hdr-logout-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .header-container.logged-in-header {
        padding: 0 5px !important;
        gap: 4px !important;
    }
    .hdr-brand {
        font-size: 13px;
    }
    .hdr-student-box {
        gap: 4px;
        padding: 4px 6px;
    }
    .hdr-student-name {
        font-size: 14px;
    }
    .hdr-class-name {
        font-size: 13px;
    }
    .hdr-class-time {
        font-size: 12px;
    }
    .hdr-logout-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

/* Scrollbar Hidden for Clean Mobile View */
#dynamic-content-section,
#content-iframe,
.container {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#dynamic-content-section::-webkit-scrollbar,
#content-iframe::-webkit-scrollbar,
.container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Player Modal Fullscreen Overlay for content-iframe */
#content-iframe.player-modal-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    z-index: 9999999 !important;
    background: #ffffff !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.is-pc-preview #content-iframe.player-modal-fullscreen {
    top: 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100% - 44px) !important;
    max-height: calc(100% - 44px) !important;
}

html.is-pc-preview.preview-tablet #content-iframe.player-modal-fullscreen {
    top: 30px !important;
    height: calc(100% - 30px) !important;
    max-height: calc(100% - 30px) !important;
}

body.player-open-lock {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

html.is-pc-preview body.player-open-lock {
    height: 100% !important;
}

/* Completely hide header and navigation tabs so mobile player gets 100% of viewport */
body.player-open-lock header,
body.player-open-lock .user-menu-bar,
body.player-open-lock #parent-student-badge,
body.player-open-lock #student-menu-bar,
body.player-open-lock #parent-menu-bar {
    display: none !important;
}

body.player-open-lock #dynamic-content-section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
}

html.is-pc-preview body.player-open-lock #dynamic-content-section {
    height: 100% !important;
}

body.player-open-lock #dynamic-content-section > div {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   홈 화면 아이콘 추가(No-APK) 상단 배너 & 3단계 바텀시트 모달
   ========================================================================== */
.sy-a2hs-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #0b9347 0%, #00819F 100%);
    color: #ffffff;
    padding: 8px 10px 8px 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 40;
}

body.player-open-lock .sy-a2hs-banner {
    display: none !important;
}

.sy-a2hs-banner-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    padding: 2px 0;
    font-family: inherit;
}

.sy-a2hs-banner-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.sy-a2hs-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.28;
}

.sy-a2hs-banner-text strong {
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sy-a2hs-banner-text small {
    font-size: 10.5px;
    opacity: 0.92;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sy-a2hs-banner-pill {
    flex-shrink: 0;
    background: #ffffff;
    color: #076d34;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sy-a2hs-banner-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Bottom Sheet Overlay */
.sy-a2hs-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99990;
    align-items: flex-end;
    justify-content: center;
}

html.is-pc-preview .sy-a2hs-sheet-overlay {
    position: absolute;
    inset: 0;
}

.sy-a2hs-sheet-overlay.open {
    display: flex;
}

.sy-a2hs-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 86%;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 10px 18px calc(20px + var(--safe-bottom));
    box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.25);
    animation: sySheetUp 0.22s ease-out;
    box-sizing: border-box;
    word-break: keep-all;
}

@keyframes sySheetUp {
    from { transform: translateY(28px); opacity: 0.2; }
    to { transform: translateY(0); opacity: 1; }
}

.sy-a2hs-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 12px;
}

.sy-a2hs-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sy-a2hs-safe-tag {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.sy-a2hs-sheet-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.sy-a2hs-sheet-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.sy-a2hs-os-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.sy-a2hs-os-tab {
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 9px 6px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sy-a2hs-os-tab.active {
    background: #ffffff;
    color: #0b9347;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sy-a2hs-pane {
    display: none;
}

.sy-a2hs-pane.active {
    display: block;
}

.sy-a2hs-onetouch-btn {
    width: 100%;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
}

.sy-a2hs-step-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 13px;
    margin-bottom: 10px;
}

.sy-a2hs-browser-label {
    font-size: 12px;
    font-weight: 800;
    color: #076d34;
    margin-bottom: 8px;
}

.sy-a2hs-browser-label.teal {
    color: #00637a;
}

.sy-a2hs-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.sy-a2hs-steps li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.sy-a2hs-steps .num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0b9347;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.sy-a2hs-steps .num.teal {
    background: #00819F;
}

.sy-a2hs-tip {
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 10px;
    padding: 9px 11px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.sy-a2hs-sync-note {
    font-size: 11.8px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.sy-a2hs-full-guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b9347 0%, #00819F 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 6px 14px rgba(11, 147, 71, 0.25);
}

/* 스마트폰 첫 접속 시각 가이드 팝업 모달 (전체화면보다 살짝 작은 팝업) */
.sy-mobile-guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99995;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

html.is-pc-preview .sy-mobile-guide-overlay {
    position: absolute;
    inset: 0;
}

.sy-mobile-guide-overlay.open {
    display: flex;
}

.sy-mobile-guide-card {
    width: 94%;
    max-width: 560px;
    height: 88%;
    max-height: 88dvh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: sySheetUp 0.22s ease-out;
}

.sy-mobile-guide-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff;
    flex-shrink: 0;
}

.sy-mobile-guide-topbar-title {
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sy-mobile-guide-topbar-title i {
    color: #4ade80;
}

.sy-mobile-guide-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sy-mobile-guide-frame-wrap {
    flex: 1;
    min-height: 0;
    background: #f1f5f9;
}

.sy-mobile-guide-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #f1f5f9;
}

.sy-mobile-guide-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px calc(10px + var(--safe-bottom));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sy-mobile-guide-hide-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.sy-mobile-guide-hide-label input {
    width: 16px;
    height: 16px;
    accent-color: #0b9347;
}

.sy-mobile-guide-foot-close {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
