:root {
    --site-primary: #00f2fe;
    --site-secondary: #10b981;
    --site-bg: #060b16;
    --site-surface: #0f172a;
    --site-text: #f8fafc;
    --site-muted: #94a3b8;
    --site-border: rgba(148, 163, 184, 0.16);
    --site-heading-font: 'Space Grotesk', sans-serif;
    --site-body-font: 'Inter', sans-serif;
    --site-mono-font: 'JetBrains Mono', monospace;
    --site-radius: 14px;
    --site-btn-radius: 999px;

    /* Studio Chrome Colors (Always Sleek Dark Slate) */
    --studio-bg: #0b1120;
    --studio-panel: #111827;
    --studio-border: #1e293b;
    --studio-text: #f1f5f9;
    --studio-muted: #94a3b8;
    --studio-accent: #00f2fe;
    --studio-emerald: #10b981;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--site-body-font);
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   STUDIO CHROME (TOP BAR + WORKSPACE + RIGHT DOCK)
   ═══════════════════════════════════════════════════════════════════ */
body.mode-studio {
    background-color: #050811;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.studio-topbar {
    height: 58px;
    background: var(--studio-panel);
    border-bottom: 1px solid var(--studio-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: var(--studio-text);
    font-family: 'Inter', sans-serif;
    z-index: 1000;
    flex-shrink: 0;
    gap: 12px;
}

.studio-topbar-left,
.studio-topbar-center,
.studio-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(16, 185, 129, 0.18));
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--studio-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.studio-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.studio-title-input {
    background: transparent;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    width: 200px;
    transition: all 0.15s;
}

.studio-title-input:hover,
.studio-title-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.4);
    outline: none;
}

.studio-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 6px;
    font-size: 11px;
}

.studio-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--studio-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
}

.studio-chip-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.studio-save-text {
    color: var(--studio-muted);
    font-size: 11px;
}

.studio-tool-group {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.studio-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
}

.studio-icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.studio-icon-btn.active {
    background: rgba(0, 242, 254, 0.15);
    color: var(--studio-accent);
}

.studio-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.studio-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.studio-divider-v {
    width: 1px;
    height: 22px;
    background: var(--studio-border);
    margin: 0 4px;
}

.studio-pill-btn,
.studio-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--studio-border);
    background: rgba(30, 41, 59, 0.7);
    color: var(--studio-text);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.studio-pill-btn:hover,
.studio-btn-secondary:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(30, 41, 59, 1);
}

.studio-pill-btn.active {
    background: rgba(0, 242, 254, 0.16);
    border-color: var(--studio-accent);
    color: var(--studio-accent);
}

.studio-btn-publish {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 15px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #0ea5e9 100%);
    color: #04101e;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
    transition: all 0.15s;
}

.studio-btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.35);
}

.unpub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════════
   STUDIO WORKSPACE & DEVICE VIEWPORT SIMULATION
   ═══════════════════════════════════════════════════════════════════ */
.studio-workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.site-viewport-container {
    flex: 1;
    min-width: 0;
    transition: all 0.25s ease;
}

body.mode-studio .site-viewport-container {
    overflow-y: auto;
    background: radial-gradient(circle at center, #0f172a 0%, #050811 100%);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body.mode-studio.studio-preview-only .site-viewport-container {
    padding: 0;
}

.site-frame {
    width: 100%;
    min-height: 100vh;
    background-color: var(--site-bg);
    color: var(--site-text);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mode-studio .site-frame {
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.16);
    overflow: hidden;
    min-height: calc(100vh - 100px);
}

body.mode-studio .site-viewport-container.viewport-tablet .site-frame {
    width: 768px;
    max-width: 100%;
}

body.mode-studio .site-viewport-container.viewport-mobile .site-frame {
    width: 390px;
    max-width: 100%;
    border-radius: 26px;
    border: 4px solid #1e293b;
}

/* ═══════════════════════════════════════════════════════════════════
   RIGHT-HAND 3-TAB STUDIO DOCK (GOOGLE SITES SIDEBAR)
   ═══════════════════════════════════════════════════════════════════ */
.studio-dock {
    width: 330px;
    background: var(--studio-panel);
    border-left: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    color: var(--studio-text);
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    z-index: 900;
}

.studio-dock-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--studio-border);
    background: #0d1322;
}

