:root {

    --tarkov-gold: #d4af37;
    --desert-sand: #8b7355;
    --tactical-black: #1a1a1a;
    --deep-shadow: #0d0d0d;
    --charcoal: #2a2a2a;
    --gunmetal: #3e3e3e;
    --steel-gray: #666666;
    --ash-gray: #999999;
    --blood-red: #8b0000;
    --night-vision: #2e5b3f;

    --primary-bg: var(--deep-shadow);
    --secondary-bg: var(--tactical-black);
    --card-bg: linear-gradient(180deg, var(--charcoal) 0%, #151515 100%);
    --accent-green: var(--night-vision);
    --accent-orange: var(--tarkov-gold);
    --accent-yellow: var(--tarkov-gold);
    --text-primary: #e8e6e0;
    --text-secondary: var(--ash-gray);
    --text-muted: #6b6b5a;
    --border-color: var(--gunmetal);
    --shadow-color: rgba(0, 0, 0, 0.6);

    --success-color: var(--night-vision);
    --warning-color: #8b6914;
    --danger-color: var(--blood-red);
    --neutral-color: #4a4a3a;

    --tactical-primary: #2d3829;
    --tactical-secondary: #3d4a35;
    --tactical-accent: #5a6b4a;
    --tactical-highlight: #6b7c5a;

    --font-primary: 'Bender', 'Oswald', 'Segoe UI', 'Roboto', Arial, sans-serif;
    --font-secondary: 'Bender', 'Oswald', 'Segoe UI', 'Roboto', Arial, sans-serif;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    --border-radius: 0;
    --border-width: 1px;

    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-color: 300deg 3% 2%;
    --shadow-elevation-low:
            0px 0.1px 0.1px hsl(var(--shadow-color) / 1),
            0px 0.1px 0.1px -2.5px hsl(var(--shadow-color) / 0.69),
            0px 0.4px 0.3px -5px hsl(var(--shadow-color) / 0.35);
    --shadow-elevation-medium:
            0px 0.1px 0.1px hsl(var(--shadow-color) / 0.88),
            0px 0.1px 0.1px -1.2px hsl(var(--shadow-color) / 0.7),
            0px 0.4px 0.3px -2.5px hsl(var(--shadow-color) / 0.52),
            0px 1px 0.8px -3.7px hsl(var(--shadow-color) / 0.35),
            0px 2.2px 1.7px -5px hsl(var(--shadow-color) / 0.17);
    --shadow-elevation-high:
            0px 0.1px 0.1px hsl(var(--shadow-color) / 0.81),
            0px 0.1px 0.1px -0.6px hsl(var(--shadow-color) / 0.73),
            0px 0.2px 0.2px -1.1px hsl(var(--shadow-color) / 0.65),
            0px 0.6px 0.5px -1.7px hsl(var(--shadow-color) / 0.57),
            0px 1.2px 0.9px -2.2px hsl(var(--shadow-color) / 0.49),
            0px 2.3px 1.7px -2.8px hsl(var(--shadow-color) / 0.41),
            0px 4px 3px -3.3px hsl(var(--shadow-color) / 0.33),
            0.1px 6.2px 4.7px -3.9px hsl(var(--shadow-color) / 0.24),
            0.1px 9.2px 6.9px -4.4px hsl(var(--shadow-color) / 0.16),
            0.1px 13.1px 9.8px -5px hsl(var(--shadow-color) / 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.liter-regular {
    font-family: "Liter", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-sans-condensed-thin {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.ibm-plex-sans-condensed-extralight {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.ibm-plex-sans-condensed-light {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.ibm-plex-sans-condensed-regular {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-sans-condensed-medium {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.ibm-plex-sans-condensed-semibold {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.ibm-plex-sans-condensed-bold {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.ibm-plex-sans-condensed-thin-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.ibm-plex-sans-condensed-extralight-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.ibm-plex-sans-condensed-light-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.ibm-plex-sans-condensed-regular-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.ibm-plex-sans-condensed-medium-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.ibm-plex-sans-condensed-semibold-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.ibm-plex-sans-condensed-bold-italic {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: "Liter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f0f0f;
    font-weight: 300;
    color: var(--text-primary);
    min-height: 100vh;
}
body.theme--tarkov {
    background-color: var(--tactical-black);
    color: var(--ash-gray);
    background-image:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(circle at bottom, rgba(46, 91, 63, 0.1), transparent 55%);
    background-attachment: fixed;
}
body.theme--tarkov.error-page-body {
    background-image:
        radial-gradient(circle at top, rgba(139, 0, 0, 0.22), transparent 55%),
        radial-gradient(circle at 70% bottom, rgba(212, 175, 55, 0.16), transparent 50%),
        radial-gradient(circle at bottom left, rgba(46, 91, 63, 0.12), transparent 60%),
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(circle at bottom, rgba(46, 91, 63, 0.1), transparent 55%);
    background-color: var(--tactical-black);
}
body.theme--tarkov.status-page-body {
    background-image:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(46, 91, 63, 0.16), transparent 55%),
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(circle at bottom, rgba(46, 91, 63, 0.1), transparent 55%);
    background-color: var(--tactical-black);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" /></svg>');
    opacity: 0.01;
    pointer-events: none;
}

.container {
    position: relative;
    /*display: grid;*/
    gap: 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}
.card-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.main-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Subtle gradient overlay */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,140,0,0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Animated elliptical gradient on bottom border */
.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    right: -100%;
    height: 1px;
    background: radial-gradient(
            ellipse at center,
            rgba(255, 140, 0, 0.7) 0%,   /* Opaque center */
            rgba(255, 140, 0, 0.3) 15%,  /* Mid-glow */
            transparent 50%              /* Softer fade-out */
    );
    animation: borderGlow 8s linear infinite;
    opacity: 65%;
}

.filter-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Subtle gradient overlay */
.filter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,140,0,0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Animated elliptical gradient on bottom border */
.filter-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    right: -100%;
    height: 1px;
    background: radial-gradient(
            ellipse at center,
            rgba(255, 140, 0, 0.7) 0%,   /* Opaque center */
            rgba(255, 140, 0, 0.3) 15%,  /* Mid-glow */
            transparent 50%              /* Softer fade-out */
    );
    animation: borderGlow 8s linear infinite;
    opacity: 65%;
}

.listings-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    position: relative;
    overflow: hidden;
}
/* Subtle gradient overlay */
.listings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,140,0,0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Animated elliptical gradient on bottom border */
.listings-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    right: -100%;
    height: 1px;
    background: radial-gradient(
            ellipse at center,
            rgba(255, 140, 0, 0.7) 0%,   /* Opaque center */
            rgba(255, 140, 0, 0.3) 15%,  /* Mid-glow */
            transparent 50%              /* Softer fade-out */
    );
    animation: borderGlow 8s linear infinite;
    opacity: 65%;
}

@keyframes borderGlow {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* Clean square logo */
.logo-container {
    width: 42px;
    height: 42px;
    background: rgba(255,140,0,0.08);
    border: 1px solid rgba(255,140,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-container svg {
    width: 22px;
    height: 22px;
    fill: rgba(255,140,0,0.7);
}

.title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-block h1 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e8e6e3;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.title-block .subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-link {
    color: inherit;         /* Use same color as surrounding text */
    text-decoration: none;  /* Remove underline */
}

.header-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-title h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-title .subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-orange);
    margin-top: var(--spacing-xs);
}

.header-title a {
    color: inherit;
    text-decoration: none;
    font: inherit;
}

.tactical-icon {
    color: var(--accent-orange);
    font-size: 1.8rem;
}

.status-indicator {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 92, 42, 0.6);
    animation: pulse 2s infinite;
}

.classification-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    transform: rotate(3deg);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Table styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table thead {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.user-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    position: relative;
}

.user-table th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

.user-table th.sortable:hover {
    color: rgba(255,140,0,0.7);
}

.user-table th.sortable::after {
    content: '⇅';
    margin-left: 8px;
    opacity: 0.3;
    font-size: 8px;
}

.user-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.user-table tbody tr:hover {
    background: rgba(255,140,0,0.03);
}

.user-table tbody tr:hover td {
    color: #e8e6e3;
}

/* 1. Make the first cell in each row a positioning container */
.user-table tbody td:first-child {
    position: relative;
}

/* 2. Create the hidden accent line on the first cell */
.user-table tbody td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 140, 0, 0.6);
    transform: scaleY(0); /* Start scaled down (hidden) */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Scale the line into view when the ROW is hovered */
.user-table tbody tr:hover td:first-child::before {
    transform: scaleY(1); /* Scale up to full height on hover */
}

.user-table tbody tr:hover::before {
    transform: scaleY(1);
}

.user-table td {
    padding: 18px 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    position: relative;
}

/* User cell with avatar */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
    fill: rgba(255,255,255,0.3);
}

.user-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.user-avatar svg {
    width: 18px;
    height: 18px;
    fill: rgba(255,255,255,0.4);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: rgba(255,140,0,0.8);
    border: 2px solid #151515;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.user-status {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-weight: 400;
}
/* Clean separator */
.separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.08);
}

.action-buttons {
    display: flex;
    gap: 12px;
}
/* Minimal square buttons */
.header-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

/* Scratched metal texture effect using gradients */
.header-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
            linear-gradient(45deg, transparent 30%, rgba(255,140,0,0.02) 50%, transparent 70%),
            linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.01) 50%, transparent 60%),
            linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 100%),
            radial-gradient(circle at 30% 40%, rgba(255,140,0,0.03) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255,255,255,0.02) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.header-btn:hover::before {
    opacity: 1;
    transform: rotate(90deg);
}

