/* =====================================================================
   RealTime — Digital Detox & Family Screen-Time Planner
   Design System — CSS
   =====================================================================
   Zen aesthetic: teal/slate palette, glassmorphism, smooth animations
   Mobile-first, dark mode support
   ===================================================================== */

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

/* =====================================================================
   CSS VARIABLES — Design Tokens
   ===================================================================== */

:root {
    /* Primary Palette — Teal */
    --rt-primary: #0d9488;
    --rt-primary-light: #14b8a6;
    --rt-primary-dark: #0f766e;
    --rt-primary-50: #f0fdfa;
    --rt-primary-100: #ccfbf1;
    --rt-primary-200: #99f6e4;
    --rt-primary-500: #14b8a6;
    --rt-primary-900: #134e4a;

    /* Accent — Indigo */
    --rt-accent: #6366f1;
    --rt-accent-light: #818cf8;
    --rt-accent-dark: #4f46e5;

    /* Warning / Danger */
    --rt-warning: #f59e0b;
    --rt-danger: #ef4444;
    --rt-success: #22c55e;

    /* Neutrals — Light Mode */
    --rt-bg: #f8fafc;
    --rt-bg-card: #ffffff;
    --rt-bg-card-hover: #f1f5f9;
    --rt-bg-input: #ffffff;
    --rt-bg-sidebar: #f1f5f9;
    --rt-border: #e2e8f0;
    --rt-border-focus: var(--rt-primary);
    --rt-text: #0f172a;
    --rt-text-primary: #0f172a;
    --rt-text-secondary: #475569;
    --rt-text-muted: #94a3b8;
    --rt-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --rt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --rt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --rt-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Glass */
    --rt-glass-bg: rgba(255,255,255,0.7);
    --rt-glass-border: rgba(255,255,255,0.3);
    --rt-glass-blur: 12px;

    /* Typography */
    --rt-font: 'Inter', system-ui, -apple-system, sans-serif;
    --rt-font-display: 'Outfit', 'Inter', sans-serif;

    /* Sizes */
    --rt-radius: 12px;
    --rt-radius-sm: 8px;
    --rt-radius-lg: 16px;
    --rt-radius-xl: 24px;
    --rt-radius-full: 9999px;

    /* Transitions */
    --rt-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --rt-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --rt-navbar-height: 64px;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --rt-bg: #0f172a;
    --rt-bg-card: #1e293b;
    --rt-bg-card-hover: #334155;
    --rt-bg-input: #1e293b;
    --rt-bg-sidebar: #1e293b;
    --rt-border: #334155;
    --rt-text: #f1f5f9;
    --rt-text-primary: #f1f5f9;
    --rt-text-secondary: #cbd5e1;
    --rt-text-muted: #64748b;
    --rt-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --rt-shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --rt-shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --rt-glass-bg: rgba(30,41,59,0.8);
    --rt-glass-border: rgba(51,65,85,0.5);
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--rt-font);
    background: var(--rt-bg);
    color: var(--rt-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--rt-primary);
    text-decoration: none;
    transition: var(--rt-transition);
}

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

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

/* =====================================================================
   NAVBAR
   ===================================================================== */

.rt-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--rt-navbar-height);
    background: var(--rt-glass-bg);
    backdrop-filter: blur(var(--rt-glass-blur));
    -webkit-backdrop-filter: blur(var(--rt-glass-blur));
    border-bottom: 1px solid var(--rt-glass-border);
    z-index: 1000;
    transition: var(--rt-transition);
}

.rt-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rt-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--rt-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--rt-text);
}

.rt-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-accent));
    border-radius: var(--rt-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

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

.rt-nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--rt-radius-sm);
    color: var(--rt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--rt-transition);
    white-space: nowrap;
}

.rt-nav-link:hover, .rt-nav-link.active {
    background: var(--rt-primary-50);
    color: var(--rt-primary);
}

[data-theme="dark"] .rt-nav-link:hover,
[data-theme="dark"] .rt-nav-link.active {
    background: rgba(13,148,136,0.15);
    color: var(--rt-primary-light);
}

.rt-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--rt-radius-full);
    background: var(--rt-danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.rt-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Language Switch ── */

.rt-lang-switch {
    display: flex;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    overflow: hidden;
}

.rt-lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--rt-text-muted);
    cursor: pointer;
    transition: var(--rt-transition);
}

