/*=== Global CSS ===*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    color-scheme: dark;
    --primary-green: #5b9a03;
    --secondary-green: #8fff00;
    --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;
}
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
}
main { padding-top: 5rem; }
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; }

/*== Navbar ===*/
.navbar {
    background: var(--bg-dark);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    height: 4rem;
    right: 0;
    z-index: 1000;
    overflow: visible;
}
.nav-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    height: 2rem;
    margin-left: 5rem;
    transition: opacity 0.2s ease;
}
.brand-logo:hover {
    opacity: 0.8;
}
.mobile-menu-btn {
    color: var(--text-white);
    display: none;
    position: relative;
    width: 2rem;
    height: 1.4rem;
    cursor: pointer;
}
.mobile-menu-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.2rem;
    background: var(--text-white);
    border-radius: 0.2rem;
    transition: transform 0.3s ease, opacity 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);
}
.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);
}
@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; }

    .sidebar {
        width: 17rem;
        transform: translateX(-17rem);
        z-index: 9999;
        height: calc(100dvh - 4rem);
        bottom: auto;
        overflow: hidden;
    }
    .sidebar.open { transform: translateX(0) !important; }
    .sidebar:hover { width: 17rem; }
    .sidebar-menu a span,
    .sidebar-menu a .fa-chevron-right {
        opacity: 1;
        transform: translateX(0);
    }
    .sidebar-item-flyout:hover .flyout-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateX(0.5rem);
    }
    .sidebar-item-flyout.open .flyout-menu {
        position: relative;
        left: 0;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        margin-left: 2.5rem;
        padding-left: 0.5rem;
        border-left: 2px solid 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: 40px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
}
.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.10);
}
.profile-trigger:focus {
    outline: none;
}
.profile-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.profile-icon i {
    display: block;
    font-size: 1.2rem;
    margin-right: 0.2rem;
    color: var(--primary-green);
    font-weight: bold;
}
.profile-name {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 200px;
    background: #111827;
    color: #e5e7eb;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;

    display: none;
}
.profile-dropdown:not(.hidden) {
    display: block;
}
.profile-item {
    display: block;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
    margin: 6px;
}
.profile-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin: 6px;
}
@media (max-width: 480px) {
    .profile-name {
        display: none;
    }

    .profile-trigger {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

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

/*=== Notifications dropdown ===*/
.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
}
.notif-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
}
.notif-trigger:hover {
    background: rgba(255, 255, 255, 0.10);
}
.notif-trigger:focus {
    outline: none;
}
.notif-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.bell-icon i {
    display: block;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}
.notif-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: 12px;
    font-weight: 700;
    background: #ff3b30;
    color: #fff;
    transform: translate(30%, -30%);
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 92vw);
    max-height: 60vh;
    overflow: auto;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: none;
}
.notif-dropdown:not(.hidden) {
    display: block;
}
.notif-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #111827;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-weight: 700;
    flex-wrap: wrap;
}
.notif-header span {
    min-width: 0;
    flex: 1 1 auto;
}
#mark-all-read {
    flex: 0 0 auto;
    border: 0;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;

    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;

    white-space: nowrap;
}
#mark-all-read:hover {
    background: rgba(255, 255, 255, 0.16);
}
.notif-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}
.notif-list li {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}
.notif-list li:hover {
    background: rgba(255, 255, 255, 0.08);
}
.notif-badge.dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    transform: translate(40%, -40%);
    box-shadow: 0 0 0 2px var(--bg-dark);
}
.notif-list li.notif-item {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}
.notif-list li.notif-item.unread {
    border-color: rgba(143, 255, 0, 0.20);
    background: rgba(143, 255, 0, 0.06);
}
.notif-item-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}
.notif-item-message {
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(229, 231, 235, 0.9);
    overflow-wrap: anywhere;
}
.notif-item-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(229, 231, 235, 0.65);
}
@media (max-width: 480px) {
    .notif-trigger {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .notif-dropdown {
        position: fixed;
        top: 64px;
        left: 8px;
        right: 8px;
        width: auto;

        max-height: 65vh;
        z-index: 9999;
    }

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

    #mark-all-read {
        padding: 8px 10px;
    }

    .notif-list li {
        padding: 12px;
    }
}
@media (max-width: 768px) {
    .notif-dropdown {
        width: min(360px, 92vw);
    }
}

/*=== Notifications Page ===*/
.dashboard.notifications-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-white);
}
.notifications-card {
    width: 100%;
    margin: 1.5rem auto 0;
    background: var(--bg-grad);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.notifications-title {
    margin: 0;
    font-weight: 700;
    color: var(--primary-green);
}
.notifications-title i { margin-right: 8px; }
.notifications-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.notif-count {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}
.btn-secondary {
    border: 0;
    background: rgba(255,255,255,0.10);
    color: var(--bg-dark);
    padding: 0.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); }
.btn-secondary:focus { outline: none; }
.btn-secondary:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
#mark-all-read-nav{
    border: 0;
    background: var(--primary-green);
    color: white;
    padding: 0.45rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
#mark-all-read-nav:hover {
    background-color: var(--bg-dark);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}
.notifications-filters {
    display: flex;
    gap: 8px;
    padding: 12px 0;
}
.filter-btn {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}
.filter-btn:hover { background: rgba(255,255,255,0.10); }
.filter-btn.active {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(143,255,0,0.15);
}
.notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.notification-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;

    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.notification-item.unread {
    border-color: rgba(143,255,0,0.25);
    background: rgba(143,255,0,0.05);
}
.notification-main { min-width: 0; }
.notification-title {
    font-weight: 800;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}
.notification-body {
    color: var(--text-gray);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.notification-meta {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.notif-mark-one {
    border: 0;
    background: rgba(255,255,255,0.10);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}
.notif-mark-one:hover { background: rgba(255,255,255,0.16); }
.notifications-empty {
    text-align: center;
    padding: 30px 12px;
    color: rgba(255,255,255,0.75);
}
.notifications-empty i {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: inline-block;
}
@media (max-width: 768px) {
    .dashboard.notifications-page { padding: 1rem; }
    .notifications-header { flex-direction: column; align-items: stretch; }
    .notifications-header-actions { width: 100%; }
    .btn-secondary { width: 100%; }
    .notifications-filters { flex-wrap: wrap; }
}

/*=== Sidebar ===*/
.sidebar {
    position: fixed;
    left: 0;
    top: 4rem;
    bottom: 0;
    width: 5rem;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: width 0.35s ease, transform 0.35s ease;
    z-index: 999;
    overflow: visible;
}
.sidebar::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:1px;
    height:100%;
    background: linear-gradient(
            to bottom,
            rgba(143,255,0,.20),
            rgba(255,255,255,.06),
            rgba(91,154,3,.18)
    );
    opacity: .55;
    pointer-events: none;
}
.sidebar:hover {
    width: 17rem;
}
.sidebar-menu {
    list-style: none;
    background: var(--bg-grad);
    flex: 1;
    margin: 0;
    padding: 1rem 0;
    overflow: visible;
}
.sidebar-menu li {
    margin: 0.4rem 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-gray);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.sidebar-menu a i {
    font-size: 1.4rem;
    color: var(--primary-green);
    min-width: 2rem;
    text-align: center;
    transition: transform 0.25s ease, color 0.25s ease;
}
.sidebar-menu a:hover {
    color: var(--primary-green);
}
.sidebar-menu a:hover i {
    transform: scale(1.1);
    color: var(--primary-green);
}
.sidebar-menu a.active {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 0.3rem 0.5rem rgba(126, 186, 44, 0.3);
}
.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 .sidebar-menu a span,
.sidebar:hover .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-item-flyout {
    position: relative;
}
.sidebar.hover-open .flyout-menu {
    pointer-events: auto;
}
.flyout-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 10rem;
    background: var(--bg-grad);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
    z-index: 2001;
    padding: 0.4rem 0;
}
.flyout-menu a {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-gray);
}
.flyout-menu a:hover {
    background: var(--hover);
    color: var(--primary-green);
}
.sidebar.hover-open .sidebar-item-flyout .flyout-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(0.5rem);
}
.sidebar.hover-open .sidebar-item-flyout:hover > .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
@media (max-width: 992px) {
    .sidebar {
        width: 17rem;
        transform: translateX(-17rem);
        z-index: 9999;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        height: calc(100dvh - 4rem);
        bottom: auto;
        overflow: hidden;
    }
    .sidebar.open {
        transform: translateX(0) !important;
    }
    .sidebar-menu{
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .sidebar-item-flyout:hover .flyout-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateX(0.5rem);
    }
    .sidebar-item-flyout.open .flyout-menu {
        position: relative;
        left: 0;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        margin-left: 2.5rem;
        padding-left: 0.5rem;
        border-left: 2px solid var(--primary-green);
    }
}

