/* ============================================================
   ALPHINIX — Global CSS
   Design: Corporate / Minimal / Premium Tech
   ============================================================ */

/* Inter font is loaded via <link rel="preconnect"> in layout files — no @import here */

/* ─── CSS Variables ─── */
:root {
    --color-primary: #0050ff;
    --color-primary-d: #003dcc;
    --color-primary-l: #ebf0ff;
    --color-dark: #0d1b2a;
    --color-dark-2: #1a2b3c;
    --color-slate: #4b5563;
    --color-muted: #9ca3af;
    --color-border: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    --font-base: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 180ms ease;
    --container: 90rem;
    /* ~1440px default desktop width */
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 100%;
}

html,
body {
    overscroll-behavior-y: auto;
}

body {
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-dark);
    background: var(--color-bg);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ─── Container ─── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Wide container for select public sections */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6875rem 1.5rem;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-d);
    border-color: var(--color-primary-d);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 80, 255, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-l);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

.btn-dark:hover {
    background: var(--color-dark-2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

/* ─── Section Spacing ─── */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-dark {
    background: var(--color-dark);
    color: #fff;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* ─── Typography ─── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

.section-title-white {
    color: #fff;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--color-slate);
    max-width: 42rem;
    margin-top: 0.875rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header-center {
    text-align: center;
}

.section-header-center .section-desc {
    margin: 0.875rem auto 0;
}

/* ─── Cards ─── */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    border-color: rgba(0, 80, 255, 0.1);
}

.card-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-primary-l);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    transition:
        background var(--transition),
        transform var(--transition);
}

.card:hover .card-icon {
    background: rgba(0, 80, 255, 0.12);
    transform: scale(1.05);
}

.card-icon svg {
    color: var(--color-primary);
    width: 1.375rem;
    height: 1.375rem;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--color-slate);
    line-height: 1.6;
}

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

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

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

/* ─── Badge ─── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--color-primary-l);
    color: var(--color-primary);
}

.badge-success {
    background: #d1fae5;
    color: #059669;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-dark);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-danger);
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* ─── Alert Messages ─── */
.alert {
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fdf4;
    border-color: var(--color-success);
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--color-danger);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--color-warning);
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: var(--color-info);
    color: #1e40af;
}

/* ─── Table ─── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th {
    background: var(--color-bg-alt, #fafbfc);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted, #64748b);
    border-bottom: 1px solid var(--color-border);
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-dark);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: all 0.15s ease;
}

.table tbody tr:hover {
    background: var(--color-bg-alt, #f8fafc);
    box-shadow: 0 0 0 1px var(--color-border) inset;
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ─── Utility ─── */
.text-muted {
    color: var(--color-muted);
}

.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

.text-danger {
    color: var(--color-danger);
}

.text-center {
    text-align: center;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* ─── Divider ─── */
.divider {
    height: 1px;
    background: var(--color-border);
    margin: 2rem 0;
}

/* ─── Fade-in animation ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ─── Navbar ─── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 00, 0, 0.06);
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.navbar .container {
    position: relative;
}

.navbar-inner {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: none;
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Direct links */
.navbar-nav > li > a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-slate);
    border-radius: var(--radius-md);
    transition:
        color 0.2s ease,
        background 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.navbar-nav > li > a:hover {
    color: var(--color-dark);
    background: rgba(0, 0, 0, 0.035);
}

.navbar-nav > li > a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.navbar-nav > li > a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Trigger buttons (mega) */
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-slate);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    transition:
        color 0.2s ease,
        background 0.2s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-trigger:hover {
    color: var(--color-dark);
    background: rgba(0, 0, 0, 0.035);
}

.nav-trigger.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-trigger.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.navbar-actions .btn-sm {
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    padding: 0.375rem 1rem;
}

/* Hide mobile-only auth on desktop */
.nav-mobile-auth {
    display: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.375rem;
    border-radius: var(--radius-md);
    color: var(--color-dark);
}

.navbar-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ─── Chevron ─── */
.nav-chevron {
    transition: transform 0.25s ease;
    opacity: 0.45;
    flex-shrink: 0;
}

.has-mega.mega-open .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

/* ─── Mega Menu ─── */
.has-mega {
    position: static;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    z-index: 999;
    padding: 2rem 0;
    pointer-events: none;
}

