/* ===================================
   Dictator Website - Main Styles
   Modern dark theme with cyan and blue accents
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #070b12;
    --bg-secondary: #0b111c;
    --bg-tertiary: #111a28;
    --bg-card: rgba(17, 26, 40, 0.76);
    --bg-card-hover: rgba(23, 37, 56, 0.88);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --accent-primary: #12d6df;
    --accent-secondary: #2563eb;
    --accent-tertiary: #7c3aed;
    --accent-glow: rgba(18, 214, 223, 0.24);

    --gradient-primary: linear-gradient(135deg, #12d6df 0%, #2563eb 56%, #7c3aed 100%);
    --gradient-dark: linear-gradient(180deg, #070b12 0%, #0b111c 100%);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 650;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 24px !important;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid var(--border-light);
}

.lang-btn {
    width: 28px;
    height: 28px;
    padding: 2px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}

.lang-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.active {
    opacity: 1;
    background: rgba(18, 214, 223, 0.18);
    border-color: rgba(18, 214, 223, 0.38);
    box-shadow: 0 0 10px rgba(18, 214, 223, 0.18);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
        margin-right: 12px;
        padding-left: 0;
        border-left: none;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(18, 214, 223, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

/* Platform Icons */
.hero-platforms {
    display: flex;
    align-items: center;
    gap: 16px;
}

.platform-label {
    font-size: 14px;
    color: var(--text-muted);
}

.platform-icons {
    display: flex;
    gap: 12px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
}

.platform-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.platform-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.platform-icon:hover svg {
    color: var(--text-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-device-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-device {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.desktop-preview {
    width: 100%;
}

.desktop-preview img {
    width: 100%;
    height: auto;
}

.mobile-preview {
    position: absolute;
    bottom: -56px;
    right: -86px;
    width: clamp(220px, 24vw, 300px);
    border-radius: 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mobile-preview img {
    width: 100%;
    height: auto;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(18, 214, 223, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ===================================
   Screenshots Section
   =================================== */
.screenshots {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.screenshots-category {
    margin-bottom: 80px;
}

.screenshots-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
}

.category-title svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.screenshots-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.screenshot-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.screenshot-card.mobile {
    flex: 0 0 360px;
}

.screenshot-image {
    width: 100%;
    background: var(--bg-secondary);
    padding: 16px;
    display: flex;
    justify-content: center;
}

.screenshot-image img {
    border-radius: var(--radius-sm);
    max-height: 300px;
    object-fit: contain;
}

.screenshot-card.mobile .screenshot-image img {
    max-height: 620px;
}

.screenshot-info {
    padding: 20px 24px;
}

.screenshot-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.screenshot-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.slider-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-primary);
}

/* ===================================
   Download Section
   =================================== */
.download {
    padding: calc(var(--section-padding) + 40px) 0 var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(18, 214, 223, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.download .container {
    position: relative;
    z-index: 1;
}

.download-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.download-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
}

.download-group-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 72px 32px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--transition-normal);
    min-height: 544px;
}

.download-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.download-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.download-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: var(--gradient-primary);
    border-radius: 0 0 14px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.download-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-light);
}

.download-icon svg,
.download-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.download-icon.testflight img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.download-platform {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 44px;
}

.download-requirements {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.download-requirements span {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
}

.btn-download {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    margin-top: auto;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
}

.btn-download:hover {
    opacity: 0.92;
}

.download-links {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.download-links a,
.testflight-links a {
    position: relative;
    z-index: 2;
}

.btn-download-secondary {
    height: 52px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(18, 214, 223, 0.28);
    color: var(--accent-primary);
    box-shadow: none;
}

.btn-download-secondary:hover {
    background: rgba(18, 214, 223, 0.12);
    border-color: rgba(18, 214, 223, 0.44);
}

.btn-download.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    box-shadow: none;
    pointer-events: none;
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.testflight-links {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

/* ===================================
   Pricing
   =================================== */
.pricing-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.pricing-table-shell {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(18, 214, 223, 0.2);
    border-radius: var(--radius-md);
    background: rgba(7, 11, 18, 0.82);
    box-shadow: var(--shadow-lg);
}

.pricing-table-shell::-webkit-scrollbar {
    height: 6px;
}

.pricing-table-shell::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.pricing-table-shell::-webkit-scrollbar-thumb {
    background: rgba(18, 214, 223, 0.45);
    border-radius: 999px;
}

.pricing-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(150px, 1fr));
}

.pricing-cell {
    min-height: 56px;
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pricing-cell:nth-child(5n) {
    border-right: 0;
}

.pricing-feature-head {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.pricing-plan {
    min-height: 170px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.pricing-plan-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.pricing-plan strong {
    font-size: 32px;
    line-height: 1.1;
    color: var(--text-primary);
}

.pricing-period {
    color: var(--text-muted);
    font-size: 12px;
}

.pricing-plan-popular,
.pricing-pro-column {
    background: rgba(18, 214, 223, 0.08);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -1px);
    padding: 5px 14px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--accent-primary);
    color: #001016;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-action {
    min-width: 112px;
    min-height: 36px;
    padding: 9px 16px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.pricing-action:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.pricing-action:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.pricing-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
}

.pricing-category {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.035);
}

.pricing-category-fill {
    background: rgba(255, 255, 255, 0.035);
}

.pricing-value {
    justify-content: center;
    color: var(--text-primary);
    font-weight: 800;
    text-align: center;
}

.pricing-infinity {
    display: inline-block;
    font-family: "Cambria Math", "STIX Two Math", "DejaVu Serif", "Times New Roman", serif;
    font-size: 2.15em;
    font-weight: 700;
    line-height: 0.72;
    transform: translateY(0.02em);
}

.pricing-muted {
    justify-content: center;
    color: var(--text-muted);
}

.pricing-feature-with-info,
.pricing-value-with-info {
    gap: 8px;
}

.pricing-value-with-info {
    justify-content: center;
}

.pricing-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(18, 214, 223, 0.72);
    color: var(--accent-primary);
    background: rgba(18, 214, 223, 0.08);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.pricing-feature-link,
.pricing-term-link {
    color: var(--accent-primary);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.pricing-feature-link:hover,
.pricing-term-link:hover,
.pricing-info-btn:hover {
    color: var(--text-primary);
    border-color: rgba(18, 214, 223, 0.95);
}

.pricing-modal[hidden] {
    display: none;
}

.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pricing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
}

.pricing-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(18, 214, 223, 0.25);
    border-radius: var(--radius-md);
    background: rgba(11, 17, 28, 0.98);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    padding: 28px;
}

.pricing-modal-panel h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.2;
}

