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

:root {
    --primary-color: #6B21A8;
    --primary-dark: #4C1D95;
    --accent-color: #F59E0B;
    --accent-light: #FBBF24;
    --bg-dark: #1E1B4B;
    --bg-light: #312E81;
    --text-primary: #FFFFFF;
    --text-secondary: #C7D2FE;
    --text-muted: #93C5FD;
    --card-bg: linear-gradient(135deg, #6B21A8 0%, #4C1D95 50%, #312E81 100%);
}
html{
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0F0D24 100%);
}
body {
    background: url(bg.png) no-repeat top center;
    background-size: contain;
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 32px;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 33, 168, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.card-container {
    perspective: 1000px;
    margin-bottom: 40px;
}

.card {
    width: 320px;
    height: 190px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(107, 33, 168, 0.3);
}

.card-front {
    background: var(--card-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-back {
    background: linear-gradient(135deg, #312E81 0%, #1E1B4B 100%);
    transform: rotateY(180deg);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-bank {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 2px;
}

.card-type {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(245, 158, 11, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.card-holder {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.holder-label {
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.holder-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-expiry {
    font-size: 10px;
    color: var(--text-muted);
}

.card-brand {
    font-size: 24px;
    color: var(--accent-color);
}

.magstripe {
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    margin: 15px 0;
    border-radius: 2px;
}

.signature-strip {
    width: 70%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 15px;
}

.signature-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-info span {
    font-size: 9px;
    color: var(--text-muted);
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.claim-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

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

.benefits-section {
    padding: 60px 20px;
    animation: fadeIn 1s ease-out;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: rgba(107, 33, 168, 0.15);
    border: 1px solid rgba(107, 33, 168, 0.3);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.benefit-card:hover {
    background: rgba(107, 33, 168, 0.25);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.2);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-section {
    padding: 60px 20px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.claim-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(107, 33, 168, 0.1);
    border: 1px solid rgba(107, 33, 168, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(107, 33, 168, 0.5);
    border-radius: 10px;
    background: rgba(30, 27, 75, 0.6);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

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

.form-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.error-message {
    display: block;
    font-size: 12px;
    color: #EF4444;
    margin-top: 6px;
    height: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 33, 168, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 33, 168, 0.5);
}

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

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

.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(107, 33, 168, 0.2);
    margin-top: 40px;
}

.footer-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid rgba(107, 33, 168, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #FFFFFF;
    animation: bounce 0.6s ease;
}

.modal-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.card-info-box {
    background: rgba(107, 33, 168, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(107, 33, 168, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
    font-family: 'Courier New', monospace;
}

.modal-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 768px) {
    .header {
        padding: 25px 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .hero-section {
        padding: 30px 20px 40px;
    }

    .card {
        width: 280px;
        height: 165px;
    }

    .card-number {
        font-size: 12px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .claim-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .benefits-section, .form-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .claim-form {
        padding: 25px;
    }

    .modal {
        padding: 30px 25px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .modal-title {
        font-size: 22px;
    }
}