/* Additional texture layer */
.header-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background:
            repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 2px,
                    rgba(255,140,0,0.03) 2px,
                    rgba(255,140,0,0.03) 4px
            ),
            linear-gradient(
                    90deg,
                    transparent 0%,
                    rgba(255,255,255,0.02) 50%,
                    transparent 100%
            );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: overlay;
}

.header-btn:hover::after {
    left: 100%;
}

.header-btn:hover {
    border-color: rgba(255,140,0,0.3);
    background: rgba(255,140,0,0.05);
    color: rgba(255,140,0,0.8);
}

.header-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Orange accent line - now static as the animation is on the header */
.accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.05);
    opacity: 0.6;
}


.username {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #e8e6e3;
    text-transform: uppercase;
}

.logout-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.logout-link:hover {
    color: var(--accent-orange);
}

.main-content {
    position: relative;
    z-index: 2;
}
.form-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow:
            0 0 0 1px rgba(74, 92, 42, 0.2),
            0 8px 32px var(--shadow-color),
            inset 0 1px 0 rgba(232, 230, 224, 0.05);
    padding: var(--spacing-xl);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.form-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.form-header h2 i {
    color: var(--accent-orange);
}

.form-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.required-indicator {
    color: var(--danger-color);
    font-weight: 700;
}

.form-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

}

.section-header h2, .section-header h3 {
    display: flex;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e8e6e3;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.section-header h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.section-header h2 i, .section-header h3 i {
    color: var(--accent-orange);
}

.results-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.results-counter .count {
    color: rgba(255,140,0,0.7);
    font-weight: 600;
}

.filters-section {
    padding: var(--spacing-xl);
}

.filters-section.collapsed .filters-grid,
.filters-section.collapsed .filter-actions {
    display: none;
}

.toggle-filters {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--accent-orange);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle-filters:focus {
    outline: 2px dashed var(--accent-orange);
    outline-offset: 2px;
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    margin-bottom: var(--spacing-xl);
}
.filters-grid > .filter-group {
    min-width: 220px;
    flex: 1 1 220px;
}
.filters-grid > .filter-group:first-child {
    min-width: 0;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filters-grid > .filter-group:not(:first-child) {
    min-width: 220px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}



.filter-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-label i {
    color: var(--accent-orange);
    width: 16px;
    text-align: center;
}

.filter-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.tactical-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--tactical-primary), var(--tactical-secondary));
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
            0 2px 4px var(--shadow-color),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tactical-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-medium);
}

.tactical-btn:hover::before {
    left: 100%;
}

.tactical-btn:hover {
    background: linear-gradient(135deg, var(--tactical-secondary), var(--tactical-highlight));
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 10px rgba(74, 92, 42, 0.3);
}

.tactical-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.tactical-btn.primary {
    background: linear-gradient(135deg, var(--success-color), #5a7751);
    border-color: var(--accent-green);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.tactical-btn.primary:hover {
    background: linear-gradient(135deg, #5a7751, #6a8761);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(74, 92, 42, 0.5);
}

.tactical-btn.secondary {
    background: linear-gradient(135deg, var(--neutral-color), #5a5a4a);
    border-color: var(--text-muted);
}

.tactical-btn.add-listing {
    background: linear-gradient(135deg, var(--warning-color), #9b7914);
    border-color: var(--accent-orange);
    color: var(--accent-yellow);
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-xl);
}

.tactical-btn.add-listing:hover {
    background: linear-gradient(135deg, #9b7914, #ab8914);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(212, 133, 61, 0.5);
}

.actions-section {
    justify-content: center;
}

.listings-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.15);
    box-shadow:
            0 0 0 1px rgba(74, 92, 42, 0.2),
            0 4px 16px var(--shadow-color),
            inset 0 1px 0 rgba(232, 230, 224, 0.05);
}



/* Subtle gradient overlay copied from .main-header */
.listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,140,0,0.02) 50%, transparent 100%);
    pointer-events: none;
}



.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.tactical-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-bg);
    font-family: var(--font-primary);
}

.tactical-table thead tr {
    background: linear-gradient(135deg, var(--tactical-primary), var(--tactical-secondary));
    border-bottom: 2px solid var(--accent-green);
}

