/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00d26a;
    --primary-dark: #00b058;
    --secondary: #ff006e;
    --accent: #8338ec;
    --bg: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --gradient-1: #00d26a;
    --gradient-2: #00b894;
    --shadow: 0 8px 32px rgba(0, 210, 106, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="pink"] {
    --primary: #ff006e;
    --primary-dark: #d6005c;
    --gradient-1: #ff006e;
    --gradient-2: #8338ec;
    --shadow: 0 8px 32px rgba(255, 0, 110, 0.15);
}

[data-theme="orange"] {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --gradient-1: #ff6b35;
    --gradient-2: #f7931e;
    --shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

[data-theme="cyan"] {
    --primary: #00d4ff;
    --primary-dark: #00b8e6;
    --gradient-1: #00d4ff;
    --gradient-2: #0099cc;
    --shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 210, 106, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 210, 106, 0.6); }
}

@keyframes progress {
    from { width: 0%; }
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

/* ===== AUTH SCREEN ===== */
#auth-screen {
    background: linear-gradient(180deg, #0d0d1a 0%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: float 3s ease infinite;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 210, 106, 0.4));
}

.logo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid var(--border);
}

.toggle-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    font-family: inherit;
}

.toggle-btn.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50px;
    transition: var(--transition);
    z-index: 1;
    box-shadow: var(--shadow);
}

.toggle-btn:last-child.active ~ .toggle-slider {
    left: 50%;
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.1);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-right: 12px;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.eye-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-btn svg {
    width: 20px;
    height: 20px;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: var(--transition);
}

.strength-fill.weak { width: 33%; background: #ff4757; }
.strength-fill.medium { width: 66%; background: #ffa502; }
.strength-fill.strong { width: 100%; background: var(--primary); }

#strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.checkbox-wrapper input:checked + .checkmark::after {
    display: block;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-wrapper.terms {
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 210, 106, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 16px;
}

.btn-guest {
    width: 100%;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--text);
}

.btn-guest svg {
    width: 20px;
    height: 20px;
}

/* ===== MAIN APP ===== */
#main-screen {
    background: var(--bg);
    padding-bottom: 90px;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-btn, .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.menu-btn:hover, .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.menu-btn svg, .icon-btn svg {
    width: 20px;
    height: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-logo svg {
    width: 28px;
    height: 28px;
}

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

.icon-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.avatar-btn {
    border-color: var(--primary);
    background: rgba(0, 210, 106, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 1.2rem;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.close-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-nav {
    padding: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 210, 106, 0.1);
    color: var(--primary);
}

.nav-item.logout {
    color: #ff4757;
}

.nav-item.logout:hover {
    background: rgba(255, 71, 87, 0.1);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Main Content */
.main-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Welcome Card */
.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(20px);
    animation: fadeIn 0.5s ease;
}

.welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    animation: glow 2s ease infinite;
}

.welcome-avatar svg {
    width: 28px;
    height: 28px;
}

.welcome-info {
    flex: 1;
}

.welcome-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.welcome-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* Sync Card */
.sync-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(20px);
    animation: fadeIn 0.5s ease 0.1s both;
}

.sync-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sync-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sync-icon svg {
    width: 28px;
    height: 28px;
}

.sync-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sync-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.btn-sync {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow);
    letter-spacing: 2px;
}

.btn-sync:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 210, 106, 0.3);
}

.btn-sync:active {
    transform: translateY(0);
}

.btn-sync.syncing {
    animation: pulse 1s ease infinite;
}

.sync-spin {
    width: 20px;
    height: 20px;
}

.syncing .sync-spin {
    animation: spin 1s linear infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.5s ease 0.2s both;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card-value small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-card-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Activities */
.activities-section {
    animation: fadeIn 0.5s ease 0.3s both;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 210, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.activity-icon svg {
    width: 22px;
    height: 22px;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Rooms Section */
.rooms-section {
    animation: fadeIn 0.3s ease;
}

.btn-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.room-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.room-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-icon svg {
    width: 24px;
    height: 24px;
}

.room-info {
    flex: 1;
}

.room-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.room-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.room-users {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.content-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.content-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.content-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-thumb svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.content-info {
    padding: 12px;
}

.content-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Profile Section */
.profile-section {
    animation: fadeIn 0.3s ease;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
    animation: glow 2s ease infinite;
}

.profile-avatar-large svg {
    width: 48px;
    height: 48px;
}

.profile-card h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.profile-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.profile-stats > div {
    text-align: center;
}

.profile-stats span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stats label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    padding: 8px 16px 20px;
    z-index: 100;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link svg {
    width: 22px;
    height: 22px;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.nav-center {
    position: relative;
    top: -20px;
}

.center-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: glow 2s ease infinite;
}

.center-btn svg {
    width: 26px;
    height: 26px;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.3rem;
}

/* Creators Modal */
.creators-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.creators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.creator-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.creator-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.creator-avatar svg {
    width: 24px;
    height: 24px;
}

.creator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creator-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.creator-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.creators-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.creators-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.heart {
    color: #ff4757;
}

.version {
    color: var(--primary) !important;
    font-weight: 700;
    margin-top: 8px;
    font-size: 1rem !important;
}

/* Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.setting-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-radius: 28px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.setting-item select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    z-index: 400;
    opacity: 0;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .main-content {
        max-width: 700px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 380px) {
    .welcome-stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .bottom-nav {
        padding: 6px 8px 16px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.65rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: rgba(0, 210, 106, 0.3);
    color: white;
}
