/* PiPar Website - Main Styles */
/* Colors: Deep Navy #002233, Mid Navy #003344, Dark Teal #006064, Ice #dae8ee, Logo Teal #2DA5A0 */

/* Self-hosted Google Fonts (GDPR compliant — no requests to Google) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(fonts/roboto-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(fonts/roboto-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/roboto-condensed-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/roboto-condensed-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS Variables for easy theme switching */
:root {
    --color-bg: #ffffff;
    --color-bg-elevated: #f8fbfc;
    --color-text: #002233;
    --color-accent: #2DA5A0;
    --color-border: #dae8ee;
    --color-glow: rgba(45, 165, 160, 0.15);
}

[data-theme="dark"] {
    --color-bg: #002233;
    --color-bg-elevated: #003344;
    --color-text: #dae8ee;
    --color-border: #006064;
    --color-glow: rgba(45, 165, 160, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    overflow-x: hidden;
}

[data-theme="light"] body {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(45, 165, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 51, 68, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f0f7f9 50%, #dae8ee 100%);
    background-attachment: fixed;
}

[data-theme="dark"] body {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(0, 96, 100, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(45, 165, 160, 0.15) 0%, transparent 40%),
        linear-gradient(180deg, #001a2c 0%, #002233 30%, #003344 100%);
    background-attachment: fixed;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-accent);
        margin-bottom: 0.25rem;
}

h2 {
    font-size: 2rem;
    color: var(--color-accent);
}

h3 {
    font-size: 1.5rem;
}

/* Default link styles - global */
a {
    color: #2DA5A0;
    text-decoration: underline;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: #3dbdb8;
    text-shadow: 0 0 8px rgba(45, 165, 160, 0.4);
}

[data-theme="dark"] a {
    color: #2DA5A0;
}

[data-theme="dark"] a:hover {
    color: #3dbdb8;
    text-shadow: 0 0 8px rgba(45, 165, 160, 0.6);
}

/* Override for navigation and button-style links */
.nav-link,
.nav-secondary a,
.footer-links a,
.footer-social a,
.pricing-cta,
.download-btn,
.mobile-quick-link,
.mobile-miniapps-link,
.hero-miniapps,
.logo a {
    text-decoration: none;
    color: var(--color-text);
}

.nav-link:hover,
.nav-secondary a:hover,
.footer-links a:hover {
    text-decoration: underline;
    text-shadow: none;
}

/* Buttons keep their own colors */
.pricing-cta,
.download-btn,
.mobile-quick-link,
.image-lightbox-download {
    color: #ffffff !important;
}

[data-theme="dark"] .pricing-cta,
[data-theme="dark"] .download-btn,
[data-theme="dark"] .mobile-quick-link,
[data-theme="dark"] .image-lightbox-download {
    color: #ffffff !important;
}

[data-theme="light"] .pricing-cta,
[data-theme="light"] .download-btn,
[data-theme="light"] .mobile-quick-link,
[data-theme="light"] .image-lightbox-download {
    color: #ffffff !important;
}

.footer-social a {
    color: var(--color-text);
    opacity: 0.7;
}

.footer-social a:hover {
    color: var(--color-accent);
    opacity: 1;
    text-shadow: none;
}

/* Layout */
.site-wrapper {
    min-height: 100vh;
    padding-top: 200px; /* Height of fixed header */
}

/* Header - Top Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

[data-theme="dark"] .site-header {
    background: linear-gradient(180deg, rgba(0, 51, 68, 0.95) 0%, rgba(0, 34, 51, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 96, 100, 0.5);
}

[data-theme="light"] .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 247, 249, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 165, 160, 0.3);
}

/* Hide mobile header on desktop */
.mobile-header-top {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 40px;
    width: auto;
}

.tagline {
    font-size: 0.75rem;
    color: var(--color-text);
    opacity: 0.6;
    margin-left: 0.5rem;
}

/* Top Navigation */
.nav-primary {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-primary li {
    margin: 0;
}

.nav-link {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.3rem;
    transition: font-weight 0.2s;
}

.nav-link:hover,
.nav-link.active {
    font-weight: 700;
}

/* Theme Toggle - Small Icon Style */
.theme-toggle {
    margin-left: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.theme-toggle-btn:hover {
    opacity: 0.7;
}

/* Language Toggle */
.lang-toggle {
    margin-left: 0.5rem;
}

.lang-toggle-btn {
    background: none;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-size: 0.75rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    line-height: 1;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-toggle-btn:hover {
    opacity: 1;
}

/* Content Area with Sidebar */
.content-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
    max-width: 100vw;
    overflow-x: hidden;
}

/* Left Sidebar */
.sidebar {
    width: 200px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    padding: 2rem 1.5rem;
}

.sidebar-image {
    margin-top: auto;
    width: 100%;
}

.sidebar-image img {
    width: 100%;
    display: block;
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(90deg, rgba(0, 51, 68, 0.6) 0%, rgba(0, 34, 51, 0.3) 100%);
    border-right: 1px solid rgba(0, 96, 100, 0.4);
}

[data-theme="light"] .sidebar {
    background: linear-gradient(90deg, rgba(218, 232, 238, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-right: 1px solid rgba(45, 165, 160, 0.2);
}

/* Secondary Navigation (Sidebar Links) */
.nav-secondary {
    list-style: none;
}

.nav-secondary li {
    margin-bottom: 1rem;
}

.nav-secondary a {
    font-size: 0.9rem;
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 3rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    margin-top: 2rem;
    margin-bottom: 0.1rem;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 0.1rem;
}

.page-title {
    margin-bottom: 0;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    overflow: hidden;
}

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

.carousel-slides {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.carousel-arrow:hover {
    color: var(--color-accent);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.carousel-dot:hover {
    opacity: 0.7;
}

.carousel-dot.active {
    background-color: var(--color-accent);
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}

.section-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    transition: background 0.3s;
}

[data-theme="dark"] .section-alt {
    background: linear-gradient(135deg, rgba(0, 51, 68, 0.4) 0%, rgba(0, 34, 51, 0.2) 100%);
    border: 1px solid rgba(0, 96, 100, 0.3);
}

[data-theme="dark"] .section-alt:hover {
    background: linear-gradient(135deg, rgba(0, 51, 68, 0.5) 0%, rgba(0, 34, 51, 0.3) 100%);
    border-color: rgba(45, 165, 160, 0.4);
}

[data-theme="light"] .section-alt {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(218, 232, 238, 0.4) 100%);
    border: 1px solid rgba(45, 165, 160, 0.2);
}

[data-theme="light"] .section-alt:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(218, 232, 238, 0.5) 100%);
    border-color: rgba(45, 165, 160, 0.4);
}

.section-text {
    padding: 1rem;
}

.section-image {
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

[data-theme="dark"] .section-image img {
    border-color: rgba(0, 96, 100, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(45, 165, 160, 0.1);
}

[data-theme="light"] .section-image img {
    border-color: rgba(45, 165, 160, 0.3);
    box-shadow: 0 4px 20px rgba(0, 34, 51, 0.1), 0 0 40px rgba(45, 165, 160, 0.08);
}

/* Pricing Cards */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    border: 2px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s;
}

[data-theme="dark"] .pricing-card {
    background: linear-gradient(180deg, rgba(0, 51, 68, 0.5) 0%, rgba(0, 34, 51, 0.3) 100%);
    border-color: rgba(0, 96, 100, 0.4);
}

[data-theme="dark"] .pricing-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(45, 165, 160, 0.2);
    transform: translateY(-4px);
}

[data-theme="light"] .pricing-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(218, 232, 238, 0.4) 100%);
    border-color: rgba(45, 165, 160, 0.3);
}

[data-theme="light"] .pricing-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(45, 165, 160, 0.15);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    border-width: 3px;
}

.pricing-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.pricing-amount .old-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.pricing-period {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.2s;
}

.pricing-cta:hover {
    opacity: 0.85;
}

/* Q&A Section */
.qa-list {
    list-style: none;
    margin-top: 2rem;
}

.qa-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.qa-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
}

