/**
 * Webzi Checkout - Main Styles
 *
 * Based on Webzi design system with maximum focus approach
 */

/* ============================================
   1. CSS VARIABLES (Design Tokens)
============================================ */
:root {
    /* Webzi Colors */
    --webzi-primary: #7b1fa2;
    --webzi-primary-light: #9c4dcc;
    --webzi-primary-dark: #4a0072;
    --webzi-secondary: #6c63ff;
    --webzi-accent: #00d4ff;
    --webzi-green: #00e676;
    --webzi-red: #ff5252;
    --webzi-yellow: #ffd700;

    /* Neutrals */
    --webzi-dark: #0f172a;
    --webzi-gray-900: #1e293b;
    --webzi-gray-800: #334155;
    --webzi-gray-700: #374151;
    --webzi-gray-600: #475569;
    --webzi-gray-500: #64748b;
    --webzi-gray-400: #94a3b8;
    --webzi-gray-300: #cbd5e1;
    --webzi-gray-200: #e2e8f0;
    --webzi-gray-100: #f1f5f9;
    --webzi-gray-50: #f8fafc;
    --webzi-white: #ffffff;

    /* Gradients */
    --webzi-gradient-primary: linear-gradient(135deg, var(--webzi-primary) 0%, var(--webzi-secondary) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 40px rgba(123, 31, 162, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

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

    /* Spacing */
    --container-max: 500px;
    --header-height: 72px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Source Serif Pro', Georgia, serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--webzi-dark);
    background: var(--webzi-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   3. TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--webzi-dark);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

/* ============================================
   4. HEADER
============================================ */
.checkout-header {
    background: var(--webzi-white);
    border-bottom: 1px solid var(--webzi-gray-200);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-header__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-header__logo img {
    height: 28px;
    width: auto;
}

.checkout-header__divider {
    color: var(--webzi-gray-300);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
}

.checkout-header__title {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--webzi-gray-700);
    line-height: 1;
}

.checkout-header__back {
    font-size: 0.8125rem;
    color: var(--webzi-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-left: 0.5rem;
}

.checkout-header__back:hover {
    color: var(--webzi-primary);
}

/* Hide back link on mobile, show on tablet+ */
@media (max-width: 600px) {
    .checkout-header__back {
        display: none;
    }
}

/* ============================================
   5. STEPS INDICATOR
============================================ */
.checkout-steps__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.checkout-steps__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-steps__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--webzi-gray-200);
    color: var(--webzi-gray-500);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.checkout-steps__item.is-active .checkout-steps__number {
    background: var(--webzi-gradient-primary);
    color: var(--webzi-white);
}

.checkout-steps__item.is-complete .checkout-steps__number {
    background: var(--webzi-green);
    color: var(--webzi-white);
}

.checkout-steps__label {
    font-size: 0.875rem;
    color: var(--webzi-gray-500);
    display: none;
}

.checkout-steps__item.is-active .checkout-steps__label {
    color: var(--webzi-dark);
    font-weight: 500;
}

/* Show labels on desktop */
@media (min-width: 768px) {
    .checkout-steps__list {
        gap: 1rem;
    }

    .checkout-steps__label {
        display: block;
    }
}

/* ============================================
   6. MAIN CONTENT
============================================ */
.checkout-main {
    flex: 1;
    padding: 2rem 1rem;
}

.checkout-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Sidebar - mobile: appears below content */
.checkout-sidebar {
    margin-top: 1.5rem;
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--webzi-gray-200);
}

.checkout-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.checkout-sidebar .checkout-summary {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.checkout-sidebar__footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--webzi-gray-200);
    background: var(--webzi-white);
}

.checkout-sidebar__continue {
    margin-top: 1rem;
}

/* Two-column layout for desktop when sidebar exists */
@media (min-width: 900px) {
    /* Container expands and adjusts for fixed sidebar */
    .checkout-container:has(.checkout-sidebar) {
        max-width: 680px;
        margin-left: auto;
        margin-right: calc(360px + 3rem);
    }

    /* Fixed full-height sidebar */
    .checkout-sidebar {
        position: fixed;
        right: 0;
        top: var(--header-height);
        width: 360px;
        height: calc(100vh - var(--header-height));
        margin: 0;
        border-radius: 0;
        border: none;
        border-left: 1px solid var(--webzi-gray-200);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
    }

    .checkout-sidebar__inner {
        height: 100%;
    }

    .checkout-sidebar .checkout-summary {
        padding: 2rem;
        border-radius: 0;
        box-shadow: none;
    }

    .checkout-sidebar__footer {
        padding: 1.5rem 2rem 2rem;
    }
}

/* ============================================
   7. CARDS & PANELS
============================================ */
.checkout-card {
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--webzi-gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-card--elevated {
    box-shadow: var(--shadow-md);
    border: none;
}

.checkout-card__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   8. FORM ELEMENTS
============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--webzi-gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--webzi-dark);
    background: var(--webzi-white);
    border: 2px solid var(--webzi-gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--webzi-primary);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

.form-input::placeholder {
    color: var(--webzi-gray-400);
}

.form-input--error {
    border-color: var(--webzi-red);
}

.form-error {
    font-size: 0.875rem;
    color: var(--webzi-red);
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   9. BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 52px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--webzi-gradient-primary);
    color: var(--webzi-white);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(123, 31, 162, 0.35);
}

