/* ==========================================================================
   LENVO WEBSITE — DESIGN SYSTEM
   Modern, responsive, LTR/RTL, driven by CSS custom properties
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    /* Colors — overridden by <style> injected from SystemSettings */
    --color-primary:        #2563eb;
    --color-secondary:      #64748b;
    --color-accent:         #f59e0b;

    /* Derived surface & text */
    --color-primary-light:  color-mix(in srgb, var(--color-primary) 12%, #fff);
    --color-primary-dark:   color-mix(in srgb, var(--color-primary) 85%, #000);
    --color-accent-light:   color-mix(in srgb, var(--color-accent)  15%, #fff);

    --color-bg:             #ffffff;
    --color-bg-subtle:      #f8fafc;
    --color-bg-muted:       #f1f5f9;
    --color-surface:        #ffffff;
    --color-border:         #e2e8f0;
    --color-border-muted:   #f1f5f9;

    --color-text:           #0f172a;
    --color-text-muted:     #64748b;
    --color-text-subtle:    #94a3b8;
    --color-text-inverse:   #ffffff;

    /* Typography */
    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-arabic:"Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-mono:  ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    --fw-light:   300;
    --fw-regular: 400;
    --fw-medium:  500;
    --fw-semi:    600;
    --fw-bold:    700;

    --leading-tight:  1.25;
    --leading-snug:   1.375;
    --leading-normal: 1.5;
    --leading-relaxed:1.625;

    /* Spacing */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* Borders & Radius */
    --radius-sm:  0.25rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;
    --radius-full:9999px;

    /* Shadows */
    --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
    --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06);

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max:     1200px;
    --navbar-height:     64px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    hanging-punctuation: first last;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

p {
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ==========================================================================
   3. SKIP LINK (Accessibility)
   ========================================================================== */
.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: var(--sp-4);
    z-index: 9999;
    padding: var(--sp-2) var(--sp-4);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
    font-weight: var(--fw-semi);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.skip-link:focus {
    inset-inline-start: var(--sp-4);
}

/* ==========================================================================
   4. CONTAINER & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

@media (max-width: 640px) {
    .container { padding-inline: var(--sp-4); }
}

main {
    flex: 1;
    padding-block: var(--sp-6) var(--sp-12);
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    height: var(--navbar-height);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--sp-6);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Nav list */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-primary);
    background: var(--color-primary-light);
    outline: none;
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Dropdown caret */
.dropdown-caret {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.has-dropdown:hover .dropdown-caret,
.has-dropdown:focus-within .dropdown-caret {
    transform: rotate(180deg);
}

/* Dropdown menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > .nav-dropdown {
    position: absolute;
    top: calc(100% + var(--sp-2));
    inset-inline-start: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base);
    z-index: 100;
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown .nav-dropdown .nav-link {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text);
}

.has-dropdown .nav-dropdown .nav-link:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast);
    padding: var(--sp-2);
}

.nav-toggle:hover {
    background: var(--color-bg-subtle);
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive navbar */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--navbar-height);
        inset-inline-start: 0;
        inset-inline-end: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: var(--sp-4);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height var(--transition-slow), padding var(--transition-slow), visibility var(--transition-slow);
    }

    .nav-menu.open {
        max-height: 80dvh;
        overflow-y: auto;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: var(--sp-3) var(--sp-4);
        border-radius: var(--radius-md);
    }

    .has-dropdown > .nav-dropdown {
        position: static;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding-inline-start: var(--sp-4);
        background: var(--color-bg-subtle);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        display: none;
    }

    .has-dropdown.open > .nav-dropdown {
        display: block;
        max-height: none;
    }
}

/* ==========================================================================
   6. PAGE HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg,
        var(--color-primary-light) 0%,
        color-mix(in srgb, var(--color-accent) 8%, #fff) 100%);
    padding-block: var(--sp-20) var(--sp-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-inline: auto;
}

.hero-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--sp-4);
}

.hero-subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    color: var(--color-text-muted);
    margin-bottom: var(--sp-8);
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* CMS page title (Show_Title_In_Page) */
.page-title-section {
    padding-block: var(--sp-8) var(--sp-4);
}

.page-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0;
}

/* Inner page intro (not home hero) */
.page-intro {
    padding-block: var(--sp-6) var(--sp-10);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    text-align: start;
}

