/* ==========================================================================
   InstaReels Downloader Design System - Screenshot Redesign
   Vibrant Horizontal Gradient Banner + Unified White Pill Action Bar
   ========================================================================== */

/* --- Theme Variable Palettes (For lower sections) --- */

/* 1. Classic Violet Theme (Default) */
body.theme-violet, body {
    --bg-dark: #070313;
    --bg-card: rgba(18, 12, 38, 0.45);
    --bg-input: rgba(10, 6, 26, 0.6);
    
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(139, 92, 246, 0.6);
    
    --shadow-premium: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
    --bg-theme-grad: radial-gradient(circle, var(--accent-purple) 0%, rgba(139, 92, 246, 0) 70%);
}

/* 2. Cyberpunk Neon Theme */
body.theme-cyber {
    --bg-dark: #050508;
    --bg-card: rgba(10, 10, 15, 0.6);
    --bg-input: rgba(0, 0, 0, 0.85);
    
    --accent-purple: #00f0ff; /* Neon Cyan */
    --accent-pink: #ff007f; /* Neon Hot Pink */
    --accent-blue: #39ff14; /* Neon Lime Green */
    --text-primary: #ffffff;
    --text-secondary: #00f0ff;
    --text-muted: #6b7280;
    
    --border-glass: rgba(0, 240, 255, 0.15);
    --border-active: rgba(0, 240, 255, 0.8);
    
    --shadow-premium: 0 16px 40px 0 rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.35);
    --bg-theme-grad: radial-gradient(circle, var(--accent-purple) 0%, rgba(0, 240, 255, 0) 70%);
}

/* 3. Royal Gold Theme */
body.theme-gold {
    --bg-dark: #12100e;
    --bg-card: rgba(26, 22, 18, 0.5);
    --bg-input: rgba(15, 12, 10, 0.75);
    
    --accent-purple: #d4af37; /* Gold */
    --accent-pink: #e5b565; /* Warm Amber */
    --accent-blue: #dfba73; /* Metallic Gold */
    --text-primary: #f8f1e5;
    --text-secondary: #e5b565;
    --text-muted: #8c7853;
    
    --border-glass: rgba(212, 175, 55, 0.15);
    --border-active: rgba(212, 175, 55, 0.7);
    
    --shadow-premium: 0 16px 40px 0 rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
    --bg-theme-grad: radial-gradient(circle, var(--accent-purple) 0%, rgba(212, 175, 55, 0) 70%);
}

/* 4. Emerald Forest Theme */
body.theme-emerald {
    --bg-dark: #040d0a;
    --bg-card: rgba(8, 22, 18, 0.5);
    --bg-input: rgba(4, 12, 10, 0.75);
    
    --accent-purple: #10b981; /* Emerald Green */
    --accent-pink: #34d399; /* Mint Green */
    --accent-blue: #059669; /* Forest Green */
    --text-primary: #e6f4f1;
    --text-secondary: #34d399;
    --text-muted: #4b6b60;
    
    --border-glass: rgba(16, 185, 129, 0.15);
    --border-active: rgba(16, 185, 129, 0.7);
    
    --shadow-premium: 0 16px 40px 0 rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --bg-theme-grad: radial-gradient(circle, var(--accent-purple) 0%, rgba(16, 185, 129, 0) 70%);
}

/* --- Design Radii & Transitions --- */
:root {
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 8px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* --- Global Resets & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 7rem 1rem 3rem 1rem;
    transition: background-color 0.5s ease;
}

/* --- Premium Background Gradient Shapes (Subtle fallback) --- */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--bg-theme-grad);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-pink) 0%, rgba(236, 72, 153, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue) 0%, rgba(59, 130, 246, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(30px, 20px) scale(1.1) rotate(180deg); }
    100% { transform: translate(-20px, -30px) scale(0.9) rotate(360deg); }
}

