:root {
    --primary: #8a4fff;
    --primary-light: #b08cff;
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e6;
    --text-dim: #a0a0b0;
    --accent-gold: #f8c948;
    --gold-gradient: linear-gradient(135deg, #f8c948 0%, #d4a017 100%);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-gold {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-item-premium {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item-premium:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-premium.active {
    color: var(--primary-light);
    background: rgba(138, 79, 255, 0.1);
}

.profile-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: #050507;
    /* Even darker background for the sides */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
}

.app-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}


.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
}

input,
button {
    outline: none;
    border: none;
}

input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

button.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(138, 79, 255, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 79, 255, 0.4);
}

button.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

button.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    color: white;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    z-index: 2000;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 85px;
    /* Offset for fixed header */
}

.auth-form {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.modal-btn-confirm {
    background: var(--primary);
    color: white;
}

.modal-btn-confirm:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-bright);
}