/* Same horizontal alignment as .page-title-section (standard .container, not narrowed or flush-left) */
.page-intro .container {
    text-align: start;
}

.page-intro-lead {
    font-size: var(--text-lg);
    line-height: 1.65;
    margin-block: var(--sp-4) var(--sp-6);
}

.page-intro-actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

/* LenvoAds Display — platform logos & sample screens */
.display-platform-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--color-border);
}

.display-platform-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    color: var(--color-text-muted);
    margin-inline-end: var(--sp-1);
}

.display-platform-logo {
    height: 1.75rem;
    width: auto;
    display: block;
    opacity: 0.92;
}

.section-display-showcase {
    padding-block: var(--sp-12) var(--sp-16);
    background: var(--color-bg-subtle);
}

.section-display-showcase .section-head {
    margin-bottom: var(--sp-10);
}

.display-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.display-showcase-item {
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.display-showcase-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.display-showcase-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.display-showcase-item figcaption {
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    text-align: center;
    color: var(--color-text);
    border-top: 1px solid var(--color-border-muted);
}

.display-showcase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-bg-subtle) 100%);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
}

.display-showcase-item--pending {
    border-style: dashed;
}

@media (max-width: 960px) {
    .display-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin-inline: auto;
    }
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    font-family: inherit;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary-light);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
    border-color: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
    color: var(--color-text);
}

.btn-sm {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--sp-4) var(--sp-8);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: var(--sp-6);
}

/* Text-only cards (e.g. CMS .section-venues) without a .card-body wrapper */
.card:not(.group-list-card):not(.card-channel):not(:has(.card-body)) {
    padding: var(--sp-6);
}

.card:not(.group-list-card):not(.card-channel):not(:has(.card-body)) .card-text:last-child {
    margin-bottom: 0;
}

/* Group listing cards in Pages view */
.group-list-card {
    border-radius: 0;
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.group-list-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    margin-bottom: var(--sp-4);
    padding: var(--sp-4);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.group-list-card-no-image {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-text-subtle);
}

.group-list-card-no-image-icon {
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.45;
}

.group-list-card-media--empty .group-list-card-no-image {
    display: flex;
}

.group-list-card-media:has(.group-list-card-image) .group-list-card-no-image {
    display: none;
}

.group-list-card-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.group-list-card .card-link {
    margin-top: auto;
}

.card-category {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-3);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-2);
    line-height: var(--leading-snug);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border-muted);
    flex-wrap: wrap;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

/* Home / landing channel cards (CMS: .section-channels) */
.section-channels .card.card-channel {
    border-radius: var(--radius-2xl);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.section-channels .card.card-channel:hover {
    border-radius: var(--radius-2xl);
}

.section-channels .card-channel .card-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--sp-4);
    color: var(--color-primary);
}

.section-channels .card-channel .card-link {
    margin-top: auto;
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    color: var(--color-primary);
    text-decoration: none;
}

.section-channels .card-channel .card-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Home / landing steps (CMS: .section-steps) */
.section-steps {
    background: var(--color-bg-subtle);
}

.section-steps .steps-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.section-steps .step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.section-steps .step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
}

.section-steps .step-card-media {
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-muted);
}

.section-steps .step-illustration {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 220;
}

/* Step illustration colors — driven by theme CSS variables from SystemSettings */
.section-steps .illus-bg-primary { fill: var(--color-primary-light); }
.section-steps .illus-bg-accent { fill: var(--color-accent-light); }
.section-steps .illus-bg-secondary { fill: color-mix(in srgb, var(--color-secondary) 12%, var(--color-surface)); }
.section-steps .illus-primary { fill: var(--color-primary); }
.section-steps .illus-primary-soft { fill: var(--color-primary); opacity: 0.14; }
.section-steps .illus-accent { fill: var(--color-accent); }
.section-steps .illus-accent-soft { fill: var(--color-accent); opacity: 0.25; }
.section-steps .illus-surface-fill { fill: var(--color-surface); }
.section-steps .illus-overlay { fill: var(--color-text); opacity: 0.06; }
.section-steps .illus-muted-fill { fill: var(--color-text-subtle); opacity: 0.35; }
.section-steps .illus-border-fill { fill: var(--color-border); }
.section-steps .illus-on-primary { fill: var(--color-text-inverse); }
.section-steps .illus-stroke-primary { stroke: var(--color-primary); }
.section-steps .illus-stroke-border { stroke: var(--color-border); }
.section-steps .illus-stroke-muted { stroke: var(--color-text-subtle); }
.section-steps .illus-text-primary {
    fill: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
}
.section-steps .illus-text-accent {
    fill: color-mix(in srgb, var(--color-accent) 75%, var(--color-text));
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
}
.section-steps .illus-text-secondary {
    fill: var(--color-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
}

.section-steps .step-card-body {
    padding: var(--sp-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-steps .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: var(--sp-1) var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

.section-steps .step-title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-2);
}

.section-steps .step-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
}

