/* ============================================================
   LEGENDARY BOOST — Дизайн 
   Светлая тема + синий акцент + Exo 2
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --bg-body: #f4f4f4;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #1f2937;
    --bg-input: #f9fafb;
    --bg-tag: #eef2ff;

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-white: #ffffff;

    --accent: #366af3;
    --accent-hover: #2558e0;
    --accent-light: #eef2ff;

    --border: #e5e7eb;
    --border-light: #f3f4f6;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06);

    --max-width: 1200px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }
body {
    background: var(--bg-body) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-top: 0;
}
h2 { font-size: 28px; margin-bottom: 24px; }
h3 { font-size: 20px; }
a, .uk-link { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover, .uk-link:hover { color: var(--accent-hover); text-decoration: none; }

/* --- Selection --- */
::selection { background: var(--accent); color: #fff; }

/* --- Container --- */
.tm-page-bg { background: var(--bg-body) !important; }
.tm-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.uk-container,
.uk-container-center {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HEADER - Logo
   ============================================================ */
.tm-headerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
}
.tm-headerbar .tm-logo img {
    height: 34px;
    width: auto;
}

/* ============================================================
   TOP BLOCK (белая полоса: лого + навбар + тулбар)
   ============================================================ */
.tm-top-block {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin: 0 -20px;
    padding: 0 20px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.tm-navbar, .uk-navbar {
    background: var(--bg-white) !important;
    background-image: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
    border-radius: 0;
}
.tm-navbar .uk-navbar-nav > li > a,
.uk-navbar-nav > li > a {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-secondary) !important;
    height: 56px;
    line-height: 56px;
    padding: 0 18px;
    transition: color 0.2s;
    position: relative;
}
.tm-navbar .uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li > a:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.tm-navbar .uk-navbar-nav > li > a::after,
.uk-navbar-nav > li > a::after {
    content: none;
}
.tm-navbar .uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li.uk-active > a {
    color: var(--accent) !important;
    background: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

/* ============================================================
   TOOLBAR / SPEEDBAR
   ============================================================ */
.tm-toolbar {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 8px 0;
    margin-bottom: 0;
}

/* ============================================================
   AUTH BUTTONS
   ============================================================ */
.auth-btns {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.auth-link {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: inline-block;
}
/* Auth link (вход) */
.auth-link[href*="/account/auth/"] {
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
    background: transparent;
}
.auth-link[href*="/account/auth/"]:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
}
/* Reg link (регистрация) */
.auth-link[href*="/account/reg/"] {
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent);
}
.auth-link[href*="/account/reg/"]:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover);
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.tm-grid-block,
.tm-block-bottom,
.tm-content-boxed .tm-content,
.uk-article,
.tm-middle > [class*='tm-sidebar-'] > .uk-panel {
    background: var(--bg-white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md) !important;
    margin-top: 20px;
}
.uk-panel-box {
    background: var(--bg-white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   SERVICE CARDS (TOP, BOOST)
   ============================================================ */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.service-card .service-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.service-card .service-tag.top {
    background: #eef2ff;
    color: var(--accent);
}
.service-card .service-tag.boost {
    background: #ecfdf5;
    color: #059669;
}
.service-card .service-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 18px;
}
.service-card .service-btn {
    display: inline-block;
    padding: 11px 28px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.2s;
    font-size: 15px;
    text-decoration: none !important;
    align-self: flex-start;
}
.service-card .service-btn:hover {
    background: var(--accent-hover);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    background: transparent;
    text-align: center;
    padding: 10px 15px;
}
.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: var(--accent);
}
.feature-card .feature-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.uk-button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-primary);
    background-image: none;
    line-height: normal;
    min-height: auto;
}
.uk-button:hover {
    background: var(--bg-body);
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.uk-button-primary {
    background: var(--accent) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: none !important;
}
.uk-button-primary:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: var(--shadow-sm) !important;
}
.uk-button-success {
    background: #059669 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #059669 !important;
}
.uk-button-danger {
    background: #ef4444 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}
.uk-button-mini {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 5px;
}
.uk-button-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   TABLES
   ============================================================ */
.uk-table { color: var(--text-primary); font-size: 14px; }
.uk-table th {
    color: var(--text-muted);
    text-transform: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    border-bottom: 2px solid var(--border);
    background: var(--bg-body);
    padding: 12px 10px;
}
.uk-table td {
    border-bottom: 1px solid var(--border-light);
    padding: 12px 10px;
}
.uk-table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfc;
}
.uk-table-hover tbody tr:hover {
    background: var(--accent-light);
}

