/* Global Custom Cursors - Absolute Premium Implementation & Early Load Enforcement */
/* Enforce logo cursor on EVERYTHING immediately during page load to prevent "original pointer" flash */
html, body, *, *::before, *::after {
    cursor: url('../../pointer_black_cursor.png') 50% 100%, auto !important;
}

[data-theme="dark"] html, [data-theme="dark"] body, [data-theme="dark"] *, [data-theme="dark"] *::before, [data-theme="dark"] *::after {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Auth Page Override - Enforce white branded cursor regardless of theme */
.auth-page, .auth-page * {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Handle click (active) and focus states globally */
*:active, *:focus {
    cursor: url('../../pointer_black_cursor.png') 0 0, auto !important;
}

[data-theme="dark"] *:active, [data-theme="dark"] *:focus {
    cursor: url('../../pointer_white_cursor.png') 0 0, auto !important;
}

/* Preserve text cursor for input fields to ensure functionality */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea, [contenteditable="true"] {
    cursor: text !important;
}

/* Specific state overrides to ensure the logo is maintained during system pointer changes */
a, button, [role="button"], label, select, input, .clickable, canvas, [class*="card"], .message-item, .nav-tab, .member-item, .bt-sb-item, .bt-sb-sub {
    cursor: url('../../pointer_black_cursor.png') 0 0, auto !important;
}

[data-theme="dark"] a, 
[data-theme="dark"] button, 
[data-theme="dark"] [role="button"], 
[data-theme="dark"] label, 
[data-theme="dark"] select, 
[data-theme="dark"] input,
[data-theme="dark"] .clickable,
[data-theme="dark"] canvas,
[data-theme="dark"] [class*="card"],
[data-theme="dark"] .message-item,
[data-theme="dark"] .nav-tab,
[data-theme="dark"] .member-item,
[data-theme="dark"] .bt-sb-item,
[data-theme="dark"] .bt-sb-sub,
/* Enforce white pointer on all navigation components */
.sn-sidebar, .sn-sidebar *, .bt-topbar2, .bt-topbar2 *, .bt-tb-menu, .bt-tb-notify, .sn-brand, .sn-nav, .sn-sidebar *:active, .sn-sidebar *:focus, .bt-topbar2 *:active, .bt-topbar2 *:focus {
    cursor: url('../../pointer_white_cursor.png') 0 0, auto !important;
}

/* CSS Variables for Light and Dark Modes */
:root {
    /* Light mode colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    /* Base page background */
    --background-color: #eef2f7;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* App chrome (sidebar/topbar) — Light (NOT pure white) */
    --app-bg: #eef2f7;
    --topbar-bg: rgba(255, 255, 255, 0.88);
    --topbar-border: rgba(15, 23, 42, 0.12);

    --sidebar-bg:
        radial-gradient(900px 220px at 20% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(203, 213, 225, 0.98) 0%, rgba(186, 198, 214, 0.96) 55%, rgba(186, 198, 214, 0.94) 100%);
    --sidebar-border: rgba(15, 23, 42, 0.14);
    --sidebar-text: #1f2937;
    --sidebar-muted: rgba(31, 41, 55, 0.62);
    --sidebar-hover-bg: rgba(15, 23, 42, 0.08);
    --sidebar-hover-text: #0b1220;
    --sidebar-active-bg: rgba(59, 130, 246, 0.14);
    --sidebar-active-border: rgba(37, 99, 235, 0.75);
    --sidebar-active-text: #0b1220;
    --sidebar-chip-bg: rgba(15, 23, 42, 0.07);
    --sidebar-chip-border: rgba(15, 23, 42, 0.14);
    --sidebar-surface: rgba(203, 213, 225, 0.96);
    --sidebar-dd-bg: var(--sidebar-surface);
    --sidebar-dd-border: rgba(15, 23, 42, 0.14);
    --sidebar-dd-hover-bg: rgba(15, 23, 42, 0.08);
    --sidebar-dd-text: #0f172a;
}

/* Dark mode colors */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary-color: #94a3b8;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    /* Base page background */
    --background-color: #0b1220;
    /* Cards / surfaces should feel near-black */
    --surface-color: #0b1220;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: rgba(148, 163, 184, 0.18);
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);

    /* App chrome (sidebar/topbar) — Dark */
    --app-bg: #0b1220;
    --topbar-bg: rgba(11, 17, 23, 0.72);
    --topbar-border: rgba(255, 255, 255, 0.10);

    --sidebar-bg:
        radial-gradient(900px 220px at 20% 0%, rgba(96, 165, 250, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(11, 17, 23, 0.96) 0%, rgba(36, 41, 47, 0.96) 45%, rgba(36, 41, 47, 0.98) 100%);
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-text: #adbac7;
    --sidebar-muted: rgba(255, 255, 255, 0.40);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --sidebar-hover-text: #ffffff;
    --sidebar-active-bg: rgba(255, 255, 255, 0.12);
    --sidebar-active-border: #f78166;
    --sidebar-active-text: #ffffff;
    --sidebar-chip-bg: rgba(255, 255, 255, 0.04);
    --sidebar-chip-border: rgba(255, 255, 255, 0.06);
    --sidebar-surface: rgba(11, 17, 23, 0.98);
    --sidebar-dd-bg: var(--sidebar-surface);
    --sidebar-dd-border: rgba(255, 255, 255, 0.12);
    --sidebar-dd-hover-bg: rgba(255, 255, 255, 0.07);
    --sidebar-dd-text: #f1f5f9;
}

/* Smooth transition for theme switching (only after theme is ready to avoid first-load flash) */
html.theme-ready *,
html.theme-ready *::before,
html.theme-ready *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--app-bg);
}