.mobile-dock-sheet-header {
    display: none;
}

.dock-tab {
    padding: 12px 6px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--studio-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.dock-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.dock-tab.active {
    color: var(--studio-accent);
    border-bottom-color: var(--studio-accent);
    background: rgba(0, 242, 254, 0.06);
}

.dock-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.dock-panel.active {
    display: block;
}

.dock-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--studio-muted);
    margin: 16px 0 10px;
}

.dock-section-title:first-child {
    margin-top: 0;
}

.insert-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.insert-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 8px;
    background: #182235;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    color: var(--studio-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.insert-tile i {
    font-size: 18px;
    color: var(--studio-accent);
}

.insert-tile:hover {
    border-color: var(--studio-accent);
    background: rgba(0, 242, 254, 0.09);
    transform: translateY(-1px);
}

.insert-layouts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.layout-preset-btn {
    background: #182235;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    padding: 10px;
    color: var(--studio-text);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    transition: all 0.15s;
}

.layout-preset-btn:hover {
    border-color: var(--studio-accent);
    background: rgba(0, 242, 254, 0.09);
}

.layout-mini-preview {
    height: 38px;
    display: grid;
    gap: 4px;
    background: #0d1424;
    padding: 5px;
    border-radius: 6px;
}

.layout-mini-preview.split {
    grid-template-columns: 1fr 1fr;
}

.layout-mini-preview.cols3 {
    grid-template-columns: repeat(3, 1fr);
}

.layout-mini-preview.cols4 {
    grid-template-columns: repeat(4, 1fr);
}

.layout-mini-preview .l-box {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 3px;
}

.layout-mini-preview .l-box.img,
.layout-mini-preview .l-box.hi {
    background: rgba(0, 242, 254, 0.45);
}

.insert-widget-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-row-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: #182235;
    border: 1px solid var(--studio-border);
    border-radius: 9px;
    color: var(--studio-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.widget-row-btn i {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(0, 242, 254, 0.12);
    color: var(--studio-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.widget-row-btn strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
}

.widget-row-btn small {
    display: block;
    font-size: 11px;
    color: var(--studio-muted);
}

.widget-row-btn:hover {
    border-color: var(--studio-accent);
    background: rgba(0, 242, 254, 0.08);
}

/* Media Upload Box in Dock */
.studio-upload-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px dashed rgba(0, 242, 254, 0.45);
    border-radius: 9px;
    background: rgba(0, 242, 254, 0.05);
    color: var(--studio-accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.studio-upload-dropzone:hover {
    background: rgba(0, 242, 254, 0.12);
}

.dock-media-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.dock-media-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--studio-border);
    background: #090d16;
    cursor: pointer;
}

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

.dock-media-thumb:hover {
    border-color: var(--studio-accent);
}

/* Pages Tab */
.dock-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dock-panel-header strong {
    display: block;
    font-size: 13px;
}

.dock-panel-header small {
    font-size: 11px;
    color: var(--studio-muted);
}

.studio-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 7px;
    border: none;
    background: var(--studio-accent);
    color: #04101e;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.dock-pages-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dock-page-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 11px;
    border-radius: 9px;
    background: #182235;
    border: 1px solid var(--studio-border);
    cursor: pointer;
    transition: all 0.15s;
}

.dock-page-item.active {
    border-color: var(--studio-accent);
    background: rgba(0, 242, 254, 0.1);
}

.dock-page-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.dock-page-info i {
    color: var(--studio-accent);
    font-size: 13px;
}

.dock-page-title {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-page-slug {
    font-size: 10.5px;
    color: var(--studio-muted);
    font-family: 'JetBrains Mono', monospace;
}

.dock-page-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dock-page-actions button {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
    font-size: 11px;
}

.dock-page-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Themes Tab */
.dock-theme-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.theme-preset-card {
    padding: 10px;
    border-radius: 10px;
    background: #182235;
    border: 1px solid var(--studio-border);
    cursor: pointer;
    text-align: left;
    color: var(--studio-text);
    transition: all 0.15s;
}

.theme-preset-card.active,
.theme-preset-card:hover {
    border-color: var(--studio-accent);
}

.theme-swatches {
    display: flex;
    gap: 4px;
    margin-bottom: 7px;
}

.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-preset-name {
    font-size: 12px;
    font-weight: 600;
}

.theme-customizer-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #182235;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    font-size: 12px;
}

