/* ==========================================================================
   Sales Landing Page Stylesheet
   Prefix: .sp- (sales-page) to avoid conflicts with app.css
   ========================================================================== */

/* ==========================================================================
   1. GOOGLE FONTS IMPORTS
   ========================================================================== */

/* Ocean Blue: Playfair Display + Source Sans 3 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Sunset Warm: DM Serif Display + DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Forest Green: Fraunces + Nunito Sans */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,600;1,9..144,700;1,9..144,800;1,9..144,900&family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Royal Purple: Cormorant Garamond + Lato */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* Midnight Dark: Space Grotesk + IBM Plex Sans */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Terracotta: Libre Baskerville + Karla */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Minimal Mono: Instrument Serif + Outfit */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Rose Gold: Cormorant + Raleway */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');


/* ==========================================================================
   2. THEME DEFINITIONS - CSS Custom Properties
   ========================================================================== */

/* ---------- Ocean Blue ---------- */
[data-sales-theme="ocean"] {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F0F7FF;
    --color-bg-dark: #0B1D3A;
    --color-bg-card: #FFFFFF;
    --color-text: #1A2332;
    --color-text-light: #5A6B7F;
    --color-text-on-dark: #F0F7FF;
    --color-text-muted-on-dark: #A8C4E0;
    --color-primary: #1B6B93;
    --color-primary-hover: #15557A;
    --color-primary-light: #E8F4F8;
    --color-accent: #4FC0D0;
    --color-accent-hover: #3AA8B8;
    --color-cta: #E8622C;
    --color-cta-hover: #D05520;
    --color-cta-text: #FFFFFF;
    --color-border: #D8E4EE;
    --color-star: #F5A623;
    --color-success: #2EAE6D;
    --color-guarantee: #FFF8F0;
    --color-guarantee-border: #F5A623;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.08);
    --shadow-md: 0 4px 20px rgba(11, 29, 58, 0.12);
    --shadow-lg: 0 8px 40px rgba(11, 29, 58, 0.16);
}

/* ---------- Sunset Warm ---------- */
[data-sales-theme="sunset"] {
    --color-bg: #FFFCF9;
    --color-bg-alt: #FFF3EA;
    --color-bg-dark: #2D1B0E;
    --color-bg-card: #FFFFFF;
    --color-text: #2D1B0E;
    --color-text-light: #7A5A42;
    --color-text-on-dark: #FFF3EA;
    --color-text-muted-on-dark: #D4A882;
    --color-primary: #E8622C;
    --color-primary-hover: #D05520;
    --color-primary-light: #FFF0E8;
    --color-accent: #F5A623;
    --color-accent-hover: #E09518;
    --color-cta: #E8622C;
    --color-cta-hover: #C84E1E;
    --color-cta-text: #FFFFFF;
    --color-border: #F0DED0;
    --color-star: #F5A623;
    --color-success: #5D8C3E;
    --color-guarantee: #FFF8F0;
    --color-guarantee-border: #F5A623;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(45, 27, 14, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 27, 14, 0.10);
    --shadow-lg: 0 8px 40px rgba(45, 27, 14, 0.14);
}

/* ---------- Forest Green ---------- */
[data-sales-theme="forest"] {
    --color-bg: #FAFFFE;
    --color-bg-alt: #F0FFF4;
    --color-bg-dark: #1A2E1A;
    --color-bg-card: #FFFFFF;
    --color-text: #1A2E1A;
    --color-text-light: #4A6B4A;
    --color-text-on-dark: #E8F5E8;
    --color-text-muted-on-dark: #A8D4A8;
    --color-primary: #2D6A4F;
    --color-primary-hover: #1B5038;
    --color-primary-light: #E8F5E8;
    --color-accent: #74C69D;
    --color-accent-hover: #52B788;
    --color-cta: #D4812A;
    --color-cta-hover: #B86E22;
    --color-cta-text: #FFFFFF;
    --color-border: #C8E6C8;
    --color-star: #F5A623;
    --color-success: #2D6A4F;
    --color-guarantee: #F0FFF4;
    --color-guarantee-border: #74C69D;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(26, 46, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 46, 26, 0.10);
    --shadow-lg: 0 8px 40px rgba(26, 46, 26, 0.14);
}