/* Global Custom Cursors - Absolute Premium Implementation */
/* Enforce logo cursor on EVERYTHING to override all system pointers including the hand/finger icon */
*,
*::before,
*::after {
    cursor: url('../../pointer_black_cursor.png') 50% 100%, auto !important;
}

[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Handle click (active) and focus states globally */
*:active,
*:focus {
    cursor: url('../../pointer_black_cursor.png') 50% 100%, auto !important;
}

[data-theme="dark"] *:active,
[data-theme="dark"] *:focus {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Preserve text cursor for input fields to ensure functionality */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
[contenteditable="true"] {
    cursor: text !important;
}

/* Specific state overrides to ensure the logo is maintained even during system pointer changes */
a,
button,
[role="button"],
label,
select,
input,
.clickable,
canvas,
[class*="card"],
.message-item,
.nav-tab,
.member-item,
.bt-sb-item,
.bt-sb-sub {
    cursor: url('../../pointer_black_cursor.png') 50% 100%, auto !important;
}

[data-theme="dark"] a,
[data-theme="dark"] button,
[data-theme="dark"] [role="button"],
[data-theme="dark"] label,
[data-theme="dark"] select,
[data-theme="dark"] input,
[data-theme="dark"] .clickable,
[data-theme="dark"] canvas,
[data-theme="dark"] [class*="card"],
[data-theme="dark"] .message-item,
[data-theme="dark"] .nav-tab,
[data-theme="dark"] .member-item,
[data-theme="dark"] .bt-sb-item,
[data-theme="dark"] .bt-sb-sub {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Navbar and Topbar specific - ensure white pointer on all components and all mouse states */
.sn-sidebar,
.sn-sidebar *,
.bt-topbar2,
.bt-topbar2 *,
.bt-tb-menu,
.bt-tb-notify,
.sn-brand,
.sn-nav {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

.sn-sidebar *:active,
.sn-sidebar *:focus,
.bt-topbar2 *:active,
.bt-topbar2 *:focus {
    cursor: url('../../pointer_white_cursor.png') 50% 100%, auto !important;
}

/* Landing Page Styles */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 4rem 0;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.features {
    padding: 4rem 0;
    background: var(--surface-color);
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--background-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-item .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-footer {
    background: var(--text-primary);
    color: var(--background-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Auth Pages — professional split layout (login / register) */
body.auth-page {
    background: #0f172a;
    color: #f1f5f9;
    min-height: 100vh;
    /* Helps browsers render form controls (and autofill) in dark mode */
    color-scheme: dark;
}

body.auth-page * {
    transition-property: border-color, box-shadow, background-color, color, opacity, transform;
}

/* Home (index.php) — match auth/login theme */
.home-layout {
    padding-top: 4.5rem;
    padding-bottom: 4.25rem;
    /* room for fixed footer bar */
}

/* Home layout should feel wide (not centered/narrow) */
.auth-layout.home-layout {
    max-width: 1320px;
    gap: 5rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.home-aside {
    justify-self: start;
}

.home-main {
    justify-self: end;
}

.home-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.home-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.22;
    transform: translate3d(0, 0, 0);
    animation: homeFloat 9s ease-in-out infinite;
}

.home-orb--a {
    left: -180px;
    top: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.9), transparent 55%);
    animation-duration: 10s;
}

.home-orb--b {
    right: -220px;
    top: -120px;
    background: radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.9), transparent 55%);
    animation-duration: 12s;
}

.home-orb--c {
    right: -120px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at 35% 35%, rgba(14, 165, 233, 0.85), transparent 55%);
    animation-duration: 14s;
}

@keyframes homeFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -18px, 0);
    }
}