.color-picker-row input[type="color"] {
    width: 32px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.studio-form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--studio-muted);
}

.studio-field input,
.studio-field select,
.studio-field textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--studio-border);
    background: #0d1424;
    color: #ffffff;
    font-size: 12.5px;
    font-family: inherit;
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus {
    outline: none;
    border-color: var(--studio-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   PUBLIC SITE HEADER, ANNOUNCEMENT & NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.site-announcement {
    background: linear-gradient(90deg, var(--site-primary), var(--site-secondary));
    color: #04101e;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    text-align: center;
}

.site-announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.announcement-cta {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    background: rgba(4, 16, 30, 0.85);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--site-border);
    transition: all 0.2s;
}

.site-navbar.nav-top-glass {
    background: color-mix(in srgb, var(--site-bg) 82%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-navbar.nav-top-solid {
    background: var(--site-surface);
}

.site-navbar-inner {
    max-width: 1220px;
    margin: 0 auto;
    height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--site-text);
    font-family: var(--site-heading-font);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.site-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--site-primary) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--site-primary) 45%, transparent);
    color: var(--site-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.site-logo-img {
    height: 34px;
    width: auto;
    border-radius: 6px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--site-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.site-nav-link:hover {
    color: var(--site-text);
    background: color-mix(in srgb, var(--site-text) 6%, transparent);
}

.site-nav-link.active {
    color: var(--site-primary);
    background: color-mix(in srgb, var(--site-primary) 12%, transparent);
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--site-border);
    background: transparent;
    color: var(--site-text);
    font-size: 16px;
    cursor: pointer;
}

.mobile-nav-drawer {
    padding: 12px 24px 18px;
    border-top: 1px solid var(--site-border);
    background: var(--site-surface);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE HERO BANNER STYLES
   ═══════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--site-border);
    padding: 76px 24px;
    background-size: cover;
    background-position: center;
}

.page-hero.hero-large {
    padding: 96px 24px;
}

.page-hero.hero-standard {
    padding: 58px 24px;
}

.page-hero.hero-title-only {
    padding: 36px 24px;
}

.page-hero.bg-gradient-cyber {
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--site-primary) 18%, transparent), transparent 45%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--site-secondary) 15%, transparent), transparent 50%),
        var(--site-bg);
}

.page-hero.bg-gradient-indigo {
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--site-primary) 24%, transparent), transparent 60%),
        var(--site-surface);
}

.page-hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.page-hero.align-center .page-hero-overlay {
    text-align: center;
}

.page-hero.align-left .page-hero-overlay {
    text-align: left;
    margin: 0 auto 0 0;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--site-primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--site-primary) 38%, transparent);
    color: var(--site-primary);
    font-family: var(--site-mono-font);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--site-heading-font);
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: var(--site-text);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--site-muted);
    max-width: 760px;
    margin-bottom: 28px;
}

.page-hero.align-center .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-hero.align-center .hero-buttons {
    justify-content: center;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--site-btn-radius);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    border: 1px solid transparent;
}

.site-btn-primary {
    background: var(--site-primary);
    color: #04101e;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--site-primary) 28%, transparent);
}

.site-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--site-primary) 40%, transparent);
}

.site-btn-outline {
    background: color-mix(in srgb, var(--site-surface) 75%, transparent);
    border-color: var(--site-border);
    color: var(--site-text);
}

