/* =========================================================
   iPhone 17 Pre-Order Site - Enhanced Liquid Glass Design
   ========================================================= */

/* ----------------
   Bootstrap Primary Color Overrides
   ---------------- */
:root {
    --bs-primary: #0FC3F1;
    --bs-primary-rgb: 15, 195, 241;
    --bs-btn-bg: #0FC3F1 !important;
    --bs-btn-border-color: #0fc3e5 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0fa8c4;
    --bs-btn-hover-border-color: #0fa8c4;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0fa8c4;
    --bs-btn-active-border-color: #0fa8c4;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #56c3d7;
    --bs-btn-disabled-border-color: #56c3d7;
    --rim: 8px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0FC3F1;
    --bs-btn-border-color: #0fc3e5;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0fa8c4;
    --bs-btn-hover-border-color: #0fa8c4;
    --bs-btn-focus-shadow-rgb: 15, 195, 241;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0fa8c4;
    --bs-btn-active-border-color: #0fa8c4;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #56c3d7;
    --bs-btn-disabled-border-color: #56c3d7;
}

.text-primary {
    color: #0FC3F1 !important;
}

/* ----------------
   Design Tokens
   ---------------- */
:root {
    /* Surfaces */
    --lg-bg: #000000;
    --lg-bg-2: #0a0a0a;
    --lg-bg-3: #141414;

    /* Ink */
    --lg-ink-strong: #ffffff;
    --lg-ink-soft: rgba(255, 255, 255, 0.88);
    --lg-ink-muted: rgba(255, 255, 255, 0.65);
    --lg-ink-subtle: rgba(255, 255, 255, 0.45);

    /* Accent */
    --lg-accent: #0FC3F1;
    --lg-accent-2: #5AC8FA;

    /* Glass */
    --lg-glassFill: rgba(255, 255, 255, 0.15);
    --lg-glassFill-2: rgba(255, 255, 255, 0.12);
    --lg-glassFill-3: rgba(255, 255, 255, 0.08);
    --lg-glassStroke: rgba(255, 255, 255, 0.25);
    --lg-glassStroke-soft: rgba(255, 255, 255, 0.18);
    --lg-glassTopHL: rgba(255, 255, 255, 0.85);
    --lg-noiseOpacity: 0.06;

    /* Blur */
    --lg-blur-thin: blur(12px);
    --lg-blur: blur(24px);
    --lg-blur-thick: blur(36px);
    --lg-blur-ultra: blur(52px);

    /* Radius */
    --lg-radius-xs: 6px;
    --lg-radius-sm: 10px;
    --lg-radius: 16px;
    --lg-radius-lg: 20px;
    --lg-radius-xl: 24px;
    --lg-radius-pill: 999px;

    /* Shadows */
    --lg-shadow-1: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
    --lg-shadow-2: 0 16px 48px rgba(0, 0, 0, 0.28), 0 4px 8px rgba(0, 0, 0, 0.18);
    --lg-shadow-3: 0 24px 64px rgba(0, 0, 0, 0.38), 0 8px 16px rgba(0, 0, 0, 0.22);
    --lg-shadow-4: 0 32px 72px rgba(0, 0, 0, 0.48), 0 12px 24px rgba(0, 0, 0, 0.28);

    /* Motion */
    --lg-duration: .3s;
    --lg-duration-fast: .2s;
    --lg-ease: cubic-bezier(.25, .46, .45, .94);
    --lg-ease-apple: cubic-bezier(.4, 0, .2, 1);

    /* Enhanced Spacing scale */
    --space-1: 0.375rem; /* 6px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-7: 2rem; /* 32px */
    --space-8: 2.5rem; /* 40px */
    --space-9: 3rem; /* 48px */
    --space-10: 4rem; /* 64px */
    --space-12: 6rem; /* 96px */
}

/* ----------------
   Base + Typography
   ---------------- */
body.lg-dark {
    background: var(--lg-bg);
    color: var(--lg-ink-soft);
    font-family: "SF Pro AR Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.text-gray {
    color: #777;
}