@media (max-width: 900px) {
    .section-steps .steps-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   9. SECTION HEADINGS
   ========================================================================== */
.section {
    padding-block: var(--sp-8);
}

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

.section-header,
.section-head {
    margin-bottom: var(--sp-12);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

/* Centered headings on home / marketing CMS sections only */
.section-channels .section-head,
.section-steps .section-head,
.section-features .section-head,
.section-testimonials .section-head {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.section-head .badge {
    margin-bottom: var(--sp-3);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--sp-3);
}

.section-title {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--sp-4);
}

.section-description,
.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

/* Home — Why LenvoAds features (content part 6) */
.section-features .feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-6);
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.section-features .feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
}

.section-features .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--sp-4);
    border-radius: var(--radius-lg);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.section-features .feature-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-2);
}

.section-features .feature-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Home — stats band (content part 7) */
.section-stats {
    background: linear-gradient(
        135deg,
        var(--color-primary-light) 0%,
        color-mix(in srgb, var(--color-accent) 10%, var(--color-bg)) 100%
    );
    padding-block: var(--sp-12);
}

.section-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
}

.section-stats .stat {
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-8) var(--sp-5);
    box-shadow: var(--shadow-sm);
}

.section-stats .stat-number {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: var(--sp-2);
}

.section-stats .stat-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    line-height: var(--leading-snug);
    max-width: 12rem;
    margin-inline: auto;
}

@media (max-width: 900px) {
    .section-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-stats .stats-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }
}

/* Home — testimonials (content part 8) */
.section-testimonials {
    background: var(--color-bg-subtle);
}

.section-testimonials .testimonial-featured {
    max-width: 720px;
    margin-inline: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-10) var(--sp-8);
    box-shadow: var(--shadow-md);
    position: relative;
    margin-bottom: var(--sp-8);
}

.section-testimonials .testimonial-featured::before {
    content: "\201C";
    position: absolute;
    top: var(--sp-4);
    inset-inline-start: var(--sp-6);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.section-testimonials .testimonial-quote {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
    font-style: italic;
    color: var(--color-text);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--sp-6);
    position: relative;
    z-index: 1;
}

.section-testimonials .testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border-muted);
}

.section-testimonials .testimonial-meta strong {
    font-size: var(--text-base);
    font-weight: var(--fw-semi);
    color: var(--color-text);
}

.section-testimonials .testimonial-meta span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.section-testimonials .testimonials-cta {
    text-align: center;
}

/* Home — CTA (content part 9) */
.section-cta .cta-card {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    padding: var(--sp-12) var(--sp-8);
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        color-mix(in srgb, var(--color-primary) 70%, var(--color-accent)) 100%
    );
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-xl);
}

.section-cta .cta-title {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-4);
    color: var(--color-text-inverse);
}

.section-cta .cta-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-8);
    color: color-mix(in srgb, var(--color-text-inverse) 88%, transparent);
    max-width: 520px;
    margin-inline: auto;
}

.section-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
}

.section-cta .btn-outline {
    color: var(--color-text-inverse);
    border-color: color-mix(in srgb, var(--color-text-inverse) 65%, transparent);
    background: transparent;
}

.section-cta .btn-outline:hover {
    background: color-mix(in srgb, var(--color-text-inverse) 12%, transparent);
    color: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
}

.section-cta .btn-primary {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-surface);
}

.section-cta .btn-primary:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-bg-subtle);
    color: var(--color-primary-dark);
}

