/* TTAkademija TikTok Niche Finder - Main Stylesheet */

/* ========== CSS VARIABLES ========== */
:root {
    --bg-primary: #121421;
    --bg-secondary: #1a1a2e;
    --bg-card: #232323;
    --bg-card-hover: #2a2a3a;
    --accent-purple: #c664ff;
    --accent-blue: #2f57ef;
    --gradient-purple: linear-gradient(135deg, #c664ff 0%, #2f57ef 100%);
    --gradient-purple-hover: linear-gradient(135deg, #d47fff 0%, #4a6ff7 100%);
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --text-muted: #6b6b7b;
    --border-color: #645b5b;
    --border-light: #3a3a4a;
    --shadow-card: rgba(76, 76, 109, 0.2) 12px 11px 34px 11px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --font-primary: 'Urbanist', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
    --sidebar-width: 240px;
}

/* ========== RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.brand-icon {
    display: none;
}

.nav-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-link {
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(198, 100, 255, 0.06);
}

.nav-link.active {
    background: rgba(198, 100, 255, 0.1);
    color: var(--accent-purple);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-username {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-logout {
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #121421;
    border-bottom: 1px solid rgba(148,163,184,0.06);
    z-index: 999;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.mobile-nav.open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.mobile-link:hover {
    background: rgba(198, 100, 255, 0.1);
    color: var(--text-primary);
}

/* ========== NAV DROPDOWN ========== */
.nav-dropdown { position:relative; }
.nav-dropdown-menu { display:none; position:absolute; top:100%; left:0; min-width:210px; background:rgba(30,30,50,0.9); backdrop-filter:blur(20px); border:1px solid rgba(148,163,184,0.08); border-radius:14px; padding:6px; box-shadow:0 16px 48px rgba(0,0,0,0.3); z-index:1001; padding-top:12px; }
.nav-dropdown:hover .nav-dropdown-menu { display:block; animation:fadeInUp 0.2s ease-out; }
.nav-dropdown.open .nav-dropdown-menu { display:block; }
.nav-dropdown-item { display:flex; align-items:center; gap:10px; padding:10px 14px; color:var(--text-secondary); border-radius:var(--radius-sm); font-size:0.85rem; font-weight:500; transition:var(--transition); text-decoration:none; }
.nav-dropdown-item:hover, .nav-dropdown-item.active { background:rgba(198,100,255,0.1); color:var(--text-primary); }
.nav-dropdown-item i { width:18px; text-align:center; color:var(--accent-purple); }

/* ========== MAIN CONTENT ========== */
.main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    overflow-x: hidden;
}

.auth-page .main-content {
    padding-top: 0;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.auth-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(198, 100, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(47, 87, 239, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(198, 100, 255, 0.08) 0%, transparent 50%),
        var(--bg-primary);
    animation: authPulse 8s ease-in-out infinite alternate;
}

@keyframes authPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(198, 100, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 100, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: rgba(35, 35, 35, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.6s ease-out;
}

.auth-logo {
    display: block;
    margin: 0 auto 24px;
    height: 48px;
    width: auto;
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

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

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch a {
    font-weight: 600;
}

/* ========== DISCORD BUTTON ========== */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #5865F2;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    text-decoration: none;
    margin-top: 16px;
}

.discord-btn:hover {
    background: #4752C4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-btn i {
    font-size: 1.1rem;
}

/* ========== FORMS ========== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    font-size: 0.8rem;
    color: var(--accent-purple);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(198, 100, 255, 0.15);
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 100, 255, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 100, 255, 0.4);
    color: white;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== ALERTS ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.3);
    color: #51cf66;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 240px;
    background: rgba(18,20,33,0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(148,163,184,0.06);
    padding: 16px 14px;
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-title {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-title i {
    color: var(--accent-purple);
    font-size: 0.7rem;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148,163,184,0.08);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: rgba(198,100,255,0.4);
    box-shadow: 0 0 0 3px rgba(198,100,255,0.06);
    background: rgba(198,100,255,0.03);
}

.filter-group select option {
    background: var(--bg-card);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-btn {
    padding: 5px 11px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.08);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: rgba(198,100,255,0.25);
    color: var(--text-secondary);
    background: rgba(198,100,255,0.04);
}

.filter-btn.active {
    background: rgba(198,100,255,0.1);
    border-color: rgba(198,100,255,0.3);
    color: var(--accent-purple);
    font-weight: 600;
}

/* Advanced filters collapsible */
.filter-toggle {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    user-select: none;
}

.filter-toggle:hover span {
    color: var(--accent-purple);
}

.filter-toggle i {
    transition: transform 0.2s ease;
}

.filter-group.open .filter-toggle i {
    transform: rotate(180deg);
}

.advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-toggle.open i {
    transform: rotate(180deg);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding-left: 32px !important;
}

.search-input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.btn-reset-filters {
    width: 100%;
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(148,163,184,0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-secondary);
}

.btn-reset-filters:hover {
    border-color: rgba(198,100,255,0.3);
    color: var(--accent-purple);
    background: rgba(198,100,255,0.03);
}

/* ========== CONTENT AREA ========== */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
}

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

.content-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.content-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.content-count span {
    color: var(--accent-purple);
    font-weight: 600;
}

/* ========== TRENDING SECTION ========== */
.trending-section {
    margin-bottom: 20px;
}

.trending-block {
    background: rgba(30,30,50,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 18px;
    padding: 18px 20px;
}

.trending-title {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trending-title i {
    color: var(--accent-purple);
    font-size: 0.78rem;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trending-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: rgba(198,100,255,0.04);
    border: 1px solid rgba(198,100,255,0.08);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.trending-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 24px;
}

.trending-tag:hover {
    border-color: rgba(198,100,255,0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(198,100,255,0.15);
}

.trending-tag:hover::before {
    opacity: 0.12;
}

.trending-tag.keyword {
    background: rgba(198,100,255,0.05);
    border-color: rgba(198,100,255,0.12);
}

.trending-tag.keyword:hover {
    border-color: rgba(198,100,255,0.4);
    color: white;
}

.trending-tag-name {
    font-weight: 600;
    color: var(--accent-purple);
    position: relative;
    z-index: 1;
}

.trending-tag:hover .trending-tag-name {
    color: white;
}

.trending-tag.keyword .trending-tag-name {
    color: var(--accent-purple);
}

.trending-tag-views {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.trending-tag-change {
    font-size: 0.7rem;
    font-weight: 600;
}

.trending-tag-change.up {
    color: #51cf66;
}

.trending-tag-change.down {
    color: #ff6b6b;
}

/* ========== NICHE CARDS GRID ========== */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.niche-card {
    background: rgba(30,30,50,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    position: relative;
}

.niche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(198,100,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.niche-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 100, 255, 0.2);
    box-shadow: 0 16px 48px rgba(198, 100, 255, 0.08), 0 4px 12px rgba(0,0,0,0.2);
}

.niche-card:hover::before {
    opacity: 1;
}

.niche-card-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(198, 100, 255, 0.15), rgba(47, 87, 239, 0.15));
}

.niche-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.niche-card:hover .niche-card-cover img {
    transform: scale(1.06);
}

.niche-card-cover .cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gradient-purple);
    opacity: 0.3;
}

.niche-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10,11,20,0.85);
    backdrop-filter: blur(12px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

.niche-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10,11,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.niche-favorite-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.niche-favorite-btn.favorited {
    color: #ff6b6b;
    animation: heartBounce 0.4s ease;
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.niche-card-body {
    padding: 20px;
}

.niche-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.niche-hashtag {
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.niche-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.niche-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.niche-stat i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.niche-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Trend Direction Badge */
.trend-dir { position:absolute; top:12px; left:12px; right:auto; padding:3px 10px; border-radius:20px; font-size:0.68rem; font-weight:600; display:flex; align-items:center; gap:4px; backdrop-filter:blur(8px); z-index:5; }
.trend-dir.rising { background:rgba(81,207,102,0.2); color:#51cf66; border:1px solid rgba(81,207,102,0.3); }
.trend-dir.falling { background:rgba(255,107,107,0.2); color:#ff6b6b; border:1px solid rgba(255,107,107,0.3); }
.trend-dir.stable { background:rgba(255,212,59,0.2); color:#ffd43b; border:1px solid rgba(255,212,59,0.3); }

/* Category badge repositioned */
.niche-category-badge { top:auto; bottom:12px; }

/* Viral ratio row */
.niche-viral-row { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.viral-ratio { font-size:0.72rem; color:var(--accent-purple); font-weight:600; }

/* Stat label */
.niche-stat .stat-label { font-size:0.6rem; color:var(--text-muted); margin-left:2px; }

/* Trend Score Bar */
.trend-bar-container {
    margin-bottom: 12px;
}

.trend-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.trend-bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.trend-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trend-bar {
    height: 5px;
    background: rgba(148,163,184,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.trend-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(198,100,255,0.15);
}

.trend-low { background: #ff6b6b; }
.trend-medium { background: #ffd43b; }
.trend-high { background: #51cf66; }
.trend-very-high { background: linear-gradient(90deg, #51cf66, #20c997); }

/* Badges */
.niche-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.badge-monetization-low { background: rgba(108, 117, 125, 0.2); color: #adb5bd; }
.badge-monetization-medium { background: rgba(47, 87, 239, 0.15); color: #5c8aff; }
.badge-monetization-high { background: rgba(198, 100, 255, 0.15); color: #c664ff; }
.badge-monetization-very_high { background: linear-gradient(135deg, rgba(255, 212, 59, 0.2), rgba(255, 169, 77, 0.2)); color: #ffd43b; }

.badge-saturation-low { background: rgba(81, 207, 102, 0.15); color: #51cf66; }
.badge-saturation-medium { background: rgba(255, 212, 59, 0.15); color: #ffd43b; }
.badge-saturation-high { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

/* ========== NICHE DETAIL PAGE ========== */
.niche-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.niche-detail-hero {
    text-align: center;
    margin-bottom: 40px;
}

.niche-detail-hero h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.niche-detail-hero .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(198, 100, 255, 0.1);
    border: 1px solid rgba(198, 100, 255, 0.2);
    border-radius: 20px;
    color: var(--accent-purple);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.niche-detail-hero .hashtag {
    font-size: 1.2rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-purple);
}

.stat-card-value {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    color: var(--accent-purple);
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.video-card-cover {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.video-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-plays {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-card-body {
    padding: 14px;
}

.video-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.video-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.video-card-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-stats {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.video-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Related niches */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ========== FAVORITES PAGE ========== */
.favorites-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.favorites-page h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-page h1 i {
    color: #ff6b6b;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ========== LANDING PAGE ========== */
.landing-hero {
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
}

.landing-hero h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.landing-hero h1 span {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 100, 255, 0.3);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ========== HOT RIGHT NOW BANNER ========== */
.hot-banner {
    background: linear-gradient(135deg, rgba(198,100,255,0.04), rgba(47,87,239,0.04));
    border: 1px solid rgba(198,100,255,0.1);
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hot-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(198,100,255,0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(47,87,239,0.04) 0%, transparent 50%);
    animation: hotShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hotShimmer {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(3%,2%); }
}

.hot-banner-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.hot-banner-header h3 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b6b, #ffa07a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hot-fire {
    font-size: 0.9rem;
    display: inline-block;
    animation: fireGlow 1.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15) rotate(5deg); filter: brightness(1.3); }
    100% { transform: scale(1.05) rotate(-3deg); filter: brightness(1.1); }
}

.hot-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.hot-card {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(30,30,50,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148,163,184,0.06);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.hot-card:hover {
    border-color: rgba(198,100,255,0.2);
    background: rgba(198,100,255,0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(198,100,255,0.08);
    color: var(--text-primary);
}

.hot-rank {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 900;
    min-width: 24px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-info {
    flex: 1;
}

.hot-name {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.hot-stats {
    display: flex;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.hot-stats i {
    color: var(--text-muted);
    margin-right: 2px;
    font-size: 0.6rem;
}

.hot-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
}

.hot-card:hover .hot-arrow {
    opacity: 1;
}

/* ========== GOOGLE TRENDS ========== */
.gt-section { margin-bottom:18px; position:relative; }
.gt-title { font-family:var(--font-primary); font-size:0.85rem; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:6px; color:var(--text-secondary); }
.gt-badge { font-size:0.6rem; background:var(--gradient-purple); color:white; padding:2px 8px; border-radius:10px; font-weight:700; }
.gt-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
.gt-card { background:rgba(30,30,50,0.5); backdrop-filter:blur(12px); border:1px solid rgba(148,163,184,0.06); border-radius:16px; overflow:hidden; cursor:pointer; transition:all 0.3s; }
.gt-card:hover { border-color:rgba(66,133,244,0.25); transform:translateY(-3px); box-shadow:0 8px 24px rgba(66,133,244,0.06); }
.gt-card-cover { position:relative; height:80px; overflow:hidden; background:linear-gradient(135deg, rgba(66,133,244,0.06), rgba(52,168,83,0.06)); }
.gt-card-cover img { width:100%; height:100%; object-fit:cover; }
.gt-traffic { position:absolute; top:4px; right:4px; background:rgba(0,0,0,0.7); padding:2px 6px; border-radius:4px; font-size:0.6rem; color:#4285f4; font-weight:600; display:flex; align-items:center; gap:3px; }
.gt-card-body { padding:8px 10px; }
.gt-keyword { font-family:var(--font-primary); font-size:0.8rem; font-weight:700; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gt-stats { display:flex; gap:8px; font-size:0.65rem; color:var(--text-muted); }
.gt-stats i { font-size:0.58rem; }
.gt-locked { position:relative; }
.gt-locked-overlay { position:absolute; inset:30px 0 0 0; display:flex; align-items:center; justify-content:center; z-index:5; }
.gt-locked-content { text-align:center; }
.gt-locked-content i { font-size:1.5rem; color:var(--accent-purple); margin-bottom:8px; }
.gt-locked-content p { font-size:0.82rem; color:var(--text-secondary); margin-bottom:12px; }
@media (max-width:768px) { .gt-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:480px) { .gt-grid { grid-template-columns:1fr; } }

/* ========== TRENDING VIDEOS SECTION ========== */
.trending-videos-section { margin-bottom:24px; }
.trending-videos-title { font-family:var(--font-primary); font-size:1rem; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.trending-videos-title i { color:#ff6b6b; }
.trending-videos-title span { font-size:0.75rem; font-weight:400; color:var(--text-muted); }
.trending-videos-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:10px; }
.trending-video-card { background:var(--bg-card); border:1px solid var(--border-light); border-radius:var(--radius-md); overflow:hidden; transition:var(--transition); text-decoration:none; color:var(--text-primary); }
.trending-video-card:hover { border-color:var(--accent-purple); transform:translateY(-3px); }
.tv-cover { position:relative; aspect-ratio:9/12; overflow:hidden; }
.tv-cover img { width:100%; height:100%; object-fit:cover; }
.tv-plays { position:absolute; bottom:6px; right:6px; background:rgba(0,0,0,0.75); padding:2px 8px; border-radius:4px; font-size:0.7rem; display:flex; align-items:center; gap:3px; }
.tv-niche { position:absolute; top:6px; left:6px; background:rgba(18,20,33,0.8); backdrop-filter:blur(6px); padding:2px 8px; border-radius:12px; font-size:0.65rem; }
.tv-meta { display:flex; justify-content:space-between; padding:6px 8px; font-size:0.68rem; color:var(--text-muted); }
.tv-likes i { color:#ff6b6b; margin-right:2px; }

@media (max-width:1024px) { .trending-videos-grid { grid-template-columns:repeat(4, 1fr); } }
@media (max-width:768px) {
    .trending-videos-section { margin-bottom:16px; }
    .trending-videos-title { font-size:0.9rem; margin-bottom:10px; }
    .trending-videos-title span { display:none; }
    .trending-videos-grid { grid-template-columns:repeat(4, 1fr); gap:6px; }
    .trending-video-card { border-radius:8px; }
    .tv-cover { aspect-ratio:9/13; }
    .tv-plays { font-size:0.6rem; padding:1px 5px; bottom:4px; right:4px; }
    .tv-niche { font-size:0.55rem; padding:1px 5px; top:4px; left:4px; }
    .tv-meta { padding:4px 6px; font-size:0.6rem; }
}
@media (max-width:480px) {
    .trending-videos-grid { grid-template-columns:repeat(3, 1fr); gap:5px; }
    .tv-niche { display:none; }
    .tv-meta .tv-time { display:none; }
}

/* ========== CARD ACTIONS (Share, Compare) ========== */
.niche-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.card-action-btn {
    flex: 1;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.card-action-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.card-action-btn.compare-active {
    background: rgba(198,100,255,0.15);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* ========== SEARCH SUGGESTIONS ========== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-suggestions.open { display: block; }

.search-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.search-suggestion-item:last-child { border: none; }
.search-suggestion-item:hover { background: rgba(198,100,255,0.08); }

.search-suggestion-item .suggestion-icon { font-size: 1rem; }
.search-suggestion-item .suggestion-name { flex:1; }
.search-suggestion-item .suggestion-hashtag { font-size:0.75rem; color:var(--accent-purple); }

/* ========== COMPARE MODAL ========== */
.compare-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.compare-overlay.open { display: flex; }

.compare-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.compare-header h2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.compare-body {
    padding: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}

.compare-table th {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}

.compare-table .compare-niche-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
}

.compare-best {
    color: #51cf66;
    font-weight: 700;
}

/* ========== COMPARE FAB ========== */
.compare-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    animation: fadeInUp 0.3s ease-out;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Light theme overrides */
body.light-theme {
    --bg-primary: #f5f5f7;
    --bg-secondary: #eeeef0;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f2;
    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #888899;
    --border-color: #d0d0d8;
    --border-light: #e0e0e8;
    --shadow-card: rgba(0,0,0,0.08) 0 4px 20px;
}

body.light-theme .navbar {
    background: rgba(245,245,247,0.9);
}

body.light-theme .mobile-nav {
    background: #f5f5f7;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

body.light-theme .sidebar {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(16px);
    border-right-color: rgba(0,0,0,0.04);
}

body.light-theme .filter-btn {
    border-color: rgba(0,0,0,0.06);
    color: #64748b;
    background: rgba(0,0,0,0.01);
}

body.light-theme .filter-btn.active {
    background: rgba(198,100,255,0.08);
    border-color: rgba(198,100,255,0.25);
}

body.light-theme .filter-group select,
body.light-theme .filter-group input[type="text"] {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.08);
}

body.light-theme .filter-group select:focus,
body.light-theme .filter-group input[type="text"]:focus {
    background: white;
    border-color: rgba(198,100,255,0.4);
}

body.light-theme .niche-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.05);
}

body.light-theme .niche-card:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(198,100,255,0.2);
    box-shadow: 0 16px 48px rgba(198,100,255,0.06);
}

body.light-theme .niche-category-badge {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-color: rgba(0,0,0,0.06);
}

body.light-theme .niche-favorite-btn {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.06);
}

body.light-theme .trend-bar {
    background: rgba(0,0,0,0.04);
}

body.light-theme .gt-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.05);
}

body.light-theme .gt-card:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(66,133,244,0.2);
}

body.light-theme .nav-title {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .niche-category-badge {
    background: rgba(255,255,255,0.9);
    color: #333;
}

body.light-theme .niche-favorite-btn {
    background: rgba(255,255,255,0.9);
}

body.light-theme .video-card-plays {
    background: rgba(0,0,0,0.7);
    color: white;
}

body.light-theme .hot-banner {
    background: linear-gradient(135deg, rgba(198,100,255,0.03), rgba(47,87,239,0.03));
    border-color: rgba(198,100,255,0.08);
}

body.light-theme .hot-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.04);
}

body.light-theme .hot-card:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(198,100,255,0.2);
    box-shadow: 0 8px 24px rgba(198,100,255,0.05);
}

body.light-theme .hot-name {
    color: #1a1a2e;
}

body.light-theme .trending-block {
    background: rgba(255,255,255,0.6);
    border-color: rgba(0,0,0,0.04);
}

body.light-theme .trending-tag {
    background: rgba(198,100,255,0.03);
    border-color: rgba(198,100,255,0.08);
}

body.light-theme .trending-tag:hover {
    background: rgba(198,100,255,0.06);
    border-color: rgba(198,100,255,0.25);
    color: #6b21a8;
}

body.light-theme .trending-tag:hover .trending-tag-name {
    color: #6b21a8;
}

body.light-theme .phone-stat-bubble {
    background: rgba(255,255,255,0.95);
    border-color: rgba(198,100,255,0.2);
}

body.light-theme .tv-niche {
    background: rgba(255,255,255,0.9);
    color: #333;
}

body.light-theme .tv-plays {
    background: rgba(0,0,0,0.7);
    color: white;
}

body.light-theme .footer-logo-dark { display:none !important; }
body.light-theme .footer-logo-light { display:inline !important; }

body.light-theme .auth-gradient {
    background: radial-gradient(ellipse at 20% 50%, rgba(198,100,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(47,87,239,0.08) 0%, transparent 50%),
                var(--bg-primary);
}

/* ===== LIGHT THEME: HOMEPAGE ===== */
body.light-theme .mesh-orb-1 { background:rgba(198,100,255,0.06); }
body.light-theme .mesh-orb-2 { background:rgba(47,87,239,0.05); }
body.light-theme .mesh-orb-3 { background:rgba(168,85,247,0.04); }
body.light-theme .grid-overlay { background-image:linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); }

body.light-theme .landing-nav.scrolled { background:rgba(245,245,247,0.92); border-bottom-color:rgba(0,0,0,0.06); }

body.light-theme .stat-card { background:rgba(255,255,255,0.7); border-color:rgba(0,0,0,0.06); }
body.light-theme .stat-card:hover { border-color:rgba(198,100,255,0.2); box-shadow:0 12px 40px rgba(198,100,255,0.08); }
body.light-theme .stat-card p { color:var(--text-muted); }

body.light-theme .proof-bar { background:rgba(255,255,255,0.5); border-color:rgba(0,0,0,0.04); }
body.light-theme .proof-item { color:var(--text-secondary); }

body.light-theme .bento-item,
body.light-theme .feature-item { background:rgba(255,255,255,0.7); border-color:rgba(0,0,0,0.06); }
body.light-theme .bento-item:hover,
body.light-theme .feature-item:hover { border-color:rgba(198,100,255,0.2); background:rgba(255,255,255,0.9); }
body.light-theme .mini-card { background:rgba(0,0,0,0.02); border-color:rgba(0,0,0,0.06); }

body.light-theme .step { background:rgba(255,255,255,0.5); border-color:rgba(0,0,0,0.06); }
body.light-theme .step:hover { border-color:rgba(198,100,255,0.2); }

body.light-theme .niche-tag { background:rgba(255,255,255,0.7); border-color:rgba(0,0,0,0.06); color:var(--text-primary); }
body.light-theme .niche-tag:hover { border-color:rgba(198,100,255,0.3); background:rgba(198,100,255,0.04); }

body.light-theme .crp-list li { border-bottom-color:rgba(0,0,0,0.04); }

body.light-theme .faq-item { background:rgba(255,255,255,0.6); border-color:rgba(0,0,0,0.06); }
body.light-theme .faq-item:hover { border-color:rgba(198,100,255,0.15); }
body.light-theme .faq-item.open { background:rgba(255,255,255,0.8); border-color:rgba(198,100,255,0.2); }

body.light-theme .earnings-ticker { background:rgba(255,255,255,0.7); border-color:rgba(0,0,0,0.06); }

body.light-theme .pricing-card { background:rgba(255,255,255,0.7); border-color:rgba(0,0,0,0.06); }
body.light-theme .pricing-card:hover { border-color:rgba(198,100,255,0.2); box-shadow:0 20px 60px rgba(198,100,255,0.06); }
body.light-theme .pricing-features li { border-bottom-color:rgba(0,0,0,0.04); }

body.light-theme .cta-card { background:rgba(255,255,255,0.7); border-color:rgba(198,100,255,0.1); }
body.light-theme .cta-card::before { background:linear-gradient(to right, transparent, rgba(198,100,255,0.2), transparent); }

body.light-theme .landing-footer { border-top-color:rgba(0,0,0,0.06); }
body.light-theme .landing-footer-bottom { border-top-color:rgba(0,0,0,0.06); }

/* ===== LIGHT THEME: AUTH PAGES ===== */
body.light-theme .auth-brand::before { background:linear-gradient(135deg, rgba(198,100,255,0.04), rgba(47,87,239,0.03)); }
body.light-theme .auth-brand-grid { background-image:linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); }
body.light-theme .auth-form-panel { background:rgba(245,245,247,0.8); }
body.light-theme .auth-form-panel::before { background:linear-gradient(to bottom, transparent, rgba(0,0,0,0.06), transparent); }
body.light-theme .auth-card-v2 .google-btn { background:rgba(0,0,0,0.02); border-color:rgba(0,0,0,0.08); color:var(--text-primary); }
body.light-theme .auth-card-v2 .google-btn:hover { background:rgba(0,0,0,0.04); border-color:rgba(198,100,255,0.2); }
body.light-theme .auth-divider::before,
body.light-theme .auth-divider::after { background:rgba(0,0,0,0.08); }
body.light-theme .auth-card-v2 .form-group input { background:rgba(255,255,255,0.8); border-color:rgba(0,0,0,0.1); color:var(--text-primary); }
body.light-theme .auth-card-v2 .form-group input:focus { border-color:rgba(198,100,255,0.4); background:white; box-shadow:0 0 0 3px rgba(198,100,255,0.06); }
body.light-theme .auth-card-v2 .discord-btn { background:rgba(88,101,242,0.06); border-color:rgba(88,101,242,0.15); color:#4752C4; }
body.light-theme .auth-card-v2 .discord-btn:hover { background:rgba(88,101,242,0.12); border-color:rgba(88,101,242,0.3); color:#3b44a8; }

/* ========== FOOTER ========== */
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-light);
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-success { border-left: 3px solid #51cf66; }
.toast-error { border-left: 3px solid #ff6b6b; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== SKELETON LOADING ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-cover {
    height: 160px;
}

.skeleton-line {
    height: 14px;
    margin: 12px 20px;
    width: 60%;
}

.skeleton-line-sm {
    height: 10px;
    margin: 8px 20px;
    width: 40%;
}

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

.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== PAGINATION ========== */
.load-more-container {
    text-align: center;
    padding: 32px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: var(--bg-primary);
        width: 260px;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(0,0,0,0.3);
    }
    .content-area {
        margin-left: 0;
    }
    .niche-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-username, .nav-user .theme-toggle, .nav-user span[style*="Free Plan"], .btn-logout { display: none; }

    .content-area { padding: 10px; }

    /* Niche grid - 2 columns on tablet-ish */
    .niche-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .niche-card-cover { height: 100px; }
    .niche-card-body { padding: 10px; }
    .niche-name { font-size: 0.85rem; }
    .niche-hashtag { font-size: 0.7rem; margin-bottom: 8px; }
    .niche-stats { gap: 6px; }
    .niche-stat { font-size: 0.65rem; }
    .niche-stat .stat-label { display: none; }
    .niche-viral-row { margin-bottom: 6px; }
    .viral-ratio { font-size: 0.62rem; }
    .trend-bar-container { margin-bottom: 6px; }
    .trend-bar-label, .trend-bar-value { font-size: 0.6rem; }
    .niche-badges { gap: 3px; }
    .badge { font-size: 0.58rem; padding: 2px 6px; }
    .niche-card-actions { margin-top: 6px; padding-top: 6px; }
    .card-action-btn { font-size: 0.65rem; padding: 4px; }
    .trend-dir { font-size: 0.55rem; padding: 2px 5px; top: 5px; left: 5px; }
    .niche-category-badge { font-size: 0.6rem; padding: 2px 6px; bottom: 5px; left: 5px; }
    .niche-favorite-btn { width: 26px; height: 26px; font-size: 0.7rem; top: 5px; right: 5px; }

    /* Hot banner */
    .hot-banner { padding: 12px; }
    .hot-cards { flex-direction: column; gap: 6px; }
    .hot-card { min-width: auto; padding: 8px 12px; }
    .hot-name { font-size: 0.78rem; }
    .hot-stats { font-size: 0.62rem; }

    /* Trending */
    .trending-block { padding: 12px; }
    .trending-tags { gap: 4px; }
    .trending-tag { padding: 4px 10px; font-size: 0.7rem; }

    /* Trending videos */
    .trending-videos-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .trending-videos-title { font-size: 0.78rem; }
    .trending-videos-title span { display: none; }
    .tv-plays { font-size: 0.55rem; padding: 1px 4px; }
    .tv-niche { font-size: 0.5rem; padding: 1px 4px; }
    .tv-meta { padding: 3px 5px; font-size: 0.55rem; }

    /* Content header */
    .content-header { margin-bottom: 12px; }
    .content-title { font-size: 1.05rem; }
    .content-count { font-size: 0.75rem; }

    /* Auth */
    .auth-card { padding: 28px 20px; }

    /* Detail page */
    .niche-detail { padding: 12px 10px; }
    .niche-detail-hero h1 { font-size: 1.4rem; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .stat-card { padding: 12px 10px; }
    .stat-card-value { font-size: 1.2rem; }
    .stat-card-label { font-size: 0.65rem; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .video-card-cover { height: 130px; }

    /* Compare */
    .compare-modal { border-radius: var(--radius-md); }
    .compare-body { padding: 10px; overflow-x: auto; }
    .compare-table th, .compare-table td { padding: 6px; font-size: 0.72rem; }

    /* Other pages */
    .spy-page { padding: 12px 10px; }
    .spy-locked-content h1 { font-size: 1.5rem; }
    .spy-search-bar { flex-direction: column; }
    .favorites-page { padding: 12px 10px; }
    .favorites-page h1 { font-size: 1.2rem; }

    /* Mobile nav */
    .mobile-nav { padding: 8px; background: var(--bg-primary); border-bottom: 1px solid var(--border-light); }
    .mobile-link { padding: 11px 14px; font-size: 0.88rem; border-radius: var(--radius-sm); }
    .mobile-link:hover { background: rgba(198,100,255,0.06); }
    .mobile-link i { width: 18px; text-align: center; font-size: 0.82rem; }
    }
    .mobile-link i {
        width: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .niche-grid { grid-template-columns: 1fr; gap: 10px; }
    .niche-card-cover { height: 130px; }
    .niche-card-body { padding: 12px; }
    .niche-name { font-size: 0.9rem; }
    .niche-stat .stat-label { display: inline; }
    .stat-cards { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .trending-videos-grid { grid-template-columns: repeat(3, 1fr); }
    .tv-niche { display: none; }
    .tv-meta .tv-time { display: none; }
    .hot-banner-header { justify-content: center; }
}

/* ========== SIDEBAR TOGGLE BUTTON (Mobile) ========== */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-purple);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 101;
    box-shadow: 0 4px 15px rgba(198, 100, 255, 0.4);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========== SIDEBAR OVERLAY (Mobile) ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.open {
    display: block;
}