a {
    color: var(--lg-accent);
    text-decoration: none;
    transition: color var(--lg-duration-fast) var(--lg-ease-apple);
}

.text-muted {
    color: var(--lg-ink-muted) !important;
}

a:hover {
    color: var(--lg-accent-2);
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--lg-accent);
    outline-offset: 2px;
    border-radius: var(--lg-radius-xs);
}

#loading {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s;
}

#loading.hidden {
    opacity: 0;
}

/* Enhanced Typography Hierarchy */
.lg-heading-display {
    font-size: clamp(3.2rem, 5vw, 4rem);
    font-weight: 700;
    /*line-height: 1.1;*/
    color: var(--lg-ink-strong);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

.lg-heading-section {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 650;
    line-height: 1.2;
    color: var(--lg-ink-strong);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
}

.lg-heading-section i {
    color: var(--lg-accent);
    margin-right: var(--space-3);
}

/* ----------------
   Navigation (Liquid Glass Style)
   ---------------- */
.lg-nav {
    background: var(--lg-glassFill);
    backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    -webkit-backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    border-bottom: 1px solid var(--lg-glassStroke-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: var(--space-4) 0;
}

.lg-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--lg-ink-strong) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.navbar-nav .nav-link {
    color: var(--lg-ink-soft);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--lg-radius-sm);
    transition: all var(--lg-duration-fast) var(--lg-ease-apple);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--lg-ink-strong);
    background: var(--lg-glassFill-2);
}

.navbar-toggler {
    border: none;
    padding: var(--space-2);
    border-radius: var(--lg-radius-sm);
    background: var(--lg-glassFill-2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----------------
   Buttons (Enhanced)
   ---------------- */
/* --- Liquid Glass edge treatment for your button --- */
/* tune how tight the edge lights are */
:root {
    --btn-rim: 6px; /* thickness of the rim light (try 5–8) */
    --btn-hairline: 1px; /* top hairline width */
}

/* your base stays the same, just make it a pill for smoother ends */
.btn-lgx {
    cursor: pointer;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-7);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius-pill);
    background: var(--lg-glassFill-2);
    color: var(--lg-ink-soft);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    transition: all var(--lg-duration) var(--lg-ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    text-align: center;
    justify-content: center;
}

.btn-lgx:hover {
    background: var(--lg-glassFill);
    border-color: var(--lg-glassStroke);
    color: var(--lg-ink-strong);
    transform: translateY(-1px);
    box-shadow: var(--lg-shadow-2);
}

.btn-lgx.lg-glass {
    background: var(--lg-glassFill);
    border-color: var(--lg-glassStroke);
    backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    -webkit-backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    color: var(--lg-ink-strong);
    box-shadow: var(--lg-shadow-1), inset 0 4px 5px 1px rgba(255, 255, 255, 0.3);
}

.btn-lgx.lg-glass:hover {
    box-shadow: var(--lg-shadow-2), inset 0 4px 8px 2px rgba(255, 255, 255, 0.1);
}

/* ————— ultra-tight rim lights (right at the edge) ————— */
/*.btn-lgx.lg-glass::before{*/
/*  content:"";*/
/*  position:absolute;*/
/*  inset:0;*/
/*  border-radius:inherit;*/
/*  pointer-events:none;*/

/*  !* all highlights are confined near the border *!*/
/*  background:*/
/*    !* top hairline gloss *!*/
/*    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.25) 65%, transparent 100%)*/
/*      top / 100% var(--btn-hairline) no-repeat,*/

/*    !* left arc *!*/
/*    radial-gradient(*/
/*      calc(var(--btn-rim)*2) 70% at calc(0% + var(--btn-rim)*.25) 50%,*/
/*      rgba(255,255,255,.65) 0%,*/
/*      rgba(255,255,255,.2) 55%,*/
/*      transparent 60%*/
/*    ) left / auto 100% no-repeat,*/

/*    !* right arc *!*/
/*    radial-gradient(*/
/*      calc(var(--btn-rim)*2) 70% at calc(100% - var(--btn-rim)*.25) 50%,*/
/*      rgba(255,255,255,.58) 0%,*/
/*      rgba(255,255,255,.18) 55%,*/
/*      transparent 60%*/
/*    ) right / auto 100% no-repeat,*/

/*    !* subtle bottom rim (very tight) *!*/
/*    linear-gradient(0deg, rgba(255,255,255,.10), transparent 70%)*/
/*      bottom / 100% calc(var(--btn-rim)*.8) no-repeat,*/

/*    !* bright bottom-right corner glow (like your ref) *!*/
/*    radial-gradient(*/
/*      calc(var(--btn-rim)*5) calc(var(--btn-rim)*5) at 102% 92%,*/
/*      rgba(255,255,255,.55) 0%,*/
/*      rgba(255,255,255,.18) 45%,*/
/*      transparent 60%*/
/*    ) bottom right / 50% 100% no-repeat;*/

/*  mix-blend-mode: screen;*/
/*  opacity:.95;*/
/*}*/

/* thin inner ring confined to a 6–8px band near the edge */
.btn-lgx.lg-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    /* super tight inner stroke + faint side bloom */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 8px 0 14px rgba(255, 255, 255, .06),
    inset -8px 0 14px rgba(255, 255, 255, .06);

    /* mask so only a narrow ring is visible right by the edge */
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--btn-rim)),
    #000 calc(100% - (var(--btn-rim) - 1px)));
    mask: radial-gradient(closest-side,
    transparent calc(100% - var(--btn-rim)),
    #000 calc(100% - (var(--btn-rim) - 1px)));
}