.tactical-table th {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tactical-table th:last-child {
    border-right: none;
}

.tactical-table th i {
    color: var(--accent-orange);
    margin-right: var(--spacing-xs);
}

.tactical-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tactical-table tbody tr:hover {
    background: var(--tactical-primary);
}

.tactical-table td {
    padding: var(--spacing-md);
    vertical-align: middle;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.tactical-table td:last-child {
    border-right: none;
}

.operator-name {
    min-width: 150px;
}

.operator-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.operator-link:hover {
    color: var(--text-primary);
}

.operator-avatar {
    width: 32px;
    height: 32px;
    background: var(--tactical-primary);
    border: 1px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.9rem;
}

.tactical-badge {
    display: inline-flex;
    align-items: center;
    background: var(--tactical-primary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tactical-badge:hover {
    background: var(--tactical-secondary);
    transform: translateY(-1px);
}

.tactical-badge.aggressive {
    background: linear-gradient(135deg, var(--danger-color), #8b3a3a);
    border-color: #a04444;
}

.tactical-badge.loot {
    background: linear-gradient(135deg, var(--warning-color), #9b7914);
    border-color: var(--accent-orange);
    color: var(--accent-yellow);
}

.tactical-badge.casual {
    background: linear-gradient(135deg, var(--neutral-color), #5a5a4a);
    border-color: #6a6a5a;
}

.rank-badge {
    background: linear-gradient(135deg, var(--warning-color), #9b7914);
    color: var(--accent-yellow);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--accent-yellow);
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.rank-badge.beginner {
    background: linear-gradient(135deg, var(--neutral-color), #4a4a3a);
    color: var(--text-secondary);
    border-color: var(--text-muted);
    box-shadow: none;
}

.status-badge {
    background: var(--neutral-color);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.neutral {
    background: var(--tactical-primary);
    border: 1px solid var(--border-color);
}

.region-tag, .timezone, .timestamp  {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
}

.expiry-warning {
    color: var(--warning-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.reputation-cell, .expiry-cell {
    text-align: center;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--tactical-primary);
    color: var(--accent-green);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--accent-green);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.view-btn:hover {
    background: var(--accent-green);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.tactical-btn:focus,
.tactical-select:focus,
.operator-link:focus,
.view-btn:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

.tactical-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tactical-btn.loading i {
    animation: spin 1s linear infinite;
}

.view-page {
    background: #181A1B;
    color: #E1E3E6;
    font-family: 'Oswald', 'Bender', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header-view {
    background: #191B1E;
    padding: 2em 0 1em 0;
    text-align: center;
    border-bottom: 1px solid #262728;
}

.header-view h1 {
    color: #D1B97F;
    font-size: 2.1rem;
    margin: 0 0 0.1em 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px #000A;
}

.header-view .user-info {
    margin-top: 8px;
    color: #aaa;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.header-view .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 7px;
    border: 1.5px solid #8A6F52;
    box-shadow: none;
}

.header-view .user-details {
    flex-direction: row;
    gap: 6px;
}

.header-view .user-status {
    display: none;
}

.header-view .logout-link {
    color: #d1b97f;
}

.header-view .logout-link:hover {
    color: #f2e2ba;
}

.container.small, .card-container.small {
    max-width: 540px;
    margin: 42px auto 0 auto;
    background: #212325;
    border-radius: 14px;
    box-shadow: 0 6px 30px #0007;
    padding: 36px 34px 28px 34px;
}

.listing-card {
    background: #232426;
    border-radius: 10px;
    box-shadow: 0 2px 14px #0005;
    padding: 24px 24px 10px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 7px 0;
}

.details-label {
    color: #a79868;
    font-weight: bold;
    padding-right: 12px;
    text-align: right;
}

.details-value {
    color: #e1e3e6;
    padding-left: 16px;
    font-weight: 400;
}

.badge {
    background: #1B1C1E;
    border: 1px solid #9b8c68;
    color: #d1b97f;
    font-size: 0.97em;
    font-family: inherit;
    padding: 2px 10px;
    margin: 0 4px 2px 0;
    border-radius: 5px;
    vertical-align: middle;
    display: inline-block;
}

.feedback-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0 0 0;
}

.feedback-bar .badge {
    margin-left: 5px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
}

.contact-details {
    font-weight: 600;
    font-size: 1.09em;
    color: #eccb94;
}

#copyBtn {
    margin-left: 0;
    padding: 3px 11px;
    border-radius: 6px;
    background: #222;
    color: #d1b97f;
    border: 1.2px solid #8A6F52;
    cursor: pointer;
    font-size: 1em;
    position: relative;
}

#copyBtn:hover {
    background: #35302a;
    color: #f1e7d0;
}

#copyTooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    background: #191817;
    color: #d1b97f;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 0.95em;
    white-space: nowrap;
    box-shadow: 0 3px 10px #0008;
    z-index: 200;
}

.vote-section {
    margin: 24px 0 10px 0;
    padding: 19px 22px 17px 22px;
    border-radius: 9px;
    background: #242627;
    box-shadow: 0 2px 12px #0003;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-section label {
    font-weight: 500;
    margin-bottom: 3px;
    color: #a79868;
}

.vote-section input[type="text"] {
    font-size: 1em;
    background: #252729;
    color: #f0dfbc;
    border-radius: 4px;
    border: 1px solid #444;
    margin-left: 6px;
    margin-bottom: 4px;
    padding: 3px 7px;
}

.vote-section button {
    background: linear-gradient(90deg,#d1b97f 0%,#a88c47 100%);
    color: #191817;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    padding: 7px 16px;
    margin-right: 7px;
    box-shadow: 0 2px 8px #0003;
    cursor: pointer;
    transition: background 0.14s;
}

.vote-section button:hover {
    background: linear-gradient(90deg,#e2c889 0%,#b89d5c 100%);
}

.action-links {
    margin-top: 18px;
    text-align: center;
    font-size: 1em;
}

.action-links a {
    color: #d1b97f;
    margin: 0 7px;
    text-decoration: none;
}

.action-links a:hover {
    text-decoration: underline;
    color: #f2e2ba;
}

.main-card {
    position: relative;
    display: table;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow:
            0 0 0 1px rgba(74, 92, 42, 0.3),
            0 8px 32px var(--shadow-color),
            inset 0 1px 0 rgba(232, 230, 224, 0.1);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    animation: cardAppear 0.8s ease-out;
}

.card-header {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.card-header-modal {
    position: relative;
    border-bottom: 2px solid var(--border-color);
    color: darkorange;
    text-align: left;
    padding: 5px 5px 2px 1px;
}

.card-title {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.operator-info {
    margin-bottom: var(--spacing-xl);
}

.info-grid {
    display: grid;
    gap: var(--spacing-md);
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(90deg, var(--tactical-primary) 0%, transparent 100%);
    border-left: 3px solid var(--accent-green);
    border-radius: var(--border-radius);
    transition: var(--transition-medium);
}

.info-row:hover {
    background: linear-gradient(90deg, var(--tactical-secondary) 0%, transparent 100%);
    transform: translateX(3px);
}

.info-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.info-label i {
    color: var(--accent-orange);
    width: 16px;
    text-align: center;
}

.info-value {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.highlight {
    color: var(--accent-yellow);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.rep-counter {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-info {
    font-family: var(--font-secondary);
    color: var(--accent-yellow);
    font-weight: 700;
    background: var(--tactical-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.tactical-btn.upvote {
    background: linear-gradient(135deg, var(--success-color), #5a7751);
    border-color: var(--accent-green);
}

.tactical-btn.upvote:hover {
    background: linear-gradient(135deg, #5a7751, #6a8761);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(74, 92, 42, 0.5);
}

.tactical-btn.downvote {
    background: linear-gradient(135deg, var(--danger-color), #8b3a3a);
    border-color: #a04444;
}

.tactical-btn.downvote:hover {
    background: linear-gradient(135deg, #8b3a3a, #9b4a4a);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(122, 46, 46, 0.5);
}

.tactical-btn.submit-report {
    background: linear-gradient(135deg, var(--danger-color), #8b3a3a);
    border-color: #a04444;
}

.tactical-btn.submit-report:hover {
    background: linear-gradient(135deg, #8b3a3a, #9b4a4a);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(122, 46, 46, 0.5);
}

.copy-tooltip {
    display: none;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tactical-primary);
    color: var(--accent-green);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--accent-green);
    box-shadow: 0 4px 8px var(--shadow-color);
    z-index: 100;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-green);
}

.action-section {
    margin-bottom: var(--spacing-xl);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vote-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.vote-feedback {
    display: none;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.vote-feedback.is-visible {
    display: block;
}

.vote-feedback.is-info {
    color: var(--accent-yellow);
}

.vote-feedback.is-success {
    color: var(--accent-green);
}

.vote-feedback.is-error {
    color: var(--danger-color);
}

.downvote-section {
    display: none;
    background: var(--tactical-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}


/* --- Form Structure & Layout --- */
.tactical-form .form-content {
    padding: 30px;
}
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}
.form-label .required {
    color: var(--accent-orange);
}
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- General Inputs & Selects --- */
.tactical-input,
.tactical-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8e6e3;
    padding: 12px 15px;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
.tactical-input:focus,
.tactical-select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
}
.tactical-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' 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 15px center;
    background-size: 16px;
}

/* --- Custom Checkboxes --- */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.tactical-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.tactical-checkbox input[type="checkbox"] {
    display: none; /* Hide original checkbox */
}
.tactical-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}
.tactical-checkbox:hover .checkmark {
    border-color: var(--accent-orange);
}
.tactical-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}
.tactical-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.tactical-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}
.tactical-checkbox .checkbox-label {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Button Color Overrides --- */
.tactical-btn.primary {
    background: linear-gradient(135deg, var(--accent-orange), #b85b00);
    border-color: rgba(255, 107, 0, 0.8);
    color: #fff;
}
.tactical-btn.primary:hover {
    background: linear-gradient(135deg, #ff7a1a, #d16800);
    box-shadow: 0 4px 8px var(--shadow-color), 0 0 15px rgba(255, 107, 0, 0.5);
}
.tactical-btn.cancel {
    background: linear-gradient(135deg, #333, #222);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}
.tactical-btn.cancel:hover {
    background: linear-gradient(135deg, #444, #333);
    border-color: rgba(255, 255, 255, 0.5);
}

.navigation-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--tactical-primary);
    transform: translateY(-1px);
}

.nav-link.report:hover {
    color: var(--accent-orange);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

.site-footer {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: normal;
    margin-top: var(--spacing-xs);
    text-align: center;
}

.site-footer a {
    color: inherit;
    font-size: inherit;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
    margin-left: var(--spacing-xs);
}

.tactical-btn.cancel {
    background: linear-gradient(135deg, var(--danger-color), #8b3a3a);
    border-color: #a04444;
}

.tactical-btn.cancel:hover {
    background: linear-gradient(135deg, #8b3a3a, #9b4a4a);
    box-shadow:
            0 4px 8px var(--shadow-color),
            0 0 15px rgba(122, 46, 46, 0.5);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.tactical-input.error,
.tactical-select.error {
    border-color: var(--danger-color);
    box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 10px rgba(122, 46, 46, 0.3);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.success-message {
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* --- Success & Error Messages --- */
.successmsg, .errormsg {
    padding: 15px 20px;
    margin-bottom: 24px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}
.successmsg {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    color: #ff9d57;
}
.errormsg {
    background: rgba(217, 48, 37, 0.1);
    border-color: rgba(217, 48, 37, 0.3);
    color: #ff8e86;
}
.errormsg ul {
    margin: 0;
    padding-left: 20px;
}

.character-counter {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: var(--spacing-xs);
    font-family: var(--font-primary);
}

.tactical-input:focus,
.tactical-select:focus,
.tactical-checkbox:focus-within,
.tactical-btn:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-yellow);
    color: var(--primary-bg);
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Discord login button */
.discord-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #343970;
    border: none;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.discord-login-btn:hover {
    background: #343970;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:active {
    transform: translateY(0);
}

/* Discord icon */
.discord-login-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Shimmer effect on Discord button */
.discord-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%
    );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-login-btn:hover::before {
    left: 100%;
}

/* Guest status text */
.guest-status {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-right: 10px;
}

/* --- Container and Button --- */
.filter-button {
    /* Shape & Box Model */
    width: 100%;
    padding: 12px 15px;
    border-radius: 0; /* Squared borders */
    border: 1px solid rgba(255, 193, 7, 0.4); /* Subtle amber border */

    /* Color & Background */
    background-color: #2c2c2e; /* Dark charcoal surface */
    color: #e0e0e0; /* Off-white text for readability */

    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* Behavior */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, border-color 0.2s;

    border: 1px solid rgba(150, 150, 150, 0.15);
    background: linear-gradient(135deg, #1a1a1a, #222);
    box-shadow:  0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    outline: none;
    color: #929292;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    
}

.filter-button:hover,
.filter-button:focus {
    border-color: #ffc107; /* Bright amber border on hover/focus */
    background-color: #3a3a3c;
    outline: none; /* Removes default browser focus ring */
}

.filter-button .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}


/* --- The Dropdown Menu --- */
.filter-dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 100; /* Ensure it's on top of other content */

    /* Shape & Box Model */
    border-radius: 0;
    border: 1px solid #ffc107;
    margin-top: -1px; /* Overlaps button border for a seamless look */
    max-height: 280px;
    overflow-y: auto;

    /* Color & Background */
    background-color: #2c2c2e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); /* Deeper shadow */
}

/* Show the dropdown when the .show class is added by JS */
.filter-dropdown-content.show {
    display: block;
}
.filter-dropdown-content.show + .filter-button .fa-chevron-down {
    transform: rotate(180deg);
}


/* --- Dropdown Options --- */
.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-item label {
    display: flex;
    align-items: center; /* This is the fix */
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    color: #e0e0e0;
}
.option-item label .custom-checkbox {
    /* Existing styles here */
    width: 18px; /* Fixed width */
    height: 18px; /* Fixed height */
    flex-shrink: 0; /* Prevents it from getting squished horizontally */
    margin-right: 12px; /* Adds space between checkbox and text */
}

.option-item:hover label, .option-item label:hover {
    background-color: #ffc107; /* Highlight with accent color */
    color: #1a1a1a; /* Invert text color for high contrast */
}

/* --- "Deselect All" Action --- */
.dropdown-actions {
    border-top: 1px solid rgba(255, 193, 7, 0.4);
    background-color: #1a1a1a;
    padding: 10px 15px;
}

.dropdown-actions .deselect-all {
    display: block;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #ffc107;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    transition: background-color 0.15s;
}

.dropdown-actions .deselect-all:hover {
    background-color: #ffc107;
    color: #1a1a1a;
    text-decoration: underline;
}

/* --- Custom Scrollbar for Dark Theme --- */
.filter-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
    background-color: #ffc107;
    border: 2px solid #1a1a1a;
}

.filter-dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #ffd54f; /* Brighter on hover */
}

.option-label-text {
    margin-left: 10px;
}

/* --- Custom Checkbox Styling --- */
.option-item input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #aaa;
    border-radius: 3px;
    display: flex;           /* <-- ADD THIS */
    align-items: center;     /* <-- ADD THIS (for vertical centering) */
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
    padding-bottom: 1%;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.option-item input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #2196F3;
    border-color: #2196F3;
}

.option-item input[type="checkbox"]:checked + .custom-checkbox::after {
    display: block;
}

/*==================================
    CUSTOM RADIO BUTTONS
====================================*/
/* This ensures custom radios look the same as your custom checkboxes */
.option-item input[type="radio"] {
    display: none;
}

.option-item input[type="radio"] + .custom-checkbox {
    border-radius: 50%; /* Make it a circle */
}

.option-item input[type="radio"]:checked + .custom-checkbox {
    background-color: #ffc107;
    border-color: #ffc107;
}

.option-item input[type="radio"]:checked + .custom-checkbox::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/*==================================
    ACTIVE FILTER PILLS & RESET
====================================*/

/* --- Container for pills and reset button --- */
#active-filters-container {
    display: flex; /* Overridden in JS, but good default */
    flex-wrap: wrap;
    align-items: center; /* Vertically align pills and reset button */
    gap: 10px;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Custom filter tag styling --- */
.custom-filter-tag {
    --tag-color-rgb: 255, 107, 0;
    position: relative;
    display: inline-flex;
    align-items: stretch;
    padding: 0;
    min-height: 36px;
    background: linear-gradient(135deg, #1a1a1a, #222);
    border: 1px solid rgba(150, 150, 150, 0.15);
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.custom-filter-tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.custom-filter-tag::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--tag-color-rgb), 0.8), transparent);
    box-shadow: 0 0 10px rgba(var(--tag-color-rgb), 0.5);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.custom-filter-tag-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(var(--tag-color-rgb), 0.08) 45%, rgba(var(--tag-color-rgb), 0.16) 50%, rgba(var(--tag-color-rgb), 0.08) 55%, transparent 100%);
    transform: skewX(-20deg);
    transition: transform 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

.custom-filter-tag:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    border-color: rgba(var(--tag-color-rgb), 0.4);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.43);
    color: #ffffff;
}

.custom-filter-tag:hover::before {
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(var(--tag-color-rgb), 0.04) 25%, rgba(var(--tag-color-rgb), 0.04) 26%, transparent 27%, transparent 74%, rgba(var(--tag-color-rgb), 0.04) 75%, rgba(var(--tag-color-rgb), 0.04) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(var(--tag-color-rgb), 0.04) 25%, rgba(var(--tag-color-rgb), 0.04) 26%, transparent 27%, transparent 74%, rgba(var(--tag-color-rgb), 0.04) 75%, rgba(var(--tag-color-rgb), 0.04) 76%, transparent 77%, transparent);
}

.custom-filter-tag:hover::after {
    left: 100%;
}

/*.custom-filter-tag:hover .custom-filter-tag-shine {
    transform: translateX(120%) skewX(-20deg);
}*/

.custom-filter-tag:hover .custom-filter-tag-icon {
    color: rgb(var(--tag-color-rgb));
    background: rgba(var(--tag-color-rgb), 0.12);
    border-color: rgba(var(--tag-color-rgb), 0.4);
}

.custom-filter-tag:hover .custom-filter-tag-remove:not(:hover) {
    color: #ffffff;
}

.custom-filter-tag:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--tag-color-rgb), 0.35), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.custom-filter-tag-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    padding: 0 10px;
    color: inherit;
    white-space: nowrap;
}

.custom-filter-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(var(--tag-color-rgb), 0.25);
    background: rgba(var(--tag-color-rgb), 0.1);
    color: rgba(var(--tag-color-rgb), 0.85);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.custom-filter-tag-icon i {
    font-size: 0.85rem;
    line-height: 1;
}

.custom-filter-tag-label {
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-filter-tag-remove {
    position: relative;
    z-index: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: none;
    border-left: 1px solid rgba(150, 150, 150, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    align-self: stretch;
}

.custom-filter-tag-remove:hover {
    color: rgb(var(--tag-color-rgb));
    border-color: rgba(var(--tag-color-rgb), 0.35);
}

.custom-filter-tag-remove:focus-visible {
    color: rgb(var(--tag-color-rgb));
    border-color: rgba(var(--tag-color-rgb), 0.35);
    outline: none;
}

.custom-filter-tag-remove span {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    transform: none;
    pointer-events: none;
}

.custom-filter-tag.is-template {
    display: none !important;
}

/* --- Filter Pill Styling (Adapted from .header-btn) --- */
.filter-pill {
    /* Base style */
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 36px;
    padding: 0 15px;

    /* Color & Theme */
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: #ffc107;

    /* Typography */
    font-size: 0.9em;
    font-weight: 500;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scratched metal texture effect */
.filter-pill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
            linear-gradient(45deg, transparent 30%, rgba(255,140,0,0.02) 50%, transparent 70%),
            linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.01) 50%, transparent 60%),
            linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 100%),
            radial-gradient(circle at 30% 40%, rgba(255,140,0,0.03) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255,255,255,0.02) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.filter-pill:hover::before {
    opacity: 1;
    transform: rotate(90deg);
}

/* --- Remove 'X' button inside the pill --- */
.remove-pill {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1;
    padding: 0 4px;
    color: rgba(255, 193, 7, 0.5);
    transition: color 0.2s;
    z-index: 2; /* Make sure it's clickable above pseudo-elements */
}

.filter-pill:hover .remove-pill {
    color: #ffffff;
}

#active-filters-container .grid-scan-btn--reset {
    flex-shrink: 0;
}

#active-filters-container .grid-scan-btn--reset svg {
    fill: rgba(255, 255, 255, 0.7);
}

/*==================================
    AJAX LOADING SPINNER
====================================*/
.listings-section .loading-spinner {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 193, 7, 0.3); /* Light yellow */
    border-top-color: #ffc107; /* Solid yellow */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* When the section is loading, show the spinner and dim the content */
.listings-section.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

.listings-section.loading .loading-spinner {
    display: block;
}

/* Prevents scrolling on the main page when modal is open */
body.modal-open {
    overflow: hidden;
}

/* The dark background overlay */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.filter-modal-overlay.is-open {
    display: flex; /* Shown with JS */
}

/* The main content box of the modal */
.filter-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #ffc107;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.4);
    flex-shrink: 0;
}

.filter-modal-header h2 {
    margin: 0;
    font-size: 1.2em;
    text-transform: uppercase;
    color: #ffc107;
}

.filter-modal-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.filter-modal-close:hover {
    color: #ffc107;
}

.filter-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Use the same custom scrollbar style as dropdowns */
.filter-modal-body::-webkit-scrollbar {
    width: 8px;
}
.filter-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.filter-modal-body::-webkit-scrollbar-thumb {
    background-color: #ffc107;
    border: 2px solid #1a1a1a;
}

.direct-filter-group {
    margin-bottom: 25px;
}

.direct-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding-bottom: 10px;
}

.direct-filter-header h3 {
    margin: 0;
    font-size: 1em;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.direct-filter-header .deselect-all {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.direct-filter-header .deselect-all:hover {
    color: #ffc107;
}

.direct-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-pill input[type="checkbox"] {
    display: none; /* Hide the actual checkbox */
}

.option-pill label {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 0; /* Square style */
    border: 1px solid rgba(255, 193, 7, 0.4);
    background-color: #2c2c2e;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9em;
}

.option-pill label:hover {
    background-color: #3a3a3c;
    border-color: #ffc107;
}

/* Style for when the pill is selected */
.option-pill input[type="checkbox"]:checked + label {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #1a1a1a;
    font-weight: 600;
}

/*==================================
    ACCORDION & PILL HIGHLIGHT FIX
====================================*/

/* --- Accordion Header Button --- */
.direct-filter-header.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding: 10px 0;
    margin-bottom: 15px;
    cursor: pointer;
    color: #e0e0e0;
}


.direct-filter-header.accordion-trigger h3 {
    margin: 0;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accordion-chevron {
    color: rgba(255, 193, 7, 0.8);
    transition: transform 0.3s ease-in-out;
}

/* This new rule styles the inner wrapper we created */
.accordion-content {
    overflow: hidden;
    padding-top: 5px;
    padding-bottom: 15px;
    padding-left: 5px;
    padding-right: 5px;
    min-height: 0;
}

/* The panel that will hide/show */
.accordion-panel {
    display: grid;
    width: 100%;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

/* The open state */
.direct-filter-group.is-open .accordion-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.direct-filter-group.is-open .accordion-chevron {
    transform: rotate(90deg);
}


/* --- FIX for Highlighting Selected Pills --- */
/* The previous rule was likely not specific enough. This one is. */
.direct-filter-options .option-pill input[type="checkbox"]:checked + label {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #1a1a1a;
    font-weight: 600;
}

/* ==================================
    MEDIA QUERIES
   ================================== */

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .filters-grid {
        justify-content: center;
    }

    .filters-grid > .filter-group {
        flex: 1 1 250px;
    }

    .filter-actions {
        flex-direction: column;
        align-items: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .container, .card-container {
        padding: var(--spacing-md);
    }
    .separator {
        display: none;
    }

    .main-header {
        padding: var(--spacing-lg);
    }

    .header-content {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .header-left, .header-right {
        justify-content: space-between;
    }

    .header-right {
        width: 100%;
    }

    .header-title h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .filters-grid {
        flex-direction: column;
    }

    .filters-grid > .filter-group,
    .filters-grid > .filter-group:first-child {
        flex: 1 1 auto;
    }

    .tactical-table {
        font-size: 0.8rem;
    }

    .tactical-table th,
    .tactical-table td {
        padding: var(--spacing-sm);
    }

    .operator-name {
        min-width: 120px;
    }

    .tactical-badge,
    .rank-badge,
    .status-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    .form-container {
        padding: var(--spacing-lg);
    }

    .main-card {
        padding: var(--spacing-lg);
    }

    .card-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: left;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .vote-controls {
        flex-direction: column;
    }

    .navigation-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-divider {
        width: 20px;
        height: 1px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .container.small, .card-container.small {
        padding: 9px 3vw 10px 3vw;
    }
    .listing-card, .vote-section {
        padding: 10px 7px;
    }
    .details-grid {
        grid-template-columns: 100px 1fr;
    }
    .info-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: left;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: var(--spacing-md);
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }
    /* Container */
    .table-container {
        max-width: 1400px;
        margin: 0 auto;
        background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
        border: 1px solid rgba(255,255,255,0.05);
        position: relative;
        overflow: hidden;
    }

    /* Table header section */
    .table-header {
        padding: 20px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .table-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,140,0,0.4) 50%,
        transparent 100%
        );
    }

    .table-title {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #e8e6e3;
        text-transform: uppercase;
    }

    .player-count {
        font-size: 11px;
        letter-spacing: 1.5px;
        color: rgba(255,255,255,0.4);
        text-transform: uppercase;
    }
    .player-count span {
        color: rgba(255,140,0,0.7);
        font-weight: 600;
    }

    .table-wrapper {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tactical-table {
        min-width: 800px;
    }

    .main-card {
        padding: var(--spacing-md);
        margin: var(--spacing-sm);
    }

    .tactical-btn {
        padding: var(--spacing-sm);
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .vote-controls .tactical-btn {
        justify-content: center;
    }

    .form-container {
        padding: var(--spacing-md);
    }

    .form-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}


@media (prefers-contrast: more) {
    :root {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
        --accent-green: #00ff00;
        --accent-orange: #ff8800;
        --accent-yellow: #ffff00;
        --shadow-color: rgba(0, 0, 0, 0.8);
    }
}

.tactical-btn:focus-visible,
.tactical-input:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Minimal square buttons */
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 15%;*/
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Scratched metal texture effect using gradients */
.filter-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
            linear-gradient(45deg, transparent 30%, rgba(255,140,0,0.02) 50%, transparent 70%),
            linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.01) 50%, transparent 60%),
            linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 100%),
            radial-gradient(circle at 30% 40%, rgba(255,140,0,0.03) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255,255,255,0.02) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.filter-btn:hover::before {
    opacity: 1;
    transform: rotate(90deg);
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background:
            repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 2px,
                    rgba(255,140,0,0.03) 2px,
                    rgba(255,140,0,0.03) 4px
            ),
            linear-gradient(
                    90deg,
                    transparent 0%,
                    rgba(255,255,255,0.02) 50%,
                    transparent 100%
            );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: overlay;
}

/* This triggers the swipe animation on hover */
.filter-btn:hover::after {
    left: 100%;
}

.filter-btn:hover {
    border-color: rgba(255,140,0,0.3);
    background: rgba(255,140,0,0.05);
    color: rgba(255,140,0,0.8);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.grid-scan-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(150, 150, 150, 0.15);
    background: linear-gradient(135deg, #1a1a1a, #222);
    box-shadow:  0 1px 3px rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    
}

.grid-scan-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(0deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent);
    background-size: 20px 20px;
    opacity: 1;
}

.grid-scan-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.8), transparent);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    transition: left 0.5s ease;
}

.grid-scan-btn svg {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.grid-scan-btn:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.43);
    border-color: rgba(255, 107, 0, 0.25);
}

.grid-scan-btn:hover::before {
    background-image:
            linear-gradient(0deg, transparent 24%, rgba(255, 107, 0, 0.04) 25%, rgba(255, 107, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 107, 0, 0.04) 75%, rgba(255, 107, 0, 0.04) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, rgba(255, 107, 0, 0.04) 25%, rgba(255, 107, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 107, 0, 0.04) 75%, rgba(255, 107, 0, 0.04) 76%, transparent 77%, transparent);
}

.grid-scan-btn:hover::after {
    left: 100%;
}

.grid-scan-btn:hover svg {
    fill: #ff6b00;
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.5));
}

.grid-scan-btn:active {
    transform: translateY(1px);
}

.grid-scan-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.discord-scan-btn {
    width: 100px;
    height: 40px;
    border: 1px solid rgba(150, 150, 150, 0.15);
    background: linear-gradient(135deg, #1a1a1a, #222);
    box-shadow:  0 1px 3px rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}

.discord-scan-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(0deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, rgba(200, 200, 200, 0.015) 25%, rgba(200, 200, 200, 0.015) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.015) 75%, rgba(200, 200, 200, 0.015) 76%, transparent 77%, transparent);
    background-size: 20px 20px;
    opacity: 1;
}

.discord-scan-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5865F2, transparent);
    box-shadow: 0 0 10px #5865F2;
    transition: left 0.5s ease;
}

.discord-scan-btn svg {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    margin: 5%
}

.discord-scan-btn:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.43);
    border-color: rgb(88, 101, 242, 0.25);
    color: #5865F2;
}

