/* ================================================================
   LEGENDARY BOOST — Cyberpunk Dark Theme v2.0
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    /* Surfaces */
    --bg: #0a0718;
    --bg-2: #0f0c24;
    --surface: #151030;
    --surface-2: #1c1642;
    --surface-3: #241d54;
    --line: #2c2466;
    --line-2: #3b3178;

    /* Text */
    --text: #ede9f7;
    --text-2: #b4adce;
    --text-3: #7b7698;

    /* Accents */
    --violet: #8b5cf6;
    --violet-2: #a78bfa;
    --violet-3: #7c3aed;
    --pink: #ec4899;
    --pink-2: #f472b6;
    --green: #34d399;
    --green-2: #10b981;
    --red: #f87171;
    --red-2: #ef4444;
    --yellow: #fbbf24;
    --amber: #f59e0b;
    --cyan: #22d3ee;
    --blue: #60a5fa;

    /* Gradients */
    --grad-vp: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    --grad-card: linear-gradient(180deg, #1c1642 0%, #151030 100%);
    --grad-btn: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --grad-btn-hover: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    --grad-header: linear-gradient(180deg, rgba(21, 16, 48, 0.95), rgba(15, 12, 36, 0.95));
    --grad-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --grad-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;
}

/* ── Base Reset ───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1400px 700px at 15% -15%, #2a1f6b 0%, transparent 60%),
        radial-gradient(1000px 600px at 90% -5%, #4a1d5a 0%, transparent 50%),
        radial-gradient(800px 500px at 50% 80%, #1a1140 0%, transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
    background: var(--line-2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--violet);
}

/* ── Typography ───────────────────────────────────────── */
a {
    color: var(--violet-2);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--pink-2);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

.text-gradient {
    background: var(--grad-vp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Layout ───────────────────────────────────────────── */
.tm-page-bg {
    min-height: 100vh;
}

.uk-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.uk-container-center {
    max-width: 1340px;
    margin: 0 auto;
}

.tm-container {
    padding: 20px 0;
}

/* ── Header / Topbar ──────────────────────────────────── */
.tm-headerbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--grad-header);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 16px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.tm-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    border-right: 1px solid var(--line);
    text-decoration: none !important;
}

.tm-logo .logo-icon {
    width: 52px;
    height: 52px;
    background: var(--grad-vp);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.tm-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.tm-logo .logo-main {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    background: var(--grad-vp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.tm-logo .logo-sub {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-3);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 700;
}

.tm-search {
    margin-left: auto;
}

.tm-search input {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 16px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    width: 260px;
    transition: all 0.3s ease;
    outline: none;
}
.tm-search input::placeholder {
    color: var(--text-3);
}
.tm-search input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ── Navigation ───────────────────────────────────────── */
.tm-navbar {
    background: linear-gradient(180deg, rgba(21, 16, 48, 0.9), rgba(15, 12, 36, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 6px 16px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.tm-navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.tm-navbar-nav .nav-item {
    margin: 0;
}

.tm-navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.tm-navbar-nav .nav-link:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
}
.tm-navbar-nav .nav-link.active {
    color: var(--text);
    background: var(--grad-btn);
    box-shadow: var(--glow-violet);
}

/* ── Toolbar (user bar) ──────────────────────────────── */
.tm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(21, 16, 48, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px 20px;
    margin-bottom: 20px;
}

.tm-toolbar .uk-float-left {
    color: var(--text-3);
    font-size: 13px;
}

.auth-btns {
    display: flex;
    gap: 12px;
    list-style: none;
    align-items: center;
}

.auth-link {
    color: var(--text) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: var(--r-sm);
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid var(--line);
    background: var(--surface);
}
.auth-link:hover {
    background: var(--grad-btn) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: var(--glow-violet);
    filter: none !important;
}

.auth-btns li span {
    font-size: 13px;
}
.auth-btns li strong {
    color: var(--violet-2);
    font-weight: 700;
}

/* ── Main Content Area ────────────────────────────────── */
.tm-middle {
    display: flex;
    gap: 20px;
}

.tm-main {
    flex: 1;
    min-width: 0;
}

.tm-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.tm-article {
    margin: 0;
}

.tm-article-content {
    color: var(--text-2);
}

.tm-article-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--grad-vp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Sidebar ──────────────────────────────────────────── */
.tm-sidebar-a {
    width: 260px;
    flex-shrink: 0;
}

.uk-panel-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.uk-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uk-nav-side {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uk-nav-side li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.uk-nav-side li a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text);
}
.uk-nav-side li.uk-active a {
    background: var(--grad-btn);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--glow-violet);
}

/* ── Tables ───────────────────────────────────────────── */
.table, .uk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
}

.uk-table thead th {
    background: var(--surface-2);
    color: var(--text-3);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--line);
    text-align: left;
}

