body .servers-header,
body .category-header,
body .faq-header,
body .recruitment-header,
body .recruitment-detail-header,
body .auctions-header,
body .page-hero {
    background: linear-gradient(135deg, var(--hero-start, var(--primary-dark, #4338ca)) 0%, var(--hero-mid, var(--primary-color, #6366f1)) 55%, var(--hero-end, var(--primary-light, #818cf8)) 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.servers-header h1, .servers-header .lead,
.category-header h1, .category-header .lead,
.faq-header h1, .faq-header .lead,
.recruitment-header h1, .recruitment-header .lead,
.recruitment-detail-header h1, .recruitment-detail-header .lead,
.auctions-header h1, .auctions-header .lead,
.page-hero h1, .page-hero .lead {
    color: #ffffff;
}

.servers-header h1,
.category-header h1,
.faq-header h1,
.recruitment-header h1,
.recruitment-detail-header h1,
.auctions-header h1,
.page-hero h1 {
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.servers-header .lead,
.category-header .lead,
.faq-header .lead,
.recruitment-header .lead,
.recruitment-detail-header .lead,
.auctions-header .lead,
.page-hero .lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    font-weight: 400;
    opacity: 0.92;
    max-width: 62ch;
}

.page-hero .breadcrumb,
.servers-header .breadcrumb,
.category-header .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a,
.servers-header .breadcrumb a,
.category-header .breadcrumb a {
    color: rgba(255,255,255,0.85);
}

body .card,
body .filter-card,
body search.filter-card,
body .faq-item,
body .recruitment-card,
body .info-card,
body .auction-card,
body .stat-card,
body .server-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

body .card:hover,
body .server-card:hover,
body .recruitment-card:hover,
body .stat-card:hover,
body .auction-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.server-card,
.recruitment-card,
.stat-card,
.auction-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover,
.recruitment-card:hover,
.stat-card:hover,
.auction-card:hover {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .server-card, .recruitment-card, .stat-card, .auction-card {
        transition: none;
    }
    .server-card:hover, .recruitment-card:hover, .stat-card:hover, .auction-card:hover {
        transform: none;
    }
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color, #6366f1) 35%, transparent);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color, #6366f1) 22%, transparent);
}

.breadcrumb {
    margin-bottom: 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 1rem 0.5rem;
    text-align: center;
}

.stat-box .display-4 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.status-online { color: #16a34a; font-weight: 600; }
.status-offline { color: #dc2626; font-weight: 600; }

.table > :not(caption) > * > * {
    padding: 0.7rem 0.75rem;
}

img {
    max-width: 100%;
    height: auto;
}


body .filter-card,
body search.filter-card,
body .auction-card,
body .info-card,
body .server-info-card {
    background: var(--surface, #ffffff);
    color: var(--text-body, inherit);
}

body .faq-item .accordion-button {
    background: var(--surface, #ffffff);
    color: var(--text-body, inherit);
}

body .faq-item .accordion-body {
    background: var(--surface, #ffffff);
    color: var(--text-body, inherit);
}

body .server-info-card {
    background: var(--surface-2, #f8f9fa);
}

body .seo-content-section {
    color: var(--text-soft, #555555);
}

body .card,
body .filter-card,
body search.filter-card,
body .faq-item,
body .recruitment-card,
body .info-card,
body .auction-card,
body .stat-card,
body .server-card {
    border-color: var(--surface-border, rgba(0, 0, 0, 0.06));
}


body .form-control,
body .form-select {
    background-color: var(--surface, #ffffff);
    color: var(--text-body, #212529);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.12));
}

body .form-control::placeholder {
    color: var(--text-soft, #6c757d);
    opacity: 0.8;
}

body .text-muted,
body .breadcrumb-item.active {
    color: var(--text-soft, #6c757d) !important;
}

body .table {
    color: var(--text-body, #212529);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

body .dropdown-menu {
    background-color: var(--surface, #ffffff);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

body .dropdown-item {
    color: var(--text-body, #212529);
}

body .dropdown-item:hover,
body .dropdown-item:focus {
    background-color: var(--surface-2, #f8f9fa);
    color: var(--text-body, #212529);
}

body .modal-content {
    background-color: var(--surface, #ffffff);
    color: var(--text-body, #212529);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

body .list-group-item {
    background-color: var(--surface, #ffffff);
    color: var(--text-body, #212529);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

body .page-link {
    background-color: var(--surface, #ffffff);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.12));
}

body .accordion-item {
    background-color: var(--surface, #ffffff);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

body .alert-light {
    background-color: var(--surface-2, #f8f9fa);
    color: var(--text-body, #212529);
    border-color: var(--surface-border, rgba(0, 0, 0, 0.1));
}

@media (prefers-color-scheme: dark) {
    body .card,
    body .filter-card,
    body search.filter-card,
    body .faq-item,
    body .recruitment-card,
    body .info-card,
    body .auction-card,
    body .stat-card,
    body .server-card {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    }
}

body.dark-mode .card,
body[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 575.98px) {
    .servers-header,
    .category-header,
    .faq-header,
    .recruitment-header,
    .recruitment-detail-header,
    .auctions-header,
    .page-hero {
        padding: 1.75rem 0;
        margin-bottom: 1.5rem;
    }
    .stat-box .display-4 { font-size: 1.6rem; }
}
