/*=== Global CSS ===*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    color-scheme: dark;
    --primary-green: #538d03;
    --secondary-green: #78d504;
    --bg-grad: linear-gradient(135deg, #0f172a 0%, #1a2335 50%, #111827 100%);
    --bg-dark: rgb(17, 25, 40);
    --hover: rgb(27, 38, 60);
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light-gray: #999999;
    --border-color: #555555;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    --card-radius: 16px;
    --card-border: rgba(255, 255, 255, .10);
    --card-border-hover: rgba(255, 255, 255, .18);
    --card-surface: rgba(255, 255, 255, .04);
    --card-surface-2: rgba(255, 255, 255, .06);
    --dark-primary: radial-gradient(900px circle at 20% 15%, rgba(83,141,3,0.25), transparent 60%),
    radial-gradient(700px circle at 80% 70%, rgba(83,141,3,0.12), transparent 55%),
    linear-gradient(180deg, rgb(17,25,40) 0%, rgb(17,25,40) 100%);
}
html, body {
    background: #101929 !important;
}
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html {scrollbar-gutter: stable;}
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-green);
}
.link {
    color: var(--primary-green);
    font-weight: 500;
}
.link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.text-danger {
    color: red;
}

/*=== Main content & Flash messages ===*/
.main-content {
    margin-top: 4rem;
    padding: 2rem;
    min-height: calc(100vh - 5rem);
    transition: margin-left 0.35s ease;
    background: var(--bg-dark);
}
.with-sidebar {
    margin-left: 5rem;
}
.sidebar:hover ~ .main-content {
    margin-left: 17rem;
}
.sidebar.open ~ .main-content {
    margin-left: 17rem;
}
.flash-messages {
    position: fixed;
    top: 20px;
    right: 1rem;
    left: auto;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(450px, calc(100vw - 2rem));
    pointer-events: none;
}
.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    pointer-events: auto;
    animation: fadeOut 5s ease forwards;
}
.flash-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}
.flash-error,
.flash-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}
.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}
.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}
.flash-message.fade-out {
    opacity: 0;
    transform: translateX(100%);
}
.flash-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    color: currentColor;
    z-index: 10;
    pointer-events: auto;
}
.flash-close:hover {
    opacity: 1;
}
.btn-disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}
.flash-messages { pointer-events: none; }
.flash-message { pointer-events: auto; }
.flash-message.fade-out { pointer-events: none; }
@keyframes fadeOut {
    0%   { opacity: 1; transform: translateX(0); }
    80%  { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}
@media (max-width: 62rem) {
    .with-sidebar {
        margin-left: 0 !important;
    }
    .main-content {
        padding: 1.25rem;
    }
}
@media (max-width: 30rem){
    .flash-messages {
        left: 1rem;
        right: 1rem;
        width: auto;
        top: 1rem;
    }

    .flash-message {
        padding: 0.85rem 1rem;
    }

    .flash-close {
        right: 0.75rem;
        top: 0.35rem;
    }
}

/*== Navbar ==*/
.navbar {
    background: rgba(17, 25, 40, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 4rem;
    right: 0;
    z-index: 1000;
    overflow: visible;
    box-shadow:
            0 1px 0 rgba(255,255,255,0.04),
            0 4px 24px rgba(0,0,0,0.4);
    /* Gradient bottom border */
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg,
    transparent 0%,
    rgba(83,141,3,0.5) 30%,
    rgba(120,213,4,0.3) 55%,
    transparent 100%) 1;
}
.nav-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    height: 100%;
}

/* Brand */
.nav-brand {
    display: inline-flex;
    align-items: center;
}
.brand-logo {
    height: clamp(2rem, 2.8vw, 2.6rem);
    width: auto;
    margin-left: clamp(1rem, 4vw, 5rem);
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.brand-logo:hover {
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(120,213,4,0.3));
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: relative;
    width: 2rem;
    height: 1.4rem;
    cursor: pointer;
}
.mobile-menu-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.18rem;
    background: var(--text-white);
    border-radius: 0.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform-origin: center;
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }
.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--primary-green);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background: var(--primary-green);
}

