/* ============================================================
   Textly Checkout — Stylesheet
   ============================================================ */

/* ----- CSS Variables / Theme ----- */
:root {
    /* Colors */
    --bg-start: #0f0722;
    --bg-mid: #1a0a3e;
    --bg-end: #0d1b3e;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-primary: #f1f0f5;
    --text-secondary: rgba(241, 240, 245, 0.6);
    --text-muted: rgba(241, 240, 245, 0.35);
    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus-border: var(--accent);
    --error: #f87171;
    --success: #34d399;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);

    /* Spacing */
    --card-padding: 3rem 2.5rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-med: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
}

/* ----- Reset ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-start);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ----- Animated Gradient Background ----- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        135deg,
        var(--bg-start) 0%,
        var(--bg-mid) 40%,
        #162055 60%,
        var(--bg-end) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 25%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 0% 75%; }
    100% { background-position: 0% 50%; }
}

/* Subtle radial glow in center */
body::after {
    content: '';
    position: fixed;
    top: 30%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ----- Floating Particles ----- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.15);
    animation: particleFloat linear infinite;
}

.particle:nth-child(1)  { width: 6px;  height: 6px;  left: 5%;   animation-duration: 22s; animation-delay: 0s;    bottom: -10px; }
.particle:nth-child(2)  { width: 4px;  height: 4px;  left: 15%;  animation-duration: 18s; animation-delay: -3s;   bottom: -10px; background: rgba(96, 165, 250, 0.12); }
.particle:nth-child(3)  { width: 8px;  height: 8px;  left: 25%;  animation-duration: 25s; animation-delay: -5s;   bottom: -10px; }
.particle:nth-child(4)  { width: 3px;  height: 3px;  left: 35%;  animation-duration: 20s; animation-delay: -8s;   bottom: -10px; background: rgba(192, 132, 252, 0.18); }
.particle:nth-child(5)  { width: 5px;  height: 5px;  left: 45%;  animation-duration: 28s; animation-delay: -2s;   bottom: -10px; }
.particle:nth-child(6)  { width: 7px;  height: 7px;  left: 55%;  animation-duration: 19s; animation-delay: -6s;   bottom: -10px; background: rgba(96, 165, 250, 0.1); }
.particle:nth-child(7)  { width: 4px;  height: 4px;  left: 65%;  animation-duration: 24s; animation-delay: -1s;   bottom: -10px; }
.particle:nth-child(8)  { width: 9px;  height: 9px;  left: 75%;  animation-duration: 21s; animation-delay: -4s;   bottom: -10px; background: rgba(168, 85, 247, 0.1); }
.particle:nth-child(9)  { width: 5px;  height: 5px;  left: 82%;  animation-duration: 26s; animation-delay: -7s;   bottom: -10px; }
.particle:nth-child(10) { width: 3px;  height: 3px;  left: 90%;  animation-duration: 17s; animation-delay: -9s;   bottom: -10px; background: rgba(192, 132, 252, 0.14); }
.particle:nth-child(11) { width: 6px;  height: 6px;  left: 10%;  animation-duration: 30s; animation-delay: -11s;  bottom: -10px; }
.particle:nth-child(12) { width: 4px;  height: 4px;  left: 50%;  animation-duration: 23s; animation-delay: -13s;  bottom: -10px; background: rgba(96, 165, 250, 0.15); }

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) translateX(40px) scale(0.5);
        opacity: 0;
    }
}

/* ----- Confetti Canvas ----- */
#confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ----- Checkout Container ----- */
.checkout-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem 5rem;
}

