/**
 * S&R CoreSync For Intelligent Solutions - Sovereign Unified Design System (UDS)
 * Single Source of Truth for Global Typography, Spacing, Color Tokens, and Responsive Shell
 * Version: 2026.11-MasterSovereign
 */

@import url('../assets/fonts/gf/mono.css');

:root {
    /* 1. Global Sovereign Color Tokens */
    --sr-gold: #d4af37;
    --sr-gold-light: #f3dfba;
    --sr-gold-dark: #8c734b;
    --sr-gold-gradient: linear-gradient(135deg, #f3dfba 0%, #d4af37 50%, #8c734b 100%);
    --sr-gold-glow: 0 0 24px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25);
    
    --sr-bg-root: #030806;
    --sr-bg-card: rgba(8, 18, 13, 0.9);
    --sr-bg-card-hover: rgba(14, 28, 20, 0.96);
    --sr-bg-panel: rgba(5, 12, 8, 0.94);
    
    --sr-border: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.22);
    --sr-border-active: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.55);
    --sr-border-subtle: rgba(255, 255, 255, 0.08);
    
    --sr-emerald: #10b981;
    --sr-emerald-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    --sr-cyan: #38bdf8;
    --sr-red: #ef4444;
    
    --sr-text-primary: #f8fafc;
    --sr-text-secondary: #cbd5e1;
    --sr-text-muted: #94a3b8;
    --sr-text-dark: #0f172a;
    
    /* 2. Global Sovereign Typography Tokens */
    --sr-font-scale: 100%;
    --sr-font-heading: 'Alexandria', system-ui, -apple-system, sans-serif;
    --sr-font-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
    --sr-font-latin: 'Space Grotesk', system-ui, sans-serif;
    --sr-font-mono: 'JetBrains Mono', monospace;

    /* 3. Geometry & Spacing Scale */
    --sr-radius-sm: 8px;
    --sr-radius-md: 14px;
    --sr-radius-lg: 20px;
    --sr-radius-xl: 26px;
    --sr-radius-full: 9999px;
    
    --sr-container-max: 1360px;
}

/* Base Global Reset with RTL Priority */
html {
    font-size: var(--sr-font-scale);
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--sr-bg-root);
    color: var(--sr-text-primary);
    font-family: var(--sr-font-body);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings Unification */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sr-font-heading);
    font-weight: 800;
    color: var(--sr-text-primary);
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

h1 { font-size: 2.35rem; font-weight: 900; }
h2 { font-size: 1.85rem; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
    margin: 0 0 1rem 0;
    color: var(--sr-text-secondary);
}

/* Master Sovereign Container */
.sr-unified-container {
    max-width: var(--sr-container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Master Unified Cards & Panels */
.sr-unified-card {
    background: var(--sr-bg-card);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sr-unified-card:hover {
    border-color: var(--sr-border-active);
    box-shadow: var(--sr-gold-glow);
}

/* Master Badges */
.sr-unified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
    border: 1px solid var(--sr-border);
    color: var(--sr-gold-light);
    padding: 6px 18px;
    border-radius: var(--sr-radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--sr-font-heading);
}

.sr-unified-badge.emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--sr-emerald);
}

/* Master Buttons */
.sr-unified-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--sr-radius-md);
    background: var(--sr-gold-gradient);
    color: var(--sr-bg-root);
    font-family: var(--sr-font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sr-unified-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sr-gold-glow);
}

.sr-unified-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: var(--sr-radius-md);
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
    border: 1px solid var(--sr-border);
    color: var(--sr-gold-light);
    font-family: var(--sr-font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sr-unified-btn-secondary:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.24);
    border-color: var(--sr-gold);
    color: #fff;
}

/* Master Unified Header Bar (Injectable / Reusable) */
.sr-master-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(3, 8, 5, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--sr-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.sr-master-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.sr-master-nav-brand img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.35));
}

.sr-master-nav-brand-text {
    display: flex;
    flex-direction: column;
}

.sr-master-brand-title {
    font-family: var(--sr-font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--sr-gold-light);
    letter-spacing: -0.2px;
}

.sr-master-brand-sub {
    font-family: var(--sr-font-latin);
    font-size: 0.68rem;
    color: var(--sr-text-muted);
}

