/* ==========================================================
   KloxVPN Theme — Design system aligned with klox.app
   Layers on top of Tailwind. Do NOT edit tailwind.css.
   ========================================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --klox-navy: #18398c;
    --klox-blue: #3d7ce6;
    --klox-light-blue: #5b9bf0;
    --klox-accent: #2563eb;
    --klox-dark: #0f1f4b;
    --klox-gray-900: #111827;
    --klox-gray-50: #f9fafb;
    --klox-radius: 3px;
    --sidebar-width: 250px;
}

/* ---- Base / Reset ---- */
body {
    font-family:
        -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    margin: 0;
}

/* ---- Color Utilities ---- */
.bg-klox-navy {
    background-color: var(--klox-navy);
}
.bg-klox-blue {
    background-color: var(--klox-blue);
}
.bg-klox-light-blue {
    background-color: var(--klox-light-blue);
}
.bg-klox-dark {
    background-color: var(--klox-dark);
}
.bg-klox-gray-900 {
    background-color: var(--klox-gray-900);
}

.text-klox-navy {
    color: var(--klox-navy);
}
.text-klox-blue {
    color: var(--klox-blue);
}
.text-klox-light-blue {
    color: var(--klox-light-blue);
}

.border-klox-navy {
    border-color: var(--klox-navy);
}
.border-klox-blue {
    border-color: var(--klox-blue);
}

/* ---- Gradient ---- */
.bg-gradient-klox {
    background: linear-gradient(
        135deg,
        var(--klox-navy) 0%,
        var(--klox-blue) 50%,
        var(--klox-light-blue) 100%
    );
}

/* ---- Border Radius ---- */
.rounded-klox {
    border-radius: var(--klox-radius);
}
.rounded-klox-md {
    border-radius: 6px;
}

/* ---- Shadows ---- */
.shadow-klox {
    box-shadow:
        0 1px 3px rgba(24, 57, 140, 0.08),
        0 4px 12px rgba(24, 57, 140, 0.06);
}
.shadow-klox-lg {
    box-shadow:
        0 4px 6px rgba(24, 57, 140, 0.07),
        0 10px 24px rgba(24, 57, 140, 0.1);
}

/* ==========================================================
   SIDEBAR LAYOUT
   ========================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar-klox {
    width: var(--sidebar-width);
    background: linear-gradient(
        180deg,
        var(--klox-dark) 0%,
        var(--klox-navy) 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo img {
    height: 2rem;
}
.sidebar-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}
.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}
.sidebar-nav-label:first-child {
    margin-top: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--klox-radius);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 2px;
}
.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.sidebar-link.active {
    color: #fff;
    background: rgba(61, 124, 230, 0.25);
    box-shadow: inset 3px 0 0 var(--klox-blue);
}
.sidebar-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-plan-badge {
    margin: 0 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--klox-radius);
}

.sidebar-bottom {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--klox-radius);
}
.sidebar-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(61, 124, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klox-light-blue);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.sidebar-user-info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.sidebar-user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-plan {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Main Content Area ---- */
.dashboard-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f3f4f6;
}
.dashboard-content {
    flex: 1;
    padding: 1.5rem 2rem 2rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* ---- Mobile Sidebar ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
}
.sidebar-overlay.active {
    display: block;
}
.mobile-topbar {
    display: none;
    background: var(--klox-navy);
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
}
.mobile-topbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.mobile-topbar-logo img {
    height: 1.75rem;
}
.mobile-topbar-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .sidebar-klox {
        transform: translateX(-100%);
    }
    .sidebar-klox.open {
        transform: translateX(0);
    }
    .dashboard-main {
        margin-left: 0;
    }
    .mobile-topbar {
        display: flex;
    }
    .dashboard-content {
        padding: 1rem;
    }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-klox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: var(--klox-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-klox-primary {
    background-color: var(--klox-navy);
    color: #fff;
    border-color: var(--klox-navy);
}
.btn-klox-primary:hover {
    background-color: var(--klox-dark);
    border-color: var(--klox-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 57, 140, 0.25);
}
.btn-klox-outline {
    background-color: #fff;
    color: var(--klox-navy);
    border-color: var(--klox-navy);
}
.btn-klox-outline:hover {
    background-color: var(--klox-navy);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 57, 140, 0.25);
}
.btn-klox-danger {
    background-color: #fff;
    color: #dc2626;
    border-color: #dc2626;
}
.btn-klox-danger:hover {
    background-color: #dc2626;
    color: #fff;
}
.btn-klox-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.btn-klox-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
}
.btn-klox-full {
    width: 100%;
}