.btn-lgx.lg-glass:hover::before {
    filter: brightness(1.05);
}

.btn-lgx.lg-glass:hover::after {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(255, 255, 255, .16),
    inset 10px 0 18px rgba(255, 255, 255, .07),
    inset -10px 0 18px rgba(255, 255, 255, .07);
}

.btn-lgx:active {
    transform: translateY(0);
    box-shadow: var(--lg-shadow-1);
}

.btn-lgx:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


.lgx-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------
   Cards (Enhanced)
   ---------------- */
.lg-card {
    background: var(--lg-glassFill);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius-lg);
    backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    -webkit-backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
    box-shadow: var(--lg-shadow-2);
    overflow: hidden;
    position: relative;
}

.lg-card.lg-glass {
    background: var(--lg-glassFill-2);
    border-color: var(--lg-glassStroke);
    box-shadow: var(--lg-shadow-3);
}

/* ----------------
   Modal Styles (Liquid Glass)
   ---------------- */
.modal-content.lg-modal {
    color: var(--lg-ink-soft);
    background: var(--lg-glassFill);
    border: 1px solid var(--lg-glassStroke);
    backdrop-filter: var(--lg-blur-ultra) saturate(220%) brightness(120%);
    -webkit-backdrop-filter: var(--lg-blur-ultra) saturate(220%) brightness(120%);
    border-radius: var(--lg-radius-xl);
    box-shadow: var(--lg-shadow-4);
    overflow: hidden;
}

.lg-modal .modal-header {
    border-bottom: 1px solid var(--lg-glassStroke-soft);
    padding: var(--space-6) var(--space-6) var(--space-4);
}

.lg-modal .modal-body {
    padding: var(--space-4) var(--space-6);
}

.lg-modal .modal-footer {
    border-top: 1px solid var(--lg-glassStroke-soft);
    padding: var(--space-4) var(--space-6) var(--space-6);
}

.lg-modal .modal-title {
    color: var(--lg-ink-strong);
    font-weight: 650;
    font-size: 1.25rem;
}

/* ----------------
   Forms (Enhanced)
   ---------------- */
.form-label {
    color: var(--lg-ink-strong);
    font-weight: 500;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--lg-accent);
}