.uk-table tbody tr {
    transition: all 0.2s ease;
}

.uk-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    vertical-align: middle;
}

.uk-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.uk-table tbody tr:hover td {
    color: var(--text);
}

.uk-table-hover tbody tr:hover {
    background: rgba(139, 92, 246, 0.08) !important;
}

.uk-table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Server Cards (TOP / BeFirst) ─────────────────────── */
.top-box {
    background: var(--grad-card) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-xl) !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.top-box:hover {
    border-color: var(--violet) !important;
    box-shadow: var(--glow-violet), var(--shadow);
    transform: translateY(-2px);
}

.top-box .map {
    position: relative;
    text-align: center;
    padding: 0;
}

.top-box .top-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.top-long-hostname {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    display: block;
    padding: 12px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.top-box .map-name {
    display: block;
    color: var(--violet-2);
    font-weight: 600;
    font-size: 13px;
    padding: 0 16px 8px;
}

.top-box .text-center {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.top-box .text-center b {
    color: var(--violet-2);
    font-size: 14px;
}

.server_country {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: auto;
    border-radius: 3px;
    z-index: 2;
}

.server_status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.servers {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.servers.online {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.servers.offline {
    background: var(--red);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

/* ── Server Page ──────────────────────────────────────── */
.uk-progress {
    background: var(--surface-3);
    border-radius: 100px;
    height: 10px;
    overflow: hidden;
}

.uk-progress-bar {
    background: var(--grad-vp);
    border-radius: 100px;
    height: 100%;
    transition: width 0.6s ease;
    font-size: 0;
}

.uk-subnav-pill {
    display: flex;
    gap: 8px;
    list-style: none;
    justify-content: center;
    margin-bottom: 20px;
}

.uk-subnav-pill li a {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.uk-subnav-pill li a:hover {
    border-color: var(--violet);
    color: var(--text);
}
.uk-subnav-pill li.uk-active a {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-violet);
}

/* ── Buttons ──────────────────────────────────────────── */
.uk-button, .btn, .btn-primary, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
    color: #fff !important;
}

.uk-button-primary {
    background: var(--grad-btn);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.uk-button-primary:hover {
    background: var(--grad-btn-hover);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.uk-button-success {
    background: var(--grad-success);
}
.uk-button-success:hover {
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
}

.uk-button-danger {
    background: var(--grad-danger);
}
.uk-button-danger:hover {
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.4);
}

.uk-button-mini {
    padding: 6px 14px;
    font-size: 11px;
}

/* ── Forms ─────────────────────────────────────────────── */
.uk-form input[type="text"],
.uk-form input[type="password"],
.uk-form input[type="email"],
.uk-form input[type="search"],
.uk-form input[type="number"],
.uk-form textarea,
.uk-form select {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 14px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
}
.uk-form input:focus,
.uk-form textarea:focus,
.uk-form select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.uk-form input::placeholder {
    color: var(--text-3);
}

.uk-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uk-form select {
    background: var(--surface-3);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b7698' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.uk-form select option {
    background: var(--surface-3);
    color: var(--text);
}

/* ── Alerts ───────────────────────────────────────────── */
.uk-alert {
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 13px;
    position: relative;
}

.uk-alert-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--green);
}

.uk-alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--yellow);
}

.uk-alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--red);
}

.uk-alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--blue);
}

.uk-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}
.uk-alert-close:hover {
    color: var(--text);
}

/* ── Page Header ──────────────────────────────────────── */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--grad-vp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    display: inline-block;
}