/* --- Floating Theme Switcher Panel --- */
.theme-switcher-container {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

.palette-icon {
    color: var(--accent-purple);
    font-size: 0.95rem;
}

.theme-dropdown {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.theme-dropdown option {
    background: #0f0b20;
    color: #fff;
}

/* --- Layout Container --- */
.app-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   1. Upper Banner Card Redesign (Matches Screenshot)
   ========================================================================== */
.banner-card {
    background: linear-gradient(to right, #db2777, #7c3aed, #0ea5e9);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.banner-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.input-form {
    width: 100%;
    max-width: 760px;
    display: flex;
    justify-content: center;
}

/* Translucent Pill wrapper containing Input + Paste + Download */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    padding: 6px 8px 6px 22px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12), 0 0 15px rgba(255, 255, 255, 0.2);
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    height: 48px;
    width: 100%;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.clear-btn {
    display: none;
    background: none;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
    margin-right: 0.25rem;
}

.clear-btn.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.clear-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* White Pill Paste Button */
.paste-btn {
    background: #ffffff;
    color: #4b5563;
    border: none;
    border-radius: 50px;
    height: 44px;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    outline: none;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.paste-btn i {
    font-size: 0.95rem;
    color: #4b5563;
}

.paste-btn:hover {
    transform: scale(1.04);
    background: #f9fafb;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.paste-btn:active {
    transform: scale(0.96);
}

/* White Pill Download Button */
.submit-btn {
    background: #ffffff;
    color: #db2777; /* Vibrant violet/magenta text matching download logo */
    border: none;
    border-radius: 50px;
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    outline: none;
    flex-shrink: 0;
    margin-left: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.submit-btn i {
    font-size: 1.05rem;
    color: #db2777;
}

.submit-btn:hover {
    transform: scale(1.04);
    background: #f9fafb;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

/* ==========================================================================
   2. Lower Cards Base Glassmorphism (Dynamic Themes support)
   ========================================================================== */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Status wrapper for loading & errors */
.status-container {
    width: 100%;
}

/* --- Loader Spinner --- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--accent-purple);
    border-bottom-color: var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

.loader-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- Error Card --- */
.error-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.error-icon {
    font-size: 1.3rem;
    color: #ef4444;
    margin-top: 0.15rem;
}

.error-info {
    flex: 1;
}

.error-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.error-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Results Panel --- */
.result-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.result-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.uploader-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uploader-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.uploader-meta {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.platform-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.video-caption {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-indicators {
    display: flex;
    gap: 0.75rem;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff;
    text-decoration: none;
    height: 55px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.fallback-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
    padding: 0.65rem;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--border-glass);
}

.fallback-download-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.02);
}

/* QR Code Downloader styling */
.qr-download-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
}

.qr-code-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qr-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.qr-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Media Preview Area --- */
.result-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.preview-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 250px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    background: #000000;
}

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

/* --- Carousel Grid Section --- */
.carousel-media-section {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.carousel-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.carousel-section-title i {
    color: var(--accent-pink);
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.carousel-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    position: relative;
}

.carousel-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.carousel-item-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000000;
    position: relative;
    border: 1px solid var(--border-glass);
}

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

.carousel-item-type-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
}

.carousel-item-download-btn {
    width: 100%;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.carousel-item-download-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* --- Settings Accordion --- */
.settings-accordion {
    padding: 0;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
    transition: var(--transition-smooth);
}

.accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.02);
}

.trigger-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trigger-label i {
    color: var(--accent-purple);
    font-size: 1.2rem;
}

.chevron-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.4s ease;
}

.accordion-trigger.active .chevron-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

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

