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

:root {
    /* =========================
       BASE COLORS
    ========================= */
    --page-dark: #000024;
    --page-mid: #1a1a4a;
    --card-bg: #eff3fd;
    --panel-blue: #1e2a5e;

    /* =========================
       TEXT
    ========================= */
    --text-dark: #111827;
    --text-muted: #4b5563;

    /* =========================
       BORDERS / INPUTS
    ========================= */
    --border: #e5e7eb;
    --input-border: #d1d5db;

    /* =========================
       SYSTEM COLORS
    ========================= */
    --error-color: #dc2626;

    /* Focus (inputs, active states) */
    --secondary: #3B82F6;
    --secondary-hover: #2563EB;
    --focus: var(--secondary);

    /* =========================
       ACCENT (optional - urgency / highlight)
    ========================= */
    --accent: #ff7a10;
    --accent-light: #ff9a5a;

    /* =========================
       BRAND (StarZade identity)
    ========================= */
    --brand: #7C3AED;
    --brand-hover: #5B21B6;

    /* CTA GRADIENT (MAIN BUTTON) */
    --cta-start: #8B5CF6;
    --cta-end: #6D28D9;

    --cta-hover-start: #7C3AED;
    --cta-hover-end: #5B21B6;

    --cta-disabled-start: #C4B5FD;
    --cta-disabled-end: #DDD6FE;

    --cta-text: #ffffff;

    /* Secondary button disabled */
    --secondary-disabled-start: #a5b4fc;
    --secondary-disabled-end: #c7d2fe;
    --secondary-disabled-text: rgba(255, 255, 255, 0.8);

    --secondary-rgb: 59, 130, 246;

    /* =========================
       SHADOWS
    ========================= */
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-main: 0 20px 60px rgba(0, 0, 0, 0.16);
    --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.22);

    /*Disabled*/
    --anonymous-disabled-bg: rgba(59, 130, 246, 0.10);
    --anonymous-disabled-border: rgba(59, 130, 246, 0.35);
    --anonymous-disabled-text: #1e3a8a;

    --label-dark: oklch(.21 .034 264.665);
    --label-color: color-mix(in oklch, var(--label-dark) 70%, white);
}

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

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 122, 16, 0.10), transparent 28rem),
        radial-gradient(circle at 88% 78%, rgba(30, 58, 138, 0.35), transparent 30rem),
        linear-gradient(135deg, var(--page-dark) 0%, var(--page-mid) 48%, var(--page-dark) 100%);
    color: #fff;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
}

.container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 350px) {
    .container {
        max-width: 350px;
    }
}

@media (min-width: 40rem) {
    .container {
        max-width: 40rem;
    }
}

@media (min-width: 48rem) {
    .container {
        max-width: 48rem;
    }
}

@media (min-width: 64rem) {
    .container {
        max-width: 64rem;
    }
}

@media (min-width: 80rem) {
    .container {
        max-width: 80rem;
    }
}

@media (min-width: 96rem) {
    .container {
        max-width: 80rem;
    }
}

/* =========================
   HEADER - SƏN DEDİYİN KİMİ TOXUNULMAYIB
========================= */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #fff;
    text-decoration: none;

    font-weight: 400;
    font-size: 30px;
    letter-spacing: 0.04em;

    line-height: 1;
}

.header-logo-icon {
    width: 30px;
    height: 30px;

    min-width: 25px;
    min-height: 25px;

    color: #fff;
    flex-shrink: 0;

    display: block;
    overflow: visible;

    transform: translateY(-1px);
}

.header-logo-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown.active .dropdown-toggle {
    background: var(--orange);
    color: #fff;
}

.action-text {
    font-size: 14px;
    line-height: 1;
}

.flag-img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.chevron {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dropdown.active .chevron {
    transform: rotate(180deg);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.10);
}

@media (min-width: 400px) {
    .header-icon-btn {
        padding: 8px;
    }
}

.user-icon {
    width: 20px;
    height: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    background: #18224a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 12px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40);
}

.dropdown.active .dropdown-menu {
    display: grid;
}