.sr-master-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sr-master-nav-link {
    color: var(--sr-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--sr-font-heading);
    transition: color 0.2s ease;
}

.sr-master-nav-link:hover, .sr-master-nav-link.active {
    color: var(--sr-gold-light);
}

.sr-master-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Master Font Resizer Widget Styles */
.sr-text-resizer-widget {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 24, 16, 0.75);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-full);
    padding: 3px 6px;
    gap: 4px;
}

.sr-resizer-btn {
    background: none;
    border: none;
    color: var(--sr-gold-light);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: var(--sr-radius-full);
    transition: background 0.2s;
    font-family: var(--sr-font-latin);
}

.sr-resizer-btn:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25);
    color: #fff;
}

.sr-resizer-indicator {
    background: none;
    border: none;
    color: var(--sr-emerald);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    font-family: var(--sr-font-mono);
}

/* Master Hamburger Button */
.sr-master-menu-toggle {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
    border: 1px solid var(--sr-border);
    color: var(--sr-gold-light);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sr-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
}

.sr-master-menu-toggle:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.24);
    color: #fff;
}

/* Unified Mobile / Offcanvas Drawer */
.sr-master-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -420px;
    width: 380px;
    max-width: 90vw;
    background: rgba(4, 12, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1.5px solid var(--sr-border);
    z-index: 10000;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.sr-master-drawer.open {
    right: 0;
}

.sr-master-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sr-master-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.sr-drawer-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sr-border-subtle);
}

.sr-drawer-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.sr-drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-drawer-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--sr-radius-sm);
    text-decoration: none;
    color: var(--sr-text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sr-drawer-item a:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.14);
    border-color: var(--sr-border);
    color: #fff;
    transform: translateX(-4px);
}

.sr-drawer-item-num {
    font-family: var(--sr-font-mono);
    font-size: 0.72rem;
    color: var(--sr-gold);
}

/* Master Unified Footer */
.sr-master-footer {
    background: #020504;
    border-top: 1px solid var(--sr-border);
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.sr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .sr-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sr-master-nav-links {
        display: none;
    }
}

.sr-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--sr-border-subtle);
    font-size: 0.78rem;
    color: var(--sr-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================
   Sovereign Hero Banner & AI Idea Analyzer Component
   ========================================================== */
.hero-banner {
    position: relative;
    padding: 60px 0 50px;
    background: radial-gradient(ellipse at 50% 20%, rgba(var(--sr-gold-rgb, 212, 175, 55), 0.08) 0%, rgba(3, 8, 6, 0.95) 70%);
    border-top: 1px solid var(--sr-border);
    border-bottom: 1px solid var(--sr-border);
    overflow: hidden;
    margin: 40px 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sr-gold), transparent);
}

.hero-banner .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-banner h1 {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 40%, var(--sr-gold-light) 80%, var(--sr-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero-banner p {
    font-size: 1.05rem;
    color: var(--sr-text-secondary);
    max-width: 820px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.ai-prompt-box {
    display: flex;
    align-items: center;
    background: rgba(8, 20, 14, 0.85);
    border: 1.5px solid var(--sr-border);
    border-radius: var(--sr-radius-xl);
    padding: 8px 10px 8px 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), var(--sr-gold-glow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.ai-prompt-box:focus-within {
    border-color: var(--sr-gold);
    box-shadow: 0 0 30px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
    transform: translateY(-2px);
}

.ai-prompt-box input[type="text"] {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--sr-font-body);
    font-size: 1rem;
    padding: 10px 14px;
    direction: rtl;
    text-align: right;
}

.ai-prompt-box input[type="text"]::placeholder {
    color: var(--sr-text-muted);
    font-size: 0.95rem;
}

.ai-prompt-box .btn-primary {
    background: var(--sr-gold-gradient);
    color: var(--sr-bg-root);
    border: none;
    border-radius: var(--sr-radius-md);
    padding: 12px 28px;
    font-family: var(--sr-font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-prompt-box .btn-primary:hover {
    box-shadow: 0 0 20px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.5);
    transform: translateY(-1px);
}

.quick-prompts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--sr-text-muted);
}

.quick-prompts span {
    font-weight: 700;
    color: var(--sr-gold);
}

.quick-prompts button {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.1);
    border: 1px solid var(--sr-border);
    color: var(--sr-gold-light);
    border-radius: var(--sr-radius-full);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--sr-font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-prompts button:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.22);
    border-color: var(--sr-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .ai-prompt-box {
        flex-direction: column;
        padding: 12px;
        border-radius: var(--sr-radius-lg);
        gap: 10px;
    }
    .ai-prompt-box input[type="text"] {
        width: 100%;
        padding: 8px 4px;
    }
    .ai-prompt-box .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* AI Analysis Modal */
.sr-ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sr-ai-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sr-ai-modal-content {
    background: rgba(6, 16, 10, 0.98);
    border: 2px solid var(--sr-gold);
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    padding: 34px 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), var(--sr-gold-glow);
    direction: rtl;
    text-align: right;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sr-ai-modal-overlay.open .sr-ai-modal-content {
    transform: scale(1);
}

@keyframes srPulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.45);
        opacity: 0.55;
    }
}

