/* =================================================================
   AURORANOVA AUTH & MEMBER SYSTEM STYLES
   ================================================================= */

/* -----------------------------------------------------------------
   NAV AUTH AREA
   ----------------------------------------------------------------- */
.nav-auth {
    width: 100%;
    padding: 8px 0 0 0;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-secondary, #E0E0E0);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    min-height: 44px;
}

.nav-auth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(151, 179, 232, 0.4);
    color: #fff;
}

.nav-auth-profile {
    justify-content: flex-start;
    gap: 10px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(151, 179, 232, 0.5);
    flex-shrink: 0;
}

#navUserName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

/* -----------------------------------------------------------------
   AUTH MODAL (Login)
   ----------------------------------------------------------------- */
#auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-box {
    position: relative;
    z-index: 1;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: rgba(20, 20, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(151, 179, 232, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    animation: authBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authBoxIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.auth-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-purple, #7B5A99), var(--secondary-blue, #97B3E8));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.auth-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.auth-box > p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Google Sign-In Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.google-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.google-btn:active {
    background: #eee;
}

.google-btn svg {
    flex-shrink: 0;
}

.auth-error {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #ff7675;
    min-height: 18px;
    line-height: 1.4;
}

.auth-divider {
    margin: 20px 0 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

/* -----------------------------------------------------------------
   MEMBER DASHBOARD MODAL
   ----------------------------------------------------------------- */
#member-dashboard {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dashboard-box {
    position: relative;
    z-index: 1;
    width: 520px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(15, 15, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: authBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    background: rgba(15, 15, 30, 0.95);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.dashboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(151, 179, 232, 0.4);
    flex-shrink: 0;
}

.dashboard-user-info {
    flex: 1;
    min-width: 0;
}

.dashboard-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-email {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dashboard-signout-btn {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.dashboard-signout-btn:hover {
    background: rgba(255, 99, 99, 0.15);
    color: #ff7675;
    border-color: rgba(255, 99, 99, 0.3);
}

.dashboard-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.dashboard-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.dashboard-body {
    padding: 24px;
}

.dashboard-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(151, 179, 232, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

/* Empty state */
.dashboard-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.dashboard-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.dashboard-empty p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* Product cards (rendered dynamically) */
.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-purple, #7B5A99), var(--secondary-blue, #97B3E8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-card-info {
    flex: 1;
    min-width: 0;
}

.product-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.product-card-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.product-card-status.active {
    color: #55efc4;
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 480px) {
    .auth-box {
        padding: 28px 20px 24px;
    }

    .dashboard-header {
        padding: 18px 16px 16px;
        gap: 10px;
    }

    .dashboard-body {
        padding: 16px;
    }

    .dashboard-signout-btn span {
        display: none;
    }
}
