@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&family=Rajdhani:wght@600;700&display=swap');

:root {
    --bg-primary: #eaeff5; /* Elegant cool gray/blue off-white */
    --bg-secondary: #f3f7fa; /* Slightly lighter tone */
    --bg-card: #ffffff; /* Pure white card for maximum depth and contrast */
    --border-color: #d8e2eb;
    --border-hover: #b4c6d6;
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --accent-blue: #0b2240; /* Official Deep Navy */
    --accent-blue-hover: #163e70;
    --accent-red: #cc1e1e; /* Ambulance Red */
    --accent-yellow: #f5b900; /* Hungarian Ambulance Gold/Yellow */
    --accent-green: #16a34a; /* Clinical Green */
    --bg-sidebar: #060a12; /* Slate black/navy for deep rich modern feel */
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #0b2240;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-motto: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-4px); }
    30%, 60%, 90% { transform: translateX(4px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.08); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    70% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(11, 34, 64, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(11, 34, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 34, 64, 0); }
}

@keyframes heroCtaGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(245, 185, 0, 0.35);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 8px 28px rgba(245, 185, 0, 0.55);
        transform: translateY(-3px) scale(1.04);
    }
}

@keyframes heroCtaShine {
    0% { background-position: -120% center; }
    55%, 100% { background-position: 220% center; }
}

.animate-hero-cta {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
        105deg,
        var(--accent-yellow) 0%,
        var(--accent-yellow) 40%,
        #fff4c2 50%,
        var(--accent-yellow) 60%,
        var(--accent-yellow) 100%
    );
    background-size: 220% 100%;
    animation: heroCtaGlow 2.4s ease-in-out infinite, heroCtaShine 4.5s ease-in-out infinite;
}

.btn-accent.animate-hero-cta {
    background-color: var(--accent-yellow);
}

.btn-accent.animate-hero-cta:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(245, 185, 0, 0.55);
    background-image: none;
    background-color: #e0a800;
    border-color: #e0a800;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

.animate-hover-pulse:hover {
    animation: pulse 0.9s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 2.5s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0.8rem 2.5rem;
    gap: 1rem;
}

.header-motto {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-motto);
    font-size: clamp(1.05rem, 1.75vw, 1.45rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--accent-blue);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    max-width: calc(100% - 26rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-motto span {
    color: var(--accent-red);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.logo-img {
    height: 52px;
    max-height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: rotate(6deg) scale(1.08);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    line-height: 1.1;
}

.logo-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.logo-ekg {
    position: relative;
    width: 100%;
    max-width: 138px;
    height: 16px;
    overflow: hidden;
    border-radius: 2px;
}

.logo-ekg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Főoldal — logó kontúr (~30% erősség) + piros szívdobogás */
@keyframes index-logo-heartbeat {
    0%, 100% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 4px rgba(204, 30, 30, 0.22))
            drop-shadow(0 2px 5px rgba(11, 34, 64, 0.066));
    }
    14%, 42% {
        transform: scale(1.08);
        filter:
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.35))
            drop-shadow(0 0 10px rgba(204, 30, 30, 0.55))
            drop-shadow(0 0 18px rgba(204, 30, 30, 0.38))
            drop-shadow(0 2px 8px rgba(11, 34, 64, 0.09));
    }
    28%, 70% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 5px rgba(204, 30, 30, 0.28))
            drop-shadow(0 2px 5px rgba(11, 34, 64, 0.066));
    }
}

@keyframes index-header-logo-pulse {
    0%, 100% {
        box-shadow:
            0 2px 8px rgba(204, 30, 30, 0.12),
            inset 0 0 0 1px rgba(204, 30, 30, 0.18);
    }
    14%, 42% {
        box-shadow:
            0 0 14px rgba(204, 30, 30, 0.38),
            0 0 24px rgba(204, 30, 30, 0.18),
            inset 0 0 0 1px rgba(204, 30, 30, 0.42);
    }
    28%, 70% {
        box-shadow:
            0 2px 8px rgba(204, 30, 30, 0.16),
            inset 0 0 0 1px rgba(204, 30, 30, 0.22);
    }
}

@keyframes heartbeat-red {
    0%, 100% { transform: scale(1); color: var(--accent-red); }
    14%, 42% { transform: scale(1.15); color: #ff3b3b; }
    28%, 70% { transform: scale(1); color: var(--accent-red); }
}

.animate-heartbeat-red {
    display: inline-block;
    animation: heartbeat-red 1.4s ease-in-out infinite;
}

.page-index .logo-link.index-logo-heartbeat {
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    animation: index-header-logo-pulse 1.4s ease-in-out infinite;
}

.page-index .logo-link.index-logo-heartbeat:hover {
    animation-play-state: paused;
}

.page-index .logo-img {
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 4px rgba(204, 30, 30, 0.25))
        drop-shadow(0 2px 4px rgba(11, 34, 64, 0.066));
    animation: index-logo-heartbeat 1.4s ease-in-out infinite;
}

.page-index .logo-link:hover .logo-img {
    animation-play-state: paused;
    transform: rotate(6deg) scale(1.08);
}

.page-index .logo-text {
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.22);
}

.page-index .index-hero-logo-wrap {
    animation: none;
}

.page-index .index-logo-heartbeat-img {
    animation: index-logo-heartbeat 1.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 6px rgba(204, 30, 30, 0.28))
        drop-shadow(0 0 10px rgba(204, 30, 30, 0.15))
        drop-shadow(0 4px 12px rgba(11, 34, 64, 0.066));
}

.page-index .hero-bg-wrap.has-bg .index-logo-heartbeat-img {
    animation: index-logo-heartbeat 1.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.35))
        drop-shadow(0 0 10px rgba(204, 30, 30, 0.45))
        drop-shadow(0 0 18px rgba(204, 30, 30, 0.3))
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

/* Feketelista (főoldal + leader) */
.blacklist-section-wrap {
    margin-bottom: 4rem;
}

.blacklist-section-title {
    justify-content: center;
    border: none;
    margin-bottom: 0.75rem;
}

.blacklist-section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.blacklist-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-secondary);
}

.blacklist-empty i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
    display: block;
}

.blacklist-table-wrap {
    padding: 0;
    overflow: hidden;
}

.blacklist-table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-table th,
.blacklist-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.blacklist-table thead th {
    background: rgba(204, 30, 30, 0.06);
    color: var(--accent-red);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blacklist-table tbody tr:hover {
    background: rgba(204, 30, 30, 0.04);
}

.blacklist-table-leader thead th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.blacklist-search-form {
    margin-bottom: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.nav-link-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    overflow: hidden;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    transition: width 0.32s ease, left 0.32s ease;
}

.nav-link-animated:hover::after,
.nav-link-animated.active::after {
    width: calc(100% - 1rem);
    left: 0.5rem;
}

.nav-link-animated:hover i,
.nav-link-animated.active i {
    animation: navIconPop 0.45s ease;
}

@keyframes navIconPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.22) rotate(-6deg); }
    100% { transform: scale(1); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    animation: pulseGlow 1.5s infinite;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background-color: var(--accent-red);
    color: #ffffff;
    border: 1px solid var(--accent-red);
}

.btn-danger:hover {
    background-color: #ab1717;
    border-color: #ab1717;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: #0b2240;
    border: 1px solid var(--accent-yellow);
}

.btn-accent:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Landing Page Hero */
.hero-bg-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-bg-wrap.has-bg {
    min-height: clamp(520px, 78vh, 860px);
    display: flex;
    align-items: center;
    justify-content: stretch;
    width: 100%;
}

.hero-bg-wrap .hero {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
}

.hero-bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-slide,
.experience-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: 0;
    will-change: opacity;
}

