/* CSS Variables - McDonald's inspired colors */
:root {
    --primary-color: #DA291C;
    --primary-dark: #BF1E17;
    --primary-light: #FF3B2F;
    --accent-color: #FFC72C;
    --accent-dark: #FFB300;
    --background: #FFF9E6;
    --card-bg: #FFFFFF;
    --text-primary: #292929;
    --text-secondary: #4A4A4A;
    --text-muted: #757575;
    --border-color: #E0E0E0;
    --success-color: #27AE60;
    --error-color: #DA291C;
    --shadow-sm: 0 2px 8px rgba(218, 41, 28, 0.08);
    --shadow-md: 0 8px 24px rgba(218, 41, 28, 0.12);
    --shadow-lg: 0 16px 48px rgba(218, 41, 28, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image:
        radial-gradient(ellipse at top left, rgba(255, 199, 44, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(218, 41, 28, 0.1) 0%, transparent 50%);
}

/* Container */
.container {
    width: 100%;
    max-width: 520px;
    position: relative;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--accent-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.lang-btn:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4);
}

/* Domain Name */
.domain-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(255, 199, 44, 0.3);
}

/* Tagline */
.tagline {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #FFFBEB, #FFF6D6);
    border: 3px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 32px;
    position: relative;
}

.price-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    z-index: -1;
}

.price-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.usd {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 12px;
    background: #FFFBF0;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-color);
}

.feature svg {
    width: 22px;
    height: 22px;
    color: var(--success-color);
    flex-shrink: 0;
}

/* Form */
.purchase-form {
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.25);
}

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