/* ---------- Royal Purple ---------- */
[data-sales-theme="royal"] {
    --color-bg: #FCFAFF;
    --color-bg-alt: #F5EFFF;
    --color-bg-dark: #1A0A2E;
    --color-bg-card: #FFFFFF;
    --color-text: #1A0A2E;
    --color-text-light: #6B5A80;
    --color-text-on-dark: #F0E6FF;
    --color-text-muted-on-dark: #B89EDB;
    --color-primary: #6C3FA0;
    --color-primary-hover: #572F88;
    --color-primary-light: #F0E6FF;
    --color-accent: #C59EFF;
    --color-accent-hover: #A87EE6;
    --color-cta: #D4662A;
    --color-cta-hover: #B85522;
    --color-cta-text: #FFFFFF;
    --color-border: #E0D0F0;
    --color-star: #F5C518;
    --color-success: #5D8C3E;
    --color-guarantee: #FFF8F0;
    --color-guarantee-border: #F5C518;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 4px rgba(26, 10, 46, 0.08);
    --shadow-md: 0 4px 24px rgba(26, 10, 46, 0.12);
    --shadow-lg: 0 10px 48px rgba(26, 10, 46, 0.18);
}

/* ---------- Midnight Dark ---------- */
[data-sales-theme="midnight"] {
    --color-bg: #0F172A;
    --color-bg-alt: #1E293B;
    --color-bg-dark: #070B14;
    --color-bg-card: #1E293B;
    --color-text: #E2E8F0;
    --color-text-light: #94A3B8;
    --color-text-on-dark: #F0F9FF;
    --color-text-muted-on-dark: #64748B;
    --color-primary: #38BDF8;
    --color-primary-hover: #0EA5E9;
    --color-primary-light: rgba(56, 189, 248, 0.1);
    --color-accent: #818CF8;
    --color-accent-hover: #6366F1;
    --color-cta: #F97316;
    --color-cta-hover: #EA580C;
    --color-cta-text: #FFFFFF;
    --color-border: #334155;
    --color-star: #FBBF24;
    --color-success: #34D399;
    --color-guarantee: rgba(251, 191, 36, 0.08);
    --color-guarantee-border: #FBBF24;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Terracotta ---------- */
[data-sales-theme="terracotta"] {
    --color-bg: #FFFAF5;
    --color-bg-alt: #FFF0E5;
    --color-bg-dark: #3D2416;
    --color-bg-card: #FFFFFF;
    --color-text: #3D2416;
    --color-text-light: #8B6550;
    --color-text-on-dark: #FFF0E5;
    --color-text-muted-on-dark: #D4A882;
    --color-primary: #C4652E;
    --color-primary-hover: #A85525;
    --color-primary-light: #FFF0E5;
    --color-accent: #E8A87C;
    --color-accent-hover: #D4956A;
    --color-cta: #C4652E;
    --color-cta-hover: #A85525;
    --color-cta-text: #FFFFFF;
    --color-border: #EDD8C8;
    --color-star: #F5A623;
    --color-success: #6B8F4E;
    --color-guarantee: #FFF8F0;
    --color-guarantee-border: #E8A87C;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Karla', 'Segoe UI', sans-serif;
    --radius: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(61, 36, 22, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 36, 22, 0.10);
    --shadow-lg: 0 8px 40px rgba(61, 36, 22, 0.14);
}

/* ---------- Minimal Mono ---------- */
[data-sales-theme="minimal"] {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F5;
    --color-bg-dark: #111111;
    --color-bg-card: #FFFFFF;
    --color-text: #111111;
    --color-text-light: #666666;
    --color-text-on-dark: #F5F5F5;
    --color-text-muted-on-dark: #999999;
    --color-primary: #111111;
    --color-primary-hover: #333333;
    --color-primary-light: #F0F0F0;
    --color-accent: #888888;
    --color-accent-hover: #666666;
    --color-cta: #111111;
    --color-cta-hover: #333333;
    --color-cta-text: #FFFFFF;
    --color-border: #E0E0E0;
    --color-star: #111111;
    --color-success: #333333;
    --color-guarantee: #F8F8F8;
    --color-guarantee-border: #CCCCCC;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;
    --radius: 2px;
    --radius-lg: 4px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- Rose Gold ---------- */
[data-sales-theme="rose"] {
    --color-bg: #FFFAFA;
    --color-bg-alt: #FFF0F0;
    --color-bg-dark: #2E1A22;
    --color-bg-card: #FFFFFF;
    --color-text: #2E1A22;
    --color-text-light: #7A5A62;
    --color-text-on-dark: #FFE8E8;
    --color-text-muted-on-dark: #C8A0A8;
    --color-primary: #B76E79;
    --color-primary-hover: #9E5A64;
    --color-primary-light: #FFE8E8;
    --color-accent: #F4C2C2;
    --color-accent-hover: #E8AAAA;
    --color-cta: #B76E79;
    --color-cta-hover: #9E5A64;
    --color-cta-text: #FFFFFF;
    --color-border: #F0D8D8;
    --color-star: #E8B84E;
    --color-success: #6B8F6B;
    --color-guarantee: #FFF8F0;
    --color-guarantee-border: #F4C2C2;
    --font-display: 'Cormorant', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 4px rgba(46, 26, 34, 0.06);
    --shadow-md: 0 4px 20px rgba(46, 26, 34, 0.08);
    --shadow-lg: 0 8px 36px rgba(46, 26, 34, 0.12);
}


/* ==========================================================================
   3. KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes spFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sp-animate-in {
    opacity: 0;
}

.sp-animate-in.sp-animated {
    animation: spFadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* ==========================================================================
   4. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   5. PREVIEW / MAINTENANCE BANNERS
   ========================================================================== */

.sp-preview-banner,
.sp-maintenance-admin-banner {
    background: #F59E0B;
    color: #1A1A1A;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 200;
}

.sp-preview-banner a,
.sp-maintenance-admin-banner a {
    color: #1A1A1A;
    margin-left: 12px;
    text-decoration: underline;
}

.sp-preview-edit-btn {
    background: #1A1A1A !important;
    color: #F59E0B !important;
    text-decoration: none !important;
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.sp-preview-edit-btn:hover {
    opacity: 0.85;
}

.sp-btn-preview {
    display: inline-block;
    background: #111;
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-left: 12px;
    font-size: 0.8rem;
}

.sp-maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background-color: #F59E0B;
    color: #1A1A1A;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sp-maintenance-banner__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sp-maintenance-banner__text {
    line-height: 1.4;
}

.sp-maintenance-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #1A1A1A;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.sp-maintenance-banner__close:hover {
    background: rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   6. TOP BAR (Sticky Navigation)
   ========================================================================== */

.sp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.sp-topbar__logo-img {
    height: 32px;
    opacity: 0.95;
}

.sp-topbar__logo-placeholder {
    width: 120px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text-on-dark);
    opacity: 0.7;
}

.sp-topbar__center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-topbar__trust {
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.sp-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-topbar__lang {
    display: flex;
    align-items: center;
}

.sp-topbar__lang-select {
    appearance: auto;
    background: rgba(255,255,255,0.15);
    color: var(--sp-topbar-text, #fff);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}

.sp-topbar__lang-select:hover,
.sp-topbar__lang-select:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.sp-topbar__lang-select option {
    background: #1a1a2e;
    color: #fff;
}

.sp-topbar__cta {
    background: var(--color-cta);
    color: var(--color-cta-text);
    padding: 7px 18px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    font-family: var(--font-body);
    border: none;
}

.sp-topbar__cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-1px);
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.sp-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    opacity: 0.3;
}

.sp-hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sp-hero__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-bg-dark);
}