/* ==========================================================
   Priority Stacking & Header Support Dropdown Fix
   Ensure Support Tools Dropdown is ALWAYS above Floating Social Bar
   ========================================================== */
.floating-follow {
    z-index: 99 !important;
}

header.header,
.header-original,
.header-upper,
.sr-master-header,
.header-support-dropdown-wrap {
    z-index: 10001 !important;
    position: relative;
}

.header-support-menu {
    z-index: 10005 !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: auto !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(16, 185, 129, 0.35) !important;
}

@media (max-width: 1200px) {
    .header-support-menu {
        left: -10px !important;
    }
}

/* ==========================================================
   Compact Viewport-Fitted Sovereign Hero Section (100% Height)
   ========================================================== */
.section-hero-v1.hero-reference {
    min-height: calc(100vh - 85px) !important;
    max-height: 920px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 0 25px !important;
    overflow: hidden;
}

.container-hero-luxury {
    max-width: 1380px !important;
    width: 100% !important;
    padding: 0 30px !important;
}

.hero-reference__grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    align-items: center !important;
    gap: 36px !important;
}

/* Rotating headline */
.hero-dynamic-title-wrap {
    margin-bottom: 12px !important;
}

.hero-rotating-text-frame {
    display: block;
    min-height: 58px;
    position: relative;
}

