:root {
    /* Layout & Structure */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Variable Default Fallbacks (will be overridden by themes) */
    --bg-dark: #0f1115;
    --bg-surface: #16191e;
    --bg-card: rgba(22, 25, 30, 0.7);
    --bg-sidebar: #0f1115;
    --primary: var(--primary);
    --primary-light: #e6c152;
    --primary-rgb: var(--primary-rgb);
    --accent: #ff4d4d;
    --accent-rgb: 255, 77, 77;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --calendar-filter: invert(1) brightness(1.2);
    
    /* Shadow tokens */
    --card-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    --card-hover-shadow: 0 15px 40px -10px rgba(0,0,0,0.6);

    /* Helper Colors */
    --success: #00ff7f;
    --warning: #f59e0b;
    --danger: #ff4d4d;
    --info: #60a5fa;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --black: #000000;
    --black-rgb: 0, 0, 0;
}

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

/* Base Body Style */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .stat-value-premium {
    font-family: 'Outfit', sans-serif;
}

/* App Skeleton */
.app-container {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-dark);
    position: relative;
    transition: var(--transition);
}

.page-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    -webkit-overflow-scrolling: touch;
}

/* Lucide Icons Global Rule 10 */
[data-lucide], [data-lucide] svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.icon-lucide {
    width: 18px;
    height: 18px;
}

.icon-xs, .icon-xs svg { width: 12px; height: 12px; }
.icon-sm, .icon-sm svg { width: 14px; height: 14px; }
.icon-md, .icon-md svg { width: 16px; height: 16px; }
.icon-lg, .icon-lg svg { width: 24px; height: 24px; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

input[type="radio" i]{
    display: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.3);
}

/* --- TICKER (MARQUEE) --- */
.ticker-wrapper {
    width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    position: relative !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.ticker-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    min-width: 100% !important;
    animation: ticker-loop 40s linear infinite !important;
}

.ticker-item {
    padding: 0 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

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

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused !important;
}
/* Public Navigation */
.public-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.public-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.public-logo i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.public-logo span:last-child {
    color: var(--primary);
}

.btn-login-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-login-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Layout Adjustments */
.public-layout .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.public-layout .page-content {
    padding: 0 !important;
}