.site-btn-outline:hover {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE SECTIONS & STUDIO HOVER CONTROLS
   ═══════════════════════════════════════════════════════════════════ */
.page-section {
    position: relative;
    padding: 64px 24px;
    border-bottom: 1px solid var(--site-border);
    transition: background-color 0.2s;
}

.page-section.pad-sm { padding: 32px 24px; }
.page-section.pad-md { padding: 52px 24px; }
.page-section.pad-lg { padding: 76px 24px; }

.page-section.style-default {
    background-color: var(--site-bg);
}

.page-section.style-emphasis-1 {
    background-color: var(--site-surface);
}

.page-section.style-emphasis-2 {
    background: linear-gradient(180deg, var(--site-surface) 0%, var(--site-bg) 100%);
}

.page-section.style-brand {
    background: color-mix(in srgb, var(--site-primary) 9%, var(--site-bg));
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Studio Interactive Hover Borders & Toolbars */
body.mode-studio:not(.studio-preview-only) .page-hero:hover,
body.mode-studio:not(.studio-preview-only) .page-section:hover {
    outline: 2px solid rgba(0, 242, 254, 0.55);
    outline-offset: -2px;
}

body.mode-studio:not(.studio-preview-only) .canvas-block-wrap {
    position: relative;
    border-radius: var(--site-radius);
    transition: outline 0.15s;
}

body.mode-studio:not(.studio-preview-only) .canvas-block-wrap:hover {
    outline: 1.5px dashed rgba(0, 242, 254, 0.75);
    outline-offset: 6px;
}

.studio-floating-controls {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 60;
    background: #0f172a;
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

body.mode-studio:not(.studio-preview-only) .page-hero:hover > .studio-floating-controls,
body.mode-studio:not(.studio-preview-only) .page-section:hover > .studio-floating-controls,
body.mode-studio:not(.studio-preview-only) .canvas-block-wrap:hover > .studio-floating-controls,
body.mode-studio:not(.studio-preview-only) .page-hero.touch-selected > .studio-floating-controls,
body.mode-studio:not(.studio-preview-only) .page-section.touch-selected > .studio-floating-controls,
body.mode-studio:not(.studio-preview-only) .canvas-block-wrap.touch-selected > .studio-floating-controls {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

body.mode-studio:not(.studio-preview-only) .canvas-block-wrap.touch-selected {
    outline: 2px solid #00f2fe;
    outline-offset: 6px;
}

.studio-ctrl-btn {
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.studio-ctrl-btn:hover {
    background: rgba(0, 242, 254, 0.18);
    color: #00f2fe;
}

.studio-ctrl-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Inline Editable Highlights in Studio Mode */
body.mode-studio:not(.studio-preview-only) [contenteditable="true"] {
    cursor: text;
    border-radius: 4px;
    transition: background-color 0.15s, box-shadow 0.15s;
}

body.mode-studio:not(.studio-preview-only) [contenteditable="true"]:focus {
    outline: none;
    background-color: rgba(0, 242, 254, 0.06);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.45);
}

/* Studio Canvas Add Section Bar */
.studio-canvas-add-bar {
    padding: 28px 24px;
    text-align: center;
    background: rgba(0, 242, 254, 0.03);
    border-bottom: 1px dashed rgba(0, 242, 254, 0.35);
}

.studio-add-sec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px dashed var(--studio-accent);
    background: rgba(15, 23, 42, 0.9);
    color: var(--studio-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.studio-add-sec-btn:hover {
    background: var(--studio-accent);
    color: #04101e;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCK RENDERING STYLES (ALL 17 BLOCK TYPES)
   ═══════════════════════════════════════════════════════════════════ */
.block-header {
    margin-bottom: 28px;
}

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

.block-title {
    font-family: var(--site-heading-font);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--site-text);
    margin-bottom: 8px;
}

.block-subtitle {
    color: var(--site-muted);
    font-size: 1.02rem;
    max-width: 720px;
}

.block-header.center .block-subtitle {
    margin: 0 auto;
}

/* 1. Rich Text Block */
.block-richtext-body {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--site-text);
}

.block-richtext-body p { margin-bottom: 14px; }
.block-richtext-body h2, .block-richtext-body h3 {
    font-family: var(--site-heading-font);
    margin: 20px 0 10px;
}
.block-richtext-body ul, .block-richtext-body ol {
    margin: 10px 0 14px 24px;
}
.block-richtext-body a {
    color: var(--site-primary);
    text-decoration: underline;
}
.block-richtext-body code {
    font-family: var(--site-mono-font);
    background: color-mix(in srgb, var(--site-primary) 12%, transparent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 2. Feature Cards Grid (2, 3, or 4 Columns) */
.cards-grid {
    display: grid;
    gap: 22px;
}
.cards-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.feature-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--site-primary) 45%, transparent);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--site-primary) 14%, transparent);
    color: var(--site-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.feature-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: calc(var(--site-radius) - 4px);
    margin-bottom: 4px;
}

.feature-card h3 {
    font-family: var(--site-heading-font);
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--site-muted);
    font-size: 0.95rem;
    flex: 1;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--site-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 4px;
}

/* 3. Split Feature (2-Column Image + Text) */
.split-feature-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.split-feature-grid.img-left .split-media {
    order: -1;
}

.split-media img {
    width: 100%;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    display: block;
}

/* 4. Metrics / KPI Counters */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.metric-card {
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--site-primary) 14%, transparent);
    color: var(--site-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.metric-val {
    font-family: var(--site-heading-font);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--site-text);
}