.form-control.lg-input {
    background: var(--lg-glassFill-2);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius);
    color: var(--lg-ink-strong);
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    transition: all var(--lg-duration-fast) var(--lg-ease-apple);
    min-height: 44px;
}

.form-control.lg-input:focus {
    background: var(--lg-glassFill);
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    color: var(--lg-ink-strong);
}

.form-control.lg-input::placeholder {
    color: var(--lg-ink-muted);
}

/* ----------------
   Page Layout (Enhanced)
   ---------------- */
body {
    padding-top: 80px;
}

.preorder-main {
    min-height: calc(100vh - 80px);
    padding: var(--space-8) 0;
}

/* Full-height layout for preorder page */
.preorder-main-fullheight {
    /*height: calc(100vh - 80px);*/
    /*overflow: hidden;*/
}

.preorder-left-column {
    height: 100%;
    overflow-y: auto;
    padding-right: var(--space-4);
}

.preorder-right-column {
    height: 100%;
    position: sticky !important;
    top: 80px;
}

.summary-fixed {
    height: 100%;
    display: flex;
    align-items: center;
    padding: var(--space-6) 0;
}

.configuration-section {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: var(--space-8);
}

.config-step {
    margin-bottom: var(--space-10);
}

.config-step:last-child {
    margin-bottom: var(--space-8);
}

/* Device image styling */
.device-img {
    /*max-width: 120px !important;*/
    /*height: 100% !important;*/
    /*object-fit: contain;*/
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
    transition: all var(--lg-duration) var(--lg-ease);
    border-radius: .75rem;
}

.device-img:hover {
    transform: scale(1.02);
}

/* ----------------
   Selection Cards (Enhanced)
   ---------------- */
.selection-card {
    background: var(--lg-glassFill-2);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius-lg);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--lg-duration) var(--lg-ease);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: var(--lg-blur) saturate(180%) brightness(120%);
}

.selection-card:hover {
    background: var(--lg-glassFill);
    border-color: var(--lg-glassStroke);
    transform: translateY(-2px);
    box-shadow: var(--lg-shadow-2);
}

.selection-card.selected {
    background: var(--lg-glassFill);
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2), var(--lg-shadow-2);
}

.selection-content {
    text-align: center;
    width: 100%;
}

.selection-content h5 {
    color: var(--lg-ink-strong);
    font-weight: 650;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 0 !important;
}

.selection-content p {
    color: var(--lg-ink-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);

}

.selection-content .price {
    color: var(--lg-accent);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    margin-top: var(--space-3);

}

/* ----------------
   Color Selection (Enhanced)
   ---------------- */
.color-options {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: start;
    margin-top: var(--space-4);
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-4);
    border-radius: var(--lg-radius);
    transition: all var(--lg-duration) var(--lg-ease);
    min-width: 80px;
}

.color-option:hover {
    background: var(--lg-glassFill-2);
}

.color-option.selected {
    background: var(--lg-glassFill);
}

.color-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--lg-glassStroke-soft);
    transition: all var(--lg-duration) var(--lg-ease);
    position: relative;
}

.color-option.selected .color-circle {
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    transform: scale(1.1);
}

.color-option span {
    color: var(--lg-ink-soft);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.color-option.selected span {
    color: var(--lg-ink-strong);
}

/* ----------------
   Summary Card (Enhanced)
   ---------------- */
.summary-sticky {
    position: sticky;
    top: 100px;
}

.summary-card {
    width: 100%;
    padding: var(--space-7);
}

.device-preview {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
}

/*.device-preview::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: -10px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 80%;*/
/*    height: 4px;*/
/*    background: linear-gradient(90deg, transparent 0%, var(--lg-accent) 50%, transparent 100%);*/
/*    border-radius: var(--lg-radius-pill);*/
/*    opacity: 0.6;*/
/*    animation: shimmer 2s ease-in-out infinite;*/
/*}*/

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

.device-image img {
    max-width: 200px;

    height: 100%;
    max-height: 250px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.config-summary {
    border-top: 1px solid var(--lg-glassStroke-soft);
    padding-top: var(--space-6);
}

.config-summary .card-title {
    color: var(--lg-ink-strong);
    font-weight: 650;
    font-size: 1.1rem;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
}

.config-summary .card-title i {
    color: var(--lg-accent);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--lg-glassStroke-soft);
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-4);
}