.home-topbar {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 20;
}

.home-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 220px at 20% 0%, rgba(96, 165, 250, 0.18), transparent 60%);
    pointer-events: none;
}

.home-topbar>* {
    position: relative;
    z-index: 1;
}

.home-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.home-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.home-brand-name {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.home-brand-tagline {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.72);
    margin-top: 0.1rem;
}

.home-topbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.home-aside .auth-aside-title {
    margin-top: 0.25rem;
}

.home-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.25rem;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.25rem 0 1.15rem;
}

.home-stat {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-stat-value {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.home-stat-label {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.72);
    margin-top: 0.2rem;
}

.home-list {
    margin-top: 1.25rem;
}

.home-aside-link {
    margin-top: 0.85rem;
}

.home-aside-link a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
}

.home-aside-link a:hover {
    text-decoration: underline;
}

/* Right side panel (no big outer box) */
.home-panel {
    width: 100%;
    max-width: 820px;
    padding: 0;
    position: relative;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.home-feature {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    /* shape change */
    padding: 1.35rem 1.35rem 1.4rem;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 190px;
    position: relative;
    overflow: hidden;
    animation: homeCardIn 500ms ease both;
    animation-delay: var(--delay, 0ms);
    transform: translateY(var(--offset, 0px));
}

.home-feature:hover {
    transform: translateY(calc(var(--offset, 0px) - 6px));
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.65);
}

.home-feature:hover .home-feature-icon {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.18);
}

@keyframes homeCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 260px at 18% 0%, rgba(96, 165, 250, 0.14), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.home-feature>* {
    position: relative;
    z-index: 1;
}

.home-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.6rem;
}

.home-feature-title {
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.home-feature-text {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.55;
}

/* Fixed footer bar (bottom, full width) */
.home-footerbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: rgba(15, 23, 42, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 30;
}

.home-footerbar-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.875rem;
    text-align: center;
}