.hero-rotating-text-item {
    display: inline-block;
    font-size: clamp(1.65rem, 2.5vw, 2.55rem);
    font-weight: 900;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 20%, #f3dfba 55%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Ensure all hero copy elements are always fully visible immediately with crisp sharp rendering */
.hero-reference__bottom,
.hero-intro,
.hero-title-line,
.hero-top-meta-row,
.hero-reference__copy,
.hero-reference__copy * {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.hero-reference__copy {
    animation: none !important;
}

.hero-reference__bottom {
    display: block !important;
    margin-top: 14px !important;
    animation: none !important;
}

.hero-title-line {
    display: block !important;
}

.hero-title-line__text {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    color: #e2e8f0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.hero-availability {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Service Pillars Pills */
.hero-service-pillars-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #6ee7b7;
    font-weight: 700;
    margin-top: 4px;
}

.hero-service-pillars-pills span {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
}

/* Compact Actions */
.hero-actions-compact {
    margin: 16px 0 12px !important;
}

.hero-actions-compact .hero-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions-compact .hero-reference__action {
    padding: 12px 22px !important;
    font-size: 0.94rem !important;
    border-radius: 12px !important;
}

/* Quick Portals Strip */
.hero-quick-portals-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.hero-quick-portal-link,
.hero-quick-portal-btn {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.hero-quick-portal-link:hover,
.hero-quick-portal-btn:hover {
    color: #d4af37;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.1);
}

.hero-portal-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* Compact Sectors Row */
.hero-compact-sectors-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-compact-sectors-label {
    font-size: 0.78rem;
    color: #d4af37;
    font-weight: 800;
}

.hero-compact-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-compact-chip:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.16);
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Compact Trust Metrics */
.hero-trust-compact {
    margin-top: 10px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.hero-trust-compact .metric-val {
    font-size: 1rem !important;
}

.hero-trust-compact .metric-lbl {
    font-size: 0.72rem !important;
}

/* Scaled 3D Emblem Stage to Fit Screen Perfectly & Circular Cover */
.hero-emblem-card-3d {
    width: clamp(300px, 28vw, 420px) !important;
    height: clamp(300px, 28vw, 420px) !important;
    margin: 0 auto;
    border-radius: 50% !important;
}

.hero-emblem-frame {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.hero-emblem-render-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-hero-v1.hero-reference {
        min-height: auto !important;
        max-height: none !important;
        padding: 40px 0 !important;
    }
    .hero-reference__grid {
        grid-template-columns: 1fr !important;
    }
    .hero-reference__emblem-col {
        order: -1 !important;
    }
}


/* ============================================================
   PHASE 157 — Orbital Hologram Glow + Bullet Dots + Studio Peek
   S&R CoreSync Sovereign Design System
   ============================================================ */

/* ── FIX: Force circular emblem with no overflow leaking ── */
.hero-emblem-card-3d {
    overflow: hidden !important;
    border-radius: 50% !important;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ── ORBITAL HOLOGRAM GLOW — Layered rotating rings ── */
@keyframes srHologramRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes srHologramRotateReverse {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes srHologramPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 0.9;  transform: scale(1.04); }
}

/* Outer golden rotating ring */
.hero-emblem-card-3d::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(var(--sr-gold-rgb, 212, 175, 55), 0.0) 30%,
        rgba(var(--sr-gold-rgb, 212, 175, 55), 0.85) 50%,
        rgba(255, 215, 0, 0.95) 55%,
        rgba(var(--sr-gold-rgb, 212, 175, 55), 0.5) 70%,
        transparent 100%
    );
    animation: srHologramRotate 4.5s linear infinite, srHologramPulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    mask: radial-gradient(circle, transparent 72%, black 73%);
    -webkit-mask: radial-gradient(circle, transparent 72%, black 73%);
    filter: blur(1.5px);
}

/* Inner emerald counter-rotating ring */
.hero-emblem-card-3d::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        transparent 0%,
        rgba(16, 185, 129, 0.0) 25%,
        rgba(16, 185, 129, 0.7) 45%,
        rgba(52, 211, 153, 0.9) 50%,
        rgba(16, 185, 129, 0.4) 65%,
        transparent 100%
    );
    animation: srHologramRotateReverse 6s linear infinite;
    z-index: -1;
    pointer-events: none;
    mask: radial-gradient(circle, transparent 80%, black 81%);
    -webkit-mask: radial-gradient(circle, transparent 80%, black 81%);
    filter: blur(1px);
    opacity: 0.75;
}

/* Emblem parallax smooth transition */
.hero-emblem-card-3d {
    transition: transform 0.08s ease-out;
}

/* ── BULLET DOT INDICATORS — Rotating Title Navigator ── */
.hero-title-dots {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 2px;
    padding-right: 2px;
}

.hero-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.3);
    border: 1.5px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    outline: none;
}

.hero-title-dot:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.6);
    border-color: #d4af37;
    transform: scale(1.3);
}

.hero-title-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d4af37, #f5d26a);
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.6), 0 0 20px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.3);
    animation: srPulseDotActive 2s ease-in-out infinite;
}

@keyframes srPulseDotActive {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.5), 0 0 16px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25); }
    50%       { box-shadow: 0 0 14px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.8), 0 0 28px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4); }
}

/* ── STUDIO PEEK MODAL — Glassmorphism Instant Preview ── */
#srStudioPeekOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#srStudioPeekOverlay.sr-peek-visible {
    opacity: 1;
    visibility: visible;
}

.sr-studio-peek-card {
    direction: rtl;
    text-align: right;
    background: linear-gradient(145deg,
        rgba(15, 23, 36, 0.97) 0%,
        rgba(20, 28, 45, 0.95) 50%,
        rgba(10, 15, 26, 0.98) 100%
    );
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
    border-radius: 24px;
    padding: 26px 28px 24px;
    max-width: 520px;
    width: 92%;
    box-shadow:
        0 0 70px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.16),
        0 25px 70px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#srStudioPeekOverlay.sr-peek-visible .sr-studio-peek-card {
    transform: translateY(0) scale(1);
}

.sr-studio-peek-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 160px; height: 160px;
    background: radial-gradient(circle at top right, rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12), transparent 70%);
    pointer-events: none;
}

/* ── Top Bar with Fast Close ── */
.sr-peek-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sr-peek-icon {
    font-size: 1.8rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.6));
}

