@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS — SentinelOne birebir yapı
   Brand renkler korundu, layout/tipografi S1 ile aynı
   ============================================================ */
:root {
    /* Brand colors (değiştirilmedi) */
    --accent-color:      #4f46e5;
    --accent-secondary:  #0891b2;
    --accent-gradient:   linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    --accent-glow:       rgba(79, 70, 229, 0.12);

    /* Light theme surfaces */
    --bg-primary:    #ffffff;
    --bg-secondary:  #f8fafc;
    --bg-tertiary:   #f1f5f9;
    --text-primary:  #0a0a0f;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --border-color:  rgba(0, 0, 0, 0.08);
    --card-bg:       #ffffff;
    --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
    --transition:    0.2s ease;

    /* Hero dark tokens (S1 hero = always dark) */
    --hero-bg:       #0a0a0f;
    --hero-text:     #ffffff;
    --hero-muted:    rgba(255,255,255,0.65);
    --hero-border:   rgba(255,255,255,0.1);
}

[data-theme="dark"] {
    --bg-primary:    #07090e;
    --bg-secondary:  #0b0f1a;
    --bg-tertiary:   #111827;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --border-color:  rgba(255,255,255,0.06);
    --card-bg:       #0b0f1a;
    --shadow:        0 8px 32px rgba(0,0,0,0.5);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s, color 0.2s;
}

/* Standard content lists */
ul:not([class]), ol:not([class]) {
    padding-left: 24px;
    margin: 12px 0 20px;
}
ul:not([class]) { list-style: disc; }
ol:not([class]) { list-style: decimal; }
ul:not([class]) li, ol:not([class]) li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
ul:not([class]) li::marker { color: var(--accent-color); }

/* Headings */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

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

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Module icon card (icon + title + desc centered box) */
.module-icon-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.module-icon-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.module-icon-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.float-anim { animation: float 4s ease-in-out infinite; }

/* ============================================================
   NAVIGATION — SentinelOne birebir yapı
   Utility bar (ince ust bar) + sticky nav header
   ============================================================ */