.btn--secondary {
    background: var(--webzi-gray-100);
    color: var(--webzi-dark);
    border: 1px solid var(--webzi-gray-200);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--webzi-gray-200);
}

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

.btn--outline:hover:not(:disabled) {
    background: rgba(123, 31, 162, 0.05);
}

.btn--block {
    width: 100%;
}

.btn--lg {
    height: 56px;
    font-size: 1.0625rem;
}

/* ============================================
   10. SELECTION CARDS (Billing cycles, etc)
============================================ */
.selection-grid {
    display: grid;
    gap: 0.75rem;
}

.selection-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--webzi-white);
    border: 2px solid var(--webzi-gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.selection-card:hover {
    border-color: var(--webzi-primary-light);
}

.selection-card.is-selected {
    border-color: var(--webzi-primary);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.03) 0%, rgba(108, 99, 255, 0.03) 100%);
}

.selection-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selection-card__check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--webzi-gray-300);
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.selection-card.is-selected .selection-card__check {
    border-color: var(--webzi-primary);
    background: var(--webzi-primary);
}

.selection-card.is-selected .selection-card__check::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--webzi-white);
    border-radius: 50%;
}

.selection-card__content {
    flex: 1;
}

.selection-card__title {
    font-weight: 600;
    color: var(--webzi-dark);
    margin-bottom: 0.125rem;
}

.selection-card__subtitle {
    font-size: 0.875rem;
    color: var(--webzi-gray-500);
}

.selection-card__price {
    text-align: right;
}

.selection-card__amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--webzi-dark);
}

.selection-card__original {
    font-size: 0.875rem;
    color: var(--webzi-gray-400);
    text-decoration: line-through;
}

.selection-card__badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--webzi-green);
    color: var(--webzi-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* ============================================
   11. PRODUCT SUMMARY (Sidebar)
============================================ */
.checkout-summary {
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.checkout-summary__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--webzi-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--webzi-gray-100);
}

.checkout-summary__items {
    margin-bottom: 1rem;
}

.checkout-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--webzi-gray-100);
    gap: 0.75rem;
}

.checkout-summary__item:last-child {
    border-bottom: none;
}

.checkout-summary__item-info {
    flex: 1;
    min-width: 0;
}

.checkout-summary__item-name {
    font-weight: 500;
    color: var(--webzi-dark);
    word-break: break-word;
}

.checkout-summary__item-detail {
    font-size: 0.875rem;
    color: var(--webzi-gray-500);
}

.checkout-summary__item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.checkout-summary__item-price {
    font-weight: 600;
    color: var(--webzi-dark);
    text-align: right;
    white-space: nowrap;
}

.checkout-summary__item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: var(--webzi-gray-100);
    color: var(--webzi-gray-500);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkout-summary__item-remove:hover {
    background: var(--webzi-red);
    color: var(--webzi-white);
}

.checkout-summary__item--domain {
    background: transparent;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--webzi-gray-100);
    margin-bottom: 0;
}

.checkout-summary__item--domain:last-child {
    border-bottom: none;
}

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* When total is in sidebar footer, no extra padding needed */
.checkout-sidebar__footer .checkout-summary__total {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.checkout-summary__total-label {
    font-weight: 600;
    color: var(--webzi-dark);
}

.checkout-summary__total-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--webzi-primary);
}