.discord-scan-btn:hover::before {
    background-image:
            linear-gradient(0deg, transparent 24%, rgba(255, 107, 0, 0.04) 25%, rgba(255, 107, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 107, 0, 0.04) 75%, rgba(255, 107, 0, 0.04) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, rgba(255, 107, 0, 0.04) 25%, rgba(255, 107, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 107, 0, 0.04) 75%, rgba(255, 107, 0, 0.04) 76%, transparent 77%, transparent);
}

.discord-scan-btn:hover::after {
    left: 100%;
}

.discord-scan-btn:hover svg {
    fill: #5865F2;
    filter: drop-shadow(0 0 8px #5865F2);
}

.discord-scan-btn:active {
    transform: translateY(1px);
}

.discord-scan-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- View Page Structure --- */
.view-listing .section-header {
    align-items: center;
}
.view-listing .header-text .header-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 8px;
}
.view-listing .section-header h2 {
    font-size: 2rem;
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}
.view-content {
    padding: 30px;
}
.view-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.beta-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px dashed #f5c542;
    background: rgba(245, 197, 66, 0.08);
    color: #f5c542;
    border-radius: 4px;
}

.beta-notice i {
    font-size: 1.5rem;
}

.beta-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.view-actions .action-item {
    background: rgba(0,0,0,0.2);
    padding: 25px;
}
.action-description {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 20px;
    min-height: 40px; /* Aligns buttons across action items */
}

