/**
 * 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;
    transition: opacity 0.3s ease;
}

.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;
    transition: all 0.3s ease;
    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;
    transition: color 0.3s ease;
}

.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 {
    position: relative;
    margin-top: 1.5rem;
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--webzi-gray-200);
    overflow: hidden;
}

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

/* Sidebar slide-in animation from right */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Two-column layout for desktop when sidebar exists */
@media (min-width: 1200px) {
    /* Sidebar is fixed - content flows normally without considering it */
    /* No special margin adjustments - content centers naturally */

    /* 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);
        animation: slideInFromRight 0.8s ease-out;
        animation-delay: 0.3s;
        animation-fill-mode: backwards;
    }

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

.form-hint--success {
    color: #00a854;
}

.form-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--webzi-primary);
    text-decoration: none;
    margin-top: 0.5rem;
}

.form-link:hover {
    text-decoration: underline;
}

.form-link + .form-link {
    margin-top: 0.375rem;
}

/* Select inputs */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237b1fa2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.form-select option {
    padding: 0.5rem;
}

.form-select optgroup {
    font-weight: 600;
    color: var(--webzi-gray-600);
}

/* Welcome Back Block */
.welcome-back-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.welcome-back-block__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.welcome-back-block__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.welcome-back-block__content strong {
    font-size: 1rem;
    color: var(--webzi-dark);
}

.welcome-back-block__content .text-muted {
    font-size: 0.875rem;
}

/* ============================================
   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);
    color: var(--webzi-white);
}

.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-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--webzi-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--webzi-gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-summary__title-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.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;
    overflow: hidden;
}

.checkout-summary__item-name {
    font-weight: 500;
    color: var(--webzi-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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 .checkout-summary__item-name {
    font-size: 0.875rem;
}

.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: 2.5rem 0 2rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--webzi-gray-100);
}

.checkout-footer-inline__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
}

.trust-indicator svg {
    color: var(--webzi-success);
    flex-shrink: 0;
}

.checkout-footer-inline__payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.checkout-footer-inline__label {
    font-size: 0.75rem;
    color: var(--webzi-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-icon {
    height: 18px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(30%);
    transition: all 0.2s;
}

.payment-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

.checkout-footer-inline__links a {
    color: var(--webzi-gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.checkout-footer-inline__help {
    margin-bottom: 1.5rem;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--webzi-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.help-link:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--webzi-primary);
}

.help-link svg {
    flex-shrink: 0;
}

.help-link__arrow {
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.help-link:hover .help-link__arrow {
    transform: translateX(2px);
}

/* ============================================
   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. POWER PACK
============================================ */
.powerpack-section {
    border-top: 1px solid var(--webzi-gray-200);
    padding-top: 1.5rem;
}

.powerpack-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.powerpack-header__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.powerpack-header__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--webzi-dark);
    margin: 0;
    font-family: var(--font-sans);
}

.powerpack-header__subtitle {
    font-size: 0.8125rem;
    color: var(--webzi-gray-500);
    margin: 0.125rem 0 0;
}

.powerpack-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.powerpack-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--webzi-white);
    border: 2px solid var(--webzi-gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.powerpack-option:hover {
    border-color: var(--webzi-gray-300);
}

.powerpack-option.is-selected {
    border-color: var(--webzi-primary);
    background: rgba(123, 31, 162, 0.03);
}

.powerpack-option input[type="radio"] {
    display: none;
}

.powerpack-option__check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--webzi-gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
}

.powerpack-option.is-selected .powerpack-option__check {
    border-color: var(--webzi-primary);
    background: var(--webzi-primary);
}

