/* Auth Section Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-credits {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary);
}

.user-credits .material-symbols-rounded {
    font-size: 18px;
}

.btn-topup {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: black;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-topup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-topup .material-symbols-rounded {
    font-size: 18px;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all 0.2s;
}

.user-avatar:hover {
    border-color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info-dropdown {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-info-dropdown strong {
    display: block;
    margin-bottom: 0.25rem;
}

.user-info-dropdown span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.user-dropdown a .material-symbols-rounded {
    font-size: 18px;
}

/* Credits info in modal */
.credits-info {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.credits-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.credits-row:last-child {
    border-bottom: none;
}

.credits-row.total {
    font-size: 1.1rem;
    color: var(--primary);
}

.insufficient-credits {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ef4444;
}

.insufficient-credits .material-symbols-rounded {
    font-size: 28px;
    margin-bottom: 0.5rem;
}

.insufficient-credits a {
    color: var(--primary);
}

.login-required {
    text-align: center;
    padding: 2rem;
}

.login-required .material-symbols-rounded {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.login-required p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}