:root {
    --primary-green: #16a34a;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
    background: var(--surface);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

.page-shell {
    min-height: calc(100vh - 170px);
    padding-bottom: 24px;
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

.navbar-custom {
    min-height: 70px;
    padding: 12px 0;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-brand {
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.navbar-brand:hover { opacity: 0.85; }

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
}

.brand-market {
    color: #111827;
    opacity: 0.95;
    margin-right: 2px;
}

body.dark-mode .brand-market { color: #f8fafc; }

.brand-niro {
    color: var(--primary-green);
    font-weight: 800;
}

.btn-green {
    background: var(--primary-green);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.15);
}

.btn-green:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-dark {
    color: #111827;
    border: 1.5px solid #d1d5db;
    font-size: 1rem;
    padding: 7px 11px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-dark:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

body.dark-mode .btn-outline-dark {
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .btn-outline-dark:hover {
    background: #1e293b;
    border-color: #64748b;
    color: #f1f5f9;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-secondary {
    background: #020617;
    border-top: 1px solid #1e293b;
}

.nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover { color: #22c55e !important; }

.active-link {
    color: #22c55e !important;
    font-weight: 600;
}

.nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar { display: none; }

.card {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
}

body.dark-mode .card {
    background: #1e293b;
}

body.dark-mode .table {
    color: #e5e7eb;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle { color: var(--muted); }

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        width: 40px;
    }

    .navbar-custom {
        min-height: 60px;
        padding: 8px 0;
    }

    .navbar-brand span { font-size: 1.2rem; }
    .navbar .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .navbar-actions { gap: 8px; }
}
