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

:root {
    --red:       #E24B4A;
    --red-light: #FCEBEB;
    --red-dark:  #A32D2D;
    --dark:      #1A1A19;
    --dark-2:    #2C2C2A;
    --gray-50:   #F9F9F8;
    --gray-100:  #F1EFE8;
    --gray-200:  #D3D1C7;
    --gray-400:  #888780;
    --gray-600:  #5F5E5A;
    --gray-700:  #444441;
    --gold:      #B8860B;
    --silver:    #888780;
    --bronze:    #8B5E3C;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: #F5F4F0;
}

.container { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* ¦¦ Header ¦¦ */
.site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.logo-icon { color: var(--red); font-style: normal; }
.logo strong { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.15s;
}

.main-nav a:hover { color: #fff; }

.btn-nav {
    background: var(--red) !important;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px !important;
    font-weight: 600;
    transition: opacity 0.15s !important;
}

.btn-nav:hover { opacity: 0.88; color: #fff !important; }

/* ¦¦ Hero ¦¦ */
.hero {
    background: var(--dark);
    padding: 0 0 20px;
    border-bottom: 3px solid var(--red);
    margin-bottom: 0;
}

.hero .container { padding-top: 18px; }

.hero-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-sub { color: var(--gray-400); font-size: 13px; }

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}

.hero-stat { display: flex; flex-direction: column; gap: 2px; }

.hero-stat-n {
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.hero-stat-l { font-size: 11px; color: var(--gray-400); }

/* ¦¦ Main ¦¦ */
.site-main { padding: 1.25rem 0 3rem; }

/* ¦¦ Footer ¦¦ */
.site-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 0;
    background: #fff;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer p { font-size: 13px; color: var(--gray-400); }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer nav a { font-size: 13px; color: var(--gray-400); text-decoration: none; }
.site-footer nav a:hover { color: var(--dark); }

/* ¦¦ Controls ¦¦ */
.toplist-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.tab {
    text-decoration: none;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-400);
    transition: all 0.15s;
    cursor: pointer;
}

.tab:hover { border-color: var(--gray-400); color: var(--dark); }

.tab.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.search-form { display: flex; gap: 6px; }

.search-input {
    padding: 7px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
    color: var(--dark);
    width: 180px;
    transition: border-color 0.15s;
    font-family: inherit;
}

.search-input:focus { outline: none; border-color: var(--red); }

.search-btn {
    padding: 7px 14px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
}

.search-btn:hover { opacity: 0.85; }

/* ¦¦ Server list ¦¦ */
.server-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.server-card {
    background: #fff;
    border: 1px solid #E8E6E0;
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    transition: border-color 0.15s;
}

.server-card:hover { border-color: var(--gray-400); }

.rank-col {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #FAFAF8;
    border-right: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.rank-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-400);
}

.rank-num.gold   { color: var(--gold); }
.rank-num.silver { color: var(--silver); }
.rank-num.bronze { color: var(--bronze); }

.accent-bar {
    width: 3px;
    background: var(--gray-100);
    flex-shrink: 0;
}

.accent-bar.top1 { background: var(--gold); }
.accent-bar.top2 { background: var(--silver); }
.accent-bar.top3 { background: var(--bronze); }

.server-body {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}

.server-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.server-name:hover { color: var(--red); }

.server-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.ip { font-size: 11px; color: var(--gray-400); }

.badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-pvp      { background: #FCEBEB; color: #A32D2D; }
.badge-pvm      { background: #EAF3DE; color: #3B6D11; }
.badge-myko     { background: #E6F1FB; color: #185FA5; }
.badge-official { background: #FAEEDA; color: #854F0B; }
.badge-online   { background: #EAF3DE; color: #3B6D11; }
.badge-offline  { background: var(--gray-100); color: var(--gray-400); }

.server-desc {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    height: 2px;
    background: var(--gray-100);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border-left: 1px solid var(--gray-100);
    min-width: 72px;
    flex-shrink: 0;
}

.vote-count { font-size: 18px; font-weight: 700; color: var(--dark); line-height: 1; }
.vote-label { font-size: 10px; color: var(--gray-400); }

.vote-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-600);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.vote-btn:hover:not(:disabled) {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.vote-btn:disabled { opacity: 0.4; cursor: default; }
.vote-btn.voted { background: var(--red-light); border-color: var(--red); color: var(--red); }

.btn-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--gray-400);
    font-size: 10px;
    text-decoration: none;
    transition: all 0.15s;
    margin-top: 2px;
}

.btn-website:hover { background: var(--gray-100); color: var(--dark); }

/* ¦¦ Search info ¦¦ */
.search-info {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-info strong { color: var(--dark); }
.search-info em { color: var(--gray-600); font-style: normal; }
.search-info a { color: var(--red); text-decoration: none; }
.search-info a:hover { text-decoration: underline; }

/* ¦¦ Pagination ¦¦ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

.page-btn:hover { border-color: var(--gray-400); color: var(--dark); }

.page-btn.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    font-weight: 500;
}

.page-dots { font-size: 13px; color: var(--gray-400); padding: 0 4px; }

/* ¦¦ Empty ¦¦ */
.empty { color: var(--gray-400); font-size: 14px; padding: 2rem 0; }
.empty a { color: var(--red); }

/* ¦¦ Sunucu Ekle ¦¦ */
.form-head { margin-bottom: 1.5rem; }
.form-head h1 { font-size: 24px; font-weight: 700; }

.error-list {
    list-style: none;
    background: var(--red-light);
    border: 1px solid #F09595;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 1.25rem;
}

.error-list li { font-size: 14px; color: var(--red-dark); }

.server-form {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 520px;
}

.form-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; font-weight: 500; color: var(--gray-600); }

.form-group input,
.form-group select,
.server-form textarea {
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--dark);
    background: var(--gray-50);
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.server-form textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}

.server-form textarea { resize: vertical; }

.char-count { font-size: 11px; color: var(--gray-400); text-align: right; display: block; margin-top: 4px; }

.btn-submit {
    padding: 11px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
}

.btn-submit:hover { opacity: 0.88; }

/* ¦¦ Admin Login ¦¦ */
.admin-login { display: flex; justify-content: center; padding: 3rem 0; }

.login-box {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
}

.login-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.login-header h1 { font-size: 20px; font-weight: 700; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 1rem; }
.alert-error { background: var(--red-light); color: var(--red-dark); border: 1px solid #F09595; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }

/* ¦¦ Admin Panel ¦¦ */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-topbar h1 { font-size: 22px; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-user { font-size: 13px; color: var(--gray-400); }

.btn-logout {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.15s;
}

.btn-logout:hover { background: var(--red-light); color: var(--red-dark); border-color: #F09595; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card--warning { border-left: 3px solid #EF9F27; border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value { font-size: 28px; font-weight: 700; color: var(--dark); }

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }

.admin-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    background: var(--gray-50);
}

.admin-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:h