/* Profile Dropdown */
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-trigger:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.12);
}
.profile-trigger:focus { outline: none; }
.profile-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(120,213,4,0.28);
    border-color: rgba(120,213,4,0.4);
}
.profile-icon i {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-green);
    filter: drop-shadow(0 0 5px rgba(120,213,4,0.3));
}
.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-gray);
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: rgba(13, 20, 33, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow:
            0 16px 40px rgba(0,0,0,0.55),
            0 1px 0 rgba(255,255,255,0.05) inset;
    z-index: 1000;
    display: none;
    overflow: hidden;
    transform-origin: top right;
}
.profile-dropdown:not(.hidden) {
    display: block;
    animation: dropPop 140ms ease-out;
}
.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: rgba(13, 20, 33, 0.97);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: rotate(45deg);
}
.profile-dropdown::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
    transparent,
    rgba(120,213,4,0.2) 40%,
    rgba(255,255,255,0.06) 60%,
    transparent);
    pointer-events: none;
}
.profile-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 9px 12px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    margin: 5px 6px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.profile-item:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-white);
}
.profile-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 10px;
}
#profile-dropdown a.profile-item:last-of-type {
    color: #f47070;
}
#profile-dropdown a.profile-item:last-of-type:hover {
    background: rgba(244,67,54,0.1);
    color: #ff6b6b;
}

/* Notification Bell */
.efn-nav-bell {
    position: relative;
    display: flex;
    align-items: center;
}
.efn-nav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}
.efn-nav-trigger:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.12);
}
.efn-nav-trigger:active { transform: translateY(1px); }
.efn-nav-trigger:focus { outline: none; }
.efn-nav-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(120,213,4,0.28);
    border-color: rgba(120,213,4,0.4);
}
.efn-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.efn-nav-icon i {
    display: block;
    color: var(--primary-green);
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(120,213,4,0.3));
}
.efn-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #ff3b30;
    color: #fff;
    transform: translate(30%, -30%);
    box-shadow:
            0 0 0 2px rgba(17, 25, 40, 0.95),
            0 2px 6px rgba(255,59,48,0.4);
}
.efn-nav-badge.hidden { display: none !important; }
.efn-nav-badge.efn-dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
    transform: translate(40%, -40%);
    box-shadow: 0 0 0 2px var(--bg-dark);
}

/* Notification Dropdown */
.efn-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, 92vw);
    max-height: 60vh;
    overflow: auto;
    background: rgba(13, 20, 33, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow:
            0 20px 50px rgba(0,0,0,0.6),
            0 1px 0 rgba(255,255,255,0.05) inset;
    z-index: 1000;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.efn-nav-dropdown:not(.hidden) {
    display: block;
    transform-origin: top right;
    animation: notifPop 140ms ease-out;
}
.efn-nav-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: rgba(13, 20, 33, 0.97);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: rotate(45deg);
    z-index: 1;
}
.efn-nav-dropdown::-webkit-scrollbar { width: 8px; }
.efn-nav-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.efn-nav-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Notification Header */
.efn-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
}
.efn-nav-header span {
    min-width: 0;
    flex: 1 1 auto;
}
.efn-nav-link {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease;
}
.efn-nav-link:hover {
    color: var(--secondary-green);
}
.efn-nav-markall {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-light-gray);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.efn-nav-markall:hover {
    background: rgba(83,141,3,0.1);
    border-color: rgba(83,141,3,0.3);
    color: var(--secondary-green);
}
.efn-nav-markall:active { transform: translateY(1px); }

/* Notification List */
.efn-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}
.efn-nav-list li.efn-item {
    position: relative;
    display: block;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    overflow: hidden;
}
.efn-nav-list li.efn-item + li.efn-item { margin-top: 6px; }
.efn-nav-list li.efn-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
.efn-nav-list li.efn-item:active { transform: translateY(1px); }

/* Unread state */
.efn-nav-list li.efn-item.efn-unread {
    color: white;
    background: rgba(83,141,3,0.07);
    border-color: rgba(83,141,3,0.2);
}
.efn-nav-list li.efn-item.efn-unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--secondary-green), var(--primary-green));
}
.efn-nav-list .efn-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}
.efn-nav-list .efn-message {
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(229,231,235,0.82);
    overflow-wrap: anywhere;
}
.efn-nav-list .efn-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.74rem;
    color: rgba(229,231,235,0.55);
}