/* ── 404 Page ─────────────────────────────────────────── */
.tm-error-headline {
    font-size: 120px;
    font-weight: 800;
    background: var(--grad-vp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin: 0;
}

/* ── Footer ───────────────────────────────────────────── */
.tm-block-bottom {
    margin-top: 30px;
}

.tm-footer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 20px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    position: relative;
}

.tm-footer a {
    color: var(--violet-2);
    font-weight: 600;
}
.tm-footer a:hover {
    color: var(--pink-2);
}

.tm-totop-scroller {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--grad-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-violet);
    text-decoration: none;
    transition: all 0.3s ease;
}
.tm-totop-scroller::after {
    content: '↑';
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.tm-totop-scroller:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* ── Grid System ──────────────────────────────────────── */
.uk-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.uk-grid > * {
    flex-shrink: 0;
}

.uk-width-1-1 {
    width: 100% !important;
}
.uk-width-1-2 {
    width: calc(50% - 10px) !important;
}
.uk-width-1-3 {
    width: calc(33.333% - 14px) !important;
}
.uk-width-2-3 {
    width: calc(66.666% - 7px) !important;
}
.uk-width-1-4 {
    width: calc(25% - 15px) !important;
}
.uk-width-3-4 {
    width: calc(75% - 5px) !important;
}
.uk-width-5-10 {
    width: calc(50% - 10px) !important;
}
.uk-width-6-10 {
    width: calc(60% - 8px) !important;
}
.uk-width-4-10 {
    width: calc(40% - 12px) !important;
}
.uk-width-medium {
    width: 100% !important;
}
.uk-width-medium-1-1 {
    width: 100% !important;
}
.uk-width-medium-1-2 {
    width: calc(50% - 10px) !important;
}
.uk-width-medium-1-3 {
    width: calc(33.333% - 14px) !important;
}
.uk-width-medium-1-4 {
    width: calc(25% - 15px) !important;
}
.uk-width-medium-3-4 {
    width: calc(75% - 5px) !important;
}

/* ── Panel Box Secondary ──────────────────────────────── */
.uk-panel-box-secondary {
    background: var(--surface-2) !important;
}

/* ── Animation ────────────────────────────────────────── */
.uk-animation-scale-up {
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Well / Login Box ─────────────────────────────────── */
.well, .form-horizontal {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
}

.control-group {
    margin-bottom: 16px;
}

.control-label {
    margin-bottom: 6px;
}

.control-label label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.controls input[type="text"],
.controls input[type="password"],
.controls input[type="email"] {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 14px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}
.controls input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.star {
    color: var(--red);
}


/* ── Cabinet Page ──────────────────────────────────────── */
.cabinet-server-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cabinet-server-row img {
    flex-shrink: 0;
}

.cabinet-add-server-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--grad-btn);
    color: #fff !important;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: var(--glow-violet);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cabinet-add-server-btn:hover {
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

/* Server settings fields */
.server-settings-field {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 10px;
}

.server-settings-field:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.server-settings-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* Delete confirmation */
.delete-form {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-top: 24px;
}

.delete-form h4 {
    color: var(--red);
    font-size: 16px;
    margin-bottom: 8px;
}

.delete-form p {
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: 16px;
}

.delete-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--grad-danger);
    color: #fff !important;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.4);
}

.cancel-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text) !important;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.cancel-btn:hover {
    border-color: var(--text);
}

.save-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: var(--grad-success);
    color: #fff !important;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(52, 211, 153, 0.2);
}

.save-btn:hover {
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.4);
}

/* Cabinet menu sidebar */
.cabinet-menu-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.cabinet-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cabinet-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cabinet-menu-list li a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cabinet-menu-list li a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text);
}

.cabinet-menu-list li.active a {
    background: var(--grad-btn);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--glow-violet);
}

/* Add server panel */
.add-server-panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.add-server-panel input,
.add-server-panel select {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 14px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    width: 250px;
    margin-right: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.add-server-panel select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b7698' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.add-server-panel input:focus,
.add-server-panel select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Table in cabinet - fix DataTable appearance */
#servers_table {
    color: var(--text-2);
}