.feedback-hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Operator Info Grid --- */
.info-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    gap: 20px 30px;
}
.info-row {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.info-row.full-width {
    grid-column: 1 / -1;
}
.info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-value {
    font-size: 15px;
    color: #e8e6e3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* --- Badges & Tags --- */
.tactical-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}
.tactical-badge.rank, .tactical-badge.region, .tactical-badge.status {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    color: #ff9d57;
}

/* --- Specific Value Styles --- */
.info-value.contact-value {
    gap: 15px;
}
.contact-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.contact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.contact-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(114, 137, 218, 0.18);
    border: 1px solid rgba(114, 137, 218, 0.45);
    color: #c7d1ff;
}
.contact-privacy-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}
.modal-contact-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
.contact-link {
    font-size: 16px;
    font-weight: 600;
    color: #7289da; /* Discord Blue */
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link:hover {
    color: #99aab5;
}
.tactical-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}
.reputation .rep-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.reputation .rep-note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Button Overrides for View Page --- */
.tactical-btn.discord {
    background: linear-gradient(135deg, #7289da, #5f73bc);
    border-color: #7289da;
    color: #fff;
}
.tactical-btn.discord:hover {
    background: linear-gradient(135deg, #8295e0, #6f83cd);
}
.tactical-btn.upvote { /* Using primary orange style */
    background: linear-gradient(135deg, var(--accent-orange), #b85b00);
    border-color: rgba(255, 107, 0, 0.8);
    color: #fff;
}
.tactical-btn.downvote { /* Using neutral cancel style */
    background: linear-gradient(135deg, #5c2c2c, #4a2323);
    border-color: rgba(217, 48, 37, 0.5);
    color: rgba(255, 255, 255, 0.8);
}
.tactical-btn.report {
    background: linear-gradient(135deg, #5c2c2c, #4a2323);
    border-color: rgba(217, 48, 37, 0.5);
    color: rgba(255, 255, 255, 0.8);
}
.tactical-btn.report:hover {
    background: linear-gradient(135deg, #6e3434, #5c2b2b);
}

/* --- View Navigation & Error State --- */
.view-nav {
    justify-content: space-between;
}
.nav-actions-right {
    display: flex;
    gap: 15px;
}
.not-found-section .view-content {
    text-align: center;
}
.not-found-section p {
    margin-bottom: 25px;
    color: rgba(255,255,255,0.7);
}

/* --- Custom Button --- */
.custom-grid-btn {
    border: 1px solid rgba(150, 150, 150, 0.15);
    background: linear-gradient(135deg, #1a1a1a, #222);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0;
    outline: none;
    margin: 5px;
    gap: 10px;
}
.custom-grid-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--btn-color-rgb, 255, 107, 0), 0.8), transparent);
    box-shadow: 0 0 10px rgba(var(--btn-color-rgb, 255, 107, 0), 0.5);
    transition: left 0.5s ease;
}
.custom-grid-btn:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.43);
    border-color: rgba(var(--btn-color-rgb, 255, 107, 0), 0.25);
}
.custom-grid-btn:hover::after {
    left: 100%;
}
.custom-grid-btn svg {
    fill: #666;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}
.custom-grid-btn-label {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    z-index: 2;
    position: relative;
}
.custom-grid-btn:hover svg {
    fill: rgb(var(--btn-color-rgb, 255, 107, 0));
    filter: drop-shadow(0 0 8px rgba(var(--btn-color-rgb, 255, 107, 0), 0.5));
}
.custom-grid-btn:hover .custom-grid-btn-label {
    color: rgb(var(--btn-color-rgb, 255, 107, 0));
    text-shadow: 0 0 8px rgba(var(--btn-color-rgb, 255, 107, 0), 0.5);
}
.custom-grid-btn:active {
    transform: translateY(1px);
}

/* --- Dropdown Container --- */
.custom-dropdown-container {
    position: relative;
}
.custom-dropdown-container * {
    box-sizing: border-box;
}
.custom-dropdown-button {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(150, 150, 150, 0.15);
    background: linear-gradient(135deg, #1a1a1a, #222);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    outline: none;
    gap: 10px;
}
.dropdown-button-text {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arrow-icon {
    fill: #999;
    transition: transform 0.3s ease, fill 0.3s ease;
    flex-shrink: 0;
}
.custom-dropdown-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--btn-color-rgb, 255, 107, 0), 0.8), transparent);
    box-shadow: 0 0 10px rgba(var(--btn-color-rgb, 255, 107, 0), 0.5);
    transition: left 0.5s ease;
}
.custom-dropdown-button:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.43);
    border-color: rgba(var(--btn-color-rgb, 255, 107, 0), 0.25);
}
.custom-dropdown-button:hover .dropdown-button-text,
.custom-dropdown-button:hover .arrow-icon {
    color: rgb(var(--btn-color-rgb, 255, 107, 0));
    fill: rgb(var(--btn-color-rgb, 255, 107, 0));
}
.custom-dropdown-button:hover::after {
    left: 100%;
}
.custom-dropdown-container.open .arrow-icon {
    transform: rotate(180deg);
}
.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #222;
    border: 1px solid rgba(150, 150, 150, 0.15);
    border-top: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease-out;
}
.custom-dropdown-container.open .custom-dropdown-menu {
    max-height: 200px;
}
.custom-dropdown-menu li {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    transition: background-color 0.2s ease;
}
.custom-dropdown-menu li label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    gap: 10px;
}
.custom-dropdown-menu li:hover {
    background-color: #333;
    color: #fff;
}
.custom-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}
input[type="checkbox"]:checked + .custom-checkbox {
    background-color: rgb(var(--btn-color-rgb, 255, 107, 0));
    border-color: rgb(var(--btn-color-rgb, 255, 107, 0));
}
input[type="checkbox"]:checked + .custom-checkbox::after {
    border-color: #fff;
    opacity: 1;
}
input[type="checkbox"] {
    display: none;
}
.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.tag-weekend {
    background: rgba(255,140,0,0.06);
    border: 1px solid rgba(255,140,0,0.15);
    color: rgba(255,180,100,0.8);
}
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.player-info h3 {
    margin: 0;
    font-size: 1.2em;
}
.player-info a {
    text-decoration: none;
    color: #007bff;
    letter-spacing: 1px;
}
.player-info span {
    font-size: 0.9em;
    color: #666;
}
.player-avatar {
    width: 86.781px;
    height: 86.781px;
    object-fit: cover;
    border-radius: 0px;
    margin-right: 0px;
    vertical-align: middle;
    border: 1px solid rgba(255,140,0,0.7);;

}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100% - 2.5rem));
    pointer-events: none;
    z-index: 1200;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 11, 10, 0.92);
    border: 1px solid rgba(102, 102, 90, 0.35);
    border-left: 4px solid var(--neutral-color);
    color: var(--ash-gray);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(16px);
    opacity: 0;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    overflow: hidden;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-10px);
}

