:root {
    --bg: #fbf9f8;
    --surface: #ffffff;
    --surface-soft: #f6f3f2;
    --surface-strong: #ece7e6;
    --text: #1b1c1c;
    --text-muted: #5b4f51;
    --primary: #57001a;
    --primary-2: #8d0f32;
    --primary-soft: #ffd9dc;
    --action-1: #57001a;
    --action-2: #80002a;
    --focus-ring: rgba(87, 0, 26, 0.12);
    --border-soft: rgba(122, 94, 99, 0.18);
    --success: #2e7d32;
    --danger: #c62828;
    --shadow-soft: 0 20px 40px rgba(88, 65, 67, 0.08);
    --footer-bg: linear-gradient(135deg, #3f0f1b 0%, #5d1327 100%);
    --footer-text: #f4eaec;
    --footer-subtext: #e7ced3;
    --footer-chip: rgba(255, 255, 255, 0.07);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-bottom: #ebd7da;
    --radius-lg: 16px;
    --radius-md: 12px;
}

.dark {
    --bg: #1b1c1c;
    --surface: #303030;
    --surface-soft: #252525;
    --surface-strong: #404040;
    --text: #fbf9f8;
    --text-muted: #dfbfc1;
    --primary: #ffb2ba;
    --primary-2: #ff8294;
    --primary-soft: rgba(255, 178, 186, 0.15);
    --action-1: #80002a;
    --action-2: #ba1a1a;
    --focus-ring: rgba(255, 178, 186, 0.18);
    --border-soft: rgba(223, 191, 193, 0.3);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.32);
    --footer-bg: #252525;
    --footer-text: #fbf9f8;
    --footer-subtext: #dfbfc1;
    --footer-chip: #303030;
    --footer-border: rgba(223, 191, 193, 0.2);
    --footer-bottom: #dfbfc1;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #fbe6ea 0, var(--bg) 35%);
    color: var(--text);
    min-height: 100vh;
}

.dark body {
    background: radial-gradient(circle at top right, #4a2130 0, var(--bg) 32%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

[class*='col-'] {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.col-xs-4 {
    width: 34%;
}

.col-xs-8 {
    width: 66%;
}

@media (min-width: 768px) {
    .col-sm-12 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-8 {
        width: 66.666%;
    }

    .col-md-12 {
        width: 100%;
    }

    .col-md-offset-3 {
        margin-left: 25%;
    }
}

.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger);
}

.ml-auto {
    margin-left: auto;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(130, 94, 101, 0.15);
}

.dark .app-header {
    background: rgba(27, 28, 28, 0.9);
    border-bottom-color: var(--border-soft);
}

.app-header-top {
    border-bottom: 1px solid var(--border-soft);
}

.app-header-top-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.app-main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-right: 10px;
}

.app-main-nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.app-main-nav a:hover,
.app-main-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-theme-toggle {
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--primary);
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-theme-toggle .theme-icon-light {
    display: none;
}

.dark .app-theme-toggle .theme-icon-dark {
    display: none;
}

.dark .app-theme-toggle .theme-icon-light {
    display: inline-block;
}

.app-nav-toggle {
    display: none;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--primary);
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.app-services-strip {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
}

.app-services-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    white-space: normal;
    padding: 10px 0 12px;
    justify-content: center;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: 0.2s ease;
}

.service-chip:hover,
.service-chip.is-active {
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: #fff;
    border-color: transparent;
}

.app-mobile-nav {
    border-top: 1px solid rgba(130, 94, 101, 0.15);
    background: var(--surface);
    padding: 12px 0;
}

