:root {
    --primary-color: #2563eb;
    --secondary-color: #f97316;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --card-radius: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--dark-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Shapes for visual interest */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #bfdbfe;
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #ffedd5;
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #e9d5ff;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(10deg);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.brand-logo {
    height: 50px;
    /* Adjust based on actual logo ratio */
    object-fit: contain;
}

.divider {
    width: 1px;
    height: 40px;
    background: #cbd5e1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Voucher Card */
.voucher-section {
    perspective: 1000px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.voucher-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voucher-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 1rem;
}

.voucher-label {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.voucher-brand {
    font-weight: 700;
    color: var(--light-text);
}

.voucher-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.voucher-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 2px;
}

.voucher-info p {
    color: var(--light-text);
    font-size: 1rem;
}

.voucher-code-container {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.code-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.code-box {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-icon {
    font-size: 1.2rem;
    color: var(--light-text);
    opacity: 0.6;
}

.code-box:hover .copy-icon {
    opacity: 1;
    color: var(--primary-color);
}

.copy-feedback {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
    bottom: 5px;
    /* Slide up nicely */
}

.voucher-footer {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

.date-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Glass Panel (Terms & QR) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title.center {
    justify-content: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.terms-list {
    list-style: none;
}

.terms-list li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    color: var(--shade-text);
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.terms-list li i {
    color: #10b981;
    /* Green check */
    margin-top: 4px;
    flex-shrink: 0;
}

/* QR Section */
.qr-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.qr-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.qr-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.qr-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.qr-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    /* Push button down */
}

.btn-scan {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--dark-text);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.qr-card:hover .btn-scan {
    background: var(--primary-color);
}

.qr-card.highlight .btn-scan {
    background: var(--secondary-color);
}

.qr-card.highlight:hover .btn-scan {
    background: #ea580c;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--light-text);
    font-size: 0.85rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations using classes */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

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

/* Responsive */
@media (max-width: 600px) {
    .page-title {
        font-size: 1.6rem;
    }

    .voucher-value {
        font-size: 2.8rem;
    }

    .qr-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .brand-logo {
        height: 40px;
    }
}

/* Guide Section (How to Use) */
.guide-section {
    margin-top: 5rem;
    margin-bottom: 4rem;
}

.guide-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-item.highlight {
    border-color: var(--secondary-color);
    background: #fff7ed;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.step-item.highlight .step-icon {
    background: #ffedd5;
    color: var(--secondary-color);
}

.step-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.step-item p {
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.4;
}

.step-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.delay-5 {
    animation-delay: 1.0s;
}

/* Responsive adjustments for Guide */
@media (max-width: 768px) {
    .guide-steps {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-arrow {
        display: none;
    }

    .step-item {
        max-width: 100%;
        width: 100%;
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "icon text"
            "title text";
        gap: 0.25rem 1rem;
        text-align: center;
        padding: 1rem;
        align-items: start;
    }

    .step-icon {
        grid-area: icon;
        margin: 0 auto;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-item h4 {
        grid-area: title;
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .step-item p {
        grid-area: text;
        text-align: left;
        margin: 0;
        align-self: center;
        font-size: 0.85rem;
    }

}