:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #3b82f6;
    --secondary: #a855f7;
    --text: #ffffff;
    --text-dim: #9ca3af;
    --silver: #cbd5e1;
    --gold: #fde047;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.premium-tag {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.user-status {
    display: flex;
    align-items: center;
}

.nav-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px 6px 6px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-name-wrapper {
    display: flex;
    flex-direction: column;
}

#user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    font-size: 0.7rem;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-weight: 600;
}

.logout-btn:hover {
    color: #ef4444;
}

main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.pricing {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.card {
    position: relative;
    width: 380px;
    background: var(--card-bg);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured {
    border: 1px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gold);
    color: black;
    padding: 4px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 900;
}

.tier-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.silver {
    background: rgba(203, 213, 225, 0.1);
    color: var(--silver);
}

.gold {
    background: rgba(253, 224, 71, 0.1);
    color: var(--gold);
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 32px;
}

.price span {
    font-size: 1rem;
    color: var(--text-dim);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.check {
    color: var(--primary);
}

.gold-check {
    color: var(--gold);
}

.pay-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.plus {
    background: var(--text);
    color: black;
}

.elite {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: black;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #111;
    width: 90%;
    max-width: 440px;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.modal-subtitle {
    color: var(--text-dim);
    margin-top: 8px;
    margin-bottom: 32px;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.google-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: white;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.google-btn:hover {
    background: #f5f5f5;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    margin-bottom: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

.phone-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.otp-inputs {
    margin-bottom: 24px;
}

.otp-inputs input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 900;
}

.resend-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    width: 100%;
}

.hidden {
    display: none !important;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-notice {
    margin: 60px auto;
    padding: 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    max-width: 600px;
}

footer {
    padding: 80px 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.small {
    font-size: 0.75rem;
    margin-top: 8px;
}

@media (max-width: 800px) {
    header h1 {
        font-size: 2.8rem;
    }

    .card {
        width: 100%;
    }
}