.app-mobile-nav-section {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.app-mobile-nav-section a {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.app-mobile-nav-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-main-content {
    padding: 26px 0 30px;
}

.app-alerts-wrap {
    margin-top: 14px;
}

.ad-slot {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.ad-slot-inline {
    margin-top: 18px;
}

.ad-slot-footer {
    margin-bottom: 8px;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.alert-danger {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger);
    border: 1px solid rgba(198, 40, 40, 0.25);
}

.section-block {
    margin-top: 14px;
    margin-bottom: 26px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.breadcrumb-nav a {
    color: var(--primary);
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-hero-section {
    padding-top: 8px;
}

.home-hero-box {
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: #fff;
    border-radius: 22px;
    padding: clamp(18px, 4vw, 34px);
    box-shadow: var(--shadow-soft);
}

.home-hero-box .hero-kicker {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.8;
    font-weight: 700;
}

.home-hero-box h1 {
    margin: 8px 0;
    font-size: clamp(32px, 6vw, 62px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.home-hero-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    max-width: 700px;
    opacity: 0.95;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.cards-grid-services {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.service-card,
.continent-card,
.country-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(88, 65, 67, 0.05);
}

.service-card h3,
.continent-card h3,
.country-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.service-card ul,
.meta-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.service-card ul {
    min-height: 100px;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}

.primary-link:hover {
    opacity: 0.94;
}

.continent-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.continent-card-head span {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap;
}

.continent-flags-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.continent-flags-strip img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.flag-wrapper {
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-flag-large {
    width: 62px;
    height: auto;
}

.country-name-text {
    background: var(--surface-strong);
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 10px;
    display: inline-block;
}

.server-list-wrap {
    display: grid;
    gap: 12px;
}

.server-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: var(--surface);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.server-card-main {
    flex: 1;
}

.server-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.server-identity h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
}

.server-id-text {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.server-card .meta-list {
    margin-top: 0;
}

.server-card-actions {
    min-width: 150px;
}

.server-card-actions .primary-link {
    width: 100%;
    margin-top: 0;
}

.empty-state {
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(130, 94, 101, 0.35);
    background: var(--surface);
    padding: 20px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.page-content-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(88, 65, 67, 0.05);
    line-height: 1.8;
}

.page-content-card p,
.page-content-card li {
    color: var(--text-muted);
    font-size: 15px;
}

.account-livewire-shell {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 10px 24px rgba(88, 65, 67, 0.06);
}

.account-widget {
    max-width: 880px;
    margin: 0 auto;
}

.panel {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    background: var(--surface);
}

.panel-heading {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.panel-body {
    padding: 16px;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--surface);
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: #fff;
}

.btn-secondary {
    background: #747c85;
    color: #fff;
}

.btn-sm {
    padding: 8px 10px;
    font-size: 11px;
}

.spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    border: 0.2em solid rgba(87, 0, 26, 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    inset: 0;
    background: rgba(15, 11, 12, 0.55);
    padding: 20px 0;
    overflow: auto;
}

.modal.in {
    display: block;
}

.modal-dialog {
    max-width: 620px;
    margin: 26px auto;
    padding: 0 16px;
}

.modal-content {
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 14px 16px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(130, 94, 101, 0.15);
}

.modal-footer {
    border-top: 1px solid rgba(130, 94, 101, 0.15);
}

.close {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.app-footer {
    margin-top: 30px;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.app-footer-top {
    padding: 24px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.app-footer-brand {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.app-footer-text {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--footer-subtext);
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.app-footer-links a {
    color: var(--footer-text);
    background: var(--footer-chip);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 700;
}

.app-footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 12px 16px 16px;
    font-size: 13px;
    color: var(--footer-bottom);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 992px) {
    .app-main-nav {
        display: none;
    }

    .app-nav-toggle {
        display: inline-flex;
    }

    .app-theme-toggle {
        display: inline-flex;
    }

    .server-card {
        flex-direction: column;
        align-items: stretch;
    }

    .server-card-actions {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .app-header-top-inner {
        min-height: 68px;
    }

    .app-brand {
        font-size: 20px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .home-hero-box h1 {
        font-size: 36px;
    }

    .app-mobile-nav-services {
        grid-template-columns: 1fr;
    }

    .app-services-strip {
        display: none;
    }

    .col-xs-4,
    .col-xs-8 {
        width: 100%;
    }
}