.pricing-modal-panel p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-modal-body[hidden] {
    display: none;
}

.pricing-modal-body {
    display: grid;
    gap: 14px;
    margin: 14px 0 20px;
}

.pricing-language-sections {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.pricing-language-section {
    padding: 14px 16px;
    border: 1px solid rgba(19, 214, 255, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(19, 214, 255, 0.045);
}

.pricing-language-section-locked {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    opacity: 0.68;
}

.pricing-language-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pricing-language-section-header strong {
    color: var(--text-primary);
    font-size: 14px;
}

.pricing-language-section-header small {
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-language-section-header span {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-language-search {
    width: 100%;
    height: 42px;
    margin: 0 0 12px;
    padding: 0 13px;
    border: 1px solid rgba(19, 214, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.pricing-language-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(19, 214, 255, 0.1);
}

.pricing-language-search::placeholder,
.pricing-language-empty {
    color: var(--text-muted);
}

.pricing-language-empty {
    margin: 0;
    font-size: 13px;
}

.pricing-language-section-locked .pricing-language-section-header span {
    color: var(--text-muted);
}

.pricing-language-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.pricing-language-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.2;
}

.pricing-language-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex: 0 0 auto;
}

.pricing-language-flag-fallback {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.pricing-language-pill small {
    color: var(--text-muted);
}

.pricing-quality-card {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.045);
}

.pricing-quality-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.pricing-quality-card span {
    color: var(--accent-primary);
}

.pricing-quality-card p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.pricing-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    line-height: 36px;
}

.pricing-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.pricing-auth-form[hidden] {
    display: none;
}

.pricing-auth-providers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pricing-auth-providers[hidden],
.pricing-auth-divider[hidden] {
    display: none;
}

.pricing-provider-button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 700;
}

.pricing-provider-button:hover {
    border-color: rgba(18, 214, 223, 0.6);
    background: rgba(18, 214, 223, 0.1);
}

.pricing-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.pricing-auth-divider::before,
.pricing-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
}

.pricing-auth-form label {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.pricing-auth-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    outline: none;
}

.pricing-auth-form input:focus {
    border-color: rgba(18, 214, 223, 0.75);
    box-shadow: 0 0 0 3px rgba(18, 214, 223, 0.12);
}