.sr-peek-badge {
    display: inline-block;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.35);
    color: #f3dfba;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.sr-peek-close-corner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sr-peek-close-corner:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* ── Live Visual Showcase Card (Phase 158) ── */
.sr-peek-visual-box {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.3);
    background: #050a0e;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sr-peek-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-studio-peek-card:hover .sr-peek-thumb-img {
    transform: scale(1.04);
}

.sr-peek-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 10, 14, 0.05) 0%,
        rgba(5, 10, 14, 0.3) 50%,
        rgba(10, 15, 26, 0.85) 100%
    );
    pointer-events: none;
}

.sr-peek-kpi-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(10, 20, 28, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Content Title & Description ── */
.sr-peek-title {
    font-size: 1.28rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.35;
    background: linear-gradient(135deg, #ffffff 40%, #f3dfba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sr-peek-desc {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 14px;
}

/* ── Tech Stack & Capabilities Tags ── */
.sr-peek-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.sr-peek-tag-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25);
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.sr-peek-tag-pill:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.15);
    border-color: #d4af37;
    color: #ffffff;
}

/* ── Action Buttons ── */
.sr-peek-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.sr-peek-btn-go {
    padding: 11px 24px;
    background: linear-gradient(135deg, #d4af37, #c5a028);
    color: #060b09;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.35);
}

.sr-peek-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.55);
}

.sr-peek-btn-close {
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sr-peek-btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ── Responsive adjustments ── */
@media (max-width: 576px) {
    .sr-studio-peek-card {
        padding: 20px 18px 18px;
        max-width: 95%;
    }
    .sr-peek-visual-box {
        height: 140px;
    }
    .sr-peek-actions {
        flex-direction: column;
    }
    .sr-peek-btn-go,
    .sr-peek-btn-close {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================
   PHASE 159 — Web Audio Haptics + Gallery Tabs + AI Estimator
   S&R CoreSync Sovereign Design System
   ============================================================ */

/* ── Hero Sound Toggle Button ── */
.hero-sound-toggle-btn {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.08);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.3);
    color: #f3dfba;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-sound-toggle-btn:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.2);
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.35);
}

.hero-sound-toggle-btn.is-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

/* ── Mini Gallery Tabs inside Studio Peek Card ── */
.sr-peek-tabs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sr-peek-tab-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
}

.sr-peek-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sr-peek-tab-btn.active {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.16);
    border-color: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.45);
    color: #f3dfba;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.2);
}

/* ── AI Scope & Timeline Estimator Modal ── */
#srAiEstimateModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

#srAiEstimateModal.sr-estimate-visible {
    opacity: 1;
    visibility: visible;
}

.sr-ai-estimate-card {
    direction: rtl;
    text-align: right;
    background: linear-gradient(145deg,
        rgba(15, 24, 38, 0.98) 0%,
        rgba(18, 27, 44, 0.96) 50%,
        rgba(10, 16, 28, 0.99) 100%
    );
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.45);
    border-radius: 24px;
    padding: 30px 32px 26px;
    max-width: 600px;
    width: 94%;
    box-shadow:
        0 0 80px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.2),
        0 30px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(26px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#srAiEstimateModal.sr-estimate-visible .sr-ai-estimate-card {
    transform: translateY(0) scale(1);
}

.sr-estimate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.sr-estimate-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 12px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.7));
}

.sr-estimate-badge {
    display: inline-block;
    color: #d4af37;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sr-estimate-title {
    font-size: 1.28rem;
    font-weight: 900;
    color: #ffffff;
    margin: 2px 0 0;
}

/* User query strip */
.sr-estimate-user-query {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.sr-query-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.sr-query-text {
    font-size: 0.88rem;
    color: #f3dfba;
    margin: 0;
    font-weight: 600;
    font-style: italic;
}

/* Metrics Grid */
.sr-estimate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.sr-est-metric-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sr-est-lbl {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.sr-est-val {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 800;
}

.sr-val-gold {
    color: #f3dfba !important;
    text-shadow: 0 0 10px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
}

.sr-val-emerald {
    color: #6ee7b7 !important;
}

/* Phases */
.sr-estimate-phases {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
}

.sr-phases-label {
    font-size: 0.74rem;
    color: #d4af37;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.sr-phase-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 700;
}

.sr-phase-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sr-phase-step .step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.2);
    border: 1px solid #d4af37;
    color: #f3dfba;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-phase-sep {
    color: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
    font-size: 0.9rem;
}