/* --- DataTables --- */
.dataTables_wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* --- Pagination --- */
.uk-pagination > li > a,
.uk-pagination > li > span {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 6px 13px;
}
.uk-pagination > .uk-active > span {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    background-image: none !important;
}
.uk-pagination > li > a:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}
ul.pagination li a {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
ul.pagination li.current a {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
.uk-form input:not([type="radio"]):not([type="checkbox"]),
.uk-form select,
.uk-form textarea {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    height: auto !important;
    font-size: 15px;
    transition: all 0.2s;
}
.uk-form input:focus,
.uk-form select:focus,
.uk-form textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(54, 106, 243, 0.1) !important;
    outline: none;
    background: #fff !important;
}

/* ============================================================
   ALERTS
   ============================================================ */
.uk-alert {
    background: var(--accent-light);
    border: 1px solid rgba(54, 106, 243, 0.2);
    color: var(--accent);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 15px;
}
.uk-alert-success {
    background: #ecfdf5;
    border-color: rgba(5, 150, 105, 0.2);
    color: #059669;
}
.uk-alert-warning {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.2);
    color: #d97706;
}
.uk-alert-danger {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ============================================================
   MODALS
   ============================================================ */
.uk-modal { background: rgba(0, 0, 0, 0.5); }
.uk-modal-dialog {
    background: var(--bg-white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}
.uk-modal-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    padding-bottom: 14px;
}
.uk-modal-title {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
}
.uk-modal-close { color: var(--text-muted) !important; }
.uk-modal-close:hover { color: var(--text-primary) !important; }

/* ============================================================
   SEARCH
   ============================================================ */
.uk-search-field {
    width: 220px !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 9px 14px !important;
    font-size: 14px;
    transition: all 0.2s;
    height: auto !important;
}
.uk-search-field:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(54, 106, 243, 0.1) !important;
    width: 260px !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tm-footer {
    background: var(--bg-footer) !important;
    color: #9ca3af !important;
    border-top: none;
    padding: 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center;
    font-size: 14px;
}
.tm-footer a { color: #d1d5db !important; }
.tm-footer a:hover { color: #fff !important; }
.tm-totop-scroller {
    color: #9ca3af !important;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    top: 16px;
    right: 20px;
    font-size: 14px;
}
.tm-totop-scroller:hover {
    background: var(--accent);
    color: #fff !important;
}

/* ============================================================
   BADGES
   ============================================================ */
.uk-badge {
    background: var(--accent) !important;
    background-image: none !important;
    border-radius: 20px;
    font-weight: 600;
    padding: 3px 10px;
    font-size: 12px;
}

/* ============================================================
   TABS
   ============================================================ */
.uk-tab { border-bottom: 2px solid var(--border); }
.uk-tab > li > a {
    background: transparent !important;
    background-image: none !important;
    color: var(--text-secondary) !important;
    border: none !important;
    font-weight: 500;
    padding: 12px 20px;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}
.uk-tab > li > a:hover {
    color: var(--accent) !important;
    background: transparent !important;
}
.uk-tab > li.uk-active > a {
    background: transparent !important;
    color: var(--accent) !important;
    border: none !important;
    border-bottom: 2px solid var(--accent) !important;
    font-weight: 600;
    margin-bottom: -2px;
    text-shadow: none;
}

/* ============================================================
   SERVER CARDS (листинг)
   ============================================================ */
.top-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}
.top-box:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.servers.online { background-color: #10b981; box-shadow: none; }
.servers.offline { background-color: #f59e0b; box-shadow: none; }
.map-name {
    background: rgba(0,0,0,0.6);
    font-family: var(--font-body);
    text-transform: none;
    font-weight: 500;
    font-size: 12px;
}
.top-long-hostname { color: var(--text-primary); }

/* ============================================================
   PROGRESS
   ============================================================ */
.uk-progress {
    background: var(--border-light);
    box-shadow: none;
    border-radius: 100px;
    height: 12px;
}
.uk-progress-bar {
    background: var(--accent) !important;
    background-image: none !important;
    border-radius: 100px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* ============================================================
   HERO STATS
   ============================================================ */
.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.stat-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    flex: 1;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}
.stat-item .stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    color: var(--accent);
}
.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.uk-dropdown {
    background: var(--bg-white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 767px) {
    .tm-toolbar { flex-direction: column; gap: 8px; }
    .tm-headerbar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .hero-stats { flex-direction: column; }
    .stat-item { min-width: 100%; }
    .tm-container { padding: 0 12px; }
    .tm-top-block { margin: 0 -12px; padding: 0 12px; }
}

/* ============================================================
   HOMEPAGE: Секция «Популярные услуги»
   ============================================================ */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 12px;
}
@media (max-width: 767px) {
    .home-services-grid { grid-template-columns: 1fr; }
}
.home-svc-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.home-svc-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.home-svc-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.home-svc-tag.top    { background: #eef2ff; color: var(--accent); }
.home-svc-tag.vip    { background: #fef3c7; color: #d97706; }
.home-svc-tag.boost  { background: #ecfdf5; color: #059669; }
.home-svc-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 18px;
}
.home-svc-btn {
    display: inline-block;
    padding: 11px 28px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.2s;
    font-size: 15px;
    text-decoration: none !important;
    align-self: flex-start;
}
.home-svc-btn:hover { background: var(--accent-hover); }

/* ============================================================
   HOMEPAGE: Секция «Информация о мониторинге»
   ============================================================ */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 767px) {
    .home-features-grid { grid-template-columns: 1fr; }
}
.home-feat-card {
    text-align: center;
    padding: 10px 15px;
}
.home-feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: var(--accent);
}
.home-feat-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}
/* FAQ CTA */
.home-faq-cta {
    text-align: center;
    padding: 20px 0;
    margin-top: 8px;
}
.home-faq-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 4px 0;
}
.home-faq-cta a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.home-faq-cta a:hover { color: var(--accent-hover); }

/* ============================================================
   HOMEPAGE: Секция «Новости»
   ============================================================ */
.home-news-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    max-width: 500px;
    box-shadow: var(--shadow-sm);
}
.home-news-card h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
}
.home-news-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 6px;
}
.home-news-date {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   HOMEPAGE: Статистика (счётчики)
   ============================================================ */
.home-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.home-stat-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    text-align: center;
    flex: 1;
    min-width: 130px;
    box-shadow: var(--shadow-sm);
}
.home-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--accent);
}
.home-stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
   FOOTER: Ссылки и соцсети
   ============================================================ */
.tm-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0 8px;
    list-style: none;
    padding: 0;
}
.tm-footer-links a {
    color: #d1d5db !important;
    font-size: 13px;
    text-decoration: none;
}
.tm-footer-links a:hover { color: #fff !important; }
.tm-footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}
.tm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d1d5db !important;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
}
.tm-footer-social a:hover {
    background: var(--accent);
    color: #fff !important;
}

/* ============================================================
   FOOTER: Юридическое лицо
   ============================================================ */
.tm-footer-legal {
    margin: 20px 0 16px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tm-footer-legal p {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
    margin: 2px 0;
}
.tm-footer-legal p:first-child {
    color: #d1d5db;
    font-weight: 600;
    font-size: 14px;
}