.home-footerbar a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.home-footerbar a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .home-topbar {
        padding: 0.85rem 1rem;
    }

    .auth-layout.home-layout {
        max-width: 1040px;
        gap: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 768px) {
    .home-layout {
        padding-top: 5.5rem;
        padding-bottom: 5.25rem;
    }

    .home-topbar-actions .btn {
        padding: 0.6rem 1rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-orb,
    .home-feature,
    .home-topbar::before {
        animation: none !important;
    }
}

/* Mini workflow strip under feature grid */
.home-mini {
    margin-top: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-mini-title {
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.home-mini-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.9rem;
}

.home-pill {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.9);
    font-weight: 600;
}

.home-pill--good {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.home-pill--bad {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}

.home-arrow {
    opacity: 0.8;
    font-weight: 700;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 20%, rgba(9, 105, 218, 0.22), transparent 50%),
        radial-gradient(ellipse 60% 45% at 0% 80%, rgba(14, 165, 233, 0.18), transparent 45%),
        linear-gradient(168deg, #0c1222 0%, #1e293b 42%, #0f172a 100%);
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
}

.auth-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 3rem;
    align-items: center;
}

.auth-aside {
    padding-right: 1rem;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(241, 245, 249, 0.65);
    text-decoration: none;
    margin-bottom: 2rem;
}

.auth-back-home:hover {
    color: #fff;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.auth-brand-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(9, 105, 218, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.auth-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-aside-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.75rem;
}

.auth-aside-text {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(241, 245, 249, 0.72);
    max-width: 36ch;
    margin-bottom: 1.75rem;
}

.auth-aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-aside-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.85);
}

.auth-aside-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.auth-main {
    display: flex;
    justify-content: center;
}

/* Wrapper for auth card + border-crawler bug (JS adds .auth-card-shell) */
.auth-card-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.auth-card-shell--wide {
    max-width: 560px;
}

.auth-card-shell .auth-card {
    max-width: none;
    width: 100%;
}

.auth-border-bug-img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 12;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    will-change: transform, left, top;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    /* Outline-only frame (no background fill) */
    background: transparent;
    color: #f8fafc;
    padding: 2.25rem 2rem;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35),
        0 18px 42px -18px rgba(0, 0, 0, 0.55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: visible;
}

/* No fill overlays for outline-only frame */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    mix-blend-mode: normal;
    pointer-events: none;
}

.auth-card>* {
    position: relative;
    z-index: 1;
}

/* Wider card (e.g. Create Business) — less “tall narrow” feel */
.auth-card.auth-card--wide {
    max-width: 560px;
}

@media (min-width: 640px) {
    .auth-card.auth-card--wide .auth-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.125rem 1.25rem;
    }

    .auth-card.auth-card--wide .auth-form .form-group {
        min-width: 0;
        /* prevent overflow that causes label clipping */
    }

    .auth-card.auth-card--wide .auth-form .form-group label {
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }

    .auth-card.auth-card--wide .auth-form .form-group input,
    .auth-card.auth-card--wide .auth-form .form-group select {
        width: 100%;
    }

    .auth-card.auth-card--wide .auth-form>.form-group.auth-field-full,
    .auth-card.auth-card--wide .auth-form>.form-row.auth-field-full {
        grid-column: 1 / -1;
    }

    .auth-card.auth-card--wide .auth-form>.btn {
        grid-column: 1 / -1;
    }
}

.auth-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.auth-header p {
    font-size: 0.9375rem;
    color: rgba(241, 245, 249, 0.72);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

/* Form groups — global (app pages); auth card gets refined inputs */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.auth-card .form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 0.4rem;
}

.auth-card .form-group input,
.auth-card .form-group select {
    padding: 0.8125rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    font-size: 0.9375rem;
    background: rgba(15, 23, 42, 0.22);
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Fix browser autofill forcing white/yellow backgrounds (Chrome/Edge/Safari/Firefox) */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card select:-webkit-autofill,
.auth-card select:-webkit-autofill:hover,
.auth-card select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    caret-color: #f8fafc;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.22) inset;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.22) inset;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    transition: background-color 9999s ease-out, color 9999s ease-out;
}

.auth-card input:autofill,
.auth-card select:autofill {
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.22) inset;
}

.auth-card .form-group input::placeholder {
    color: rgba(226, 232, 240, 0.55);
}

.auth-card .form-group input:hover,
.auth-card .form-group select:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.26);
}

.auth-card .form-group input:focus,
.auth-card .form-group select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(15, 23, 42, 0.28);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.auth-card .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.auth-card .form-group small {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.7);
}

.auth-card .btn-primary.btn-full {
    margin-top: 0.25rem;
    padding: 0.9rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #0ea5e9 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.auth-card .btn-primary.btn-full:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-footer p {
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.72);
}