.metric-lbl {
    font-size: 0.85rem;
    color: var(--site-muted);
}

/* 5. Single Image & 6. Gallery / Carousel */
.single-image-figure {
    text-align: center;
}

.single-image-figure img {
    max-width: 100%;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border);
    cursor: zoom-in;
}

.single-image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--site-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-card {
    border-radius: var(--site-radius);
    overflow: hidden;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    cursor: zoom-in;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card-cap {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--site-muted);
}

/* 7. Collapsible Group (FAQ Accordion) */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: var(--site-text);
    font-family: var(--site-heading-font);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.accordion-trigger i {
    color: var(--site-primary);
    transition: transform 0.2s;
}

.accordion-item.open .accordion-trigger i {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 22px 18px;
    color: var(--site-muted);
    font-size: 0.96rem;
    border-top: 1px solid var(--site-border);
    padding-top: 14px;
}

.accordion-item.open .accordion-content {
    display: block;
}

/* 8. Pricing Comparison Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--site-primary);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--site-primary) 16%, transparent);
}

.pricing-badge {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    background: color-mix(in srgb, var(--site-primary) 16%, transparent);
    color: var(--site-primary);
}

.pricing-price {
    font-family: var(--site-heading-font);
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-price span {
    font-size: 0.95rem;
    color: var(--site-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.94rem;
    color: var(--site-text);
}

.pricing-features li i {
    color: var(--site-secondary);
}

/* 9. Timeline / Roadmap */
.timeline-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}

.timeline-row {
    display: flex;
    gap: 18px;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 22px;
}

.timeline-step-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--site-primary) 15%, transparent);
    color: var(--site-primary);
    font-family: var(--site-mono-font);
    font-size: 12px;
    font-weight: 700;
    height: fit-content;
    white-space: nowrap;
}

/* 10. Data Table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
}

.site-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.93rem;
}

.site-table th {
    padding: 14px 18px;
    background: color-mix(in srgb, var(--site-text) 5%, transparent);
    font-family: var(--site-heading-font);
    font-weight: 700;
    border-bottom: 1px solid var(--site-border);
}

.site-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--site-border);
    color: var(--site-muted);
}

.site-table tr:last-child td {
    border-bottom: none;
}

/* 11. Code / Terminal Block */
.code-block-card {
    border-radius: var(--site-radius);
    background: #070b14;
    border: 1px solid rgba(0, 242, 254, 0.28);
    overflow: hidden;
}

.code-block-top {
    padding: 10px 16px;
    background: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--site-mono-font);
    font-size: 12px;
    color: #94a3b8;
}

.code-copy-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    color: #e2e8f0;
    font-size: 11px;
    cursor: pointer;
}

.code-block-pre {
    padding: 18px;
    overflow-x: auto;
    font-family: var(--site-mono-font);
    font-size: 13px;
    color: #38bdf8;
    line-height: 1.6;
}

