/* =============================================
   GoodMood — Create Platform Wizard
   Uses design system tokens from gm-tokens.css
   ============================================= */

/* --- Wizard Progress Steps --- */
.gm-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.gm-wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
    opacity: 0.4;
    transition: all 0.3s;
}

.gm-wizard-step.active,
.gm-wizard-step.completed {
    opacity: 1;
}

.gm-wizard-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.gm-wizard-step.active .gm-wizard-step-number {
    background: var(--gm-color-primary, #ffa44e);
    color: white;
}

.gm-wizard-step.completed .gm-wizard-step-number {
    background: #10b981;
    color: white;
}

.gm-wizard-step span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gm-color-text, #696969);
}

.gm-wizard-step.active span {
    color: var(--gm-color-dark, #0e0e0e);
    font-weight: 600;
}

.gm-wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.75rem;
    max-width: 60px;
    transition: background 0.3s;
}

.gm-wizard-step-line.completed {
    background: #10b981;
}

/* --- Wizard Card --- */
.gm-wizard-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
}

.gm-wizard-card h3 {
    font-family: var(--gm-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gm-color-dark, #0e0e0e);
    margin: 0 0 0.25rem 0;
}

.gm-wizard-desc {
    color: var(--gm-color-text, #696969);
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.gm-optional-badge {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    vertical-align: middle;
}

/* --- Form Elements --- */
.gm-form-group {
    margin-bottom: 1.5rem;
}

.gm-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gm-color-dark, #0e0e0e);
    margin-bottom: 0.5rem;
}

.gm-required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 0.125rem;
}

.gm-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.8125rem;
    font-style: italic;
}

.gm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: var(--gm-font-body, 'Inter', sans-serif);
    color: var(--gm-color-dark, #0e0e0e);
    transition: all 0.2s;
    outline: none;
}

.gm-input:focus {
    border-color: var(--gm-color-primary, #ffa44e);
    box-shadow: 0 0 0 3px rgba(255, 164, 78, 0.15);
}

.gm-input-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.gm-subdomain-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-family: monospace;
    font-size: 0.75rem;
}

.gm-subdomain-icon {
    font-size: 0.875rem;
}

/* --- Tiers Grid --- */
.gm-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gm-tier-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.gm-tier-card:hover {
    border-color: #FFD9B0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gm-tier-card.selected {
    border-color: #FFA44E;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
}

.gm-tier-card.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #FFA44E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.gm-tier-users {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-color-dark, #0e0e0e);
    margin-bottom: 0.125rem;
}

.gm-tier-concurrent {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.gm-tier-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFA44E;
}

.gm-tier-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
}

.gm-tier-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #FFA44E;
    margin-bottom: 0.25rem;
}

.gm-no-tiers {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 1rem;
    grid-column: 1 / -1;
}

/* --- Tier Types Info --- */
.gm-tier-types-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0;
}

.gm-tier-type-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 1rem;
    background: #f9fafb;
    transition: all 0.25s;
}

.gm-tier-type-card.highlighted {
    border-color: #FFA44E;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
}

.gm-tier-type-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #FFA44E;
}

.gm-tier-type-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gm-color-dark, #0e0e0e);
    margin: 0 0 0.25rem 0;
}

.gm-tier-type-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.gm-tier-type-example {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 576px) {
    .gm-tier-types-info {
        grid-template-columns: 1fr;
    }
}

