/* Cosmic MS CMS - MapleStory Traditional Theme */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

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

:root {
    --bg: #e8f0f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --border: #dce3ea;
    --primary: #2980b9;
    --primary-dark: #1a6da0;
    --primary-light: #3498db;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --text: #333333;
    --text-dim: #777777;
    --text-light: #999999;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --link: #2980b9;
    --link-hover: #1a5276;
    --navbar-bg: linear-gradient(to bottom, #3a9bd5, #2980b9);
    --panel-header-bg: linear-gradient(to bottom, #f7f7f7, #ececec);
    --sidebar-width: 280px;
}

html { height: 100%; }

body {
    font-family: 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(135,206,235,0.3) 0%, transparent 70%),
        linear-gradient(180deg, #cee5f2 0%, #e8f0f6 30%, #d4e6d4 80%, #b5d6a7 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

/* ==================== BANNER ==================== */
.banner {
    position: relative;
    overflow: hidden;
    background-color: #0c1a35;
    border-bottom: 3px solid rgba(0,0,0,0.4);
}
.banner-bg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 120px;
    object-fit: cover;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, rgba(6,13,31,0.85) 0%, rgba(19,43,79,0.6) 50%, rgba(36,113,163,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}
.banner-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.banner-content {
    position: relative;
    width: 100%;
    padding: 0 20px;
}
.banner-align-center { text-align: center; }
.banner-align-left { text-align: left; padding-left: 40px; }
.banner-align-right { text-align: right; padding-right: 40px; }
.banner-valign-top .banner-link { align-items: flex-start; padding-top: 12px; }
.banner-valign-middle .banner-link { align-items: center; }
.banner-valign-bottom .banner-link { align-items: flex-end; padding-bottom: 12px; }
.banner-title {
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 30px rgba(93,173,226,0.3);
    letter-spacing: 3px;
}
.banner-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1em;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.banner-rates {
    display: inline-flex;
    gap: 14px;
    margin-top: 12px;
    background: rgba(0,0,0,0.35);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,215,0,0.15);
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}
.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}
.nav-links a.active {
    background: rgba(0,0,0,0.15);
    color: #ffffff;
}
.nav-links .highlight {
    background: var(--accent);
}
.nav-links .highlight:hover {
    background: var(--accent-hover);
}
.nav-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-user-area a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
    padding: 12px 10px;
}
.nav-user-area a:hover { color: #ffffff; }
.nav-user-area .username { color: #ffd700; }

/* ==================== LAYOUT ==================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

.main-layout {
    display: flex;
    gap: 20px;
    padding: 20px 15px;
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.content-area {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ==================== PANELS / CARDS ==================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.panel-header {
    background: var(--panel-header-bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
}
.panel-header h3, .panel-header h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.panel-body {
    padding: 15px;
}

/* Backwards compat: .card maps to .panel */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.card h3 { color: var(--primary-dark); margin-bottom: 8px; }

/* ==================== SIDEBAR PANELS ==================== */
.sidebar .panel-body {
    font-size: 0.92em;
    line-height: 1.8;
}
.server-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-online { color: var(--success); font-weight: 700; }
.status-offline { color: var(--danger); font-weight: 700; }
.online-count { font-weight: 700; color: var(--primary); }

.sidebar .panel-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
}
.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.82em;
    font-weight: 600;
    transition: color 0.2s;
}
.social-links a:hover { color: var(--accent); }
.social-links i { font-size: 1.6em; }

/* ==================== PAGE TITLES ==================== */
.page-title {
    text-align: center;
    font-size: 1.8em;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 300;
}