/*=== Main content & Flash messages ===*/
.main-content {
    margin-top: 3rem;
    padding: 1.5rem;
    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;
}
@media (max-width: 62rem) {
    .with-sidebar {
        margin-left: 0 !important;
    }
    .main-content {
        padding: 1.25rem;
    }
}
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 450px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
    opacity: 0.95;
    transform: translateX(0);
    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 {
    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.25rem;
    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-close:hover {
    opacity: 1;
}
@keyframes fadeOut {
    0%   { opacity: 1; transform: translateX(0); }
    80%  { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

/*=== Footer ===*/
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 0.2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        align-items: flex-start;
    }
    .footer-section {
        flex: 1;
        max-width: 300px;
    }
}
.footer-section h4 {
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.footer-section p {
    color: var(--text-gray);
    margin: 0.25rem 0;
    line-height: 1.4;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin: 0.4rem 0;
}
.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: var(--primary-green);
}
.footer-bottom {
    background: var(--bg-dark);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p {
    margin: 0;
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

/*=== Landing page ===*/
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 1400px;
    margin: auto;
    border-radius: 20px;
}
.hero-left {
    flex: 1 1 420px;
    min-width: 280px;
    text-align: left;
}
.hero-left h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-green);
    opacity: 0.85;
}
.hero-left p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light-gray);
    margin: 1rem 0 2rem;
    font-weight: 600;
    max-width: 32rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-dark,