.language-menu {
    width: 360px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

.currency-menu {
    width: 260px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 25px;
}

.dropdown-menu button {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-menu button:hover {
    background: rgba(255, 122, 16, 0.20);
}

.dropdown-menu button:active {
    background: rgba(255, 122, 16, 0.30);
}

.dropdown-menu button span {
    color: var(--orange);
    font-weight: 600;
}

@media (max-width: 48rem) {
    .container {
        padding: 0 14px;
    }

    .header-inner {
        height: 56px;
    }

    .header-logo-text {
        display: none;
    }

    .header-logo {
        gap: 0;
        justify-content: center;
    }

    .header-logo-icon {
        width: 26px;
        height: 30px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action {
        padding: 6px 8px;
        font-size: 10px;
        gap: 6px;
        border-radius: 8px;
    }

    .action-text {
        font-size: 12px;
    }

    .flag-img {
        width: 18px;
        height: 12px;
    }

    .chevron {
        width: 14px;
        height: 14px;
    }

    .header-icon-btn {
        width: auto;
        height: auto;
        padding: 6px;
    }

    .user-icon {
        width: 18px;
        height: 18px;
    }

    .dropdown-menu {
        position: fixed;
        top: 64px;
        right: 8px;
        width: 288px;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px;
        border-radius: 8px;
    }

    .language-menu,
    .currency-menu {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .dropdown-menu button {
        min-height: auto;
        padding: 8px;
        font-size: 12px;
        gap: 8px;
        border-radius: 6px;
    }
}

/* =========================
   PAGE LAYOUT - OSR STYLE
========================= */
.main-section {
    position: relative;
    z-index: 1;
    padding-top: 32px;
    padding-bottom: 48px;
}

.main-section .container {
    max-width: 80rem;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.main-card,
.summary-card {
    min-width: 0;
    max-width: 100%;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft), var(--shadow-main);
}

.main-card {
    padding: 32px;
}

.summary-card {
    padding: 24px;
    position: sticky;
    top: 16px;
}

/* =========================
   LEFT MAIN CARD
========================= */
.main-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.main-card-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.main-card-step {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: nowrap;
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.star-config-box {
    background: var(--panel-blue);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.star-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    width: 100%;
}

.form-label-row,
.form-label-between {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.form-grid .form-label-row {
    margin-bottom: 6px;
}

.form-label-between {
    justify-content: space-between;
}

.form-label-between span {
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-muted);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: var(--label-color);
    user-select: none;
}

.form-label-row .form-label,
.form-label-between .form-label {
    margin-bottom: 0;
}

.form-label-row {
    margin-bottom: 8px;
}

.form-label-white {
    color: #fff;
}

.info-btn {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: color 0.15s ease;
}

.info-btn:hover {
    color: var(--text-dark);
}

.info-btn-white {
    color: rgba(255, 255, 255, 0.70);
}

.info-btn-white:hover {
    color: #fff;
}

.form-select,
.form-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    padding: 0 16px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
}

.form-select small {
    margin-left: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.form-input::placeholder,
.message-box textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-input:focus,
.message-box textarea:focus,
.form-select:focus-visible {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

.form-help {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #374151;
}

.star-colors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0px;
}

.star-color {
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
}

.star-color img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.star-color:hover img {
    transform: scale(1.05);
}

.star-color.active img {
    border-color: var(--orange);
    box-shadow: 0 10px 24px rgba(255, 122, 16, 0.28);
}

.star-position-box1 {
    margin-top: 12px;
}

.star-name-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.star-name-preview img {
    width: 20px;
    height: 20px;
}

.star-name-preview strong {
    font-weight: 700;
}

/* =========================
   STAR COORDINATES - NEW
========================= */

.star-coordinates {
    min-width: 0;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-dark);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.star-coordinates-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.star-coordinates-text span {
    min-width: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.coordinate-info-btn {
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
}

.coordinate-info-btn:hover {
    color: #4b5563;
}

.coordinate-change-btn {
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.coordinate-change-btn:hover {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.date-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.5fr 0.75fr;
    gap: 8px;
}

.checkbox-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.checkbox-row input,
.summary-radios input {
    width: 16px;
    height: 16px;
    accent-color: #374151;
    flex-shrink: 0;
}

.message-box {
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.message-box:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

.message-box textarea {
    width: 100%;
    height: 120px;
    resize: none;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: inherit;
    background: #fff;
}

.message-actions {
    display: flex;
    border-top: 1px solid var(--input-border);
}

.message-actions button {
    width: 50%;
    border: 0;
    background: #fff;
    padding: 12px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
}

.message-actions button:first-child {
    border-right: 1px solid var(--input-border);
}

.message-actions button:hover {
    background: #f9fafb;
}

.form-footer {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-price {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

.save-btn {
    min-width: 200px;
    height: 40px;
    border: 0;
    border-radius: 999px;

    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: #fff;

    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;

    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);

    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.save-btn span {
    min-width: 0;
}

.save-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.save-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(var(--secondary-rgb), 0.35);
}

.save-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(var(--secondary-rgb), 0.25);
}

.save-btn:disabled {
    background: linear-gradient(135deg, var(--secondary-disabled-start), var(--secondary-disabled-end));
    color: var(--secondary-disabled-text);
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================
   SUMMARY CARD
========================= */
.summary-mobile-toggle {
    display: none;
}

.summary-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.summary-product {
    margin-bottom: 12px;
    position: relative;
}

.summary-badge {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 8px 8px 0 0;
    background: var(--summary-badge-bg, #1e3a8a);
    color: #fff;
    font-size: 11.76px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.60), 0 1px 4px rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/*.summary-badge span {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.60));
}*/

.summary-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.60));
    color: var(--summary-badge-icon-color, #ffffff);
}

.summary-badge-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.summary-badge-text {
    min-width: 0;
    color: var(--summary-badge-subtitle-color, #ffffff);
}

.summary-image-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.summary-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    color: #374151;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
    transition: background 0.15s ease, color 0.15s ease;
}

.summary-nav:hover {
    background: #fff;
    color: var(--text-dark);
}

.summary-nav-left {
    left: 8px;
}

.summary-nav-right {
    right: 8px;
}

.summary-select {
    width: 100%;
    min-height: 40px;
    margin-bottom: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.summary-select del {
    color: #6b7280;
    font-size: 12px;
    margin: 0 4px;
}

.summary-theme {
    margin-bottom: 16px;
}

.summary-radios {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 8px;
    margin-bottom: 16px;
}

.summary-radios label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.summary-radios span {
    font-size: 13px;
    line-height: 1;
    color: var(--text-dark);
}

.summary-lines {
    border-top: 1px solid #d9dee8;
    padding-top: 14px;
}

.summary-lines>div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.summary-lines span {
    color: #5b6475;
}

.summary-lines strong {
    color: var(--text-dark);
    font-weight: 500;
}

.summary-lines>.summary-total {
    padding-top: 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
}

.summary-total span,
.summary-total strong {
    color: var(--text-dark);
    font-weight: 600;
}

.summary-star-name {
    margin: 16px 0 8px;
    text-align: center;
    color: #2e3368;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.summary-benefits {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.summary-benefits span {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-dark);
    white-space: nowrap;
}

.star-mobile-head {
    display: none;
}

/* =========================
   TABLET / MOBILE LAYOUT
   64rem-ə kimi mobile summary sistemi saxlanır
========================= */
@media (max-width: 64rem) {
    .main-section {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .main-section .container {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 0 22px;
    }

    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
        max-width: 100%;
    }

    .summary-card {
        order: 1;
        width: 100%;
        max-width: none;
        padding: 0;
        border-radius: 8px;
        overflow: visible;
        position: sticky;
        top: 0;
        z-index: 50;
        margin: 0 0 6px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.10);
    }

    .summary-mobile-toggle {
        position: relative;
        z-index: 2;
        border-radius: 8px;
        overflow: hidden;
    }

    .summary-content {
        border-radius: 0 0 8px 8px;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    }

    .summary-card.active {
        position: static;
        top: auto;
        z-index: auto;
        margin-bottom: 18px;
    }

    .summary-mobile-toggle {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border: 0;
        background: #fff;
        color: #071126;
        cursor: pointer;
        text-align: left;
    }

    .summary-thumb {
        width: 64px;
        height: 46px;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .summary-mobile-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .summary-mobile-info strong {
        font-size: 13px;
        line-height: 1.2;
        color: var(--text-dark);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .summary-mobile-info span {
        font-size: 11px;
        line-height: 1.25;
        color: #555f73;
    }

    .summary-mobile-price {
        text-align: right;
        line-height: 1.1;
        flex-shrink: 0;
    }

    .summary-mobile-price del {
        display: block;
        font-size: 12px;
        color: #6b7280;
    }

    .summary-mobile-price strong {
        font-size: 16px;
        color: var(--text-dark);
    }

    .summary-chevron {
        width: 20px;
        height: 20px;
        color: #4b5563;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .summary-content {
        min-width: 0;
        max-width: 100%;
        display: none;
        padding: 12px;
        background: var(--card-bg);
    }

    .summary-card.active .summary-content {
        display: block;
    }

    .summary-card.active .summary-chevron {
        transform: rotate(180deg);
    }

    .summary-title {
        display: none;
    }

    .main-card {
        order: 2;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .main-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .main-card-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .main-card-step {
        font-size: 14px;
        line-height: 1.4;
    }

    .main-form {
        gap: 24px;
    }

    .star-config-box {
        min-width: 0;
        max-width: 100%;
        padding: 20px;
        border-radius: 12px;
    }

    .star-config-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .star-config-grid {
        gap: 20px;
    }

    .form-grid {
        gap: 24px;
    }

    .star-colors {
        gap: 12px;
    }

    .star-color img {
        width: 48px;
        height: 48px;
    }

    .star-color {
        font-size: 12px;
    }

    .star-name-preview {
        display: none;
    }

    .star-coordinates {
        display: grid;
        min-width: 0;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name change"
            "coords coords";
        gap: 6px 10px;
        padding: 10px 16px;
        align-items: center;
    }

    .star-mobile-head {
        display: flex;
        align-items: center;
        gap: 6px;
        grid-area: name;
        min-width: 0;
    }

    .star-mobile-head img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .star-mobile-head strong {
        display: block;
        min-width: 0;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 600;
        color: var(--text-dark);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .star-coordinates-text {
        grid-area: coords;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
    }

    .star-coordinates-text span {
        min-width: 0;
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .coordinate-info-btn {
        align-self: flex-start;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .coordinate-change-btn {
        grid-area: change;
        height: 28px;
        padding: 0 8px;
        font-size: 13px;
        align-self: center;
    }

    .date-grid {
        gap: 6px;
    }

    .form-select,
    .form-input {
        height: 40px;
        font-size: 16px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .message-box textarea {
        min-height: 120px;
    }

    .form-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .footer-price {
        font-size: 18px;
    }

    .save-btn {
        width: auto;
        min-width: 200px;
    }

    .summary-badge {
        min-height: 34px;
        font-size: 10px;
    }

    .summary-radios {
        gap: 12px;
        flex-wrap: wrap;
    }

    .summary-benefits {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .main-section .container {
        padding: 0 14px;
    }

    .main-card {
        padding: 18px 14px;
    }

    .main-card-title {
        font-size: 22px;
    }

    .star-config-box {
        padding: 16px;
    }

    .summary-thumb {
        width: 58px;
        height: 42px;
    }

    .summary-mobile-info strong {
        font-size: 12px;
    }

    .summary-mobile-price strong {
        font-size: 14px;
    }

    .form-select,
    .form-input {
        font-size: 15px;
    }
}

/* =========================
   CUSTOM FORM CONTROLS
   Date select, language select, inline checkboxes
========================= */

/* Coordinate change button icon alignment */
.coordinate-change-btn {
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.coordinate-change-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.coordinate-change-btn:hover {
    opacity: 1;
}

/* Shared select chevron */
.select-chevron {
    width: 16px;
    height: 16px;
    color: #6b7280;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Date dropdown */
.date-select {
    position: relative;
}

.date-select.active .select-chevron {
    transform: rotate(180deg);
}

.date-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: 100%;
    max-height: 250px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.date-select.active .date-select-menu {
    display: flex;
    flex-direction: column;
}

.date-scroll-btn {
    height: 26px;
    min-height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.date-scroll-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.date-scroll-btn:hover {
    color: #111827;
}

.date-scroll-list {
    max-height: 198px;
    overflow-y: auto;
    scrollbar-width: none;
}

.date-scroll-list::-webkit-scrollbar {
    display: none;
}

.date-select-menu.is-top .date-scroll-up {
    display: none;
}

.date-select-menu.is-bottom .date-scroll-down {
    display: none;
}

.date-scroll-list button {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #111827;
    font-size: 14px;
    text-align: left;
}

.date-scroll-list button.hovered:not(.active) {
    background: #f3f4f6;
}

.date-select-menu:not(:hover) .date-scroll-list button.active {
    background: #f3f4f6;
}

.date-select-menu:hover .date-scroll-list button.active {
    background: transparent;
}

.date-scroll-list button.active {
    position: relative;
}

.date-scroll-list button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--secondary);
}

/* Language dropdown */
.language-select {
    position: relative;
    width: 100%;
}

.language-selected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selected img,
.language-scroll-list img {
    width: 16px;
    height: 11px;
    object-fit: cover;
    flex-shrink: 0;
}

.language-select.active .select-chevron {
    transform: rotate(180deg);
}

.language-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: 100%;
    max-height: 250px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.language-select.active .language-select-menu {
    display: flex;
    flex-direction: column;
}

.language-scroll-btn {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.language-scroll-btn svg {
    width: 16px;
    height: 16px;
}

.language-scroll-btn:hover {
    color: #111827;
}

.language-scroll-list {
    max-height: 198px;
    overflow-y: auto;
    scrollbar-width: none;
}

.language-scroll-list::-webkit-scrollbar {
    display: none;
}

.language-select-menu.is-top .language-scroll-up {
    display: none;
}

.language-select-menu.is-bottom .language-scroll-down {
    display: none;
}

.language-scroll-list button {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: left;
}

.language-scroll-list button:not(.active):hover {
    background: #f3f4f6;
}

.language-select-menu:not(:hover) .language-scroll-list button.active {
    background: #f3f4f6;
}

.language-select-menu:hover .language-scroll-list button.active {
    background: transparent;
}

.language-scroll-list button.active {
    position: relative;
}

.language-scroll-list button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--secondary);
}

/* Inline labels with optional checkbox */
.form-label-inline {
    height: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-label-inline .form-label,
.form-label-inline .form-label-row {
    margin-bottom: 0;
}

.form-label-inline .form-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-inline input {
    width: 14px;
    height: 14px;
    accent-color: #374151;
    cursor: pointer;
}

/* Input/select vertical alignment */
.date-grid .form-select,
.form-grid .form-input {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
}

.date-grid .form-select,
.form-input {
    padding-top: 0;
    padding-bottom: 0;
}

/* TODO: FINAL-POLISH — replace this 1px visual alignment fix with unified input/select box model */
.form-group:has(.date-grid) .date-grid {
    transform: translateY(1px);
}


.date-select {
    position: relative;
    z-index: 30;
}

.date-select.active {
    z-index: 999;
}

.date-select-menu {
    z-index: 1000;
}

.form-group {
    position: relative;
}

.form-group:has(.date-select.active) {
    z-index: 999;
}

/* =========================
   Constellation
========================= */

.constellation-select {
    position: relative;
    width: 100%;
}

.constellation-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.constellation-selected small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.constellation-select.active .select-chevron {
    transform: rotate(180deg);
}

.constellation-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 120;
    width: 100%;
    height: 592px;
    max-height: min(592px, calc(100vh - 130px));
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.constellation-select.active .constellation-select-menu {
    display: flex;
    flex-direction: column;
}

.constellation-scroll-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.constellation-scroll-list::-webkit-scrollbar {
    display: none;
}

.constellation-scroll-btn {
    height: 28px;
    min-height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.constellation-scroll-btn svg {
    width: 15px;
    height: 15px;
}

.constellation-scroll-btn:hover {
    color: #111827;
}

.constellation-select-menu.is-top .constellation-scroll-up {
    display: none;
}

.constellation-select-menu.is-bottom .constellation-scroll-down {
    display: none;
}

.constellation-scroll-list button {
    width: 100%;
    height: 36px;
    padding: 0 34px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: left;
    position: relative;
}

.constellation-scroll-list button small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.constellation-scroll-list button.hovered:not(.active),
.constellation-scroll-list button.active {
    background: #f3f4f6;
}

.constellation-scroll-list button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--secondary);
}

.constellation-group-title {
    height: 56px;
    padding: 0 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.constellation-group-icon {
    font-size: 22px;
    line-height: 1;
}

.constellation-group-title strong {
    font-size: 14px;
    font-weight: 600;
}


.info-btn {
    position: relative;
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    color: #111827;
}

.info-btn-white {
    color: rgba(255, 255, 255, 0.70);
}

.info-btn-white:hover {
    color: #fff;
}

.info-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.info-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    width: 256px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.info-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: #111827;
}

.info-btn:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* =========================
   SUMMARY SELECT
========================= */

.summary-select-box {
    position: relative;
}

/* spacing (pro yanaşma) */
.summary-content>*+.summary-select-box {
    margin-top: 12px;
}

/* toggle (button) */
.summary-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* selected text */
.summary-selected {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* chevron rotate */
.summary-select-box.active .select-chevron {
    transform: rotate(180deg);
}

/* dropdown */
.summary-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    overflow: hidden;
}

/* active açılma */
.summary-select-box.active .summary-select-menu {
    display: block;
}

/* options */
.summary-select-menu button {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 12px;
    border: 0;
    background: transparent;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-align: left;
    position: relative;
}

/* hover */
.summary-select-menu button:hover {
    background: #f3f4f6;
}

/* active (seçili) */
.summary-select-menu button.active {
    background: #f3f4f6;
    font-weight: 500;
}

/* OSR style davranış (hover gələndə active sönür) */
.summary-select-menu:hover button.active {
    background: transparent;
}

/* selected check icon */
.summary-select-menu button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--secondary);
    font-size: 13px;
}

/* smooth transition */
.select-chevron {
    transition: transform 0.2s ease;
}

.summary-select-box+.summary-radios {
    margin-top: 14px;
}

/* Star Name error + P Eyni Line */
.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.form-help {
    font-size: 13px;
    color: #6b7280;
}

/* error aktiv olanda */
.form-group.error .form-error {
    display: block;
}


/* highlight input (sol xətt + background) */
/* error text */
.form-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--error-color);
}


.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input {
    border-color: var(--error-color);
    border-left: 4px solid var(--error-color);
    background: #fff7ed;
}

.summary-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.benefit-icon {
    width: 14px;
    height: 14px;
    color: #16a34a;
    flex-shrink: 0;
}

.message-actions button {
    font-weight: 500;
    color: #6366f1;
    /* və ya accent */
}

.message-actions button:first-child {
    color: #7c3aed;
}

.footer-price-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.footer-price-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    color: #6b7280;
}

.footer-price-box {
    gap: 8px;
}

.footer-price {
    font-size: 16px;
    font-weight: 700;
}

.footer-price-box {
    opacity: 0.7;
}

.footer-price {
    /*color: var(--accent);*/
}


/* Emoju modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.50);
}

.modal-overlay.active {
    display: block;
}

.emoji-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 5000;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 90vh;
    transform: translate(-50%, -50%);
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.emoji-modal.active {
    display: block;
}

.emoji-modal-content {
    padding: 24px 18px;
    overflow-y: auto;
    max-height: 90vh;
}

.emoji-modal h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.emoji-modal p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.emoji-grid button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 24px;
    transition: background 0.15s ease;
}

.emoji-grid button:hover {
    background: #f3f4f6;
}

.emoji-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 480px) {
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .emoji-grid button {
        width: 42px;
        height: 42px;
    }
}

/* AI MODAL */
.ai-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 5000;
    width: calc(100% - 32px);
    max-width: 460px;
    transform: translate(-50%, -50%);
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.ai-modal.active {
    display: block;
}

.ai-modal-content {
    padding: 24px 18px;
}

.ai-modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-modal p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.ai-tone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.ai-tone-grid button {
    height: 40px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.ai-tone-grid button.active,
.ai-tone-grid button:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    color: #7c3aed;
}

#aiCustomPrompt {
    width: 100%;
    height: 92px;
    resize: none;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
}

#aiCustomPrompt:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.ai-generate-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-weight: 700;
}

.ai-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    font-size: 22px;
}



/* =========================
   STEP 2
========================= */
/* BACK BUTTON */
.step-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px -8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.step-back-btn:hover {
    background: rgba(17, 24, 39, 0.06);
    color: #111827;
}

.step-back-icon {
    width: 18px;
    height: 18px;
}


/* GRID */
.form-grid-2 {
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}


/* LOGIN LINK */
.login-link button {
    font-size: 14px;
    font-weight: 600;
    color: #2E3368;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-link button:hover {
    color: #FF6B35;
}


/* MOBILE */
.mobile-only {
    margin-top: 8px;
}


/* DESKTOP FIX */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: flex;
        align-items: center;
        height: 40px;

        /* 🔥 ƏSAS FIX BURDADI */
        margin-top: 20px;
        /* label + gap qədər aşağı salır */
    }
}

/* Billing */
.billing-section {
    margin-top: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.billing-section .form-group {
    margin-bottom: 16px;
}

.form-group-inline {
    margin-top: 8px;
}

.country-select {
    position: relative;
}

.country-select.active .select-chevron {
    transform: rotate(180deg);
}

.country-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.country-select.active .country-select-menu {
    display: block;
}

.country-select-menu button {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 12px;
    border: 0;
    background: transparent;
    color: #111827;
    text-align: left;
    font-size: 14px;
    position: relative;
}

.country-select-menu button:hover,
.country-select-menu button.active {
    background: #f3f4f6;
}

.country-select-menu button.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    color: var(--orange);
}

/* =========================
   DELIVERY LOCATION ROW
========================= */
.delivery-location-row {
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    margin-top: 8px;
}

.delivery-country-group {
    min-width: 0;
}

.delivery-location-action {
    min-width: 170px;
}

.share-location-btn {
    width: 100%;
    min-width: 150px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: rgba(255, 122, 16, 0.08);
    color: #2E3368;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.share-location-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.share-location-btn.is-loading {
    background: #fff7ed;
    border-color: rgba(255, 122, 16, 0.45);
    color: var(--orange);
}

.share-location-btn.is-shared {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

.share-location-btn.is-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.delivery-location-row .form-select,
.share-location-btn {
    height: 40px;
}

.share-location-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: #fffaf5;
}

.share-location-btn span {
    font-size: 16px;
    line-height: 1;
}

.location-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .delivery-location-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .delivery-location-action {
        min-width: 0;
    }

    .delivery-location-action .form-label {
        display: none;
    }
}


/* =========================
   BUSINESS COMPANY INLINE
========================= */
.business-row {
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr);
    gap: 16px;
    align-items: end;
    margin-top: 0;
    /* əvvəl 16px idi — silirik */
}

.business-checkbox-wrap {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0px;
}

.business-company-field {
    display: none;
    margin-top: 0;
}

/* yalnız açıq olanda məsafə ver */
.business-company-field.active {
    display: block;
    margin-top: 0;
}

.business-company-field .form-input {
    height: 40px;
}

@media (max-width: 767px) {
    .business-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }

    .business-checkbox-wrap {
        height: auto;
    }
}

.business-company-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: var(--text-dark);
}


/* =========================
   DELIVERY DYNAMIC FIELDS
========================= */
.delivery-az-field {
    display: none;
}

.billing-section.is-azerbaijan .delivery-az-field {
    display: block;
}

.billing-section.is-azerbaijan .delivery-international-field {
    display: none;
}

.billing-section.is-international .delivery-az-field {
    display: none;
}

.billing-section.is-international .delivery-international-field {
    display: block;
}

.delivery-note-textarea {
    height: 78px;
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
    line-height: 1.5;
}

.delivery-note-help {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.label-muted {
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 767px) {
    .delivery-note-textarea {
        height: 110px;
        min-height: 110px;
    }
}


/* =========================
   SHIPPING METHOD
========================= */
.shipping-section {
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
}

.billing-section.is-azerbaijan .shipping-section,
.billing-section.is-international .shipping-section {
    display: block;
}

.shipping-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 72px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shipping-option:hover {
    border-color: #d1d5db;
}

.shipping-option.active {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.shipping-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.shipping-left input {
    width: 16px;
    height: 16px;
    accent-color: #374151;
    flex-shrink: 0;
}

.shipping-info {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-info strong {
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.shipping-info span {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-muted);
}

.shipping-price {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.calculate-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.shipping-option:hover .calculate-price-badge {
    background: #e5e7eb;
}

@media (max-width: 767px) {
    .shipping-option {
        align-items: flex-start;
        padding: 14px;
    }

    .shipping-price {
        font-size: 14px;
    }
}


/* =========================
   PAYMENT METHOD - STRIPE/OSR STYLE FINAL
========================= */
.payment-section {
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
}

.payment-accordion {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CARD */
.payment-method-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e6e8ee;
    border-radius: 6px;
    background: #fff;
    color: #30313d;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    box-shadow:
        0px 1px 1px rgba(0, 0, 0, 0.03),
        0px 3px 6px rgba(0, 0, 0, 0.02);
}

.payment-method-item:hover {
    border-color: #cfd4dc;
}

.payment-method-item.active {
    border-color: #0570de;
    box-shadow: 0 0 0 1px #0570de;
}

/* HEADER - bütün yazılar eyni xətdən başlasın */
.payment-method-header {
    height: auto;
    min-height: 24px;
    padding: 16px 16px 6px 16px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

/* =========================
   ICON
========================= */
.payment-method-icon {
    width: 34px;
    min-width: 34px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* Card icon */
.payment-method-icon:not(.google-pay-icon):not(.paypal-icon) svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   TEXT
========================= */
.payment-method-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* =========================
   HOVER (FULL DARK)
========================= */
.payment-method-item:hover .payment-method-name,
.payment-method-item:hover .payment-method-icon:not(.google-pay-icon):not(.paypal-icon) {
    color: color-mix(in oklch, var(--text-muted) 40%, black);
}

/* hover qalın */
.payment-method-item:hover .payment-method-name {
    font-weight: 700;
}

/* =========================
   ACTIVE STATE (BRAND)
========================= */
.payment-method-name.active-name {
    color: var(--secondary);
    font-weight: 700;
}

.payment-method-item.active:hover .payment-method-name,
.payment-method-item.active:hover .payment-method-icon:not(.google-pay-icon):not(.paypal-icon) {
    color: var(--secondary) !important;
}

.payment-method-item.active .payment-method-icon:not(.google-pay-icon):not(.paypal-icon) {
    color: var(--secondary);
}

/* GOOGLE PAY */
.google-pay-icon {
    width: 34px;
    min-width: 34px;
    height: 22px;
    border: 0;
    background: transparent;
}

.google-pay-logo {
    width: 30px;
    height: 16px;
    display: block;
    fill: none;
    stroke: none;
}

.google-pay-logo path {
    stroke: none;
}

/* PAYPAL */
.paypal-icon {
    width: 34px;
    min-width: 34px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.paypal-logo {
    fill: currentColor;
    height: 1.2em;
    max-width: 2.5em;
    width: auto;
    display: block;
}

.paypal-logo.dark {
    display: none;
}

/* BODY - sözlə blok arası OSR kimi */
.payment-method-body {
    padding: 16px;
    padding-top: 16px;
    margin-top: 0;
}

.payment-method-item.active .payment-method-body {
    padding-top: 16px;
}

/* MESSAGE BOX */
.payment-message-box {
    min-width: 0;
    max-width: 100%;
    padding: 12px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #e6e8ee;
    box-shadow:
        0px 1px 1px rgba(0, 0, 0, 0.03),
        0px 3px 6px rgba(0, 0, 0, 0.02);

    display: flex;
    align-items: center;
    gap: 12px;

    color: #697386;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;

    margin: 0;
}

.payment-message-icon {
    width: 42px;
    min-width: 42px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #697386;
}

.payment-message-icon svg {
    width: 42px;
    height: 36px;
    fill: currentColor;
    stroke: none;
}

.payment-method-item.active:not(:has(.payment-method-body)) {
    padding-bottom: 8px;
}

/* CLOSED (hamısı eyni olsun) */
.payment-method-item:not(.active) .payment-method-header {
    padding: 16px;
}

/* OPEN (yalnız active fərqli olsun) */
.payment-method-item.active .payment-method-header {
    padding: 16px 16px 8px 16px;
}

.payment-method-body {
    display: none;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* SSL */
.checkout-trust {
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
}

.checkout-trust-top {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.secure-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    background: #fff;
}

.secure-box svg {
    width: 18px;
    height: 18px;
    color: #0570de;
}

.secure-box strong {
    font-size: 13px;
    display: block;
}

.secure-box span {
    font-size: 11px;
    color: #6b7280;
}

.checkout-terms {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

.checkout-terms a {
    text-decoration: underline;
    color: #111827;
}

.newsletter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.newsletter input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .secure-box {
        padding: 10px;
    }

    .secure-box div {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .secure-box span {
        margin-top: 0;
    }
}

/* */
.checkout-footer {
    min-width: 0;
    max-width: 100%;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #d9dee8;
}

.checkout-footer-row {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-total {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
}

.checkout-total svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkout-total span {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.place-order-btn {
    flex-shrink: 0;
    min-width: 200px;
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;

    background-color: var(--cta-start);
    background-image: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: var(--cta-text);

    font-size: 14px;
    font-weight: 600;

    /* FIX: purple shadow */
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);

    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    /* daha professional */
    background-image: linear-gradient(135deg, var(--cta-hover-start), var(--cta-hover-end));

    /* FIX: stronger purple glow */
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.place-order-btn:active:not(:disabled) {
    transform: translateY(0);
    /* scale yox, bu daha clean-dir */
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
}

.place-order-btn:disabled {
    background-image: linear-gradient(135deg, var(--cta-disabled-start), var(--cta-disabled-end));
    opacity: 0.8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.place-order-text-short {
    display: none;
}

.checkout-error {
    margin-top: 12px;
    text-align: right;
}

.checkout-error p {
    margin: 0;
    font-size: 14px;
    color: #b91c1c;
}

@media (max-width: 374px) {
    .place-order-btn {
        min-width: 120px;
    }

    .place-order-text-full {
        display: none;
    }

    .place-order-text-short {
        display: inline;
    }
}

@media (max-width: 359px) {
    .checkout-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-total {
        justify-content: center;
    }

    .place-order-btn {
        width: 100%;
    }

    .checkout-error {
        text-align: center;
    }
}


/* =========================
   MOBILE HORIZONTAL OVERFLOW GUARD
   Heç nə silmədən: yalnız daşma yaradan child-ləri sıxılmağa məcbur edir.
========================= */
@media (max-width: 64rem) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .main-section,
    .main-section .container,
    .main-layout,
    .main-layout>*,
    .main-card,
    .summary-card,
    .summary-mobile-toggle,
    .summary-mobile-info,
    .summary-content,
    .main-form,
    .star-config-box,
    .star-config-grid,
    .star-config-grid>*,
    .form-grid,
    .form-grid>*,
    .form-grid-2,
    .form-grid-2>*,
    .billing-section,
    .delivery-location-row,
    .delivery-location-row>*,
    .business-row,
    .business-row>*,
    .shipping-section,
    .shipping-options,
    .shipping-option,
    .shipping-left,
    .shipping-info,
    .payment-section,
    .payment-accordion,
    .payment-method-item,
    .payment-method-header,
    .payment-method-body,
    .payment-message-box,
    .checkout-trust,
    .checkout-trust-top,
    .checkout-footer,
    .checkout-footer-row,
    .checkout-total {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-select>span,
    .summary-selected,
    .country-selected,
    .constellation-selected,
    .payment-method-name {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .star-coordinates,
    .star-coordinates-text,
    .star-coordinates-text span {
        min-width: 0;
        max-width: 100%;
    }

    .star-coordinates-text span,
    .shipping-info strong,
    .shipping-info span,
    .payment-message-box,
    .checkout-terms,
    .newsletter span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .coordinate-info-btn,
    .coordinate-change-btn,
    .shipping-price,
    .summary-thumb,
    .summary-mobile-price,
    .summary-chevron,
    .place-order-btn {
        flex-shrink: 0;
    }

    .dropdown-menu,
    .language-menu,
    .currency-menu,
    .country-select-menu,
    .summary-select-menu,
    .date-select-menu,
    .language-select-menu,
    .constellation-select-menu {
        max-width: calc(100vw - 16px);
    }
}

@media (max-width: 767px) {
    .payment-method-header {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .calculate-price-badge {
        white-space: normal;
        text-align: center;
    }
}

@supports not (overflow: clip) {

    html,
    body {
        overflow-x: hidden;
    }
}


/* =========================
   SHIPPING MOBILE - OSR MATCH
========================= */
@media (max-width: 767px) {
    .shipping-option {
        align-items: center;
        padding: 16px;
        gap: 12px;
    }

    .shipping-left {
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .shipping-price {
        min-width: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 15px;
        line-height: 1;
        font-weight: 700;
        color: var(--text-dark);
    }

    .calculate-price-badge {
        padding: 0;
        min-height: auto;
        border: 0;
        background: transparent;
        color: var(--text-dark);
        font-size: 15px;
        line-height: 1;
        font-weight: 700;
        white-space: nowrap;
    }

    .shipping-option:hover .calculate-price-badge {
        background: transparent;
    }
}

@media (max-width: 767px) {
    .shipping-option[data-price] .calculate-price-badge {
        font-size: 0;
        /* text gizlənir */
        position: relative;
    }

    .shipping-option[data-price] .calculate-price-badge::after {
        content: "$" attr(data-price);
        font-size: 15px;
        font-weight: 700;
        color: var(--text-dark);
    }
}


/* =========================
   FIX: coordinate tooltip width
========================= */
.star-coordinates .coordinate-info-btn .info-tooltip {
    width: 256px !important;
    min-width: 256px !important;
    max-width: 256px !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;

    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
}

.star-coordinates .coordinate-info-btn:hover .info-tooltip {
    transform: translateX(-50%) translateY(0);
}

.star-coordinates .coordinate-info-btn .info-tooltip-arrow {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.form-input.is-disabled-by-anonymous {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.35);
    color: #5B21B6;
    cursor: pointer;
}


/* =========================
   ANONYMOUS INPUT STATE
========================= */
.form-input.is-disabled-by-anonymous {
    background: var(--anonymous-disabled-bg);
    border-color: var(--anonymous-disabled-border);
    color: var(--anonymous-disabled-text);
    cursor: pointer;
}

/* =========================
   MINI SKY UNDER IMAGE
========================= */
.summary-sky-preview {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.sky-box {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #070b2f, #111d5f, #020617);
    position: relative;
}

/* stars */
.sky-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
}

/*.sky-star.main {
    width: 6px;
    height: 6px;
    left: 50%;
    top: 40%;
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, .9);
}*/

.sky-star.s1 {
    left: 20%;
    top: 30%;
}

.sky-star.s2 {
    left: 70%;
    top: 60%;
}

.sky-star.s3 {
    left: 40%;
    top: 70%;
}


/* Summery username */
.summary-star-id {
    margin-top: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
}

.summary-star-id[hidden] {
    display: none !important;
}

.summary-star-id>span {
    font-size: 11px;
    line-height: 1.2;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-star-id-edit {
    border: 0;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.summary-star-id-edit svg {
    width: 14px;
    height: 14px;
}

.summary-star-id-edit:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

.summary-star-id-edit strong {
    letter-spacing: 0.02em;
}

/* username modal */
.star-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.star-preview-modal.active {
    display: flex;
}

.star-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.star-preview-dialog {
    position: relative;
    width: 100%;
    max-width: 512px;
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    color: var(--text-dark);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: starPreviewIn 0.2s ease;
}

.star-preview-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 60px;
    padding: 16px 64px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-preview-header h2 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.star-preview-close {
    position: absolute;
    right: 24px;
    top: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #2e3368;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-preview-close svg {
    width: 20px;
    height: 20px;
}

.star-preview-body {
    max-height: calc(90vh - 136px);
    overflow-y: auto;
    padding: 24px;
}

.star-preview-sky {
    margin: -24px -24px 24px;
    padding: 18px 24px;
    background: #1e2a5e;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.star-preview-sky img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.star-preview-sky p {
    font-size: 14px;
    margin-bottom: 4px;
}

.star-preview-sky span {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.star-preview-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.star-preview-details>div {
    display: flex;
    gap: 12px;
}

.star-preview-details span {
    width: 140px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.star-preview-details strong {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
}

.star-preview-message {
    display: block !important;
}

.star-preview-message span {
    display: block;
    width: auto;
    margin-bottom: 6px;
}

.star-preview-message p {
    font-size: 14px;
    line-height: 1.55;
    color: #111827;
}

.star-preview-footer {
    position: sticky;
    bottom: 0;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.star-preview-edit,
.star-preview-continue {
    flex: 1;
    height: 40px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.star-preview-edit {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.star-preview-edit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.star-preview-edit:hover {
    background: rgba(var(--secondary-rgb), 0.08);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px) scale(1.01);
}

.star-preview-edit:hover svg {
    color: var(--secondary);
}

.star-preview-edit:active {
    transform: translateY(0) scale(0.99);
}

.star-preview-continue {
    border: 0;
    background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: var(--cta-text);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.star-preview-continue:hover {
    background: linear-gradient(135deg, var(--cta-hover-start), var(--cta-hover-end));
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32);
}

.star-preview-continue:active {
    transform: translateY(0) scale(0.99);
}

@keyframes starPreviewIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 48rem) {
    .star-preview-modal {
        padding: 0;
        align-items: flex-end;
    }

    .star-preview-dialog {
        max-width: none;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .star-preview-footer {
        flex-direction: row;
    }

    .star-preview-details>div {
        gap: 10px;
    }

    .star-preview-details span {
        width: 138px;
    }
}

.star-preview-username {
    margin-bottom: 20px;
}

.star-preview-username label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.star-preview-username-field {
    display: flex;
}

.star-preview-username-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 0 14px;
    color: var(--text-dark);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.star-preview-username-field input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.14);
}

.star-preview-username-status {
    margin-top: 7px;
    min-height: 18px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.star-preview-username-status.is-error {
    color: #dc2626;
}

.star-preview-username-status.is-success {
    color: #16a34a;
}

.star-preview-username-status.is-neutral {
    color: var(--text-muted);
}

.star-preview-username-field input.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.star-preview-username-field input.is-success {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* =========================
   LOGIN MODAL - STARZADE
========================= */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-modal.active {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 36, 0.62);
    backdrop-filter: blur(8px);
}

.login-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 90dvh;
    overflow: hidden;
    background: #fff;
    color: var(--text-dark);
    border-radius: 22px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: var(--shadow-heavy);
    animation: loginModalIn 0.22s ease;
}

.login-modal-header {
    position: relative;
    padding: 26px 70px 22px 24px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.14), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, var(--card-bg) 100%);
}

.login-modal-kicker {
    display: none;
}

.login-modal-header h2 {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #2e3368;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.26);
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-modal-close:hover {
    background: linear-gradient(135deg, var(--cta-hover-start), var(--cta-hover-end));
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.32);
}

.login-modal-close:active {
    opacity: 0.9;
}

.login-modal-close svg {
    width: 20px;
    height: 20px;
}

.login-modal-form {
    padding: 24px;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--label-color);
}

.login-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    padding: 0 14px;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field input::placeholder {
    color: #9ca3af;
}

.login-field input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.20);
}

.login-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
}

.login-forgot-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: underline;
}

.login-forgot-btn:hover {
    color: var(--text-dark);
}

.login-submit-btn {
    min-width: 112px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: var(--cta-text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--cta-hover-start), var(--cta-hover-end));
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.34);
}

.login-submit-btn:active {
    transform: translateY(0);
}

@keyframes loginModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 48rem) {
    .login-modal {
        padding: 14px;
    }

    .login-modal-dialog {
        border-radius: 18px;
    }

    .login-modal-header {
        padding: 22px 62px 18px 20px;
    }

    .login-modal-header h2 {
        font-size: 20px;
    }

    .login-modal-form {
        padding: 20px;
    }

    .login-modal-actions {
        gap: 10px;
    }
}

/* =========================
   SUMMARY IMAGE SLIDER - PRO
========================= */
.summary-image-wrap {
    position: relative;
}

.summary-image {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.summary-image.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

.summary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.summary-nav svg {
    width: 20px;
    height: 20px;
}

.summary-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.summary-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.summary-slider-dot {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

.summary-slider-dot.active {
    width: 18px;
    background: var(--brand);
}


.summary-radios {
    margin-top: 14px;
    margin-bottom: 16px;
}

.summary-radios.d-none {
    display: none !important;
}

.summary-lines {
    margin-top: 16px;
}


.summary-badge-icon svg,
.summary-badge-icon svg * {
    color: var(--summary-badge-icon-color, #ffffff);
    stroke: currentColor;
}

/* =========================
   ICON - PRO
========================= */
.icon-svg {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #7c3aed;
}

.icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.icon-heart {
    color: #e11d48;
}

.icon-gift {
    color: #d97706;
}

.icon-crown {
    color: #b45309;
}

.icon-rings {
    color: #6366f1;
}

.icon-sparkles {
    color: #0891b2;
}


/* =========================
   Success Page
========================= */
.success-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.success-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 42px 34px;
    border-radius: 18px;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft), var(--shadow-main);
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-kicker {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.success-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-text {
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.success-star-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.success-star-card div {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.success-star-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.2;
}

.success-star-card strong {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.success-main-btn {
    text-decoration: none;
}

.success-secondary-btn {
    min-width: 190px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--input-border);
    background: #fff;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.success-secondary-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.success-redirect-text {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.success-redirect-text strong {
    color: var(--text-dark);
}

@media (max-width: 640px) {
    .success-page {
        align-items: flex-start;
    }

    .success-card {
        padding: 30px 18px;
        border-radius: 16px;
    }

    .success-title {
        font-size: 26px;
    }

    .success-star-card {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .save-btn,
    .success-secondary-btn {
        width: 100%;
    }
}

/* =========================
   SUCCESS PAGE
========================= */
.success-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.success-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 42px 34px;
    border-radius: 18px;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft), var(--shadow-main);
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-kicker {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.success-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-text {
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.success-star-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.success-star-card div {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.success-star-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.success-star-card strong {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.success-main-btn {
    text-decoration: none;
}

.success-secondary-btn {
    min-width: 190px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--input-border);
    background: #fff;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.success-redirect-text {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.success-redirect-text strong {
    color: var(--text-dark);
}

@media (max-width: 640px) {
    .success-page {
        align-items: flex-start;
        padding-top: 24px;
    }

    .success-card {
        padding: 30px 18px;
        border-radius: 16px;
    }

    .success-title {
        font-size: 26px;
    }

    .success-star-card {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .save-btn,
    .success-secondary-btn {
        width: 100%;
    }
}

.shipping-method-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-account form {
    display: inline-flex !important;
    align-items: center;
    margin: 0;
}

.header-account .header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Success Page */


/* =========================
   CHECKOUT LOGOUT BUTTON
========================= */
.checkout-logout-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.checkout-logout-btn {
    height: 40px;
    min-width: 128px;
    padding: 0 20px;

    border: 0;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: var(--cta-start) !important;
    background-image: linear-gradient(135deg, var(--cta-start), var(--cta-end)) !important;
    color: var(--cta-text) !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-image 0.2s ease,
        opacity 0.2s ease !important;
}

.checkout-logout-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    background-image: linear-gradient(
        135deg,
        var(--cta-hover-start),
        var(--cta-hover-end)
    ) !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35) !important;
}

.checkout-logout-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
}

.checkout-logout-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.20),
        0 8px 18px rgba(124, 58, 237, 0.25);
}

.checkout-logout-btn:disabled,
.checkout-logout-btn.is-loading {
    background-image: linear-gradient(
        135deg,
        var(--cta-disabled-start),
        var(--cta-disabled-end)
    );
    color: var(--secondary-disabled-text);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.checkout-logout-btn span {
    text-decoration: none !important;
}

.checkout-logout-icon {
    width: 16px;
    height: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.checkout-logout-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.checkout-logout-icon-loading {
    display: none;
}

.checkout-logout-btn.is-loading .checkout-logout-icon-default {
    display: none;
}

.checkout-logout-btn.is-loading .checkout-logout-icon-loading {
    display: inline-flex;
    animation: checkoutLogoutSpin 0.8s linear infinite;
}

@keyframes checkoutLogoutSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   CHECKOUT TOAST
========================= */
.checkout-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 99999;

    width: min(360px, calc(100% - 32px));
    min-height: 54px;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fff;
    color: var(--text-dark);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    box-shadow: var(--shadow-soft), var(--shadow-main);

    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.checkout-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}


.checkout-toast.is-error {
    border-color: rgba(197, 48, 48, 0.28);
    color: #8f1d1d;
}

.checkout-toast.is-error .checkout-toast-icon {
    background: #c53030;
}

.checkout-toast-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    flex-shrink: 0;
}
.star-three-preview {
    width: 92px;
    height: 92px;
    display: block;
    position: relative;
    margin: 0 auto 0px;
    overflow: visible;
}

.star-three-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent !important;
    pointer-events: none;
    mix-blend-mode: lighten;
}

.star-color {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    padding: 8px 10px;
    transition: .2s ease;
}

.star-color.active {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* STEP 1 STAR COLOR FIXES */
.star-color.active::after {
    display: none !important;
    content: none !important;
}

.star-color-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 2px;
    transition: .2s ease;
}

.star-color.active .star-color-title {
    padding: 5px 10px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}

/*.star-color.active .star-color-title::after {
    content: "✓";
    width: 17px;
    height: 17px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #1f2f6c;
    font-size: 11px;
    font-weight: 900;
    line-height: 17px;
    text-align: center;
    flex: 0 0 auto;
}*/

@media (max-width: 640px) {
    .star-colors {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .star-color {
        width: 100%;
        min-width: 0;
        padding: 6px 4px;
        border-radius: 14px;
        font-size: 10px;
        line-height: 1.15;
    }

    .star-three-preview {
        width: clamp(58px, 20vw, 76px);
        height: clamp(58px, 20vw, 76px);
        margin-bottom: 6px;
    }

    .star-color-title {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .star-color.active .star-color-title {
        padding: 4px 8px;
    }

    .star-color.active .star-color-title::after {
        width: 15px;
        height: 15px;
        margin-left: 4px;
        font-size: 10px;
        line-height: 15px;
    }

    .star-color-title {
        min-width: 64px;
        height: 28px;
    }

    .star-color.active .star-color-title {
        padding: 4px 7px;
    }
}

@media (max-width: 360px) {
    .star-three-preview {
        width: 54px;
        height: 54px;
    }

    .star-color {
        padding: 5px 3px;
        font-size: 9px;
    }
}

.star-color {
    transform: translateZ(0);
    will-change: transform;
}

.star-color-title {
    min-width: 74px;
    height: 30px;
    box-sizing: border-box;
}

.star-color.active .star-color-title {
    transform: translateY(0);
}

.star-three-preview {
    flex-shrink: 0;
}


/* SELECTED REAL STAR PREVIEW */
.star-name-preview .selected-star-preview {
    width: 34px;
    height: 34px;
    margin: 0;
    display: inline-block;
    flex: 0 0 34px;
    overflow: visible;
}

.star-name-preview .selected-star-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent !important;
    pointer-events: none;
    mix-blend-mode: lighten;
}

/* SUMMARY REAL STAR PREVIEW */
.sky-selected-star-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: 0;
    transform: translate(-50%, -50%);
    overflow: visible;
    z-index: 2;
}

.sky-selected-star-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent !important;
    pointer-events: none;
    mix-blend-mode: lighten;
}

/* =========================
   LOGIN PAGE
========================= */
.login-page-section {
    min-height: calc(100vh - 86px);
    padding: 64px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.login-page-visual {
    position: relative;
    min-height: 520px;
    padding: 48px;
    display: flex;
    align-items: flex-end;
    background:
        radial-gradient(circle at 50% 34%, rgba(139, 92, 246, 0.34), transparent 28%),
        radial-gradient(circle at 24% 20%, rgba(255, 122, 16, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(15, 19, 46, 0.96), rgba(0, 0, 36, 0.96));
}

.login-page-card {
    padding: 48px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
}

.login-page-header {
    margin-bottom: 28px;
}

.login-page-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.login-page-header h2,
.login-page-brand h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.login-page-header p,
.login-page-brand p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.login-page-header p {
    color: #6b7280;
}

.login-page-brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.78);
}

.login-page-form {
    display: grid;
    gap: 18px;
}

.login-page-form .login-field {
    margin-bottom: 0;
}

.login-page-submit {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-page-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(124, 58, 237, 0.36);
}

.login-page-error {
    display: block;
    margin-top: 7px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

.login-page-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-page-orbit span {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.75);
}

.login-page-orbit span:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 28%;
    left: 28%;
}

.login-page-orbit span:nth-child(2) {
    width: 5px;
    height: 5px;
    top: 18%;
    right: 22%;
}

.login-page-orbit span:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 52%;
    right: 34%;
}

@media (max-width: 820px) {
    .login-page-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .login-page-visual {
        min-height: 230px;
        padding: 34px 26px;
    }

    .login-page-card {
        padding: 32px 22px;
    }

    .login-page-header h2,
    .login-page-brand h1 {
        font-size: 28px;
    }
}
/* STATIC STAR PREVIEW (admin-selectable lightweight register mode) */
.star-static-preview {
    width: 92px;
    height: 92px;
    display: block;
    position: relative;
    margin: 0 auto;
    flex-shrink: 0;
}

.star-static-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.star-name-preview .star-static-preview.selected-star-preview {
    width: 34px;
    height: 34px;
    margin: 0;
    display: inline-block;
    flex: 0 0 34px;
}

.summary-sky-preview .star-static-preview.sky-selected-star-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (max-width: 640px) {
    .star-color .star-static-preview {
        width: clamp(58px, 20vw, 76px);
        height: clamp(58px, 20vw, 76px);
        margin-bottom: 6px;
    }
}

@media (max-width: 360px) {
    .star-color .star-static-preview {
        width: 54px;
        height: 54px;
    }
}

/* PROMO CODE */
.promo-code-section {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.promo-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.promo-code-row .form-input {
    text-transform: uppercase;
}

.promo-code-apply {
    min-width: 112px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.promo-code-apply:disabled {
    cursor: wait;
    opacity: 0.65;
}

.promo-code-status {
    min-height: 20px;
    margin-top: 9px;
    font-size: 13px;
    font-weight: 700;
}

.promo-code-status.is-success { color: #86efac; }
.promo-code-status.is-error { color: #fca5a5; }

@media (max-width: 560px) {
    .promo-code-row {
        grid-template-columns: 1fr;
    }

    .promo-code-apply {
        min-height: 44px;
    }
}

/* PACKAGE-AWARE STAR COLORS */
.star-color[hidden],
.star-color.is-package-hidden {
    display: none !important;
}

/* Lightweight PNG mode: the image itself is the selector. */
.register-preview-png .star-colors {
    gap: 14px;
    flex-wrap: wrap;
}

.register-preview-png .star-color {
    min-width: 72px;
    padding: 4px 6px;
    gap: 0;
}

.register-preview-png .star-color-title {
    display: none !important;
}

.register-preview-png .star-color .star-static-preview {
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 3px;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.register-preview-png .star-color:hover .star-static-preview {
    transform: translateY(-2px) scale(1.03);
}

.register-preview-png .star-color.active .star-static-preview {
    border-color: #ff8a1e;
    box-shadow: 0 0 0 3px rgba(255,138,30,.18), 0 10px 24px rgba(8,15,45,.35);
}

.register-preview-png .star-color .star-static-preview img {
    border: 0;
    box-shadow: none;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .register-preview-png .star-colors {
        display: flex;
        justify-content: flex-start;
        gap: 9px;
    }

    .register-preview-png .star-color {
        width: auto;
        min-width: 62px;
        padding: 2px;
    }

    .register-preview-png .star-color .star-static-preview {
        width: 58px;
        height: 58px;
        margin: 0;
    }
}

/* Stage 4 final: password recovery pages */
.password-page-section{min-height:calc(100vh - 76px)}
.password-page-shell{align-items:stretch}
.password-account-email{overflow-wrap:anywhere;color:#59617c!important}
.login-page-alert{margin:0 0 18px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.5}
.login-page-alert.is-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}
.login-page-alert.is-success{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}
@media(max-width:760px){.password-page-section{padding-top:28px;padding-bottom:38px}.password-page-shell{width:min(100% - 28px,560px)}}
