/* ==========================================================================
   Retirement AI Commemorative Portal - view.css
   Theme: Vibrant Sky & Ocean Blue (สดใส มีชีวิตชีวา ข้อมูลกระชับ ไม่ติดขอบจอ)
   Fully Responsive for PC, Tablet & Mobile Devices
   ========================================================================== */

:root {
    --blue-vibrant: #0284c7;
    --blue-bright: #0ea5e9;
    --blue-sky: #38bdf8;
    --blue-light: #e0f2fe;
    --blue-ultralight: #f0f9ff;
    --blue-deep: #0369a1;
    --blue-navy: #0c4a6e;
    --blue-dark: #0f172a;

    /* Gradients */
    --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #0284c7 100%);
    --blue-gradient-subtle: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    --blue-gradient-card: linear-gradient(145deg, #0c4a6e 0%, #0369a1 55%, #0284c7 100%);
    --chatgpt-gradient-card: linear-gradient(145deg, #064e3b 0%, #047857 55%, #059669 100%);
    --blue-gradient-glow: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.28) 0%, rgba(2, 132, 199, 0.12) 40%, rgba(240, 249, 255, 0) 70%);

    --bg-page: #f8fbff;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --border-color: #e2e8f0;
    --border-blue: #bae6fd;
    --border-light: #e0f2fe;

    --shadow-sm: 0 2px 10px rgba(2, 132, 199, 0.06);
    --shadow-md: 0 8px 26px rgba(2, 132, 199, 0.09);
    --shadow-lg: 0 16px 44px rgba(2, 132, 199, 0.14);
    --shadow-blue: 0 10px 28px rgba(14, 165, 233, 0.38);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 78px;
    /* Space for mobile sticky action bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Helpers */
.font-prompt {
    font-family: 'Prompt', sans-serif;
}

.text-blue {
    color: var(--blue-vibrant) !important;
}

.text-blue-bright {
    color: var(--blue-bright) !important;
}

.text-gradient-blue {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Ambient Background Glow */
.bg-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 520px;
    background: var(--blue-gradient-glow);
    pointer-events: none;
    z-index: 0;
}

/* Master Layout Container - มีระยะขอบไม่ติดขอบจอ สบายตา */
.container-box {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Hero Section - Clean & Balanced
   ========================================================================== */
.hero-wrapper {
    padding: 28px 0 24px;
}

@media (min-width: 992px) {
    .hero-wrapper {
        padding: 38px 0 32px;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.18fr 0.82fr;
        gap: 36px;
        text-align: left;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-ultralight);
    color: var(--blue-deep);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-blue);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.hero-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-navy);
    line-height: 1.35;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero-heading {
        font-size: 2.15rem;
    }
}

@media (min-width: 1200px) {
    .hero-heading {
        font-size: 2.35rem;
    }
}

.hero-description {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-description strong {
    color: var(--blue-navy);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 22px;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--blue-deep);
}

.hero-feature-item i {
    color: #10b981;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn-primary-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary-ai:hover,
.btn-primary-ai:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
    color: #ffffff;
}

.btn-chatgpt-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-chatgpt-ai:hover,
.btn-chatgpt-ai:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-secondary-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: var(--blue-deep);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-blue);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-secondary-copy:hover {
    background: #f0f9ff;
    border-color: var(--blue-bright);
    color: var(--blue-vibrant);
}

/* Formula Card */
.formula-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-blue);
    position: relative;
    overflow: hidden;
}

.formula-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--blue-gradient);
}

.formula-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.formula-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formula-item {
    background: var(--blue-ultralight);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #dbeafe;
    transition: var(--transition);
}

.formula-item:hover {
    border-color: var(--blue-bright);
    background: #ffffff;
}

.formula-item.highlight {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid var(--blue-bright);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.16);
}

.formula-icon {
    width: 38px;
    height: 38px;
    background: #e0f2fe;
    color: var(--blue-vibrant);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
}

.formula-item.highlight .formula-icon {
    background: var(--blue-gradient);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-blue);
}

.formula-item-info {
    flex: 1;
    text-align: left;
}

.formula-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-navy);
    line-height: 1.3;
}

.formula-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.formula-badge-plus {
    text-align: center;
    color: var(--blue-vibrant);
    font-size: 1rem;
    font-weight: 800;
    margin: -4px 0;
    line-height: 1;
}

/* ==========================================================================
   Unified Action Section (Gemini & ChatGPT Switcher)
   ========================================================================== */
.unified-action-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-blue);
    padding: 24px clamp(16px, 3vw, 28px);
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}

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

