﻿/* Codexsors PREMIUM HYBRID ZEBRA AESTHETICS */
:root {
    /* Global Base Variables */
    --bg-base: #090e1a;
    
    /* Zebra Striping Colors for Hybrid Theme (Dark base) */
    --bg-light-stripe: #ffffff;
    --text-dark-stripe: #0f172a;
    --text-secondary-dark-stripe: #475569;
    --border-light-stripe: #e2e8f0;
    
    --bg-dark-stripe: #0f172a;
    --text-light-stripe: #f8fafc;
    --text-secondary-light-stripe: #94a3b8;
    --border-dark-stripe: #1e293b;
    
    /* Core Glowing Palette */
    --primary: #2563eb;           /* Premium Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.08);
    
    --secondary: #3b82f6;         /* Bright Blue Accent */
    --secondary-hover: #2563eb;
    
    --accent: #0ea5e9;            /* Sky Blue Accent */
    --accent-hover: #0284c7;
    
    /* Semantic Colors */
    --green-success: #10b981;     /* Emerald Success */
    --green-glow: rgba(16, 185, 129, 0.08);
    --red-error: #ef4444;         /* Red Error */
    
    --card-radius: 20px;
    --btn-radius: 30px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Fallback/Legacy variables mapping for other sub-pages */
    --border-color: var(--border-dark-stripe);
    --border-color-hover: #334155;
    --text-primary: var(--text-light-stripe);
    --text-secondary: var(--text-secondary-light-stripe);
    --text-muted: #64748b;
    --bg-surface: #1e293b;
    --bg-surface-elevated: #1e293b;
    --bg-surface-solid: #0f172a;
}

/* =============================================
   LIGHT THEME OVERRIDES (.light-theme on body)
   ============================================= */