.powerpack-option.is-selected .powerpack-option__check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--webzi-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.powerpack-option__specs {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.powerpack-option__cpu,
.powerpack-option__ram,
.powerpack-option__procs {
    font-size: 0.8125rem;
    color: var(--webzi-gray-600);
    background: var(--webzi-gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.powerpack-option__cpu {
    font-weight: 600;
    color: var(--webzi-dark);
}

.powerpack-option__price {
    text-align: right;
    flex-shrink: 0;
}

.powerpack-option__included {
    font-size: 0.8125rem;
    color: var(--webzi-green);
    font-weight: 600;
}

.powerpack-option__amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--webzi-primary);
}

.powerpack-toggle {
    background: none;
    border: none;
    color: var(--webzi-gray-500);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 100%;
    text-align: center;
    transition: var(--transition-fast);
}

.powerpack-toggle:hover {
    color: var(--webzi-primary);
}

/* Sidebar addon item */
.checkout-summary__item--addon {
    background: rgba(123, 31, 162, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-summary__item--addon .checkout-summary__item-name {
    font-size: 0.8125rem;
}

.checkout-summary__item--addon .checkout-summary__item-detail {
    font-size: 0.75rem;
}

.checkout-summary__item--addon .checkout-summary__item-price {
    color: var(--webzi-primary);
    font-size: 0.875rem;
}

/* ============================================
   15. 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;
}

/* Power Pack Upsell Modal */
.upsell-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.upsell-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.upsell-modal__container {
    position: relative;
    background: var(--webzi-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
}

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

.upsell-modal__content {
    padding: 1.5rem;
}

/* Power Pack Modal Content */
.powerpack-modal__header {
    text-align: center;
    margin-bottom: 1rem;
}

.powerpack-modal__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.powerpack-modal__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--webzi-dark);
    margin: 0 0 0.25rem;
}

.powerpack-modal__plan {
    font-size: 0.875rem;
    color: var(--webzi-gray-500);
    margin: 0;
}

.powerpack-modal__subtitle {
    text-align: center;
    color: var(--webzi-gray-600);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.powerpack-modal__benefit {
    display: block;
    color: var(--webzi-primary);
    font-weight: 500;
}

/* More options container in modal */
.powerpack-options--more {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* "No thanks" option styling */
.powerpack-option__nothanks {
    font-size: 0.9375rem;
    color: var(--webzi-gray-700);
}

/* ============================================
   16. 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;
    min-width: 100px;
}

/* Slight upward movement on hover while maintaining vertical centering */
.domain-search__btn:hover:not(:disabled) {
    transform: translateY(calc(-50% - 2px)) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* TLD Marquee - Subtle inspiration */
.tld-marquee {
    margin-top: 0.75rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 28px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tld-marquee__track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 45s linear infinite;
    will-change: transform;
}

.tld-marquee__item {
    display: inline-block;
    padding: 0 0.75rem;
    font-family: 'Caveat', cursive;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--webzi-gray-400);
    animation: blink 3s ease-in-out infinite;
    animation-delay: calc(var(--item-index) * 0.1s);
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.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--unavailable {
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.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__status--unavailable {
    color: var(--webzi-gray-500);
}

.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-result__pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.domain-result__period {
    width: 100%;
}

.domain-result__price-amount {
    font-weight: 600;
    color: var(--webzi-dark);
}

.domain-result__price-free {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--webzi-primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

.domain-period-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--webzi-gray-300);
    border-radius: var(--radius-sm);
    background-color: var(--webzi-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1.125rem;
    cursor: pointer;
}

.domain-period-select:focus {
    outline: none;
    border-color: var(--webzi-primary);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237b1fa2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 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__pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.domain-alternative__price strong {
    color: var(--webzi-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.domain-alt-period {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    font-size: 0.8125rem;
    border: 1px solid var(--webzi-gray-300);
    border-radius: var(--radius-sm);
    background-color: var(--webzi-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.375rem center;
    background-size: 1rem;
    cursor: pointer;
}

.domain-alt-period:focus {
    outline: none;
    border-color: var(--webzi-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237b1fa2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.form-select--small {
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    font-size: 0.8125rem;
    background-position: right 0.375rem center;
    background-size: 1rem;
}

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

.btn.is-loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.is-loading .btn__text {
    opacity: 0;
}

.btn.is-loading .spinner {
    position: absolute;
}

/* ============================================
   17. ANIMATIONS & TRANSITIONS
============================================ */

/* Page transition - fade in on load */
.checkout-main {
    animation: pageIn 0.3s ease-out;
}

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

/* Cart item entrance animation */
.checkout-summary__item {
    transition: all 0.2s ease;
}

.checkout-summary__item.is-new {
    animation: itemSlideIn 0.35s ease-out;
}

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Highlight pulse when item added */
.checkout-summary__item.is-highlight {
    animation: itemHighlight 0.6s ease-out;
}

@keyframes itemHighlight {
    0% {
        background-color: transparent;
    }
    30% {
        background-color: rgba(0, 230, 118, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

/* Cart total update animation */
.checkout-summary__total-amount.is-updating {
    animation: totalPulse 0.4s ease-out;
}

@keyframes totalPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: var(--webzi-green);
    }
    100% {
        transform: scale(1);
        color: var(--webzi-primary);
    }
}

/* Shimmer skeleton loading effect */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: var(--webzi-gray-100);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton variants */
.skeleton--text {
    height: 1rem;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton--text-sm {
    height: 0.75rem;
    width: 60%;
}

.skeleton--price {
    height: 1.25rem;
    width: 5rem;
}

.skeleton--item {
    height: 3.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Button success flash */
.btn.is-success-flash {
    animation: successFlash 0.5s ease-out;
}

@keyframes successFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: none;
    }
}

/* Sidebar update indicator */
.checkout-sidebar.is-updating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--webzi-gradient-primary);
    animation: sidebarLoading 0.8s ease-in-out;
}

@keyframes sidebarLoading {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    50.01% {
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Smooth hover states */
.checkout-summary__item:hover {
    background-color: var(--webzi-gray-50);
}

.checkout-summary__item-remove {
    transition: all 0.15s ease;
}

.checkout-summary__item-remove:hover {
    transform: scale(1.1);
    color: var(--webzi-red);
}

/* ============================================
   18. 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;
    }
}