.rt-lang-btn.active {
    background: var(--rt-primary);
    color: white;
}

/* ── Theme Toggle ── */

.rt-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--rt-radius-sm);
    border: 1px solid var(--rt-border);
    background: transparent;
    color: var(--rt-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--rt-transition);
}

.rt-theme-toggle:hover {
    background: var(--rt-bg-card-hover);
    color: var(--rt-primary);
}

/* ── User Menu ── */

.rt-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rt-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rt-text-secondary);
}

.rt-btn-ghost {
    padding: 0.4rem 0.75rem;
    border-radius: var(--rt-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rt-text-muted);
    background: transparent;
    border: 1px solid var(--rt-border);
    cursor: pointer;
    transition: var(--rt-transition);
}

.rt-btn-ghost:hover {
    background: var(--rt-bg-card-hover);
    color: var(--rt-text);
}

/* ── Hamburger ── */

.rt-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    color: var(--rt-text);
    cursor: pointer;
}

/* =====================================================================
   MAIN CONTENT
   ===================================================================== */

.rt-main {
    margin-top: var(--rt-navbar-height);
    min-height: calc(100vh - var(--rt-navbar-height));
    padding: 1.5rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.rt-page-header {
    margin-bottom: 2rem;
}

.rt-page-title {
    font-family: var(--rt-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rt-text);
    margin-bottom: 0.25rem;
}

.rt-page-subtitle {
    font-size: 0.95rem;
    color: var(--rt-text-muted);
}

/* =====================================================================
   CARDS
   ===================================================================== */

.rt-card {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--rt-shadow);
    transition: var(--rt-transition-slow);
}

.rt-card:hover {
    box-shadow: var(--rt-shadow-md);
}

.rt-card-glass {
    background: var(--rt-glass-bg);
    backdrop-filter: blur(var(--rt-glass-blur));
    border: 1px solid var(--rt-glass-border);
}

.rt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rt-card-title {
    font-family: var(--rt-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rt-text);
}

.rt-card-icon {
    font-size: 1.3rem;
}

/* ── Stats Cards ── */

.rt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rt-stat-card {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--rt-transition);
}

.rt-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rt-shadow-md);
}

.rt-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.rt-stat-icon.teal    { background: var(--rt-primary-100); color: var(--rt-primary-dark); }
.rt-stat-icon.indigo  { background: #e0e7ff; color: #4338ca; }
.rt-stat-icon.amber   { background: #fef3c7; color: #b45309; }
.rt-stat-icon.emerald { background: #d1fae5; color: #059669; }
.rt-stat-icon.rose    { background: #ffe4e6; color: #e11d48; }

[data-theme="dark"] .rt-stat-icon.teal    { background: rgba(13,148,136,0.2); }
[data-theme="dark"] .rt-stat-icon.indigo  { background: rgba(99,102,241,0.2); }
[data-theme="dark"] .rt-stat-icon.amber   { background: rgba(245,158,11,0.2); }
[data-theme="dark"] .rt-stat-icon.emerald { background: rgba(34,197,94,0.2); }
[data-theme="dark"] .rt-stat-icon.rose    { background: rgba(244,63,94,0.2); }

.rt-stat-info {
    flex: 1;
}

.rt-stat-value {
    font-family: var(--rt-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rt-text);
    line-height: 1.2;
}

.rt-stat-label {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
    font-weight: 500;
}

.rt-stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.rt-stat-trend.up   { color: var(--rt-success); }
.rt-stat-trend.down { color: var(--rt-danger); }

/* =====================================================================
   BUTTONS
   ===================================================================== */

.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--rt-radius-sm);
    font-family: var(--rt-font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--rt-transition);
    text-decoration: none;
    line-height: 1.4;
}

.rt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rt-btn-primary {
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-primary-dark));
    color: white;
    box-shadow: 0 2px 4px rgba(13,148,136,0.3);
}

.rt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--rt-primary-light), var(--rt-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13,148,136,0.35);
    color: white;
}

.rt-btn-accent {
    background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-dark));
    color: white;
}

.rt-btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    color: white;
}