.sp-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.sp-hero__preheadline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.sp-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-on-dark);
    margin-bottom: 22px;
}

.sp-hero__sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--color-text-muted-on-dark);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.sp-hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sp-hero__social-proof {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--color-text-muted-on-dark);
}

.sp-hero__stars {
    color: var(--color-star);
    letter-spacing: 2px;
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-cta);
    color: var(--color-cta-text);
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    line-height: 1.4;
    justify-content: center;
}

.sp-btn-primary:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
    color: var(--color-cta-text);
}

.sp-btn-primary:active {
    transform: translateY(0);
}

.sp-btn-primary--pulse {
    animation: spPulse 2s ease-in-out infinite;
}

.sp-btn-primary--pulse:hover {
    animation: none;
}

.sp-price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.sp-btn-secondary-link {
    background: none;
    border: none;
    color: var(--color-text-muted-on-dark);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    font-family: var(--font-body);
    padding: 4px;
}

.sp-btn-secondary-link:hover {
    color: var(--color-text-on-dark);
}

.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    font-family: var(--font-body);
    text-decoration: none;
    line-height: 1.4;
}

.sp-btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sp-btn-outline--on-dark {
    color: var(--color-text-on-dark);
    border-color: var(--color-text-on-dark);
}

.sp-btn-outline--on-dark:hover {
    background-color: var(--color-text-on-dark);
    color: var(--color-bg-dark);
}