.toast__content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
}

.toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    color: var(--tarkov-gold);
    font-size: 1.1rem;
}

.toast__message {
    flex: 1 1 auto;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.toast__dismiss {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color var(--transition-fast);
}

.toast__dismiss:hover,
.toast__dismiss:focus {
    color: var(--tarkov-gold);
    outline: none;
}

.toast--success {
    border-left-color: var(--success-color);
}

.toast--success .toast__icon {
    color: var(--success-color);
}

.toast--error {
    border-left-color: var(--danger-color);
}

.toast--error .toast__icon {
    color: var(--danger-color);
}

.toast--warning {
    border-left-color: var(--warning-color);
}

.toast--warning .toast__icon {
    color: var(--warning-color);
}

.toast--info .toast__icon {
    color: var(--tarkov-gold);
}

/*==================================
    USER OPTIONS MODAL
====================================*/
.user-options-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(13, 13, 13, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1200;
}

.user-options-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.user-options-modal {
    background-color: var(--charcoal);
    border: 1px solid var(--gunmetal);
    width: min(520px, 95%);
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.user-options-overlay.visible .user-options-modal {
    transform: translateY(0);
}

.user-options-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: var(--ash-gray);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-options-close:hover,
.user-options-close:focus {
    color: var(--tarkov-gold);
    outline: none;
}

.user-options-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
}

.user-options-header {
    padding: 24px 28px 12px;
    border-bottom: 1px solid var(--gunmetal);
}

.user-options-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 140, 0, 0.85);
}