.rt-btn-outline {
    background: transparent;
    color: var(--rt-primary);
    border: 1.5px solid var(--rt-primary);
}

.rt-btn-outline:hover:not(:disabled) {
    background: var(--rt-primary);
    color: white;
}

.rt-btn-danger {
    background: var(--rt-danger);
    color: white;
}

.rt-btn-success {
    background: var(--rt-success);
    color: white;
}

.rt-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.rt-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.rt-btn-block {
    width: 100%;
}

.rt-btn-pill {
    border-radius: var(--rt-radius-full);
}

/* =====================================================================
   FORMS
   ===================================================================== */

.rt-form-group {
    margin-bottom: 1.25rem;
}

.rt-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rt-text-secondary);
    margin-bottom: 0.375rem;
}

.rt-input, .rt-select, .rt-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    background: var(--rt-bg-input);
    color: var(--rt-text);
    font-family: var(--rt-font);
    font-size: 0.9rem;
    transition: var(--rt-transition);
    outline: none;
}

.rt-input:focus, .rt-select:focus, .rt-textarea:focus {
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

.rt-textarea {
    min-height: 100px;
    resize: vertical;
}

.rt-input-icon-wrapper {
    position: relative;
}

.rt-input-icon-wrapper .rt-input {
    padding-left: 2.5rem;
}

.rt-input-icon-wrapper .icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rt-text-muted);
    font-size: 1rem;
}

/* =====================================================================
   GRID LAYOUTS
   ===================================================================== */

.rt-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rt-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* =====================================================================
   QUICK LOG WIDGET
   ===================================================================== */

.rt-quick-log {
    background: linear-gradient(135deg, var(--rt-primary-dark), var(--rt-primary));
    color: white;
    border-radius: var(--rt-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rt-quick-log-text h3 {
    font-family: var(--rt-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rt-quick-log-text p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.rt-quick-log-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.rt-quick-log-input input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--rt-radius-sm);
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--rt-font-display);
}

.rt-quick-log-input input[type="number"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.rt-quick-log-input input[type="number"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.25);
}

.rt-quick-log-btn {
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--rt-primary-dark);
    border: none;
    border-radius: var(--rt-radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--rt-transition);
}

.rt-quick-log-btn:hover {
    transform: scale(1.05);
}

/* =====================================================================
   PROGRESS RING
   ===================================================================== */

.rt-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-progress-ring svg {
    transform: rotate(-90deg);
}

.rt-progress-ring .ring-bg {
    fill: none;
    stroke: var(--rt-border);
    stroke-width: 8;
}

.rt-progress-ring .ring-fill {
    fill: none;
    stroke: var(--rt-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.rt-progress-ring .ring-text {
    position: absolute;
    font-family: var(--rt-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rt-text);
}

.rt-progress-ring .ring-label {
    position: absolute;
    bottom: 30px;
    font-size: 0.7rem;
    color: var(--rt-text-muted);
}

/* =====================================================================
   CHALLENGE CARDS
   ===================================================================== */

.rt-challenge-card {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 1.25rem;
    transition: var(--rt-transition);
}

.rt-challenge-card:hover {
    box-shadow: var(--rt-shadow-md);
    transform: translateY(-2px);
}

.rt-challenge-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rt-challenge-icon {
    font-size: 1.8rem;
}

.rt-challenge-title {
    font-family: var(--rt-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--rt-text);
}

.rt-challenge-meta {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
}

.rt-challenge-progress {
    margin-top: 0.75rem;
}

.rt-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--rt-border);
    border-radius: var(--rt-radius-full);
    overflow: hidden;
}

.rt-progress-fill {
    height: 100%;
    border-radius: var(--rt-radius-full);
    background: linear-gradient(90deg, var(--rt-primary), var(--rt-accent));
    transition: width 0.6s ease;
}

.rt-challenge-reward {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--rt-primary-50);
    border-radius: var(--rt-radius-sm);
    font-size: 0.8rem;
    color: var(--rt-primary-dark);
}

[data-theme="dark"] .rt-challenge-reward {
    background: rgba(13,148,136,0.15);
    color: var(--rt-primary-light);
}