.btn-light {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    flex: 0 1 auto;
}
.btn-dark {
    background: var(--bg-grad);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-light {
    background: var(--primary-green);
    color: var(--bg-dark);
}
.btn-light:hover{
    background: var(--primary-green);
    color: white;
}
.btn-dark:hover{
    color: white;
    border: 1px solid white;
}
.hero-right {
    flex: 1 1 420px;
    min-width: 280px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.truck {
    width: min(350px, 45vw);
    max-width: 100%;
    animation: truckDrive 4s linear infinite;
    position: relative;
}
@keyframes truckDrive {
    0% { left: -60%; }
    50% { transform: translateY(-4px); }
    100% { left: 120%; }
}
.slogan-glass {
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 1400px;

    color: var(--primary-green);
    font-weight: 700;

    background: var(--bg-grad);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateY(12px);
    animation: sloganFade 1.2s ease-out forwards;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}
.slogan-main {
    display: block;
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 1rem;
    opacity: 0.8;
}
.slogan-main span {
    color: var(--secondary-green);
    opacity: 1;
}
.slogan-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    color: white;
    margin-top: 0.25rem;
}
.marquee-track {
    display: inline-block;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    opacity: 0.85;
    animation: marqueeMove 12s linear infinite;
}
@keyframes marqueeMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes sloganFade {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.slogan-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 255, 140, 0.18);
}
.features {
    background: var(--bg-grad);
    padding: 4rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light-gray);
    max-width: 1400px;
    margin: 2rem auto 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.features:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 18px rgba(0, 255, 140, 0.15);
}
.features h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--text-white);
}
.features h2 span {
    color: var(--secondary-green);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
    border: 1px solid transparent;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(0,255,140,0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-green);
    box-shadow: 0 12px 35px rgba(0, 255, 140, 0.17);
}
.feature-card i {
    font-size: 2.8rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
    transition: transform 0.35s ease;
}
.feature-card:hover i {
    transform: translateY(-6px);
}
.feature-card h5 {
    color: var(--text-white);
    margin-bottom: 0.75rem;
}
.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-card li {
    margin: 0.4rem 0;
    font-size: clamp(0.9rem, 2.4vw, 1rem);
    opacity: 0.9;
    line-height: 1.5;
    word-break: break-word;
}
.features-grid .feature-card {
    opacity: 0;
    transform: translateY(18px);
    animation: featureFade 0.8s ease forwards;
}
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.25s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes featureFade {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@media (max-width: 992px) {
    .hero {
        text-align: center;
    }

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

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right {
        margin-top: 1.5rem;
    }

    .truck {
        width: min(280px, 60vw);
        animation-duration: 3.2s;
    }
}
@media (max-width: 768px) {
    .hero-left p {
        max-width: 90%;
    }

    .hero-actions {
        justify-content: center;
    }

    .truck {
        width: min(260px, 65vw);
        animation-duration: 3s;
    }

    .slogan-glass {
        padding: 2rem 1.5rem;
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .hero-left h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero-left p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-dark,
    .btn-light {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .truck {
        width: min(200px, 70vw);
        animation-duration: 2.5s;
    }

    .slogan-glass {
        padding: 1.75rem 1.25rem;
    }

    .slogan-main {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .feature-card li {
        font-size: 0.95rem;
    }
}

/*=== Dashboard ===*/
.dashboard{
    margin-left: 1rem;
}
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}
.dashboard-header {
    color: white;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.dashboard-header span {
    color: var(--primary-green);
    font-weight: bold;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-items: center;
}
.stat-card {
    width: 100%;
    min-height: 110px;
    background: var(--bg-grad);
    border-radius: 12px;
    border: 3px solid var(--primary-green);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.stat-icon {
    font-size: 2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}
.stat-content h3 {
    margin: 0;
    font-size: 1.65rem;
    color: var(--primary-green);
    font-weight: 700;
}
.stat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-green);
    padding-top: 0.5rem;
}
.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; }
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem auto;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}
.dashboard-content .dashboard-section {
    grid-column: 1 / -1;
}
.dashboard-section,
.dashboard-create-section {
    background: var(--bg-grad);
    border-radius: 12px;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
    width: 100%;
}
.dashboard-section:hover,
.dashboard-create-section:hover {
    border-color: rgba(255, 255, 255, 0.18);
}
.dashboard-section {
    background: var(--bg-grad);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s;
}
.dashboard-section:hover {
    border-color: var(--primary-green);
}
.dashboard-section.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.dashboard-section h2 {
    margin: 0;
    color: white;
}
.dashboard-create-section {
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: var(--bg-grad);
    transition: border-color 0.3s ease;
    margin: 1rem 0;
}
.dashboard-create-section:hover {
    border-color: var(--primary-green);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: white;
}
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ticket-item, .research-item {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s ease;
    cursor: pointer;
}
.ticket-item:hover, .research-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
}
.quick-action {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    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;
}
.quick-action i {
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: 0.25s ease;
}
.quick-action span {
    font-size: 0.95rem;
    font-weight: 600;
}
.quick-action:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: black;
    transform: translateY(-4px);
}
.quick-action:hover i {
    color: black;
    transform: scale(1.15);
}
@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 600px;
    }
    .dashboard-create-section,
    .dashboard-section {
        width: 100%;
        max-width: 600px;
        margin-top: 1rem;
    }
}
@media (max-width: 600px) {
    .dashboard-wrapper {
        padding: 1rem;
    }
    .dashboard-content {
        padding: 0;
        max-width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .stat-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;

    }
    .stat-icon {
        font-size: 1.4rem;
    }
    .stat-content h3 {
        font-size: 1.25rem;
    }
    .dashboard-section,
    .dashboard-create-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .quick-action {
        padding: 1rem 0.6rem;
        border-radius: 10px;
    }
    .quick-action i {
        font-size: 1.4rem;
    }
    .quick-action span {
        font-size: 0.85rem;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .ticket-item, .research-item {
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 0.9rem;
        gap: 0.5rem;
    }
}

/*=== Tickets Management Page (Dashboard) ===*/
.tickets-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 2rem 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}
.tickets-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.btn-create-ticket{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    border: 1px solid transparent;
}
.btn-create-ticket i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform .3s ease;
    transform-origin: 50% 50%;
    will-change: transform;
}
.btn-create-ticket:hover{
    background: var(--bg-dark);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.btn-create-ticket:hover i{
    transform: rotate(90deg);
}
.tickets-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.2rem;
    margin: 1.5rem 2rem 2.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: .75rem;
}
.filter-group {
    flex: 1 1 200px;
    min-width: 170px;
}
.filter-control {
    width: 100%;
    appearance: none;
    padding: .75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    color: var(--text-white);
    font-size: .95rem;
}
.tickets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
    padding: 0 2rem 3rem;
}
.ticket-card {
    padding: 1.4rem;
    border-radius: 14px;
    background: var(--bg-grad);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    cursor: pointer;
    transition: .25s ease-in-out;
}
.ticket-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.06);
    border-color: var(--primary-green);
}
.ticket-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green), #afff5c);
    opacity: .55;
}
.ticket-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
}
.ticket-pair {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.ticket-label{
    margin-bottom: 0.2rem;
}
.ticket-id,
.ticket-status,
.ticket-priority {
    padding: .45rem .6rem;
    border-radius: .55rem;
    font-size: .85rem;
    text-align: center;
    background: rgba(255,255,255,0.06);
    transition: .2s;
}
.ticket-id:hover,
.ticket-status:hover,
.ticket-priority:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Status Colors */
.status-open { color: #4caf50; }
.status-in_progress { color: #ff9800; }
.status-closed { color: #f44336; }

/* Priority Colors */
.priority-low { color: #4caf50; }
.priority-medium { color: #ffc107; }
.priority-high { color: #ff5722; }
.priority-urgent { color: #ff1744; }
.ticket-meta {
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.4rem;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-light-gray);
}
.ticket-actions {
    display: flex;
    justify-content: flex-end;
}
.ticket-actions .btn {
    padding: .45rem .8rem;
}
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    opacity: .85;
}
.empty-state i {
    font-size: 4rem;
    color: var(--text-light-gray);
}
.empty-state h3 {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: var(--text-white);
}
.empty-state p {
    margin: .5rem 0 1.5rem;
    color: var(--text-light-gray);
}
@media (max-width: 768px) {
    .tickets-page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin: 1rem;
    }

    .tickets-page-actions {
        width: 100%;
    }

    .btn-create-ticket {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 1100px) {
    .tickets-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 0 1.5rem 3rem;
    }
    .ticket-header {
        gap: 1.2rem;
    }
    .tickets-page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .tickets-page-header h1 {
        margin: 0;
        font-size: 1.8rem;
    }
    .btn-create-ticket {
        margin: 0;
    }
}
@media (max-width: 900px) {
    .tickets-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .ticket-card {
        padding: 1.3rem;
    }
    .ticket-pair {
        min-width: 120px;
    }
}
@media (max-width: 600px) {
    .tickets-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem 3rem;
    }
    .ticket-card {
        padding: 1.2rem;
    }
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .ticket-pair {
        min-width: 100%;
    }
    .ticket-content h3 {
        font-size: 1.05rem;
    }
    .ticket-content p {
        font-size: .85rem;
    }
    .ticket-meta {
        gap: .6rem 1rem;
    }
    .tickets-page-header {
        margin: 1.5rem 1rem;
        padding-bottom: .5rem;
    }
    .tickets-page-header h1 {
        font-size: 1.4rem;
        text-align: left;
    }
    .btn-create-ticket {
        width: 100%;
        justify-content: center;
        padding: .8rem 1rem;
        font-size: 1rem;
    }
}
@media (max-width: 360px) {
    .ticket-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .tickets-page-header h1 {
        font-size: 1.4rem;
    }
    .ticket-content h3 {
        font-size: 1rem;
    }
    .ticket-meta {
        flex-direction: column;
        gap: .45rem;
    }
    .meta-item {
        font-size: .75rem;
    }
}


/*=== research page-Admin ===*/
.ticket-card--detail {
    max-width: 60rem;
    margin: 1rem auto;
    padding: 25px;
    background: var(--bg-grad);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    font-family: sans-serif;
}
.ticket-card--detail h2 {
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: start;
    color: var(--primary-green);
}
.ticket-card--detail h3{
    margin: 1rem 0;
    color: var(--primary-green);
}
.ticket-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.attachment-image {
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}
.attachment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.attachment-image img:hover {
    transform: scale(1.05);
}
.attachment-file a {
    display: block;
    padding: 10px;
    background: #f3f3f3;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border: 1px solid #ddd;
}
.ticket-content p {
    margin: 1rem 0;
    font-size: .86rem;
    color: var(--text-gray);
}
.research-content p {
    margin: 1rem 0;
    font-size: .86rem;
    color: var(--text-gray);
}
.research-content span {
    color: var(--primary-green);
    font-weight: bold;
}
.research-card{
    max-width: 60rem;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--bg-grad);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    font-family: sans-serif;
}
.research-card:hover{
    border: 1px solid var(--primary-green);
    box-shadow: 0 3px 12px rgba(0,0,0.4);
}

/* === Ticket Page (Dashboard) === */
.ticket-page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}
.ticket-page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: .6rem;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}
.back-button{
    padding: 0.5rem 1rem;
    background: var(--primary-green);
    color: var(--text-white);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 0.3rem;

    border: 1px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.back-button i{
    display: inline-flex;
    line-height: 1;
    margin-right: 0;
}
.back-button:hover{
    color: var(--primary-green);
    background-color: var(--bg-dark);
    border-color: var(--primary-green);
}
.status-open,
.status-reopen {
    background: var(--primary-green);
    color: white;
}
.status-in_progress,
.status-pending {
    background: #f59e0b;
    color: white;
}
.status-waiting {
    background: #8b5cf6;
    color: white;
}
.status-resolved {
    background: #10b981;
    color: white;
}
.status-closed,
.status-close {
    background: #6b7280;
    color: white;
}
.priority-low {
    background: #6b7280;
    color: white;
}
.priority-medium {
    background: #f59e0b;
    color: white;
}
.priority-high {
    background: #ef4444;
    color: white;
}
.priority-urgent {
    background: #dc2626;
    color: white;
}
.ticket-info-row,
.ticket-description,
.ticket-attachments {
    margin-left: 2rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 2px solid var(--border-color);
}
.ticket-strong-text {
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.2rem;
}
.ticket-description h3,
.ticket-attachments h3 {
    margin-top: 0.5rem;
}
.attachments-container a.attachment-link {
    display: inline-block;
    max-width: 150px;
    max-height: 150px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 6px;
}
.attachments-container a.attachment-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.attachments-container a.attachment-link:hover img {
    transform: scale(1.1);
}
.ticket-chat-box {
    background: var(--bg-grad);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem;
    max-width: 900px;
    width: 100%;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.chat-title {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.messages-container {
    width: 100%;
    overflow-y: auto;
    padding-right: 4px;
    max-height: clamp(240px, 50vh, 520px);
}
.message-box {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-sizing: border-box;
}
.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.msg-incoming {
    background: rgba(255,255,255,0.06);
}
.msg-outgoing {
    background: var(--accent-green);
    color: #fff;
    align-self: flex-end;
}
.message-header {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    opacity: .8;
    margin-bottom: .5rem;
}
.attachments {
    margin-top: .6rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.attachment-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}
.chat-input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    flex-wrap: wrap;
    min-width: 0;
}
.chat-input {
    flex: 1;
    min-width: 0;
    padding: .7rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-white);
}
.send-btn {
    background: var(--primary-green);
    padding: .6rem .8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    flex: 0 0 auto;
    white-space: nowrap;
}
.send-btn:hover{
    background-color: white;
    color: var(--primary-green);
}
.drop-area {
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    margin-top: 1rem;
}
.ticket-closed-box {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--accent-green);
}
@media (max-width: 768px) {
    .ticket-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-page-header h1 {
        font-size: 1.4rem;
        text-align: left;
    }

    .ticket-info-row,
    .ticket-description,
    .ticket-attachments {
        margin-left: 0;
        font-size: 0.95rem;
    }

    .ticket-chat-box {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }
    .messages-container {
        max-height: clamp(240px, 45vh, 320px);
    }

    .message-box {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .attachment-image {
        width: 70px;
        height: 70px;
    }
    .chat-input-row {
        flex-wrap: wrap;
        min-width: 0;
        gap: 0.4rem;
    }

    .mention-wrap {
        flex: 1 1 320px;
        min-width: 0;
    }

    .chat-input {
        font-size: 1rem;
        padding: 0.6rem;
        min-width: 0;
    }

    .send-btn {
        padding: 0.5rem 0.6rem;
        flex: 0 0 auto;
    }

    .drop-area {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}
@media (max-width: 480px) {
    .ticket-page-header {
        gap: 0.6rem;
    }

    .ticket-page-header h1 {
        font-size: 1.25rem;
        line-height: 1.3;
        width: 100%;
    }

    .back-button {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .chat-title {
        font-size: 1rem;
    }

    .messages-container {
        max-height: clamp(220px, 42vh, 300px);
    }

    .message-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .attachment-image {
        width: 60px;
        height: 60px;
    }
    .mention-wrap {
        flex-basis: 100%;
    }

    .chat-input {
        padding: 0.55rem;
        font-size: 0.95rem;
    }

    .send-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/*=== 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;          /* don’t turn it into a box */
  padding: 0;               /* critical */
  border: 0;                /* critical */
  border-radius: .4em;
  background: rgba(59,130,246,0.16);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.28); /* visual border without layout change */
  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;
    }
}

/*=== Create Product ===*/
.create-product-page {
    max-width: 700px;
    margin:3rem auto;
    background: var(--bg-dark);
    padding: 35px;
    border-radius: 12px;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.1);
}
.create-product-page h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
}
.create-product-page h1 i {
    color: var(--primary-green);
    font-size: 1.7rem;
}
fieldset {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}
fieldset:hover {
    border-color: var(--secondary-green);
    box-shadow: var(--shadow);
}
legend {
    font-weight: bold;
    color: var(--secondary-green);
    padding: 0 8px;
}
label {
    display: block;
    margin-top: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}