/* ==========================================================
   INPUTS
   ========================================================== */
.input-klox {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--klox-gray-900);
    background-color: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: var(--klox-radius);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.input-klox:focus {
    outline: none;
    border-color: var(--klox-blue);
    box-shadow: 0 0 0 3px rgba(61, 124, 230, 0.15);
}
.input-klox::placeholder {
    color: #9ca3af;
}
.input-klox-icon {
    padding-left: 2.75rem;
}

/* ==========================================================
   CARDS
   ========================================================== */
.card-klox {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--klox-radius);
    box-shadow:
        0 1px 3px rgba(24, 57, 140, 0.08),
        0 4px 12px rgba(24, 57, 140, 0.06);
}

/* ==========================================================
   WELCOME HERO
   ========================================================== */
.welcome-hero {
    background: linear-gradient(
        135deg,
        var(--klox-navy) 0%,
        var(--klox-blue) 100%
    );
    border-radius: var(--klox-radius);
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.welcome-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.welcome-hero h2 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}
.welcome-hero p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================
   STAT CARDS
   ========================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--klox-radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.125rem;
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--klox-gray-900);
    line-height: 1.2;
}
.stat-sub {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}
.empty-state-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: #d1d5db;
}
.empty-state p {
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
}
.empty-state .empty-state-sub {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* ==========================================================
   PAGE HEADER
   ========================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--klox-gray-900);
    margin: 0;
}
.page-header-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

/* ==========================================================
   AUTH PAGE LAYOUT (unchanged — no sidebar)
   ========================================================== */
.auth-page-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 50%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 2.5rem;
    box-shadow:
        0 4px 6px rgba(24, 57, 140, 0.07),
        0 10px 24px rgba(24, 57, 140, 0.1);
}

/* ==========================================================
   PROFILE CARD
   ========================================================== */
.profile-card-premium {
    background: linear-gradient(
        135deg,
        var(--klox-navy) 0%,
        var(--klox-blue) 100%
    );
}
.profile-card-card {
    background: linear-gradient(
        135deg,
        var(--klox-dark) 0%,
        var(--klox-navy) 100%
    );
}
.profile-card-free {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}
.profile-card {
    border-radius: var(--klox-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.profile-card .profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--klox-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---- Upgrade Button ---- */
.btn-klox-upgrade {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(
        135deg,
        var(--klox-blue) 0%,
        var(--klox-light-blue) 100%
    );
    color: #fff;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--klox-radius);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.btn-klox-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 124, 230, 0.35);
}

/* ==========================================================
   MODAL
   ========================================================== */
.modal-klox-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
}
.modal-klox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(24, 57, 140, 0.2);
    max-width: 500px;
    width: 92%;
    padding: 1.75rem;
    z-index: 101;
}
.modal-klox.active,
.modal-klox-backdrop.active {
    display: block;
}

/* ---- Option Cards ---- */
.option-card-klox {
    padding: 0.75rem;
    border-radius: var(--klox-radius);
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    transition: all 0.15s;
}
.option-card-klox:hover {
    border-color: var(--klox-blue);
    background-color: #eff6ff;
}
.option-card-klox.selected {
    border-color: var(--klox-navy);
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px var(--klox-navy);
}

/* Gateway selection cards */
.gateway-card-klox {
    padding: 0.75rem;
    border-radius: var(--klox-radius);
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    transition: all 0.15s;
}
.gateway-card-klox:hover {
    border-color: var(--klox-blue);
    background-color: #eff6ff;
}
.gateway-card-klox.selected {
    border-color: var(--klox-navy);
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px var(--klox-navy);
}