/* Mark-read button */
.efn-nav-list .efn-btn.efn-btn-mark-read {
    margin-top: 0.4rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-gray);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.efn-nav-list .efn-btn.efn-btn-mark-read:hover {
    background: rgba(83,141,3,0.1);
    border-color: rgba(83,141,3,0.3);
    color: var(--secondary-green);
}
.efn-nav-list .efn-empty {
    color: var(--text-light-gray);
    font-weight: 600;
    margin: 1rem auto;
    padding-left: 1.5rem;
    font-size: 0.88rem;
}
.notif-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

@keyframes notifPop {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dropPop {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .brand-logo { margin-left: 0; }
}
@media (hover: none), (pointer: coarse) {
    .mobile-menu-btn { display: block; }
    .brand-logo { margin-left: 0; }
}
@media (max-width: 480px) {
    .profile-name { display: none; }

    .profile-trigger {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .profile-dropdown {
        position: fixed;
        top: 66px;
        left: 8px;
        right: 8px;
        width: auto;
        z-index: 9999;
    }

    .profile-dropdown::before { display: none; }

    .efn-nav-trigger {
        width: 40px;
        height: 40px;
    }

    .efn-nav-dropdown {
        position: fixed;
        top: 66px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: 65vh;
        z-index: 9999;
    }

    .efn-nav-dropdown::before { display: none; }
    .efn-nav-markall { padding: 7px 10px; }
}
@media (max-width: 768px) {
    .efn-nav-dropdown { width: min(360px, 92vw); }
}

/*== Footer ==*/
.footer {
    background: rgba(17, 25, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 0.2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg,
    transparent 0%,
    rgba(83,141,3,0.45) 30%,
    rgba(120,213,4,0.25) 55%,
    transparent 100%) 1;
}
.footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: radial-gradient(ellipse 60% 100% at 20% 100%,
    rgba(83,141,3,0.1), transparent 70%);
    pointer-events: none;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Sections */
.footer-section h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light-gray);
    margin: 0 0 1rem;
    position: relative;
    display: inline-block;
}
.footer-section h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-green), transparent);
}
.footer-section p {
    color: var(--text-gray);
    margin: 0.4rem 0;
    line-height: 1.6;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
.footer-section p i {
    color: var(--primary-green);
    font-size: 0.8rem;
    opacity: 0.8;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Links Section */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    position: relative;
}
.footer-section ul li a::before {
    content: "→";
    position: absolute;
    left: -1rem;
    opacity: 0;
    color: var(--primary-green);
    transition: opacity 0.2s ease, left 0.2s ease;
    font-size: 0.78rem;
}
.footer-section ul li a:hover {
    color: var(--secondary-green);
    padding-left: 1.1rem;
}
.footer-section ul li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}
.footer-bottom p {
    margin: 0;
    color: var(--text-light-gray);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }

    .footer-section {
        flex: 1;
        max-width: 300px;
    }

    .footer-section h4::after {
        left: 0;
        width: 24px;
    }

    .footer-section p {
        justify-content: flex-start;
    }
}