.hero-bg-slide.active,
.experience-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg-slide:not(.active),
.experience-slide:not(.active) {
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(115deg, rgba(11, 34, 64, 0.88) 0%, rgba(11, 34, 64, 0.62) 45%, rgba(11, 34, 64, 0.78) 100%);
    pointer-events: none;
}

.hero-bg-wrap.has-bg .hero-content h1 {
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-bg-wrap.has-bg .hero-content h1 span {
    color: #ff6b6b;
}

.hero-bg-wrap.has-bg .hero-lead,
.hero-bg-wrap.has-bg .hero-offer-title,
.hero-bg-wrap.has-bg .hero-apply-cta {
    color: #f8fafc;
}

.hero-bg-wrap.has-bg .hero-offer-list li {
    color: rgba(248, 250, 252, 0.92);
}

.hero-bg-wrap.has-bg .hero-rotating-line {
    color: var(--accent-yellow);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-bg-wrap.has-bg .recruitment-closed-note {
    color: rgba(248, 250, 252, 0.9);
}

.hero-bg-wrap.has-bg .hero-logo-large {
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.1))
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.09))
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.055))
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.045));
}

.hero {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3rem 2.5rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem 4rem;
    align-items: start;
}

.hero-content {
    text-align: left;
    justify-self: start;
    align-self: start;
    width: auto;
    max-width: min(680px, 52vw);
    padding-top: 0;
    margin-left: 15%;
}

.hero-image-wrapper {
    position: relative;
    top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: start;
    justify-self: end;
    width: auto;
    flex-shrink: 0;
    pointer-events: none;
    animation: float 5s ease-in-out infinite;
}

.hero-logo-large {
    max-width: min(380px, 32vw);
    width: auto;
    height: auto;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.1))
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.075))
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.04))
        drop-shadow(0 4px 10px rgba(11, 34, 64, 0.018));
}

@media (min-width: 993px) {
    .hero .hero-image-wrapper {
        top: 4rem;
    }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--accent-red);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 4px;
    background: var(--accent-yellow);
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Landing Page Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent-yellow);
}

.info-card-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.info-card:hover .info-card-icon {
    transform: scale(1.15);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Main Container */
.main-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Minimalist Form & Card layout */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Recruitment application sections */
.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--accent-blue);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 0.4rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.form-section-title i {
    color: var(--accent-red);
}

.recruitment-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Centered Authentication layout */
.auth-body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(239, 68, 68, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.auth-body .site-header {
    flex-shrink: 0;
    width: 100%;
}

.auth-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    position: relative;
}

.auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(234, 179, 8, 0.03) 50%, transparent 100%);
    animation: auth-bg-shift 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auth-bg-shift {
    0% { transform: translateX(-3%) translateY(0); opacity: 0.5; }
    100% { transform: translateX(3%) translateY(-2%); opacity: 1; }
}

.auth-centered-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: auth-card-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-card-enter {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow), var(--accent-blue));
    background-size: 200% 100%;
    animation: auth-border-flow 3s linear infinite;
}

@keyframes auth-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.auth-card:hover {
    transform: translateY(-3px);
}

.auth-logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-img {
    height: 72px;
    width: auto;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(11, 34, 64, 0.12));
}

.auth-card:hover .auth-logo-img {
    transform: scale(1.05) rotate(2deg);
}

.auth-logo-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-logo-section p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 0.95rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-with-icon input:focus + i {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.input-with-icon .form-control {
    padding-left: 2.5rem;
    width: 100%;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 0.8rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.auth-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-action-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-align: center;
}

.auth-link:hover {
    color: var(--accent-blue-hover);
    transform: translateX(2px);
}

.login-temp-password-hint {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.login-temp-password-hint strong {
    color: var(--accent-red);
}

.password-change-card {
    max-width: 460px;
}

.password-change-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 30, 30, 0.08);
    color: var(--accent-red);
    font-size: 1.35rem;
}

.password-change-hint {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(245, 185, 0, 0.1);
    border: 1px solid rgba(245, 185, 0, 0.25);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

.password-change-hint strong {
    color: var(--accent-red);
}

.add-member-temp-password-note {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.add-member-temp-password-note strong {
    color: var(--accent-red);
}

.career-portal-account-box {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.career-portal-account-box h4 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.career-portal-account-box > p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.career-portal-password-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.career-portal-password-note strong {
    color: var(--accent-red);
}

.recruitment-modal-portal-box {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.recruitment-modal-portal-box strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent-blue);
}

.recruitment-modal-portal-box p {
    margin: 0.2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recruitment-modal-portal-hint {
    font-size: 0.82rem !important;
    margin-top: 0.45rem !important;
}

.recruitment-modal-portal-hint strong {
    display: inline;
    color: var(--accent-red);
}

/* Forms styling */
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(11, 34, 64, 0.08);
    background: var(--bg-card);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Alerts */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: var(--accent-green);
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--accent-red);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

/* Left Sidebar */
.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 4px 0 15px rgba(11, 34, 64, 0.05);
}

.user-profile-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #0b2240;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.avatar-icon.leader {
    background: var(--accent-red);
    color: #ffffff;
}

.avatar-icon.developer {
    background: #ffffff;
    color: var(--accent-blue);
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-rank {
    font-size: 0.75rem;
    color: var(--accent-yellow);
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-rank.leader {
    color: #fca5a5;
}

.user-rank.developer {
    color: #38bdf8;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover::after {
    width: 100%;
}

.sidebar-link.admin-link::after {
    background: var(--accent-red);
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}

.sidebar-link.active {
    color: var(--sidebar-text-active);
    background: var(--accent-yellow);
    font-weight: 600;
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(245, 185, 0, 0.2);
}

.sidebar-link.active::after {
    width: 100%;
    background: var(--accent-blue);
}

.sidebar-link.admin-link.active {
    color: #ffffff;
    background: var(--accent-red);
    box-shadow: 0 4px 10px rgba(204, 30, 30, 0.2);
}

.sidebar-link.admin-link.active::after {
    width: 100%;
    background: #ffffff;
}

.sidebar-link i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    transition: var(--transition);
}

/* Sidebar Icon Hover Animations */
.sidebar-link:hover .fa-chart-line {
    animation: sidebar-bounce 1s infinite;
}
.sidebar-link:hover .fa-file-medical {
    animation: sidebar-heartbeat 1s infinite;
}
.sidebar-link:hover .fa-notes-medical {
    animation: sidebar-heartbeat 0.8s infinite;
}
.sidebar-link:hover .fa-calendar-minus {
    animation: sidebar-shake 0.5s infinite;
}
.sidebar-link:hover .fa-truck-medical {
    animation: sidebar-float 1.5s infinite;
}
.sidebar-link:hover .fa-user-gear,
.sidebar-link.active .fa-user-gear {
    animation: sidebar-spin 2s linear infinite;
}
.sidebar-link:hover .fa-shield-halved {
    animation: sidebar-shake 0.6s infinite;
}

/* Header logout icon animation */
.nav-links a:hover .fa-power-off {
    animation: sidebar-shake 0.5s infinite;
}

@keyframes sidebar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes sidebar-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes sidebar-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-3deg); }
    75% { transform: translateX(2px) rotate(3deg); }
}
@keyframes sidebar-heartbeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(1); }
    90% { transform: scale(1.15); }
}
@keyframes sidebar-float {
    0% { transform: translateY(0px) translateX(0); }
    50% { transform: translateY(-3px) translateX(2px); }
    100% { transform: translateY(0px) translateX(0); }
}

/* Dashboard Content */
.dashboard-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    color: var(--accent-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Widgets Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--accent-yellow);
}

