:root {
    --bg: #050508;
    --panel: #14141b;
    --muted: #a1a1aa;
    --text: #f8fafc;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #6366f1;
    --accent-2: #9333ea;
    --cyan: #22d3ee;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #050508;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 clamp(20px, 6vw, 88px);
    background: rgba(5, 5, 8, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default empty state (gradient icon box) */
.brand-mark:empty {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand-mark svg { width: 18px; height: 18px; }

/* Dynamic logo injected by branding */
.brand-mark img,
.brand-mark .custom-brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.site-header nav { gap: 22px; }
.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.site-header nav a:hover { color: #fff; }

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 48px;
    padding: 108px clamp(20px, 6vw, 88px) 72px;
    background:
        radial-gradient(circle at 78% 48%, rgba(34, 211, 238, 0.16), transparent 26%),
        radial-gradient(circle at 52% 42%, rgba(99, 102, 241, 0.2), transparent 32%),
        #050508;
    overflow: hidden;
}

.eyebrow {
    color: #c7d2fe;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 16px;
}

h1 {
    margin: 0;
    font-size: clamp(56px, 9vw, 116px);
    line-height: 0.9;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

/* Typography spans from admin — override h1 default sizing */
h1 > span {
    line-height: inherit;
}

.lead {
    max-width: 620px;
    color: #d4d4d8;
    font-size: 20px;
    line-height: 1.65;
    margin: 26px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-action,
.secondary-action {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
}
.primary-action {
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.26);
}
.secondary-action {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.product-scene {
    position: relative;
    min-height: 620px;
}

.mock-site {
    position: absolute;
    inset: 0 0 40px 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #0b0b10;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.mock-nav {
    height: 74px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}
.mock-hero {
    height: 230px;
    margin: 34px;
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgba(99, 102, 241, 0.34), rgba(34, 211, 238, 0.2)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 34px);
}
.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0 34px;
}
.mock-grid span {
    height: 130px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
}

.mock-widget {
    position: absolute;
    right: 32px;
    bottom: 0;
    width: min(390px, 92vw);
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #18181b;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
}
.mock-widget-header {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.mock-widget-header strong,
.mock-widget-header small { display: block; }
.mock-widget-header strong { font-size: 14px; }
.mock-widget-header small { color: rgba(255, 255, 255, 0.72); font-size: 10px; }
.mock-messages { padding: 18px; display: grid; gap: 12px; }
.bubble {
    margin: 0;
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
}
.bubble.left { background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: #e4e4e7; }
.bubble.right { justify-self: end; color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bubble.dots { display: inline-flex; gap: 5px; width: 64px; }
.bubble.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mock-input {
    height: 42px;
    margin: 0 18px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #27272a;
}

.section {
    padding: 96px clamp(20px, 6vw, 88px);
    border-top: 1px solid var(--line);
}
.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: 0; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.feature-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-grid article,
.pricing-grid article {
    min-height: 170px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.045);
}
.feature-grid h3,
.pricing-grid h3 { margin: 0 0 10px; font-size: 18px; }
.feature-grid p,
.pricing-grid p { color: var(--muted); line-height: 1.65; margin: 0; }
.pricing {
    background:
        radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.09), transparent 35%),
        #050508;
}
.pricing .section-heading {
    max-width: 860px;
    margin: 0 auto 70px;
    text-align: center;
}
.pricing .section-heading h2 {
    font-size: clamp(34px, 4vw, 58px);
}
.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.pricing-grid .pricing-card,
.pricing-grid article {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    padding: 54px 48px 36px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(26, 24, 40, 0.86), rgba(16, 16, 24, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}
.pricing-grid .pricing-card.highlight,
.pricing-grid article.highlight {
    border-color: rgba(99, 102, 241, 0.62);
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(27, 24, 42, 0.96), rgba(18, 17, 28, 0.96));
    box-shadow: 0 34px 90px rgba(99, 102, 241, 0.16);
}
.pricing-card.has-badge {
    padding-top: 58px;
}
.pricing-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.28);
    border: 1px solid rgba(99, 102, 241, 0.78);
    color: #c7d2fe;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.pricing-card h3 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: 0;
}
.pricing-card-subtitle {
    margin: 0;
    min-height: 30px;
    color: var(--muted);
    font-size: 16px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 40px 0 34px;
}
.pricing-price strong {
    color: #fff;
    font-size: clamp(46px, 4vw, 58px);
    line-height: 1;
    font-weight: 900;
}
.pricing-price span {
    color: #71717a;
    font-size: 20px;
}
.pricing-features {
    list-style: none;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    color: #d4d4d8;
    font-size: 18px;
    line-height: 1.35;
}
.pricing-features li {
    position: relative;
    padding-left: 28px;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34d399;
    font-weight: 900;
}
.pricing-cta {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pricing-card.highlight .pricing-cta {
    background: linear-gradient(90deg, var(--accent), #4f46e5);
    border-color: transparent;
    box-shadow: 0 20px 42px rgba(99, 102, 241, 0.28);
}
.pricing-cta:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}
.pricing-card.highlight .pricing-cta:hover {
    box-shadow: 0 24px 54px rgba(99, 102, 241, 0.38);
}

/* ── Discount Card ── */
.pricing-card.discount {
    border-color: rgba(52, 211, 153, 0.5);
    background:
        radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(20, 32, 28, 0.96), rgba(14, 18, 22, 0.96));
    box-shadow: 0 34px 90px rgba(52, 211, 153, 0.12);
}

.pricing-card.discount .pricing-cta {
    background: linear-gradient(90deg, #059669, #10b981);
    border-color: transparent;
    box-shadow: 0 20px 42px rgba(16, 185, 129, 0.22);
}

.pricing-card.discount .pricing-cta:hover {
    box-shadow: 0 24px 54px rgba(16, 185, 129, 0.34);
}

.pricing-badge--discount {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(52, 211, 153, 0.7) !important;
    color: #6ee7b7 !important;
    gap: 6px;
    display: inline-flex !important;
    align-items: center;
}

.pricing-badge--discount svg {
    flex-shrink: 0;
}

/* ── Discount Price ── */
.pricing-price-wrap {
    margin: 32px 0 28px;
}

.pricing-price--original {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 4px;
}

.pricing-price--original strong {
    color: #71717a;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-color: #f87171;
    text-decoration-thickness: 2px;
}

.pricing-price--original span {
    color: #52525b;
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-color: #f87171;
    text-decoration-thickness: 2px;
}

.pricing-price--discount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price--discount strong {
    color: #34d399;
    font-size: clamp(46px, 4vw, 58px);
    line-height: 1;
    font-weight: 900;
}

.pricing-price--discount span {
    color: #6ee7b7;
    font-size: 20px;
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 116px; }
    .product-scene { min-height: 560px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid .pricing-card,
    .pricing-grid article { min-height: auto; }
}

@media (max-width: 640px) {
    .site-header nav { display: none; }
    .hero { padding-left: 18px; padding-right: 18px; }
    .product-scene { min-height: 520px; }
    .mock-site { left: 0; }
    .mock-widget { right: 0; }
    .feature-grid,
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid .pricing-card,
    .pricing-grid article { padding: 42px 26px 28px; }
    .pricing-features { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════
   PAYMENT MODAL
   ══════════════════════════════════════════════════════════ */

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

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

.payment-modal {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.3s ease;
}

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

.payment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 28px 0;
}

.payment-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.payment-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 6px 0 0;
}

.payment-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.payment-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.payment-modal-body {
    padding: 24px 28px;
}

.payment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 28px 24px;
}

/* Provider options */
.payment-provider-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-provider-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: #fff;
}

