* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0a0a0a;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Payment Page Specific */
body.payment-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1a1a1a;
}

/* Landing Page Specific */
body.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==================== */
/* LANDING PAGE LAYOUT  */
/* ==================== */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.landing-logo {
    margin-bottom: 40px;
}

.landing-logo img {
    width: 200px;
    height: auto;
}

.warning-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: #FFC107;
    animation: pulse 2s ease-in-out infinite;
}

.warning-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.landing-message {
    margin-bottom: 40px;
}

.landing-message h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
}

.landing-message p {
    color: #999;
    font-size: 15px;
    line-height: 1.7;
}

.landing-cta {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 30px;
}

.landing-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.landing-cta:active {
    transform: translateY(-1px);
}

.landing-note {
    color: #666;
    font-size: 13px;
}

.landing-note p {
    margin: 0;
}

/* ==================== */
/* 3D SECURE PAGE       */
/* ==================== */
body.secure-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.secure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    width: 100%;
}

.secure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    padding: 0 10px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bank-logo svg {
    width: 100%;
    height: 100%;
    color: #333;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 8px 16px;
    border-radius: 20px;
}

.secure-badge svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.secure-badge span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.secure-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.secure-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 24px;
}

.secure-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.info-label {
    color: #666;
    font-size: 13px;
}

.info-value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

.secure-divider {
    height: 1px;
    background: #e9ecef;
    margin: 20px 0;
}

.secure-description {
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.otp-input {
    width: 48px;
    height: 56px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-input:focus {
    border-color: #FFC107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.otp-input::-webkit-inner-spin-button,
.otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Timer */
.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.timer-container svg {
    width: 18px;
    height: 18px;
}

.timer-container strong {
    color: #1a1a1a;
}

/* Submit Button */
.secure-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secure-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.secure-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.secure-footer {
    text-align: center;
    margin-top: 20px;
}

.secure-footer p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.secure-footer a {
    color: #FFC107;
    text-decoration: none;
    font-weight: 500;
}

.secure-footer a:hover {
    text-decoration: underline;
}

/* Security Note */
.security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #4CAF50;
    font-size: 12px;
}

.security-note svg {
    width: 16px;
    height: 16px;
}

/* ==================== */
/* SUCCESS ANIMATION    */
/* ==================== */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 2000;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s ease-out;
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: #fff;
    stroke-width: 3;
    animation: checkDraw 0.5s ease-out 0.3s both;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.success-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.success-message {
    color: #999;
    font-size: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #FFC107;
    font-size: 14px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.redirect-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-top-color: #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-countdown {
    color: #666;
    font-size: 24px;
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

.success-countdown span {
    color: #FFC107;
    font-weight: 700;
    font-size: 32px;
}

/* ==================== */
/* HEADER STYLES        */
/* ==================== */
.header {
    background-color: #0a0a0a;
    border-bottom: 1px solid #222;
    padding: 0 40px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #FFC107;
    letter-spacing: 2px;
    font-style: italic;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #FFC107;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
}

.search-text {
    color: #999;
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #FFC107;
}

/* ==================== */
/* MAIN CONTENT         */
/* ==================== */
.main-content {
    flex: 1;
    padding: 40px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.card-number {
    color: #888;
    font-size: 14px;
}

.card-value {
    color: #888;
    font-size: 13px;
}

.update-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #666;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.update-btn:hover {
    border-color: #FFC107;
    color: #FFC107;
}

.change-link {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.change-link:hover {
    color: #FFC107;
}

.card-divider {
    height: 1px;
    background-color: #333;
    margin: 0 24px;
}

/* Landing Page Footer */
.landing-footer {
    position: relative;
    margin-top: auto;
}

/* Card Row Link */
.card-row-link {
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.card-row-link:hover {
    background-color: #252525;
}

/* ==================== */
/* COOKIE CONSENT       */
/* ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    padding: 20px 40px;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-icon svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cookie-link {
    color: #888;
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #FFC107;
}

.cookie-accept {
    padding: 12px 28px;
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.cookie-accept:active {
    transform: translateY(0);
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-accept {
        width: 100%;
    }
}

/* Simple Cookie Banner (Payment Page) */
.cookie-banner-simple {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner-simple.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-simple-text {
    color: #999;
    font-size: 13px;
}

.cookie-simple-link {
    color: #FFC107;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-simple-link:hover {
    color: #FFB300;
}

.cookie-simple-btn {
    padding: 8px 20px;
    background: #FFC107;
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-simple-btn:hover {
    background: #FFB300;
}

.container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
}

.payment-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
    color: #999;
}

/* Card Number Input with Icon */
.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-input-wrapper input {
    padding-left: 60px;
    padding-right: 45px;
}

.card-icon {
    position: absolute;
    left: 12px;
    width: 40px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: #999;
}

.check-icon {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.check-icon.visible {
    opacity: 1;
}

.check-icon svg {
    width: 100%;
    height: 100%;
    color: #666;
}

/* Two Column Row */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

/* Amount Display */
.amount-display {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: right;
}

.amount-display span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Expiry Date Wrapper */
.expiry-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Info Note */
.form-group.info-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
}

.form-group.info-note svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #4CAF50;
}

.form-group.info-note span {
    color: #4CAF50;
    font-size: 13px;
    line-height: 1.5;
}

.expiry-wrapper select {
    flex: 1;
    padding: 14px 12px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.expiry-wrapper select:focus {
    border-color: #333;
}

.expiry-separator {
    font-size: 18px;
    color: #999;
    font-weight: 500;
}

/* CVV Wrapper */
.cvv-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cvv-wrapper input {
    width: 100%;
    padding-right: 45px;
    letter-spacing: 4px;
    text-align: center;
}

.cvv-toggle {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.cvv-toggle:hover {
    opacity: 1;
}

.cvv-toggle.active {
    opacity: 1;
}

.cvv-toggle svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.cvv-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Error Messages */
.error-message {
    display: block;
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.error-message.visible {
    opacity: 1;
    height: auto;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #333;
    border-color: #333;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-text {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: #FFC107;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background: #FFB300;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    padding: 12px 20px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: #999;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

.footer a:hover {
    color: #FFC107;
}

/* Responsive */
@media (max-width: 480px) {
    .payment-card {
        padding: 24px 20px;
        border-radius: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }
}

/* Card Type Icons */
.card-icon.visa {
    background: #1a1f71;
}

.card-icon.mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.card-icon.discover {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.card-icon.troy {
    background: #0055A5;
}