/* ==========================================================================
   9. SECTIONS (General)
   ========================================================================== */

.sp-section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.sp-section--alt {
    background: var(--color-bg-alt);
}

.sp-section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.sp-section--full {
    max-width: 100%;
}

.sp-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sp-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    line-height: 1.25;
}

.sp-section--dark .sp-section__title {
    color: var(--color-text-on-dark);
}

.sp-section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 640px;
    margin: -36px auto 48px;
    line-height: 1.6;
}

.sp-section--dark .sp-section__subtitle {
    color: var(--color-text-muted-on-dark);
}

.sp-section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.sp-section--dark .sp-section__label {
    color: var(--color-accent);
}


/* ==========================================================================
   10. PROBLEMS GRID
   ========================================================================== */

.sp-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.sp-problem-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.sp-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.sp-problem-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.sp-problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sp-problem-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.sp-problems-closing {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-light);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}


/* ==========================================================================
   11. SOLUTION LAYOUT
   ========================================================================== */

.sp-solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.sp-solution-image {
    width: 100%;
    aspect-ratio: 3/2;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sp-solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.sp-solution-image img:hover {
    opacity: 0.9;
}

/* Lightbox overlay */
.sp-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-lightbox-overlay.active {
    opacity: 1;
}
.sp-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.sp-lightbox-overlay.active img {
    transform: scale(1);
}
.sp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 1;
}
.sp-lightbox-close:hover {
    opacity: 1;
}

.sp-solution-product-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.sp-solution-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}

.sp-solution-includes {
    list-style: none;
    margin-bottom: 28px;
}

.sp-solution-includes li {
    padding: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sp-solution-includes li::before {
    content: "\2713";
    font-weight: 700;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 1px;
}


/* ==========================================================================
   12. STEPS / HOW IT WORKS
   ========================================================================== */

.sp-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 32px;
}

.sp-step-card {
    text-align: center;
}

.sp-step-icon {
    width: 72px;
    height: 72px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    border: 2px solid var(--color-border);
}

.sp-step-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sp-step-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}