input,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #0f1624;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}
input:focus,
textarea:focus {
    border-color: var(--secondary-green);
    outline: none;
    box-shadow: 0 0 8px rgba(165, 227, 81, 0.4);
}
fieldset label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-green);
}
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-secondary {
    background: var(--hover);
    color: var(--text-white);
}
.btn-secondary:hover {
    background: var(--border-color);
}
.btn-primary i,
.btn-secondary i {
    font-size: 1rem;
}
@media (max-width: 768px) {
    .create-product-page {
        margin: 20px 16px;
        padding: 20px;
    }

    .create-product-page h1 {
        font-size: 1.5rem;
    }

    fieldset {
        padding: 16px 18px;
    }

    .form-actions {
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .create-product-page {
        margin: 16px 10px;
        padding: 18px;
        border-radius: 10px;
    }

    .create-product-page h1 {
        font-size: 1.3rem;
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
    }

    .create-product-page h1 i {
        font-size: 1.4rem;
        margin-top: 2px;
    }

    fieldset {
        padding: 14px 14px;
        margin-bottom: 18px;
    }

    label {
        font-size: 0.9rem;
    }

    input,
    textarea {
        font-size: 0.95rem;
        padding: 8px 10px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/*=== Create Ticket ===*/
.page-header h1 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
}
.ticket-form-container {
    background: var(--bg-grad);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: clamp(1.2rem, 3vw, 2.2rem);
    max-width: min(900px, 95%);
    width: 100%;
    margin: 1rem auto;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.ticket-form-section h2 {
    font-size: clamp(1rem, 4vw, 1.8rem) !important;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.7rem;
}
.ticket-form-section h2 + p {
    margin-top: -0.2rem;
    margin-bottom: 1.3rem;
    font-size: 1rem;
    color: var(--text-light-gray);
}
.ticket-form-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ticket-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.ticket-form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}
.ticket-form-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}
.ticket-form-group label {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.2rem;
}
.ticket-form-group textarea::placeholder {
    padding: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2.6vw, 1rem);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(0.9rem, 3vw, 1.1rem);
    color: white;
    transition: all .25s ease;
    backdrop-filter: blur(10px);
    appearance: none;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(0,255,127,0.25);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(0,255,127,0.20);
    outline: none;
    background: var(--bg-dark);
}
.form-textarea {
    resize: vertical;
}
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.14);
    padding: clamp(1.2rem, 4vw, 2rem);
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}
.ticket-file-upload-area:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 127, .06);
    transform: scale(1.01);
}
.file-upload-content i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: .6rem;
}
.file-upload-content p {
    margin: .45rem 0;
    font-size: 1rem;
    color: #ddd;
}
.file-upload-content .link {
    color: var(--primary-green);
    font-weight: 600;
}
.ticket-file-list {
    margin-top: 1rem;
    font-size: .95rem;
    color: #ccc;
}
.ticket-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.ticket-field-error {
    color: red;
}
@media (max-width: 768px) {
    .ticket-form-container {
        padding: 1.8rem;
        width: 92%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .ticket-form-container {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .form-section h2 {
        font-size: 1.3rem;
    }

    .file-upload-content i {
        font-size: 2.4rem;
    }

    .form-input,
    .form-select {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .form-textarea {
        font-size: 0.95rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*=== Impressum & Datenschutzerklärung ===*/
.legal-section,
.legal-section * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    color: var(--text-white);
}
.legal-header {
    text-align: left;
    margin-bottom: 2rem;
}
.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.legal-header h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 55%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), #a4ff5a);
    border-radius: 2px;
}
.legal-header p {
    font-size: 1.05rem;
    color: var(--text-gray);
}
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.legal-section {
    background: var(--bg-grad);
    padding: 1.75rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.legal-section:hover {
    transform: translateY(-3px);
    border-color: rgba(126, 255, 90, 0.25);
    box-shadow: 0 0 20px rgba(126, 255, 90, 0.15);
}
.legal-section h2 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
}
.legal-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 35%;
    height: 2px;
    background: var(--primary-green);
}
.legal-section h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.legal-section p,
.legal-section span {
    font-size: 1rem;
    color: var(--text-gray);
}
.legal-section strong {
    color: var(--primary-green);
    font-weight: 600;
}
.legal-section a {
    font-weight: 600;
    color: var(--primary-green);
    word-break: break-all;
    transition: 0.25s;
}
.legal-section a:hover {
    color: #a4ff5a;
}
.legal-section h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: .6rem;
    font-weight: 600;
}
.legal-section ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
    list-style: disc;
}
.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-gray);
}
.contact-box {
    background: rgba(17, 25, 40, 0.6);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
    line-height: 1.5;
    color: var(--text-white);
}
.company-info {
    background: var(--bg-grad);
    padding: 1.4rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}