.auth-footer a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Demo credentials — collapsible */
.auth-demo {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.auth-demo summary {
    list-style: none;
    cursor: pointer;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.auth-demo summary::-webkit-details-marker {
    display: none;
}

.auth-demo summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(226, 232, 240, 0.7);
    border-bottom: 2px solid rgba(226, 232, 240, 0.7);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.auth-demo[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.auth-demo .demo-grid {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.625rem;
}

.demo-account {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.78);
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-account strong {
    color: #ffffff;
    font-weight: 600;
}

.auth-card .alert {
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Legacy class kept for any old markup */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-accounts {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.demo-accounts h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.navbar {
    background: var(--surface-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 2rem;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--background-color);
    color: var(--primary-color);
}

.navbar-user {
    margin-right: 2rem;
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.user-button:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: var(--background-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Theme Toggle Styles */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--background-color);
}

.theme-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.theme-switch.active {
    background: var(--primary-color);
}

.theme-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-switch.active::before {
    transform: translateX(20px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: auto;
    padding: 0;
    /* pages control their own padding (keeps topbar full-width) */
    max-width: none;
    margin: 0;
    width: auto;
}

/* Standard inner page padding for pages with sticky topbar */
.bt-page {
    padding: 1.5rem 2rem;
    max-width: 90rem;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-header p {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.recent-bugs h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bugs-list {
    display: grid;
    gap: 1rem;
}

.bug-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.bug-card:hover {
    transform: translateY(-2px);
}

.bug-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bug-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bug-meta {
    display: flex;
    gap: 0.5rem;
}

.priority-badge,
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.bug-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bug-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Forms */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
}

.form-container {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.bug-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group:only-child {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Filters */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-tab {
    padding: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.bugs-container {
    margin-top: 2rem;
}

.bugs-grid {
    display: grid;
    gap: 1.5rem;
}

.bug-card-detailed {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.bug-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bug-title {
    flex: 1;
}

.bug-title h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bug-id {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bug-badges {
    display: flex;
    gap: 0.5rem;
}

.bug-description {
    margin-bottom: 1.5rem;
}

.bug-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.visible-impact {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.visible-impact strong {
    color: var(--text-primary);
}

.bug-screenshot {
    margin-top: 1rem;
}

.bug-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bug-screenshot img:hover {
    transform: scale(1.05);
}

.bug-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.bug-meta strong {
    color: var(--text-primary);
}

.bug-actions {
    display: flex;
    gap: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Bug list pages (my_bugs, developer_bugs): compact bar + ellipsis */
.pagination.bugs-pagination {
    padding: 0.65rem 0.85rem;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
}

.pagination.bugs-pagination .pagination-btn {
    padding: 0.4rem 0.55rem;
    color: #57606a;
    border-color: #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.8125rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination.bugs-pagination .pagination-btn.pagination-btn-nav {
    min-width: auto;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
}

.pagination.bugs-pagination .pagination-btn:hover,
.pagination.bugs-pagination .pagination-btn.active {
    background: #0969da;
    color: #ffffff;
    border-color: #0969da;
}

.pagination.bugs-pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 0.2rem;
    color: #636c76;
    font-size: 0.875rem;
    font-weight: 800;
    user-select: none;
    pointer-events: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 15% auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Dark mode alert adjustments */
[data-theme="dark"] .alert-success {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .alert-error {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] .alert-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fde047;
    border-color: rgba(251, 191, 36, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .bug-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .bug-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 1rem 2rem;
    }

    .auth-aside {
        padding-right: 0;
        text-align: center;
    }

    .auth-aside-text {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-aside-list li {
        justify-content: center;
    }

    .auth-brand {
        justify-content: center;
    }

    .auth-back-home {
        margin-bottom: 1.25rem;
    }

    .auth-card {
        max-width: none;
        padding: 1.75rem 1.35rem;
    }

    .auth-card-shell,
    .auth-card-shell--wide {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .bug-actions {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }
}