.sp-steps-note {
    text-align: center;
    font-size: 0.92rem;
    color: var(--color-text-light);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.sp-testimonials-aggregate {
    text-align: center;
    margin-bottom: 40px;
}

.sp-big-rating {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.sp-stars-display {
    color: var(--color-star);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin: 4px 0;
}

.sp-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.sp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.sp-testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.sp-testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.sp-testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.sp-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.sp-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sp-testimonial-role {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.sp-testimonial-stars {
    color: var(--color-star);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sp-testimonial-text {
    font-size: 0.93rem;
    line-height: 1.65;
    font-style: italic;
}

.sp-testimonial-badge {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--color-success);
    font-weight: 500;
}

/* Logos bar */
.sp-logos-bar {
    margin-top: 48px;
    text-align: center;
}

.sp-logos-bar-title {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.sp-logos-bar-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.45;
}

.sp-logo-placeholder {
    width: 120px;
    height: 40px;
    background: var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--color-text-light);
    overflow: hidden;
}

.sp-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================================================
   14. PRICING CARDS
   ========================================================================== */

.sp-pricing-cards {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.sp-pricing-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.sp-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sp-pricing-card.highlighted {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.sp-pricing-card.highlighted:hover {
    transform: scale(1.02) translateY(-4px);
}

.sp-pricing-card-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.sp-pricing-original {
    font-size: 2.3rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.sp-pricing-current {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.sp-pricing-discount {
    display: inline-block;
    background: var(--color-cta);
    color: var(--color-cta-text);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.sp-pricing-includes {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.sp-pricing-includes li {
    padding: 7px 0;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
}

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

.sp-pricing-includes li::before {
    content: "\2713";
    font-weight: 700;
    color: var(--color-success);
    flex-shrink: 0;
}

.sp-pricing-bonuses {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.sp-pricing-bonuses li {
    padding: 7px 0;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-cta);
}

.sp-pricing-cta {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    justify-content: center;
}

.sp-pricing-guarantee {
    margin-top: 28px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background: var(--color-guarantee);
    border: 1px solid var(--color-guarantee-border);
    border-radius: var(--radius);
    padding: 14px 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sp-pricing-payments {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--color-text-light);
}


/* ==========================================================================
   15. FAQ ACCORDION
   ========================================================================== */

.sp-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.sp-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.sp-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 600;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--color-text);
    font-family: var(--font-body);
    transition: color 0.2s;
}

.sp-faq-question:hover {
    color: var(--color-primary);
}

.sp-faq-chevron {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--color-text-light);
    flex-shrink: 0;
    margin-left: 16px;
}

.sp-faq-chevron.open {
    transform: rotate(180deg);
}

.sp-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.sp-faq-item.sp-faq-open .sp-faq-answer {
    opacity: 1;
}

.sp-faq-answer-inner {
    padding: 0 0 20px;
    font-size: 0.93rem;
    color: var(--color-text-light);
    line-height: 1.7;
}


/* ==========================================================================
   16. FINAL CTA SECTION
   ========================================================================== */

.sp-final-cta {
    text-align: center;
    padding: 80px 24px;
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.sp-final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}

.sp-final-cta__sub {
    font-size: 1.1rem;
    color: var(--color-text-muted-on-dark);
    margin-bottom: 36px;
}

.sp-final-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sp-final-trust {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted-on-dark);
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.sp-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-muted-on-dark);
    padding: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.sp-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sp-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-footer__links a {
    color: var(--color-text-muted-on-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-footer__links a:hover {
    color: var(--color-text-on-dark);
}

.sp-footer__legal {
    text-align: right;
}


/* ==========================================================================
   18. FLOATING CTA (Mobile)
   ========================================================================== */

.sp-floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 20px;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: none;
}

.sp-floating-cta .sp-btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
}

.sp-floating-cta__text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted-on-dark);
    margin-top: 6px;
}


/* ==========================================================================
   19. EXIT INTENT POPUP
   ========================================================================== */

.sp-exit-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.sp-exit-popup.visible {
    display: flex;
}

.sp-exit-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.sp-exit-popup__content {
    position: relative;
    z-index: 2;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: spFadeInUp 0.4s ease;
}

.sp-exit-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.sp-exit-popup__close:hover {
    color: var(--color-text);
}

.sp-exit-popup__emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.sp-exit-popup__content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.sp-exit-popup__content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.sp-exit-popup__form {
    display: flex;
    gap: 8px;
}

.sp-exit-popup__form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

.sp-exit-popup__form input:focus {
    border-color: var(--color-primary);
}

.sp-exit-popup__form .sp-btn-primary {
    padding: 12px 20px;
    font-size: 0.9rem;
}

.sp-exit-popup__dismiss {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    margin-top: 12px;
}

.sp-exit-popup__dismiss:hover {
    color: var(--color-text);
}


/* ==========================================================================
   20. COOKIE CONSENT BANNER
   ========================================================================== */

.sp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: 16px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-cookie-banner.visible {
    display: flex;
    transform: translateY(0);
}

.sp-cookie-banner__text {
    flex: 1;
    line-height: 1.5;
}

.sp-cookie-banner__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

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

.sp-cookie-accept,
.sp-cookie-reject {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.sp-cookie-accept {
    background: var(--color-cta);
    color: var(--color-cta-text);
}

.sp-cookie-accept:hover {
    background: var(--color-cta-hover);
}

.sp-cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-on-dark);
}

.sp-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sp-cookie-customize {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-on-dark);
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.sp-cookie-customize:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie settings panel (dentro il banner) */
.sp-cookie-settings {
    width: 100%;
    margin-top: 12px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-cookie-settings__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    margin-bottom: 12px;
}

.sp-cookie-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.82rem;
}