.checkout-summary__note {
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

.checkout-sidebar__footer .checkout-summary__note {
    text-align: right;
    margin-top: 0.25rem;
}

.checkout-summary__item-price--free {
    color: var(--webzi-green);
    font-weight: 500;
}

/* Wrapper for continue button to capture clicks on disabled state */
.continue-btn-wrapper {
    position: relative;
    cursor: pointer;
}

/* Disabled button lets clicks pass through to wrapper */
.continue-btn-wrapper .btn[disabled] {
    pointer-events: none;
}

/* ============================================
   12. FOOTER (inline with content)
============================================ */
.checkout-footer-inline {
    padding: 2rem 0;
    text-align: center;
    margin-top: 1rem;
}

.checkout-footer-inline p {
    font-size: 0.8125rem;
    color: var(--webzi-gray-400);
    margin-bottom: 0.25rem;
}

.checkout-footer-inline a {
    color: var(--webzi-gray-500);
    text-decoration: none;
}

.checkout-footer-inline a:hover {
    color: var(--webzi-primary);
}

.checkout-footer-inline__copyright {
    font-size: 0.75rem;
    color: var(--webzi-gray-300);
    margin-bottom: 0 !important;
}

/* ============================================
   13. UTILITIES
============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--webzi-gray-500); }
.text-success { color: var(--webzi-green); }
.text-error { color: var(--webzi-red); }
.text-small { font-size: 0.875rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ============================================
   14. MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 2rem;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
}

.modal-overlay.is-active .modal {
    transform: scale(1) translateY(0);
}

.modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.modal__icon--warning {
    background: rgba(255, 215, 0, 0.15);
    color: #d4a800;
}

.modal__icon--info {
    background: rgba(123, 31, 162, 0.1);
    color: var(--webzi-primary);
}

.modal__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--webzi-dark);
}

.modal__text {
    text-align: center;
    color: var(--webzi-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal__actions {
    display: flex;
    gap: 0.75rem;
}

.modal__actions .btn {
    flex: 1;
    min-height: 52px;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

/* ============================================
   15. LOADING STATES
============================================ */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--webzi-gray-200);
    border-top-color: var(--webzi-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   15. ALERTS
============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.alert--success {
    background: rgba(0, 230, 118, 0.1);
    color: #00a854;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.alert--error {
    background: rgba(255, 82, 82, 0.1);
    color: var(--webzi-red);
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.alert--info {
    background: rgba(0, 212, 255, 0.1);
    color: #0095b3;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ============================================
   16. DOMAIN SEARCH
============================================ */
.domain-search {
    margin-bottom: 0 !important;
}

.domain-search .form-group,
.domain-search .form-group:last-child {
    margin-bottom: 0 !important;
}

.domain-search__wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.domain-search__input {
    flex: 1;
    padding-right: 120px;
}

.domain-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 1rem;
    white-space: nowrap;
}

.domain-result {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.domain-result--available {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.domain-result--taken {
    background: rgba(255, 82, 82, 0.05);
    border: 1px solid rgba(255, 82, 82, 0.15);
}

.domain-result__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.domain-result__status--available {
    color: #00a854;
}

.domain-result__status--taken {
    color: var(--webzi-red);
}

.domain-result__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--webzi-dark);
}

.domain-result__price {
    color: var(--webzi-gray-600);
    font-size: 0.9375rem;
}

/* Domain Alternatives */
.domain-alternatives {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-alternative {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--webzi-white);
    border: 1px solid var(--webzi-gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
}

.domain-alternative:hover {
    border-color: var(--webzi-primary);
}

.domain-alternative__info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.domain-alternative__name {
    font-weight: 600;
    color: var(--webzi-dark);
    font-size: 0.9375rem;
}

.domain-alternative__price {
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
}

.domain-alternative__form {
    margin: 0;
}

.domain-skip-option {
    padding-top: 1rem;
    border-top: 1px solid var(--webzi-gray-100);
}

.btn--small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    height: auto;
    min-height: 32px;
}

.btn--text {
    background: none;
    border: none;
    color: var(--webzi-gray-500);
    padding: 0.25rem 0.5rem;
    min-height: auto;
    height: auto;
}

.btn--text:hover {
    color: var(--webzi-red);
    background: rgba(255, 82, 82, 0.1);
}

.btn--success {
    background: var(--webzi-green);
    color: var(--webzi-dark);
    cursor: default;
}

.btn--success:hover {
    background: var(--webzi-green);
    transform: none;
}

.btn--disabled {
    background: var(--webzi-gray-200);
    color: var(--webzi-gray-500);
    cursor: default;
}

.btn--disabled:hover {
    background: var(--webzi-gray-200);
    transform: none;
}

/* Domains List */
.domains-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domains-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--webzi-gray-50);
    border: 1px solid var(--webzi-gray-200);
    border-radius: var(--radius-sm);
}

.domains-list__info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.domains-list__name {
    font-weight: 600;
    color: var(--webzi-dark);
}

.domains-list__price {
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
}

.domains-list__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--webzi-gray-200);
    color: var(--webzi-gray-600);
    border-radius: var(--radius-full);
}

.domains-list__remove {
    margin: 0;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
    border-color: rgba(123, 31, 162, 0.2);
    border-top-color: var(--webzi-primary);
}

.spinner--dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--webzi-primary);
}

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

/* Domain Loading */
.domain-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* Domain results container - no space when empty */
#domain-results {
    margin: 0;
    padding: 0;
}

#domain-results:empty,
#domain-results:not(:has(*)) {
    display: none !important;
    height: 0;
    overflow: hidden;
}


.domain-alternatives-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--webzi-gray-500);
    font-size: 0.875rem;
}

.domain-alternatives-loading .spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--webzi-primary);
}

/* Button loading state */
.btn .spinner {
    margin-right: 0.5rem;
}

/* ============================================
   17. RESPONSIVE
============================================ */
@media (max-width: 640px) {
    .checkout-header__container {
        padding: 0 1rem;
    }

    .checkout-main {
        padding: 1.5rem 1rem;
    }

    .checkout-card {
        padding: 1.25rem;
    }

    .btn--lg {
        height: 52px;
    }
}