/*=== Sidebar ===*/
.sidebar {
    position: fixed;
    left: 0;
    top: calc(4rem - 1rem);
    bottom: 0;
    height: auto;
    width: 4rem;
    display: flex;
    flex-direction: column;
    transition: width 0.35s ease, transform 0.35s ease;
    z-index: 999;
    overflow: hidden;
}
.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(120,213,4,0.25),
            rgba(255,255,255,0.05) 50%,
            rgba(83,141,3,0.2)
    );
    pointer-events: none;
}
.sidebar.hover-open {
    width: 16.5rem;
    overflow: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    background: rgba(17, 25, 40, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 2rem 0.5rem 0.75rem;
    box-sizing: border-box;
}
.sidebar-menu li {
    margin: 0.25rem 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-gray);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 500;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a i {
    font-size: 1.2rem;
    color: var(--primary-green);
    min-width: 2rem;
    text-align: center;
    transition: transform 0.25s ease, filter 0.25s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(120,213,4,0.2));
}
.sidebar-menu a:hover {
    background: rgba(83,141,3,0.08);
    border-color: rgba(83,141,3,0.2);
    color: var(--text-white);
}
.sidebar-menu a:hover i {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px rgba(120,213,4,0.4));
}
.icon-img {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 2rem;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 0 4px rgba(120,213,4,0.2));
}
.sidebar-menu a:hover .icon-img {
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px rgba(120,213,4,0.4));
}
.sidebar-menu a.active {
    background: linear-gradient(135deg, #6aad04 0%, var(--primary-green) 50%, #3d6902 100%);
    color: white;
    border-color: rgba(120,213,4,0.35);
    box-shadow:
            0 4px 14px rgba(83,141,3,0.4),
            inset 0 1px 0 rgba(255,255,255,0.15),
            inset 0 -1px 0 rgba(0,0,0,0.2);
}

.sidebar-menu a span,
.sidebar-menu a .fa-chevron-right {
    opacity: 0;
    transform: translateX(-0.4rem);
    transition: opacity .3s ease, transform .3s ease;
}

.sidebar.hover-open .sidebar-menu a span,
.sidebar.hover-open .sidebar-menu a .fa-chevron-right {
    opacity: 1;
    transform: translateX(0);
}

.sidebar.open .sidebar-menu a span,
.sidebar.open .sidebar-menu a .fa-chevron-right {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar Flyout */
.sidebar-item-flyout {
    position: relative;
}
.sidebar-item-flyout > .flyout-menu {
    position: absolute;
    top: -0.8rem;
    transform: translateX(0.6rem);
    left: calc(100% + 0.9rem);
    min-width: 10rem;
    background: rgba(13, 20, 33, 0.97);
    backdrop-filter: blur(16px);
    border-radius: 0.5rem;
    box-shadow:
            0 12px 32px rgba(0,0,0,0.5),
            0 1px 0 rgba(255,255,255,0.04) inset;
    z-index: 2001;
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.sidebar-item-flyout > .flyout-menu::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 0;
    width: 16px;
    height: 100%;
}
.sidebar.hover-open .sidebar-item-flyout:hover > .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Flyout Menu */
.flyout-menu a {
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    gap: 0.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.flyout-menu a i {
    color: var(--primary-green);
    font-size: 0.9rem;
    min-width: auto;
    filter: drop-shadow(0 0 4px rgba(120,213,4,0.2));
}
.flyout-menu a .icon-img {
    width: 1rem;
    height: 1rem;
    min-width: auto;
}
.flyout-menu a:hover {
    background: rgba(83,141,3,0.1);
    border-color: rgba(83,141,3,0.2);
    color: var(--text-white);
}

/* Admin panel sidebar links */
.adminPanel-sidebarLink {
    margin-top: auto;
    padding-bottom: 0.75rem;
}
.sidebar-menu > li.adminPanel-sidebarLink {
    margin-top: auto !important;
}
.adminPanel-sidebarLink a {
    margin-bottom: 0.5rem;
}
.adminPanel-sidebarLink a:hover {
    border-radius: 10px;
    border-color: rgba(83,141,3,0.2);
}
#settings-flyout {
    top: -4rem;
}

@media (max-width: 992px) {
    .sidebar {
        width: 17rem;
        transform: translateX(-17rem);
        z-index: 9999;
        top: 4rem;
        bottom: 0;
        height: calc(100dvh - 4rem);
        overflow: hidden;
        left: 0;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar:hover {
        width: 17rem;
    }

    .sidebar-menu {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .sidebar-menu a span,
    .sidebar-menu a .fa-chevron-right {
        opacity: 1;
        transform: translateX(0);
    }

    .sidebar.hover-open .sidebar-item-flyout:hover > .flyout-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateX(0.6rem);
        pointer-events: none;
    }

    .sidebar-item-flyout.open > .flyout-menu {
        position: relative;
        left: 0;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        border-left: 2px solid var(--primary-green);
        box-shadow: none;
    }

    .sidebar-item-flyout.open > .flyout-menu::before {
        content: none;
    }

    #settings-flyout {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-top: 0 !important;
    }
}

/*=== Dashboard Page ===*/
.dashboard-wrapper {
    width: min(clamp(1200px, 80vw, 1400px), 100% - 2rem);
    margin: 2rem auto;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
}
.dashboard-header h2 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light-gray);
    margin: 0 0 0.3rem;
}
.dashboard-header p {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(83,141,3,0.2);
}
.dashboard-header p span {
    color: var(--secondary-green);
    position: relative;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}
