:root {
    --primary-color: #FFD700;
    --bg-color: #1A0D2E;
    --card-bg: rgba(40, 25, 70, 0.9);
    --text-color: #E6E6E6;
    --placeholder-color: #A0A0A0;
    --underline-color: #FFD700;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --hover-shadow: rgba(255, 215, 0, 0.4);
    --error-color: #FF4136;
}



h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 84px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(255, 215, 0, 0.5);
    background: linear-gradient(180deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
}

h1::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    z-index: -1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0), var(--primary-color), rgba(255, 215, 0, 0));
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
}

.input-container {
    position: relative;
    margin-bottom: 35px;
}

input {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 700;
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-color);
    border-bottom: 1px solid var(--underline-color);
    letter-spacing: 1px;
    -webkit-text-fill-color: var(--primary-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

label {
    position: absolute;
    left: 16px;
    top: -20px;
    font-size: 14px;
    color: var(--placeholder-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: -36px;
    font-size: 14px;
    color: var(--primary-color);
}

.input-underline {
    display: none;
}

.btn-start {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: center;
    min-width: 180px;
    text-transform: uppercase;
}

.btn-start:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-start:active {
    transform: translateY(2px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-start:hover .arrow-icon {
    transform: translateX(6px);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

input:focus {
    animation: glow 1.5s infinite;
}

.input-error {
    border-bottom: 2px solid var(--error-color) !important;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    position: absolute;
    bottom: -20px;
    left: 16px;
}


.auth-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.btn-auth {
    flex: 1;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-auth:hover {
    box-shadow: 0 6px 15px var(--hover-shadow);
    transform: translateY(-2px);
}

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

.auth-icon {
    transition: transform 0.3s ease;
}

.btn-auth:hover .auth-icon {
    transform: translateX(3px);
}


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

.modal-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 30px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(90deg, rgba(40, 25, 70, 0.9), rgba(50, 35, 80, 0.9));
}

.modal-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #FFA500;
    transform: scale(1.1);
}

.modal-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.btn-modal {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    margin-top: 15px;
    align-self: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-modal:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

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


.modal-form .input-container {
    position: relative;
    margin-bottom: 15px;
}

.modal-form input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background-color: rgba(26, 13, 46, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.modal-form label {
    top: 12px;
    left: 16px;
    color: var(--placeholder-color);
    transition: all 0.3s ease;
}

.modal-form input:focus ~ label,
.modal-form input:not(:placeholder-shown) ~ label {
    top: -28px;
    left: 10px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}


.btn-auth,
.btn-modal {
    position: relative;
    overflow: hidden;
}

.btn-auth:after,
.btn-modal:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-auth:focus:not(:active)::after,
.btn-modal:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}


@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .btn-auth {
        padding: 12px 8px;
        font-size: 14px;
    }

    .modal-form {
        padding: 20px;
    }

    .btn-modal {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
}
.main-header {
    background: linear-gradient(135deg, #1A0D2E 0%, #2A1B4A 100%);
    color: var(--text-color);
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 30px;
    position: absolute;
    animation: fadeInDown 0.5s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(180deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 25px 15px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 30px;
}

.topbar-nav {
    display: flex;
    align-items: center;
}

.topbar-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    font-size: 14px;
    background: transparent;
}

.topbar-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--hover-shadow);
}

.topbar-item i {
    font-size: 16px;
    margin-right: 8px;
}

.support-link {
    background-color: rgba(37, 211, 102, 0.1);
}

.support-link:hover {
    background-color: rgba(37, 211, 102, 0.2);
}

.wallet-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.user-menu {
    position: relative;
}

.user-btn {
    background-color: rgba(255, 215, 0, 0.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    z-index: 10;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-modal.show {
    display: flex; 
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 30px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.payment-modal.show .payment-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.payment-close-modal {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 20px;
    top: 15px;
}

.payment-close-modal:hover {
    color: #FFA500;
    transform: scale(1.1);
}

#paymentForm .input-container {
    margin-bottom: 25px;
}

.saved-card-container {
    padding: 20px 30px 30px;
}

.saved-card {
    background: linear-gradient(135deg, rgba(40, 25, 70, 0.9) 0%, rgba(60, 40, 100, 0.9) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 15px;
}

.card-details {
    flex-grow: 1;
}


.card-number {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.eye-btn {
    position: absolute;
    right: 35px;
    top: 0;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.2s ease;
    z-index: 10;
}

.card-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
}

.new-card-btn {
    display: none !important;
}

.card-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.card-expiry, .card-cvv {
    display: inline-block;
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-action-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.delete-btn:hover {
    color: #ff4136;
}

.new-card-btn {
    display: none !important;
}

.form-row {
    display: flex;
    gap: 15px;
}

.input-container.half {
    flex: 1;
}

.btn-modal {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    margin-top: 10px;
    width: 100%;
}

.btn-modal:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-modal .arrow-icon {
    transition: transform 0.3s ease;
}

.btn-modal:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-modal:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-modal:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1A0D2E 0%, #2A1B4A 100%);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        padding: 15px 0;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .topbar-item {
        padding: 6px 12px;
        margin-left: 8px;
        font-size: 13px;
    }

    .topbar-item i {
        font-size: 14px;
        margin-right: 6px;
    }

    .wallet-text {
        display: none;
    }

    .user-btn span {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 5px;
    }

    .payment-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

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

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

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