/* ==========================================================================
   10. BLOG LAYOUT
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-8);
}

.blog-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
    align-items: start;
}

@media (max-width: 900px) {
    .blog-sidebar { grid-template-columns: 1fr; }
}

.sidebar-widget {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.sidebar-widget-title {
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Categories */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-3);
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.category-tag:hover,
.category-tag.active {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

/* ==========================================================================
   11. PAGE CONTENT
   ========================================================================== */
.page-content {
    max-width: 760px;
    margin-inline: auto;
}

.page-content h1 { font-size: var(--text-4xl); margin-bottom: var(--sp-6); }
.page-content h2 { font-size: var(--text-3xl); margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.page-content h3 { font-size: var(--text-2xl); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.page-content h4 { font-size: var(--text-xl); margin-top: var(--sp-6); margin-bottom: var(--sp-2); }
.page-content p  { margin-bottom: var(--sp-4); color: var(--color-text-muted); }
.page-content ul,
.page-content ol {
    margin-bottom: var(--sp-4);
    padding-inline-start: var(--sp-6);
    color: var(--color-text-muted);
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: var(--sp-2); line-height: var(--leading-relaxed); }
.page-content img { border-radius: var(--radius-lg); margin-block: var(--sp-6); }
.page-content blockquote {
    border-inline-start: 4px solid var(--color-primary);
    padding-inline-start: var(--sp-6);
    margin-block: var(--sp-6);
    color: var(--color-text-muted);
    font-style: italic;
    font-size: var(--text-lg);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-text);
    color: var(--color-text-inverse);
    padding-block: var(--sp-16) var(--sp-8);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--sp-8);
    margin-bottom: var(--sp-12);
}

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

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

.footer-brand-name {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-inverse);
    display: block;
    margin-bottom: var(--sp-3);
}

.footer-logo {
    margin-bottom: var(--sp-3);
    /* White in the source image is made transparent in JS (see site.js); avoid
       brightness(0) invert(1) here — it collapses intentional white into the glyph. */
    opacity: 0.9;
}

.footer-description {
    font-size: var(--text-sm);
    color: rgb(255 255 255 / 0.6);
    line-height: var(--leading-relaxed);
    max-width: 280px;
    margin-bottom: 0;
}

.footer-col-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    color: var(--color-text-inverse);
    margin-bottom: var(--sp-4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-link {
    font-size: var(--text-sm);
    color: rgb(255 255 255 / 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-text-inverse);
}

.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    padding-top: var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.footer-copy {
    font-size: var(--text-sm);
    color: rgb(255 255 255 / 0.5);
    margin-bottom: 0;
}

.footer-copy a {
    color: rgb(255 255 255 / 0.7);
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--color-text-inverse);
}

/* ==========================================================================
   13. BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    inset-block-end: var(--sp-6);
    inset-inline-end: var(--sp-6);
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base),
        background var(--transition-fast);
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
}

/* Floating WhatsApp (CMS Footer_Code) — stacked above back-to-top */
.whatsapp-float {
    position: fixed;
    inset-block-end: calc(var(--sp-6) + 44px + var(--sp-3));
    inset-inline-end: var(--sp-6);
    z-index: 500;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.whatsapp-float:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* ==========================================================================
   14. BREADCRUMB
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    padding-block: var(--sp-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: var(--color-text-subtle);
}

.breadcrumb.breadcrumb-no-separator .breadcrumb-item::after {
    content: none;
}

[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: "\\";
}

.breadcrumb-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: var(--fw-medium);
}

/* ==========================================================================
   15. ALERTS & BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-2);
    font-size: var(--text-xs);
    font-weight: var(--fw-semi);
    border-radius: var(--radius-full);
    line-height: 1;
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.badge-accent {
    background: var(--color-accent-light);
    color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
}

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */
.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: var(--sp-4);
    inset-inline-start: var(--sp-6);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: var(--fw-semi);
    font-size: var(--text-sm);
    color: var(--color-text);
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

/* ==========================================================================
   17. LOADING STATES
   ========================================================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-muted) 25%,
        var(--color-bg-subtle) 50%,
        var(--color-bg-muted) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */
.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); }
.text-center    { text-align: center; }
.text-start     { text-align: start; }
.text-end       { text-align: end; }

.bg-primary-light { background: var(--color-primary-light); }
.bg-subtle        { background: var(--color-bg-subtle); }

.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;
}

