/* ==========================================================================
   Tool 42: YouTube Channel Banner Safe Area Checker
   Responsive, Luxury Glassmorphism Console Layout
   Strictly Adhering to GuinRank Design System & Zero-Scroll Trap Standards
   ========================================================================== */

#banner-checker-app {
    width: 100%;
    min-height: 100vh;
    padding: 24px 20px 80px;
    background: var(--bg-body, #0a0a0f);
    color: var(--text-main, #e2e8f0);
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-main-container {
    max-width: 1280px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

#banner-checker-app.is-wide-mode .tool-main-container {
    max-width: 100% !important;
}

/* Floating Actions */
.fixed-floating-actions {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 999;
}

html[dir="rtl"] .fixed-floating-actions {
    right: auto;
    left: 24px;
}

.floating-expand-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.floating-expand-btn:hover {
    color: var(--primary-color, #f97316);
    border-color: var(--primary-color, #f97316);
    transform: scale(1.05);
}

/* --- 1. Compliance Micro-Bar --- */
.compliance-micro-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.compliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compliance-pill:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.compliance-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.compliance-shield-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.compliance-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main, #e2e8f0);
}

.compliance-info-icon {
    width: 13px;
    height: 13px;
    color: var(--text-muted, #94a3b8);
}

/* --- 2. Luxury Console Hero Header --- */
.console-hero-header {
    text-align: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: var(--primary-light, rgba(249, 115, 22, 0.1));
    border: 1px solid var(--primary-color, #f97316);
    color: var(--primary-color, #f97316);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-badge-icon {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-main, #f8fafc);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color, #f97316), #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #94a3b8);
}

.hero-features-belt {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.belt-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #cbd5e1);
}

.belt-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #f97316);
}

/* --- 3. Unified Search Bar --- */
.unified-search-container {
    max-width: 980px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 20;
}

.unified-search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg, #131722);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 6px;
}

.unified-search-container.is-focused .unified-search-bar {
    border-color: var(--primary-color, #f97316);
    box-shadow: 0 10px 30px var(--primary-light, rgba(249, 115, 22, 0.18));
}

.search-segment {
    display: flex;
    align-items: center;
}

.dropdown-segment {
    position: relative;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
    user-select: none;
}

.dropdown-segment:hover {
    background: var(--bg-body, rgba(0, 0, 0, 0.03));
}

.segment-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.segment-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #e2e8f0);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted, #94a3b8);
}

.search-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color, rgba(255, 255, 255, 0.08));
    margin: 0 4px;
}

.input-segment {
    flex: 1;
    position: relative;
    gap: 10px;
    padding: 0 8px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted, #94a3b8);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-main, #f8fafc);
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted, #64748b);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-execute-audit {
    padding: 10px 22px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-execute-audit:hover:not(:disabled) {
    background: var(--primary-hover, #ea580c);
    transform: translateY(-1px);
}

.btn-execute-audit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-svg {
    width: 16px;
    height: 16px;
}

.credit-pill-badge {
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.loader-spin {
    animation: spin 1s linear infinite;
    width: 16px;
    height: 16px;
}

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

/* Secondary Toolbar */
.cmo-action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    gap: 12px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    color: var(--text-main, #f8fafc);
    border-color: var(--primary-color, #f97316);
}

.btn-upload-label {
    cursor: pointer;
    position: relative;
    background: var(--primary-light, rgba(249, 115, 22, 0.12));
    color: var(--primary-color, #f97316);
    border-color: var(--primary-color, #f97316);
}

.hidden-file-input {
    display: none;
}

/* Quick Presets */
.quick-presets-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.qp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.qp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qp-chip:hover {
    color: var(--primary-color, #f97316);
    border-color: var(--primary-color, #f97316);
}

/* --- 4. Loading Stage --- */
.title-loading-stage {
    text-align: center;
    padding: 60px 20px;
}

.loader-pulse-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light, rgba(249, 115, 22, 0.12));
    border: 2px solid var(--primary-color, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulseRing 1.5s infinite ease-in-out;
}

.pulse-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color, #f97316);
}

@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* --- 5. Bento Grid --- */
.bento-features-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.bento-card {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.bc-wide-top { grid-column: span 2; }
.bc-tall { grid-row: span 2; }
.bc-wide-mid { grid-column: span 2; }

.bc-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light, rgba(249, 115, 22, 0.12));
    color: var(--primary-color, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.bc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main, #f8fafc);
}

.bc-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted, #94a3b8);
}

.bento-decor-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* --- 6. Results Workspace Styles --- */
.banner-workspace-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-panel {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Channel Header */
.channel-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cbc-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cbc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.15));
}

.cbc-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.cbc-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #f97316);
    text-transform: uppercase;
}

.cbc-res-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    color: var(--text-main, #e2e8f0);
}

.cbc-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main, #f8fafc);
}

.cbc-handle {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary-action:hover {
    background: var(--primary-hover, #ea580c);
    transform: translateY(-1px);
}

/* Simulator Stage */
.simulator-stage-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stage-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.st-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.st-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}

.viewport-toggles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.v-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-body, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v-toggle-btn:hover {
    color: var(--text-main, #f8fafc);
    border-color: var(--primary-color, #f97316);
}

.v-toggle-btn.active {
    background: var(--primary-light, rgba(249, 115, 22, 0.15));
    border-color: var(--primary-color, #f97316);
    color: var(--primary-color, #f97316);
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.opacity-range {
    cursor: pointer;
    width: 100px;
    accent-color: var(--primary-color, #f97316);
}

/* Canvas Aspect Wrapper (16:9 Standard) */
.canvas-aspect-wrapper {
    width: 100%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-canvas-chassis {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (1440 / 2560) */
    position: relative;
}

.banner-underlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SVG Overlay Layer */
.svg-overlay-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.zone-box {
    position: absolute;
    box-sizing: border-box;
}

/* TV Boundary (Full Area) */
.zone-tv {
    inset: 0;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.zone-label {
    position: absolute;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.zone-label.tv {
    top: 6px;
    left: 8px;
    background: rgba(59, 130, 246, 0.85);
    color: #ffffff;
}

/* Desktop Boundary (2560 x 423) -> Height 29.38%, Top 35.31% */
.zone-desktop {
    top: 35.31%;
    left: 0;
    width: 100%;
    height: 29.38%;
    border-top: 2px dashed rgba(245, 158, 11, 0.7);
    border-bottom: 2px dashed rgba(245, 158, 11, 0.7);
    background: rgba(245, 158, 11, 0.05);
}

.zone-label.desktop {
    top: -18px;
    left: 8px;
    background: rgba(245, 158, 11, 0.85);
    color: #000000;
}

/* Tablet Boundary (1855 x 423) -> Width 72.46%, Left 13.77%, Height 29.38%, Top 35.31% */
.zone-tablet {
    top: 35.31%;
    left: 13.77%;
    width: 72.46%;
    height: 29.38%;
    border-left: 2px dashed rgba(168, 85, 247, 0.7);
    border-right: 2px dashed rgba(168, 85, 247, 0.7);
}

.zone-label.tablet {
    bottom: -18px;
    left: 8px;
    background: rgba(168, 85, 247, 0.85);
    color: #ffffff;
}

/* Mobile Safe Area (1546 x 423) -> Width 60.39%, Left 19.80%, Height 29.38%, Top 35.31% */
.zone-mobile-safe {
    top: 35.31%;
    left: 19.80%;
    width: 60.39%;
    height: 29.38%;
    border: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.zone-mobile-safe.highlight-only {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
}

.safe-zone-inner-glow {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}

.safe-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.safe-sub-watermark {
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Viewport Cards Grid */
.viewports-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.vp-spec-card {
    background: var(--bg-body, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-spec-card.is-safe {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.vp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

.vp-pill {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
}

.vp-percentage-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    overflow: hidden;
}

.vp-bar-fill {
    height: 100%;
    background: var(--primary-color, #f97316);
    border-radius: 9999px;
}

.vp-spec-card.is-safe .vp-bar-fill {
    background: #10b981;
}

.vp-desc {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.5;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--bg-body, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
}

.mc-status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
}

.mc-status-badge.pass {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.mc-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
}

.mc-msg {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.5;
}

/* Tips */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-main, #cbd5e1);
    line-height: 1.55;
}

.tip-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- 7. Zero-Scroll Trap Root-Level Modal --- */
html.modal-open, body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.modal-card {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main, #f8fafc);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-main, #ffffff);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto !important;
    max-height: calc(85vh - 135px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-edu-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--primary-light, rgba(249, 115, 22, 0.1));
    border: 1px solid var(--primary-color, #f97316);
    border-radius: 12px;
    padding: 14px;
    color: var(--primary-color, #f97316);
}

.modal-edu-banner p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-main, #e2e8f0);
}

.modal-legal-section h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-main, #f8fafc);
}

.modal-legal-section p {
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
    color: var(--text-muted, #94a3b8);
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-modal-close {
    padding: 9px 20px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--primary-hover, #ea580c);
}

/* Custom Scrollbar Utility */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(140, 140, 140, 0.25);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 140, 140, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .bento-features-cluster {
        grid-template-columns: 1fr;
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 1;
        grid-row: span 1;
    }
    .unified-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-divider {
        display: none;
    }
}