.info-item {
    width: 100%;
    overflow-wrap: anywhere;
}
.company-info h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.company-address p {
    color: var(--text-white);
    margin-bottom: 1rem;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.info-item span {
    font-size: 0.8rem;
    color: var(--text-light-gray);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.contact-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
}
.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    transition: 0.25s;
}
.contact-item a:hover {
    color: var(--primary-green);
}
.contact-item div {
    overflow-wrap: anywhere;
    max-width: 100%;
}
@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 1rem;
    }

    .legal-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .legal-header h1 {
        font-size: 1.6rem;
    }

    .legal-section {
        padding: 1.2rem;
    }

    .company-info {
        padding: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section p,
    .legal-section span,
    .info-item span,
    .company-address p {
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.4rem;
    }
    .legal-section {
        padding: 1rem 0.9rem;
    }
    .legal-section h2 {
        font-size: 1rem;
    }
    .company-info h3 {
        font-size: 1rem;
    }
    .legal-section p,
    .company-address p,
    .info-item span {
        font-size: 0.88rem;
    }
}

/*=== Auth => Login & Register ===*/
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-dark);
    margin-top: 0.5rem;
}
.auth-card {
    background: var(--bg-grad);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}
.auth-card:hover{
    box-shadow: 0 4px 18px rgba(0, 255, 140, 0.15);
}
.auth-header {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}
.auth-header i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.auth-header h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.8rem;
}
.auth-header p {
    color: var(--text-white);
    margin: 0.2rem;
    font-size: 0.8rem;
}
.auth-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.elandia-span{
    color: var(--primary-green);
    font-weight: bold;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group i {
    position: absolute;
    left: 0.9rem;
    color: var(--primary-green);
    font-size: 1rem;
}
.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.input-group input:focus {
    border-color: var(--primary-green);
    background: var(--bg-dark);
    outline: none;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.25);
}
.password-toggle {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-gray, #aaa);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--primary-green);
}
.password-toggle i {
    font-size: 1rem;
    line-height: 1;
    width: 100%;
    text-align: center;
    display: block;
    margin: auto;
}
.eye-icon {
    width: 16px;
    height: 16px;
    transition: opacity 0.25s ease;
}
.eye-open,
.eye-closed {
    transition: opacity 0.25s ease;
}
.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    flex-wrap: wrap;
    white-space: normal;
}
.auth-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 3px;
    background: var(--bg-dark, #fff);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.auth-checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.auth-checkbox-label input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 4px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: translate(-50%, -55%) rotate(-45deg);
}
.auth-checkbox-label input[type="checkbox"]:checked::after {
    border-left-color: #fff;
    border-bottom-color: #fff;
}
.form-options{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0.5rem;
}
.forget-password-link {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.forget-password-link:hover,
.forget-password-link:focus {
    color: #5a940a;
    text-decoration: underline;
}
.auth-footer {
    padding: 1.2rem 1rem;
    text-align: center;
    background: var(--bg-dark, #1e1e1e);
    border-top: 1px solid var(--border-color, #333);
}
.auth-footer p {
    color: var(--text-gray, #ddd);
    font-size: 0.9rem;
    margin: 0.4rem 0;
}
.auth-footer .link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer .link:hover {
    text-decoration: underline;
}
.forget-password-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    min-height: 70vh;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .auth-container{
        min-height: 70vh;
    }
    .auth-card {
        max-width: 100%;
        border-radius: 10px;
        margin: 0 1rem;
        box-shadow: 0 0 15px rgba(0, 255, 120, 0.2);
    }
    .auth-header h2 {
        font-size: 1.4rem;
    }
    .input-group input {
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .auth-container{
        min-height: 70vh;
    }
    .auth-card {
        margin: 0 0.5rem;
    }
    .auth-form {
        padding: 1rem;
    }
    .auth-header i {
        font-size: 1.6rem;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    .form-options {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .auth-checkbox-label {
        align-items: flex-start;
        gap: 4px;
        line-height: 1.1;
    }
    .forget-password-link {
        margin-top: 0.2rem;
        align-self: flex-start;
        font-size: 0.7rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* 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 {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--hover);
    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);
}

/*=== Settings page ===*/
.dashboard.settings-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    color: var(--text-white);
}
.dashboard-header {
    width: 100%;
}
.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.page-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
    overflow-wrap: anywhere;
}
.username {
    color: var(--secondary-green);
    font-weight: 600;
}
.settings-card {
    width: 100%;
    max-width: 1180px;
    margin: 1.5rem auto 0 auto;

    background: var(--bg-grad);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-sizing: border-box;
}
.settings-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 40px rgba(91, 154, 3, 0.25);
}
.settings-section-header h2 {
    color: var(--primary-green);
    margin: 0 0 1rem 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.settings-section-header i {
    margin-right: 8px;
}
.settings-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    grid-template-columns: minmax(640px, 1fr) minmax(280px, 360px);
}
.jtl-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    box-sizing: border-box;
    margin-top: 0.5rem;
}
.jtl-title {
    margin: 0 0 1rem 0;
    color: var(--text-light-gray);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.jtl-title span {
    color: var(--primary-green);
}
.form-group {
    margin-bottom: 1rem;
}
.settings-card label {
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    color: var(--secondary-green);
    pointer-events: none;
}
.settings-card .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    padding: 0.9rem 1rem 0.9rem 45px;
    border-radius: 12px;
    color: var(--text-white);
    transition: var(--transition);
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
}
.settings-card .form-control:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 10px rgba(143, 255, 0, 0.3);
    outline: none;
}
.settings-card .form-control.is-invalid {
    border-color: #ff5a5a;
    box-shadow: 0 0 10px rgba(255, 90, 90, 0.25);
}
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper .form-control {
    padding-right: 46px;
}
.password-toggle {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    background: transparent;
}
.password-toggle:hover {
    opacity: 1;
}
.form-text {
    color: var(--primary-green);
    font-size: 0.78rem;
    margin-top: 0.3rem;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}
.btn-primary {
    background: var(--primary-green);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-white);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(143, 255, 0, 0.18);
    transition: var(--transition);
}
.btn-primary:hover {
    color: var(--primary-green);
    background-color: var(--bg-dark);
    border: 1px solid var(--primary-green);
}
.full-btn {
    display: inline-block;
    width: auto;
}
.settings-card,
.settings-page,
.settings-grid,
.input-group,
.form-control,
.page-title,
.page-subtitle {
    overflow-wrap: anywhere;
}
.settings-section-header--row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}
.btn-link-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.btn-link-small:hover {
    background: rgba(255, 255, 255, 0.14);
}
.btn-link-small i {
    color: var(--primary-green);
}
@media (max-width: 1100px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .jtl-form {
        padding: 1.1rem;
    }
}
@media (max-width: 768px) {
    .dashboard.settings-page {
        padding: 1rem;
        max-width: 100%;
    }

    .page-title {
        font-size: 1.7rem;
        text-align: center;
    }
    .page-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .settings-card {
        padding: 1.4rem;
        margin-top: 1rem;
        border-radius: 14px;
    }

    .settings-section-header h2 {
        font-size: 1rem;
        text-align: center;
    }

    .input-icon {
        font-size: 1rem;
        left: 12px;
    }

    .settings-card .form-control {
        padding: 0.8rem 0.8rem 0.8rem 42px;
        font-size: 0.95rem;
    }

    .btn-primary,
    .full-btn {
        width: 100% !important;
    }

    .btn-primary {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .jtl-title {
        text-align: center;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    .settings-card {
        padding: 1.2rem;
    }
    .settings-card .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 40px;
    }
    .btn-primary {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    .settings-section-header--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*=== Create research page ===*/
.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}
.research-container {
    background: var(--bg-grad);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 950px;
    margin: 1rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
    color: var(--text-white);
}
.research-container input:not([type="checkbox"]):not([type="radio"]),
.research-container select,
.research-container textarea {
    width: 100%;
    appearance: none;
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all .25s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}
.research-container input:not([type="checkbox"]):not([type="radio"]),
.research-container select,
.research-container textarea {
    width: 100%;
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all .25s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}
.research-container select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(145deg, var(--bg-dark), var(--bg-dark)),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%23a8e03e' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-position: right 0.9rem center;
    background-size: 1rem;
}
.research-container label {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--text-light-gray);
}
.research-container p {
    margin-bottom: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1rem 0;
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.research-container input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    margin-right: .5rem;
    background: var(--bg-dark);
    position: relative;
    vertical-align: middle;
    transition: .25s ease;
}
.research-container input[type="radio"]:hover {
    border-color: var(--primary-green);
}
.research-container input[type="radio"]:checked {
    border-color: var(--primary-green);
    box-shadow: 0 0 6px rgba(126,186,44,.4);
}
.research-container input[type="radio"]:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.radio-option, .radio-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: .25s ease;
}
.radio-option:hover,
.radio-card:hover {
    border-color: var(--primary-green);
}
.hidden-hinweis {
    display: none;
}
.p-hidden-hinweis {
    background: rgba(255,255,255,.05);
    padding: 1rem;
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
}
.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
    padding-bottom: .5rem;
}
.wizard-steps::-webkit-scrollbar {
    display: none;
}
.wizard-container {
    background: var(--bg-grad);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    max-width: 950px;
    margin: 0.5rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.wizard-container::-webkit-scrollbar {
    display: none;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--text-light-gray);
    cursor: pointer;
    transition: .25s ease;
    white-space: nowrap;
}
.wizard-step span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--border-color);
    background: var(--bg-dark);
    font-weight: 700;
    color: var(--text-white);
    transition: .3s ease;
}
.wizard-step.active {
    color: var(--primary-green);
}
.wizard-step.active span {
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(126,186,44,.5);
}
.wizard-step.completed {
    color: var(--primary-green);
}
.wizard-step.completed span {
    background: var(--primary-green);
    color: #000;
    border-color: var(--primary-green);
}
.wizard-sep {
    display: none;
}
.wizard-step.completed + .wizard-sep {
    background: var(--primary-green);
}
@media (max-width: 768px) {
    .wizard-step span {
        width: 28px;
        height: 28px;
        font-size: .75rem;
    }
    .wizard-sep {
        width: 25px;
    }
}
.wizard-progress {
    width: 100%;
    height: 6px;
    border-radius: 8px;
    background: var(--border-color);
    overflow: hidden;
    margin-top: 1rem;
}
.wizard-progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary-green);
    transition: width .3s ease;
}
@media (max-width: 600px) {
    .wizard-step span {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .wizard-steps {
        gap: .7rem 1rem;
    }
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn .35s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.inhalt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#add-inhalt {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1rem;
    border: 0.094rem solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}
#add-inhalt:hover {
    background: var(--primary-green);
    color: #000;
}
.inhalt-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
}
.delete-inhalt {
    padding: .5rem .75rem;
}
.upload-btn {
    display: block;
    text-align: center;
    border: 2px dashed var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s ease;
}
.upload-btn:hover {
    border-color: var(--primary-green);
    background: rgba(126,186,44,.05);
}
input[type="file"] {
    display: none;
}
.checkbox-group {
    margin-top: 1rem;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .8rem;
}
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.btn-next,
.btn-prev {
    padding: .65rem 1.4rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-next {
    background: var(--primary-green);
    color: #000;
}
.btn-prev {
    background: rgba(255,255,255,.1);
    color: var(--text-white);
}
.btn-prev:hover {
    background: rgba(255,255,255,.2);
}
.btn-next:hover {
    background: #baff55;
}
.Back-page {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light-gray);
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.4rem;
}
.Back-page i {
    font-size: 1rem;
    margin-right: 0.3rem;
    color: var(--text-light-gray);
    transition: color .25s ease, transform .25s ease;
}
.Back-page:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(126, 186, 44, 0.08);
    box-shadow: 0 0 10px rgba(126, 186, 44, .2);
}
.Back-page:hover i {
    color: var(--primary-green);
    transform: translateX(-3px);
}
.text-danger{
    color: red;
}
.invisible {
    display: none !important;
}
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1rem;
    }
    .Back-page {
        align-self: flex-start;
        width: auto;
    }
    .research-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .research-container p,
    .research-container h3,
    .research-container h4 {
        margin-bottom: .75rem;
    }
    .research-container label {
        font-size: 0.9rem;
    }
    .research-container input:not([type="checkbox"]):not([type="radio"]),
    .research-container select,
    .research-container textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .radio-option,
    .radio-card {
        flex-direction: row;
        width: 100%;
        font-size: 0.9rem;
        padding: .8rem 1rem;
    }
    .radio-card input[type="radio"] {
        margin-right: .5rem;
    }
    .p-hidden-hinweis {
        font-size: 0.85rem;
        padding: .9rem;
    }
    .upload-btn {
        padding: .8rem;
        font-size: 0.9rem;
    }
    #preview-container {
        grid-template-columns: 1fr 1fr !important;
        gap: .6rem;
    }
    .wizard-step {
        gap: .3rem;
        font-size: 0.8rem;
    }
    .wizard-step span {
        width: 26px;
        height: 26px;
        font-size: .7rem;
    }
    .wizard-progress {
        height: 4px;
    }
}
@media (max-width: 480px) {
    .research-container {
        padding: 1rem;
    }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
    .btn-next,
    .btn-prev {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    #preview-container {
        grid-template-columns: 1fr !important;
    }
    .wizard-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .wizard-steps::-webkit-scrollbar {
        display: none;
    }
    .wizard-step {
        white-space: nowrap;
    }
}