#servers_table thead th {
    background: var(--surface-2) !important;
    color: var(--text-3) !important;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 14px;
    border-bottom: 2px solid var(--line);
    text-align: left;
}

#servers_table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
}

#servers_table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* Balance display */
.balance-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--text);
    background: var(--surfade-3);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
}

.balance-currency {
    color: var(--violet-2);
}

/* Payment method images */
.payment-method-img {
    border-radius: var(--r-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.payment-method-img:hover {
    border-color: var(--violet);
    box-shadow: var(--glow-violet);
}

.payment-method-img.selected {
    border-color: var(--violet);
    box-shadow: var(--glow-violet);
}


/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
    .tm-headerbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    .tm-search input {
        width: 100%;
    }
    .tm-middle {
        flex-direction: column;
    }
    .tm-sidebar-a {
        width: 100% !important;
    }
    .tm-navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tm-toolbar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .tm-toolbar-left, .tm-toolbar-right {
        width: 100%;
        justify-content: center;
    }
    .tm-content {
        padding: 16px;
    }
    .tm-article-title {
        font-size: 20px;
    }
    .tm-error-headline {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .uk-width-1-1,
    .uk-width-1-2,
    .uk-width-1-3,
    .uk-width-1-4,
    .uk-width-3-4,
    .uk-width-5-10,
    .uk-width-6-10,
    .uk-width-4-10,
    .uk-width-medium-1-1,
    .uk-width-medium-1-2,
    .uk-width-medium-1-3,
    .uk-width-medium-1-4,
    .uk-width-medium-3-4 {
        width: 100% !important;
    }
}

/* ── DataTables overrides ─────────────────────────────── */
.dataTables_wrapper {
    color: var(--text-2);
}

.dataTables_length label,
.dataTables_filter label,
.dataTables_info {
    color: var(--text-3) !important;
    font-size: 13px;
}

.dataTables_filter input {
    background: var(--surface-3) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-sm) !important;
    color: var(--text) !important;
    padding: 8px 12px !important;
}

.dataTables_paginate .paginate_button {
    background: var(--surface-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-sm) !important;
    color: var(--text-2) !important;
    padding: 6px 12px !important;
    margin: 2px !important;
}
.dataTables_paginate .paginate_button:hover {
    background: var(--violet) !important;
    color: #fff !important;
    border-color: var(--violet) !important;
}
.dataTables_paginate .paginate_button.current {
    background: var(--grad-btn) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ── Misc ──────────────────────────────────────────────── */
.uk-text-muted {
    color: var(--text-3) !important;
}

.uk-h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.uk-h3 {
    font-size: 18px;
    font-weight: 700;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}

.uk-thumbnail {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.uk-thumbnail-caption {
    background: var(--surface-2);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-2);
}

fieldset {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 16px;
}

legend {
    font-weight: 700;
    color: var(--violet-2);
    font-size: 14px;
    padding: 0 10px;
}

/* ── Checkbox / Radio ─────────────────────────────────── */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--violet);
}

/* ── Tooltip ──────────────────────────────────────────── */
[data-uk-tooltip] {
    position: relative;
    cursor: pointer;
}

.uk-icon-gamepad::before {
    content: '🎮';
}

.tm-grid-block {
    margin-bottom: 20px;
}

/* ── Server connect link ──────────────────────────────── */
a[data-uk-tooltip] {
    color: var(--green) !important;
}

a[data-uk-tooltip][disabled] {
    color: var(--text-3) !important;
    pointer-events: none;
}

/* ── Spinner ──────────────────────────────────────────── */
.uk-icon-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Hidden utilities ─────────────────────────────────── */
.uk-hidden {
    display: none !important;
}
.uk-hidden-small {
    display: block;
}
@media (max-width: 768px) {
    .uk-hidden-small {
        display: none !important;
    }
}

.uk-float-left { float: left; }
.uk-float-right { float: right; }
.uk-clearfix::after { content: ''; display: table; clear: both; }
.text-center { text-align: center; }

/* ── Map Thumbnail in Server Table ─────────────────────── */
.srv-map-thumb{width:70px;height:40px;object-fit:cover;border-radius:5px;vertical-align:middle}