.has-mega.mega-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-grid {
    display: grid;
    gap: 0;
}

.mega-cols-3 {
    grid-template-columns: 1fr 1.1fr 0.9fr;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 1.75rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-col:last-child {
    border-right: none;
}

/* First column — intro text */
.mega-col:first-child {
    justify-content: center;
}

.mega-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.mega-desc {
    font-size: 0.875rem;
    color: var(--color-slate);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.mega-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.mega-link:hover {
    gap: 0.5rem;
}

/* Link items with icons */
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.mega-item:hover {
    background: rgba(0, 80, 255, 0.04);
}

.mega-item-icon {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-l);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.mega-item div {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}

.mega-item strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
}

.mega-item span {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* Featured column — card with image */
.mega-featured {
    border-right: none !important;
    padding: 0 1.75rem;
}

.mega-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.mega-card img {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mega-card .mega-card-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding: 0 1rem;
    margin-top: 0.25rem;
}

.mega-card strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 0 1rem;
    line-height: 1.35;
}

.mega-card .mega-link {
    padding: 0 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

/* ─── Explore Button ─── */
.btn-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-explore:hover {
    background: var(--color-primary-l);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-explore.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ─── Explore Overlay ─── */
.explore-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.explore-overlay.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.explore-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.explore-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 56rem;
    height: 100%;
    background: linear-gradient(160deg, #f8faff 0%, #ffffff 40%, #f0f4ff 100%);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 60px rgba(0, 0, 0, 0.12);
}

.explore-overlay.open .explore-panel {
    transform: translateX(0);
}

/* Subtle grid texture on panel */
.explore-panel::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 56rem;
    height: 100%;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(59, 130, 246, 0.04) 1px,
        transparent 0
    );
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative blue glow blob top-right */
.explore-panel::after {
    content: "";
    position: fixed;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.12) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.explore-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(248, 250, 255, 0.97),
        rgba(255, 255, 255, 0.97)
    );
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.explore-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.03em;
}

.explore-title::after {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-top: 0.25rem;
}

.explore-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.explore-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    transform: rotate(90deg);
}

.explore-body {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.explore-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.explore-section-title svg {
    opacity: 0.7;
}

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

.explore-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

/* Subtle left accent bar */
.explore-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.explore-card:hover::before {
    height: 60%;
}

.explore-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.explore-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.explore-card strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
}

.explore-card span {
    font-size: 0.775rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Staggered entry animation */
.explore-overlay.open .explore-card {
    animation: exploreCardIn 0.4s ease both;
}

.explore-overlay.open .explore-section:nth-child(1) .explore-card:nth-child(1) {
    animation-delay: 0.05s;
}

.explore-overlay.open .explore-section:nth-child(1) .explore-card:nth-child(2) {
    animation-delay: 0.1s;
}

.explore-overlay.open .explore-section:nth-child(1) .explore-card:nth-child(3) {
    animation-delay: 0.15s;
}

.explore-overlay.open .explore-section:nth-child(1) .explore-card:nth-child(4) {
    animation-delay: 0.2s;
}

.explore-overlay.open .explore-section:nth-child(2) .explore-card:nth-child(1) {
    animation-delay: 0.15s;
}

.explore-overlay.open .explore-section:nth-child(2) .explore-card:nth-child(2) {
    animation-delay: 0.2s;
}

.explore-overlay.open .explore-section:nth-child(2) .explore-card:nth-child(3) {
    animation-delay: 0.25s;
}

.explore-overlay.open .explore-section:nth-child(3) .explore-card:nth-child(1) {
    animation-delay: 0.2s;
}

.explore-overlay.open .explore-section:nth-child(3) .explore-card:nth-child(2) {
    animation-delay: 0.25s;
}

.explore-overlay.open .explore-section:nth-child(3) .explore-card:nth-child(3) {
    animation-delay: 0.3s;
}

.explore-overlay.open .explore-section:nth-child(3) .explore-card:nth-child(4) {
    animation-delay: 0.35s;
}

.explore-overlay.open .explore-section:nth-child(3) .explore-card:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes exploreCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .explore-panel {
        max-width: 100%;
    }

    .explore-panel::before,
    .explore-panel::after {
        display: none;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .explore-header {
        padding: 1rem 1.25rem;
    }

    .explore-body {
        padding: 1.25rem 1.25rem 2rem;
    }
}

/* ─── Mobile Nav Overlay — hidden by default globally ─── */
.mobile-nav-overlay {
    display: none;
}

.mobile-nav-overlay.open {
    display: block;
}

/* ─── Footer ─── */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 2rem;
}

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