/* --- Step 1: Sendungsnummer Section --- */
.sendungsnummer-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}
.sendungsnummer-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.sendungsnummer-wrapper label {
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025rem;
    color: var(--primary-green);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.sendungsnummer-wrapper p{
    color: white;
}
#sendungsnummer {
    flex: 1 1 350px;
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-white);
    font-size: 1rem;
    letter-spacing: 0.031rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}
#sendungsnummer::placeholder {
    color: var(--text-light-gray);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
#sendungsnummer:focus::placeholder {
    opacity: 0.4;
}
#sendungsnummer:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, .3);
    outline: none;
    transform: scale(1.02);
}
#sendungsnummer:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
}

/* === Step 2: Rolle & Thema === */
.form-step[data-step="2"] {
    animation: fadeInUp 0.4s ease both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.thema-group {
    margin-top: 1.25rem;
    width: 100%;
}
.thema-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 0.025rem;
    text-transform: uppercase;
}
.form-step[data-step="2"] select:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}
.form-step[data-step="2"] select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    margin-bottom: 0.5rem;
}
.rolle-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.radio-option {
    flex: 1 1 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.094rem solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    font-weight: 500;
}
.radio-option input[type="radio"] {
    appearance: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.radio-option::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-green) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.radio-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.radio-option:hover::before {
    opacity: 0.15;
}
.radio-option input[type="radio"]:checked + span,
.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(126, 186, 44, 0.3);
    background: linear-gradient(145deg, rgba(126, 186, 44, 0.15), rgba(255, 255, 255, 0.05));
    transform: scale(1.02);
}
#absender-hinweis {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--primary-green);
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    animation: fadeIn 0.35s ease both;
}
.hidden-hinweis {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
}
.p-hidden-hinweis{
    font-size: 0.725rem;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === STEP 3: Kontaktperson === */
.form-step[data-step="3"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="3"] h3 {
    color: var(--text-white);
    margin-bottom: 0.75rem;
}
.form-step[data-step="3"] p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.form-row > div {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}
.form-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.4rem;
    letter-spacing: 0.019rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"] {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}
.form-row input::placeholder {
    color: var(--text-light-gray);
    opacity: 0.7;
}
.form-row input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35), inset 0 2px 8px rgba(0, 0, 0, .3);
    transform: scale(1.01);
}
.form-row input:hover {
    border-color: rgba(126, 186, 44, 0.3);
}
.form-row label::after {
    content: attr(data-required);
    color: red;
    font-weight: 600;
    margin-left: 4px;
}
.form-step[data-step="3"] strong {
    color: var(--primary-green);
}
.form-step[data-step="3"] .step-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === STEP 4: Absenderdaten === */
.form-step[data-step="4"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="4"] h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.form-step[data-step="4"] p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.form-step[data-step="4"] h4 {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
}
.form-step[data-step="4"] .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.form-step[data-step="4"] .form-row > div {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}
.form-step[data-step="4"] label {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.4rem;
    letter-spacing: 0.019rem;
}
.form-step[data-step="4"] input[type="text"],
.form-step[data-step="4"] input[type="email"] {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}
.form-step[data-step="4"] input::placeholder {
    color: var(--text-light-gray);
    opacity: 0.7;
}
.form-step[data-step="4"] input:hover {
    border-color: rgba(126, 186, 44, 0.3);
}
.form-step[data-step="4"] input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}
.form-step[data-step="4"] .step-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === STEP 5: Empfängerdaten === */
.form-step[data-step="5"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="5"] h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.form-step[data-step="5"] p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.form-step[data-step="5"] h4 {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
}
.form-step[data-step="5"] .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.form-step[data-step="5"] .form-row > div {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}
.form-step[data-step="5"] label {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.4rem;
    letter-spacing: 0.019rem;
}
.form-step[data-step="5"] input[type="text"],
.form-step[data-step="5"] input[type="email"] {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.019rem solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}
.form-step[data-step="5"] input::placeholder {
    color: var(--text-light-gray);
    opacity: 0.7;
}
.form-step[data-step="5"] input:hover {
    border-color: rgba(126, 186, 44, 0.3);
}
.form-step[data-step="5"] input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}
.form-step[data-step="5"] .step-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* === STEP 6: Inhalt der Sendung (final polished version) === */
.form-step[data-step="6"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="6"] h3 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}
.form-step[data-step="6"] h3 span {
    color: var(--primary-green);
}
.form-step[data-step="6"] p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.3rem;
}
.form-step[data-step="6"] .inhalt-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}
.form-step[data-step="6"] .radio-card {
    flex: 1 1 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.094rem solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}