.settings-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.input-with-button {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.input-with-button input {
    flex: 1;
    height: 50px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-with-button input:focus {
    border-color: var(--accent-purple);
}

.save-btn {
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-bounce);
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.help-guide {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.help-guide h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-guide ol {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-guide li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-guide li a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.help-guide li a:hover {
    text-decoration: underline;
}

.help-guide kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: #ffffff;
}

/* --- Recent Downloads (History) --- */
.history-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.history-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-title i {
    color: var(--accent-pink);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.text-btn:hover {
    color: var(--accent-pink);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* History Scrollbar custom styling */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    transition: var(--transition-smooth);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(3px);
}

.history-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
    background: #000000;
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
    min-width: 0; /* Ensures text truncation works */
}

.history-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.history-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

.history-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    outline: none;
    text-decoration: none;
}

.history-action-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
    transform: scale(1.1);
}

.history-action-btn:active {
    transform: scale(0.95);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: rgba(18, 12, 38, 0.9);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-success {
    border-left: 4px solid var(--accent-purple);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    font-size: 1.15rem;
}

.toast-success .toast-icon { color: var(--accent-purple); }
.toast-error .toast-icon { color: #ef4444; }

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.toast.toast-out {
    animation: toastOut 0.35s ease-in forwards;
}

@keyframes toastOut {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* --- Micro-Animations & Entry Effects --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Helper Classes --- */
.hidden {
    display: none !important;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    body {
        padding: 4.5rem 0.5rem 2rem 0.5rem;
    }

    .theme-switcher-container {
        top: 1rem;
        right: 50%;
        transform: translateX(50%);
    }

    .banner-card {
        padding: 3rem 1.5rem;
    }

    .banner-title {
        font-size: 1.85rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .input-wrapper {
        border-radius: 30px;
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .input-wrapper input {
        text-align: center;
        height: auto;
    }

    .clear-btn {
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .paste-btn, .submit-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .result-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result-preview {
        order: -1; /* Puts preview on top on mobile */
    }

    .preview-wrapper {
        max-width: 200px;
    }

    .input-with-button {
        flex-direction: column;
    }
    
    .save-btn {
        justify-content: center;
        height: 50px;
    }

    .carousel-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }
}

/* ==========================================================================
   InstaVideoDown - Extended Styles (Header, Content, FAQ, Policy, Contact, Footer)
   ========================================================================== */

/* --- Sticky Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-glass);
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(7, 3, 19, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(236, 72, 153, 0.3));
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-highlight {
    color: var(--accent-pink);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-switcher-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.theme-switcher-nav:hover {
    border-color: var(--border-active);
}

.nav-btn {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transition: var(--transition-bounce);
}

.nav-btn:hover, .nav-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    outline: none;
}

/* Body adjustments for sticky header handled in main body rule */

/* --- Section Typography & Containers --- */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
}

/* --- How to Use Steps Grid --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.step-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-purple);
    position: relative;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.05);
}

.step-card:nth-child(2) .step-icon-wrapper {
    color: var(--accent-pink);
}

.step-card:nth-child(3) .step-icon-wrapper {
    color: var(--accent-blue);
}

.step-number {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-dark);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Key Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-pink);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.015);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-chevron {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.35s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-pink);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 1.75rem 1.25rem 1.75rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Premium Footer --- */
.main-footer {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-col ul a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: justify;
}

.footer-divider {
    height: 1px;
    background: var(--border-glass);
    width: 100%;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Policy Content Page Styles --- */
.policy-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.policy-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.policy-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-body p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.policy-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.policy-body ul {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-body ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.alert-box {
    display: flex;
    gap: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 0.5rem 0;
}

.alert-box i {
    font-size: 1.25rem;
    color: var(--accent-purple);
    margin-top: 0.15rem;
}

.alert-box span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Contact Page Grid & Form --- */
.contact-section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    width: 100%;
}

.contact-info-card h2, .contact-form-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-intro-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    font-size: 1.1rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-details strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.disclaimer-alert {
    display: flex;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.disclaimer-alert i {
    color: #ef4444;
    font-size: 1rem;
    margin-top: 0.15rem;
}

.disclaimer-alert p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Premium Form Elements */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-group input, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-submit-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
    height: 50px;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.form-submit-btn i {
    color: #ffffff;
}

.form-submit-btn:hover {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.45);
}

/* --- Extended Responsive Rules --- */
@media (max-width: 992px) {
    .main-footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 5.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    /* Navbar items collapse to absolute menu */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(18, 12, 38, 0.95);
        border-bottom: 1px solid var(--border-glass);
        padding: 2rem 0;
        gap: 1.5rem;
        display: none; /* Controlled by active class in JS */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        display: flex;
    }

    .header-actions {
        display: none; /* Hide selector and contact button on mobile header directly */
    }
    
    /* Reveal theme selector inside menu if active, or let it slide */
    .nav-menu::after {
        display: none;
    }
    
    .section-title {
        font-size: 1.6rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .policy-title {
        font-size: 1.85rem;
    }

    .policy-body h2 {
        font-size: 1.15rem;
    }
}