.rt-difficulty {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: var(--rt-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-difficulty.easy   { background: #d1fae5; color: #059669; }
.rt-difficulty.medium { background: #fef3c7; color: #b45309; }
.rt-difficulty.hard   { background: #ffe4e6; color: #e11d48; }

[data-theme="dark"] .rt-difficulty.easy   { background: rgba(34,197,94,0.2); color: #4ade80; }
[data-theme="dark"] .rt-difficulty.medium { background: rgba(245,158,11,0.2); color: #fbbf24; }
[data-theme="dark"] .rt-difficulty.hard   { background: rgba(244,63,94,0.2); color: #fb7185; }

/* =====================================================================
   ACTIVITY SUGGESTION
   ===================================================================== */

.rt-activity-card {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid #a7f3d0;
    border-radius: var(--rt-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

[data-theme="dark"] .rt-activity-card {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(13,148,136,0.1));
    border-color: rgba(52,211,153,0.3);
}

.rt-activity-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.rt-activity-title {
    font-weight: 600;
    color: var(--rt-text);
    margin-bottom: 0.25rem;
}

.rt-activity-desc {
    font-size: 0.85rem;
    color: var(--rt-text-secondary);
}

.rt-activity-meta {
    font-size: 0.75rem;
    color: var(--rt-text-muted);
    margin-top: 0.25rem;
}

/* =====================================================================
   BADGE PILLS
   ===================================================================== */

.rt-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rt-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--rt-bg-card-hover);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rt-text-secondary);
    transition: var(--rt-transition);
}

.rt-badge-pill:hover {
    background: var(--rt-primary-50);
    color: var(--rt-primary);
    border-color: var(--rt-primary-200);
}

/* =====================================================================
   CHART CONTAINER
   ===================================================================== */

.rt-chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* =====================================================================
   CALENDAR MINI
   ===================================================================== */

.rt-calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.rt-cal-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rt-text-muted);
    padding: 0.25rem;
}

.rt-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--rt-radius-sm);
    transition: var(--rt-transition);
    cursor: default;
}

.rt-cal-day.today {
    border: 2px solid var(--rt-primary);
    font-weight: 700;
}

.rt-cal-day.good {
    background: #d1fae5;
    color: #059669;
}

.rt-cal-day.warning {
    background: #fef3c7;
    color: #b45309;
}

.rt-cal-day.bad {
    background: #ffe4e6;
    color: #e11d48;
}

.rt-cal-day.empty {
    background: transparent;
    color: var(--rt-text-muted);
    opacity: 0.3;
}

[data-theme="dark"] .rt-cal-day.good    { background: rgba(34,197,94,0.2); color: #4ade80; }
[data-theme="dark"] .rt-cal-day.warning { background: rgba(245,158,11,0.2); color: #fbbf24; }
[data-theme="dark"] .rt-cal-day.bad     { background: rgba(244,63,94,0.2); color: #fb7185; }

/* =====================================================================
   SCREEN-FREE BLOCK ITEM
   ===================================================================== */

.rt-block-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--rt-radius-sm);
    background: var(--rt-bg-card-hover);
    margin-bottom: 0.5rem;
    transition: var(--rt-transition);
}

.rt-block-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.rt-block-info {
    flex: 1;
}

.rt-block-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rt-text);
}

.rt-block-time {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
}

.rt-block-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--rt-radius-full);
}

.rt-block-status.completed { background: #d1fae5; color: #059669; }
.rt-block-status.scheduled { background: #e0e7ff; color: #4338ca; }
.rt-block-status.missed    { background: #ffe4e6; color: #e11d48; }

/* =====================================================================
   FLASH MESSAGES
   ===================================================================== */

.rt-flash-container {
    position: fixed;
    top: calc(var(--rt-navbar-height) + 1rem);
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.rt-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--rt-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    animation: rtSlideIn 0.3s ease;
    box-shadow: var(--rt-shadow-lg);
}

.rt-flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid #059669; }
.rt-flash-error   { background: #ffe4e6; color: #9f1239; border-left: 4px solid #e11d48; }
.rt-flash-info    { background: #dbeafe; color: #1e3a5f; border-left: 4px solid #3b82f6; }
.rt-flash-warning { background: #fef3c7; color: #78350f; border-left: 4px solid #f59e0b; }

.rt-flash button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    margin-left: 0.75rem;
}

/* =====================================================================
   MODAL
   ===================================================================== */

.rt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--rt-transition);
}

.rt-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.rt-modal {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--rt-transition-slow);
    box-shadow: var(--rt-shadow-xl);
}

.rt-modal-overlay.open .rt-modal {
    transform: scale(1) translateY(0);
}

.rt-modal-title {
    font-family: var(--rt-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--rt-text);
}

.rt-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--rt-bg-card-hover);
    border-radius: var(--rt-radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rt-text-muted);
}

