@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0b071e 0%, #170d30 50%, #05030f 100%);
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.4);
    --secondary: #ff007f;
    --secondary-glow: rgba(255, 0, 127, 0.4);
    --accent: #240046;
    --accent-light: #e0aaff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-card: rgba(15, 10, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(157, 78, 221, 0.6);
    --text-main: #f3f0fc;
    --text-muted: #b5a9df;
    --success: #00f5d4;
    --error: #ff5d8f;
    --warning: #ffb703;
    --info: #00b4d8;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 10, 30, 0.5);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1.5rem;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #e0aaff, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: var(--glass-bg);
}

.nav-btn {
    background: linear-gradient(90deg, var(--primary) 0%, #7b2cbf 100%);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;      
    justify-content: center;   
    gap: 0.4rem;
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

/* Container */
.container {
    max-width: 1200px;
    width: calc(100% - 3rem);
    margin: 0 auto 3rem auto;
    flex: 1;
}

/* Auth Cards */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Catalog section */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    padding-right: 3rem;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    list-style-type: none;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs li {
    display: inline-block;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.category-tab.active {
    background: linear-gradient(90deg, var(--primary) 0%, #7b2cbf 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px var(--primary-glow);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    margin-left: 0.4rem;
    font-weight: 600;
    transition: var(--transition);
}

.category-tab:hover .tab-count {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.2);
}

.category-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* PDF Card Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem;
}

.pdf-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pdf-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 12px 40px 0 rgba(157, 78, 221, 0.15);
}

.pdf-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 93, 143, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.pdf-card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--accent-light);
    background: rgba(157, 78, 221, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.pdf-card-cover-container {
    width: 100%;
    height: 170px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.pdf-cover-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pdf-cover-placeholder {
    color: var(--error);
    font-size: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pdf-cover-placeholder span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Bookshelf Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.page-link:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.page-link.active {
    background: linear-gradient(90deg, var(--primary) 0%, #7b2cbf 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px var(--primary-glow);
}

.page-link.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.pdf-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.pdf-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-card-footer {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: auto;
}

.btn-read {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-read:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-download {
    background: linear-gradient(90deg, var(--primary) 0%, #7b2cbf 100%);
    color: #fff;
    border: none;
    padding: 0.65rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    transform: scale(1.05);
}

.btn-download.disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-free {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.badge-paid {
    background: rgba(0, 245, 212, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.badge-admin {
    background: rgba(255, 183, 3, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 183, 3, 0.3);
}

/* User Profile & Membership Status Panel */
.profile-card {
    padding: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.limit-stat {
    min-width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.limit-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success);
}

/* Visual Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #00b4d8 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Recent Downloads Panel Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.history-panel {
    padding: 1.5rem;
    height: fit-content;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-item {
    padding: 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-item-title {
    font-weight: 500;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Stat Cards (Admin Dashboard Header) */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.stat-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.stat-card-icon.primary {
    background: rgba(157, 78, 221, 0.12);
    color: var(--primary);
    border: 1px solid rgba(157, 78, 221, 0.25);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}

.stat-card-icon.secondary {
    background: rgba(255, 0, 127, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(255, 0, 127, 0.25);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.1);
}

.stat-card-icon.success {
    background: rgba(0, 245, 212, 0.12);
    color: var(--success);
    border: 1px solid rgba(0, 245, 212, 0.25);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.1);
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Admin Dashboard layout */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin lists & tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-inline .form-control {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Messages & Alerts */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 245, 212, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.alert-danger {
    background: rgba(255, 93, 143, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 93, 143, 0.3);
}

/* PDF Custom Reader layout */
.reader-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    margin: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
}

.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1rem;
}

.reader-title {
    font-weight: 600;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.reader-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.reader-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reader-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reader-page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reader-viewarea {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

#pdf-canvas {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: white;
}

/* Modal Upgrade popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 3, 15, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .limit-stat {
        text-align: left;
    }
    
    .reader-toolbar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
    }
    
    .reader-title {
        max-width: 100%;
    }
}

/* ==========================================================================
   FOMO CAMPAIGN & SOCIAL PROOF ALERTS
   ========================================================================== */

/* Pulse animation for active badges */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 127, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0);
    }
}

/* FOMO banner */
.fomo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    border-top: 2px solid var(--secondary);
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: rgba(15, 10, 30, 0.95);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fomo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.fomo-badge {
    background: linear-gradient(90deg, var(--secondary) 0%, #d90429 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.65;
    }
}

.fomo-banner-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fomo-banner-text strong {
    font-size: 1rem;
    color: var(--text-main);
}

.fomo-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fomo-stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 250px;
}

.fomo-counter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.fomo-spots {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fomo-btn {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%) !important;
    box-shadow: 0 0 15px var(--secondary-glow) !important;
    border: none;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.fomo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px var(--secondary-glow) !important;
}

.fomo-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.3rem;
    transition: var(--transition);
}

.fomo-close-btn:hover {
    color: var(--text-main);
}

/* Social Proof Upgrade Notifications (Toast) */
.live-upgrade-toast {
    position: fixed;
    bottom: 90px; /* Above the fomo banner */
    left: 24px;
    z-index: 998;
    max-width: 380px;
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 245, 212, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toast-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.toast-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

/* Animations for slide-in / slide-out */
.toast-slide-in {
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-slide-out {
    animation: toastOut 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(-150%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(-150%) scale(0.8);
        opacity: 0;
    }
}

/* Media Query overrides for Banner layout */
@media (max-width: 992px) {
    .fomo-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-right: 2rem;
    }
    
    .fomo-close-btn {
        position: absolute;
        top: -5px;
        right: -10px;
    }
    
    .fomo-stats {
        width: 100%;
        min-width: 100%;
    }
    
    .fomo-btn {
        width: 100%;
        text-align: center;
    }
    
    .live-upgrade-toast {
        bottom: 240px;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Password Toggle Wrapper & Icons */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control {
    padding-right: 2.8rem;
}
.password-toggle-icon {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.1rem;
    z-index: 10;
}
.password-toggle-icon:hover {
    color: var(--text-main);
}