.input-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* Buy Button */
.buy-button {
    width: 100%;
    padding: 20px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(218, 41, 28, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(218, 41, 28, 0.45);
}

.buy-button:active {
    transform: translateY(-1px);
}

.buy-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.buy-button:hover .button-icon {
    transform: translateX(6px);
}

/* Transfer Info */
.transfer-info {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: #FFF8DC;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-sm);
    text-align: left;
    margin-bottom: 24px;
}

.transfer-info svg {
    width: 22px;
    height: 22px;
    color: var(--accent-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.transfer-info p {
    font-size: 0.8125rem;
    color: #8B6914;
    line-height: 1.6;
    font-weight: 500;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Alternative Payment */
.alternative-payment {
    margin-top: 20px;
    padding-top: 16px;
    text-align: center;
}

.alternative-payment p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.alternative-payment a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.alternative-payment a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--accent-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Success Page */
.success-page,
.cancelled-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.success-page.hidden,
.cancelled-page.hidden {
    display: none;
}

.success-card,
.cancelled-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
}

.success-icon,
.cancelled-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border: 3px solid var(--success-color);
}

.success-icon svg {
    width: 45px;
    height: 45px;
    color: var(--success-color);
}

.cancelled-icon {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 3px solid var(--error-color);
}

.cancelled-icon svg {
    width: 45px;
    height: 45px;
    color: var(--error-color);
}

.success-card h2,
.cancelled-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.success-card p,
.cancelled-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.success-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.success-note a,
.cancelled-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9375rem;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .card {
        padding: 32px 24px;
    }

    .domain-name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .amount {
        font-size: 3rem;
    }

    .buy-button {
        font-size: 1.125rem;
        padding: 18px 24px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .trust-badge {
        justify-content: center;
    }

    .success-card,
    .cancelled-card {
        padding: 32px 24px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

.price-section {
    animation: pulse 2s ease-in-out infinite;
}

.feature {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }

/* McDonald's style golden arches accent */
.card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ==================== BURGER DECORATIONS ==================== */

/* Main burger decoration */
.burger-decoration {
    position: relative;
    width: 80px;
    height: 50px;
    margin: 0 auto 20px;
    transform: scale(1);
    animation: burgerBounce 2s ease-in-out infinite;
}

.burger-decoration.top-burger {
    margin-bottom: 24px;
}

@keyframes burgerBounce {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

/* Bun top with sesame seeds */
.bun-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 25px;
    background: linear-gradient(180deg, #F4A460 0%, #DEB887 50%, #D2691E 100%);
    border-radius: 35px 35px 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 -3px 6px rgba(139, 69, 19, 0.3);
    z-index: 5;
}

/* Sesame seeds */
.sesame-seeds {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
}

.seed {
    position: absolute;
    width: 6px;
    height: 4px;
    background: #FFFACD;
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.seed:nth-child(1) { top: 2px; left: 8px; transform: rotate(-20deg); }
.seed:nth-child(2) { top: 5px; left: 22px; transform: rotate(15deg); }
.seed:nth-child(3) { top: 2px; left: 36px; transform: rotate(-10deg); }
.seed:nth-child(4) { top: 8px; left: 15px; transform: rotate(25deg); }
.seed:nth-child(5) { top: 7px; left: 30px; transform: rotate(-15deg); }

/* Lettuce */
.lettuce {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 8px;
    background: linear-gradient(90deg, #228B22, #32CD32, #228B22, #32CD32, #228B22);
    border-radius: 2px;
    z-index: 4;
    clip-path: polygon(0% 50%, 5% 0%, 10% 50%, 15% 0%, 20% 50%, 25% 0%, 30% 50%, 35% 0%, 40% 50%, 45% 0%, 50% 50%, 55% 0%, 60% 50%, 65% 0%, 70% 50%, 75% 0%, 80% 50%, 85% 0%, 90% 50%, 95% 0%, 100% 50%, 100% 100%, 0% 100%);
}

/* Cheese */
.cheese {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 6px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    z-index: 3;
    border-radius: 1px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.15);
}

.cheese::before,
.cheese::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 10px;
    height: 8px;
    background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%);
    border-radius: 0 0 3px 3px;
}

.cheese::before { left: 5px; }
.cheese::after { right: 5px; }

/* Patty */
.patty {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 10px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 50%, #3D2314 100%);
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Bun bottom */
.bun-bottom {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 12px;
    background: linear-gradient(180deg, #DEB887 0%, #D2691E 100%);
    border-radius: 3px 3px 10px 10px;
    z-index: 1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ==================== FLOATING FOOD ITEMS ==================== */

.floating-foods {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-item {
    position: absolute;
    left: var(--x);
    animation: floatUp 15s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.15;
}

.floating-item.small {
    transform: scale(0.6);
    opacity: 0.1;
}

@keyframes floatUp {
    0% {
        bottom: -100px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(10deg) translateX(20px);
    }
    50% {
        transform: rotate(-5deg) translateX(-20px);
    }
    75% {
        transform: rotate(15deg) translateX(10px);
    }
    100% {
        bottom: 110%;
        transform: rotate(-10deg) translateX(-10px);
    }
}

/* Floating burger */
.burger-float {
    width: 60px;
    height: 45px;
}

.burger-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 20px;
    background: linear-gradient(180deg, #F4A460 0%, #D2691E 100%);
    border-radius: 30px 30px 5px 5px;
    top: 0;
}

.burger-float::after {
    content: '';
    position: absolute;
    width: 55px;
    height: 12px;
    background: linear-gradient(180deg, #8B4513 0%, #3D2314 100%);
    border-radius: 3px;
    top: 18px;
    left: 2.5px;
}

/* Floating fries */
.fries-float {
    width: 50px;
    height: 60px;
}

.fries-float::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 35px;
    background: linear-gradient(180deg, #DA291C 0%, #BF1E17 100%);
    border-radius: 5px 5px 8px 8px;
    bottom: 0;
    left: 5px;
}

.fries-float::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 35px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    border-radius: 2px;
    bottom: 25px;
    left: 12px;
    box-shadow:
        10px 5px 0 #FFD700,
        20px -2px 0 #FFA500,
        5px -8px 0 #FFD700,
        15px -5px 0 #FFA500,
        25px 3px 0 #FFD700;
}

/* Floating drink */
.drink-float {
    width: 35px;
    height: 55px;
}

.drink-float::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 45px;
    background: linear-gradient(180deg, #DA291C 0%, #BF1E17 100%);
    border-radius: 3px 3px 8px 8px;
    bottom: 0;
    left: 2.5px;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.2);
}

.drink-float::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 20px;
    background: linear-gradient(180deg, #FFC72C 0%, #FFB300 100%);
    border-radius: 2px;
    bottom: 45px;
    left: 13px;
}

/* ==================== GOLDEN ARCHES ==================== */

.container::before {
    content: '';
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 40px;
    background:
        radial-gradient(ellipse 25px 40px at 12px 40px, #FFC72C 50%, transparent 50%),
        radial-gradient(ellipse 25px 40px at 38px 40px, #FFC72C 50%, transparent 50%);
    opacity: 0.3;
    z-index: -1;
}

/* ==================== BURGER PATTERN BACKGROUND ==================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 199, 44, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(218, 41, 28, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 199, 44, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

/* ==================== DECORATIVE ELEMENTS ==================== */

/* Ketchup & Mustard drip on price section */
.price-section::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 30px;
    height: 15px;
    background:
        radial-gradient(ellipse at 50% 0%, #DA291C 0%, #DA291C 40%, transparent 40%),
        radial-gradient(ellipse at 80% 0%, #FFC72C 0%, #FFC72C 30%, transparent 30%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Burger emoji accent */
.domain-name::before {
    content: '🍔';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite;
}

.domain-name::after {
    content: '🍟';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite 0.5s;
}

.domain-name {
    position: relative;
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

/* Responsive adjustments for burger decorations */
@media (max-width: 600px) {
    .burger-decoration {
        transform: scale(0.8);
        margin-bottom: 16px;
    }

    .domain-name::before,
    .domain-name::after {
        display: none;
    }

    .floating-foods {
        display: none;
    }

    .container::before {
        display: none;
    }
}