.stat-card {
    background: var(--card-surface);
    border-radius: 14px;
    border: 1px solid var(--card-border);
    padding: 1.3rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(120,213,4,0.25) 40%,
    rgba(255,255,255,0.08) 60%,
    transparent 100%);
}
.stat-card::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83,141,3,0.18), transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(83,141,3,0.35);
    box-shadow:
            0 8px 28px rgba(0,0,0,0.4),
            0 0 0 1px rgba(83,141,3,0.12);
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-icon {
    font-size: 2rem;
    color: var(--primary-green);
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(83,141,3,0.1);
    border: 1px solid rgba(83,141,3,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(120,213,4,0.25));
}
.stat-icon .icon-img {
    width: 1.4em;
    height: 1.4em;
    display: block;
    object-fit: contain;
}
.stat-content {
    position: relative;
    z-index: 1;
}
.stat-content h3 {
    margin: 0 0 0.2rem;
    font-size: 2rem;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-content p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light-gray);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Dashboard Content Grid */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1rem auto;
    gap: 1.5rem;
}
.dashboard-content .dashboard-section {
    grid-column: 1 / -1;
}

/* Sections */
.dashboard-section,
.dashboard-create-section {
    background: var(--card-surface);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.dashboard-section::before,
.dashboard-create-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(120,213,4,0.12) 60%,
    transparent 100%);
}
.dashboard-section:hover,
.dashboard-create-section:hover {
    border-color: var(--card-border-hover);
    box-shadow:
            0 6px 24px rgba(0,0,0,0.35),
            0 0 0 1px rgba(83,141,3,0.08);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-header h2 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-header h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--secondary-green), var(--primary-green));
    flex-shrink: 0;
}

/* "Alle anzeigen" Button */
.anzeigenBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light-gray);
    background: rgba(255,255,255,0.04);
    padding: 0.5rem 1rem;
    margin: 0 0 1.1rem 0;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    text-align: center;
    transition: all 0.2s ease;
}
.anzeigenBtn:hover {
    background: rgba(83,141,3,0.1);
    border-color: rgba(83,141,3,0.35);
    color: var(--secondary-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83,141,3,0.18);
}

/* ── Tickets / Research List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.ticket-item,
.research-item {
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ticket-item:hover,
.research-item:hover {
    background: rgba(83,141,3,0.06);
    border-color: rgba(83,141,3,0.2);
    transform: translateX(3px);
}

/* Status badge */
.ticket-status {
    padding: .38rem .65rem;
    border-radius: 6px;
    font-size: .78rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    flex-shrink: 0;
    transition: .2s;
}
.status-open {
    color: #4caf50;
    background: rgba(76,175,80,0.08);
    border-color: rgba(76,175,80,0.2);
}
.status-in_progress {
    color: #ff9800;
    background: rgba(255,152,0,0.08);
    border-color: rgba(255,152,0,0.2);
}
.status-closed,
.status-close {
    color: #f44336;
    background: rgba(244,67,54,0.08);
    border-color: rgba(244,67,54,0.2);
}
.status-pending {
    color: #ff9800;
    background: rgba(255,152,0,0.08);
    border-color: rgba(255,152,0,0.2);
}