.user-options-description {
    margin: 0;
    color: var(--steel-gray);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.user-options-body {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.user-options-body::-webkit-scrollbar {
    display: none;
}

.user-options-scroll-indicator {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 28px 16px;
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0), rgba(42, 42, 42, 0.92));
    color: var(--ash-gray);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}

.user-options-scroll-indicator::before {
    content: '\f103';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--tarkov-gold);
    transform: translateY(-3px);
}

.user-options-scroll-indicator.is-visible {
    display: flex;
}

.user-options-card {
    border: 1px solid var(--gunmetal);
    background: rgba(0, 0, 0, 0.35);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-options-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-options-card-title {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 140, 0, 0.85);
}

.user-options-card-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ash-gray);
    line-height: 1.5;
}

.user-options-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.user-options-card-actions--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.user-options-select-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}
.user-options-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gunmetal);
    background: rgba(0, 0, 0, 1);
    color: var(--ash-gray);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.user-options-select:focus {
    outline: none;
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}
.user-options-select.is-loading {
    opacity: 0.7;
    cursor: progress;
}
.user-options-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.user-options-helper-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--steel-gray);
}
.user-icon-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-icon-preview[hidden] {
    display: none !important;
}
.user-icon-preview img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}
.user-options-share-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-options-share-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gunmetal);
    background: rgba(0, 0, 0, 0.45);
    color: var(--ash-gray);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 4px;
}
.user-options-share-input:focus {
    outline: none;
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}
.user-options-share-input::selection {
    background: rgba(255, 140, 0, 0.35);
    color: #fff;
}
.user-options-share-copy-btn {
    white-space: nowrap;
}
.user-options-share-copy-btn.is-loading {
    opacity: 0.7;
    cursor: progress;
}
.user-options-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}
.user-options-toggle.is-loading {
    opacity: 0.6;
    cursor: progress;
}
.user-options-toggle__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.user-options-toggle__switch {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-options-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}
.user-options-toggle__checkbox:checked + .user-options-toggle__switch {
    background: linear-gradient(135deg, #7289da, #5f73bc);
    border-color: rgba(114, 137, 218, 0.6);
}
.user-options-toggle__checkbox:checked + .user-options-toggle__switch::after {
    transform: translateX(22px);
}
.user-options-toggle__checkbox:focus-visible + .user-options-toggle__switch {
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.45);
}
.user-options-toggle__text {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.user-options-toggle.is-loading .user-options-toggle__text {
    opacity: 0.7;
}

.user-options-action-btn {
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--gunmetal);
    background: transparent;
    color: var(--ash-gray);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-options-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-options-action-btn--danger {
    border-color: var(--blood-red);
    color: var(--blood-red);
}

.user-options-action-btn--danger:hover,
.user-options-action-btn--danger:focus {
    background: rgba(255, 0, 0, 0.15);
    color: var(--blood-red);
    outline: none;
}

.user-options-empty {
    padding: 16px;
    border: 1px solid var(--gunmetal);
    background: rgba(0, 0, 0, 0.3);
}

.user-options-empty-text {
    margin: 0;
    color: var(--steel-gray);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@media (max-width: 540px) {
    .user-options-modal {
        width: 100%;
    }

    .user-options-header,
    .user-options-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {
    .toast-container {
        top: auto;
        bottom: 1rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(90%, 420px);
        align-items: stretch;
    }

    .toast {
        border-radius: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}

/* Admin dashboard layout */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0px;
    background: rgba(20, 22, 20, 0.7);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--transition-medium), color var(--transition-medium), border-color var(--transition-medium);
}

.admin-nav__link i {
    font-size: 0.95rem;
}

.admin-nav__link:hover,
.admin-nav__link:focus {
    background: rgba(212, 175, 55, 0.12);
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.55);
}

.admin-nav__link.is-active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.admin-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 0px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(16, 18, 16, 0.9);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.admin-flash i {
    font-size: 1rem;
}

.admin-flash--success {
    border-color: rgba(74, 103, 65, 0.65);
    background: rgba(43, 56, 38, 0.9);
}

.admin-flash--error {
    border-color: rgba(122, 46, 46, 0.65);
    background: rgba(56, 26, 26, 0.9);
}

.admin-flash--info {
    border-color: rgba(105, 105, 84, 0.65);
    background: rgba(30, 32, 30, 0.9);
}

.admin-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-summary__item {
    background: rgba(19, 21, 19, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 0px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-elevation-low);
}

.admin-summary__item h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.admin-summary__item p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-summary--compact {
    margin-top: 24px;
}

.admin-overview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: rgba(14, 16, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: var(--shadow-elevation-low);
    border-radius: 0px;
}

.admin-card--stat {
    justify-content: flex-start;
}

.admin-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.admin-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-card__value {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-card__meta-note {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-card__delta {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-card__delta--up {
    color: var(--success-color);
}

.admin-card__delta--down {
    color: var(--danger-color);
}

.admin-card__delta--flat {
    color: var(--text-secondary);
}

.admin-card__link {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    text-decoration: none;
}

.admin-card__link:hover,
.admin-card__link:focus {
    text-decoration: underline;
}

.admin-section {
    background: rgba(14, 16, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 0px;
    padding: 24px;
    box-shadow: var(--shadow-elevation-low);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-directory {
    background: rgba(14, 16, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 0px;
    box-shadow: var(--shadow-elevation-low);
    margin-bottom: 28px;
    overflow: hidden;
}

.admin-directory:last-of-type {
    margin-bottom: 0;
}

.admin-directory__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    background: rgba(12, 14, 12, 0.9);
}

.admin-directory__summary:hover {
    background: rgba(16, 18, 16, 0.95);
}

.admin-directory__summary:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 2px;
}

.admin-directory__summary::-webkit-details-marker {
    display: none;
}

.admin-directory__summary h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.admin-directory__summary p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-directory__summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-directory__indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(12, 14, 12, 0.9);
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.admin-directory[open] .admin-directory__indicator {
    transform: rotate(180deg);
}

.admin-directory__content {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.admin-directory__content > .admin-section {
    background: rgba(12, 14, 12, 0.85);
}

.admin-section__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.admin-section__header h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.admin-section__header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 0px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-primary);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-badge--neutral {
    background: rgba(78, 78, 60, 0.35);
    border-color: rgba(78, 78, 60, 0.5);
}

.admin-badge--updated {
    background: rgba(74, 103, 65, 0.35);
    border-color: rgba(74, 103, 65, 0.55);
}

.admin-badge--failed {
    background: rgba(122, 46, 46, 0.35);
    border-color: rgba(122, 46, 46, 0.55);
}

.admin-badge--unchanged {
    background: rgba(105, 105, 84, 0.35);
    border-color: rgba(105, 105, 84, 0.55);
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 14, 12, 0.85);
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.admin-table input[type="text"],
.admin-table input[type="number"],
.admin-table select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(10, 12, 10, 0.85);
    color: var(--text-primary);
    letter-spacing: 0.03em;
    border-radius: 0;
}

.admin-table input[type="text"]:focus,
.admin-table input[type="number"]:focus,
.admin-table select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}
.admin-error-preview__intro {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.admin-error-preview-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-error-preview-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(12, 14, 12, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: var(--shadow-elevation-low);
}

.admin-error-preview-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-error-preview-card__header h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.admin-error-preview-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-error-preview-card__summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.admin-error-preview-card__iframe-wrapper {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.85);
}

.admin-error-preview-card__iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.admin-error-preview-card__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-error-preview-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-yellow);
    text-decoration: none;
}

.admin-error-preview-card__link:hover,
.admin-error-preview-card__link:focus {
    text-decoration: underline;
}

.admin-error-preview-card__link i {
    color: var(--accent-yellow);
}

.admin-error-preview-card__actions {
    display: flex;
    justify-content: flex-end;
}

.admin-error-preview-card__actions .tactical-btn {
    min-width: 0;
}
.admin-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.admin-table th {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(18, 20, 18, 0.7);
}

.admin-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.admin-table__meta {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-table__actions {
    width: 200px;
    text-align: center;
}

.admin-table__action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.admin-pagination {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.admin-pagination__controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.admin-pagination__info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-log-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.post-log-actions .admin-form {
    justify-content: flex-start;
}

.admin-inline-form {
    display: inline-flex;
    gap: 8px;
}

.admin-inline-form--stacked {
    flex-direction: column;
    align-items: stretch;
}

.admin-report-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.admin-report-actions-cell {
    width: 280px;
}

.admin-report-status-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(12, 14, 12, 0.85);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
}

.admin-report-status-form__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.admin-report-status-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.admin-report-note {
    font-size: 0.85rem;
    line-height: 1.4;
}

.admin-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: rgba(212, 175, 55, 0.85);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-link-button:hover,
.admin-link-button:focus {
    background: rgba(212, 175, 55, 0.2);
    color: #f5f5f5;
}

.admin-link-button--danger {
    border-color: rgba(217, 48, 37, 0.55);
    color: rgba(255, 179, 171, 0.9);
}

.admin-link-button--danger:hover,
.admin-link-button--danger:focus {
    background: rgba(217, 48, 37, 0.2);
    color: #ffffff;
}

.admin-inline-form--stacked .admin-link-button {
    width: 100%;
}

.admin-modules-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-module-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(12, 14, 12, 0.85);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-elevation-low);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-module-card:hover,
.admin-module-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.admin-module-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent-yellow);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.admin-module-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-module-card__content h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.admin-module-card__content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-link {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
}

