﻿/* Authentication Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.auth-modal-content {
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #40e0d0;
}

.auth-logo i {
    font-size: 20px;
    color: #40e0d0;
    filter: drop-shadow(0 0 8px rgba(64, 224, 208, 0.5));
}

.auth-close-btn {
    background: none;
    border: none;
    color: #a8afc4;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-close-btn:hover {
    background: rgba(64, 224, 208, 0.1);
    color: #e0e6ed;
}

.auth-body {
    padding: 24px;
}

.auth-form-container h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #e0e6ed;
}

.auth-form-container p {
    margin: 0 0 32px 0;
    color: #a8afc4;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #e0e6ed;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.8);
    color: #e0e6ed;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a8afc4;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.password-toggle:hover {
    color: #40e0d0;
    background: rgba(64, 224, 208, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
    background: rgba(15, 15, 35, 1);
}

.form-group input::placeholder {
    color: #a8afc4;
}

.auth-submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(64, 224, 208, 0.3);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(64, 224, 208, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #a8afc4;
}

.auth-footer a {
    color: #40e0d0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #64ffda;
}

/* User Profile Updates */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.user-profile:hover {
    background: var(--bg-secondary);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-hover);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    z-index: 1000;
    margin-top: 4px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-item.upgrade {
    color: #ffe083;
}

.user-menu-item.upgrade i {
    color: #f2c94c;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
}

.user-menu-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

.user-menu-plan-row strong {
    color: #7df6da;
    font-size: 12px;
    font-weight: 700;
}

.user-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-menu .user-menu-plan-row + .user-menu-item {
    border-radius: 0;
}

.billing-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10040;
}

.billing-modal.show {
    display: flex;
}

.billing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(6px);
}

.billing-modal-panel {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(127, 208, 255, 0.28);
    background: radial-gradient(circle at top right, rgba(43, 118, 255, 0.24), rgba(8, 13, 37, 0.98) 40%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    color: #eef6ff;
    padding: 22px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-color: #00d4aa;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.05));
}

.notification-success i {
    color: #00d4aa;
}

.notification-error {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

.notification-error i {
    color: #ff6b6b;
}

.notification-info {
    border-color: #40e0d0;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(64, 224, 208, 0.05));
}

.notification-info i {
    color: #40e0d0;
}

.notification i {
    font-size: 16px;
}

.notification span {
    font-size: 14px;
    color: #e0e6ed;
    font-weight: 500;
}