/* =====================================================================
   CHILD VIEW — Playful Design
   ===================================================================== */

.rt-child-view {
    text-align: center;
}

.rt-child-avatar {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.rt-child-score {
    width: 180px;
    height: 180px;
    margin: 1.5rem auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--rt-font-display);
    transition: var(--rt-transition-slow);
}

.rt-child-score.great {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 3px solid #059669;
}

.rt-child-score.ok {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid #f59e0b;
}

.rt-child-score.over {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    border: 3px solid #ef4444;
}

.rt-child-score-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.rt-child-score-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* =====================================================================
   PRICING CARDS
   ===================================================================== */

.rt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.rt-pricing-card {
    background: var(--rt-bg-card);
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius-xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--rt-transition-slow);
}

.rt-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rt-shadow-xl);
}

.rt-pricing-card.featured {
    border-color: var(--rt-primary);
    transform: scale(1.02);
}

.rt-pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.rt-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--rt-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-pricing-name {
    font-family: var(--rt-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rt-pricing-price {
    font-family: var(--rt-font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rt-primary);
    margin: 1rem 0;
}

.rt-pricing-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rt-text-muted);
}

.rt-pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.rt-pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--rt-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rt-pricing-features li .check {
    color: var(--rt-success);
    font-weight: 700;
}

.rt-pricing-features li .cross {
    color: var(--rt-text-muted);
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.rt-footer {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--rt-border);
    text-align: center;
}

.rt-footer p {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */

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

@keyframes rtFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes rtStreakGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0.4); }
    50%      { box-shadow: 0 0 20px 5px rgba(13,148,136,0.2); }
}

.rt-animate-in {
    animation: rtFadeIn 0.4s ease forwards;
}

.rt-pulse {
    animation: rtPulse 2s ease infinite;
}

.rt-streak-glow {
    animation: rtStreakGlow 2s ease infinite;
}

/* =====================================================================
   AUTH PAGES
   ===================================================================== */

.rt-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.rt-auth-card {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--rt-shadow-xl);
}

.rt-auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.rt-auth-logo h1 {
    font-family: var(--rt-font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rt-auth-logo p {
    color: var(--rt-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.rt-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--rt-text-muted);
}

.rt-auth-footer a {
    color: var(--rt-primary);
    font-weight: 600;
}

/* ── Role Selector ── */

.rt-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rt-role-option {
    padding: 1rem;
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--rt-transition);
}

.rt-role-option:hover {
    border-color: var(--rt-primary-200);
}

.rt-role-option.selected {
    border-color: var(--rt-primary);
    background: var(--rt-primary-50);
}

[data-theme="dark"] .rt-role-option.selected {
    background: rgba(13,148,136,0.15);
}

.rt-role-option input[type="radio"] {
    display: none;
}

.rt-role-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.rt-role-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rt-text);
}

.rt-role-desc {
    font-size: 0.75rem;
    color: var(--rt-text-muted);
    margin-top: 0.15rem;
}

/* =====================================================================
   CHILD AVATAR SELECTOR
   ===================================================================== */

.rt-avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rt-avatar-option {
    width: 48px;
    height: 48px;
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--rt-transition);
}