.pricing-auth-actions,
.pricing-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pricing-auth-note {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 88px 0;
    }

    .pricing-grid {
        min-width: 860px;
        grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(140px, 1fr));
    }

    .pricing-cell {
        padding: 14px 16px;
    }
}

.testflight-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    border: 1px solid rgba(18, 214, 223, 0.28);
    border-radius: var(--radius-md);
    background: rgba(18, 214, 223, 0.08);
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.testflight-links a:hover {
    background: rgba(18, 214, 223, 0.14);
    border-color: rgba(18, 214, 223, 0.44);
}

.download-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(18, 214, 223, 0.11) 0%, rgba(37, 99, 235, 0.09) 100%);
    border: 1px solid rgba(18, 214, 223, 0.26);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.download-intro h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.download-intro p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 780px;
}

.download-intro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(18, 214, 223, 0.28);
    border-radius: 999px;
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.download-intro-version {
    padding-left: 8px;
    border-left: 1px solid rgba(18, 214, 223, 0.28);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .download-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 60px 0 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ===================================
   Changelog
   =================================== */
.changelog-page {
    background:
        radial-gradient(ellipse 74% 42% at 50% 0%, rgba(18, 214, 223, 0.12), transparent 60%),
        radial-gradient(ellipse 44% 38% at 78% 28%, rgba(159, 122, 255, 0.11), transparent 58%),
        var(--bg-primary);
}

.changelog-page .nav-links a.active {
    color: var(--text-primary);
    background: rgba(18, 214, 223, 0.14);
    box-shadow: inset 0 0 0 1px rgba(18, 214, 223, 0.28);
}

.changelog-hero {
    padding: 154px 0 76px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.changelog-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 700;
}

.changelog-kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.changelog-hero h1 {
    max-width: 980px;
    font-family: 'Unbounded', var(--font-display);
    font-size: clamp(2.55rem, 5.6vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: 0;
    margin: 0 auto 24px;
}

.changelog-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1.03rem, 1.2vw, 1.25rem);
    line-height: 1.75;
}

.changelog-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 38px auto 0;
    max-width: 820px;
    overflow: hidden;
    border: 1px solid rgba(93, 113, 136, 0.38);
    border-radius: 24px;
    background: rgba(93, 113, 136, 0.26);
}

.changelog-proof-grid div {
    min-height: 112px;
    padding: 24px;
    background: rgba(8, 13, 26, 0.76);
}

.changelog-proof-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Unbounded', var(--font-display);
    font-size: clamp(1.35rem, 2vw, 2rem);
    letter-spacing: 0;
}

.changelog-proof-grid span {
    color: var(--text-muted);
    font-size: 14px;
}

.changelog-section {
    padding: 78px 0 120px;
}

.release-timeline {
    position: relative;
    display: grid;
    gap: 34px;
    max-width: 1040px;
    margin: 0 auto;
}

.release-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 19px;
    width: 2px;
    background: linear-gradient(180deg, rgba(18, 214, 223, 0.85), rgba(159, 122, 255, 0.24), rgba(18, 214, 223, 0.08));
}

.release-entry {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 26px;
}

.release-marker {
    width: 40px;
    height: 40px;
    margin-top: 24px;
    border-radius: 50%;
    background: #07111d;
    border: 1px solid rgba(18, 214, 223, 0.52);
    box-shadow:
        0 0 0 9px rgba(18, 214, 223, 0.08),
        inset 0 0 0 8px rgba(18, 214, 223, 0.09);
    z-index: 1;
}

.release-entry.current .release-marker {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 10px rgba(18, 214, 223, 0.11),
        0 0 32px rgba(18, 214, 223, 0.44);
}

.release-content {
    position: relative;
    padding: 30px 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(18, 214, 223, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 25, 42, 0.94), rgba(10, 15, 29, 0.94));
    border: 1px solid rgba(93, 113, 136, 0.34);
    border-radius: 24px;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.release-entry.current .release-content {
    border-color: rgba(18, 214, 223, 0.4);
    box-shadow:
        0 30px 82px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(18, 214, 223, 0.12);
}

.release-content::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(18, 214, 223, 0.16), transparent 28%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.release-content:hover::after {
    opacity: 1;
}

.release-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.release-label {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.release-head h2 {
    max-width: 720px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
}

.release-head time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    white-space: nowrap;
}

