/* Anchordo Checkout – Dark Premium Theme */
:root {
    --bg: #0b1324;
    --bg-gradient-1: #1b2a4d;
    --bg-gradient-2: #13223e;
    --card: #0f1829;
    --card-2: #0f1c33;
    --border: #1e293b;
    --border-focus: #3b82f6;
    --muted: #94a3b8;
    --text: #e2e8f0;
    --text-dim: #7b8ca7;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 480px at 15% -10%, var(--bg-gradient-1) 0%, rgba(27,42,77,0.25) 50%, transparent 70%),
        radial-gradient(700px 420px at 85% -5%, var(--bg-gradient-2) 0%, rgba(19,34,62,0.25) 45%, transparent 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Layout */
.checkout-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Header */
.checkout-header {
    text-align: center;
    margin-bottom: 48px;
}
.checkout-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.checkout-header .subtitle {
    color: var(--muted);
    font-size: 15px;
}
.platform-notice {
    margin: 14px auto 0;
    max-width: 540px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.08);
    color: #cfe1ff;
    text-align: left;
}
.platform-notice-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.22);
    font-size: 15px;
}
.platform-notice-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.platform-notice-content strong {
    color: #e6efff;
    font-size: 13px;
    line-height: 1.25;
}
.platform-notice-content span {
    color: #a9bfdf;
    font-size: 12px;
    line-height: 1.35;
}
.beta-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

/* Steps indicator */
.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.step.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.step.completed {
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.3);
    background: var(--success-bg);
}
.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
}
.step.active .step-number {
    background: rgba(255,255,255,0.2);
}
.step-connector {
    flex: 0 0 64px;
    width: 64px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    align-self: center;
    margin: 0 10px;
}
.step-connector.completed {
    background: var(--success);
}

/* Cards */
.card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid #14223b;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.billing-btn {
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.billing-btn.active {
    background: var(--card-2);
    color: var(--text);
    border-color: var(--border);
}
.billing-btn:hover:not(.active) {
    color: var(--text);
}
.billing-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    font-weight: 600;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 25px;
    margin-bottom: 48px;
}

.product-card {
    position: relative;
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 24px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}
.product-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.product-card.popular {
    border-color: rgba(59, 130, 246, 0.4);
}
.product-card.plan-highlighted {
    transform: scale(var(--plan-highlight-scale, 1.03));
    border-color: var(--plan-highlight-glow, #3b82f6);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 50%, transparent),
        0 0 24px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 35%, transparent),
        0 12px 34px rgba(0, 0, 0, 0.35);
    background:
        linear-gradient(var(--plan-highlight-angle, 135deg),
            color-mix(in srgb, var(--plan-highlight-start, #3b82f6) 22%, #0f1829),
            color-mix(in srgb, var(--plan-highlight-end, #22c55e) 20%, #0f1c33));
}
.product-card.plan-highlighted-animated {
    animation: planGlowPulse 2.2s ease-in-out infinite;
}
@keyframes planGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 50%, transparent),
            0 0 18px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 28%, transparent),
            0 10px 28px rgba(0, 0, 0, 0.28);
    }
    50% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 65%, transparent),
            0 0 34px color-mix(in srgb, var(--plan-highlight-glow, #3b82f6) 52%, transparent),
            0 16px 40px rgba(0, 0, 0, 0.38);
    }
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-description {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}
.product-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 2px;
}
.product-price .currency {
    font-size: 18px;
    font-weight: 600;
    vertical-align: super;
}
.product-price .period {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}
.product-price-monthly {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
    flex: 1;
    margin-bottom: 20px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
}
.feature-list li .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: 1px;
}
.feature-list li.enabled .icon {
    background: var(--success-bg);
    color: var(--success);
}
.feature-list li.disabled {
    color: var(--text-dim);
    opacity: 0.5;
}
.feature-list li.disabled .icon {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}
.select-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.select-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.product-card.selected .select-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Step sections */
.checkout-step {
    display: none;
    animation: fadeIn 0.3s ease;
}
.checkout-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form */
.form-section {
    margin-bottom: 32px;
}
.form-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.form-section .desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field.full-width {
    grid-column: 1 / -1;
}
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.field input, .field select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: #0b1324;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.field .error-hint {
    color: var(--danger);
    font-size: 12px;
    display: none;
}