/* ----- Feature Badges ----- */
.feature-badges {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.badge {
    position: absolute;
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    animation: badgeFloat 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.badge-1 { top: 15%; left: 8%;   animation-delay: 0.8s; }
.badge-2 { top: 25%; right: 7%;  animation-delay: 1.2s; animation-duration: 7s; }
.badge-3 { top: 55%; left: 5%;   animation-delay: 0.4s; animation-duration: 5.5s; }
.badge-4 { top: 65%; right: 6%;  animation-delay: 1.6s; animation-duration: 6.5s; }
.badge-5 { top: 82%; left: 12%;  animation-delay: 2.0s; animation-duration: 7.5s; }
.badge-6 { top: 40%; right: 10%; animation-delay: 0.6s; animation-duration: 5s; }

@keyframes badgeFloat {
    0%   { transform: translateY(0px);  opacity: 0; }
    15%  { opacity: 0.7; }
    50%  { transform: translateY(-12px); opacity: 0.7; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(0px);  opacity: 0.7; }
}

/* ----- Checkout Card ----- */
.checkout-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: var(--card-padding);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow:
        0 8px 32px var(--card-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    overflow: hidden;

    /* Entrance animation */
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.8s var(--ease-out-expo) 0.2s forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Card Shimmer Effect ----- */
.card-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* Ensure card children sit above shimmer */
.checkout-card > *:not(.card-shimmer) {
    position: relative;
    z-index: 1;
}

/* ----- App Icon ----- */
.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
    box-shadow:
        0 8px 24px rgba(168, 85, 247, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    margin-bottom: 1.25rem;
    transition: transform var(--transition-med), box-shadow var(--transition-med);

    /* Entrance */
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 0.6s var(--ease-out-expo) 0.4s forwards;
}

.app-icon:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow:
        0 12px 32px rgba(168, 85, 247, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.app-icon-letter {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}

/* ----- App Name ----- */
.app-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;

    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.5s forwards;
}

/* ----- Tagline ----- */
.app-tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;

    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.6s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Pricing ----- */
.pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;

    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.7s forwards;
}

.price-original {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(248, 113, 113, 0.5);
}

.price-current {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ----- Divider ----- */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    margin-bottom: 1.5rem;

    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out-expo) 0.75s forwards;
}

/* ----- Input Group ----- */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;

    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.8s forwards;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition-fast);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.09);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-light);
}

.input-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.input-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.3rem;
    min-height: 1.1rem;
    transition: opacity var(--transition-fast);
}

/* Error state */
.input-group.has-error .input-wrapper input {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* ----- Promo / Discount Section ----- */
.promo-section {
    margin-bottom: 1.25rem;
    text-align: left;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.85s forwards;
}

.promo-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--accent-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.2rem 0;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.promo-toggle-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.promo-wrapper {
    margin-top: 0.5rem;
}

.promo-input-row {
    display: flex;
    gap: 0.5rem;
}

.promo-input-row input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.promo-input-row input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.promo-apply-btn {
    padding: 0.65rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.promo-apply-btn:hover {
    background: rgba(168, 85, 247, 0.45);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.promo-feedback {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    min-height: 1rem;
}

.promo-feedback.is-success {
    color: var(--success);
}

.promo-feedback.is-error {
    color: var(--error);
}

.promo-wrapper[hidden],
.promo-applied-badge[hidden],
.promo-toggle-btn[hidden] {
    display: none !important;
}

.promo-applied-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--success);
}

.promo-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.promo-remove-btn:hover {
    color: var(--error);
}

/* ----- Buy Button ----- */
.buy-btn {
    position: relative;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.9s forwards, btnPulse 3s ease-in-out 2s infinite;
    opacity: 0;
    transform: translateY(15px);
}

.buy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.buy-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.buy-btn:hover::before {
    opacity: 1;
}

.buy-btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35); }
    50%      { box-shadow: 0 4px 35px rgba(168, 85, 247, 0.55), 0 0 60px rgba(168, 85, 247, 0.15); }
}

/* Loading state */
.buy-btn.is-loading {
    pointer-events: none;
    animation: none;
}

.buy-btn.is-loading .buy-btn-text {
    opacity: 0;
    transform: translateY(8px);
}

.buy-btn.is-loading .buy-btn-loader {
    opacity: 1;
    transform: translateY(0);
}

.buy-btn-text,
.buy-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.buy-btn-loader {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(-8px);
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

/* ----- Security Note ----- */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;

    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out-expo) 1s forwards;
}

.security-note svg {
    flex-shrink: 0;
}

/* ============================================================
   Success Modal
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 2, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay[hidden] {
    display: flex; /* override display:none from hidden attribute so transitions work */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 10, 50, 0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.5rem 2rem;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s var(--ease-out-expo);
}

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

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: modalBounce 0.6s var(--ease-out-expo) 0.2s both;
}

@keyframes modalBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* License Key Box */
.license-key-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.license-key {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    word-break: break-all;
    text-align: left;
    user-select: all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.is-copied {
    color: var(--success);
    border-color: rgba(52, 211, 153, 0.3);
}

.modal-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
}

.modal-close-btn:active {
    transform: translateY(0);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .checkout-card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .app-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .app-icon-letter {
        font-size: 1.8rem;
    }

    .app-name {
        font-size: 1.6rem;
    }

    .price-current {
        font-size: 2rem;
    }

    /* Hide some badges on small screens */
    .badge-5,
    .badge-6 {
        display: none;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 380px) {
    .checkout-card {
        padding: 1.5rem 1.2rem;
    }

    .badge-3,
    .badge-4 {
        display: none;
    }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