.animate-fade-up {
    animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   19. RTL OVERRIDES
   ========================================================================== */
[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: "\\005C"; /* backslash as RTL separator */
}

[dir="rtl"] .has-dropdown > .nav-dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

[dir="rtl"] .back-to-top {
    inset-inline-end: var(--sp-6);
    inset-inline-start: auto;
}

[dir="rtl"] .whatsapp-float {
    inset-inline-end: var(--sp-6);
    inset-inline-start: auto;
}

/* Font for RTL context */
[dir="rtl"] {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

[dir="rtl"] .brand-text {
    letter-spacing: 0;
}

/* Flip decorative left borders for RTL */
[dir="rtl"] .page-content blockquote {
    border-inline-start: none;
    border-inline-end: 4px solid var(--color-primary);
    padding-inline-start: 0;
    padding-inline-end: var(--sp-6);
}

/* ==========================================================================
   19b. ADVERTISER REGISTRATION PAGE
   ========================================================================== */
.register-page {
    padding-block: var(--sp-10) var(--sp-16);
}

.register-header {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--sp-10);
}

.register-header .badge {
    margin-bottom: var(--sp-3);
}

.register-header-actions {
    margin-top: var(--sp-6);
}

.register-layout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: var(--sp-8);
    align-items: start;
}

.register-form-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.register-actions-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: linear-gradient(
        135deg,
        var(--color-primary-light) 0%,
        color-mix(in srgb, var(--color-accent) 8%, var(--color-surface)) 100%
    );
}

.register-actions {
    width: 100%;
    max-width: 360px;
    padding: var(--sp-10) var(--sp-8);
    text-align: center;
}

.register-actions .btn-lg {
    width: 100%;
    justify-content: center;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-weight: var(--fw-semi);
}

.btn-google:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-text-subtle) 50%, var(--color-border));
    box-shadow: var(--shadow-sm);
}

.btn-google-logo {
    flex-shrink: 0;
    display: block;
}

.register-portal {
    text-align: center;
    max-width: 440px;
    padding: var(--sp-10) var(--sp-8);
}

.register-portal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: var(--sp-5);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.register-portal-title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-3);
}

.register-portal-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-6);
}

.register-portal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: stretch;
}

.register-portal-note {
    font-size: var(--text-xs);
    margin-top: var(--sp-5);
    margin-bottom: 0;
}

.register-app-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--sp-8) + 4rem);
}

.register-app-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--sp-3);
}

.brand-ads {
    color: #dc2626;
}

.register-app-card .brand-ads {
    font-weight: inherit;
}

.register-app-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-5);
}

.register-store-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: stretch;
}

.store-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.25rem;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-text);
    color: var(--color-text-inverse);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-text-inverse);
}

.store-badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.store-badge-name {
    font-size: var(--text-base);
    font-weight: var(--fw-semi);
    line-height: 1.2;
}

.store-badge--apple {
    background: var(--color-text);
}

@media (max-width: 960px) {
    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-app-card {
        position: static;
    }

    .register-actions {
        padding: var(--sp-8) var(--sp-5);
    }
}

/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */
/* Contact Us — office locations (CMS: .section-contact) */
.section-contact {
    padding-block: var(--sp-6) var(--sp-16);
}

.section-contact .contact-lead {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    font-size: var(--text-lg);
    line-height: 1.65;
    margin-bottom: var(--sp-10);
}

.contact-offices {
    align-items: stretch;
}

.contact-office-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    padding: var(--sp-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.contact-office-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-office-header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--color-border-muted);
}

.contact-office-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.contact-office-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-office-title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    margin: 0 0 var(--sp-1);
    color: var(--color-text);
}

.contact-office-region {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.contact-phone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.contact-phone-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-lg);
    font-weight: var(--fw-semi);
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-phone-link:hover {
    color: var(--color-primary);
}

.contact-phone-link svg {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary);
}

.contact-dept-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.contact-dept {
    font-size: var(--text-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
}

.contact-dept--sales {
    background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
    color: var(--color-primary);
}

.contact-dept--support {
    background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
    color: var(--color-accent);
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin: 0;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border-muted);
    font-style: normal;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.contact-address svg {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    color: var(--color-text-subtle);
}

@media (max-width: 640px) {
    .contact-office-card {
        padding: var(--sp-6);
    }

    .contact-phone-link {
        font-size: var(--text-base);
    }
}

@media print {
    .site-header,
    .back-to-top,
    .nav-toggle { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }

    a::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }

    h1, h2, h3 { page-break-after: avoid; }

    img { max-width: 100% !important; }
}