.release-content ul {
    display: grid;
    gap: 12px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.release-content li::marker {
    color: var(--accent-primary);
}

@media (max-width: 980px) {
    .changelog-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .changelog-hero {
        padding: 112px 0 46px;
    }

    .changelog-hero h1 {
        font-size: clamp(2.1rem, 13vw, 4rem);
    }

    .changelog-proof-grid {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .changelog-proof-grid div {
        min-height: 94px;
        padding: 20px;
    }

    .release-timeline::before {
        left: 10px;
    }

    .release-entry {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 14px;
    }

    .release-marker {
        width: 22px;
        height: 22px;
        margin-top: 23px;
    }

    .release-content {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .release-head {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    text-align: center;
    max-width: 600px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Screenshot clickable */
.screenshot-image {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.screenshot-image:hover {
    transform: scale(1.02);
}

.screenshot-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 214, 223, 0);
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
    pointer-events: none;
}

.screenshot-image:hover::after {
    background: rgba(18, 214, 223, 0.1);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-groups {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-platforms {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-device-wrapper {
        max-width: 500px;
    }

    .mobile-preview {
        width: clamp(180px, 30vw, 240px);
        right: -36px;
        bottom: -36px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        right: 16px;
        width: 200px;
        height: auto;
        flex-direction: column;
        background: rgba(18, 18, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px;
        gap: 4px;
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.2s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        min-height: 44px;
        padding: 13px 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        text-align: left;
        font-size: 16px;
        font-weight: 700;
        color: var(--text-secondary);
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(18, 214, 223, 0.14);
        color: var(--text-primary);
    }

    .nav-links .nav-cta {
        margin-top: 4px;
        text-align: center;
        background: var(--gradient-primary);
        color: var(--text-primary) !important;
    }

    /* Overlay to close menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: transparent;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .screenshot-card {
        flex: 0 0 320px;
    }

    .screenshot-card.mobile {
        flex: 0 0 320px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .download-card {
        padding: 32px 24px;
    }

    .download-note {
        flex-direction: column;
        text-align: center;
    }

    .download-note svg {
        margin: 0 auto;
    }
}

/* ===================================
   Lightbox (VK-style Gallery)
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease, transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-caption {
    margin-top: 20px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.lightbox-caption strong {
    color: var(--text-primary);
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: scale(1.05);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

/* Navigation buttons hidden - using VK-style click navigation instead */
.lightbox-nav {
    display: none !important;
}

/* Lightbox click zone indicators (subtle) */
.lightbox-content::before,
.lightbox-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 80px;
    /* Exclude caption area */
    width: 40%;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.lightbox-content::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
}

.lightbox-content::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.03), transparent);
}

.lightbox-content:hover::before,
.lightbox-content:hover::after {
    opacity: 1;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-content img {
        max-height: 65vh;
        border-radius: var(--radius-md);
    }

    .lightbox-caption {
        padding: 12px 20px;
        margin-top: 16px;
        font-size: 13px;
        max-width: 90%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }
}

/* Stable zoomable lightbox — final cascade layer. */
.lightbox {
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding:
        clamp(16px, 2vw, 28px)
        clamp(72px, 5vw, 104px)
        clamp(18px, 2vw, 30px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    gap: 0;
    cursor: default;
    transform: none !important;
}

.lightbox-stage {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(4, 7, 18, 0.72);
    cursor: zoom-in;
    touch-action: none;
    overscroll-behavior: contain;
}

.lightbox-stage.is-zoomed {
    cursor: grab;
}

.lightbox-stage.is-zoomed:active {
    cursor: grabbing;
}

.lightbox-stage img,
.lightbox-content .lightbox-stage img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: none;
    transform-origin: center;
    transition: transform 80ms ease-out;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.lightbox-caption {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 13;
    max-width: min(720px, calc(100% - 180px));
    flex: 0 0 auto;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.lightbox-nav {
    z-index: 12;
    display: flex !important;
    min-width: 48px;
    min-height: 48px;
}

@media (max-width: 768px) {
    .lightbox {
        padding:
            max(64px, env(safe-area-inset-top))
            10px
            max(18px, env(safe-area-inset-bottom));
    }

    .lightbox-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        gap: 10px;
    }

    .lightbox-stage,
    .lightbox-stage img {
        border-radius: 14px;
    }

    .lightbox-caption {
        bottom: max(72px, env(safe-area-inset-bottom));
        max-width: calc(100vw - 36px);
        margin: 0;
        padding: 10px 14px;
    }

    .lightbox-nav {
        top: auto;
        bottom: max(18px, env(safe-area-inset-bottom));
        transform: none;
    }
}