/* Ticket info row */
.Dashboard-ticket-info {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    flex: 1;
    margin-left: 0.75rem;
}
.Dashboard-ticket-number {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
    color: var(--primary-green);
    font-size: 0.85rem;
}
.Dashboard-ticket-number i {
    padding: 0 0.5rem;
    opacity: 0.8;
}
.Dashboard-ticket-number .icon-img {
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
    display: block;
}
.Dashboard-ticket-id {
    font-weight: 700;
}
.Dashboard-ticket-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.quick-action {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-gray);
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.quick-action::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.quick-action i {
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 0 6px rgba(120,213,4,0.2));
}
.quick-action span {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.quick-action:hover {
    background: linear-gradient(135deg, #6aad04 0%, var(--primary-green) 50%, #3d6902 100%);
    border-color: rgba(120,213,4,0.4);
    color: white;
    transform: translateY(-4px);
    box-shadow:
            0 8px 20px rgba(83,141,3,0.4),
            0 2px 8px rgba(0,0,0,0.3);
}
.quick-action:hover i {
    color: white;
    filter: none;
    transform: scale(1.15);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.8rem 1.25rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
}
.empty-state .empty-icon,
.empty-state .empty-icon-img,
.empty-state .empty-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(0.3) drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.empty-state i {
    font-size: 2rem;
    color: var(--primary-green);
    opacity: 0.5;
}
.empty-state .stats-text {
    margin: 0;
    color: var(--text-light-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Empty State CTA button */
.empty-state .statsBtn-create,
.statsBtn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(120,213,4,0.35);
    background: linear-gradient(135deg, #6aad04 0%, var(--primary-green) 45%, #3d6902 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow:
            0 4px 12px rgba(83,141,3,0.35),
            inset 0 1px 0 rgba(255,255,255,0.15),
            inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.empty-state .statsBtn-create::before,
.statsBtn-create::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.1) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
    pointer-events: none;
}
.empty-state .statsBtn-create:hover::before,
.statsBtn-create:hover::before {
    transform: translateX(100%);
}
.empty-state .statsBtn-create:hover,
.statsBtn-create:hover {
    transform: translateY(-2px);
    border-color: rgba(120,213,4,0.55);
    box-shadow:
            0 6px 18px rgba(83,141,3,0.5),
            0 12px 28px rgba(83,141,3,0.2),
            inset 0 1px 0 rgba(255,255,255,0.18);
}
.empty-state .statsBtn-create:active,
.statsBtn-create:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(83,141,3,0.35);
}

.invisible {
    display: none !important;
}
.stats-text {
    margin-bottom: 2rem;
}
#grid-button {
    cursor: pointer;
}
@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 600px;
    }
    .dashboard-create-section,
    .dashboard-section {
        max-width: 600px;
        margin-top: 0;
    }
    .anzeigenBtn {
        font-size: 0.8rem;
    }
}
@media (max-width: 600px) {
    .dashboard-content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        margin: 1rem auto;
        gap: 1rem;
        box-sizing: border-box;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        width: 100%;
    }
    .stat-icon {
        font-size: 1.4rem;
        width: 44px;
        height: 44px;
    }
    .stat-content h3 {
        font-size: 1.5rem;
    }
    .dashboard-section,
    .dashboard-create-section {
        width: 100%;
        max-width: clamp(320px, 90vw, 460px);
        margin: 0 auto;
        padding: 1.1rem;
        box-sizing: border-box;
    }
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .quick-action {
        padding: 1rem 0.6rem;
        border-radius: 10px;
    }
    .quick-action i {
        font-size: 1.4rem;
    }
    .quick-action span {
        font-size: 0.82rem;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .section-header h2::before {
        display: none;
    }
    .ticket-item,
    .research-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem;
        gap: 0.5rem;
    }
    .ticket-status {
        align-self: flex-start;
        width: 100%;
        margin-bottom: .3rem;
    }
    .statsBtn-create {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .stats-text {
        margin-bottom: 1rem;
    }
    .anzeigenBtn {
        font-size: 0.78rem;
    }
    .Dashboard-ticket-info {
        width: 100%;
        flex: none;
        margin-left: 0;
    }
    .Dashboard-ticket-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .empty-state {
        padding: 1.25rem 1rem;
        gap: 0.65rem;
    }
    .empty-state .statsBtn-create {
        width: 100%;
    }
    .dashboard-header p {
        font-size: 1.3rem;
    }
}