.payment-provider-opt:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.payment-provider-opt.selected {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.08);
}

.payment-provider-opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.payment-provider-opt.selected .payment-provider-opt-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.payment-provider-opt-info {
    flex: 1;
    min-width: 0;
}

.payment-provider-opt-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.payment-provider-opt-info span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.payment-provider-opt-check {
    opacity: 0;
    color: #818cf8;
    transition: opacity 0.15s;
}

.payment-provider-opt.selected .payment-provider-opt-check {
    opacity: 1;
}

/* Email field */
.payment-email-field {
    margin-top: 18px;
}

.payment-email-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.payment-email-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.payment-email-field input:focus {
    border-color: rgba(99, 102, 241, 0.5);
}

.payment-email-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Billing cycle toggle */
.payment-billing-cycle {
    margin-top: 18px;
}

.payment-cycle-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.payment-cycle-toggle {
    display: flex;
    gap: 8px;
}

.payment-cycle-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-cycle-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.06);
}

.payment-cycle-btn--active {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
}

.payment-cycle-save {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Annual price hint on pricing cards */
.pricing-annual-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -24px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.pricing-save-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Buttons */
.payment-modal-cancel {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.payment-modal-submit {
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-modal-submit:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* Loading & Error */
.payment-modal-loading {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.payment-modal-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: pmSpin 0.7s linear infinite;
}

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

.payment-modal-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 24px 0;
}

/* ══════════════════════════════════════════════════════════════
   PAYMENT SUCCESS OVERLAY
   ══════════════════════════════════════════════════════════════ */

.payment-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.payment-success-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.payment-success-overlay.active .payment-success-card {
    transform: scale(1) translateY(0);
}

.payment-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #22c55e;
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.payment-success-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.payment-success-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
    line-height: 1.6;
}

.payment-success-cta {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.payment-success-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.payment-success-dismiss {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.payment-success-dismiss:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════════════════════════════
   PAYMENT RESULT TOAST
   ══════════════════════════════════════════════════════════════ */

.payment-result-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9998;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.payment-result-toast.show {
    transform: translateX(-50%) translateY(0);
}

.payment-result-toast--warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.payment-result-toast--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ══════════════════════════════════════════════════════════════
   IYZICO IN-PAGE PAYMENT MODAL — Premium Dark Theme
   ══════════════════════════════════════════════════════════════ */

.iyzico-payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.iyzico-payment-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.iyzico-payment-modal {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.08),
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(99, 102, 241, 0.06);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

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

/* ── Header ── */
.iyzico-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.iyzico-payment-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iyzico-payment-lock {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
}

.iyzico-payment-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iyzico-payment-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.iyzico-payment-header-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.iyzico-payment-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.iyzico-payment-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ── Plan info strip ── */
.iyzico-payment-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.iyzico-payment-plan-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #818cf8;
}

.iyzico-payment-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.iyzico-payment-plan-email {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1px;
}

.iyzico-payment-plan-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.iyzico-payment-plan-price span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Payment form body (white container for Iyzico) ── */
.iyzico-payment-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 380px;
    max-height: 55vh;
}

.iyzico-payment-body > div:not(.iyzico-payment-loading) {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Loading spinner ── */
.iyzico-payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.iyzico-payment-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: iyzicoSpin 0.8s linear infinite;
}

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

/* ── Footer trust badges ── */
.iyzico-payment-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.iyzico-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.iyzico-trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
}

