:root {
    /* New Palette: White & Green */
    --bg-dark: #f0f2f5;
    /* Light gray/white background */
    --bg-card: rgba(255, 255, 255, 0.7);
    /* White glass */
    --bg-input: #ffffff;
    --primary: #00b341;
    /* Qubix Green */
    --primary-glow: rgba(0, 179, 65, 0.2);
    --text-main: #1a1a1a;
    /* Dark text */
    --text-muted: #666666;
    --accent: #00d95a;
    /* Lighter green */
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);

    --header-height: 75px;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Subtle background pattern/gradient for premium feel */
    background-image:
        radial-gradient(at 10% 10%, rgba(0, 179, 65, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(0, 217, 90, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--nav-height);
}

/* Force dark text for headings in this light theme */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1a1a1a !important;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-top: var(--header-height);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: #111;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 179, 65, 0.1);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow);
    color: white;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    transition: 0.2s;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    margin-bottom: 16px;
    transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Navigation - Mobile Bottom Bar */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 10px;
    gap: 4px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

/* Navigation - Desktop Top Bar */
.desktop-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    align-items: center;
    padding: 0 32px;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.desktop-menu {
    display: flex;
    gap: 32px;
}

.desktop-menu a {
    font-weight: 500;
    color: var(--text-muted);
}

.desktop-menu a:hover,
.desktop-menu a.text-primary {
    color: var(--primary);
}

/* Mobile Top Nav */
.mobile-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-top-nav i {
    color: var(--text-main);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    .mobile-top-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }
}

/* Home Page */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 20px;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 700;
}

.categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: white;
    border: 1px solid #eee;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-pill.active,
.category-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.news-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: center;
}

.news-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.news-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text-main);
}

/* Profile */
.profile-header {
    text-align: center;
    margin: 40px 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    border-bottom: 1px solid #eee;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}