.rt-avatar-option:hover, .rt-avatar-option.selected {
    border-color: var(--rt-primary);
    background: var(--rt-primary-50);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .rt-nav-links {
        display: none;
        position: fixed;
        top: var(--rt-navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--rt-bg-card);
        flex-direction: column;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.25rem;
        overflow-y: auto;
        z-index: 999;
    }

    .rt-nav-links.open {
        display: flex;
    }

    .rt-nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--rt-radius-sm);
        min-height: 44px; /* iOS touch target */
    }

    .rt-notif-bell {
        order: -1;
    }

    .rt-user-menu {
        padding-top: 1rem;
        border-top: 1px solid var(--rt-border);
        margin-top: auto;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .rt-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rt-main {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

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

    .rt-grid-2, .rt-grid-3 {
        grid-template-columns: 1fr;
    }

    .rt-grid-auto {
        grid-template-columns: 1fr;
    }

    .rt-quick-log {
        flex-direction: column;
        text-align: center;
    }

    .rt-quick-log-input {
        margin-left: 0;
    }

    .rt-page-title {
        font-size: 1.35rem;
    }

    .rt-page-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .rt-btn {
        min-height: 44px; /* iOS touch target */
    }

    .rt-child-score {
        width: 150px;
        height: 150px;
    }

    .rt-child-score-value {
        font-size: 2rem;
    }

    .rt-card {
        padding: 1rem;
    }

    .rt-modal {
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .rt-stats-grid {
        grid-template-columns: 1fr;
    }

    .rt-pricing-grid {
        grid-template-columns: 1fr;
    }

    .rt-pricing-card.featured {
        transform: none;
    }
}

/* =====================================================================
   TARGETS PAGE
   ===================================================================== */

.rt-preset-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--rt-bg-card);
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    cursor: pointer;
    transition: var(--rt-transition);
    text-align: left;
    width: 100%;
    font-family: var(--rt-font);
    color: var(--rt-text);
}

.rt-preset-card:hover {
    border-color: var(--rt-primary);
    box-shadow: var(--rt-shadow-md);
    transform: translateY(-2px);
    background: var(--rt-primary-50);
}

[data-theme="dark"] .rt-preset-card:hover {
    background: rgba(13,148,136,0.1);
}

.rt-target-field {
    position: relative;
}

.rt-target-field .rt-target-icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    opacity: 0.3;
}

.rt-target-progress {
    font-size: 0.75rem;
    color: var(--rt-text-muted);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* =====================================================================
   FRIENDS PAGE
   ===================================================================== */

.rt-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--rt-radius-full);
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--rt-font-display);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.rt-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--rt-radius-full);
    background: var(--rt-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.rt-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rt-bg-card-hover);
    font-size: 0.9rem;
    cursor: pointer;
}

.rt-toggle-row:last-child {
    border-bottom: none;
}

.rt-toggle {
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--rt-bg-card-hover);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: var(--rt-transition);
    border: 2px solid var(--rt-border);
}

.rt-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    transition: var(--rt-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rt-toggle:checked {
    background: var(--rt-primary);
    border-color: var(--rt-primary);
}

.rt-toggle:checked::before {
    transform: translateX(20px);
}

/* =====================================================================
   LEADERBOARD PAGE
   ===================================================================== */

.rt-period-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rt-period-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--rt-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rt-text-secondary);
    background: var(--rt-bg-card);
    border: 2px solid var(--rt-border);
    transition: var(--rt-transition);
    text-decoration: none;
}

.rt-period-tab:hover {
    border-color: var(--rt-primary);
    color: var(--rt-primary);
}

.rt-period-tab.active {
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

/* Podium */
.rt-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
}

.rt-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: var(--rt-radius-lg);
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    min-width: 120px;
    transition: var(--rt-transition);
}

.rt-podium-1 {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251,191,36,0.15);
    padding-bottom: 2.5rem;
}

.rt-podium-2 { margin-bottom: 1rem; }
.rt-podium-3 { margin-bottom: 2rem; }

.rt-podium-medal {
    font-size: 2rem;
}

.rt-podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rt-primary-dark), var(--rt-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rt-font-display);
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
}