/* Utility bar */
.navigation-utility-bar {
    background: var(--hero-bg);
    color: var(--hero-muted);
    border-bottom: 1px solid var(--hero-border);
    font-size: 12px;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.navigation-utility-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.navigation-utility-bar-announcement {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-utility-bar-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

.navigation-utility-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navigation-utility-link {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.15s;
}
.navigation-utility-link:hover { color: #fff; }

/* ── NAVIGATION — White bar ─────────────────────────────────── */
.navigation {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    /* Containing block for full-width submenus */
    overflow: visible;
}

/* Nav is white → show dark logo */
.navigation .logo-theme-light-src { display: block !important; }
.navigation .logo-theme-dark-src  { display: none  !important; }

.navigation-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img { height: 32px; width: auto; object-fit: contain; }

/* Nav list */
.navigation-header-nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
    /* stretch so each li fills the full 68px nav height → no hover gap to submenu */
    align-items: stretch;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Static so submenu anchors to the nav bar, not the li */
/* display:flex + align-items:center centers the button vertically */
.navigation-header-nav-item {
    position: static;
    display: flex;
    align-items: center;
}

/* Nav buttons — dark text on white */
.navigation-section {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.navigation-section:hover,
.navigation-header-nav-item.has-open .navigation-section {
    color: var(--accent-color);
    background: rgba(79,70,229,0.06);
}

.navigation-section-icon {
    font-size: 10px;
    transition: transform 0.2s;
    color: #9ca3af;
}
.navigation-header-nav-item.has-open .navigation-section-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* ── MEGA MENU — position:fixed, JS-only ────────────────── */
.navigation-submenu {
    display: none;
    position: fixed;
    /* top is set by JS to match nav bottom */
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid var(--accent-color);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    z-index: 9998;
}

/* JS-only: add is-open to show */
.navigation-submenu.is-open { display: block; }

/* Inner: flex column — eyebrow / content / footer stacked */
.navigation-submenu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.navigation-submenu-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0;
}

/* Content: tabs left + panels right */
.navigation-submenu-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left tabs */
.navigation-submenu-filters-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid #e5e7eb;
    padding-right: 16px;
}

.navigation-submenu-filter {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    color: #374151;
    text-align: left;
}
.navigation-submenu-filter:hover {
    background: #f3f4f6;
    color: var(--accent-color);
}
.navigation-submenu-filter.is-active {
    background: rgba(79,70,229,0.08);
    color: var(--accent-color);
    font-weight: 600;
}

.navigation-submenu-filter-label {
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
}

.navigation-submenu-filter-icon {
    font-size: 10px;
    color: #d1d5db;
}
.navigation-submenu-filter.is-active .navigation-submenu-filter-icon {
    color: var(--accent-color);
}

/* Right panels */
.navigation-panels-container { min-height: 100px; }
.navigation-submenu-panel { display: none; }
.navigation-submenu-panel.is-active { display: block; }

.navigation-grid-panel-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.navigation-panel-page-card-link {
    display: block;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    color: #111827;
    text-decoration: none;
}
.navigation-panel-page-card-link:hover {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(79,70,229,0.1);
    color: #111827;
}

.navigation-panel-page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.navigation-panel-page-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.navigation-panel-page-card-icon {
    color: #d1d5db;
    font-size: 11px;
    transition: color 0.15s, transform 0.15s;
}
.navigation-panel-page-card-link:hover .navigation-panel-page-card-icon {
    color: var(--accent-color);
    transform: translateX(3px);
}

.navigation-panel-page-card-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

/* Footer strip */
.navigation-submenu-footer {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.navigation-submenu-footer-cta-group {
    display: flex;
    gap: 24px;
}

.navigation-submenu-footer-link {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
    text-decoration: none;
}
.navigation-submenu-footer-link:hover { color: var(--accent-color); }

/* Nav right actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Language selector */
.lang-selector { position: relative; }

.btn-lang {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.btn-lang:hover { background: #e5e7eb; color: #111827; }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    min-width: 140px;
    list-style: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    z-index: 200;
}
.lang-dropdown.show { display: block; }

.lang-item a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.lang-item a:hover { background: #f3f4f6; color: var(--accent-color); }

/* Theme toggle */
.btn-control {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.btn-control:hover { background: #e5e7eb; color: #111827; }

/* ============================================================
   BUTTONS — S1 style
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, opacity 0.18s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    box-shadow: 0 2px 16px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(79,70,229,0.45);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    font-size: 14px;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 12px 24px;
    font-size: 14px;
}
.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-glow);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Nav-specific primary button */
.btn.btn-primary.btn-sm.nav-cta-desktop {
    background: var(--accent-gradient);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 100px;
}

/* ============================================================
   S1 PRIMARY HERO — CSS-only aurora background (no bad image)
   ============================================================ */
.s1-hero {
    position: relative;
    /* S1-style: very dark base + radial aurora glows */
    background:
        radial-gradient(ellipse at 75% 40%, rgba(79, 70, 229, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 75%, rgba(8, 145, 178, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 15%, rgba(168, 85, 247, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 20%, rgba(79, 70, 229, 0.12) 0%, transparent 45%),
        #07080f;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Hide the old bg image wrapper if it exists in HTML */
.s1-hero__bg { display: none; }

/* Two-column grid: left ~55% text, right ~45% dashboard */
.s1-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: 64px;
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 680px;
}

/* Left text column */
.s1-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* Eyebrow pill */
.s1-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    background: rgba(79,70,229,0.25);
    border: 1px solid rgba(79,70,229,0.4);
    padding: 5px 14px;
    border-radius: 100px;
}

/* THE BIG HEADLINE — S1 uses ~72-80px */
.s1-hero__h1 {
    font-size: clamp(52px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #ffffff;
    max-width: 620px;
}

.s1-hero__h1 .grad {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.s1-hero__desc {
    font-size: 18px;
    line-height: 1.65;
    color: var(--hero-muted);
    max-width: 500px;
    font-weight: 400;
}

/* CTA row */
.s1-hero__ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.s1-btn-demo {
    background: var(--accent-gradient);
    color: #fff;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(79,70,229,0.4);
    transition: transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
}
.s1-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(79,70,229,0.55);
    color: #fff;
}

.s1-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.s1-btn-ghost:hover {
    background: rgba(255,255,255,0.13);
    color: #fff;
}

/* Trust strip */
.s1-hero__trust {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.s1-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

/* Right visual column */
.s1-hero__visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.s1-hero__visual-wrap {
    position: relative;
    width: 100%;
}

/* Dashboard image — S1 style perspective tilt */
.s1-hero__dashboard-img {
    width: 100%;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 32px 80px rgba(0,0,0,0.7),
        0 0 80px rgba(79,70,229,0.15);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s ease;
}
.s1-hero__visual-wrap:hover .s1-hero__dashboard-img {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

/* Floating stat cards */
.s1-float-card {
    position: absolute;
    background: rgba(18, 19, 26, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.s1-float-card--tl { top: -16px; left: -20px; animation-delay: 0s; }
.s1-float-card--br { bottom: -16px; right: -20px; animation-delay: -2s; }

/* Stats bar — glassmorphism dark strip */
.s1-hero__stats-bar {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 32px 0;
}

.s1-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.s1-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 40px;
}

.s1-stat__num {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s1-stat__label {
    font-size: 13px;
    color: var(--hero-muted);
    font-weight: 500;
    text-align: center;
}

.s1-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* ============================================================
   FORM CONTROLS — used in Contact, Admin, etc.
   ============================================================ */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ============================================================
   PAGE SECTIONS — S1 Light sections below hero
   ============================================================ */
.section {

    padding: 96px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child { border-bottom: none; }

.section-header {
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}
.text-center .section-header p { margin: 0 auto; }

/* ============================================================
   MODULE ROWS — Modules.cshtml detail sections
   ============================================================ */
.module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.module-row:last-child { border-bottom: none; }

/* "reverse" flips visual to left, text to right */
.module-row.reverse { direction: rtl; }
.module-row.reverse > * { direction: ltr; }

.module-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.module-title {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

.module-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.module-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.module-feature-list li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-top: 2px;
    flex-shrink: 0;
}

.module-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon card: centered icon + title + desc */
.module-icon-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.module-icon-card > i {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
}
.module-icon-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.module-icon-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 240px;
    margin: 0;
}

/* Image wrap: dashboard/picking screenshot */
.module-image-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
}
.module-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   CARDS — S1 style
   ============================================================ */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 40px rgba(79,70,229,0.1);
    transform: translateY(-3px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.card-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    cursor: pointer;
    transition: gap 0.18s;
}
.card:hover .card-arrow { gap: 10px; }

/* ============================================================
   MODULE ROW — Alternating left/right sections (S1 style)
   ============================================================ */
.module-row {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.module-row:last-child { border-bottom: none; }
.module-row.reverse { flex-direction: row-reverse; }

.module-content { flex: 1; }
.module-visual  { flex: 1; }

.module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.module-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.module-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Feature list — S1 uses checkmark bullets */
.module-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.module-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-feature-list li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1.5px solid rgba(79,70,229,0.3);
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%234f46e5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.module-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.module-image-wrap img { width: 100%; display: block; }

/* ============================================================
   CONCEPT GRID (AI Section)
   ============================================================ */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.concept-left { display: flex; justify-content: center; align-items: center; }
.concept-right { display: flex; flex-direction: column; gap: 20px; }

.concept-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.concept-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   FOOTER — 4 column S1 style
   ============================================================ */
.footer {
    background: var(--hero-bg);
    color: rgba(255,255,255,0.55);
    padding: 72px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 56px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
    font-weight: 400;
}
.footer-link:hover { color: #fff; }

.footer-newsletter { display: flex; flex-direction: column; gap: 4px; }

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.form-control::placeholder { color: rgba(255,255,255,0.3); }
.form-control:focus { border-color: var(--accent-color); }

/* Light mode form controls */
body:not([data-theme]) .form-control,
[data-theme="light"] .form-control,
.section .form-control {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.section .form-control::placeholder { color: var(--text-muted); }
.section .form-control:focus { border-color: var(--accent-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo-light { display: block !important; }
.footer-logo-dark { display: none !important; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card.popular {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 24px 64px rgba(79,70,229,0.15);
    transform: translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.plan-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

.plan-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-feature-item i {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ROI Calculator */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.calc-input-group { display: flex; flex-direction: column; gap: 24px; }

.calc-row { display: flex; flex-direction: column; gap: 8px; }
.calc-row label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.calc-row input[type=range] { width: 100%; accent-color: var(--accent-color); height: 4px; }
.calc-row .calc-value { font-size: 18px; font-weight: 700; color: var(--accent-color); }

.calc-results {
    background: var(--accent-gradient);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.calc-savings-num {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-notif {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--hero-bg);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.toast-notif.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.toast-success-icon { color: #10b981; }
.toast-error-icon   { color: #ef4444; }

/* ============================================================
   INTEGRATIONS PAGE
   ============================================================ */
.integ-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.integ-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: var(--accent-glow);
    border: 1px solid rgba(79,70,229,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.integ-hero__h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.integ-hero__desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.integ-section { padding: 64px 0; }
.integ-section + .integ-section { border-top: 1px solid var(--border-color); }

.integ-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}
.integ-category-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.integ-category-header h2 { font-size: 22px; font-weight: 700; margin: 0; }
.integ-category-header p  { font-size: 14px; color: var(--text-secondary); margin: 0; }

.integ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.integ-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.integ-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 24px rgba(79,70,229,0.1);
    transform: translateY(-2px);
}
.integ-card__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.integ-card__name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.integ-card__badge {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 100px; width: fit-content;
}
.integ-card__badge--live    { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.integ-card__badge--coming  { background: rgba(245,158,11,0.1);  color: #f59e0b;  border: 1px solid rgba(245,158,11,0.2); }

.integ-benefits { background: var(--bg-secondary); padding: 64px 0; border-top: 1px solid var(--border-color); }
.integ-benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ============================================================
   HAMBURGER & MOBILE DRAWER
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
}
.hamburger__line {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 90vw);
    height: 100dvh;
    background: #12131a;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-drawer__backdrop.is-visible { opacity: 1; pointer-events: all; }

.mobile-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky; top: 0;
    background: #12131a; z-index: 1;
}
.mobile-drawer__close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.mobile-drawer__nav { flex: 1; padding: 16px 16px; display: flex; flex-direction: column; gap: 2px; }

.mobile-drawer__link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    font-size: 15px; font-weight: 600;
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    transition: background 0.15s;
}
.mobile-drawer__link:hover { background: rgba(255,255,255,0.07); color: #fff; }

.mobile-drawer__group { margin-top: 8px; }
.mobile-drawer__group-label {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 8px 12px 4px;
}
.mobile-drawer__sublink {
    display: block;
    padding: 9px 12px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.mobile-drawer__sublink:hover { background: rgba(255,255,255,0.07); color: #fff; }

.mobile-drawer__footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .s1-hero__inner {
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-bottom: 64px;
        min-height: auto;
        gap: 48px;
    }
    .s1-hero__text { align-items: center; text-align: center; }
    .s1-hero__desc { max-width: none; }
    .s1-hero__trust { justify-content: center; }
    .s1-hero__visual { justify-content: center; }
    .s1-hero__visual-wrap { max-width: 560px; }
    .s1-hero__dashboard-img { transform: none; }
    .s1-float-card { display: none; }
    .s1-stat { padding: 0 24px; }
    .concept-grid { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .navigation-header-inner {
        padding: 0 12px;
        gap: 12px;
    }
    .nav-actions {
        gap: 6px;
    }
    .btn-lang {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .btn-control {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .hamburger { 
        display: flex;
        width: 32px;
        height: 32px;
        padding: 5px;
        gap: 4px;
    }
    .navigation-header-nav-list { display: none; }
    .nav-cta-desktop { display: none !important; }

    .navigation-utility-bar { display: none; }

    .s1-hero__h1 { font-size: clamp(36px, 9vw, 52px); }
    .s1-hero__ctas { flex-direction: column; width: 100%; }
    .s1-btn-demo, .s1-btn-ghost { width: 100%; justify-content: center; }

    .s1-stats-row { flex-wrap: wrap; gap: 16px; }
    .s1-stat { min-width: 120px; padding: 0 12px; }
    .s1-stat-divider { display: none; }
    .s1-stat__num { font-size: 28px; }

    .section { padding: 64px 0; }
    .grid-cards, .pricing-grid, .integ-benefits-grid { grid-template-columns: 1fr; }
    .integ-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid-four { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; justify-content: center; }
    .module-row, .module-row.reverse { flex-direction: column !important; gap: 40px; }
    .section-header h2 { font-size: 28px; }

    /* Responsive overrides for inline grids */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1.1fr 0.9fr"],
    div[style*="grid-template-columns: 1.2fr 0.8fr"],
    div[style*="grid-template-columns: 1.3fr 0.7fr"],
    div[style*="grid-template-columns: 1.4fr 0.6fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 480px) {
    .footer-grid-four { grid-template-columns: 1fr; }
    .integ-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN / MISC
   ============================================================ */
.admin-sidebar {
    width: 260px; min-height: 100vh;
    background: var(--hero-bg);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex; flex-direction: column;
}
.admin-layout { display: flex; min-height: 100vh; }
.admin-main { flex: 1; padding: 32px; background: var(--bg-secondary); }

.admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.admin-table th { font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.badge {
    display: inline-flex; align-items: center;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px; font-weight: 700;
}
.badge-success { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-warning { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.badge-danger  { background: rgba(239,68,68,0.1);   color: #ef4444; }

/* Theme logo helpers */
[data-theme="light"] .logo-theme-dark-src,
[data-theme="dark"]  .logo-theme-light-src { display: block !important; }
[data-theme="light"] .logo-theme-light-src,
[data-theme="dark"]  .logo-theme-dark-src  { display: none  !important; }

/* ── INTERACTIVE MODULE DETAILS MODAL ───────────────────────── */
.mod-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mod-modal-overlay.is-active { display: flex; }

.mod-modal-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    animation: modModalOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modModalOpen {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mod-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mod-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.mod-modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.mod-modal-close:hover {
    background: var(--accent-glow);
    color: var(--accent-color);
}

.mod-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Tab bar inside modal */
.mod-modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    padding-bottom: 8px;
}
.mod-modal-tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.mod-modal-tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.mod-modal-tab-btn.is-active {
    background: var(--accent-glow);
    color: var(--accent-color);
}

.mod-modal-pane { display: none; }
.mod-modal-pane.is-active { display: block; }

/* Handheld simulator screen styles */
.handheld-sim {
    background: #1e1e24;
    border: 8px solid #2d2d34;
    border-radius: 20px;
    width: 280px;
    height: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.handheld-sim-header {
    background: #0f0f12;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #2d2d34;
}
.handheld-sim-screen {
    flex: 1;
    background: #0c0d12;
    color: #38bdf8;
    font-family: 'Courier New', Courier, monospace;
    padding: 12px;
    overflow-y: auto;
    font-size: 12px;
}
.handheld-sim-keypad {
    background: #1c1c22;
    border-top: 1px solid #2d2d34;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.handheld-sim-key {
    background: #2a2a32;
    border: 1px solid #3c3c44;
    color: #fff;
    border-radius: 6px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.1s;
}
.handheld-sim-key:active { background: #3c3c48; }

.terminal-title {
    color: #fbbf24;
    font-weight: bold;
    border-bottom: 1px dashed #333;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.terminal-step {
    margin-bottom: 6px;
}
.terminal-input-row {
    display: flex;
    align-items: center;
    color: #10b981;
    margin-top: 8px;
}
.terminal-cursor {
    animation: blink 1s step-end infinite;
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #10b981;
    margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   COOKIE CONSENT POPUP
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(18, 19, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] .cookie-consent {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.cookie-consent__body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-consent__icon {
    font-size: 28px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.cookie-consent__content {
    flex: 1;
}

.cookie-consent__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.cookie-consent__desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent__link {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

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

@media (max-width: 640px) {
    .cookie-consent {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        padding: 16px;
    }
    .cookie-consent__body {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-consent__actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .cookie-consent__actions button {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .toast-notif {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: calc(100% - 32px);
    }
}