/* --- Packs Grid --- */
.gm-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gm-pack-card-wizard {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.gm-pack-card-wizard.included {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    cursor: default;
}

.gm-pack-card-wizard:not(.included):hover {
    border-color: var(--pack-color, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gm-pack-card-wizard.selected {
    border-color: var(--pack-color, #8b5cf6);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.gm-pack-card-wizard.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--pack-color, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.gm-pack-icon-wizard {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--pack-color, #8b5cf6) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.gm-pack-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gm-color-dark, #0e0e0e);
    margin-bottom: 0.25rem;
}

.gm-pack-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.gm-pack-price-wizard {
    font-size: 0.875rem;
    font-weight: 600;
}

.gm-pack-price-wizard.included-label {
    color: #2563eb;
}

.gm-pack-price-wizard.paid {
    color: var(--pack-color, #8b5cf6);
}

/* --- Billing Toggle --- */
.gm-billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gm-billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: transparent;
    border-radius: 0.5rem;
    padding: 3px;
}

.gm-billing-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    font-family: var(--gm-font-body, 'Inter', sans-serif);
    transition: all 0.2s;
}

.gm-billing-btn.active {
    background: white;
    color: var(--gm-color-dark, #0e0e0e);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gm-save-badge {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}

/* --- Summary Card --- */
.gm-summary-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gm-summary-header {
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gm-summary-body {
    padding: 1rem 1.25rem;
}

.gm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.gm-summary-row:last-child {
    border-bottom: none;
}

.gm-summary-row-label {
    color: #374151;
}

.gm-summary-row-value {
    font-weight: 600;
    color: var(--gm-color-dark, #0e0e0e);
}

.gm-summary-total {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #FFA44E 0%, #e8933d 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}

.gm-summary-total-price {
    font-size: 1.25rem;
    font-weight: 700;
}

/* --- Info Banner --- */
.gm-info-banner {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.gm-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gm-info-text strong {
    display: block;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 0.125rem;
}

.gm-info-text p {
    font-size: 0.8125rem;
    color: #2563eb;
    line-height: 1.5;
    margin: 0;
}

/* --- Trial Banner --- */
.gm-trial-banner {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.gm-trial-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gm-trial-content strong {
    display: block;
    font-size: 0.9375rem;
    color: #065f46;
    margin-bottom: 0.25rem;
}

.gm-trial-content p {
    font-size: 0.8125rem;
    color: #047857;
    line-height: 1.5;
    margin: 0;
}

/* --- Wizard Actions --- */
.gm-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

/* --- Buttons --- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--gm-radius-pill, 999px);
    border: none;
    cursor: pointer;
    font-family: var(--gm-font-body, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.gm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gm-btn-primary {
    background: var(--gm-color-primary, #ffa44e);
    color: white;
}

.gm-btn-primary:hover:not(:disabled) {
    background: var(--gm-color-primary-dark, #e8933d);
    transform: translateY(-1px);
}

.gm-btn-accent {
    background: linear-gradient(135deg, #FFA44E 0%, #e8933d 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
}

.gm-btn-accent:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 164, 78, 0.3);
}

.gm-btn-ghost {
    background: transparent;
    color: var(--gm-color-text, #696969);
    border: 1px solid #e5e7eb;
}

.gm-btn-ghost:hover {
    background: #f9fafb;
    color: var(--gm-color-dark, #0e0e0e);
}

.gm-btn-arrow {
    font-size: 1rem;
}

.gm-btn-icon {
    font-size: 1.125rem;
}

/* --- Loading States --- */
.gm-checkout-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.gm-checkout-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gm-spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes gm-spin {
    to { transform: rotate(360deg); }
}

/* --- v2: Mode Selection Cards (SaaS E-Commerce) --- */
.gm-mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gm-mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.gm-mode-card:hover {
    border-color: #FFD9B0;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 164, 78, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
}

.gm-mode-card.selected {
    border-color: var(--gm-color-primary, #ffa44e);
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    box-shadow: 0 4px 16px rgba(255, 164, 78, 0.2);
}

.gm-mode-card.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: var(--gm-color-primary, #ffa44e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 164, 78, 0.4);
}

/* Recommended badge */
.gm-mode-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFA44E, #e8933d);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 164, 78, 0.35);
    animation: gm-badge-glow 3s ease-in-out infinite;
}

@keyframes gm-badge-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 164, 78, 0.35); }
    50% { box-shadow: 0 2px 16px rgba(255, 164, 78, 0.55); }
}

/* Mode icon */
.gm-mode-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gm-color-primary, #ffa44e);
    margin-bottom: 0.875rem;
    transition: all 0.3s;
}

.gm-mode-card:hover .gm-mode-icon,
.gm-mode-card.selected .gm-mode-icon {
    background: linear-gradient(135deg, #FFD9B0 0%, #FFA44E 100%);
    color: white;
    transform: scale(1.05);
}

/* Mode title & description */
.gm-mode-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gm-color-dark, #0e0e0e);
    margin-bottom: 0.375rem;
}

.gm-mode-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Feature list */
.gm-mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.875rem;
}

.gm-mode-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #374151;
    padding: 0.3rem 0;
    line-height: 1.4;
}

.gm-mode-features li i {
    font-size: 0.75rem;
    color: var(--gm-color-primary, #ffa44e);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.gm-mode-card.selected .gm-mode-features li i {
    color: #e8933d;
}

/* Reassurance banner */
.gm-mode-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.gm-mode-reassurance i {
    color: #94a3b8;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.gm-mode-reassurance strong {
    color: #475569;
}

@media (max-width: 768px) {
    .gm-mode-cards { grid-template-columns: 1fr; }
    .gm-mode-badge {
        top: -9px;
        font-size: 0.625rem;
    }
}

/* --- v2: Personal Info Form Grid --- */
.gm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .gm-form-row { grid-template-columns: 1fr; }
}

.gm-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: var(--gm-font-body, 'Inter', sans-serif);
    color: var(--gm-color-dark, #0e0e0e);
    transition: all 0.2s;
    outline: none;
    resize: vertical;
    min-height: 80px;
}

.gm-textarea:focus {
    border-color: var(--gm-color-primary, #ffa44e);
    box-shadow: 0 0 0 3px rgba(255, 164, 78, 0.15);
}

/* --- v2: Callback Slot Radio --- */
.gm-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gm-radio-option {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.gm-radio-option input[type="radio"] { display: none; }

.gm-radio-option .gm-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    text-align: center;
}

.gm-radio-option .gm-radio-label:hover {
    border-color: #ffd9b0;
    background: #fffbf5;
}

.gm-radio-option:has(input[type="radio"]:checked) .gm-radio-label {
    border-color: var(--gm-color-primary, #ffa44e);
    background: #fff8f0;
    color: var(--gm-color-dark, #0e0e0e);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(255, 164, 78, 0.12);
}

/* --- v2: CGV Checkbox --- */
.gm-cgv-group {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.gm-cgv-group input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    accent-color: var(--gm-color-primary, #ffa44e);
    flex-shrink: 0;
}

.gm-cgv-group label {
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.gm-cgv-group label a {
    color: var(--gm-color-primary, #ffa44e);
    text-decoration: underline;
}

/* --- v2: Submit Button Loading --- */
#gm-submit-order.loading {
    pointer-events: none;
    opacity: 0.7;
}

#gm-submit-order.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gm-spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gm-wizard-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .gm-wizard-step span {
        display: none;
    }

    .gm-wizard-step-line {
        max-width: 30px;
    }

    .gm-wizard-card {
        padding: 1.25rem;
    }

    .gm-tiers-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .gm-packs-grid {
        grid-template-columns: 1fr;
    }

    .gm-wizard-actions {
        flex-direction: column-reverse;
    }

    .gm-wizard-actions .gm-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .gm-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Custom Modal (replaces native alert()) ──────────── */
.gm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 15, 25, 0.55);
}

.gm-modal {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* Variants */
.gm-modal-icon.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

.gm-modal-icon.warning {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe0b2 100%);
    color: #f59e0b;
}

.gm-modal-icon.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #ef4444;
}

.gm-modal-icon.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #10b981;
}

.gm-modal-title {
    font-family: var(--gm-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gm-color-dark, #0e0e0e);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.gm-modal-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.gm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.gm-modal-actions .gm-btn {
    min-width: 120px;
    justify-content: center;
}

/* Close on overlay click cursor */
.gm-modal-overlay > .gm-modal {
    cursor: default;
}

/* ─── Options Step ─────────────────────────────────────────── */
.gm-option-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.gm-option-card:not(.offered):hover {
    border-color: var(--gm-primary, #FFA44E);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}
.gm-option-card.active {
    border-color: var(--gm-primary, #FFA44E);
    background: #fffaf5;
    box-shadow: 0 10px 15px -3px rgba(255, 164, 78, 0.05), 0 0 0 1px rgba(255, 164, 78, 0.15) inset;
}
.gm-option-card.offered {
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: not-allowed;
    box-shadow: none;
}
.gm-option-card.offered.active {
    box-shadow: none;
}
.gm-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.gm-option-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}
.gm-option-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.gm-option-title {
    font-weight: 700; font-size: 1.1rem;
    color: #0f172a;
    display: flex; align-items: center; gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.4;
}
.gm-option-desc {
    font-size: 0.85rem; color: #475569; margin-top: 4px;
    line-height: 1.5;
}
.gm-option-right { text-align: right; flex-shrink: 0; }
.gm-option-price {
    font-size: 1.4rem; font-weight: 800; color: #0f172a;
    display: block;
    line-height: 1.2;
}
.gm-option-price.offered {
    font-size: 1.15rem; color: #16a34a; font-weight: 700;
}
.gm-option-price small {
    font-size: 0.75rem; font-weight: 600; color: #64748b;
}
.gm-option-period {
    font-size: 0.75rem; color: #64748b; font-weight: 500;
}
.gm-option-badge {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 2px 8px; border-radius: 9999px;
    display: inline-flex; align-items: center; gap: 4px;
}
.gm-option-badge.offered {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.gm-option-toggle-row {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}
.gm-option-card.offered .gm-option-toggle-row {
    border-color: #e2e8f0;
}
.gm-option-toggle-label {
    font-size: 0.85rem; font-weight: 600; color: #334155;
}
.gm-option-card.offered .gm-option-toggle-label {
    color: #64748b;
}
.gm-option-switch {
    position: relative; display: inline-block;
    width: 44px; height: 24px; flex-shrink: 0;
}
.gm-option-switch input { opacity: 0; width: 0; height: 0; }
.gm-option-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1; border-radius: 24px;
    transition: 0.2s;
}
.gm-option-slider::before {
    content: ''; position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: white; border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.gm-option-switch input:checked + .gm-option-slider {
    background: var(--gm-primary, #FFA44E);
}
.gm-option-switch input:checked + .gm-option-slider::before {
    transform: translateX(20px);
}
.gm-option-switch input:disabled + .gm-option-slider {
    cursor: not-allowed;
    background: #cbd5e1 !important;
    opacity: 0.6;
}
.gm-option-switch input:disabled + .gm-option-slider::before {
    background: #f1f5f9;
}
@media (max-width: 600px) {
    .gm-option-header { flex-direction: column; }
    .gm-option-right { text-align: left; }
}