.rt-podium-avatar.self {
    border: 3px solid var(--rt-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.rt-podium-name {
    font-family: var(--rt-font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.rt-podium-stat {
    font-family: var(--rt-font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.rt-podium-streak {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
}

/* Table */
.rt-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rt-leaderboard-table th {
    padding: 0.75rem;
    text-align: center;
    color: var(--rt-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--rt-bg-card-hover);
}

.rt-leaderboard-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--rt-bg-card-hover);
    vertical-align: middle;
}

.rt-leaderboard-table tbody tr:hover {
    background: var(--rt-bg-card-hover);
}

.rt-lb-self {
    background: rgba(13,148,136,0.06) !important;
}

[data-theme="dark"] .rt-lb-self {
    background: rgba(13,148,136,0.12) !important;
}

.rt-lb-first td {
    font-weight: 600;
}

.rt-lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rt-primary-dark), var(--rt-accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.75rem;
    font-family: var(--rt-font-display);
}

.rt-lb-avatar.self {
    border: 2px solid var(--rt-accent);
}

/* =====================================================================
   RESPONSIVE — New components
   ===================================================================== */

@media (max-width: 768px) {
    .rt-podium {
        gap: 0.5rem;
    }

    .rt-podium-item {
        min-width: 90px;
        padding: 1rem 0.5rem;
    }

    .rt-podium-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .rt-period-tabs {
        gap: 0.25rem;
    }

    .rt-period-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* =====================================================================
   NOTIFICATIONS PAGE
   ===================================================================== */

/* Bell in navbar */
.rt-notif-bell {
    position: relative;
}

.rt-notif-bell .rt-nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    animation: rt-pulse 2s infinite;
}

/* Mobile bell (in nav-actions, outside hamburger) */
.rt-notif-bell-mobile {
    display: none;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.25rem;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    /* Show the mobile bell outside hamburger */
    .rt-notif-bell-mobile {
        display: flex;
    }
    /* Hide the in-menu bell on mobile */
    .rt-nav-links .rt-notif-bell:not(.rt-notif-bell-mobile) {
        display: none !important;
    }
}

@media (min-width: 769px) {
    /* On desktop, hide the mobile bell (it's redundant) */
    .rt-notif-bell-mobile {
        display: none !important;
    }
}

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

/* Filter tabs */
.rt-notif-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.rt-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--rt-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rt-text-secondary);
    background: var(--rt-bg-card);
    border: 1.5px solid var(--rt-border);
    transition: var(--rt-transition);
    text-decoration: none;
    white-space: nowrap;
}

.rt-filter-tab:hover {
    border-color: var(--rt-primary);
    color: var(--rt-primary);
}

.rt-filter-tab.active {
    background: var(--rt-primary);
    color: white;
    border-color: var(--rt-primary);
}

.rt-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--rt-bg-card-hover);
    font-size: 0.7rem;
    font-weight: 700;
}

.rt-filter-tab.active .rt-filter-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

.rt-filter-count.accent {
    background: var(--rt-accent);
    color: white;
}

/* Notification list */
.rt-notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rt-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    transition: all 0.3s ease;
}

.rt-notif-item.unread {
    border-left: 4px solid var(--rt-accent);
    background: var(--rt-primary-50);
}

[data-theme="dark"] .rt-notif-item.unread {
    background: rgba(99,102,241,0.08);
}

.rt-notif-item:hover {
    box-shadow: var(--rt-shadow-md);
}

.rt-notif-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--rt-radius-sm);
    background: var(--rt-bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.rt-notif-content {
    flex: 1;
    min-width: 0;
}

.rt-notif-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.rt-notif-title {
    font-family: var(--rt-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rt-text);
    line-height: 1.3;
}

.rt-notif-time {
    font-size: 0.75rem;
    color: var(--rt-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.rt-notif-message {
    font-size: 0.85rem;
    color: var(--rt-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.rt-notif-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rt-primary);
}

.rt-notif-link:hover {
    text-decoration: underline;
}

.rt-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.rt-notif-action-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--rt-radius-sm);
    border: 1px solid var(--rt-border);
    background: transparent;
    color: var(--rt-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--rt-transition);
}

.rt-notif-action-btn:hover {
    background: var(--rt-primary);
    color: white;
    border-color: var(--rt-primary);
}

.rt-notif-action-btn.danger:hover {
    background: var(--rt-danger);
    border-color: var(--rt-danger);
}

/* Pagination */
.rt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rt-page-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--rt-radius-sm);
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    color: var(--rt-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--rt-transition);
}

.rt-page-btn:hover {
    border-color: var(--rt-primary);
    color: var(--rt-primary);
}

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

/* Mobile */
@media (max-width: 768px) {
    .rt-notif-item {
        flex-wrap: wrap;
        padding: 0.875rem;
    }

    .rt-notif-actions {
        flex-direction: row;
        margin-left: auto;
    }

    .rt-notif-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .rt-notif-filters {
        gap: 0.25rem;
    }

    .rt-filter-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}