.sp-cookie-toggle-row + .sp-cookie-toggle-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-cookie-always-on {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Toggle switch per cookie */
.sp-cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.sp-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sp-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #4B5563;
    border-radius: 22px;
    transition: background 0.3s;
}

.sp-cookie-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.sp-cookie-switch input:checked + .sp-cookie-slider {
    background: #22C55E;
}

.sp-cookie-switch input:checked + .sp-cookie-slider::before {
    transform: translateX(18px);
}

.sp-cookie-save-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--color-cta, #2563eb);
    color: #fff;
    border: none;
    border-radius: var(--radius, 6px);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease;
}

.sp-cookie-save-btn:hover {
    opacity: 0.9;
}


/* ==========================================================================
   21. ADMIN TOGGLE BUTTON
   ========================================================================== */

.sp-admin-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: 2px solid #333;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.sp-admin-toggle-btn:hover {
    transform: scale(1.08);
    background: #222;
}


/* ==========================================================================
   22. ADMIN PANEL (Fixed Right Sidebar)
   ========================================================================== */

.sp-admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    width: 400px;
    max-width: 90vw;
    background: #0F1117;
    color: #D4D4D8;
    border-left: 1px solid #27272A;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-admin-panel.open {
    transform: translateX(0);
}

/* Admin Panel Overlay */
.sp-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sp-admin-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Admin Panel Header */
.sp-admin-panel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0F1117;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #27272A;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.sp-admin-panel__header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F4F4F5;
    margin-bottom: 4px;
}

.sp-admin-panel__header p {
    font-size: 0.78rem;
    color: #71717A;
}

.sp-admin-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid #27272A;
    border-radius: 6px;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sp-admin-panel__close:hover {
    background-color: #1E2030;
    color: #FFFFFF;
    border-color: #4A4D5A;
}

.sp-admin-panel__body {
    padding: 16px 20px 100px;
}

/* Admin Panel Sections (collapsible) */
.sp-admin-section {
    margin-bottom: 20px;
    border: 1px solid #27272A;
    border-radius: 10px;
    overflow: hidden;
}

.sp-admin-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #18181B;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.sp-admin-section__head:hover {
    background: #1E1E22;
}

.sp-admin-section__head h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E4E4E7;
    margin: 0;
}

.sp-admin-section__chevron {
    font-size: 0.85rem;
    color: #64748B;
    transition: transform 0.3s ease;
}

.sp-admin-section__body {
    padding: 14px 16px;
    background: #0F1117;
    display: none;
}

.sp-admin-section__body.open {
    display: block;
}

.sp-admin-section.open .sp-admin-section__chevron {
    transform: rotate(180deg);
}

/* Admin Form Fields */
.sp-admin-field {
    margin-bottom: 14px;
}