.form-step[data-step="6"] .radio-card input[type="radio"] {
    appearance: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.form-step[data-step="6"] .radio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    border-color: var(--primary-green);
}
.form-step[data-step="6"] .radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    background: linear-gradient(145deg,
    rgba(126, 186, 44, 0.15),
    rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 12px rgba(126, 186, 44, 0.35);
    transform: scale(1.02);
}
#inhalt-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    margin-top: 1rem;
}
#inhalt-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}
.inhalt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.inhalt-header label {
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 0.019rem;
}
.add-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.add-btn:hover {
    background: #8fcb4b;
    transform: translateY(-2px);
}
.inhalt-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.3s ease;
}
.inhalt-item input[type="text"] {
    flex: 1;
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark));
    border: 0.094rem solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}
.inhalt-item input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
    outline: none;
}
.delete-inhalt {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.delete-inhalt:hover {
    color: #ff8787;
    transform: scale(1.15);
}
.form-step[data-step="6"] .step-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .form-step[data-step="6"] .radio-card {
        flex: 1 1 100%;
    }
}


/* === STEP 7 : Empfängererklärung / Wertnachweis === */
.form-step[data-step="7"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="7"] h3 {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.form-step[data-step="7"] p {
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}
.upload-wrapper {
    margin: 1.2rem 0;
    position: relative;
}
.upload-btn {
    display: inline-block;
    background: var(--bg-dark);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 0.9rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.upload-btn i {
    margin-right: 0.5rem;
}
.upload-btn:hover {
    transform: translateY(-2px);
}
.file-note{
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}
.file-note span{
    color: var(--primary-green);
}
#wertnachweis {
    display: none;
}
#preview-container {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.preview-item {
    width: 120px;
    position: relative;
}
.preview-item img,
.preview-item .pdf-preview {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--primary-green);
    border-radius: 6px;
    background: #222;
}
.pdf-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-green);
}
.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-error {
    background: rgba(255, 50, 50, 0.15);
    border-left: 3px solid #ff4a4a;
    color: #ff6b6b;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    display: block;
}
.upload-error.hidden {
    display: none;
}
.form-step[data-step="7"] .step-actions {
    margin-top: 1.8rem;
    display: flex;
    justify-content: space-between;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === STEP 8: Ersatzleistungen === */
.form-step[data-step="8"] {
    animation: fadeInUp 0.4s ease both;
}
.form-step[data-step="8"] h3 {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}
.form-step[data-step="8"] h3 span {
    color: var(--primary-green);
}
.form-step[data-step="8"] .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.form-step[data-step="8"] .form-row > div {
    flex: 1 1 min(360px, 100%);
    display: flex;
    flex-direction: column;
    min-width: 260px;
}
.form-step[data-step="8"] label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.4rem;
    letter-spacing: 0.013rem;
}
.form-step[data-step="8"] input[type="text"],
.form-step[data-step="8"] input[type="email"],
.form-step[data-step="8"] select {
    background: var(--bg-dark);
    border: 0.094rem solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
    width: 100%;
}
.form-step[data-step="8"] input::placeholder {
    color: var(--text-light-gray);
    opacity: 0.7;
}
.form-step[data-step="8"] input:focus,
.form-step[data-step="8"] select:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(126, 186, 44, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}
.form-step[data-step="8"] .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    align-items: center;
    margin-top: 1.25rem;
}
.form-step[data-step="8"] .checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.form-step[data-step="8"] .checkbox-label input[type="checkbox"] {
    appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-block;
    line-height: 0;
    -webkit-appearance: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    margin: 0;
    padding: 0;
}
.form-step[data-step="8"] .checkbox-label input[type="checkbox"]::before {
    pointer-events: none;
}
.form-step[data-step="8"] .checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.35);
}
.form-step[data-step="8"] .checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 6px rgba(126, 186, 44, 0.5);
}
.form-step[data-step="8"] .checkbox-label input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    font-size: 13px;
    font-weight: 700;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.form-step[data-step="8"] .note {
    margin-top: 1.25rem;
    color: var(--text-light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}
.form-step[data-step="8"] .highlight-text {
    color: #ff4a4a;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.form-step[data-step="8"] .step-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
@media (max-width: 900px) {
    .form-step[data-step="8"] .form-row > div {
        flex: 1 1 100%;
    }
    .form-step[data-step="8"] .checkbox-group {
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .form-step[data-step="8"] .form-row {
        flex-direction: column;
    }

    .form-step[data-step="8"] .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .form-step[data-step="8"] .step-actions {
        flex-direction: column;
    }
}

/* === STEP 9: Versicherungserklärung === */
.form-step[data-step="9"] {
    animation: fadeInUp 0.4s ease both;
    width: 100%;
}
.form-step[data-step="9"] h3 {
    color: var(--text-light-gray);
    font-weight: 700;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}
.form-step[data-step="9"] h3 span {
    color: var(--primary-green);
}
.form-step[data-step="9"] > p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.form-step[data-step="9"] .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.form-step[data-step="9"] .radio-option {
    position: relative;
    padding: 0.9rem 1.35rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 0.95rem;
    color: var(--text-white);
    min-width: 200px;
    flex: 1 1 220px;
    text-align: center;
}
.form-step[data-step="9"] .radio-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.form-step[data-step="9"] .radio-option input[type="radio"] {
    appearance: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.form-step[data-step="9"] .radio-option:has(input[type="radio"]:checked) {
    background: rgba(126,186,44,0.12);
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126,186,44,0.3);
    transform: scale(1.02);
}
.form-step[data-step="9"] .versicherung-details {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.6rem;
    margin-top: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.form-step[data-step="9"] .versicherung-details.hidden {
    display: none;
}
.form-step[data-step="9"] .form-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 1.25rem;
}
.form-step[data-step="9"] .form-row > div {
    flex: 1 1 300px;
    min-width: 0;
}
.form-step[data-step="9"] input[type="text"],
.form-step[data-step="9"] select {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: 0.25s ease;
    width: 100%;
}
.form-step[data-step="9"] input:focus,
.form-step[data-step="9"] select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(126,186,44,0.35);
}
.form-step[data-step="9"] .checkbox-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form-step[data-step="9"] .checkbox-label {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.04);
    color: var(--text-white);
}
.form-step[data-step="9"] .checkbox-label:hover {
    border-color: var(--primary-green);
    background: rgba(126,186,44,0.08);
}
.form-step[data-step="9"] .versicherung-details {
    margin-top: 1.5rem;
    width: 100%;
}
.form-step[data-step="9"] .checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}
.form-step[data-step="9"] .checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(255,255,255,0.35);
}
.form-step[data-step="9"] .checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 6px rgba(126, 186, 44, 0.5);
}
.form-step[data-step="9"] .checkbox-label input[type="checkbox"]:checked::before {
    content: "✓";
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.form-step[data-step="9"] .step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}
.form-step[data-step="9"] .btn-prev,
.form-step[data-step="9"] .btn-next {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.25s ease;
}
.form-step[data-step="9"] .btn-prev {
    background: rgba(255,255,255,0.08);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.18);
}
.form-step[data-step="9"] .btn-prev:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.form-step[data-step="9"] .btn-next {
    background: var(--primary-green);
    color: #000;
}
.form-step[data-step="9"] .btn-next:hover {
    background: #baff55;
    transform: translateY(-2px);
}
.form-step[data-step="9"] .text-danger{
    color: red;
}
.form-step[data-step="9"] .question{
   color: var(--primary-green);
    font-weight: bold;
}
.form-step[data-step="9"] .address-info{
    color: var(--primary-green);
    margin-bottom: 0.2rem;
}
@media (max-width: 768px) {
    .form-step[data-step="9"] h3 {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }
    .form-step[data-step="9"] .form-row label {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem;
    }
    .form-step[data-step="9"] .checkbox-label {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.8rem !important;
        line-height: 1.35;
    }
    .form-step[data-step="9"] .step-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .form-step[data-step="9"] .step-actions .btn-prev,
    .form-step[data-step="9"] .step-actions .btn-next {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .form-step[data-step="9"] h3 {
        font-size: 1.05rem !important;
    }
    .form-step[data-step="9"] .form-row label {
        font-size: 0.8rem !important;
    }
    .form-step[data-step="9"] .checkbox-label {
        font-size: 0.8rem !important;
        padding: 0.6rem !important;
    }
    .form-step[data-step="9"] .step-actions .btn-prev,
    .form-step[data-step="9"] .step-actions .btn-next {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/*=== Article (JTL) ===*/
.products-page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 55%, transparent);
    flex-wrap: wrap;
    row-gap: 0.75rem;
}
.products-page-header h1 {
    margin: 0;
    line-height: 1.1;
    font-weight: bold;
    font-size: 1.6rem;
    flex: 1 1 220px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.search-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    flex: 1 1 420px;
    min-width: 260px;
    align-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-dark) 75%, #0b1220);
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    box-shadow: var(--shadow);
}
.search-bar input {
    width: auto;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--border-color) 55%, transparent);
    background: color-mix(in srgb, var(--bg-dark) 85%, #0b1220);
    color: var(--text-white);
    outline: none;
    transition: var(--transition);
}
.search-bar input::placeholder {
    color: color-mix(in srgb, var(--text-light-gray) 90%, transparent);
}
.search-bar input:focus {
    border-color: color-mix(in srgb, var(--primary-green) 75%, var(--border-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-green) 22%, transparent);
}
.search-bar label{
    display: contents;
}
.search-bar button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #081107;
    background: var(--primary-green);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.search-bar button:hover {
    box-shadow: var(--shadow-lg);
    color: var(--primary-green);
    background-color: var(--bg-dark);
    border: 1px solid var(--primary-green);
}
.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    color: var(--primary-green);
    border: 1px solid color-mix(in srgb, var(--primary-green) 55%, var(--border-color));
    background: color-mix(in srgb, var(--bg-dark) 75%, #0b1220);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.btn-create:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.product-card {
    grid-column: span 4;
    padding: 1rem;
    border-radius: 18px;
    background: var(--bg-grad);
    border: 1px solid color-mix(in srgb, var(--border-color) 55%, transparent);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-card:hover {
    background: color-mix(in srgb, var(--hover) 65%, var(--bg-dark));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.product-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--primary-green);
}
.product-details {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
    color: var(--text-gray);
    font-size: 0.95rem;
}
.product-details strong {
    color: var(--text-white);
    font-weight: 600;
}
.empty-state {
    grid-column: 1 / -1;
    padding: 2.25rem 1.5rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-dark) 72%, #0b1220);
    border: 1px dashed color-mix(in srgb, var(--border-color) 65%, transparent);
    box-shadow: var(--shadow);
    text-align: center;
}
.empty-state i {
    font-size: 2.25rem;
    color: color-mix(in srgb, var(--primary-green) 80%, #ffffff);
    margin-bottom: 0.75rem;
}
.empty-state h3 {
    margin: 0;
    color: var(--text-white);
    font-weight: 700;
}
@media (max-width: 1100px) {
    .product-card { grid-column: span 6; }
}
@media (max-width: 820px) {
    .products-page-header {
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-create {
        flex: 0 0 auto;
    }

    .product-card { grid-column: span 12; }
}
@media (max-width: 480px) {
    .search-bar {
        flex: 1 1 100%;
        min-width: 0;
        padding: 0.5rem;
    }
    .search-bar button,
    .btn-create {
        width: 100%;
        justify-content: center;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