.widget-info h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.widget-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.widget-icon.blue { background: #eff6ff; color: #1e40af; }
.widget-icon.red { background: #fef2f2; color: #b91c1c; }
.widget-icon.yellow { background: #fefce8; color: #a16207; }
.widget-icon.green { background: #f0fdf4; color: #15803d; }

/* Grid layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Table Design */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: var(--bg-primary);
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

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

tr {
    transition: var(--transition);
}

tr:hover td {
    background: var(--bg-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

.badge-pending { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.badge-approved { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-rejected { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Zoom image styles */
.report-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: var(--transition);
}

.report-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

/* Vehicle card info */
.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-md);
}

.vehicle-card-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-card-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
}

.vehicle-info-item {
    margin-bottom: 1rem;
}

.vehicle-info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.vehicle-info-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.vehicle-icon-large {
    font-size: 4rem;
    color: var(--accent-red);
    text-align: center;
}

/* Footer styling */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }
    .hero-content {
        order: 1;
        max-width: none;
        width: 100%;
        margin-left: 0;
    }
    .hero-image-wrapper {
        order: 2;
        justify-content: center;
        justify-self: center;
        top: 0;
    }
    .hero-logo-large {
        max-width: min(240px, 60vw);
    }
    .header-motto {
        display: none;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .vehicle-card-body {
        grid-template-columns: 1fr;
    }
    .vehicle-icon-large {
        font-size: 3rem;
    }
    .modal-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* BNO container styling */
.bno-container::-webkit-scrollbar {
    width: 4px;
}
.bno-container::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 2px;
}
.bno-item {
    transition: var(--transition);
}
.bno-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-yellow) !important;
}

/* Animated logout button */
.btn-logout-animate {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-card) !important;
    border: none !important;
    color: var(--accent-red) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn-logout-animate::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-image: conic-gradient(transparent, var(--accent-red), transparent 40%);
    animation: border-rotate 3.5s linear infinite;
}

.btn-logout-animate::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--bg-card);
    border-radius: 28px;
    transition: var(--transition);
}

.btn-logout-animate:hover::after {
    background: #fef2f2;
}

@keyframes border-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Online Indicator styles */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.status-indicator.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-indicator.offline {
    background-color: #94a3b8;
}

/* Chatfal styles */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    margin-top: 1rem;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages-list {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #f8fafc;
}

.chat-message-item {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message-item.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}

.chat-message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow);
}

.chat-message-item.own .chat-message-content {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
}

.chat-message-delete-form {
    margin-left: auto;
    flex-shrink: 0;
}

.chat-message-delete-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chat-message-item:hover .chat-message-delete-btn,
.chat-message-delete-btn:focus-visible {
    opacity: 1;
}

.chat-message-delete-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.chat-message-sender {
    font-weight: 700;
    color: var(--text-primary);
}

.chat-message-rank {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
}

.chat-message-time {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.chat-message-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.chat-message-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 6px;
    margin-top: 0.6rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.chat-message-image:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.chat-input-area {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message-input {
    min-height: 52px;
    resize: none;
    font-size: 0.92rem;
}

.chat-attachment-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.chat-url-input .form-control {
    padding-left: 2.2rem;
    font-size: 0.85rem;
    height: 100%;
}

.chat-image-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.chat-image-dropzone {
    position: relative;
    min-height: 44px;
    border: 1.5px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.chat-image-dropzone:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.chat-image-dropzone.is-dragover {
    border-color: var(--accent-blue);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.chat-image-dropzone.has-file {
    border-style: solid;
    border-color: #bfdbfe;
    cursor: default;
}

.chat-dropzone-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.65rem;
    min-height: 44px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    user-select: none;
}

.chat-dropzone-inner > i {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.chat-dropzone-text {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-dropzone-hint {
    color: var(--text-secondary);
}

.chat-dropzone-hint kbd {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1.3;
}

.chat-dropzone-browse {
    border: none;
    background: transparent;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.chat-dropzone-browse:hover {
    background: rgba(59, 130, 246, 0.1);
}

.chat-dropzone-inner[hidden],
.chat-dropzone-preview[hidden] {
    display: none !important;
}

.chat-dropzone-preview {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    min-height: 44px;
}

.chat-dropzone-preview img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
}

.chat-preview-name {
    font-size: 0.78rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview-clear {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.chat-preview-clear:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.chat-send-btn {
    padding: 0.6rem 1.15rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.report-attachment-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.report-image-hint {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .chat-attachment-row {
        grid-template-columns: 1fr;
    }

    .chat-send-btn {
        width: 100%;
        justify-content: center;
    }

    .chat-dropzone-inner {
        font-size: 0.75rem;
    }

    .chat-message-delete-btn {
        opacity: 0.75;
    }
}

/* Emergency beacon logo glow animation — removed from index hero; class kept for compatibility */
.logo-glow-wrapper {
    position: relative;
    display: inline-block;
}

.logo-glow-wrapper::after {
    display: none;
}

/* Multi-step form styles */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding: 0 1.5rem;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.step-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--accent-yellow);
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    width: 0%;
}

.step-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-node.active {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.35);
    background: var(--bg-card);
}

.step-node.completed {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: white;
}

.step-node-label {
    position: absolute;
    top: 52px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-secondary);
}

.step-node.active .step-node-label {
    color: var(--text-primary);
}

.step-node.completed .step-node-label {
    color: var(--accent-green);
}

/* Form section switch animations */
.form-step-content {
    display: none;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Stat card styles */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Abandoned vehicle tab hero */
.abandoned-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(234, 179, 8, 0.06) 50%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    overflow: hidden;
    position: relative;
}

.abandoned-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(239, 68, 68, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.abandoned-hero-icons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}

.abandoned-hero-icon {
    font-size: 2rem;
}

.abandoned-hero-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
}

.abandoned-hero-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar-link:hover .fa-car-burst {
    animation: sidebar-shake 0.5s infinite;
}

@media (max-width: 768px) {
    .abandoned-hero {
        flex-direction: column;
        text-align: center;
    }

    .abandoned-hero-icons {
        justify-content: center;
    }
}

/* ===== Toast értesítések ===== */
.toast-container {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}

.toast-right {
    top: 1.25rem;
    right: 1.25rem;
    align-items: flex-end;
}

.toast-center {
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    width: min(520px, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(11, 34, 64, 0.18), 0 4px 12px rgba(11, 34, 64, 0.08);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    max-width: 420px;
    opacity: 0;
    transform: translateX(120%) scale(0.92);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-banner {
    min-width: unset;
    max-width: unset;
    width: 100%;
    transform: translateY(-120%) scale(0.95);
    border-left: 4px solid var(--accent-green);
    padding: 1rem 1.25rem;
}

.toast-banner .toast-body {
    white-space: pre-line;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast-banner.toast-visible {
    transform: translateY(0) scale(1);
}

.toast-hiding {
    opacity: 0 !important;
    transform: translateX(120%) scale(0.9) !important;
}

.toast-banner.toast-hiding {
    transform: translateY(-120%) scale(0.95) !important;
}

.toast-success {
    border-left: 4px solid var(--accent-green);
}

.toast-error {
    border-left: 4px solid var(--accent-red);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    animation: toast-icon-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    animation: toast-icon-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes toast-icon-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.toast-body {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    padding-right: 0.25rem;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow));
    transform-origin: left;
    animation: toast-progress linear forwards;
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, var(--accent-red), #f97316);
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Landing page — dashboard-stílusú widgetek */
.landing-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.landing-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.4rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.landing-widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--accent-yellow);
}

.landing-widget-info h4 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.landing-widget-info p {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.landing-widget-duty:hover {
    border-left-color: var(--accent-red);
}

.duty-live-names {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
    max-width: 14rem;
}

.duty-pulse-icon {
    animation: dutyIconPulse 2s ease-in-out infinite;
}

@keyframes dutyIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.85; }
}

.landing-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Karrier / jelentkezés oldal */
.career-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.career-hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.career-hero-logo {
    display: block;
    height: clamp(120px, 16vw, 160px);
    width: auto;
    margin: 0;
    animation: career-logo-float 4.5s ease-in-out infinite;
    filter: drop-shadow(0 12px 28px rgba(11, 34, 64, 0.15));
}

@keyframes career-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.career-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--accent-blue);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.career-hero p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.career-form-card {
    border-left: 4px solid var(--accent-red);
    animation: auth-card-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.career-form-card .step-node.active {
    animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.35); }
    50% { box-shadow: 0 0 22px rgba(234, 179, 8, 0.55); transform: scale(1.05); }
}

.career-success-panel {
    text-align: center;
    padding: 3rem 2rem;
    animation: auth-card-enter 0.6s ease both;
}

.career-success-panel .success-icon {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    animation: toast-icon-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-form .form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-form .btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.25rem 0 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-remember-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

@media (max-width: 768px) {
    .toast-right {
        right: 0.75rem;
        left: 0.75rem;
        align-items: stretch;
    }

    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}

/* Vezetőségi panel — balra igazított tartalom, gombok középen */
.leader-panel-wrap {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.leader-section-title {
    justify-content: flex-start;
    text-align: left;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.leader-widgets-grid {
    margin-bottom: 1.5rem;
}

.leader-widgets-grid .widget {
    justify-content: flex-start;
    gap: 1rem;
}

.leader-widgets-grid .widget-info {
    text-align: left;
}

.leader-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.leader-panel-body {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 0.5rem;
}

.leader-subnav-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: sticky;
    top: 1rem;
    padding: 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.leader-subnav-vertical .leader-subtab-btn {
    position: relative;
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    text-align: left;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}

.leader-subnav-vertical .leader-subtab-btn i {
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.leader-subnav-vertical .leader-subtab-btn span {
    line-height: 1.35;
}

.leader-subnav-vertical .leader-subtab-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateX(2px);
}

.leader-subnav-vertical .leader-subtab-btn.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--accent-blue);
    font-weight: 700;
}

.leader-subnav-vertical .leader-subtab-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent-blue);
    animation: leaderNavSelect 0.28s ease;
}