.sp-admin-field:last-child {
    margin-bottom: 0;
}

.sp-admin-field label {
    display: block;
    font-size: 0.78rem;
    color: #A1A1AA;
    margin-bottom: 5px;
    font-weight: 500;
}

.sp-admin-field input,
.sp-admin-field textarea,
.sp-admin-field select {
    width: 100%;
    padding: 8px 10px;
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 6px;
    color: #E4E4E7;
    font-size: 0.83rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.sp-admin-field input:focus,
.sp-admin-field textarea:focus,
.sp-admin-field select:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.sp-admin-field textarea {
    min-height: 60px;
    resize: vertical;
}

.sp-admin-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.sp-admin-field__hint {
    font-size: 0.72rem;
    color: #52525B;
    margin-top: 4px;
}

/* Admin Toggle Switch */
.sp-admin-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: #3F3F46;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
    border: none;
    padding: 0;
}

.sp-admin-toggle.on {
    background: #22C55E;
}

.sp-admin-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.sp-admin-toggle.on::after {
    transform: translateX(18px);
}

.sp-admin-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.sp-admin-toggle-row__label {
    font-size: 0.85rem;
    color: #E2E8F0;
}

/* Admin Save Status */
.sp-admin-save-status {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 16px;
}

.sp-admin-save-status.success {
    color: #22C55E;
}

.sp-admin-save-status.error {
    color: #EF4444;
}

/* Admin Theme Picker Grid */
.sp-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.sp-theme-option {
    background: #18181B;
    border: 2px solid #27272A;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sp-theme-option:hover {
    border-color: #52525B;
}

.sp-theme-option.active {
    border-color: #6366F1;
    background: #1E1B4B;
}

.sp-theme-option__colors {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 6px;
}

.sp-theme-option__colors span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.sp-theme-option__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4D4D8;
}

.sp-theme-option__desc {
    font-size: 0.68rem;
    color: #71717A;
}

/* Admin Maintenance & Preview Buttons */
.sp-admin-maint-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.sp-admin-maint-btn:hover {
    opacity: 0.9;
}

.sp-admin-maint-btn.danger {
    background: #DC2626;
    color: #fff;
}

.sp-admin-maint-btn.success {
    background: #22C55E;
    color: #fff;
}

.sp-admin-preview-btn {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    background: #3B82F6;
    color: #fff;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: opacity 0.2s ease;
}

.sp-admin-preview-btn:hover {
    opacity: 0.9;
}

/* Admin Save Button */
.sp-admin-save-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #4A6BF5;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    font-family: inherit;
}

.sp-admin-save-btn:hover {
    background-color: #3A5BE5;
}

.sp-admin-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ==========================================================================
   23. UTILITY CLASSES
   ========================================================================== */

.sp-text-center { text-align: center; }
.sp-text-left { text-align: left; }
.sp-text-right { text-align: right; }

.sp-mt-0 { margin-top: 0; }
.sp-mt-1 { margin-top: 8px; }
.sp-mt-2 { margin-top: 16px; }
.sp-mt-3 { margin-top: 24px; }
.sp-mt-4 { margin-top: 32px; }
.sp-mt-5 { margin-top: 48px; }

.sp-mb-0 { margin-bottom: 0; }
.sp-mb-1 { margin-bottom: 8px; }
.sp-mb-2 { margin-bottom: 16px; }
.sp-mb-3 { margin-bottom: 24px; }
.sp-mb-4 { margin-bottom: 32px; }
.sp-mb-5 { margin-bottom: 48px; }

.sp-hidden { display: none !important; }

.sp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sp-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 32px 0;
}

.sp-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.sp-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--color-star);
}