.qa-question:hover {
    color: var(--color-accent);
}

.qa-toggle {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s;
}

.qa-item.open .qa-toggle {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 0;
}

.qa-item.open .qa-answer {
    max-height: 1000px;
    padding: 0 0 1rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

[data-theme="dark"] .feature-card {
    background: rgba(0, 51, 68, 0.3);
    border-color: rgba(0, 96, 100, 0.4);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(0, 51, 68, 0.5);
    border-color: var(--color-accent);
}

[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(45, 165, 160, 0.25);
}

[data-theme="light"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-accent);
}

.feature-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--color-border);
    padding: 2rem 3rem;
    margin-left: 200px;
    text-align: center;
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, rgba(0, 34, 51, 0.5) 0%, rgba(0, 26, 44, 0.8) 100%);
    border-top-color: rgba(0, 96, 100, 0.4);
}

[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, rgba(218, 232, 238, 0.5) 0%, rgba(218, 232, 238, 0.8) 100%);
    border-top-color: rgba(45, 165, 160, 0.3);
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Mobile Quick Links (show only on mobile) */
.mobile-quick-links {
    display: none !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Show mobile header on mobile */
    .mobile-header-top {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    /* Hide desktop logo on mobile */
    .site-header > .logo {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        background: none;
        border: none;
        font-family: 'Roboto Condensed', sans-serif;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 1rem;
        color: var(--color-text);
        cursor: pointer;
    }

    .nav-primary {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 0 0 1rem 0;
    }
    
    .nav-primary.open {
        display: flex;
    }
    
    .nav-primary li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
    }
    
    /* Hide theme toggle from inside menu on mobile */
    .nav-primary .theme-toggle {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100vw;
    }

    .site-footer {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .section-alt {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Fix alternating sections on mobile - always text first, then image */
    .section-alt .section-text {
        order: 1;
    }
    
    .section-alt .section-image {
        order: 2;
    }

    .pricing-container {
        grid-template-columns: 1fr;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow.left {
        left: 2%;
    }
    
    .carousel-arrow.right {
        right: 2%;
    }
    
    /* Mobile Quick Links - Orange rounded boxes */
    .mobile-quick-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 2rem 0;
        padding: 0;
    }
    
    .mobile-quick-link {
        display: block;
        background-color: var(--color-accent);
        color: #ffffff;
        text-align: center;
        padding: 1rem;
        text-decoration: none;
        border-radius: 8px;
        font-family: 'Roboto Condensed', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
    }
    
    .mobile-quick-link:active {
        opacity: 0.8;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Footer Social Links */
.footer-social {
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-block;
    margin: 0 0.75rem;
    font-size: 1.5rem;
}

/* Desktop - hide mobile elements */
@media (min-width: 769px) {
    .mobile-header-top {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .site-header > .logo {
        display: flex !important;
    }
    
    .nav-primary {
        display: flex !important;
    }
    
    .sidebar {
        display: block !important;
    }
}

/* Hero Split Layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.hero-carousel {
    min-width: 0; /* Prevent grid blowout */
}

.hero-carousel .carousel {
    margin: 0;
    height: 100%;
}

.hero-miniapps {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-miniapps:hover {
    transform: scale(1.02);
}

[data-theme="dark"] .hero-miniapps:hover {
    box-shadow: 0 0 40px rgba(45, 165, 160, 0.3);
}

[data-theme="light"] .hero-miniapps:hover {
    box-shadow: 0 0 40px rgba(45, 165, 160, 0.2);
}

.fannyphones-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.miniapps-text {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.miniapps-title {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5), 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.miniapps-cta {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5), 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Hero Split - Mobile */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .hero-carousel {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-miniapps {
        max-height: 350px;
        width: 100%;
        max-width: 100%;
    }
    
    .fannyphones-img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .miniapps-title {
        font-size: 1.6rem;
    }
    
    .miniapps-cta {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-split {
        gap: 1rem;
    }
    
    .hero-miniapps {
        max-height: 300px;
    }
    
    .miniapps-text {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .miniapps-title {
        font-size: 1.3rem;
    }
    
    .miniapps-cta {
        font-size: 1.1rem;
    }
    
    .carousel-slide {
        padding: 1rem 0.5rem;
    }
    
    .carousel-slide img {
        max-width: 100%;
        height: auto;
    }
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
    display: grid;
}

.mobile-only {
    display: none;
}

/* Mobile Hero Section */
.mobile-hero {
    margin-bottom: 2rem;
}

.mobile-hero .carousel {
    margin-bottom: 1.5rem;
}

.mobile-hero .carousel-slide {
    padding: 0.5rem;
}

.mobile-hero .carousel-slide img {
    max-width: 100%;
    height: auto;
}

.mobile-miniapps-link {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 51, 68, 0.5) 0%, rgba(0, 34, 51, 0.3) 100%);
    border: 1px solid rgba(0, 96, 100, 0.4);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-miniapps-link img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.mobile-miniapps-link span {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

[data-theme="light"] .mobile-miniapps-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(218, 232, 238, 0.5) 100%);
    border: 1px solid rgba(45, 165, 160, 0.3);
}

[data-theme="light"] .mobile-miniapps-link span {
    color: #006064;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Light theme: dark banner */
[data-theme="light"] #cookie-banner {
    background: #002233;
    border-top: 2px solid var(--color-accent);
    color: #dae8ee;
}

[data-theme="light"] .cookie-content a {
    color: var(--color-accent);
}

/* Dark theme: light banner */
[data-theme="dark"] #cookie-banner {
    background: #f0f7f9;
    border-top: 2px solid var(--color-accent);
    color: #002233;
}

[data-theme="dark"] .cookie-content a {
    color: #006064;
}

#cookie-banner.hiding {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--color-accent);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cookie-btn:hover {
    opacity: 0.85;
}

.cookie-btn.accept {
    background: var(--color-accent);
    color: #ffffff;
}

.cookie-btn.reject {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

/* Adjust buttons for dark banner on light theme */
[data-theme="light"] .cookie-btn.accept {
    background: var(--color-accent);
    color: #002233;
}
[data-theme="light"] .cookie-btn.reject {
    color: #dae8ee;
    border-color: #dae8ee;
}

/* Adjust buttons for light banner on dark theme */
[data-theme="dark"] .cookie-btn.accept {
    background: #006064;
    color: #ffffff;
}
[data-theme="dark"] .cookie-btn.reject {
    color: #002233;
    border-color: #002233;
}

@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
