* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #212121;
    --bg-hover: #272727;
    --bg-active: #3d3d3d;
    --text-primary: #f1f1f1;
    --text-secondary: #aaaaaa;
    --text-muted: #717171;
    --border-color: #303030;
    --accent-red: #ff0000;
    --accent-blue: #3ea6ff;
    --accent-green: #2ba640;
    --accent-yellow: #ffb100;
    --sidebar-width: 240px;
    --sidebar-collapsed: 72px;
    --topnav-height: 56px;
}

body {
    font-family: 'Roboto', 'YouTube Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== TOP NAV ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topnav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: var(--bg-hover);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.studio-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-center {
    flex: 1;
    max-width: 540px;
    margin: 0 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    gap: 8px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-selector select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.currency-selector select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-hover);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    display: none;
}

.notif-badge.show {
    display: block;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar img.loaded {
    display: block;
}

.avatar img.loaded + .avatar-fallback {
    display: none;
}

.avatar-fallback {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--topnav-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 900;
    transition: width 0.2s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-profile-info {
    display: none;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.sidebar-avatar-wrap img.loaded {
    display: block;
}

.sidebar-avatar-wrap img.loaded + .sidebar-avatar-fb {
    display: none;
}

.sidebar-avatar-fb {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-handle {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.hidden-item {
    display: none;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topnav-height);
    padding: 24px;
    min-height: calc(100vh - var(--topnav-height));
    transition: margin-left 0.2s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 16px 20px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.card-link {
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 12px 20px 20px;
}

.quick-stats-card {
    grid-column: 1 / -1;
}

.stat-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.stat-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.stat-tab:hover {
    color: var(--text-primary);
}

.stat-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.stats-overview {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
}

.stat-value.revenue {
    color: var(--accent-green);
}

.stat-value.bumped {
    color: var(--accent-yellow);
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.positive {
    color: var(--accent-green);
}

.chart-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Realtime */
.realtime-card {
    grid-row: span 2;
}

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.realtime-stat {
    text-align: center;
    padding: 20px 0;
}

.realtime-number {
    font-size: 48px;
    font-weight: 500;
    display: block;
}

.realtime-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.realtime-now {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.now-number {
    font-size: 32px;
    font-weight: 500;
    display: block;
    color: var(--accent-green);
}

.now-label {
    font-size: 12px;
    color: var(--text-muted);
}

.mini-chart-container {
    margin-top: 16px;
    height: 80px;
}

.mini-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Revenue Card */
.revenue-main {
    margin-bottom: 20px;
}

.revenue-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.revenue-amount {
    font-size: 36px;
    font-weight: 500;
    color: var(--accent-green);
    display: block;
    margin: 4px 0;
}

.revenue-period {
    font-size: 12px;
    color: var(--text-muted);
}

.revenue-breakdown {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.revenue-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.revenue-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Video Thumbnails */
.video-thumb {
    width: 160px;
    height: 90px;
    background: var(--bg-secondary);
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 2;
}

.latest-video-info {
    display: flex;
    gap: 16px;
}

.video-details {
    flex: 1;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.video-metrics {
    display: flex;
    gap: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 20px;
    font-weight: 500;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Video List */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.video-list-item:last-child {
    border-bottom: none;
}

.video-list-thumb {
    width: 120px;
    height: 68px;
    background: var(--bg-secondary);
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.video-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-info {
    flex: 1;
}

.video-list-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-list-stats {
    font-size: 12px;
    color: var(--text-muted);
}

/* Milestone */
.milestone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.milestone-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-text {
    position: absolute;
    text-align: center;
}

.milestone-current {
    font-size: 22px;
    font-weight: 500;
    display: block;
}

.milestone-target {
    font-size: 12px;
    color: var(--text-muted);
}

.milestone-desc {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== CONTENT PAGE ===== */
.content-filters {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-table {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 100px 120px 100px 100px 80px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 100px 120px 100px 100px 80px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    font-size: 13px;
    transition: background 0.15s;
}

.table-row:hover {
    background: var(--bg-hover);
}

.table-row:last-child {
    border-bottom: none;
}

.table-video-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-thumb {
    width: 120px;
    height: 68px;
    background: var(--bg-secondary);
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-video-title {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--accent-green);
}

.visibility-badge svg {
    width: 14px;
    height: 14px;
}

/* Shorts Grid */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.short-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.15s;
}

.short-card:hover {
    transform: scale(1.02);
}

.short-thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.short-views {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.short-info {
    padding: 10px 12px;
}

.short-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.short-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p {
    margin-top: 12px;
    font-size: 14px;
}

/* ===== ANALYTICS ===== */
.analytics-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.analytics-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.analytics-tab:hover {
    color: var(--text-primary);
}

.analytics-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.analytics-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.analytics-big-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    gap: 40px;
}

.big-stat {
    display: flex;
    flex-direction: column;
}

.big-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.big-stat-value {
    font-size: 28px;
    font-weight: 500;
}

.analytics-chart-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.analytics-chart-card canvas {
    width: 100% !important;
    height: 250px !important;
}

.analytics-demographics,
.analytics-traffic {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.analytics-demographics h3,
.analytics-traffic h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.geo-item,
.traffic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.geo-bar,
.traffic-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 12px;
}

.geo-bar-fill,
.traffic-bar-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* ===== EARN PAGE ===== */
.monetization-status {
    margin-bottom: 24px;
}

.monetization-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
}

.monetization-title {
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.monetization-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.earn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.earn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.earn-card.full-width {
    grid-column: 1 / -1;
}

.earn-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.earn-period-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.earn-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.earn-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.earn-amount {
    font-size: 36px;
    font-weight: 500;
    color: var(--accent-green);
    display: block;
    margin-bottom: 16px;
}

.earn-chart {
    height: 150px;
}

.earn-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.source-bar {
    margin-bottom: 16px;
}

.source-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.source-name {
    color: var(--text-secondary);
}

.source-amount {
    font-weight: 500;
}

.bar-track {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-fill.ads { background: var(--accent-blue); }
.bar-fill.premium { background: var(--accent-red); }
.bar-fill.members { background: #ab47bc; }
.bar-fill.super { background: var(--accent-yellow); }

.rpm-cpm {
    display: flex;
    gap: 40px;
}

.rpm-item {
    flex: 1;
}

.rpm-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.rpm-value {
    font-size: 24px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.rpm-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.monthly-table {
    width: 100%;
}

.monthly-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.monthly-row.header {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.monthly-row:last-child {
    border-bottom: none;
}

/* ===== COMMENTS ===== */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-active);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 400;
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.comment-video {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== SETTINGS ===== */
.settings-note {
    display: block;
    font-size: 13px;
    color: var(--accent-yellow);
    margin-top: 4px;
}

.settings-content {
    max-width: 700px;
}

.settings-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.settings-group h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row label {
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-row input[type="text"],
.setting-row input[type="number"] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 240px;
    outline: none;
}

.setting-row input[type="text"]:focus,
.setting-row input[type="number"]:focus {
    border-color: var(--accent-blue);
}

.setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--bg-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== NOTIFICATION PANEL ===== */
.notification-panel {
    position: fixed;
    top: var(--topnav-height);
    right: 0;
    width: 400px;
    max-height: calc(100vh - var(--topnav-height));
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 950;
    display: none;
    flex-direction: column;
}

.notification-panel.show {
    display: flex;
}

.notif-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-panel-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.notif-clear {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 12px;
    cursor: pointer;
}

.notif-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.notif-item.unread {
    background: rgba(62, 166, 255, 0.05);
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.revenue {
    background: rgba(43, 166, 64, 0.15);
}

.notif-icon.subs {
    background: rgba(255, 0, 0, 0.15);
}

.notif-icon.views {
    background: rgba(62, 166, 255, 0.15);
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== TOASTS ===== */
#notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.revenue {
    background: rgba(43, 166, 64, 0.2);
}

.toast-icon.milestone {
    background: rgba(255, 177, 0, 0.2);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 500;
}

.toast-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .earn-grid {
        grid-template-columns: 1fr;
    }

    .analytics-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }

    .sidebar .nav-item span,
    .sidebar .sidebar-profile-info {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed);
    }

    .nav-center {
        display: none;
    }

    .stats-overview {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 80px 80px;
    }

    .col-visibility,
    .col-comments,
    .col-likes {
        display: none;
    }
}