/* ===== VARIABLES & RESET ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 25px 60px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-premium: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.floating-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
}

.card-1 {
    top: 20px;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite 4s;
}
.card-4 {
    top: 20%;
    right: -90px;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ===== ALERTS ===== */
.alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-large);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    border-left: 5px solid;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.alert-warning {
    background: #fff3cd;
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left-color: var(--accent-color);
    color: #721c24;
}

.alert i {
    font-size: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
    padding: 5px;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== QR MENU SECTION ===== */
.qr-menu-section {
    padding: 100px 0;
    background: white;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.pricing-tab {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.pricing-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: 1;
}

.pricing-tab > * {
    position: relative;
    z-index: 2;
}

.pricing-tab:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.pricing-tab.active {
    border-color: transparent;
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tab-period {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tab-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.tab-save {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 600;
}

.qr-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.qr-menu-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.qr-menu-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.qr-menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.qr-menu-card.premium-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

.card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.popular-badge {
    background: var(--gradient-primary);
    color: white;
}

.new-badge {
    background: var(--gradient-accent);
    color: white;
}

.premium-badge {
    background: var(--gradient-premium);
    color: var(--dark-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.card-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 600;
}

.price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.price-discount {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* ===== MEMORY BOOK SECTION ===== */
.memory-book-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.memory-book-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-large);
}

.memory-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.memory-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.memory-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.memory-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.memory-feature.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.memory-pricing {
    margin-bottom: 30px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.memory-pricing .old-price {
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 600;
}

.memory-pricing .current-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.memory-pricing .discount-badge {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.memory-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.memory-visual {
    position: relative;
}

.memory-showcase {
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-large);
    overflow: hidden;
}

.memory-showcase img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.memory-showcase:hover .showcase-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.overlay-content span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}

.feature-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--success-color);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* ===== PAYMENT FORM ===== */
.payment-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-form-content {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-large);
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

.payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loading-spinner {
    margin-bottom: 10px;
}

.spinner {
    font-size: 4rem;
    color: var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#redirectMessage {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.5;
}

.payment-cancel {
    margin-top: 30px;
}

.cancel-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 1.1rem;
    margin: 0 auto;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .memory-book-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .memory-features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .qr-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .memory-book-hero {
        padding: 40px 30px;
    }
    
    .memory-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .memory-actions {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .qr-menu-card {
        padding: 25px 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .memory-book-hero {
        padding: 30px 20px;
    }
    
    .memory-title {
        font-size: 1.8rem;
    }
    
    .memory-description {
        font-size: 1rem;
    }
    
    .payment-form-content {
        padding: 30px 20px;
    }
    
    .alert {
        padding: 15px 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .qr-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .qr-menu-card,
    .feature-category {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .qr-menu-card:hover,
    .feature-category:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .alert,
    .payment-form {
        display: none !important;
    }
    
    .qr-menu-card,
    .feature-category {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
.pricing-tab:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}