/* ==================== TABLES ==================== */
.info-table { width: 100%; }
.info-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-dim); width: 40%; }
.info-table td:last-child { font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    border-bottom: 2px solid var(--border);
    background: #f7f7f7;
    color: var(--text-dim);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.data-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #f5f9fc; }
.rank-num { color: var(--text-dim); font-weight: 700; min-width: 36px; }
.rank-medal { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.85em; }
.rank-gold { background: linear-gradient(135deg, #ffd700, #ffb800); color: #7a5800; box-shadow: 0 2px 6px rgba(255,215,0,0.4); }
.rank-silver { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #555; box-shadow: 0 2px 6px rgba(192,192,192,0.4); }
.rank-bronze { background: linear-gradient(135deg, #cd7f32, #b87333); color: #fff; box-shadow: 0 2px 6px rgba(205,127,50,0.3); }
.char-name a { color: var(--primary); font-weight: 600; text-decoration: none; }
.char-name a:hover { color: var(--primary-dark); text-decoration: underline; }
.char-name { color: var(--primary); font-weight: 600; }

/* ==================== GRIDS ==================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* ==================== STAT CARDS ==================== */
.stat-card { text-align: center; padding: 25px 15px; }
.stat-number { font-size: 2.2em; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-dim); margin-top: 4px; font-size: 0.9em; }

.stat-row { display: flex; gap: 15px; flex-wrap: wrap; margin: 15px 0; }
.mini-stat {
    background: #f8f9fa; border: 1px solid var(--border); border-radius: 4px;
    padding: 15px 20px; flex: 1; min-width: 150px; text-align: center;
}
.mini-stat-value { font-size: 1.8em; font-weight: 700; color: var(--primary); }
.mini-stat-label { color: var(--text-dim); font-size: 0.85em; margin-top: 4px; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 2px 10px; border-radius: 3px; font-size: 0.8em; font-weight: 600;
}
.badge-green { background: rgba(39,174,96,0.15); color: var(--success); }
.badge-red { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-gold { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-cat { background: rgba(41,128,185,0.15); color: var(--primary); }
.badge-status { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 0.8em; font-weight: 600; }
.badge-on { background:rgba(39,174,96,0.15); color:var(--success); border:1px solid rgba(39,174,96,0.3); }
.badge-off { background:rgba(231,76,60,0.15); color:var(--danger); border:1px solid rgba(231,76,60,0.3); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block; padding: 10px 24px; border-radius: 4px;
    text-decoration: none; font-weight: 600; border: none; cursor: pointer;
    font-size: 0.95em; transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); color: white; }
.btn-secondary { background: #ecf0f1; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #dce3ea; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 5px 14px; font-size: 0.85em; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 1.1em; }

/* ==================== FORMS ==================== */
.form-page { padding: 20px 0; }
.form-card { width: 100%; max-width: 420px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; color: var(--text-dim); font-size: 0.9em; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 12px; border-radius: 4px;
    border: 1px solid var(--border); background: #fff;
    color: var(--text); font-size: 1em; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(41,128,185,0.15);
}
.form-footer { text-align: center; margin-top: 16px; color: var(--text-dim); }
.form-footer a { color: var(--primary); font-weight: 600; }

.search-form { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-form input {
    flex: 1; padding: 10px 12px; border-radius: 4px;
    border: 1px solid var(--border); background: #fff;
    color: var(--text); font-size: 1em;
}
.search-form input:focus { outline: none; border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group input[type="checkbox"] { width: auto; margin-right: 6px; }

.form-select {
    padding: 8px 12px; border-radius: 4px;
    border: 1px solid var(--border); background: #fff;
    color: var(--text); font-size: 0.9em; cursor: pointer; font-family: inherit;
}
.form-select:focus { outline: none; border-color: var(--primary); }

/* ==================== ALERTS ==================== */
.alert {
    padding: 12px 18px; border-radius: 4px; margin-bottom: 20px;
    font-weight: 500; border: 1px solid transparent;
}
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* ==================== RANKING TABS ==================== */
.ranking-tabs { display: flex; gap: 4px; margin-bottom: 0; }
.tab {
    padding: 8px 18px; border-radius: 4px 4px 0 0; text-decoration: none;
    color: var(--text-dim); background: #ecf0f1; border: 1px solid var(--border);
    border-bottom: none; transition: all 0.2s; font-weight: 600; font-size: 0.9em;
}
.tab:hover { color: var(--text); background: #f7f7f7; }
.tab.active { background: #fff; color: var(--primary); border-bottom: 1px solid #fff; margin-bottom: -1px; position: relative; z-index: 1; }

/* ==================== FEATURE LIST ==================== */
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 5px 0; padding-left: 18px; position: relative; color: var(--text); }
.feature-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--success); font-size: 0.8em; }

/* ==================== PAGINATION ==================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 15px; }
.pagination span { color: var(--text-dim); font-size: 0.9em; }

/* ==================== HELPERS ==================== */
.center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-small { font-size: 0.85em; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Code blocks */
code, .cmd-code {
    background: #f4f4f4; padding: 2px 6px; border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace; font-size: 0.9em;
    color: var(--danger);
}
.code-block {
    background: #f4f4f4; border: 1px solid var(--border);
    border-radius: 4px; padding: 15px; margin-top: 10px; overflow-x: auto;
}
.code-block pre {
    font-family: 'Consolas', 'Monaco', monospace; font-size: 0.85em;
    line-height: 1.7; color: var(--text); white-space: pre; margin: 0;
}

/* ==================== SERVER STATUS BAR ==================== */
.server-status-bar {
    display: flex; gap: 20px; margin-bottom: 20px; padding: 12px 15px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; flex-wrap: wrap;
}
.status-item { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-online { background: var(--success); box-shadow: 0 0 6px rgba(39,174,96,0.6); }
.dot-offline { background: var(--danger); box-shadow: 0 0 6px rgba(231,76,60,0.6); }
.status-label { font-size: 0.85em; padding: 2px 8px; border-radius: 3px; }
.label-online { color: var(--success); background: rgba(39,174,96,0.1); }
.label-offline { color: var(--danger); background: rgba(231,76,60,0.1); }

/* Admin link card */
.admin-link { text-decoration: none; color: var(--text); transition: background 0.2s, border-color 0.2s; }
.admin-link:hover { background: var(--bg-card-hover); border-color: var(--primary); }

/* Online indicator */
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.online-dot.green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.online-dot.yellow { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

/* ==================== HERO (homepage) ==================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.hero-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 14px 18px;
    text-align: center;
    border-top: 3px solid var(--primary);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.hero-stat:nth-child(2) { border-top-color: var(--success); }
.hero-stat:nth-child(3) { border-top-color: var(--accent); }
.hero-stat:nth-child(4) { border-top-color: var(--warning); }
.hero-stat .stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; margin-bottom: 8px; font-size: 1.1em;
    background: rgba(41,128,185,0.1); color: var(--primary);
}
.hero-stat:nth-child(2) .stat-icon { background: rgba(39,174,96,0.1); color: var(--success); }
.hero-stat:nth-child(3) .stat-icon { background: rgba(230,126,34,0.1); color: var(--accent); }
.hero-stat:nth-child(4) .stat-icon { background: rgba(243,156,18,0.1); color: var(--warning); }
.hero-stat .stat-number { font-size: 2em; }

/* Quick links grid (homepage, logged in) */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88em;
    transition: all 0.2s;
}
.quick-link-card:hover {
    background: #f0f4f8;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: var(--text);
}
.quick-link-card i { font-size: 1.5em; }

/* ==================== ITEM DATABASE (admin) ==================== */
.item-filters { display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-input-main { flex: 1; min-width: 200px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 1em; }
.filter-input-main:focus { outline: none; border-color: var(--primary); }
.filter-select { min-width: 120px; }
.filter-level { display: flex; align-items: center; gap: 6px; }
.filter-input-sm { width: 70px; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 0.9em; }
.filter-input-sm:focus { outline: none; border-color: var(--primary); }

.item-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; margin: 20px 0;
}
.item-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
    padding: 12px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.item-card:hover { border-color: var(--primary); background: #f5f9fc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.item-icon-wrap {
    width: 48px; height: 48px; margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    background: #f8f9fa; border-radius: 4px;
}
.item-icon { max-width: 40px; max-height: 40px; image-rendering: pixelated; }
.item-card-info { min-height: 40px; }
.item-card-name { font-size: 0.82em; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-card-meta { display: flex; align-items: center; justify-content: center; gap: 6px; }
.item-level { font-size: 0.75em; color: var(--warning); font-weight: 600; }
.item-id-badge {
    font-size: 0.7em; color: var(--text-dim); background: #f4f4f4; padding: 1px 6px;
    border-radius: 3px; cursor: pointer; font-family: monospace;
}
.item-id-badge:hover { color: var(--primary); background: var(--border); }
.item-cmd-btn {
    font-size: 0.85em; color: var(--text-dim); background: #f4f4f4; padding: 1px 5px;
    border-radius: 3px; cursor: pointer; line-height: 1; user-select: none;
}
.item-cmd-btn:hover { color: var(--success); background: var(--border); }

.copy-notice {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--success); color: white; padding: 10px 24px; border-radius: 4px;
    font-weight: 600; z-index: 2000; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ==================== MS-STYLE TOOLTIP ==================== */
.tooltip-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1500;
}
.ms-tooltip {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1600; display: flex; align-items: flex-start; gap: 8px;
}
.ms-tooltip-inner {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border: 2px solid #c8a24e; border-radius: 4px;
    padding: 16px 18px; min-width: 280px; max-width: 360px;
    box-shadow: 0 0 20px rgba(200,162,78,0.15), 0 8px 32px rgba(0,0,0,0.6);
    font-family: 'Segoe UI', Arial, sans-serif; font-size: 0.88em;
}
.ms-tt-close {
    background: rgba(200,162,78,0.2); border: 1px solid #c8a24e; color: #c8a24e;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1em;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ms-tt-close:hover { background: #c8a24e; color: #0d0d1a; }
.ms-tt-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ms-tt-icon { width: 40px; height: 40px; image-rendering: pixelated; flex-shrink: 0; }
.ms-tt-name { color: #ffd700; font-weight: 700; font-size: 1.1em; line-height: 1.2; }
.ms-tt-category { color: #a0a0c0; font-size: 0.85em; margin-top: 2px; }
.ms-tt-divider { height: 1px; background: linear-gradient(90deg, transparent, #c8a24e44, transparent); margin: 8px 0; }
.ms-tt-section { margin-bottom: 6px; }
.ms-tt-section:empty { display: none; }
.ms-tt-section + .ms-tt-section { border-top: 1px solid rgba(200,162,78,0.15); padding-top: 6px; }
.ms-tt-req { color: #d0d0d0; font-size: 0.88em; line-height: 1.6; }
.ms-tt-req span { color: #ffa500; font-weight: 600; }
.ms-tt-stat { color: #d0d0d0; font-size: 0.88em; line-height: 1.6; }
.stat-pos { color: #66ff66; font-weight: 600; }
.stat-neg { color: #ff6666; font-weight: 600; }
.stat-gold { color: #ffd700; font-weight: 600; }
.ms-tt-price { color: #888; font-size: 0.82em; margin-top: 4px; }
.ms-tt-desc {
    color: #8888aa; font-size: 0.82em; line-height: 1.5;
    border-top: 1px solid rgba(200,162,78,0.15); padding-top: 8px; margin-top: 6px;
}
.ms-tt-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(200,162,78,0.15);
}
.ms-tt-id { font-family: monospace; color: #666; font-size: 0.85em; }

/* ==================== ECONOMY / TOOL / MODAL ==================== */
.tool-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.tool-item:last-child { border-bottom: none; }
.tool-info { display: flex; flex-direction: column; gap: 2px; }
.tool-info strong { color: var(--text); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 4px; padding: 30px; width: 100%; max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-box h2 { color: var(--primary); margin-bottom: 15px; }

/* ==================== ACCOUNT PAGE ==================== */
.account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.account-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    position: relative;
}
.account-action-card:hover {
    background: #f0f4f8;
    border-color: var(--primary);
    color: var(--text);
}
.account-action-card i {
    font-size: 1.5em;
    color: var(--primary);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.account-action-card strong {
    display: block;
    font-size: 0.95em;
    margin-bottom: 2px;
}
.account-action-card span {
    font-size: 0.82em;
    color: var(--text-dim);
}

/* Character selector */
.char-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.char-selector label {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 0.92em;
    white-space: nowrap;
}
.char-selector select {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
}

/* Character profile card (account page) */
.char-profile-card {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 16px;
}
.char-profile-avatar {
    position: relative;
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.char-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.char-profile-level-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    white-space: nowrap;
}
.char-profile-info { flex: 1; min-width: 0; }
.char-profile-name {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 2px;
}
.char-profile-name a { color: var(--primary); text-decoration: none; }
.char-profile-name a:hover { text-decoration: underline; }
.char-profile-job {
    font-size: 0.95em;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.char-profile-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.cps-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.85em;
}
.cps-label { color: var(--text-dim); }
.cps-value { font-weight: 700; color: var(--text); }
.char-profile-bars { max-width: 500px; }
.char-profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Character profile hero (public profile) */
.char-profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}
.char-profile-hero-info { flex: 1; }

/* Equipment bar */
.char-equip-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 16px;
}
.equip-bar-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}
.equip-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.equip-icon-slot {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* Stats grid (public profile) */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.stat-box {
    text-align: center;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 4px;
}
.stat-box-label { display: block; font-size: 0.75em; color: var(--text-dim); font-weight: 600; }
.stat-box-val { display: block; font-size: 1.2em; font-weight: 700; color: var(--primary); }

/* History tabs */
.history-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
    flex-wrap: wrap;
}
.htab {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}
.htab:hover { color: var(--text); background: #f8f9fa; }
.htab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}
.htab-content {
    padding: 16px 0;
    min-height: 100px;
}

/* HP/MP bars */
.bar-group { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.bar-label { font-size: 0.75em; font-weight: 700; color: var(--text-dim); width: 20px; flex-shrink: 0; }
.bar {
    flex: 1;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    min-width: 60px;
}
.bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.bar-hp .bar-fill { background: linear-gradient(to right, #e74c3c, #ff6b6b); }
.bar-mp .bar-fill { background: linear-gradient(to right, #2980b9, #5dade2); }
.bar-value { font-size: 0.7em; color: var(--text-light); white-space: nowrap; min-width: 80px; }

/* ==================== VOTE PAGE ==================== */
.vote-cooldown-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fef9f0 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
}
.vote-cooldown-label {
    font-size: 0.85em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 6px;
}
.vote-cooldown-timer {
    font-size: 2em;
    font-weight: 700;
    color: var(--warning);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* ==================== NEWS ITEMS ==================== */
.news-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92em;
    line-height: 1.5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
a.news-item:hover { background: var(--bg-main); border-radius: 4px; }
.news-item:last-child { border-bottom: none; }
.news-content { line-height: 1.7; }
.news-content h3, .news-content h4 { margin: 16px 0 8px; }
.news-content ul, .news-content ol { margin: 8px 0; padding-left: 24px; }
.news-content li { margin-bottom: 4px; }
.news-content code { background: var(--bg-main); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.news-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
}
.news-badge-news { background: #27ae60; color: white; }
.news-badge-update { background: #3498db; color: white; }
.news-badge-maintenance { background: #e67e22; color: white; }
.news-badge-event { background: #9b59b6; color: white; }
.news-badge-active { background: #27ae60; color: white; }
.news-badge-ended { background: #e74c3c; color: white; }
.news-badge-upcoming { background: #f39c12; color: white; }
.news-date { color: var(--text-light); font-size: 0.88em; white-space: nowrap; }
.news-title { color: var(--link); font-weight: 500; }
.news-title:hover { color: var(--link-hover); }

/* ==================== DOWNLOAD PAGE ==================== */
/* Download page step cards */
.download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0 8px;
}
.download-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8fafe;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}
.download-step:hover { border-color: var(--primary); }
.download-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 0.9em;
}
.download-step-text { flex: 1; }
.download-step-text strong { display: block; margin-bottom: 2px; }
.download-step-text span { font-size: 0.88em; color: var(--text-dim); }
.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.setup-steps {
    padding-left: 20px;
    line-height: 2;
}
.setup-steps li { margin-bottom: 6px; }
.setup-steps code { font-size: 0.88em; }
.faq-item {
    margin-bottom: 14px; padding: 12px 14px; background: #f8fafe;
    border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item p { margin-top: 4px; }

/* ==================== ADMIN LAYOUT ==================== */
.admin-layout {
    display: flex;
    gap: 0;
    min-height: 80vh;
}
.admin-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a2332 0%, #1e2a3a 100%);
    border-right: 1px solid #2c3e50;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-section {
    padding: 0;
}
.admin-sidebar-title {
    padding: 10px 16px 4px;
    font-size: 0.68em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5a7a9a;
    font-weight: 700;
}
.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    color: #8ba4be;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.admin-sidebar-nav a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(255,255,255,0.2);
}
.admin-sidebar-nav a.active {
    color: #ffffff;
    background: rgba(41,128,185,0.2);
    border-left-color: var(--primary);
}
.admin-sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}
.admin-content {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
}
.admin-content h1 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
}
/* Admin pages use full width - no right sidebar */
.admin-page {
    max-width: 100%;
    padding: 0;
    gap: 0;
}
.admin-page .admin-layout {
    flex: 1;
}
.admin-sidebar-brand {
    padding: 14px 16px;
    border-bottom: 1px solid #2c3e50;
    margin-bottom: 6px;
}
.admin-sidebar-brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar-brand a i { color: var(--primary-light); }

/* ==================== FORM INPUTS ==================== */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(41,128,185,0.15);
}

/* ==================== RULES / TERMS PAGE ==================== */
.rules-content { line-height: 1.7; color: var(--text); }
.rules-content h3 { margin: 20px 0 10px; color: var(--primary); font-size: 1.1em; }
.rules-content h3:first-child { margin-top: 0; }
.rules-content ul { margin: 8px 0 12px 20px; }
.rules-content li { margin-bottom: 6px; }
.rules-content p { margin-bottom: 10px; }

/* ==================== ERROR PAGES (404 / 500) ==================== */
.error-page {
    text-align: center;
    padding: 40px 20px 60px;
}
.error-page-art {
    margin-bottom: 10px;
}
.error-ascii {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.65em;
    line-height: 1.25;
    color: var(--text-dim);
    display: inline-block;
    text-align: left;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
}
.error-page-code {
    font-size: 5em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.error-page-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.error-page-desc {
    font-size: 1.05em;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.error-page-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.error-page-hint {
    font-size: 0.88em;
    color: var(--text-light);
}
.error-page-hint i {
    margin-right: 4px;
}

/* ==================== ONLINE PLAYERS ==================== */
.online-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.online-summary-total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}
.online-summary-classes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.online-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.85em;
    font-weight: 600;
}
.online-class-badge i { font-size: 0.9em; }
.online-job-name {
    font-size: 0.88em;
    color: var(--text-dim);
}

/* ==================== DOWNLOAD - SYSTEM REQUIREMENTS ==================== */
.sysreq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.sysreq-col {
    background: #f8fafe;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.sysreq-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}
.sysreq-title i { margin-right: 6px; }

/* ==================== RANKING CLASS FILTER PILLS ==================== */
.ranking-class-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 0;
}
.ranking-class-pill {
    --pill-color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dim);
    background: #f4f4f4;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.ranking-class-pill:hover {
    color: var(--text);
    background: #eee;
    border-color: var(--pill-color);
}
.ranking-class-pill.active {
    color: #fff;
    background: var(--pill-color);
    border-color: var(--pill-color);
}
.ranking-class-pill i { font-size: 0.9em; }

/* Ranking table alternating rows */
.ranking-table tbody tr.row-alt { background: #f9fbfd; }
.ranking-table tbody tr.row-top3 { background: rgba(255,215,0,0.04); }
.ranking-table tbody tr.row-alt.row-top3 { background: rgba(255,215,0,0.06); }
.ranking-table tbody tr:hover { background: #f0f5fa; }

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 24px 0 16px;
    margin-top: auto;
    background: linear-gradient(to bottom, #2980b9, #1a5276);
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    border-top: 3px solid #1a5276;
}
.footer a { color: rgba(255,255,255,0.9); }
.footer a:hover { color: #ffffff; }
.footer-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-legal {
    display: flex;
    gap: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.2);
}
.footer-bottom {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom p { margin-bottom: 4px; }
.footer-disclaimer {
    font-size: 0.85em;
    color: rgba(255,255,255,0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: -1;
    }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .banner-title { font-size: 2em; }
    .nav-links a { padding: 10px 10px; font-size: 0.85em; }
    /* Tables: horizontal scroll wrapper for small screens */
    .data-table {
        font-size: 0.85em;
    }
    .panel-body:has(.data-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .search-form { flex-direction: column; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .admin-sidebar.expanded {
        max-height: 600px;
        overflow-y: auto;
    }
    .admin-sidebar-brand::after {
        content: '\f0c9';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        cursor: pointer;
        font-size: 1.2em;
    }
    .admin-sidebar.expanded .admin-sidebar-brand::after {
        content: '\f00d';
    }
    .admin-content { padding: 12px; }
    .sysreq-grid { grid-template-columns: 1fr; }
    .download-steps { grid-template-columns: 1fr 1fr; }
    .ranking-class-filters { justify-content: center; }
    .footer-legal {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 700px) {
    .char-profile-card { flex-direction: column; align-items: center; text-align: center; }
    .char-profile-stats-grid { justify-content: center; }
    .char-profile-bars { max-width: 100%; }
    .char-profile-actions { justify-content: center; }
    .char-profile-hero { flex-direction: column; text-align: center; }
    .char-equip-bar { flex-direction: column; }
    .equip-icons { justify-content: center; }
    .stats-grid-compact { grid-template-columns: repeat(2, 1fr); }
    .htab { padding: 6px 10px; font-size: 0.8em; }
    .htab .htab-label { display: none; }
    .download-steps { grid-template-columns: 1fr; }
    .page-title { font-size: 1.4em; }
    .ranking-tabs { gap: 2px; }
    .tab { padding: 6px 12px; font-size: 0.82em; }
    .error-page-code { font-size: 3.5em; }
    .error-ascii { font-size: 0.5em; padding: 12px 16px; }
    .online-summary { flex-direction: column; gap: 10px; }
    .footer-content { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
    .navbar .container {
        flex-direction: column;
        gap: 5px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner-rates { flex-wrap: wrap; justify-content: center; }
    .ranking-class-filters { gap: 4px; }
    .ranking-class-pill { padding: 4px 10px; font-size: 0.8em; }
    .pagination { flex-direction: column; gap: 6px; }
    .pagination span { font-size: 0.82em; }
}

/* ==================== FOCUS VISIBLE ==================== */
.admin-sidebar-nav a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
}
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== UTILITY CLASSES ==================== */
.admin-page-title { font-size: 1.4em; font-weight: 600; margin-bottom: 16px; }
.filter-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.td-nowrap { white-space: nowrap; }
.back-link { display: block; margin-top: 15px; }