/* 12. Callout Banner */
.callout-box {
    padding: 22px 26px;
    border-radius: var(--site-radius);
    border-left: 4px solid var(--site-primary);
    background: var(--site-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* 13. Table of Contents */
.toc-box {
    padding: 20px 24px;
    border-radius: var(--site-radius);
    background: var(--site-surface);
    border: 1px solid var(--site-border);
}

.toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.toc-pill {
    padding: 6px 13px;
    border-radius: 99px;
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    color: var(--site-text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.toc-pill:hover {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

/* 14. Contact Form (Wired to ctrlgriddb) */
.contact-form-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 32px;
}

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

.site-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.site-input-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--site-muted);
}

.site-input-group input,
.site-input-group textarea {
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid var(--site-border);
    background: var(--site-bg);
    color: var(--site-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.site-input-group input:focus,
.site-input-group textarea:focus {
    outline: none;
    border-color: var(--site-primary);
}

/* 15. Embed Block */
.embed-frame-wrap {
    border-radius: var(--site-radius);
    overflow: hidden;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
}

.embed-frame-wrap iframe {
    width: 100%;
    height: 440px;
    border: 0;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
    padding: 48px 24px;
    background: var(--site-surface);
    border-top: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 0.92rem;
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-links a {
    color: var(--site-muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--site-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING STUDIO BUTTON & INLINE RTE BAR
   ═══════════════════════════════════════════════════════════════════ */
.floating-studio-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 99px;
    border: 1px solid rgba(0, 242, 254, 0.45);
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
    color: #00f2fe;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: all 0.2s;
}

.floating-studio-btn:hover {
    transform: translateY(-2px);
    background: #00f2fe;
    color: #04101e;
}

body.mode-studio .floating-studio-btn {
    display: none !important;
}

.inline-rte-bar {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: #0f172a;
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 9px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.inline-rte-bar button {
    width: 30px;
    height: 28px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.inline-rte-bar button:hover {
    background: rgba(0, 242, 254, 0.2);
    color: #00f2fe;
}

.rte-sep {
    width: 1px;
    height: 18px;
    background: #334155;
    margin: 0 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   MODALS, TOASTS & LIGHTBOX
   ═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 14px;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #1e293b;
    background: #0d1322;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-msg {
    padding: 10px 18px;
    border-radius: 99px;
    background: #0f172a;
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(3, 7, 18, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.lightbox-caption {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

/* Repeaters inside Block Editor Modal */
.editor-repeater-item {
    padding: 12px;
    border-radius: 9px;
    background: #182235;
    border: 1px solid #26334d;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.editor-repeater-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SITE CREATOR, AUTO-REMAKE LAYOUTS & NATIVE PHONE STUDIO UI
   ═══════════════════════════════════════════════════════════════════ */
.studio-pill-mobile {
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.studio-pill-mobile:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
}

.mobile-creator-ribbon {
    background: linear-gradient(90deg, #0b1528 0%, #0d1f2d 100%);
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    z-index: 950;
}

.mobile-creator-ribbon-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(0, 242, 254, 0.16);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #00f2fe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.mc-status-text {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

.mobile-creator-ribbon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.mc-action-btn:hover {
    border-color: #00f2fe;
    color: #00f2fe;
}

.mc-action-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
}

.mc-action-btn.primary:hover {
    filter: brightness(1.08);
    color: #ffffff;
}

.mobile-creator-hero-card {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 242, 254, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(0, 242, 254, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-card-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: #00f2fe;
    letter-spacing: 0.06em;
}

.mobile-creator-hero-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mobile-creator-hero-card p {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.45;
}

.mc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.studio-remake-sec-btn {
    border-color: #10b981;
    color: #34d399;
    margin-left: 8px;
}

.studio-remake-sec-btn:hover {
    background: #10b981;
    color: #04101e;
}

/* Native Mobile Bottom App Tab Bar (Visitor & Mobile Preview) */
.site-mobile-bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: color-mix(in srgb, var(--site-surface) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--site-border);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
}

.mob-tab-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--site-muted);
    font-size: 10.5px;
    font-weight: 600;
    transition: all 0.15s;
}

.mob-tab-link i {
    font-size: 15px;
}

.mob-tab-link.active {
    color: var(--site-primary);
    background: color-mix(in srgb, var(--site-primary) 12%, transparent);
}

/* Mobile Layout Remaker Classes (Active when on Phone <=768px OR inside Studio Mobile Viewport) */
.is-mobile-render .page-hero.mobile-hero-compact {
    padding: 36px 18px;
}

.is-mobile-render .page-hero.mobile-hero-compact .hero-title {
    font-size: 1.75rem;
}

.is-mobile-render .page-hero.mobile-hero-compact .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.is-mobile-render .page-hero.mobile-hero-compact .hero-buttons {
    flex-direction: column;
    width: 100%;
}

.is-mobile-render .page-hero.mobile-hero-compact .hero-buttons .site-btn {
    width: 100%;
}

.is-mobile-render .page-section {
    padding: 36px 16px;
}

/* Horizontal Touch-Snap Carousel for Mobile Cards / Galleries / Pricing */
.is-mobile-render .mobile-layout-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    padding-bottom: 10px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}

.is-mobile-render .mobile-layout-carousel > * {
    flex: 0 0 84% !important;
    max-width: 84% !important;
    scroll-snap-align: center;
}

/* Compact 2x2 Grid on Mobile */
.is-mobile-render .mobile-layout-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}

.is-mobile-render .mobile-layout-grid-2 .metric-card,
.is-mobile-render .mobile-layout-grid-2 .feature-card {
    padding: 14px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.is-mobile-render .mobile-layout-grid-2 .metric-val {
    font-size: 1.3rem;
}

/* Vertical Full-Width Stack on Mobile */
.is-mobile-render .mobile-layout-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

/* Auto-Converted Mobile Cards for Data Tables */
.mobile-table-cards-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.is-mobile-render .table-wrap.mobile-table-as-cards .site-table {
    display: none;
}

.is-mobile-render .table-wrap.mobile-table-as-cards {
    border: none;
    background: transparent;
}

.is-mobile-render .table-wrap.mobile-table-as-cards .mobile-table-cards-list {
    display: flex;
}

.mobile-table-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-table-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--site-border);
    padding-bottom: 6px;
}

.mobile-table-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-table-card-lbl {
    font-weight: 700;
    color: var(--site-muted);
    font-size: 0.8rem;
}

.mobile-table-card-val {
    color: var(--site-text);
    font-weight: 600;
    text-align: right;
}

/* Block Visibility Badges in Studio */
.mobile-vis-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   PHONE-NATIVE STUDIO EXPERIENCE (<= 900px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .split-feature-grid {
        grid-template-columns: 1fr;
    }
    .site-form-grid {
        grid-template-columns: 1fr;
    }
    .site-nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hide-on-phone {
        display: none !important;
    }

    /* Prevent iOS Safari zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Compact Phone Studio Topbar */
    .studio-topbar {
        height: auto;
        min-height: 54px;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .studio-title-input {
        width: 125px;
        font-size: 13px !important;
    }

    .studio-status-row {
        display: none;
    }

    .studio-btn-publish {
        padding: 0 11px;
        height: 32px;
        font-size: 12px;
    }

    .mobile-creator-ribbon {
        padding: 6px 10px;
    }

    .mc-status-text {
        display: none;
    }

    body.mode-studio .site-viewport-container {
        padding: 0 0 calc(68px + env(safe-area-inset-bottom, 0px)) 0;
    }

    body.mode-studio .site-frame {
        border-radius: 0;
        border: none;
        width: 100% !important;
    }

    /* Transform Right Studio Dock into Slide-Up Native Bottom Sheet on Phones */
    .studio-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        height: 68dvh;
        max-height: 75vh;
        border-left: none;
        border-top: 1px solid rgba(0, 242, 254, 0.4);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.78);
        transform: translateY(110%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1200;
    }

    .studio-dock.mobile-sheet-open {
        transform: translateY(0);
    }

    .mobile-dock-sheet-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 16px 6px;
        border-bottom: 1px solid var(--studio-border);
        background: #0d1322;
        border-radius: 20px 20px 0 0;
    }

    .sheet-pill-handle {
        width: 40px;
        height: 4px;
        border-radius: 99px;
        background: rgba(148, 163, 184, 0.35);
        margin-bottom: 6px;
    }

    .mobile-dock-sheet-top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13px;
        color: #fff;
    }

    /* Fixed Bottom Studio Bar on Phone */
    body.mode-studio:not(.studio-preview-only) .studio-phone-bottombar {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #0b1120;
        border-top: 1px solid var(--studio-border);
        z-index: 1300;
    }

    .sp-nav-btn {
        background: transparent;
        border: none;
        color: var(--studio-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
    }

    .sp-nav-btn i {
        font-size: 16px;
    }

    .sp-nav-btn.active {
        color: var(--studio-accent);
    }

    .sp-nav-btn.sp-highlight {
        color: #34d399;
    }

    .floating-studio-btn {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        padding: 9px 14px;
        font-size: 12px;
    }
}