/* Actions */
.sr-estimate-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.sr-peek-btn-secondary {
    padding: 11px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sr-peek-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
}

@media (max-width: 576px) {
    .sr-ai-estimate-card {
        padding: 20px 16px;
    }
    .sr-estimate-grid {
        grid-template-columns: 1fr;
    }
    .sr-phase-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .sr-phase-sep {
        display: none;
    }
    .sr-estimate-actions {
        flex-direction: column;
    }
    .sr-estimate-actions button,
    .sr-estimate-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================
   PHASE 160 — PDF Export + Benchmark Compare + Voice Dictation
   S&R CoreSync Sovereign Design System
   ============================================================ */

/* ── Voice-to-Text Microphone Button in Hero ── */
.sr-voice-dictate-btn {
    position: absolute;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.4);
    background: rgba(10, 16, 26, 0.85);
    color: #f3dfba;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.sr-voice-dictate-btn:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.25);
    border-color: #d4af37;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.5);
}

.sr-voice-dictate-btn.is-listening {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    animation: srVoicePulse 1.2s ease-in-out infinite;
}

@keyframes srVoicePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 0 15px rgba(239, 68, 68, 0.4);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 0 25px rgba(239, 68, 68, 0.7);
        transform: scale(1.18);
    }
}

/* ── Before/After Comparison Benchmark in Peek Modal ── */
.sr-peek-benchmark-section {
    margin: 12px 0 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.sr-peek-benchmark-toggle-btn {
    width: 100%;
    padding: 9px 14px;
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.06);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #f3dfba;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.sr-peek-benchmark-toggle-btn:hover {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.15);
    color: #ffffff;
}

.sr-toggle-arrow {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.sr-peek-benchmark-toggle-btn.is-open .sr-toggle-arrow {
    transform: rotate(180deg);
}

.sr-peek-benchmark-box {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: srFadeSlideDown 0.25s ease;
}

@keyframes srFadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sr-benchmark-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.sr-benchmark-row:last-child {
    border-bottom: none;
}

.sr-bm-vs {
    color: #d4af37;
    font-weight: 800;
    font-size: 0.72rem;
    white-space: nowrap;
}

.sr-bm-item {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
}

.sr-bm-item.legacy {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    text-decoration: line-through;
    opacity: 0.85;
}

.sr-bm-item.coresync {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-weight: 800;
}

/* ── PDF Export Button in AI Estimator Modal ── */
.sr-peek-btn-pdf {
    padding: 11px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.sr-peek-btn-pdf:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

/* ---------------------------------------------------------------------------
   "More" dropdown (06 ROI · 07 FAQ · 08 Blog · 09 API).
   These rules lived only inside index.html's inline <style> block, so the 28
   language pages had no rule at all for #navMoreSubmenu: it rendered as a naked
   <ul> in the header flow, overlapping the logo and the menu labels. The toggle
   JavaScript is present on every page (navMoreSubmenu appears 4 times), so only
   the styling was missing. This file is loaded by the master and by all 28
   language pages, which makes it the right home for the shared rule.
   --------------------------------------------------------------------------- */
#navMoreDropdown {
    position: relative;
}

.nav-more-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 210px;
    background: rgba(10, 15, 12, 0.98);
    border: 1px solid rgba(var(--sr-gold-rgb, 212, 175, 55), 0.35);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 9999;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
}

.nav-more-submenu.open {
    display: block;
}

.nav-more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-more-link:hover,
.nav-more-link:focus {
    background: rgba(var(--sr-gold-rgb, 212, 175, 55), 0.12);
    color: #d4af37;
    outline: none;
}

/* ---------------------------------------------------------------------------
   Header breakpoint.
   .nav-menu-main is forced to display:flex !important by a global override and
   no media query ever hides it, so below ~1200px the menu is wider than the
   header (835px of items against a 177px logo) and overflows to the LEFT, under
   the brand. The floating "Menu" button (.btn-mobile-menu) is the intended
   navigation at those widths, so the desktop row is hidden instead of squeezed.
   --------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .tf-header .nav-menu-main {
        display: none !important;
    }
}