/* ==========================================================================
   24. RESPONSIVE - Tablet (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .sp-problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-solution-layout {
        gap: 36px;
    }

    .sp-hero h1 {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    }

    .sp-admin-panel {
        width: 380px;
    }
}


/* ==========================================================================
   25. RESPONSIVE - Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Top Bar */
    .sp-topbar {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .sp-topbar__center {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .sp-hero {
        min-height: 70vh;
        padding: 60px 20px 40px;
    }

    .sp-hero h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .sp-hero__sub {
        font-size: 0.95rem;
    }

    .sp-hero__ctas {
        width: 100%;
    }

    .sp-hero__ctas .sp-btn-primary {
        width: 100%;
    }

    /* Sections */
    .sp-section {
        padding: 52px 20px;
    }

    .sp-section__title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 36px;
    }

    /* Grids */
    .sp-problems-grid {
        grid-template-columns: 1fr;
    }

    .sp-solution-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-steps-grid {
        grid-template-columns: 1fr;
    }

    .sp-testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .sp-pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .sp-pricing-card {
        max-width: 100%;
        padding: 32px 24px;
    }

    .sp-pricing-card.highlighted {
        transform: none;
    }

    .sp-pricing-card.highlighted:hover {
        transform: translateY(-4px);
    }

    .sp-pricing-current {
        font-size: 2.6rem;
    }

    /* FAQ */
    .sp-faq-question {
        font-size: 0.95rem;
        padding: 16px 0;
    }

    /* Final CTA */
    .sp-final-cta {
        padding: 56px 20px;
    }

    .sp-final-cta h2 {
        font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    }

    .sp-final-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .sp-final-cta__actions .sp-btn-primary,
    .sp-final-cta__actions .sp-btn-outline {
        width: 100%;
    }

    /* Footer */
    .sp-footer__inner {
        flex-direction: column;
        text-align: center;
    }

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

    .sp-footer__links {
        justify-content: center;
    }

    /* Floating CTA - visible on mobile */
    .sp-floating-cta {
        display: block;
    }

    /* Exit popup */
    .sp-exit-popup__content {
        padding: 32px 24px;
    }

    .sp-exit-popup__content h3 {
        font-size: 1.2rem;
    }

    .sp-exit-popup__form {
        flex-direction: column;
    }

    /* Cookie banner */
    .sp-cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .sp-cookie-banner__buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sp-cookie-settings {
        text-align: left;
    }

    /* Admin Panel */
    .sp-admin-panel {
        width: 100%;
        max-width: 100vw;
    }

    .sp-theme-grid {
        grid-template-columns: 1fr;
    }

    /* Admin toggle repositioned above floating CTA */
    .sp-admin-toggle-btn {
        bottom: 80px;
    }

    /* Buttons */
    .sp-btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .sp-btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}


/* ==========================================================================
   26. RESPONSIVE - Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .sp-hero {
        min-height: 60vh;
    }

    .sp-hero h1 {
        font-size: 1.6rem;
    }

    .sp-hero__preheadline {
        font-size: 0.78rem;
    }

    .sp-section__title {
        font-size: 1.3rem;
    }

    .sp-problem-card {
        padding: 24px 20px;
    }

    .sp-testimonial-card {
        padding: 22px;
    }

    .sp-pricing-current {
        font-size: 2.2rem;
    }

    .sp-final-cta h2 {
        font-size: 1.4rem;
    }

    .sp-admin-panel__body {
        padding: 12px 16px 80px;
    }

    .sp-admin-section__head {
        padding: 12px 14px;
    }

    .sp-admin-section__head h3 {
        font-size: 0.82rem;
    }

    .sp-admin-section__body {
        padding: 12px;
    }
}


/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */

@media print {
    .sp-topbar,
    .sp-floating-cta,
    .sp-cookie-banner,
    .sp-exit-popup,
    .sp-admin-toggle-btn,
    .sp-admin-panel,
    .sp-admin-overlay,
    .sp-maintenance-banner,
    .sp-preview-banner,
    .sp-maintenance-admin-banner {
        display: none !important;
    }

    .sp-hero {
        min-height: auto;
        page-break-inside: avoid;
    }

    .sp-section,
    .sp-section--alt,
    .sp-section--dark {
        padding: 32px 0;
    }

    body {
        background-color: #FFFFFF;
        color: #000000;
    }
}