.summary-item .label {
    color: var(--lg-ink-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.summary-item .value {
    color: var(--lg-ink-strong);
    font-weight: 600;
    font-size: 0.95rem;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0 0;
    /*border-top: 2px solid var(--lg-glassStroke);*/
    /*margin-top: var(--space-4);*/
}

.total-price .label {
    color: var(--lg-ink-strong);
    font-size: 1.1rem;
    font-weight: 650;
}

.total-price .price {
    color: var(--lg-accent);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ----------------
   Video Background
   ---------------- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /*height: calc(100vh - 80px);*/
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
}

/* ----------------
   Hero Section
   ---------------- */
.hero-section {
    /*min-height: 100vh;*/
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--space-8) var(--space-4);
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 1000;
    background: linear-gradient(135deg, #ffffff 0%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
    /*line-height: 1;*/
}

.btn-hero {
    font-size: 1.2rem;
    padding: var(--space-3) var(--space-9);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--lg-ink-soft);
    margin-bottom: var(--space-4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .tagline {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--lg-ink-muted);
    margin-bottom: var(--space-8);
}

/* ----------------
   Floating Button
   ---------------- */
.floating-preorder {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1020;
    animation: float 3s ease-in-out infinite;
}

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

/* ----------------
   Success Page
   ---------------- */
.success-main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
}

.success-card {
    max-width: 500px;
    width: 100%;
}

.success-icon {
    text-align: center;
    margin-bottom: var(--space-6);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--lg-glassFill);
    border: 2px solid var(--lg-glassStroke);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lg-ink-strong);
    text-align: center;
    margin-bottom: var(--space-6);
}

.reservation-code {
    background: var(--lg-glassFill-2);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    text-align: center;
}