@keyframes leaderNavSelect {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.leader-subtab-panel {
    min-width: 0;
}

.leader-subtab-content {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.leader-subtab-content.leader-subtab-visible {
    opacity: 1;
    transform: translateY(0);
}

.leader-members-toolbar {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.leader-members-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
    gap: 0.65rem;
    align-items: center;
}

.leader-members-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.leader-members-search-wrap i {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.leader-members-search-wrap .form-control {
    padding-left: 2.25rem;
}

.leader-members-filter-meta {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.leader-members-empty-filter {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.5rem;
    font-size: 0.92rem;
}

.leader-member-reports {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.profile-secondary-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
    text-shadow: none;
}

.profile-secondary-rank-badge i {
    font-size: 0.72rem;
    opacity: 0.9;
}

.secondary-rank-pill {
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.32);
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.user-rank .secondary-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    margin-left: 0;
}

.leader-panel-card {
    max-width: none;
    margin: 0 0 1.5rem 0;
    width: 100%;
}

.leader-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leader-card-header-left {
    flex-direction: column;
    align-items: flex-start;
}

.leader-card-desc {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 720px;
}

.leader-rankup-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 185, 0, 0.45);
    background: rgba(245, 185, 0, 0.12);
    color: var(--text-primary);
}

.leader-rankup-alert > i {
    color: var(--accent-yellow);
    font-size: 1.35rem;
    margin-top: 0.15rem;
}

.leader-rankup-alert strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #92680a;
}

.leader-rankup-alert span {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.leader-rankup-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.leader-rankup-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 185, 0, 0.2);
    border: 1px solid var(--accent-yellow);
    font-size: 0.78rem;
    font-weight: 700;
    color: #92680a;
}

.badge-rankup-ready {
    background: rgba(245, 185, 0, 0.18) !important;
    color: #92680a !important;
    border: 1px solid var(--accent-yellow) !important;
    font-weight: 700;
    animation: rankupPulse 2s ease-in-out infinite;
}

@keyframes rankupPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 185, 0, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(245, 185, 0, 0); }
}

.fire-confirm-modal {
    max-width: 480px !important;
    width: 92% !important;
    padding: 1.5rem !important;
}

.fire-modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--accent-red);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fire-modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.fire-modal-desc span {
    font-size: 0.88rem;
}

.fire-type-options {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.fire-type-option {
    cursor: pointer;
    margin: 0;
}

.fire-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fire-type-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.fire-type-card i {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 0.15rem;
}

.fire-type-card strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.fire-type-card small {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.fire-type-option input:checked + .fire-type-card {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fire-type-card-danger i {
    color: var(--accent-red);
}

.fire-type-option input:checked + .fire-type-card-danger {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.06);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.fire-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.fire-modal-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-weight: 700;
}

#fireMemberModal {
    z-index: 1200;
}

/* Faction log (Napló) */
.faction-log-header h3 {
    margin-bottom: 0;
}

.faction-log-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.faction-log-search-form {
    margin-bottom: 1.25rem;
}

.faction-log-search-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.faction-log-search-row > i {
    color: var(--text-secondary);
}

.faction-log-search-row .form-control {
    flex: 1 1 220px;
    min-width: 0;
}

.faction-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.faction-log-entry {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.faction-log-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.faction-log-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.faction-log-action {
    font-size: 0.72rem;
}

.faction-log-entry-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.faction-log-actor,
.faction-log-target {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.faction-log-actor i {
    color: var(--accent-blue);
}

.faction-log-target i {
    color: var(--accent-yellow);
}

.faction-log-details {
    margin: 0.25rem 0 0;
    padding: 0.55rem 0.65rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .fire-modal-actions {
        flex-direction: column;
    }

    .faction-log-search-row .btn {
        width: 100%;
    }
}

.praise-field-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.praise-field-row .form-control {
    flex: 1 1 180px;
    min-width: 0;
}

.praise-action-buttons,
.praise-table-cell .praise-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.praise-action-buttons-compact {
    margin-top: 0.35rem;
}

.praise-action-form {
    margin: 0;
}

.praise-promote-btn,
.praise-reset-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.praise-table-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.leader-card-header h3,
.leader-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
}

.leader-card-header h3 {
    margin-bottom: 0;
}

.leader-subsection-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--accent-blue);
    text-align: left;
}

.leader-empty-msg {
    color: var(--text-secondary);
    text-align: left;
    padding: 1rem 0;
}

.leader-table-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.leader-lock-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.leader-subtab-content .table-wrapper {
    margin: 0;
}

.leader-subtab-content .table-wrapper table {
    margin: 0;
    width: 100%;
}

.leader-table-left th,
.leader-table-left td {
    text-align: left;
}

.leader-rank-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.leader-rank-select {
    min-width: 170px;
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
}

.leader-announcement-form .form-group {
    margin-bottom: 1rem;
}

.leader-announcement-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.leader-announcements-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leader-announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    text-align: left;
}

.leader-announcement-item-body {
    flex: 1;
    min-width: 0;
}

.leader-announcement-item-body strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.leader-announcement-item-body p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.92rem;
}

.recruitment-admin-card .leader-card-header {
    align-items: center;
}

.recruitment-admin-form {
    justify-content: flex-start;
}

/* Felhívások — vezérlőpult */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-card {
    text-align: left;
    border-left: 4px solid var(--accent-yellow);
    position: relative;
}

.announcement-card.announcement-pinned {
    border-left-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(234, 179, 8, 0.04));
}

.announcement-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-blue);
    margin: 0 0 0.65rem;
}

.announcement-content {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 0.85rem;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.announcement-meta i {
    color: var(--accent-yellow);
    margin-right: 0.25rem;
}

.secondary-rank-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.secondary-rank-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-top: 0.25rem;
}