/* Summary */
.order-summary {
    background: #0b1428;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}
.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
}
.summary-row .label {
    color: var(--muted);
}
.summary-row.total .label {
    color: var(--text);
}

/* PayPal container */
.paypal-container {
    margin-top: 24px;
}
.paypal-container h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
#paypal-subscription-section {
    text-align: center;
}
#paypal-subscription-section h3 {
    text-align: center;
}
.platform-mini-hint {
    margin: 0 auto 10px;
    max-width: 520px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
#paypal-button-container {
    max-width: 420px;
    margin: 0 auto;
}

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Success page */
.success-card {
    text-align: center;
    padding: 48px 32px;
    max-width: 600px;
    margin: 80px auto 0;
}
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(34, 197, 94, 0.3);
}
.success-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.success-card .message {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.license-display {
    background: #0b1428;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--accent);
    word-break: break-all;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.status-pill.paid {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-pill.approved, .status-pill.license_issued {
    background: var(--success-bg);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-pill.pending_payment {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

/* Plan highlights */
.plan-highlights {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.highlight-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Setup fee note */
.setup-fee-note {
    color: var(--warning);
    font-size: 12px;
    margin-bottom: 16px;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Additional status pills */
.status-pill.approved, .status-pill.active {
    background: var(--success-bg);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-pill.cancelled, .status-pill.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-pill.suspended {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-wrap: wrap;
    }
    .step-connector {
        display: none;
    }
}

/* ─── Promo Badges ─────────────────────────────── */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-top: 8px;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
}
.promo-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 0.65rem;
}
.product-price-old {
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: line-through;
    margin-top: 2px;
}
.savings-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.free-price-label {
    margin-top: 4px;
    color: #22c55e;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ─── Coupon Section ───────────────────────────── */
.coupon-section {
    border-top: 1px solid var(--border, #1e293b);
    padding-top: 12px;
}
.coupon-section .field label {
    font-size: 0.82rem;
    color: var(--muted, #94a3b8);
}
.coupon-section input {
    text-transform: uppercase;
}

/* ─── Inquiry Form ─────────────────────────────── */
#inquiry-container textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f1b31;
    color: var(--text);
    font-size: 14px;
    resize: vertical;
}
#inquiry-container textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
#inquiry-status.success {
    color: #22c55e;
}
#inquiry-status.error {
    color: #ef4444;
}

/* ─── Legal Block ──────────────────────────────── */
.legal-block {
    margin-top: 20px;
    padding: 18px;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid var(--border, #1e293b);
    border-radius: var(--radius-xs, 8px);
}
.legal-block p {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    line-height: 1.65;
    margin-bottom: 10px;
}
.legal-block p a {
    color: var(--accent, #3b82f6);
    text-decoration: underline;
}
.legal-block strong {
    color: var(--text, #e2e8f0);
}
.legal-abo-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #1e293b);
}
.legal-widerruf {
    margin-bottom: 12px;
}
.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim, #7b8ca7);
    margin-top: 10px;
    line-height: 1.55;
    cursor: pointer;
}
.legal-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.legal-checkbox a {
    color: var(--accent, #3b82f6);
    text-decoration: underline;
}
.legal-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #1e293b);
    font-size: 12px;
}
.legal-footer a {
    color: var(--muted, #94a3b8);
    text-decoration: none;
    transition: color 0.2s;
}
.legal-footer a:hover {
    color: var(--text, #e2e8f0);
    text-decoration: underline;
}

/* ─── Mailtest Panel ───────────────────────────── */
.mailtest-panel pre {
    margin-top: 10px;
    background: #0b1324;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    max-height: 260px;
    overflow: auto;
}