.light-theme {
    --bg-base:              #f0f4f8;
    --bg-surface:           #ffffff;
    --bg-surface-elevated:  #ffffff;
    --bg-surface-solid:     #e8edf3;
    --bg-dark-stripe:       #f0f4f8;
    --bg-light-stripe:      #ffffff;
    --text-primary:         #0f172a;
    --text-light-stripe:    #0f172a;
    --text-secondary:       #475569;
    --text-secondary-light-stripe: #475569;
    --text-dark-stripe:     #0f172a;
    --text-muted:           #64748b;
    --border-color:         #cbd5e1;
    --border-color-hover:   #94a3b8;
    --border-dark-stripe:   #e2e8f0;
    --border-light-stripe:  #e2e8f0;
    background-color: var(--bg-base);
    color: var(--text-primary);
}
.light-theme .cyber-bg { display: none; }
.light-theme .main-navbar {
    background: rgba(255,255,255,0.93) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    backdrop-filter: blur(16px);
}
.light-theme .nav-link { color: #334155 !important; }
.light-theme .nav-link:hover { color: var(--primary) !important; }
.light-theme .nav-link.active { color: #ffffff !important; background: var(--primary) !important; }
.light-theme .app-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}
.light-theme .prompts-header,
.light-theme .tools-filter-section,
.light-theme .tools-sidebar,
.light-theme .tool-workspace {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
.light-theme .tool-card,
.light-theme .sidebar-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.light-theme .tool-card:hover,
.light-theme .sidebar-item:hover {
    background: #eff6ff !important;
    border-color: var(--primary) !important;
}
.light-theme .sidebar-item.active {
    background: var(--primary) !important;
    color: #fff !important;
}
.light-theme .form-textarea,
.light-theme input[type="text"],
.light-theme input[type="number"],
.light-theme select {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.light-theme .tools-search-input-box,
.light-theme .search-box-container,
.light-theme #toolSearchInput {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.light-theme .tools-category-tabs .tab-btn {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
.light-theme .tools-category-tabs .tab-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
}
.light-theme .theme-toggle-btn {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}
.light-theme ::-webkit-scrollbar-track { background: #f0f4f8; }
.light-theme ::-webkit-scrollbar-thumb { background: #cbd5e1; }
/* Hero / Section Cards on homepage */
.light-theme .hero-section,
.light-theme .section-card,
.light-theme .stat-card,
.light-theme .feature-card,
.light-theme .blog-card,
.light-theme .prompt-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
.light-theme h1,.light-theme h2,.light-theme h3,
.light-theme h4,.light-theme h5,.light-theme h6 { color: #0f172a; }
.light-theme p { color: #475569; }


/* RESET & BODY */
html { scroll-behavior: smooth; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; }

body {
    background-color: var(--bg-base);
    color: var(--text-light-stripe);
    font-family: var(--font-ar);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Modern minimalist scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #202124;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3c4043;
}

/* CYBER BACKGROUND - SUBTLE GRADIENT SPOTLIGHT */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Faint elegant radial gradient at the top center to create dimension without clutter */
.cyber-bg::before {
    content: '';
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* APP MAIN CONTAINER */
.app-container {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* SECTION WRAPPER & INNER CONTAINER */
.section-wrapper {
    width: 100%;
    padding: 80px 0;
    transition: var(--transition-smooth);
    position: relative;
    box-sizing: border-box;
}

.section-wrapper.light-section {
    background-color: var(--bg-light-stripe);
    color: var(--text-dark-stripe);
}

.section-wrapper.dark-section {
    background-color: var(--bg-dark-stripe);
    color: var(--text-light-stripe);
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* SECTION HEADERS (TradeFusion Style) */
.section-header {
    text-align: right;
    margin-bottom: 40px;
    width: 100%;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 0.95rem;
    max-width: 650px;
}

.light-section .section-header p {
    color: var(--text-secondary-dark-stripe);
}

.dark-section .section-header p {
    color: var(--text-secondary-light-stripe);
}

.section-number {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
}

.section-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 16px;
    height: 2px;
    background-color: var(--primary);
}

/* PROFILE HEADER CARD */
.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    margin: 20px auto 24px auto;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

/* ─── Hero Logo Banner (replaces circular avatar) ─── */
.hero-logo-banner {
    width: calc(100% + 48px);
    margin: -40px -24px 28px -24px;
    padding: 24px 0;                  /* zero horizontal padding = full bleed */
    background: linear-gradient(135deg,
        rgba(37,99,235,0.06) 0%,
        rgba(124,58,237,0.04) 50%,
        rgba(37,99,235,0.06) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero-logo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-logo-img {
    width: 100%;          /* fills full banner width */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 24px rgba(37,99,235,0.15));
    transition: filter 0.4s ease;
}

body:not(.light-theme) .hero-logo-img {
    filter: drop-shadow(0 4px 32px rgba(59,130,246,0.35));
}

.hero-logo-img:hover {
    filter: drop-shadow(0 6px 36px rgba(37,99,235,0.35));
}

/* Light-theme banner adjustments */
.light-theme .hero-logo-banner {
    background: linear-gradient(135deg,
        rgba(37,99,235,0.04) 0%,
        rgba(124,58,237,0.02) 50%,
        rgba(37,99,235,0.04) 100%);
}


.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.badge-tech {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.profile-bio {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.profile-header-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.profile-card .social-ribbon {
    justify-content: center;
    margin-top: 8px;
}

/* DYNAMIC TOOLS GRID layout */
.interactive-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

@media(min-width: 768px) {
    .interactive-tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* AI Prompts card spans full width to avoid empty space */
    #promptHubCard {
        grid-column: 1 / -1;
    }

    /* AI Chatbot card spans full width */
    #aiAssistantCard {
        grid-column: 1 / -1;
    }
}

/* SOCIAL RIBBON (Material Design Circular/Rounded Capsule row) */
.social-ribbon {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    color: var(--text-dark-stripe);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light-stripe);
    background: #f8fafc;
    transition: var(--transition-smooth);
}

.social-icon i {
    font-size: 1.15rem;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Specific Material Brand colors on Hover */
.social-icon.facebook:hover { color: #1877f2; border-color: #1877f2; background: rgba(24, 119, 242, 0.08); }
.social-icon.telegram:hover { color: #8ab4f8; border-color: #8ab4f8; background: rgba(138, 180, 248, 0.08); }
.social-icon.youtube:hover { color: #ea4335; border-color: #ea4335; background: rgba(234, 67, 53, 0.08); }
.social-icon.tiktok:hover { color: #ffffff; border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.social-icon.instagram:hover { color: #ff8bcb; border-color: #ff8bcb; background: rgba(255, 139, 203, 0.08); }

/* GRID SYSTEMS FOR SECTIONS */
.tools-grid-half {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width: 768px) {
    .tools-grid-half {
        grid-template-columns: 1fr 1fr;
    }
}

/* GENERAL CARD STYLING */
.tool-card, .app-card, .contact-card, .profit-card-header, .campaign-item-card, .sub-tool-card {
    border-radius: var(--card-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

/* Contextual Card Styling: LIGHT SECTION */
.light-section .tool-card,
.light-section .app-card,
.light-section .contact-card,
.light-section .profit-card-header,
.light-section .campaign-item-card,
.light-section .sub-tool-card {
    background: #ffffff;
    border: 1px solid var(--border-light-stripe);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    color: var(--text-dark-stripe);
}

.light-section .tool-card:hover,
.light-section .app-card:hover,
.light-section .campaign-item-card:hover,
.light-section .sub-tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.light-section .tool-header h3,
.light-section .app-card h3,
.light-section .sub-tool-header h4 {
    color: var(--text-dark-stripe);
}

.light-section .tool-desc,
.light-section .card-desc,
.light-section .sub-tool-header p {
    color: var(--text-secondary-dark-stripe);
}

.light-section .tool-icon-wrapper,
.light-section .card-app-icon,
.light-section .sub-tool-icon {
    background: #f1f5f9;
    border: 1px solid var(--border-light-stripe);
    color: var(--secondary);
}

/* Contextual Card Styling: DARK SECTION */
.dark-section .tool-card,
.dark-section .app-card,
.dark-section .contact-card,
.dark-section .profit-card-header,
.dark-section .campaign-item-card,
.dark-section .sub-tool-card {
    background: #0f172a;
    border: 1px solid var(--border-dark-stripe);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    color: var(--text-light-stripe);
}

.dark-section .tool-card:hover,
.dark-section .app-card:hover,
.dark-section .campaign-item-card:hover,
.dark-section .sub-tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-4px);
}

.dark-section .tool-header h3,
.dark-section .app-card h3,
.dark-section .sub-tool-header h4 {
    color: #ffffff;
}

.dark-section .tool-desc,
.dark-section .card-desc,
.dark-section .sub-tool-header p {
    color: var(--text-secondary-light-stripe);
}

.dark-section .tool-icon-wrapper,
.dark-section .card-app-icon,
.dark-section .sub-tool-icon {
    background: #1e293b;
    border: 1px solid var(--border-dark-stripe);
    color: var(--primary);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tool-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.tool-desc {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* INPUTS & BUTTONS */
.finder-input-container, .chat-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
}

.light-section input,
.light-section select,
.light-section textarea {
    background: #f8fafc;
    border: 1px solid var(--border-light-stripe);
    color: var(--text-dark-stripe);
    outline: none;
    font-family: var(--font-ar);
    transition: var(--transition-smooth);
}

.light-section input:focus,
.light-section select:focus,
.light-section textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dark-section input,
.dark-section select,
.dark-section textarea {
    background: #090e1a;
    border: 1px solid var(--border-dark-stripe);
    color: var(--text-light-stripe);
    outline: none;
    font-family: var(--font-ar);
    transition: var(--transition-smooth);
}

.dark-section input:focus,
.dark-section select:focus,
.dark-section textarea:focus {
    border-color: var(--primary);
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.finder-input-container input, .chat-input-wrapper input {
    flex: 1;
    border-radius: var(--btn-radius);
    padding: 12px 20px;
    font-size: 0.9rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff !important;
    border: none;
    border-radius: var(--btn-radius);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    filter: brightness(1.05);
}

.primary-btn:active {
    transform: translateY(0);
}

.wide-btn {
    width: 100%;
}

/* RESULTS & PLACEHOLDERS */
.dark-section .finder-results {
    background: #090e1a;
    border: 1px solid var(--border-dark-stripe);
}

.light-section .finder-results {
    background: #f8fafc;
    border: 1px solid var(--border-light-stripe);
}

.finder-results {
    border-radius: 16px;
    padding: 18px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.no-result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.no-result-placeholder i {
    font-size: 1.5rem;
}

.alt-finder-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alt-result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.alt-result-item-header .paid-title {
    font-weight: 700;
    color: var(--red-error);
}

.alt-result-item-header .comparison-badge {
    background: rgba(129, 201, 149, 0.1);
    border: 1px solid var(--green-success);
    color: var(--green-success);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.alt-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alt-option-card {
    background: #121319;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.alt-option-info h4 {
    color: var(--green-success);
    font-weight: 700;
    font-size: 0.88rem;
}

.alt-option-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mini-btn-download {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--btn-radius);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.mini-btn-download:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
}

/* WIDGET 2: SECURITY FLOW CHECKER */
.security-flow-container {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.security-question-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-progress {
    font-family: var(--font-en);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.security-question-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.security-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.answer-btn {
    background: #121319;
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.answer-btn:hover {
    border-color: var(--primary);
    background: #171822;
}

.security-result {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.security-gauge {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 700;
    background: #0b0c10;
    border: 2px solid var(--border-color);
}

.gauge-glow-green { border-color: var(--green-success) !important; color: var(--green-success); }
.gauge-glow-yellow { border-color: #fdd663 !important; color: #fdd663; }
.gauge-glow-red { border-color: var(--red-error) !important; color: var(--red-error); }

.security-result h4 {
    font-size: 0.98rem;
    font-weight: 700;
}

.security-advice-list {
    text-align: right;
    list-style: none;
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.security-advice-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-advice-list li i {
    color: var(--green-success);
}

.security-advice-list li.warn i {
    color: #fdd663;
}

/* WIDGET 3: AI PROMPTS PREVIEW */
.prompt-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #08090c;
    padding: 3px;
    border-radius: 30px;
}

.prompt-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.prompt-tab-btn.active {
    background: #17181f;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.prompt-content-box {
    background: #08090c;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 14px;
    min-height: 90px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.prompt-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.prompt-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
    direction: ltr;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prompt-copy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    direction: rtl;
}

.prompt-copy-btn, .copy-prompt-btn {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    color: #60a5fa !important;
    border-radius: var(--btn-radius);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-copy-btn:hover, .copy-prompt-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* WIDGET 4: INTERACTIVE AI TECH CHATBOT */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-box {
    background: #08090c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.chat-message.bot-msg {
    background: #121319;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.chat-message.user-msg {
    background: var(--primary);
    color: var(--bg-base);
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hint-btn {
    background: #121319;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hint-btn:hover {
    border-color: var(--primary);
    color: white;
}

.chat-input-wrapper {
    display: flex;
    gap: 6px;
}

.chat-input-wrapper input {
    flex: 1;
    background: #0f1015;
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    padding: 10px 16px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input-wrapper input:focus {
    border-color: var(--primary);
}

/* MAIN APP HUB (Techs4Arab Theme) */
.content-hub-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-header {
    text-align: right;
}

.hub-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Search and Filter Layout */
.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box-container input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    padding: 12px 46px 12px 18px;
    color: white;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box-container input:focus {
    border-color: var(--primary);
}

.clear-search-btn {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.clear-search-btn:hover {
    color: white;
}

/* Category Filter Capsules */
.category-filters-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-filters-container::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    background: #121319;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    border-color: var(--border-color-hover);
    color: white;
}

.filter-pill.active {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
    font-weight: 700;
}

/* APP GRID CONTAINER */
.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media(min-width: 600px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 900px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* APP CARD DESIGN */
.app-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition-smooth);
}

.app-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.card-tag.apps { background: rgba(138, 180, 248, 0.1); color: var(--primary); border: 1px solid rgba(138, 180, 248, 0.2); }
.card-tag.games { background: rgba(242, 139, 130, 0.1); color: var(--red-error); border: 1px solid rgba(242, 139, 130, 0.2); }
.card-tag.ai { background: rgba(255, 139, 203, 0.1); color: var(--accent); border: 1px solid rgba(255, 139, 203, 0.2); }
.card-tag.tricks { background: rgba(129, 201, 149, 0.1); color: var(--green-success); border: 1px solid rgba(129, 201, 149, 0.2); }

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #121319;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.app-card:hover .card-app-icon {
    background: var(--primary);
    color: var(--bg-base);
    border-color: transparent;
}

.card-title-wrapper h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta-info {
    font-family: var(--font-en);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--btn-radius);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.app-card:hover .card-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
}

/* CONTACT SECTION */
.contact-section {
    width: 100%;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px 24px;
}

.contact-header {
    text-align: right;
    margin-bottom: 20px;
}

.contact-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-header h2 i {
    color: var(--primary);
}

.contact-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media(min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #0f1015;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-ar);
    transition: var(--transition-smooth);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    padding-left: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* APP FOOTER */
.app-footer {
    text-align: center;
    padding: 24px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media(min-width: 600px) {
    .footer-info {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: white;
}

.credit {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* MODAL DESIGN */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.modal-card {
    background: #0b0c10;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #121319;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: var(--border-color-hover);
    color: white;
}

.modal-scroll-content {
    padding: 24px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-item-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-left: 28px;
}

.modal-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #121319;
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.modal-item-title-wrapper h2 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.modal-item-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Comparison Display */
.comparison-card {
    background: #121319;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.comparison-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.compare-paid .val {
    color: var(--red-error);
    text-decoration: line-through;
    opacity: 0.8;
}

.compare-free .val {
    color: var(--green-success);
    font-weight: 700;
}

.modal-details-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-details-body h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.modal-details-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.features-checklist li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.features-checklist li i {
    color: var(--green-success);
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #121319;
    border-radius: 10px;
    padding: 8px;
}

.meta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.meta-value {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
}

/* DOWNLOAD TIMER STYLINGS */
.download-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-trigger-btn {
    width: 100%;
    background: var(--green-success);
    color: var(--bg-base);
    border: none;
    border-radius: var(--btn-radius);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-trigger-btn:hover {
    background: #81c995d0;
}

.download-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.circular-timer-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke-linecap: round;
}

.timer-countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.timer-status-msg {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.download-final-btn {
    width: 100%;
    background: var(--primary);
    color: var(--bg-base);
    border-radius: var(--btn-radius);
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: bounceBtn 1.5s infinite;
}

@keyframes bounceBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* TOAST NOTIFICATION SYSTEM */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #121319;
    border: 1px solid var(--green-success);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.active {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    color: var(--green-success);
    font-size: 1.1rem;
}

.toast-message {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ANIMATIONS & FADE-IN */
.fade-in { animation: fadeIn 0.6s ease forwards; }
.fade-in-delayed { opacity: 0; animation: fadeIn 0.6s ease 0.15s forwards; }

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* THEME TOGGLE BUTTON STYLING */
.theme-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: -16px;
    z-index: 100;
    position: relative;
}

.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg) scale(1.05);
}

/* LIGHT THEME VARIABLES OVERRIDE */
.light-theme {
    --bg-base: #f8fafc;
    
    /* Zebra Striping Colors for Light Theme */
    --bg-light-stripe: #ffffff;
    --text-dark-stripe: #0f172a;
    --text-secondary-dark-stripe: #475569;
    --border-light-stripe: #e2e8f0;
    
    --bg-dark-stripe: #f1f5f9;
    --text-light-stripe: #1e293b;
    --text-secondary-light-stripe: #64748b;
    --border-dark-stripe: #cbd5e1;
    
    --primary: #2563eb;           /* Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.12);
    
    --secondary: #0ea5e9;
    --accent: #7c3aed;
    --green-success: #059669;
    --red-error: #dc2626;

    /* Fallback/Legacy variables mapping for other sub-pages in light theme */
    --border-color: var(--border-light-stripe);
    --border-color-hover: #cbd5e1;
    --text-primary: var(--text-dark-stripe);
    --text-secondary: var(--text-secondary-dark-stripe);
    --text-muted: #64748b;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-solid: #ffffff;
}

.light-theme .cyber-bg::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
}

/* Light Theme overrides for widgets and elements */
.light-theme .social-icon {
    background: #ffffff;
    color: var(--text-dark-stripe);
    border-color: var(--border-light-stripe);
}

.light-theme .social-icon:hover {
    background: #f8fafc;
}

.light-theme .finder-input-container input,
.light-theme .chat-input-wrapper input,
.light-theme .search-box-container input,
.light-theme .customizer-group select,
.light-theme .customizer-group input,
.light-theme .form-group input,
.light-theme .form-group select,
.light-theme .form-group textarea {
    background: #ffffff;
    color: var(--text-dark-stripe);
    border-color: var(--border-light-stripe);
}

.light-theme .finder-input-container input:focus,
.light-theme .chat-input-wrapper input:focus,
.light-theme .search-box-container input:focus,
.light-theme .customizer-group select:focus,
.light-theme .customizer-group input:focus,
.light-theme .form-group input:focus,
.light-theme .form-group select:focus,
.light-theme .form-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.light-theme .chat-box,
.light-theme .prompt-content-box,
.light-theme .finder-results {
    background: #ffffff;
    border-color: var(--border-light-stripe);
}

.light-theme .chat-message.bot-msg {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .chat-message.user-msg {
    color: #ffffff;
    background: var(--primary);
}

.light-theme .answer-btn {
    background: #ffffff;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .answer-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.light-theme .metadata-grid,
.light-theme .comparison-card {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
}

.light-theme .modal-close-btn {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .modal-card {
    background: #ffffff;
    border-color: var(--border-light-stripe);
}

.light-theme .toast-notification {
    background: #ffffff;
    border-color: var(--green-success);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.light-theme .toast-message {
    color: var(--text-dark-stripe);
}

.light-theme .badge-tech {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--border-light-stripe);
}

.light-theme .timer-countdown-text {
    color: var(--text-dark-stripe);
}

.light-theme .campaign-thumbnail-wrapper {
    background: #f1f5f9;
}

/* === COMPREHENSIVE LIGHT THEME TEXT & WIDGET FIXES === */

/* Prompt Tabs */
.light-theme .prompt-tabs {
    background: #f1f5f9;
    border: 1px solid var(--border-light-stripe);
}

.light-theme .prompt-tab-btn {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .prompt-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--border-light-stripe);
}

/* Prompt Content Box */
.light-theme .prompt-content-box {
    background: #ffffff;
    border-color: var(--border-light-stripe);
}

.light-theme .prompt-text {
    color: var(--text-dark-stripe);
}

.light-theme .prompt-item {
    border-bottom-color: var(--border-light-stripe) !important;
}

/* Prompt Copy Button */
.light-theme .prompt-copy-btn,
.light-theme .copy-prompt-btn {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: var(--primary) !important;
    font-weight: 700;
}

.light-theme .prompt-copy-btn:hover,
.light-theme .copy-prompt-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Chat Quick Hints */
.light-theme .hint-btn {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .hint-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Chat Input */
.light-theme .chat-input-wrapper input {
    background: #ffffff;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

/* Hub Header */
.light-theme .hub-header h2 {
    color: var(--text-dark-stripe);
}

.light-theme .section-subtitle {
    color: var(--text-secondary-dark-stripe);
}

/* Filter Pills */
.light-theme .filter-pill {
    background: #ffffff;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.light-theme .filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Card Titles & Descriptions */
.light-theme .card-title-wrapper h3 {
    color: var(--text-dark-stripe);
}

.light-theme .card-desc {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .card-meta-info {
    color: var(--text-muted);
}

.light-theme .card-btn {
    border-color: var(--border-light-stripe);
    color: var(--primary);
}

.light-theme .app-card:hover .card-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.light-theme .card-app-icon {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
    color: var(--text-secondary-dark-stripe);
}

.light-theme .app-card:hover .card-app-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
}

/* Tool Headers & Descriptions */
.light-theme .tool-header h3 {
    color: var(--text-dark-stripe);
}

.light-theme .tool-desc {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .tool-icon-wrapper {
    background: #f1f5f9;
    border: 1px solid var(--border-light-stripe);
    color: var(--primary);
}

/* Security Question Card */
.light-theme .security-question-card h4 {
    color: var(--text-dark-stripe);
}

.light-theme .question-progress {
    color: var(--text-muted);
}

.light-theme .security-gauge {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
}

.light-theme .security-result h4 {
    color: var(--text-dark-stripe);
}

.light-theme .security-advice-list {
    color: var(--text-secondary-dark-stripe);
}

/* Alt Finder Results */
.light-theme .alt-option-card {
    background: #f8fafc;
    border-color: var(--border-light-stripe);
}

.light-theme .alt-option-info p {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .mini-btn-download {
    border-color: var(--border-light-stripe);
    color: var(--primary);
}

.light-theme .mini-btn-download:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Search Box */
.light-theme .search-box-container input {
    background: #ffffff;
    border-color: var(--border-light-stripe);
    color: var(--text-dark-stripe);
}

.light-theme .search-icon {
    color: var(--text-muted);
}

/* Contact Section */
.light-theme .contact-header h2 {
    color: var(--text-dark-stripe);
}

.light-theme .contact-header p {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .form-group label {
    color: var(--text-dark-stripe);
}

/* Footer */
.light-theme .copyright {
    color: var(--text-muted);
}

.light-theme .footer-link {
    color: var(--text-muted);
}

.light-theme .footer-link:hover {
    color: var(--text-dark-stripe);
}

.light-theme .footer-divider {
    background: var(--border-light-stripe);
}

/* Scrollbar in light theme */
.light-theme ::-webkit-scrollbar-track {
    background: #f8fafc;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sub-tool headers */
.light-theme .sub-tool-header h4 {
    color: var(--text-dark-stripe);
}

.light-theme .sub-tool-header p {
    color: var(--text-secondary-dark-stripe);
}

/* Calc & Pitch selects */
.light-theme .calc-group label,
.light-theme .pitch-group label {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .result-row {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .pitch-result-header {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .pitch-textarea {
    background: #ffffff;
    color: var(--text-dark-stripe);
    border-color: var(--border-light-stripe);
}

/* Campaign info */
.light-theme .campaign-info h4 {
    color: var(--text-dark-stripe);
}

.light-theme .campaign-target {
    color: var(--text-muted);
}

.light-theme .prompt-header-row span {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .prompt-code {
    background: #f8fafc;
    color: var(--text-secondary-dark-stripe);
    border-color: var(--border-light-stripe);
}

/* Profit Card Headers */
.light-theme .profit-card-header p {
    color: var(--text-secondary-dark-stripe);
}

/* Modal light overrides */
.light-theme .modal-card {
    background: #ffffff;
    border-color: var(--border-light-stripe);
}

.light-theme .modal-item-title-wrapper h2 {
    color: var(--text-dark-stripe);
}

.light-theme .modal-details-body h3 {
    color: var(--text-dark-stripe);
}

.light-theme .modal-details-body p {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .features-checklist li {
    color: var(--text-secondary-dark-stripe);
}

.light-theme .modal-item-icon {
    background: #f1f5f9;
    border-color: var(--border-light-stripe);
}

.light-theme .meta-label {
    color: var(--text-muted);
}

.light-theme .meta-value {
    color: var(--text-dark-stripe);
}

.light-theme .download-trigger-btn {
    color: #ffffff;
}

.light-theme .timer-status-msg {
    color: var(--text-secondary-dark-stripe);
}

/* Download Timer Ad */
.download-timer-ad {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.download-timer-ad::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.light-theme .download-timer-ad {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Preloader light */
.light-theme .preloader-overlay {
    background: #ffffff;
}

.light-theme .preloader-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .preloader-status {
    color: #475569 !important;
    font-weight: 700;
}

.light-theme .preloader-logo-container {
    border-color: transparent;
    background: transparent;
}


/* ==========================================
   DESIGN MONETIZATION HUB (PORTFOLIO & TOOLS)
   ========================================== */
.profit-hub-section {
    width: 100%;
    margin-bottom: 30px;
}

.profit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media(min-width: 950px) {
    .profit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.profit-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profit-card-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px 20px;
}

.profit-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profit-card-header h3 i {
    color: var(--primary);
}

.profit-card-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.campaign-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.campaign-item-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.campaign-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #0d0e12;
}

.campaign-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.campaign-thumbnail-wrapper:hover .campaign-img {
    transform: scale(1.03);
}

.campaign-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.campaign-thumbnail-wrapper:hover .campaign-overlay {
    opacity: 1;
}

.campaign-overlay span {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.campaign-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campaign-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.campaign-target {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Prompt Copy Section */
.prompt-copy-section {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}



.prompt-code {
    font-family: monospace, sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 8px;
    border-radius: 4px;
    max-height: 48px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Sub-Tools Cards (Calculator & Pitch) */
.sub-tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.calculator-card .sub-tool-icon {
    background: rgba(138, 180, 248, 0.1);
    color: var(--primary);
    border-color: rgba(138, 180, 248, 0.2);
}

.sub-tool-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.sub-tool-header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Inputs grids */
.calc-inputs-grid, .pitch-inputs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.calc-group, .pitch-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-group label, .pitch-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calc-group select, .pitch-group select {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--btn-radius);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calc-group select:focus, .pitch-group select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Live Results Area */
.calc-results-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.result-row strong {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
}

.result-tip-box {
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.result-tip-box i {
    color: var(--primary);
    margin-top: 2px;
}

/* Pitch Result Area */
.pitch-result-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pitch-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.copy-pitch-btn {
    background: var(--primary);
    border: none;
    color: var(--bg-base);
    padding: 4px 10px;
    border-radius: var(--btn-radius);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.copy-pitch-btn:hover {
    background: var(--primary-hover);
}

.pitch-textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    padding: 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
}

.pitch-textarea:focus {
    outline: none;
}

/* Lightbox overlay styling */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    background: var(--red-error);
    border-color: var(--red-error);
}

.lightbox-content {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: zoomInLight 0.3s ease forwards;
}

@keyframes zoomInLight {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--card-radius);
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lightbox-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

/* Light theme overrides for Design Profit Hub */
.light-theme .profit-card-header,
.light-theme .campaign-item-card,
.light-theme .sub-tool-card {
    background: #ffffff;
    border-color: #dadce0;
}

.light-theme .profit-card-header h3,
.light-theme .campaign-info h4,
.light-theme .sub-tool-header h4 {
    color: #202124;
}

.light-theme .prompt-copy-section,
.light-theme .calc-results-box,
.light-theme .pitch-result-box {
    background: #f1f3f4;
    border-color: #dadce0;
}

.light-theme .prompt-code,
.light-theme .pitch-textarea {
    background: #ffffff;
    color: #5f6368;
    border-color: #dadce0;
}

.light-theme .calc-group select,
.light-theme .pitch-group select {
    background: #ffffff;
    color: #202124;
    border-color: #dadce0;
}

.light-theme .result-tip-box {
    background: rgba(26, 115, 232, 0.05);
    border-color: rgba(26, 115, 232, 0.15);
}

/* Chat Action Link Styling inside messages */
.chat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-glow);
    border: 1px solid rgba(138, 180, 248, 0.2);
    color: var(--primary) !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    width: fit-content;
}

.chat-action-link:hover {
    background: var(--primary);
    color: var(--bg-base) !important;
    border-color: var(--primary);
}

.light-theme .chat-action-link {
    background: rgba(26, 115, 232, 0.06);
    border-color: rgba(26, 115, 232, 0.12);
}

/* Interactive Card Highlighter */
.glow-highlight {
    animation: glowPulse 2s ease;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0px rgba(37, 99, 235, 0); }
    50% { box-shadow: 0 0 15px 4px rgba(37, 99, 235, 0.25); }
    100% { box-shadow: 0 0 0 0px rgba(37, 99, 235, 0); }
}

/* ==========================================
   GOOGLE ADSENSE CONTAINER LAYOUT STYLES
   ========================================== */
.ad-container {
    width: 100%;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.ad-label {
    position: absolute;
    top: 4px;
    left: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-leaderboard {
    min-height: 90px;
}

.ad-footer {
    min-height: 120px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* In-grid Ad Card styling */
.ad-card-item {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    position: relative;
}

.ad-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.light-theme .ad-container,
.light-theme .ad-card-item {
    background: #ffffff;
    border-color: #dadce0;
}

/* ==========================================
   Codexsors PREMIUM DESIGN EXTENSIONS
   ========================================== */

/* 1. Cyber Grid Background Overlay */
.cyber-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}


/* 3. World-Class Preloader Overlay */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090e1a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
}

.preloader-logo-container {
    position: relative;
    width: 320px;
    height: 60px;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide Scan line effect for natural look */
.preloader-scan-line {
    display: none;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.preloader-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: var(--font-en);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.12s linear;
}

.preloader-status {
    font-family: var(--font-ar);
    font-size: 0.75rem;
    color: var(--text-secondary-light-stripe);
    letter-spacing: 0.5px;
    font-weight: 600;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.4; }
    to { opacity: 0.9; }
}

.app-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(138, 180, 248, 0.15);
    transform: translateY(-4px);
}


/* ==========================================
   MAIN NAVBAR STYLES
   ========================================== */
.main-navbar {
    position: sticky;
    top: 36px; /* Below points bar */
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.light-theme .main-navbar {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

/* SVG logo — sized by height, width scales automatically with viewBox */
.nav-logo .logo-svg {
    height: 40px;
    width: auto;
    max-width: 230px;
    display: block;
}

/* Keep old img rule for any page still using avatar.jpg fallback */
.nav-logo img:not(.logo-svg) {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* Hide text span when SVG logo is present */
.nav-logo .logo-svg ~ span {
    display: none;
}

.nav-logo span {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-light-stripe), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-en);
}

.light-theme .nav-logo span {
    background: linear-gradient(90deg, var(--text-dark-stripe), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.nav-link i {
    font-size: 0.95rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.light-theme .nav-link:hover {
    color: var(--text-dark-stripe);
    background: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

@media (max-width: 650px) {
    .main-navbar {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 6px 4px !important;
        overflow: hidden !important;
    }
    .nav-links {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .nav-link {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 5px 2px !important;
        font-size: 0.58rem !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        text-align: center !important;
        border-radius: 10px !important;
        gap: 2px !important;
    }
    .nav-link i {
        font-size: 0.65rem !important;
    }
}


/* ==========================================
   BLOG PORTAL & ARTICLES LAYOUT
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.blog-card-tag {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    line-height: 1.4;
}

.light-theme .blog-card-title {
    color: var(--text-dark-stripe);
}

.blog-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.blog-card-btn:hover {
    gap: 10px;
    text-shadow: 0 0 10px var(--primary-glow);
}


/* ARTICLE PAGE LAYOUT */
.article-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 36px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    line-height: 1.8;
}

.light-theme .article-container {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 28px;
    text-align: right;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.light-theme .article-title {
    color: var(--text-dark-stripe);
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.light-theme .article-content {
    color: var(--text-secondary-dark-stripe);
}

.article-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-top: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 3px solid var(--primary);
    padding-right: 8px;
}

.light-theme .article-content h2 {
    color: var(--text-dark-stripe);
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.callout-box {
    background: rgba(37, 99, 235, 0.05);
    border-right: 4px solid var(--primary);
    padding: 18px;
    border-radius: 12px;
    margin: 24px 0;
}

.callout-box.security {
    background: rgba(16, 185, 129, 0.05);
    border-right-color: var(--green-success);
}

.callout-box h4 {
    font-weight: 800;
    margin-bottom: 6px;
    color: white;
}

.light-theme .callout-box h4 {
    color: var(--text-dark-stripe);
}

.back-blog-btn {
    margin-bottom: 20px;
    align-self: flex-start;
}


/* ==========================================
   INTERACTIVE TOOLS LAYOUT
   ========================================== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 900px) {
    .tools-grid {
        grid-template-columns: 1.1fr 2fr;
    }
}

.tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media(min-width: 900px) {
    .tools-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding-left: 6px;
    }
    .tools-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .tools-sidebar::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }
}

.tool-menu-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: right;
    transition: var(--transition-smooth);
}

.tool-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-menu-btn.active {
    background: linear-gradient(135deg, var(--primary-glow), rgba(0, 0, 0, 0));
    border-color: var(--primary);
}

.tool-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.tool-menu-btn.active .tool-menu-icon {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

.tool-menu-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.light-theme .tool-menu-info h4 {
    color: var(--text-dark-stripe);
}

.tool-menu-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tool-workspace {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.light-theme .tool-workspace {
    background: #ffffff;
    border-color: #e2e8f0;
}

.tool-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tool-view.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-header-row {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tool-header-row h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
}

.light-theme .tool-header-row h3 {
    color: var(--text-dark-stripe);
}

.tool-header-row p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* 1. QR Generator Styles */
.qr-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 600px) {
    .qr-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.qr-output-pane {
    background: #111218;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.light-theme .qr-output-pane {
    background: #f8fafc;
}

#qrCanvasContainer {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 174px;
    height: 174px;
}

/* 2. Password Strength Analyzer Styles */
.strength-indicator-bar {
    height: 8px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--red-error);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar-fill.weak { width: 33%; background: var(--red-error); }
.strength-bar-fill.medium { width: 66%; background: #ea580c; }
.strength-bar-fill.strong { width: 100%; background: var(--green-success); }

.password-suggestion-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pass-generator-card {
    background: #121319;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.light-theme .pass-generator-card {
    background: #f8fafc;
}

.gen-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.gen-box-display {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--green-success);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. AI Art Prompts Studio */
.studio-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media(min-width: 600px) {
    .studio-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================
   REWARDS DASHBOARD & STORE
   ========================================== */
.rewards-header-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--card-radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.rewards-points-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.rewards-points-display .pts-large {
    font-family: var(--font-en);
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.rewards-points-display .pts-lbl {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* 1. Streaks Calendar Styles */
.streaks-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.light-theme .streaks-section {
    background: #ffffff;
    border-color: #e2e8f0;
}

.streaks-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.streak-day-card {
    background: #121319;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.light-theme .streak-day-card {
    background: #f8fafc;
}

.streak-day-card.claimed {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--green-success);
}

.streak-day-card.claimed .streak-icon {
    color: var(--green-success);
}

.streak-day-card.claimed .streak-pts {
    color: var(--green-success);
}

.streak-day-card .streak-num {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.streak-day-card .streak-icon {
    font-size: 1.1rem;
    color: #475569;
}

.streak-day-card .streak-pts {
    font-size: 0.68rem;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--text-secondary);
}

/* 2. Tasks & Shop Layout */
.rewards-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width: 900px) {
    .rewards-dashboard-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.shop-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

.shop-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
}

.light-theme .shop-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.shop-card:hover {
    border-color: var(--primary);
}

.shop-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.shop-card-desc h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.light-theme .shop-card-desc h4 {
    color: var(--text-dark-stripe);
}

.shop-card-desc p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.shop-card-cost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-family: var(--font-en);
    font-weight: 700;
    margin-top: 4px;
}

/* Tasks list */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.task-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
}

.light-theme .task-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.task-card:hover {
    border-color: var(--green-success);
}

.task-card.completed {
    border-color: rgba(16,185,129,0.3);
    opacity: 0.8;
}

.task-info-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-status-indicator {
    font-size: 1.15rem;
    color: #475569;
}

.task-card.completed .task-status-indicator {
    color: var(--green-success);
}

.task-text-side h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.light-theme .task-text-side h4 {
    color: var(--text-dark-stripe);
}

.task-text-side p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.task-reward-badge {
    background: rgba(16,185,129,0.08);
    color: var(--green-success);
    border: 1px solid rgba(16,185,129,0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-family: var(--font-en);
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

/* ==========================================================================
   DYNAMIC TOOLS SYSTEM EXTENSIONS
   ========================================================================== */
.tools-filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}
.light-theme .tools-filter-section {
    background: #ffffff;
    border-color: #e2e8f0;
}
.tools-search-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tools-search-input-box {
    flex: 1;
    min-width: 250px;
}
.tools-counter-badge {
    background: var(--primary-glow);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--btn-radius);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.light-theme .tools-counter-badge {
    background: rgba(37, 99, 235, 0.08);
}
.tools-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.tools-category-tabs::-webkit-scrollbar {
    height: 4px;
}
.tools-category-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.cat-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.light-theme .cat-tab {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.cat-tab:hover {
    border-color: var(--primary);
    color: white;
}
.light-theme .cat-tab:hover {
    color: var(--primary);
}
.cat-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.form-input, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.light-theme .form-input, .light-theme .form-textarea {
    background: #ffffff;
    border-color: #dadce0;
    color: #202124;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.pill-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.light-theme .pill-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.pill-btn:hover {
    border-color: var(--primary);
    color: white;
}
.light-theme .pill-btn:hover {
    color: var(--primary);
}
.pill-btn.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* ── Downloader Animations ─────────────────────────── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==============================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================== */
@media (max-width: 480px) {
    .app-container { padding: 10px 6px; }
    .profile-name { font-size: 1.3rem; }
    .profile-bio { font-size: 0.82rem; }
    .hero-logo-banner { padding: 14px 0; margin: -40px -24px 16px -24px; }
    .main-navbar { padding: 6px 3px !important; gap: 6px !important; overflow: visible !important; position: relative !important; }
    .nav-link { font-size: 0.55rem !important; padding: 4px 1px !important; gap: 2px !important; white-space: nowrap !important; flex: 1 1 0 !important; min-width: 0 !important; justify-content: center !important; letter-spacing: -0.3px !important; }
    .nav-link i { font-size: 0.62rem !important; }
    .section-title,
    .prompts-title { font-size: 1.25rem !important; }
    .section-subtitle,
    .prompts-subtitle { font-size: 0.78rem !important; }
    .tool-workspace { padding: 14px 10px !important; }
    .tool-menu-btn { padding: 12px 10px; font-size: 0.78rem; }
    .tools-search-input-box input { font-size: 0.78rem; }
    .tools-counter-badge { font-size: 0.7rem; }
    .primary-btn { font-size: 0.8rem; padding: 10px 16px; }
    .form-textarea { font-size: 0.8rem; }
    .preloader-logo-container { width: 220px; height: 45px; }
    .preloader-title { font-size: 1.2rem; }
    .blog-card { padding: 14px; }
    .blog-card-title { font-size: 0.95rem; }
    .stat-card { padding: 14px; }
    .footer-info { flex-direction: column; gap: 8px; text-align: center; }
    .footer-links { justify-content: center; }
    .ad-container { margin: 12px 0; }
    .viral-topbar { font-size: 0.68rem; padding: 6px 8px; }
    .viral-topbar-item { font-size: 0.65rem; }
}

/* ==============================================
   RESPONSIVE — TABLET (481px – 1024px)
   ============================================== */
@media (min-width: 481px) and (max-width: 1024px) {
    .app-container { width: 98%; padding: 16px 10px; }
    .nav-link { font-size: 0.78rem; padding: 7px 12px; }
    .profile-name { font-size: 1.6rem; }
    .tools-grid { grid-template-columns: 1fr !important; }
    .interactive-tools-grid { grid-template-columns: 1fr 1fr; }
    .hero-logo-banner { padding: 18px 0; }
    .preloader-logo-container { width: 280px; }
    .section-title { font-size: 1.4rem; }
}

/* ==============================================
   RESPONSIVE — LARGE DESKTOP (≥1440px)
   ============================================== */
@media (min-width: 1440px) {
    .app-container { max-width: 1500px; }
}

/* ==============================================
   GLOBAL LIVE SEARCH & NAV CENTER SYSTEM STYLES
   ============================================== */
.theme-toggle-wrapper {
    display: none !important;
}

.nav-center-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    max-width: 340px !important;
    margin: 0 12px !important;
    z-index: 1000 !important;
}

.nav-center-controls .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.88rem !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    flex-shrink: 0 !important;
}

.nav-center-controls .theme-toggle-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: scale(1.06) !important;
}

.global-search-box {
    position: relative;
    flex: 1;
    width: 100%;
    transition: all 0.3s ease;
}

.global-search-box input {
    width: 100%;
    padding: 9px 36px 9px 30px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #f8fafc;
    font-family: 'Cairo', sans-serif;
    font-size: 0.78rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.light-theme .global-search-box input {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.global-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    background: var(--bg-surface);
}

.light-theme .global-search-box input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

.global-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px;
}

.search-clear-btn:hover {
    color: var(--primary);
}

/* SEARCH RESULTS DROPDOWN */
.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: 94vw;
    max-height: 400px;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999999 !important;
    display: none;
    padding: 8px;
    direction: rtl;
}

.light-theme .global-search-results {
    background: rgba(255, 255, 255, 0.98);
    border-color: #cbd5e1;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.global-search-results.active {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-theme .search-result-item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(37, 99, 235, 0.14);
    transform: translateX(-3px);
}

.light-theme .search-result-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.search-result-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(14, 165, 233, 0.25));
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.light-theme .search-result-title {
    color: #0f172a;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 2px;
}

.light-theme .search-result-meta {
    color: #64748b;
}

.search-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #3b82f6;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .main-navbar {
        overflow: visible !important;
    }
    .nav-center-controls {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px 0 2px 0 !important;
    }
    .global-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }
    .global-search-box input {
        font-size: 0.78rem;
        padding: 8px 30px 8px 24px;
    }
    .global-search-results {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        right: 0 !important;
        left: 0 !important;
        margin: 0 auto !important;
        z-index: 999999 !important;
    }
}


/* ====================================================
   PHONES BANNER & REVIEWS SECTION
   ==================================================== */
.phones-banner-section {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sponsor CTA Bar */
.sponsor-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 14px;
    padding: 14px 24px;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}
.sponsor-cta-bar span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary, #e2e8f0);
}
.sponsor-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: Cairo, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.sponsor-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* Phone Slider */
.phone-slider-wrapper {
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}
.phone-slider-track {
    display: flex;
    gap: 18px;
    animation: phoneScroll 40s linear infinite;
    width: max-content;
}
.phone-slider-wrapper:hover .phone-slider-track { animation-play-state: paused; }
@keyframes phoneScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Phone Card */
.phone-card {
    background: var(--surface, #0f1629);
    border: 1px solid var(--border, #1e293b);
    border-radius: 18px;
    padding: 22px 18px;
    width: 220px;
    min-width: 220px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.phone-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(59,130,246,0.2); }
.phone-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}
.phone-icon-wrap {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.phone-brand-icon { font-size: 2rem; }
.phone-brand { font-size: 0.72rem; color: var(--text-muted, #64748b); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.phone-name { font-size: 1rem; font-weight: 800; color: var(--text-primary, #e2e8f0); margin: 4px 0 10px; }
.phone-specs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.phone-specs span { font-size: 0.72rem; color: var(--text-muted, #94a3b8); display: flex; align-items: center; justify-content: center; gap: 6px; }
.phone-specs i { color: #3b82f6; }
.phone-price { font-size: 0.9rem; font-weight: 800; color: #10b981; margin-bottom: 6px; }
.phone-rating { font-size: 0.82rem; margin-bottom: 14px; }
.phone-card-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-family: Cairo, sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.phone-card-btn:hover { opacity: 0.85; }

/* Review Filters */
.phone-review-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pr-filter {
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid var(--border, #1e293b);
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-family: Cairo, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.pr-filter:hover, .pr-filter.active {
    background: var(--primary, #3b82f6);
    color: #fff;
    border-color: var(--primary, #3b82f6);
}

/* Reviews Grid */
.phone-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--surface, #0f1629);
    border: 1px solid var(--border, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.review-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; }
.review-thumb-wrap iframe { width: 100%; height: 100%; border: none; }
.review-info { padding: 14px 16px; }
.review-brand-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.review-brand-tag.samsung { background: rgba(20,40,160,0.2); color: #6080ff; }
.review-brand-tag.apple   { background: rgba(100,100,100,0.2); color: #aaa; }
.review-brand-tag.xiaomi  { background: rgba(255,105,0,0.2); color: #FF8C00; }
.review-brand-tag.oppo    { background: rgba(29,111,164,0.2); color: #5BC8F5; }
.review-brand-tag.other   { background: rgba(204,0,0,0.2); color: #FF6666; }
.review-info h4 { font-size: 0.92rem; font-weight: 700; color: var(--text-primary, #e2e8f0); margin-bottom: 8px; line-height: 1.4; }
.review-meta { font-size: 0.78rem; color: var(--text-muted, #64748b); }

/* Light theme overrides */
.light-theme .phone-card,
.light-theme .review-card {
    background: #fff;
    border-color: #e2e8f0;
}
.light-theme .phone-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.light-theme .phone-name { color: #0f172a; }
.light-theme .review-info h4 { color: #0f172a; }
.light-theme .phone-specs span { color: #475569; }
.light-theme .sponsor-cta-bar span { color: #0f172a; }
.light-theme .pr-filter { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.light-theme .phone-icon-wrap { background: rgba(0,0,0,0.04); }

/* Hide filtered cards */
.review-card.hidden { display: none; }

@media (max-width: 768px) {
    .sponsor-cta-bar { flex-direction: column; text-align: center; }
    .phone-reviews-grid { grid-template-columns: 1fr; }
}

/* Phone Thumbnail Image */
.phone-img-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.phone-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.phone-card:hover .phone-thumb-img { transform: scale(1.08); }
.light-theme .phone-img-wrap { background: #f1f5f9; border-color: #e2e8f0; }

/* ====== SLIDER ARROWS ====== */
.phone-slider-outer {
    position: relative;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.slider-arrow:hover { transform: translateY(-50%) scale(1.12); box-shadow: 0 6px 20px rgba(59,130,246,0.6); }
.slider-arrow-prev { right: -18px; }
.slider-arrow-next { left: -18px; }
@media (max-width: 768px) {
    .slider-arrow-prev { right: 4px; }
    .slider-arrow-next { left: 4px; }
}

/* Phone Image Carousel (multi-angle) */
.phone-img-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 12px;
}
.pic-carousel-inner {
    display: flex;
}
.pic-carousel-inner .phone-thumb-img {
    min-width: 100%;
    width: 100%;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
}
.pic-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}
.pic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #334155;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.pic-dot.active { background: #3b82f6; transform: scale(1.3); }
.light-theme .pic-dot { background: #cbd5e1; }

/* ====== VIDEO REVIEWS CARDS ====== */
.video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
.video-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s;
}
.video-thumb-wrapper:hover .video-card-img { transform: scale(1.08); }
.video-play-btn {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #FF0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(255,0,0,0.5);
    transition: transform 0.3s, background 0.3s;
    z-index: 2;
}
.video-thumb-wrapper:hover .video-play-btn {
    transform: scale(1.18);
    background: #cc0000;
}
.video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.watch-video-btn {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #FF0000, #cc0000);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-family: Cairo, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.2s;
}
.watch-video-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.light-theme .video-thumb-wrapper { background: #f8fafc; }

/* Direct YouTube Watch Button */
.yt-direct-btn {
    background: #1e293b;
    color: #FF0000;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 9px 14px;
    font-family: Cairo, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    white-space: nowrap;
}
.yt-direct-btn:hover {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
}
.light-theme .yt-direct-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #FF0000;
}
.light-theme .yt-direct-btn:hover {
    background: #FF0000;
    color: #fff;
}

/* Sponsored Ribbon for In-Feed Native Ad Card */
.sponsored-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
    z-index: 3;
}

/* ==========================================================================
   CODEXSORS — COMPREHENSIVE MOBILE RESPONSIVENESS FIX v2
   Fixes: content shifted right, not full-width, overflow issues
   ========================================================================== */

/* ─── Global Mobile Overrides (≤768px) ─── */
@media (max-width: 768px) {

    /* Kill ALL horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    *, *::before, *::after {
        max-width: 100vw;
        box-sizing: border-box !important;
    }

    /* Main Container — full width */
    .app-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        margin: 0 !important;
    }

    /* Section Wrapper — full bleed */
    .section-wrapper {
        padding: 32px 0 !important;
        width: 100% !important;
    }

    .section-inner {
        padding: 0 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .section-header h2 {
        font-size: 1.3rem !important;
    }

    .section-header p {
        font-size: 0.85rem !important;
        max-width: 100% !important;
    }

    /* Profile Card — FULL WIDTH & CENTERED */
    .profile-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 12px !important;
        margin: 8px 0 16px 0 !important;
        text-align: center !important;
    }

    .hero-logo-banner {
        width: calc(100% + 24px) !important;
        margin: -16px -12px 16px -12px !important;
        padding: 14px 0 !important;
    }

    .hero-logo-img {
        max-width: 80% !important;
        margin: 0 auto !important;
    }

    .profile-name {
        font-size: 1.3rem !important;
        flex-wrap: wrap;
        gap: 6px !important;
        justify-content: center !important;
    }

    .profile-bio {
        font-size: 0.85rem !important;
        margin-bottom: 14px !important;
        max-width: 100% !important;
    }

    /* Social Ribbon — centered icons only */
    .social-ribbon {
        justify-content: center !important;
        gap: 6px !important;
    }

    .social-icon {
        padding: 8px !important;
        font-size: 0.72rem !important;
        min-width: 38px !important;
        justify-content: center !important;
    }

    .social-icon i {
        font-size: 1rem !important;
    }

    .social-icon span {
        display: none !important;
    }

    /* Navbar — full width, wrapped */
    .main-navbar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        margin-bottom: 12px !important;
        border-radius: 16px !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .nav-logo .logo-svg {
        height: 28px !important;
        max-width: 150px !important;
    }

    .nav-center-controls {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px 0 2px 0 !important;
    }

    .nav-links {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        gap: 2px !important;
        overflow: hidden !important;
    }

    .nav-link {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 5px 3px !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
        text-align: center !important;
        border-radius: 10px !important;
        gap: 2px !important;
    }

    .nav-link i {
        font-size: 0.65rem !important;
    }

    /* ALL Cards — full width */
    .tool-card, .app-card, .contact-card,
    .profit-card-header, .campaign-item-card, .sub-tool-card {
        padding: 16px 12px !important;
        width: 100% !important;
    }

    .tool-header h3 {
        font-size: 0.95rem !important;
    }

    .tool-desc {
        font-size: 0.82rem !important;
    }

    /* ALL Grids — single column */
    .interactive-tools-grid,
    .apps-grid,
    .blog-cards-grid,
    .blog-grid,
    .tools-grid-half,
    .features-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Buttons */
    .primary-btn {
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
        width: 100% !important;
    }

    /* Input fields */
    .finder-input-container,
    .chat-input-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .finder-input-container input,
    .chat-input-wrapper input {
        font-size: 0.85rem !important;
        padding: 10px 14px !important;
        width: 100% !important;
    }

    /* Contact Card */
    .contact-card {
        padding: 16px 12px !important;
    }

    /* Prompt Tabs */
    .prompt-tabs {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
    }

    .prompt-tab-btn {
        font-size: 0.7rem !important;
        padding: 6px 4px !important;
    }

    /* Security Answers */
    .security-answers {
        grid-template-columns: 1fr !important;
    }

    /* Alt Option */
    .alt-option-card {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        padding: 12px 8px !important;
    }

    .stat-number {
        font-size: 1.2rem !important;
    }

    /* Phones */
    .phones-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .phone-reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .phones-banner-section {
        padding: 24px 8px 20px !important;
    }

    /* Footer */
    .app-footer {
        padding: 16px 10px !important;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
    }

    /* Search Results */
    .global-search-results {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    /* Media */
    img, video, iframe, svg {
        max-width: 100% !important;
    }

    iframe {
        width: 100% !important;
    }

    pre, code {
        white-space: pre-wrap !important;
        word-break: break-all !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
}

/* ─── Small Mobile (320px-480px) ─── */
@media (max-width: 480px) {

    .app-container {
        padding: 6px !important;
    }

    .section-inner {
        padding: 0 8px !important;
    }

    .section-header h2 {
        font-size: 1.1rem !important;
    }

    .profile-name {
        font-size: 1.15rem !important;
    }

    .profile-card {
        padding: 12px 8px !important;
    }

    .hero-logo-banner {
        width: calc(100% + 16px) !important;
        margin: -12px -8px 12px -8px !important;
    }

    .phones-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-link {
        font-size: 0.55rem !important;
        padding: 4px 2px !important;
    }

    .nav-link i {
        font-size: 0.6rem !important;
    }
}