.user-rank .secondary-rank-tag {
    display: block;
    margin-top: 0.2rem;
    margin-left: 0;
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .leader-card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .leader-card-header h3 {
        text-align: left;
    }

    .leader-subnav {
        justify-content: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.75rem;
    }

    .leader-panel-body {
        grid-template-columns: 1fr;
    }

    .leader-subnav-vertical {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .leader-subnav-vertical .leader-subtab-btn {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .leader-subnav-vertical .leader-subtab-btn span {
        white-space: nowrap;
    }

    .leader-members-filter-row {
        grid-template-columns: 1fr;
    }

    .leader-rank-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .leader-rank-select {
        width: 100%;
        min-width: unset;
    }

    .leader-announcement-item {
        flex-direction: column;
    }
}

/* Hero rotating text — crossfade, mindig van látható sor */
.hero-rotating-wrap {
    position: relative;
    min-height: 2.85rem;
    margin: 0.75rem 0 1.25rem;
}

.hero-rotating-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: var(--accent-red);
    line-height: 1.35;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hero-rotating-line.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.hero-rotating-line.was-active {
    opacity: 0;
    transform: translateY(-8px);
    z-index: 1;
}

/* Hero ajánlat blokk */
.hero-offer {
    margin-top: 0.5rem;
}

.hero-lead {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    max-width: 540px;
}

.hero-offer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hero-offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.hero-offer-list li i {
    color: var(--accent-yellow);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
}

.hero-apply-cta {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1rem;
    margin: 0;
}

/* Tagfelvétel badge */
.recruitment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.recruitment-status-badge.recruitment-open {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.recruitment-status-badge.recruitment-closed {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.recruitment-closed-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 520px;
}

.recruitment-closed-note i {
    color: var(--accent-yellow);
    margin-right: 0.35rem;
}

.career-closed-panel,
.career-closed-hero {
    text-align: center;
}

.career-closed-panel {
    padding: 3rem 1.5rem;
    text-align: center;
}

.career-closed-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    animation: animate-heartbeat 2s ease-in-out infinite;
}

/* Cookie consent — középen lent */
.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    width: min(560px, calc(100vw - 2rem));
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
    pointer-events: none;
}

.cookie-consent.cookie-consent-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent.cookie-consent-hiding {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(12px);
}

.cookie-consent-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.cookie-consent-icon {
    font-size: 1.65rem;
    color: #fbbf24;
    animation: cookie-wiggle 2.5s ease-in-out infinite;
}

@keyframes cookie-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.05); }
    75% { transform: rotate(8deg) scale(1.05); }
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
}

.cookie-consent-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* Leader: tagfelvétel admin */
.recruitment-admin-card {
    margin-bottom: 1.5rem;
}

.recruitment-admin-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.recruitment-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.recruitment-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
}