.iyzico-trust-badge svg {
    color: rgba(99, 102, 241, 0.5);
}

/* ── Iyzico checkout form overrides ── */
.iyzico-payment-body #iyzipay-checkout-form {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.iyzico-payment-body #iyzipay-checkout-form > div {
    border-radius: 0 !important;
}

.iyzico-payment-body iframe {
    border-radius: 14px !important;
    border: none !important;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .iyzico-payment-modal {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .iyzico-payment-header {
        padding: 14px 16px;
    }

    .iyzico-payment-plan {
        padding: 12px 16px;
    }

    .iyzico-payment-body {
        padding: 12px;
    }

    .iyzico-trust-badges {
        gap: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER COMPONENT
   ══════════════════════════════════════════════════════════════ */

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(10, 10, 20, 0) 0%, rgba(10, 10, 20, 0.6) 100%);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When mark has a dynamically injected logo img, no background needed */
.footer-logo-mark img {
    height: 28px;
    width: auto;
    display: block;
}

/* Fallback: when mark is empty and has gradient icon */
.footer-logo-mark:empty {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #9333ea);
}

.footer-logo-mark svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-nav h4,
.footer-social h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c7d2fe;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.2s;
}

.footer-social-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin: 0;
}

@media (max-width: 980px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        padding: 48px 20px 24px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: auto;
    }
}