/*=== Mention Wrap ===*/
.mention-wrap {
    position: relative;
    flex: 1 1 320px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
.message-preview {
    position: absolute;
    inset: 0;
    padding: .7rem;
    border-radius: 8px;
    pointer-events: none;
    white-space: pre-wrap;
    overflow: hidden;
    font: inherit;
    line-height: normal;
    color: var(--text-white);
    z-index: 1;
    width: 100%;
    min-width: 0;
}
.chat-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.chat-input-overlay {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: transparent;
    caret-color: var(--text-white);
    outline: none;
    width: 100%;
    min-width: 0;
}
.mention-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 2000;
    max-height: 240px;
    overflow: auto;
    background: var(--bg-grad);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    padding: 8px;
    backdrop-filter: blur(6px);
}
.mention-dropdown::-webkit-scrollbar {
    width: 8px;
}
.mention-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}
.mention-item {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-white);
    border: 1px solid transparent;
}
.mention-item:hover,
.mention-item.is-active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}
.mention-item strong {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text-white);
}
.mention-item small {
    font-size: 12px;
    opacity: 0.78;
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mention-item:hover strong,
.mention-item.is-active strong {
    color: #111;
}
.mention-item:hover small,
.mention-item.is-active small {
    color: rgba(0, 0, 0, 0.65);
}
.mention-pill {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: .4em;
    font-weight: 700;
}
.message-preview .mention-pill,
.message-text .mention-pill {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
}
.mention {
    color: #0d6efd;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.08);
    padding: 1px 4px;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .mention-dropdown {
        max-height: 200px;
        top: calc(100% + 6px);
    }

    .mention-item {
        padding: 9px;
    }

    .mention-item strong {
        font-size: 13px;
    }

    .mention-item small {
        font-size: 11px;
    }
}
@media (max-width: 480px) {
    .mention-dropdown {
        max-height: 180px;
        border-radius: 10px;
    }
}

/*=== Buttons ===*/
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.btn-primary {
    background: var(--primary-green);
    color: var(--text-white);
}
.btn-primary:hover {
    color: var(--bg-dark);
}
.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid white;
}
.btn-secondary:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.btn.full-width {
    width: 100%;
    justify-content: center;
}
.btn.btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn.btn-md i {
    font-size: 1rem;
    line-height: 1;
}
.btn-next,
.btn-prev,
.btn-submit {
    border-radius: 10px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.019rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-green), #a8e03e);
    color: #000;
    box-shadow: 0 4px 10px rgba(126, 186, 44, .3);
}
.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #a8e03e, var(--primary-green));
    box-shadow: 0 6px 16px rgba(126, 186, 44, .45);
}
.btn-prev {
    background: transparent;
    border: 0.094rem solid var(--primary-green);
    color: var(--primary-green);
}
.btn-prev:hover {
    background: var(--primary-green);
    color: #000;
    box-shadow: 0 4px 10px rgba(126, 186, 44, 0.3);
}

/*=== Errors pages ===*/
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    margin-right: 5rem;
}
.cap-prompt {
    white-space: pre-line;
}
.error-content {
    width: min(720px, 100%);
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}
.error-content h1 {
    margin: 0;
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--primary-green);
}
.error-content p {
    margin: 0.75rem auto 1.75rem;
    max-width: 52ch;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}
.errorPage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    background-color: var(--primary-green);
    color: white;
}
.errorPage-btn:hover {
    color: var(--bg-dark)
}

/*=== Missing Information Modal ===*/
#companyTitle {
    color: var(--primary-green);
    font-weight: bold;
}
#companyform {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}
#companyErr {
    margin-top: 1rem;
}
.companyForm-submit,
.phoneForm-submit {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--primary-green);
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
}
.companyForm-submit:hover,
.phoneForm-submit:hover {
    color: var(--bg-dark);
    filter: brightness(0.8);
    background-color: var(--primary-green);
}
#verifyForm input{
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-green);
    background-color: var(--bg-dark);
}
.verify-resend-form {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
}
.verify-resend-btn {
    background: transparent;
    border: 1px solid rgba(83,141,3,0.35);
    color: var(--primary-green);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}
.verify-resend-btn:hover {
    background: rgba(83,141,3,0.1);
    color: var(--secondary-green);
    border-color: rgba(120,213,4,0.5);
    box-shadow: 0 4px 12px rgba(83,141,3,0.18);
    transform: translateY(-1px);
}
.verify-resend-btn:active {
    transform: translateY(0);
}
.verify-resend-btn:disabled,
.verify-resend-btn.btn-disabled {
    background: rgba(255,255,255,0.05);
    color: var(--text-light-gray);
    border-color: rgba(255,255,255,0.08);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.verify-resend-timer {
    margin-top: 0.55rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light-gray);
    min-height: 1rem;
}

/*=== Maintenance Page ===*/
.maint-page {
    padding: 0.5rem 1rem;
}
.maint-hero {
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.maint-hero__card {
    width: min(720px, 100%);
    text-align: center;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.maint-hero__title {
    margin: 0 0 0.75rem;
    font-weight: 800;
    letter-spacing: 0.013rem;
    color: var(--primary-green);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}
.maint-hero__subtitle {
    margin: 0 auto;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 1.05rem;
}
.maint-hero__divider {
    margin: 1.5rem auto;
    width: min(260px, 60%);
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.maint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: filter 150ms ease, opacity 150ms ease, transform 150ms ease;
    padding: 0.6rem 2rem;
}
.maint-btn--primary {
    background-color: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
}
.maint-btn--primary:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
    color: var(--bg-dark);
}
@media (max-width: 480px) {
    .maint-hero__card {
        padding: 1.5rem 1.25rem;
    }

    .maint-btn {
        width: 100%;
    }
}