@media (max-width: 640px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    .hero-rotating-wrap {
        min-height: 2.6rem;
    }

    .hero-rotating-line {
        font-size: 1.05rem;
    }

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

/* Jármű hozzáférések */
.vehicle-access-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vehicle-access-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

.user-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.user-vehicle-item {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.vehicle-access-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.55rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.vehicle-access-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.vehicle-access-checkbox-item:hover {
    border-color: var(--accent-yellow);
}

.vehicle-access-checkbox-item small {
    color: var(--text-secondary);
}

.leader-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.leader-media-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.leader-media-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.leader-media-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.leader-media-upload-form {
    max-width: 520px;
}

/* --- Point meters & quick adjust --- */
.point-meter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.point-meter-icon {
    font-size: 1.35rem;
    color: var(--border-color);
    transition: color 0.2s ease, transform 0.2s ease;
}

.point-meter-icon.active {
    transform: scale(1.05);
}

.point-meter-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.point-adjust-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.point-adjust-head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.point-adjust-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.point-adjust-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.point-adjust-form {
    margin: 0;
}

.point-adjust-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.point-adjust-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* --- Profile discipline card --- */
.profile-discipline-card {
    padding: 1.25rem;
}

.profile-discipline-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.profile-discipline-title i {
    color: var(--accent-blue);
}

.profile-points-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-point-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
}

.profile-point-card h4 {
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.profile-point-demerit h4 i {
    color: var(--accent-red);
}

.profile-point-praise h4 i {
    color: var(--accent-yellow);
}

.profile-praise-actions {
    margin-top: 0.65rem;
}

.point-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.point-status-ok { color: var(--accent-green); }
.point-status-warn { color: var(--accent-red); }
.point-status-praise { color: var(--accent-yellow); }
.point-status-rankup { color: #92680a; font-weight: 700; }
.point-status-muted { color: var(--text-secondary); }

.profile-discipline-note {
    margin-top: 1.25rem;
}

.profile-discipline-note h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.profile-note-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    min-height: 60px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: var(--text-primary);
    line-height: 1.6;
}

.profile-note-box-warn {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.05);
}

.profile-hibapont-indok {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.profile-hibapont-indok h5 {
    font-size: 0.82rem;
    margin: 0 0 0.45rem;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.point-adjust-block-hibapont .point-adjust-add-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.point-reason-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.point-reason-input {
    font-size: 0.88rem;
    min-height: 3.5rem;
    resize: vertical;
}

.point-adjust-add-btn {
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

/* --- Profile manage form sections --- */
.profile-manage-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent-yellow);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-manage-title i {
    color: var(--accent-red);
}

.profile-form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.profile-form-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: -0.35rem 0 0.85rem;
    line-height: 1.5;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-form-section-danger {
    background: rgba(239, 68, 68, 0.04);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.profile-password-field {
    margin-bottom: 0.85rem;
}

.profile-fire-btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.8rem;
}

/* --- Leader members: táblázatos lista + inline lenyíló --- */
.leader-members-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.leader-members-table-head,
.leader-member-row {
    display: grid;
    grid-template-columns: 40px minmax(140px, 1.4fr) minmax(90px, 0.9fr) auto 28px;
    gap: 0.75rem;
    align-items: center;
}

.leader-members-table-head {
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.leader-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.15rem 0;
    border: none;
    background: transparent;
}

.leader-member-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.leader-member-item.member-glow-warn {
    border-color: rgba(204, 30, 30, 0.28);
    box-shadow:
        0 0 0 1px rgba(204, 30, 30, 0.12),
        0 0 14px rgba(204, 30, 30, 0.14),
        0 2px 8px rgba(204, 30, 30, 0.06);
}

.leader-member-item.member-glow-warn-max {
    border-color: rgba(204, 30, 30, 0.55);
    box-shadow:
        0 0 0 2px rgba(204, 30, 30, 0.35),
        0 0 22px rgba(204, 30, 30, 0.42),
        0 0 38px rgba(204, 30, 30, 0.18);
    animation: member-warn-pulse 2.4s ease-in-out infinite;
}

.leader-member-item.member-glow-praise {
    border-color: rgba(245, 185, 0, 0.35);
    box-shadow:
        0 0 0 1px rgba(245, 185, 0, 0.18),
        0 0 16px rgba(245, 185, 0, 0.2),
        0 2px 8px rgba(245, 185, 0, 0.08);
}

.leader-member-item.member-glow-praise-strong {
    border-color: rgba(245, 185, 0, 0.55);
    box-shadow:
        0 0 0 2px rgba(245, 185, 0, 0.32),
        0 0 24px rgba(245, 185, 0, 0.38),
        0 0 36px rgba(245, 185, 0, 0.14);
}

.leader-member-item.member-glow-warn.member-glow-praise,
.leader-member-item.member-glow-warn-max.member-glow-praise,
.leader-member-item.member-glow-warn.member-glow-praise-strong,
.leader-member-item.member-glow-warn-max.member-glow-praise-strong {
    box-shadow:
        0 0 0 1px rgba(204, 30, 30, 0.2),
        0 0 14px rgba(204, 30, 30, 0.16),
        0 0 0 1px rgba(245, 185, 0, 0.22),
        0 0 16px rgba(245, 185, 0, 0.18);
}

.leader-member-item.member-glow-warn-max.member-glow-praise-strong {
    box-shadow:
        0 0 0 2px rgba(204, 30, 30, 0.32),
        0 0 22px rgba(204, 30, 30, 0.38),
        0 0 0 2px rgba(245, 185, 0, 0.28),
        0 0 20px rgba(245, 185, 0, 0.28);
    animation: member-warn-pulse 2.4s ease-in-out infinite;
}

@keyframes member-warn-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(204, 30, 30, 0.32),
            0 0 20px rgba(204, 30, 30, 0.38),
            0 0 34px rgba(204, 30, 30, 0.14);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(204, 30, 30, 0.5),
            0 0 28px rgba(204, 30, 30, 0.55),
            0 0 48px rgba(204, 30, 30, 0.24);
    }
}

.leader-member-item + .leader-member-item {
    border-top: none;
}

.leader-member-row {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
    border-radius: 10px;
}

.leader-member-item.is-open .leader-member-row {
    border-radius: 10px 10px 0 0;
}

.leader-member-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.leader-member-item.is-open .leader-member-row,
.leader-member-row-active {
    background: rgba(59, 130, 246, 0.07);
    box-shadow: inset 3px 0 0 var(--accent-blue);
}

.leader-member-row-chevron {
    color: var(--text-secondary);
    font-size: 0.72rem;
    transition: transform 0.22s ease;
}

.leader-member-item.is-open .leader-member-row-chevron {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.leader-member-expand {
    overflow: hidden;
    animation: member-expand-in 0.22s ease-out;
    border-top: 1px dashed var(--border-color);
    background: var(--bg-secondary);
}

@keyframes member-expand-in {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 280px; }
}

.member-expand-body {
    padding: 0.85rem 1rem 1rem 3.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-expand-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
    margin: 0;
    padding: 0;
}

.member-expand-meta li {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-expand-meta li i {
    color: var(--accent-blue);
    font-size: 0.78rem;
}

.member-expand-meta li.is-warn {
    color: var(--accent-red);
}

.member-expand-meta li.is-warn i {
    color: var(--accent-red);
}

.member-expand-meta li.is-praise-ready {
    color: #a16207;
}

.member-expand-meta li.is-praise-ready i {
    color: var(--accent-yellow);
}

.member-expand-notes {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.member-expand-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.member-expand-note-warn {
    color: var(--accent-red);
}

.member-expand-praise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.member-expand-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-expand-actions .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

.leader-member-row-fired {
    opacity: 0.72;
}

.leader-member-row-retired {
    background: rgba(234, 179, 8, 0.04);
}

.leader-member-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.leader-member-row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.leader-member-row-main strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-member-row-main small {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.leader-member-row-rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-member-row-status {
    font-size: 0.68rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .leader-members-table-head {
        display: none;
    }

    .leader-member-row {
        grid-template-columns: 36px 1fr auto 22px;
        grid-template-rows: auto auto;
    }

    .leader-member-row-rank {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.72rem;
    }

    .leader-member-row-status {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .leader-member-row-chevron {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .member-expand-body {
        padding-left: 1rem;
    }
}

/* --- Leader members list + detail layout (legacy) --- */
.leader-members-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
    gap: 1.25rem;
    margin-top: 1rem;
    align-items: start;
}

.leader-members-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.leader-members-toolbar-compact {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.leader-members-filter-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.leader-members-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.leader-member-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.leader-member-row:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.04);
}

.leader-member-row-active {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: inset 3px 0 0 var(--accent-blue);
}

.leader-member-row-fired {
    opacity: 0.72;
}

.leader-member-row-retired {
    background: rgba(234, 179, 8, 0.06);
}

.leader-member-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.leader-member-row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.leader-member-row-main strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-member-row-main small {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.leader-member-row-rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.leader-member-row-status {
    font-size: 0.68rem;
    white-space: nowrap;
}

.leader-member-detail-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 320px;
    position: sticky;
    top: 1rem;
}

.leader-member-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 280px;
    text-align: center;
    color: var(--text-secondary);
}

.leader-member-detail-empty i {
    font-size: 2.5rem;
    opacity: 0.35;
}

.leader-member-detail-head {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leader-member-detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.leader-member-detail-identity h4 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
}

.leader-member-detail-username {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.leader-member-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.leader-member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.leader-member-detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.leader-member-detail-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.leader-member-detail-item strong {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.leader-member-detail-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.leader-member-detail-praise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.leader-member-detail-note {
    font-size: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.leader-member-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.leader-member-detail-actions .btn {
    flex: 1;
    justify-content: center;
}

/* --- Meeting summary --- */
.meeting-filter-form {
    margin: 1rem 0 1.25rem;
}

.meeting-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.meeting-filter-row .form-group {
    margin: 0;
    min-width: 160px;
}

.meeting-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.meeting-summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.meeting-summary-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.meeting-summary-card strong {
    font-size: 1.25rem;
}

.meeting-summary-expense strong {
    color: var(--accent-red);
}

.meeting-summary-income strong {
    color: var(--accent-green);
}

.meeting-table {
    width: 100%;
    border-collapse: collapse;
}

.meeting-table th,
.meeting-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.meeting-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.meeting-table tfoot th {
    font-weight: 800;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
}

.meeting-amount-expense {
    color: var(--accent-red);
    font-weight: 700;
}

.meeting-amount-income {
    color: var(--accent-green);
    font-weight: 700;
}

.meeting-row-empty {
    opacity: 0.55;
}

@media (max-width: 992px) {
    .leader-members-layout {
        grid-template-columns: 1fr;
    }

    .leader-member-detail-panel {
        position: static;
    }

    .meeting-summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leader-member-row {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto;
    }

    .leader-member-row-rank,
    .leader-member-row-status {
        grid-column: 2;
    }

    .leader-member-detail-grid,
    .leader-member-detail-points {
        grid-template-columns: 1fr;
    }

    .meeting-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Leader members card grid (legacy) --- */
.leader-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.leader-member-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.leader-member-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.leader-member-fired {
    opacity: 0.72;
    background: rgba(254, 226, 226, 0.35);
    border-color: rgba(239, 68, 68, 0.35);
}

.leader-member-retired {
    background: rgba(234, 179, 8, 0.06);
}

.leader-member-rankup {
    border-color: var(--accent-yellow);
    background: rgba(245, 185, 0, 0.08);
    box-shadow: inset 3px 0 0 var(--accent-yellow);
}

.leader-member-warn {
    box-shadow: inset 3px 0 0 var(--accent-red);
}

.leader-member-card-head {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.leader-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    grid-row: span 2;
}

.leader-member-identity {
    min-width: 0;
}

.leader-member-name {
    display: block;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-member-name:hover {
    color: var(--accent-blue);
}

.leader-member-username {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.leader-member-badges {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.leader-member-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.leader-member-meta-item {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.leader-member-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.leader-member-point-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.leader-member-point-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.leader-member-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.leader-member-profile-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.leader-member-card-actions .btn-primary {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.leader-member-locked {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .profile-points-grid,
    .form-row-2,
    .leader-member-points {
        grid-template-columns: 1fr;
    }

    .leader-members-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Mobil navigáció (publikus oldalak) —— */
.mobile-nav-toggle {
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
    z-index: 2;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
        gap: 0.5rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
        order: 10;
    }

    .nav-links.mobile-nav-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .nav-link,
    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .main-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .landing-widgets,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.15rem;
        flex-wrap: wrap;
    }

    .blacklist-table-wrap,
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blacklist-table,
    .meeting-table {
        min-width: 520px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* —— Dashboard mobil —— */
.sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.75rem 1rem 0;
        padding: 0.55rem 1rem;
        background: var(--bg-sidebar);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        width: calc(100% - 2rem);
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
        width: 100%;
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    .sidebar.sidebar-open {
        display: flex;
    }

    .dashboard-content {
        padding: 1rem !important;
    }

    .meeting-filter-row,
    .contract-form-grid,
    .faction-log-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .meeting-summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-brand-text h1 {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .auth-card {
        margin: 1rem;
        padding: 1.25rem;
    }
}

/* —— Footer jogi linkek —— */
.site-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-legal-links {
    margin-top: 0.5rem;
}

.footer-legal-links a {
    font-weight: 600;
}

.cookie-privacy-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* —— Adatvédelmi oldal —— */
.privacy-page-wrap {
    max-width: 860px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}

.privacy-page-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.privacy-page-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.privacy-card {
    padding: 1.5rem 1.75rem;
}

.privacy-content .privacy-updated {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.privacy-section {
    margin-bottom: 1.5rem;
}

.privacy-section h2 {
    font-size: 1.05rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.privacy-section p,
.privacy-section li {
    line-height: 1.65;
    color: var(--text-primary);
}

.privacy-section ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.privacy-back-link {
    margin-top: 1.5rem;
    text-align: center;
}

/* —— Szerződéses partnerek (index) —— */
.contracts-section-wrap {
    margin-bottom: 3rem;
}

.contracts-section-intro,
.contracts-footnote {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.contracts-footnote {
    margin-top: 1rem;
    font-size: 0.88rem;
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.contract-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contract-card-header h3 {
    font-size: 1rem;
    margin: 0.35rem 0 0;
    line-height: 1.35;
}

.contract-org-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.contract-card-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contract-card-details li i {
    width: 1.1rem;
    color: var(--accent-yellow);
}

.contract-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    margin-top: auto;
    width: fit-content;
}

.contract-status-active {
    background: #dcfce7;
    color: #15803d;
}

.contract-status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.contract-status-ended {
    background: #fee2e2;
    color: #b91c1c;
}

.contracts-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.contracts-empty i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    display: block;
}

/* —— TB-kártya rendszer —— */
.tb-card-section-wrap {
    margin-bottom: 4rem;
}

.tb-card-section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

.tb-card-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.25rem;
}

.tb-card-info-card h3,
.tb-card-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-card-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.tb-card-info-card li i {
    color: var(--accent-blue);
    width: 1.1rem;
}

.tb-card-template-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.tb-card-template-preview {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.tb-card-template-preview img {
    width: 100%;
    display: block;
}

.tb-confirmation-card {
    margin-bottom: 1.25rem;
    text-align: center;
    border: 2px solid #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.tb-confirmation-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.tb-confirmation-card h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem;
}

.tb-confirmation-lead {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 1rem;
    line-height: 1.55;
}

.tb-confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    text-align: left;
    margin: 0 auto 1rem;
    max-width: 720px;
}

.tb-confirmation-details div {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
}

.tb-confirmation-details dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.tb-confirmation-details dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.tb-confirmation-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.tb-pending-hint {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: -0.35rem 0 1rem;
}

.tb-pending-preview-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: default;
    min-height: 120px;
    background: #f8fafc;
}

.tb-pending-preview-template img {
    width: 100%;
    min-height: auto;
    opacity: 0.85;
}

.tb-pending-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a16207;
    background: #fef9c3;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.tb-approved-card-banner {
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--accent-green);
}

.tb-approved-card-banner h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.35rem;
}

.tb-approved-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.tb-approved-card-preview {
    max-width: 520px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.tb-approved-card-preview img {
    width: 100%;
    display: block;
}

.tb-approved-card-iframe {
    width: 100%;
    min-height: 420px;
    border: none;
    display: block;
    background: #fff;
}

.tb-card-action-btns {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Kitöltött TB-igazolvány — sablon + ráírt mezők (GD nélkül is működik) */
.tb-card-render-wrap {
    position: relative;
    width: min(920px, 96vw);
    line-height: 1;
}

.tb-card-render-bg {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
}

.tb-card-render-field {
    position: absolute;
    color: #2a1f5c;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
    line-height: 1;
}

@media print {
    body.tb-card-render-page {
        background: #fff;
        padding: 0;
    }
    .tb-card-render-toolbar,
    body.tb-card-render-page > p {
        display: none !important;
    }
}

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.35rem;
    margin-left: auto;
    border-radius: 999px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.tb-section-fee {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.tb-pending-card,
.tb-registry-row-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.tb-registry-row-actions form {
    margin: 0;
}

.tb-registry-card {
    margin-bottom: 1.25rem;
}

.tb-pending-card h3,
.tb-registry-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-pending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tb-pending-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.tb-pending-preview {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.tb-pending-preview img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
}

.tb-pending-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.tb-pending-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tb-pending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.tb-approve-form,
.tb-reject-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tb-payment-confirm-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
}

.tb-reject-form .form-control {
    min-width: 180px;
    font-size: 0.85rem;
    padding: 0.35rem 0.55rem;
}

.tb-empty-pending,
.tb-registry-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.5rem;
}

.tb-empty-pending i {
    font-size: 2rem;
    color: var(--accent-green);
    display: block;
    margin-bottom: 0.5rem;
}

.tb-registry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tb-registry-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tb-registry-filters .form-control {
    min-width: 160px;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.tb-registry-table code {
    font-size: 0.82rem;
}

.tb-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tb-status-pill.is-active {
    background: #dcfce7;
    color: #15803d;
}

.tb-status-pill.is-expired {
    background: #fee2e2;
    color: #b91c1c;
}

.tb-holder-accordion {
    padding: 0;
    overflow: hidden;
}

.tb-holder-accordion-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.tb-holder-accordion-summary::-webkit-details-marker {
    display: none;
}

.tb-holder-accordion[open] .tb-holder-chevron {
    transform: rotate(180deg);
}

.tb-holder-chevron {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.tb-holder-accordion-body {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid var(--border-color);
}

.tb-holder-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin: 0.85rem 0;
}

.tb-holder-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 260px;
    overflow-y: auto;
}

.tb-holder-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 0.85rem;
}

.tb-holder-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tb-holder-id {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.tb-holder-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.tb-holder-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .tb-card-apply-grid {
        grid-template-columns: 1fr;
    }

    .tb-pending-item {
        grid-template-columns: 1fr;
    }

    .tb-holder-toolbar {
        grid-template-columns: 1fr;
    }

    .tb-registry-filters {
        width: 100%;
    }

    .tb-registry-filters .form-control,
    .tb-registry-filters .btn {
        width: 100%;
    }
}

/* —— Leader szerződés panel —— */
.contract-create-form {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contract-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contract-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.contract-form-row .form-group {
    flex: 1 1 220px;
    min-width: 0;
    margin-bottom: 0;
}

.contract-form-months {
    flex: 0 1 160px;
    max-width: 180px;
}

.contract-form-fee {
    flex: 0 1 180px;
    max-width: 200px;
}

.contract-form-type {
    flex: 1 1 220px;
}

.contract-form-notes {
    flex: 1 1 280px;
}

.contract-form-submit {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.contract-form-submit .btn {
    white-space: nowrap;
    width: 100%;
    min-width: 210px;
    padding: 0.65rem 1.1rem;
}

.profile-fire-wrap {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .contract-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contract-form-months,
    .contract-form-submit {
        flex: 1 1 auto;
        max-width: none;
    }

    .contract-form-submit .btn {
        min-width: 0;
    }
}

.contract-form-submit-row {
    margin-top: 0.25rem;
}

.contract-form-submit-row .btn {
    width: 100%;
    padding: 0.75rem 1rem;
}

/* —— Szerződés lista (vezetői kártyák) —— */
.contracts-leader-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contract-leader-item {
    padding: 1.1rem 1.25rem !important;
    margin: 0;
    box-shadow: var(--shadow) !important;
}

.contract-leader-item:hover {
    box-shadow: var(--shadow-md) !important;
}

.contract-leader-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.contract-leader-org {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contract-leader-org strong {
    font-size: 1.05rem;
    color: var(--accent-blue);
}

.contract-leader-org span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.contract-leader-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contract-leader-detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contract-leader-detail label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.contract-leader-detail span {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.contract-leader-fee {
    font-weight: 700;
    color: var(--accent-blue) !important;
}

.contract-leader-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.contract-leader-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.contract-leader-actions .contract-end-form {
    flex: 1 1 160px;
    display: flex;
    margin: 0;
}

.contract-leader-actions .contract-end-form .btn {
    width: 100%;
}

.contract-end-form {
    display: inline-flex;
    margin: 0;
}

.contract-edit-modal {
    max-width: 520px !important;
    width: 92% !important;
    padding: 1.5rem !important;
}

.contract-edit-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--accent-blue);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contract-edit-subtitle {
    color: var(--text-secondary);
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
}

.contract-edit-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: -0.25rem 0 0.85rem;
    line-height: 1.5;
}

.contract-edit-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.contract-edit-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-weight: 700;
}

#contractEditModal {
    z-index: 1200;
}

/* === Nyilvános ügyfélchat (index.php) === */
.support-chat-fab {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.support-chat-fab:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

.support-chat-fab.is-open {
    transform: scale(0.92);
    opacity: 0.9;
}

.support-chat-fab-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

.support-chat-panel {
    position: fixed;
    left: 1.25rem;
    bottom: 5.25rem;
    width: min(400px, calc(100vw - 2rem));
    max-height: min(580px, calc(100vh - 7rem));
    z-index: 9991;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.94);
    transform-origin: left bottom;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.3s ease;
}

.support-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.support-chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    flex-shrink: 0;
}

.support-chat-head-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.support-chat-head-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.support-chat-head-title {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
}

.support-chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.1rem;
}

.support-chat-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.support-chat-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.support-chat-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.support-chat-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.support-chat-view.is-active {
    display: flex;
    animation: supportViewIn 0.28s ease;
}

@keyframes supportViewIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.support-chat-intro {
    padding: 1rem 1rem 0.25rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.support-start-form,
.support-rating-form {
    padding: 0.65rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-input {
    border-radius: 10px !important;
    border-color: #e2e8f0 !important;
    background: #fff !important;
    font-size: 0.9rem !important;
}

.support-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.support-submit-btn,
.support-send-btn {
    border-radius: 10px !important;
}

.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 280px;
    max-height: 360px;
    scroll-behavior: smooth;
}

.support-msg {
    display: flex;
    gap: 0.55rem;
    align-items: flex-end;
}

.support-msg-staff {
    flex-direction: row-reverse;
}

.support-msg-staff .support-msg-body {
    align-items: flex-end;
}

.support-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.support-msg-body {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}

.support-msg-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
    padding: 0 0.25rem;
}

.support-msg-meta strong {
    color: #334155;
}

.support-msg-rank {
    color: #dc2626;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.support-msg-text {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px 14px 14px 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.support-msg-staff .support-msg-text {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    border-radius: 14px 14px 4px 14px;
}

.support-msg-system {
    text-align: center;
    font-size: 0.76rem;
    color: #64748b;
    padding: 0.4rem 0.65rem;
    background: #e2e8f0;
    border-radius: 999px;
    align-self: center;
    max-width: 92%;
}

.support-input-area {
    border-top: 1px solid #e2e8f0;
    padding: 0.7rem;
    background: #fff;
    flex-shrink: 0;
}

.support-send-form {
    display: flex;
    gap: 0.45rem;
    align-items: flex-end;
}

.support-send-form textarea {
    flex: 1;
    resize: none;
}

.support-send-btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-rating-wrap {
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.support-rating-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.support-rating-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
}

.support-rating-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.support-rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.25rem 0 0.75rem;
}

.support-star {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 0.15rem;
}

.support-star.active,
.support-star:hover {
    color: #f59e0b;
    transform: scale(1.12);
}

.support-rating-form {
    width: 100%;
    text-align: left;
}

.support-thanks {
    text-align: center;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.support-thanks-logo {
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    margin-bottom: 0.35rem;
}

.support-thanks p {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0;
}

.support-thanks small {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.page-index .support-chat-stage .form-label {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Dashboard ügyfélchat */
.support-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1rem;
    align-items: stretch;
    min-height: 520px;
}

.support-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.support-queue-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.support-queue-tab {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.support-queue-tab.is-active {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.support-queue-panel {
    display: none;
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.support-queue-panel.is-visible {
    display: block;
}

.support-staff-chat {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.support-staff-chat.is-open {
    display: flex;
}

.support-staff-empty.is-hidden {
    display: none;
}

#support-staff-close-btn,
#support-staff-input-area {
    display: none;
}

.support-history-search-wrap {
    margin-bottom: 0.65rem;
}

.support-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.support-history-item {
    text-align: left;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    width: 100%;
}

.support-history-item.is-selected {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.support-history-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.support-history-rating {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.support-history-meta {
    color: var(--text-secondary);
}

.support-staff-chat-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.support-dashboard-chat {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.support-dashboard-queue h3 {
    font-size: 0.95rem;
    margin: 0 0 0.65rem;
}

.support-queue-list,
.support-active-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.support-queue-item {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.support-queue-preview {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.35rem 0 0;
}

.support-queue-empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.support-active-item {
    text-align: left;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
}

.support-active-item.is-selected {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.support-staff-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
}

.support-staff-empty i {
    font-size: 2.5rem;
    opacity: 0.45;
    margin-bottom: 0.75rem;
}

.support-staff-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.support-staff-chat .chat-messages-list {
    min-height: 320px;
    max-height: 480px;
    flex: 1;
}

/* Járműállomány szűrés + piros futófény */
.fleet-section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--text-primary);
}

.fleet-section-heading span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fleet-section-heading i {
    color: var(--accent-blue);
}

.fleet-heading-bar {
    position: relative;
    display: block;
    height: 3px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    overflow: hidden;
}

.fleet-heading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ef4444, #fecaca, #ef4444, transparent);
    animation: fleetLightRun 2.2s linear infinite;
}

@keyframes fleetLightRun {
    0% { left: -45%; }
    100% { left: 100%; }
}

.fleet-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.fleet-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    flex: 1;
}

.fleet-filter-field span,
.fleet-filter-check span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.fleet-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
    cursor: pointer;
    user-select: none;
}

.fleet-filter-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-blue);
    align-self: center;
}

.fleet-table-wrap {
    max-height: 480px;
    overflow: auto;
}

.fleet-table-wrap thead {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.fleet-row--mine {
    background: rgba(239, 68, 68, 0.06);
    font-weight: 600;
}

.fleet-row--mine td:first-child {
    box-shadow: inset 3px 0 0 var(--accent-red);
}

.fleet-id-cell {
    color: var(--accent-red);
    font-weight: 700;
}

@media (max-width: 900px) {
    .support-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .support-chat-fab-label {
        display: none;
    }

    .support-chat-panel {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        bottom: 4.75rem;
    }
}

/* Szolgálat (duty) */
.duty-toggle-card {
    display: block;
    margin: 0.85rem 0.75rem 1rem;
    cursor: pointer;
}

.duty-toggle-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.duty-toggle-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sidebar-text);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.duty-toggle-inner i {
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

.duty-toggle-card:hover .duty-toggle-inner {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

.duty-toggle-card input:checked + .duty-toggle-inner {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    color: #dcfce7;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.duty-toggle-card input:checked + .duty-toggle-inner i {
    color: #4ade80;
    animation: dutyIconPulse 1.6s ease-in-out infinite;
}

.duty-feed-banner {
    position: fixed;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 10050;
    max-width: min(92vw, 520px);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.duty-feed-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

