:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f4d03f;
    --deep-purple: #1a1a2e;
    --medium-purple: #16213e;
    --light-purple: #0f3460;
    --mystical-blue: #2c3e50;
    --text-white: #ffffff;
    --text-light: #e8e8e8;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--medium-purple) 50%, var(--light-purple) 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated stars background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--primary-gold), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--secondary-gold), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--text-white), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--primary-gold), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--text-white), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.hero {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--shadow-light);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1) drop-shadow(0 0 5px var(--primary-gold)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px var(--primary-gold)); }
}

.tagline {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 30px;
}

.mystical-symbols {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.symbol {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.symbol:nth-child(2) { animation-delay: 0.5s; }
.symbol:nth-child(3) { animation-delay: 1s; }
.symbol:nth-child(4) { animation-delay: 1.5s; }
.symbol:nth-child(5) { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Main content */
main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.intro h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Form styling */
.reading-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px var(--shadow-light);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Dual palm upload styling */
.palm-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.palm-upload-group h4 {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* File upload styling */
.file-upload-container {
    position: relative;
    margin-bottom: 15px;
}

#palmImage {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--primary-gold);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary-gold);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
}

.form-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 50px;
    color: var(--deep-purple);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-light);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid var(--deep-purple);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading section */
.loading-section {
    text-align: center;
    padding: 60px 0;
}

.loading-animation {
    max-width: 400px;
    margin: 0 auto;
}

.crystal-ball {
    font-size: 5rem;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 20px;
}

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

.loading-animation h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.loading-animation p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Result section */
.result-section {
    text-align: center;
    padding: 40px 0;
}

.result-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
}

.result-content {
    max-width: 800px;
    margin: 0 auto;
}

.generated-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 15px 30px var(--shadow-dark);
    margin-bottom: 30px;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 25px;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    background: transparent;
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-symbols {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .logo {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .mystical-symbols {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .symbol {
        font-size: 1.5rem;
    }
    
    main {
        padding: 25px 20px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .intro {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .intro h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .intro p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Mobile Payment Section */
    .payment-section {
        padding: 20px;
    }
    
    .payment-info h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .price-display {
        margin: 20px 0;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0;
    }
    
    .feature {
        font-size: 0.95rem;
        padding: 12px;
        text-align: center;
    }
    
    /* Mobile Coupon Section */
    .coupon-section {
        margin: 25px 0;
    }
    
    .coupon-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .coupon-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
        box-sizing: border-box;
    }
    
    .coupon-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Mobile Payment Element */
    .payment-element {
        margin: 20px 0;
        padding: 15px;
    }
    
    .payment-btn {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
        margin-top: 20px;
        min-width: auto;
    }
    
    /* Mobile Form Styles */
    .reading-form {
        max-width: 100%;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .form-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile Palm Upload */
    .palm-uploads {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .palm-upload-group h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .file-upload-label {
        padding: 20px;
        font-size: 1rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 8px;
        display: block;
    }
    
    .image-preview {
        margin-top: 15px;
    }
    
    .image-preview img {
        max-height: 200px;
        width: auto;
        border-radius: 10px;
    }
    
    .form-hint {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 5px;
        text-align: center;
    }
    
    /* Mobile Submit Button */
    .submit-btn {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    /* Mobile Result Actions */
    .result-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Mobile Loading Section */
    .loading-animation {
        padding: 30px 20px;
        text-align: center;
    }
    
    .crystal-ball {
        font-size: 3rem;
    }
    
    .loading-animation h3 {
        font-size: 1.3rem;
        margin: 15px 0;
    }
    
    .loading-animation p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Mobile Generated Image */
    .generated-image iframe {
        height: 600px !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .logo {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .mystical-symbols {
        gap: 10px;
        justify-content: center;
    }
    
    .symbol {
        font-size: 1.3rem;
    }
    
    main {
        padding: 20px 15px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .intro {
        padding: 1.2rem;
    }
    
    .intro h2 {
        font-size: 1.7rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    /* Small Mobile Payment */
    .payment-section {
        padding: 15px;
    }
    
    .payment-info h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .feature {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Small Mobile Form */
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .coupon-input, .coupon-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .payment-btn, .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .file-upload-label {
        padding: 15px;
        font-size: 0.95rem;
        min-height: 100px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .image-preview img {
        max-height: 150px;
    }
    
    .form-hint {
        font-size: 0.85rem;
    }
    
    /* Small Mobile Loading */
    .loading-animation {
        padding: 25px 15px;
    }
    
    .crystal-ball {
        font-size: 2.5rem;
    }
    
    .loading-animation h3 {
        font-size: 1.2rem;
    }
    
    .loading-animation p {
        font-size: 0.95rem;
    }
    
    .generated-image iframe {
        height: 500px !important;
    }
}

/* Touch-friendly improvements for mobile devices */
@media (hover: none) and (pointer: coarse) {
    .file-upload-label {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .coupon-btn, .payment-btn, .submit-btn, .action-btn {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .form-group input, .coupon-input {
        min-height: 48px;
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Prevent iOS zoom on input focus */
    input[type="text"], input[type="time"], textarea {
        font-size: 16px !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 20px 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .mystical-symbols {
        gap: 15px;
    }
    
    .symbol {
        font-size: 1.2rem;
    }
    
    main {
        padding: 20px;
        margin: 15px 0;
    }
    
    .palm-uploads {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .file-upload-label {
        min-height: 80px;
        padding: 15px;
    }
    
    .upload-icon {
        font-size: 1.8rem;
    }
}

/* Payment section styles */
.payment-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
}

.payment-info h2 {
    color: var(--accent-color);
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.price-display {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(248, 217, 109, 0.1));
    border-radius: 10px;
    border: 1px solid var(--accent-color);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--heading-font);
}

.price-description {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
    color: var(--text-color);
}

.payment-element {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Enhanced Stripe Elements styling */
.payment-element .StripeElement {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    color: #ffffff !important;
}

.payment-element .StripeElement--focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

.payment-element .StripeElement--invalid {
    border-color: #ef4444 !important;
}

/* Billing details header */
.billing-details-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.billing-details-header h4 {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.billing-details-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.payment-btn {
    background: linear-gradient(45deg, var(--accent-color), #f8d96d);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    margin: 1rem 0;
}

.payment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.payment-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.payment-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Coupon section styles */
.coupon-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.coupon-input::placeholder {
    color: var(--text-light);
}

.coupon-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), #f8d96d);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.coupon-message {
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.coupon-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.coupon-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.discount-info {
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1rem;
    border-radius: 8px;
    color: #22c55e;
}

.discount-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.discount-info .price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.discount-info .original-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-info .final-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Coupon success and pricing states */
.original-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.9em;
    margin-right: 10px;
}

.final-price {
    font-weight: bold;
    color: #d4af37;
}

.final-price.free {
    color: #00ff88;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: glow-green 2s ease-in-out infinite alternate;
}

.discount-applied {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
}

.discount-applied.free {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 102, 0.1));
    border: 1px solid #00ff88;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes glow-green {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.3);
    }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.6); }
}

/* ASZF Page Styling */
.aszf-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    line-height: 1.8;
}

.aszf-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--shadow-light);
}

.aszf-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--secondary-gold);
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.aszf-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 1.5rem 0 0.8rem 0;
}

.aszf-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.aszf-content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.aszf-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.aszf-content strong {
    color: var(--primary-gold);
    font-weight: 600;
}

.aszf-content em {
    color: var(--secondary-gold);
    font-style: italic;
}

.signature {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-gold);
    margin-top: 2rem;
    text-align: center;
}

.signature p {
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

/* ASZF Navigation Link */
.aszf-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.aszf-link:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

/* Terms Checkbox Styling */
.terms-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-gold);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-label {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

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

.terms-label a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

.terms-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Payment button disabled state when terms not accepted */
.payment-btn.terms-disabled {
    background: rgba(116, 125, 140, 0.6) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.payment-btn.terms-disabled:hover {
    background: rgba(116, 125, 140, 0.6) !important;
    transform: none !important;
}

/* Mobile responsiveness for ASZF */
@media (max-width: 768px) {
    .aszf-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .aszf-content h2 {
        font-size: 2rem;
    }
    
    .aszf-content h3 {
        font-size: 1.5rem;
    }
    
    .aszf-content h4 {
        font-size: 1.2rem;
    }
    
    .aszf-content p, .aszf-content li {
        font-size: 1rem;
    }
    
    .terms-checkbox-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .terms-checkbox {
        width: 18px;
        height: 18px;
    }
    
    .terms-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .aszf-content {
        padding: 1rem;
    }
    
    .aszf-content h2 {
        font-size: 1.8rem;
    }
    
    .aszf-content h3 {
        font-size: 1.3rem;
    }
} 