/* Badges */
.badge-klox {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.675rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-klox-green  { background-color: #dcfce7; color: #15803d; }
.badge-klox-yellow { background-color: #fef9c3; color: #a16207; }
.badge-klox-red    { background-color: #fee2e2; color: #dc2626; }
.badge-klox-indigo { background-color: #e0e7ff; color: #4338ca; }
.badge-klox-orange { background-color: #ffedd5; color: #c2410c; }
.badge-klox-gray   { background-color: #f3f4f6; color: #4b5563; }

/* ==========================================================
   TABLES
   ========================================================== */
.table-klox {
    width: 100%;
}
.table-klox thead tr {
    background-color: var(--klox-gray-50);
    border-bottom: 2px solid #e5e7eb;
}
.table-klox th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.table-klox td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #374151;
}
.table-klox tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}
.table-klox tbody tr:hover {
    background-color: #f9fafb;
}

/* ==========================================================
   STATUS PAGES
   ========================================================== */
.status-card {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 3rem 2rem;
    box-shadow:
        0 4px 6px rgba(24, 57, 140, 0.07),
        0 10px 24px rgba(24, 57, 140, 0.1);
}
.status-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-icon-success {
    background-color: #d1fae5;
}
.status-icon-warning {
    background-color: #fef3c7;
}
.status-icon-error {
    background-color: #fee2e2;
}

/* ==========================================================
   DEVICE CARDS
   ========================================================== */
.device-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--klox-radius);
    padding: 1.25rem;
    transition: border-color 0.2s;
    background: #fff;
}
.device-card:hover {
    border-color: rgba(61, 124, 230, 0.3);
}
.device-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ==========================================================
   ALERT BANNERS
   ========================================================== */
.alert-klox {
    padding: 0.875rem 1rem;
    border-radius: var(--klox-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.alert-klox-success {
    background-color: #ecfdf5;
    border-left: 3px solid #10b981;
    color: #065f46;
}
.alert-klox-error {
    background-color: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer-klox {
    background-color: var(--klox-gray-900);
    color: #d1d5db;
    padding: 1.25rem 2rem;
    margin-top: auto;
    font-size: 0.8rem;
}
.footer-klox a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-klox a:hover {
    color: #fff;
}

/* ==========================================================
   LINK & SLIDER
   ========================================================== */
.link-klox {
    color: var(--klox-navy);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.link-klox:hover {
    color: var(--klox-blue);
}
.slider-klox img {
    border-radius: var(--klox-radius);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ==========================================================
   DOWNLOAD CTA BANNER
   ========================================================== */
.download-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    border: 1px solid rgba(61, 124, 230, 0.15);
    border-radius: var(--klox-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}
.download-banner-text h4 {
    font-weight: 700;
    color: var(--klox-gray-900);
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}
.download-banner-text p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}
@media (max-width: 500px) {
    .download-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes klox-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes klox-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@keyframes klox-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-klox-checkmark {
    animation: klox-checkmark 0.5s ease-in-out forwards;
}
.animate-klox-bounce {
    animation: klox-bounce 2s infinite;
}
.animate-klox-fade-up {
    animation: klox-fade-in-up 0.4s ease-out forwards;
}
.animate-klox-delay-1 {
    animation-delay: 100ms;
}
.animate-klox-delay-2 {
    animation-delay: 200ms;
}
.animate-klox-delay-3 {
    animation-delay: 300ms;
}

/* ---- Coupon / Price Summary ---- */
.price-summary {
    background-color: var(--klox-gray-50);
    border: 1px solid #e5e7eb;
    border-radius: var(--klox-radius);
    padding: 0.875rem 1rem;
    margin-top: 1rem;
}

/* ==========================================================
   CONFIG FILTERS
   ========================================================== */
.config-filters {
    margin-bottom: 1.5rem;
}
.config-filters-row {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}
.config-filter-select {
    max-width: 220px;
}
.config-filter-search {
    flex: 1;
}
@media (max-width: 600px) {
    .config-filters-row {
        flex-wrap: wrap;
    }
    .config-filter-select {
        max-width: none;
        width: 100%;
        order: 1;
    }
    .config-filter-search {
        max-width: none;
        width: 100%;
        order: 2;
        flex: none;
    }
    .config-filters-row .btn-klox {
        flex: 1;
        order: 3;
    }
}

/* ==========================================================
   CONFIG GRID
   ========================================================== */
.config-country-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}
.config-country-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--klox-gray-900);
    margin: 0;
}
.config-grid {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    gap: 1rem;
}
@media (max-width: 900px) {
    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Config Card ---- */
.config-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--klox-radius);
    transition: border-color 0.2s;
}
.config-card:hover {
    border-color: rgba(61, 124, 230, 0.3);
}
.config-card-disabled {
    opacity: 0.55;
}
.config-card-flag {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.config-card-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.config-card-info {
    flex: 1;
    min-width: 0;
}
.config-card-city {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--klox-gray-900);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.config-card-ip {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0.125rem 0 0;
    font-family: monospace;
}
.config-card-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1.5px solid var(--klox-navy);
    background: #fff;
    color: var(--klox-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.config-card-btn:hover {
    background: var(--klox-navy);
    color: #fff;
}
.config-card-btn-locked {
    border-color: #d1d5db;
    color: #d1d5db;
    cursor: not-allowed;
}
.config-card-btn-locked:hover {
    background: #fff;
    color: #d1d5db;
}
.config-card-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}