.unified-section-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unified-section-head p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* AI Platform Switcher (Gemini vs ChatGPT) */
.ai-platform-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.ai-platform-btn {
    background: var(--blue-ultralight);
    border: 1.5px solid var(--border-blue);
    color: var(--blue-deep);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.ai-platform-btn:hover {
    background: #ffffff;
    border-color: var(--blue-bright);
}

.ai-platform-btn.active[data-ai-target="gemini"] {
    background: var(--blue-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.ai-platform-btn.active[data-ai-target="chatgpt"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* AI Platform Panels */
.ai-platform-panel {
    display: none;
}

.ai-platform-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

.unified-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 992px) {
    .unified-grid {
        grid-template-columns: 1.35fr 0.65fr;
        gap: 26px;
    }
}

/* Left: 3 Compact Steps + Prompt Box */
.unified-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.steps-compact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .steps-compact-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-pill-card {
    background: var(--blue-ultralight);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.step-pill-num {
    width: 24px;
    height: 24px;
    background: var(--blue-gradient);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-pill-num.chatgpt-num {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.step-pill-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-navy);
    margin-bottom: 2px;
}

.step-pill-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

/* Compact Prompt Box (Gemini) */
.prompt-compact-box {
    background: var(--blue-gradient-card);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.prompt-compact-box.chatgpt-box {
    background: var(--chatgpt-gradient-card);
}

.prompt-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.prompt-compact-header h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-compact-text {
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #ffffff;
    user-select: all;
}

.prompt-tip-inline {
    font-size: 0.78rem;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ChatGPT Auto Box (No prompt needed) */
.chatgpt-auto-banner {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatgpt-auto-icon {
    font-size: 2rem;
    color: #a7f3d0;
    flex-shrink: 0;
}

.chatgpt-auto-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #ffffff;
}

.chatgpt-auto-text p {
    font-size: 0.82rem;
    color: #e6fffa;
    margin: 0;
    line-height: 1.45;
}

/* Right: QR Code & Direct Open */
.unified-right {
    background: var(--blue-ultralight);
    border: 1.5px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.unified-right.chatgpt-right {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.qr-compact-frame {
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--blue-bright);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.qr-compact-frame.chatgpt-frame {
    border-color: #10b981;
}

.qr-compact-frame img {
    width: 140px;
    height: 140px;
    display: block;
    object-fit: contain;
}

.qr-compact-caption {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-navy);
    margin-bottom: 12px;
    line-height: 1.35;
}

.qr-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-copy-link {
    background: #ffffff;
    color: var(--blue-deep);
    border: 1.5px solid var(--border-blue);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    width: 100%;
}

.btn-copy-link:hover {
    background: #f0f9ff;
    border-color: var(--blue-bright);
    color: var(--blue-vibrant);
}

.btn-copy-link.chatgpt-copy-link {
    color: #047857;
    border-color: #a7f3d0;
}

.btn-copy-link.chatgpt-copy-link:hover {
    background: #ecfdf5;
    border-color: #10b981;
}

/* ==========================================================================
   Compact Segmented Tab Gallery (Minimal Space)
   ========================================================================== */
.compact-gallery-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-blue);
    padding: 20px clamp(16px, 3vw, 24px);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.gallery-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e0f2fe;
    padding-bottom: 14px;
}

.gallery-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Segmented Tab Buttons */
.gallery-segmented-tabs {
    display: inline-flex;
    background: var(--blue-ultralight);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-blue);
    gap: 4px;
}

.gallery-tab-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-deep);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-tab-btn.active {
    background: var(--blue-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Tab Panels */
.gallery-tab-panel {
    display: none;
}

.gallery-tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3 Compact Backdrops Grid (Minimal Height) */
.backdrops-compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .backdrops-compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.backdrop-compact-card {
    background: #ffffff;
    border: 1.5px solid var(--border-blue);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.backdrop-compact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--blue-bright);
}

.backdrop-compact-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
    cursor: pointer;
}

.backdrop-compact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.backdrop-compact-card:hover .backdrop-compact-img img {
    transform: scale(1.04);
}

.backdrop-compact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 74, 110, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.backdrop-compact-img:hover .backdrop-compact-overlay {
    opacity: 1;
}

.backdrop-compact-info {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    gap: 8px;
}

.backdrop-compact-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-mini-download {
    background: var(--blue-ultralight);
    color: var(--blue-deep);
    border: 1px solid var(--border-blue);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-mini-download:hover {
    background: var(--blue-gradient);
    color: #ffffff;
    border-color: transparent;
}

/* 4 Compact Examples Grid */
.examples-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .examples-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

.example-compact-card {
    background: #ffffff;
    border: 1.5px solid #e0f2fe;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.example-compact-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-bright);
    box-shadow: var(--shadow-sm);
}

.example-compact-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.example-compact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.example-compact-card:hover .example-compact-img img {
    transform: scale(1.04);
}

.example-compact-caption {
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-navy);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    background: #ffffff;
    border-radius: var(--radius-md);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.lightbox-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-navy);
}

.lightbox-close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.lightbox-body {
    padding: 14px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 68vh;
    overflow: hidden;
}

.lightbox-body img {
    max-height: 62vh;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-footer {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.portal-footer {
    text-align: center;
    padding: 26px 20px;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1.5px solid #e0f2fe;
}

/* ==========================================================================
   Mobile Sticky Bottom Bar (Phone Only)
   ========================================================================== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid var(--border-blue);
    padding: 10px 18px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(2, 132, 199, 0.12);
}

@media (min-width: 992px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}

.mobile-sticky-bar a,
.mobile-sticky-bar button {
    flex: 1;
    padding: 11px 12px;
    font-size: 0.9rem;
}

/* Toast Notice */
.toast-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #0284c7;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notice i {
    color: #e0f2fe;
    font-size: 1.15rem;
}