.admin-link:hover,
.admin-link:focus {
    text-decoration: underline;
}

.admin-muted {
    color: var(--text-muted);
}

.admin-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}
.admin-form__group label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.admin-form__group input[type="text"],
.admin-form__group input[type="number"],
.admin-form__group input[type="file"],
.admin-form__group select {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(12, 14, 12, 0.9);
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.admin-form__group input[type="text"]:focus,
.admin-form__group input[type="number"]:focus,
.admin-form__group input[type="file"]:focus,
.admin-form__group select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.admin-form__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-form--inline {
    justify-content: flex-end;
}

.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: rgba(13, 15, 13, 0.85);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 0px;
    text-align: center;
}

.admin-empty-state i {
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

@media (max-width: 900px) {
    .admin-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-report-actions-cell {
        width: 100%;
    }

    .admin-directory__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-directory__summary-meta {
        width: 100%;
        justify-content: space-between;
    }

    .admin-table__actions {
        width: auto;
    }
}

@media (max-width: 720px) {
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }

    .admin-table td {
        font-size: 0.9rem;
    }

    .admin-nav__link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .admin-summary {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding: 10px 0;
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        border: none;
        padding: 8px 4px;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-secondary);
    }

    .admin-table__action-buttons {
        justify-content: flex-start;
    }
}

/* Error page layout */
.error-page {
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.95) 0%, rgba(13, 13, 13, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: var(--shadow-elevation-medium);
    margin: var(--spacing-xl) auto;
    border-radius: 0;
    overflow: visible;
}

.error-page__hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.92) 0%, rgba(18, 18, 18, 0.88) 100%);
}

.error-page__badge {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: rgba(212, 175, 55, 0.2);
    display: grid;
    place-items: center;
    color: var(--tarkov-gold);
    font-size: 1.5rem;
}

.error-page__intro {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    color: var(--ash-gray);
}

.error-page__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(212, 175, 55, 0.7);
}

.error-page__title {
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.error-page__message {
    color: var(--ash-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.error-support {
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.95rem;
}

.error-details {
    padding: var(--spacing-xl);
}

.error-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 0;
    padding: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-lg);
    position: relative;
    overflow: visible;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(46, 91, 63, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.error-card:hover::before,
.error-card:focus-within::before {
    opacity: 1;
}

.error-card__media {
    position: relative;
    z-index: 1;
}

.error-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 0;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--tarkov-gold);
    background: rgba(212, 175, 55, 0.18);
}

.error-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    color: var(--ash-gray);
}

.error-card__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(212, 175, 55, 0.6);
}

.error-card__title {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.error-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ash-gray);
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.65rem 1.2rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tarkov-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(42, 42, 42, 0.9);
    border-radius: 0;
    transition: background var(--transition-medium), border-color var(--transition-medium), color var(--transition-medium), transform var(--transition-medium);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.75);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary i {
    color: var(--tarkov-gold);
}

.error-card--missing .error-card__icon {
    color: var(--tarkov-gold);
    background: rgba(212, 175, 55, 0.22);
}

.error-card--server .error-card__icon {
    color: var(--danger-color);
    background: rgba(139, 0, 0, 0.18);
}

.error-card--no-access .error-card__icon {
    color: var(--warning-color);
    background: rgba(139, 105, 20, 0.2);
}

.error-card--maintenance .error-card__icon {
    color: var(--accent-green);
    background: rgba(46, 91, 63, 0.2);
}

@media (max-width: 768px) {
    .error-page {
        margin: var(--spacing-lg) auto;
    }

    .error-page__hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .error-card {
        flex-direction: column;
    }

    .error-card__actions {
        width: 100%;
    }
}

.status-page-body {
    background: radial-gradient(circle at top, rgba(212, 133, 61, 0.15), transparent 55%) fixed,
        radial-gradient(circle at bottom, rgba(90, 107, 74, 0.12), transparent 50%) fixed;
}

.status-page {
    position: relative;
    margin: var(--spacing-xl) auto;
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.92) 0%, rgba(13, 13, 13, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.14);
    box-shadow: var(--shadow-elevation-high);
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    border-radius: 0;
    max-width: 980px;
    backdrop-filter: blur(18px);
}

.status-page__hero {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.92) 0%, rgba(18, 18, 18, 0.88) 100%);
    position: relative;
    overflow: hidden;
}

.status-page__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.28), transparent 55%),
        radial-gradient(circle at bottom left, rgba(46, 91, 63, 0.22), transparent 60%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.status-page__hero-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.22);
    color: var(--tarkov-gold);
    font-size: 1.8rem;
    border-radius: 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.status-page__hero-icon--success {
    background: rgba(46, 91, 63, 0.24);
    color: var(--accent-green);
}

.status-page__hero-icon--warning {
    background: rgba(212, 175, 55, 0.28);
    color: var(--tarkov-gold);
}

.status-page__hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.status-page__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-badge--maintenance {
    background: rgba(212, 175, 55, 0.2);
    color: var(--tarkov-gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.status-badge--operational {
    background: rgba(46, 91, 63, 0.18);
    color: var(--accent-green);
    border: 1px solid rgba(46, 91, 63, 0.45);
}

.status-page__title {
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

.status-page__description {
    font-size: 1.05rem;
    color: var(--ash-gray);
    line-height: 1.6;
}

.status-page__updated {
    font-size: 0.85rem;
    color: rgba(212, 175, 55, 0.6);
}

.status-page__components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-xl);
}

.status-card {
    background: rgba(16, 16, 16, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    position: relative;
    overflow: visible;
    border-radius: 0;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.status-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.status-card--success::before {
    background: linear-gradient(135deg, rgba(46, 91, 63, 0.4) 0%, rgba(10, 10, 10, 0) 75%);
}

.status-card--warning::before {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(10, 10, 10, 0) 75%);
}

.status-card:hover::before,
.status-card:focus-within::before {
    opacity: 0.55;
}

.status-card:hover,
.status-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.status-card__icon {
    z-index: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.24);
    color: var(--tarkov-gold);
    font-size: 1.2rem;
    border-radius: 0;
    transition: transform 0.25s ease;
}

.status-card--success .status-card__icon {
    background: rgba(46, 91, 63, 0.24);
    color: var(--accent-green);
}

.status-card--warning .status-card__icon {
    background: rgba(212, 175, 55, 0.3);
    color: var(--tarkov-gold);
}

.status-card:hover .status-card__icon,
.status-card:focus-within .status-card__icon {
    transform: scale(1.05);
}

.status-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1 1 auto;
    min-width: 0;
}

.status-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.status-card__title {
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex: 1 1 100%;
}

.status-card__description {
    color: var(--ash-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.status-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-pill--warning {
    background: rgba(212, 175, 55, 0.22);
    color: var(--tarkov-gold);
    border-color: rgba(212, 175, 55, 0.45);
}

.status-pill--success {
    background: rgba(46, 91, 63, 0.22);
    color: var(--accent-green);
    border-color: rgba(46, 91, 63, 0.45);
}

.status-page__maintenance {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.maintenance-card {
    position: relative;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border-radius: 0;
    overflow: visible;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.maintenance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(46, 91, 63, 0.25) 70%);
    opacity: 0.45;
    pointer-events: none;
}

.maintenance-card__header,
.maintenance-card__description,
.maintenance-card__actions {
    position: relative;
    z-index: 1;
}

.maintenance-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-md);
}

.maintenance-card__title {
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

.maintenance-card__window {
    font-size: 0.85rem;
    color: rgba(212, 175, 55, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.maintenance-card__description {
    color: var(--ash-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.maintenance-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (max-width: 768px) {
    .status-page {
        margin: var(--spacing-lg) auto;
        gap: var(--spacing-lg);
    }

    .status-page__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-page__components {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-lg);
    }

    .status-page__maintenance {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }
}