.footer-brand .footer-logo {
    margin-bottom: 0.875rem;
}

.footer-logo-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 22rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.6);
}

.footer-socials a:hover {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .mega-cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .mega-featured {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Navbar base */
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--color-bg, #fff);
        border-bottom: 1px solid var(--color-border);
    }

    .navbar-inner {
        height: 3.25rem;
    }

    .navbar-logo-img {
        height: 1.5rem;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-actions {
        display: flex !important;
        gap: 0.375rem;
    }

    /* Hide login on mobile — it's already in the slide panel */
    .navbar-actions .btn-sm {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Mobile nav open */
    /* New Mobile Nav Overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: transparent;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.open {
        display: block;
        opacity: 1;
    }

    .mobile-nav-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(30, 41, 59, 0.55);
        z-index: 1;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 400px;
        background: var(--color-bg, #fff);
        box-shadow: -2px 0 32px rgba(0, 0, 0, 0.12);
        z-index: 2;
        display: flex;
        flex-direction: column;
        animation: slideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: none;
            opacity: 1;
        }
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem 1rem;
        border-bottom: 1px solid var(--color-border);
        background: var(--color-bg, #fff);
    }

    .mobile-nav-header .navbar-logo-img {
        height: 1.5rem;
    }

    .mobile-nav-close {
        background: none;
        border: none;
        padding: 0.25rem;
        cursor: pointer;
        color: var(--color-dark);
        border-radius: var(--radius-md);
        transition: background 0.2s;
    }

    .mobile-nav-close:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1.25rem 1rem;
        flex: 1;
        overflow-y: auto;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-dark);
        text-decoration: none;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-md);
        transition:
            background 0.2s ease,
            color 0.2s ease,
            padding-left 0.2s ease;
        position: relative;
        border-left: 3px solid transparent;
    }

    .mobile-nav-links a:hover {
        background: var(--color-bg-alt);
        color: var(--color-dark);
        padding-left: 1.25rem;
    }

    .mobile-nav-links a.active {
        background: var(--color-primary-l);
        color: var(--color-primary);
        border-left-color: var(--color-primary);
        padding-left: 1.25rem;
        font-weight: 700;
    }

    .mobile-nav-divider {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-muted);
        padding: 1rem 0.375rem 0.375rem;
        margin-top: 0.25rem;
    }

    .mobile-nav-secondary {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        color: var(--color-slate) !important;
    }

    .mobile-nav-secondary.active,
    .mobile-nav-secondary:hover {
        color: var(--color-primary) !important;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem 2rem;
        border-top: 1px solid var(--color-border);
        background: var(--color-bg, #fff);
    }

    .mobile-nav-actions .btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        border-radius: var(--radius-lg);
        width: 100%;
        justify-content: center;
        text-align: center;
        font-weight: 700;
    }

    @media (max-width: 768px) {
        .desktop-nav {
            display: none !important;
        }

        .navbar-actions {
            display: none !important;
        }

        .navbar-toggle {
            display: flex;
        }
    }

    /* Layout */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.875rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
    }
}

/* ─── Dark Mode: Auth Pages ─── */
[data-theme="dark"] .auth-wrap {
    background: #0c1119;
}

[data-theme="dark"] .auth-card {
    background: #111826;
    border-color: #1e2736;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .auth-logo {
    color: #f1f5f9;
}

[data-theme="dark"] .auth-title {
    color: #f1f5f9;
}

[data-theme="dark"] .auth-sub {
    color: #8b95a5;
}

[data-theme="dark"] .auth-footer {
    color: #8b95a5;
}

[data-theme="dark"] .auth-back {
    color: #60a5fa;
}

[data-theme="dark"] .divider-text {
    color: #4b5563;
}

[data-theme="dark"] .divider-text::before,
[data-theme="dark"] .divider-text::after {
    background: #1e2736;
}