.code-label {
    color: var(--lg-ink-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.code-value {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lg-ink-strong);
    letter-spacing: 0.1em;
}

.qr-section {
    text-align: center;
    margin-bottom: var(--space-8);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--lg-glassFill-2);
    border: 1px solid var(--lg-glassStroke-soft);
    border-radius: var(--lg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    font-size: 2rem;
    color: var(--lg-ink-muted);
}

.next-steps {
    margin-top: var(--space-8);
}

.next-steps h6 {
    color: var(--lg-ink-strong);
    font-weight: 650;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.next-steps h6 i {
    color: var(--lg-accent);
    margin-right: var(--space-2);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--lg-radius);
    transition: background var(--lg-duration-fast) var(--lg-ease-apple);
}

.step-item:hover {
    background: var(--lg-glassFill-2);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--lg-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h6 {
    color: var(--lg-ink-strong);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.step-content p {
    color: var(--lg-ink-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.action-buttons .btn-lgx {
    flex: 1;
    justify-content: center;
}

/* ----------------
   Responsive Design
   ---------------- */
@media (max-width: 768px) {
    .floating-preorder {
        bottom: var(--space-4);
        right: 50%;
        transform: translateX(50%);
        left: auto;
    }

    .color-options {
        gap: var(--space-4);
        justify-content: center;
    }

    .color-circle {
        width: 40px;
        height: 40px;
    }

    .summary-sticky {
        position: static;
        margin-top: var(--space-8);
    }

    .action-buttons {
        flex-direction: column;
    }

    .config-step {
        margin-bottom: var(--space-8);
    }

    .preorder-main {
        padding: var(--space-6) 0;
    }
}

@media (max-width: 576px) {
    .selection-card {
        padding: var(--space-4);
        min-height: 100px;
    }

    .summary-card {
        padding: var(--space-5);
    }

    .device-image img {
        width: auto;
        max-width: 100%;
        max-height: 250px !important;
    }

    .lg-modal .modal-header,
    .lg-modal .modal-body,
    .lg-modal .modal-footer {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

/* ----------------
   Animations & Interactions
   ---------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-preorder {
        animation: none;
    }

    /*.device-preview::before {*/
    /*    animation: none;*/
    /*}*/
}

/* ----------------
   Utility Classes
   ---------------- */
.text-gradient {
    background: linear-gradient(135deg, var(--lg-ink-strong) 0%, var(--lg-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-blur {
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.glass-border {
    border: 1px solid var(--lg-glassStroke-soft);
}

.shadow-glass {
    box-shadow: var(--lg-shadow-2);
}


#preorder-app {
    overflow: hidden;
}


/* =========================
   RTL Overrides (append last)
   ========================= */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Headings with leading icons */
html[dir="rtl"] .lg-heading-section {

    text-align: right;
}

html[dir="rtl"] .lg-heading-section i {
    margin-left: var(--space-3);
    margin-right: 0;
}

/* Forms: label + icon */
html[dir="rtl"] .form-label {
    /*flex-direction: row-reverse;*/
}

html[dir="rtl"] .form-label i {
    margin-left: var(--space-2);
    margin-right: 0;
}

/* Section titles with icons in summary */
html[dir="rtl"] .config-summary .card-title {
    /*flex-direction: row-reverse;*/
}

html[dir="rtl"] .config-summary .card-title i {
    margin-left: var(--space-4);
    margin-right: 0;
}

/* Steps header icon spacing */
html[dir="rtl"] .next-steps h6 {
    /*flex-direction: row-reverse;*/
}

html[dir="rtl"] .next-steps h6 i {
    margin-left: var(--space-2);
    margin-right: 0;
}

/* Summary rows: label on the right, value on the left */
html[dir="rtl"] .summary-item {
    /*flex-direction: row-reverse;*/
    text-align: right;
}

html[dir="rtl"] .summary-item .label {
    margin-left: var(--space-3);
    margin-right: 0;
}

/* Left/Right columns padding */
html[dir="rtl"] .preorder-left-column {
    padding-left: var(--space-4);
    padding-right: 0;
}

/* Floating button placement */
html[dir="rtl"] .floating-preorder {
    left: var(--space-6);
    right: auto;
}

@media (max-width: 768px) {
    html[dir="rtl"] .floating-preorder {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Color option: keep text centered (no change needed),
   but ensure any implicit LTR spacing is neutralized */
html[dir="rtl"] .color-option span {
    text-align: center;
}

/* Navbar (keeps layout but aligns text to the right) */
html[dir="rtl"] .navbar-nav .nav-link {
    text-align: right;
}

/* Utilities that assumed LTR margins */
html[dir="rtl"] .lg-heading-section i,
html[dir="rtl"] .config-summary .card-title i,
html[dir="rtl"] .next-steps h6 i {
    /* already flipped above, ensure no residual LTR spacing */
    margin-right: 0;
}


.word-fade-up {
  display: inline-block;
  overflow: hidden;
}

.word-fade-up span {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.6s forwards;
}

/* Animation effect */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay for each letter */
.word-fade-up span:nth-child(1) { animation-delay: 0s; }
.word-fade-up span:nth-child(2) { animation-delay: 0.1s; }
.word-fade-up span:nth-child(3) { animation-delay: 0.2s; }
.word-fade-up span:nth-child(4) { animation-delay: 0.3s; }
.word-fade-up span:nth-child(5) { animation-delay: 0.4s; }
.word-fade-up span:nth-child(6) { animation-delay: 0.5s; }
.word-fade-up span:nth-child(7) { animation-delay: 0.6s; }
.word-fade-up span:nth-child(8) { animation-delay: 0.7s; }
.word-fade-up span:nth-child(9) { animation-delay: 0.8s; }

/* New: single gradient across the whole word */
.hero-heading { position: relative;

    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    line-height: 1;

}
.hero-heading span {
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
