:root {
    --wt-bg: #f3f6fa;
    --wt-card: #ffffff;
    --wt-dark: #0b1220;
    --wt-dark-2: #111a2b;
    --wt-border: #e5eaf1;
    --wt-text: #172033;
    --wt-muted: #7b8799;
    --wt-primary: #2563eb;
    --wt-success: #16a34a;
    --wt-warning: #f59e0b;
    --wt-danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--wt-bg);
    color: var(--wt-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.wt-navbar {
    height: 64px;
    background: #0b1220;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: white;
}

.wt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.2px;
}

.wt-brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #2563eb;
    font-size: 18px;
}

.wt-brand small {
    display: block;
    color: #7f8da3;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.wt-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 245px;
    background: #0b1220;
    padding: 18px 12px;
    overflow-y: auto;
    z-index: 100;
}

.wt-section-label {
    padding: 15px 12px 7px;
    color: #5f6d83;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.wt-sidebar a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #aeb9ca;
    text-decoration: none;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 13px;
    transition: .15s ease;
}

.wt-sidebar a:hover {
    color: white;
    background: #151f33;
}

.wt-sidebar a.active {
    color: white;
    background: #1d4ed8;
}

.wt-sidebar .icon {
    width: 20px;
    text-align: center;
    opacity: .9;
}

/* ============================================================
   CONTENT
   ============================================================ */

.wt-content {
    margin-left: 245px;
    padding: 28px;
    min-height: calc(100vh - 64px);
}

.wt-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.wt-page-subtitle {
    color: var(--wt-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
   CARDS
   ============================================================ */

.wt-card {
    background: var(--wt-card);
    border: 1px solid var(--wt-border);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(15,23,42,.04);
}

.wt-card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--wt-border);
    font-weight: 650;
}

.wt-card-body {
    padding: 18px;
}

/* ============================================================
   STATUS
   ============================================================ */

.wt-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 650;
}

.wt-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wt-status-online {
    background: #dcfce7;
    color: #166534;
}

.wt-status-online .wt-status-dot {
    background: #16a34a;
}

.wt-status-offline {
    background: #fee2e2;
    color: #991b1b;
}

.wt-status-offline .wt-status-dot {
    background: #dc2626;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.wt-stat {
    padding: 18px;
}

.wt-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
}

.wt-stat-value {
    font-size: 25px;
    font-weight: 750;
    margin-top: 13px;
}

.wt-stat-label {
    color: var(--wt-muted);
    font-size: 12px;
}

/* ============================================================
   TOOL CARDS
   ============================================================ */

.wt-tool {
    height: 100%;
    padding: 18px;
    transition: .18s ease;
}

.wt-tool:hover {
    transform: translateY(-2px);
    border-color: #c8d4e5;
    box-shadow: 0 10px 25px rgba(15,23,42,.07);
}

.wt-tool-icon {
    width: 45px;
    height: 45px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    font-size: 20px;
    margin-bottom: 14px;
}

.wt-tool-title {
    font-size: 15px;
    font-weight: 700;
}

.wt-tool-desc {
    color: var(--wt-muted);
    font-size: 12px;
    min-height: 34px;
}

/* ============================================================
   DEVICE CARD
   ============================================================ */

.wt-device {
    background:
        linear-gradient(135deg,#0b1220,#16243d);
    color: white;
    border-radius: 13px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.wt-device:after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -100px;
    top: -100px;
    background: rgba(37,99,235,.16);
}

.wt-device-model {
    font-size: 20px;
    font-weight: 700;
}

.wt-device-meta {
    color: #8fa0ba;
    font-size: 12px;
}

.wt-device-row {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 18px;
    padding-top: 15px;
}

/* ============================================================
   TERMINAL
   ============================================================ */

.wt-terminal {
    background: #070b13;
    color: #d9e2f0;
    border-radius: 10px;
    padding: 17px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    min-height: 240px;
    overflow: auto;
}

.wt-terminal .success {
    color: #4ade80;
}

.wt-terminal .muted {
    color: #64748b;
}

/* ============================================================
   LOGIN
   ============================================================ */

.wt-auth {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(37,99,235,.18), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(14,165,233,.10), transparent 30%),
        #080e18;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.wt-auth-grid {
    width: min(1000px, 100%);
    display: grid;
    grid-template-columns: 1fr 430px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.wt-auth-brand {
    padding: 55px;
    background:
        linear-gradient(145deg,#0b1220,#101c31);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wt-auth-brand h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.wt-auth-brand p {
    color: #8fa0ba;
    max-width: 430px;
}

.wt-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #c5d0df;
    font-size: 13px;
}

.wt-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #17243a;
}

.wt-auth-form {
    padding: 45px 38px;
}

.wt-auth-form h2 {
    font-size: 24px;
    font-weight: 750;
}

.wt-auth-form .form-control {
    height: 46px;
    border-radius: 8px;
}

.wt-auth-form .btn-primary {
    height: 46px;
    font-weight: 650;
}

/* ============================================================
   PLAN
   ============================================================ */

.wt-plan {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.wt-plan-free {
    background: #e2e8f0;
    color: #475569;
}

.wt-plan-pro {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .wt-sidebar {
        width: 70px;
    }

    .wt-sidebar a {
        justify-content: center;
    }

    .wt-sidebar a span:not(.icon),
    .wt-section-label {
        display: none;
    }

    .wt-content {
        margin-left: 70px;
        padding: 18px;
    }

    .wt-auth-grid {
        grid-template-columns: 1fr;
    }

    .wt-auth-brand {
        display: none;
    }
}

@media (max-width: 600px) {

    .wt-sidebar {
        display: none;
    }

    .wt-content {
        margin-left: 0;
    }

    .wt-navbar {
        height: 58px;
    }
}

/* ============================================================
   WPANEL TECH V2
   ============================================================ */

.wt-v2-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:24px;
}

.wt-v2-title {
    font-size:25px;
    font-weight:750;
    letter-spacing:-.5px;
}

.wt-v2-subtitle {
    color:#7b8799;
    font-size:12px;
    margin-top:4px;
}

.wt-bridge-pill {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 11px;
    border-radius:8px;
    background:#fff;
    border:1px solid #e4e9f0;
    color:#64748b;
    font-size:11px;
    font-weight:650;
}

.wt-bridge-pill .dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ef4444;
}

.wt-bridge-pill.online {
    color:#166534;
    background:#f0fdf4;
    border-color:#bbf7d0;
}

.wt-bridge-pill.online .dot {
    background:#22c55e;
}

.wt-device-v2 {
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(135deg,#09111f 0%,#101d33 65%,#142b51 100%);
    border-radius:15px;
    padding:23px;
    color:#fff;
    border:1px solid #1c2b45;
    box-shadow:0 12px 35px rgba(15,23,42,.12);
}

.wt-device-v2:before {
    content:"";
    position:absolute;
    width:360px;
    height:360px;
    border-radius:50%;
    right:-180px;
    top:-210px;
    background:rgba(37,99,235,.15);
}

.wt-device-v2-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    position:relative;
    z-index:2;
}

.wt-device-label {
    color:#7f91ad;
    font-size:9px;
    font-weight:750;
    letter-spacing:1.2px;
}

.wt-device-name-v2 {
    font-size:22px;
    font-weight:750;
    margin-top:5px;
}

.wt-device-hint {
    color:#91a2bb;
    font-size:12px;
    margin-top:3px;
}

.wt-phone-icon {
    width:58px;
    height:58px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.08);
    font-size:25px;
}

.wt-connection-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    margin-top:22px;
    border-top:1px solid rgba(255,255,255,.08);
    position:relative;
    z-index:2;
}

.wt-connection-item {
    padding:15px 12px 0 0;
}

.wt-connection-label {
    color:#71839e;
    font-size:10px;
}

.wt-connection-value {
    font-size:12px;
    font-weight:650;
    margin-top:4px;
}

.wt-connection-value.offline {
    color:#94a3b8;
}

.wt-connection-value.ready {
    color:#4ade80;
}

.wt-quick-title {
    font-size:14px;
    font-weight:750;
}

.wt-quick-sub {
    color:#8793a5;
    font-size:11px;
}

.wt-quick {
    border:1px solid #e5eaf1;
    background:#fff;
    border-radius:10px;
    padding:13px 14px;
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    text-decoration:none;
    color:#172033;
    transition:.15s ease;
}

.wt-quick:hover {
    color:#172033;
    border-color:#cbd7e7;
    transform:translateY(-1px);
    box-shadow:0 7px 20px rgba(15,23,42,.06);
}

.wt-quick-icon {
    width:38px;
    height:38px;
    border-radius:9px;
    background:#eff6ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.wt-tool-v2 {
    height:100%;
    border:1px solid #e3e8ef;
    background:#fff;
    border-radius:12px;
    padding:17px;
    transition:.15s ease;
}

.wt-tool-v2:hover {
    border-color:#c8d5e5;
    transform:translateY(-2px);
    box-shadow:0 9px 25px rgba(15,23,42,.06);
}

.wt-tool-v2-icon {
    width:43px;
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eff6ff;
    color:#2563eb;
    font-size:19px;
}

.wt-tool-v2-title {
    font-size:14px;
    font-weight:700;
}

.wt-tool-v2-desc {
    color:#7b8799;
    font-size:11px;
    line-height:1.5;
    min-height:34px;
}

.wt-tool-lock {
    color:#a1aaba;
    font-size:11px;
}

.wt-section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    margin:25px 0 12px;
}

.wt-section-head h5 {
    margin:0;
    font-size:15px;
    font-weight:750;
}

.wt-section-head p {
    margin:3px 0 0;
    color:#8793a5;
    font-size:11px;
}

.wt-activity {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid #edf0f4;
}

.wt-activity:last-child {
    border-bottom:0;
}

.wt-activity-icon {
    width:34px;
    height:34px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f1f5f9;
    color:#64748b;
}

.wt-activity-title {
    font-size:12px;
    font-weight:650;
}

.wt-activity-meta {
    color:#8b96a7;
    font-size:10px;
    margin-top:2px;
}

.wt-bridge-card {
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:11px;
    padding:17px;
}

.wt-bridge-icon {
    width:40px;
    height:40px;
    border-radius:10px;
    background:#eaf2ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wt-command-box {
    background:#07101d;
    border-radius:9px;
    padding:13px;
    color:#a9bdd8;
    font-family:Consolas,monospace;
    font-size:10px;
}

@media(max-width:900px) {

    .wt-connection-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .wt-v2-toolbar {
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:600px) {

    .wt-content {
        padding:14px;
    }

    .wt-device-v2 {
        padding:17px;
    }

    .wt-device-name-v2 {
        font-size:18px;
    }

    .wt-connection-grid {
        grid-template-columns:repeat(2,1fr);
    }
}


/* ============================================================
   WPANEL TECH v3
   PROFESSIONAL RESPONSIVE TECHNICIAN UI
   ============================================================ */

:root {
    --w3-bg: #f4f7fb;
    --w3-surface: #ffffff;
    --w3-border: #e5eaf1;
    --w3-text: #111827;
    --w3-muted: #718096;
    --w3-dark: #07111f;
    --w3-dark2: #0c1a2d;
    --w3-blue: #146cff;
    --w3-blue2: #0d5be8;
    --w3-green: #16a34a;
    --w3-red: #ef4444;
    --w3-yellow: #f59e0b;
    --w3-purple: #7c3aed;
}

/* ---------- GLOBAL ---------- */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--w3-bg);
}

.w3-main {
    max-width: 1600px;
    margin: 0 auto;
}

/* ---------- TOP SEARCH ---------- */

.w3-search {
    width: min(440px, 42vw);
    position: relative;
}

.w3-search input {
    width: 100%;
    height: 39px;
    border-radius: 9px;
    border: 1px solid #263752;
    background: #101e32;
    color: #dbe7f7;
    padding: 0 65px 0 38px;
    outline: none;
    font-size: 12px;
}

.w3-search input::placeholder {
    color: #71829b;
}

.w3-search input:focus {
    border-color: #397cff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.w3-search i {
    position: absolute;
    left: 14px;
    top: 11px;
    color: #7e91ac;
}

.w3-search-shortcut {
    position: absolute;
    right: 7px;
    top: 7px;
    padding: 3px 7px;
    border-radius: 5px;
    border: 1px solid #2b3b54;
    color: #8fa0b8;
    font-size: 9px;
}

/* ---------- TOP ACTION ---------- */

.w3-top-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #263752;
    background: #101e32;
    color: #b6c5d9;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w3-top-icon:hover {
    color: white;
    border-color: #3b82f6;
}

/* ---------- MOBILE TOP ---------- */

.w3-mobile-menu {
    display: none;
    width: 39px;
    height: 39px;
    border: 0;
    background: #13243b;
    color: white;
    border-radius: 9px;
}

/* ---------- CONTENT ---------- */

.w3-content {
    margin-left: 245px;
    padding: 24px 27px 95px;
}

.w3-title {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
    color: var(--w3-text);
}

.w3-subtitle {
    margin-top: 5px;
    color: var(--w3-muted);
    font-size: 12px;
}

/* ---------- HERO ---------- */

.w3-hero {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    min-height: 190px;
    background:
        radial-gradient(circle at 82% 20%, rgba(35,112,255,.28), transparent 25%),
        radial-gradient(circle at 65% 120%, rgba(14,165,233,.12), transparent 30%),
        linear-gradient(125deg, #071323, #10213a 60%, #102d55);
    border: 1px solid #1d3150;
    position: relative;
    color: white;
}

.w3-hero:after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -170px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(89,145,255,.13);
    box-shadow:
        0 0 0 35px rgba(89,145,255,.03),
        0 0 0 70px rgba(89,145,255,.025);
}

.w3-hero-content {
    padding: 25px 27px;
    position: relative;
    z-index: 2;
}

.w3-hero-eyebrow {
    color: #7db0ff;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.w3-hero h1 {
    margin: 7px 0 5px;
    font-size: clamp(24px, 3vw, 35px);
    font-weight: 850;
    letter-spacing: -1.3px;
}

.w3-hero p {
    color: #91a5c1;
    font-size: 12px;
    max-width: 560px;
    margin: 0;
}

.w3-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.w3-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 99px;
    color: #c4d2e5;
    font-size: 9px;
}

.w3-feature-pill i {
    color: #43df82;
}

/* ---------- BRIDGE ---------- */

.w3-bridge {
    height: 100%;
    min-height: 190px;
    padding: 19px;
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    color: var(--w3-text);
}

.w3-bridge-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
    font-size: 13px;
}

.w3-bridge-dot {
    width: 10px;
    height: 10px;
    background: var(--w3-red);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(239,68,68,.10);
}

.w3-bridge-dot.online {
    background: var(--w3-green);
    box-shadow: 0 0 0 5px rgba(22,163,74,.10);
}

.w3-bridge-caption {
    color: #8994a5;
    font-size: 10px;
    margin-top: 4px;
}

.w3-connect {
    margin-top: 17px;
    height: 42px;
    width: 100%;
    border-radius: 9px;
    font-weight: 700;
}

/* ---------- DEVICE ---------- */

.w3-device {
    margin-top: 16px;
    border-radius: 14px;
    padding: 21px;
    background:
        radial-gradient(circle at 93% 8%, rgba(36,99,235,.25), transparent 22%),
        linear-gradient(130deg,#081323,#10233e);
    color: white;
    border: 1px solid #1b2f4e;
    position: relative;
    overflow: hidden;
}

.w3-device-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.w3-device-label {
    color: #7790b2;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.w3-device-name {
    font-size: 21px;
    font-weight: 800;
    margin-top: 4px;
}

.w3-device-desc {
    color: #90a3bd;
    font-size: 11px;
    margin-top: 3px;
}

.w3-device-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #657c9d;
    font-size: 23px;
}

.w3-device-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-top: 18px;
}

.w3-device-stat {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
    padding: 10px;
}

.w3-device-stat-label {
    color: #6e839f;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.w3-device-stat-value {
    color: #e6edf7;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
}

.w3-status-off {
    color: #ff9292 !important;
}

.w3-status-off:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--w3-red);
}

.w3-device-actions {
    display: flex;
    gap: 9px;
    margin-top: 16px;
}

.w3-device-actions .btn {
    min-width: 150px;
    height: 39px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
}

/* ---------- QUICK ACTIONS ---------- */

.w3-card {
    background: var(--w3-surface);
    border: 1px solid var(--w3-border);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(15,23,42,.035);
}

.w3-card-title {
    font-size: 14px;
    font-weight: 780;
}

.w3-card-sub {
    color: #8490a2;
    font-size: 10px;
    margin-top: 3px;
}

.w3-quick {
    height: 100%;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid #e7ecf2;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--w3-text);
    display: block;
    transition: .15s ease;
}

.w3-quick:hover {
    color: var(--w3-text);
    transform: translateY(-2px);
    border-color: #c9d8eb;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
}

.w3-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.w3-q-green {
    background: #ecfdf5;
    color: #059669;
}

.w3-q-blue {
    background: #eff6ff;
    color: #2563eb;
}

.w3-q-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.w3-q-orange {
    background: #fff7ed;
    color: #ea580c;
}

.w3-quick-title {
    font-size: 10px;
    font-weight: 750;
}

.w3-quick-sub {
    color: #8994a4;
    font-size: 8px;
    margin-top: 2px;
}

/* ---------- SECTION ---------- */

.w3-section {
    margin-top: 23px;
}

.w3-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 11px;
}

.w3-section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.w3-section-header p {
    margin: 3px 0 0;
    color: #8994a4;
    font-size: 10px;
}

/* ---------- TOOL FILTER ---------- */

.w3-filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.w3-filter {
    border: 1px solid #dfe6ee;
    background: #fff;
    color: #596579;
    border-radius: 7px;
    padding: 6px 11px;
    font-size: 9px;
    font-weight: 650;
}

.w3-filter.active {
    color: white;
    background: var(--w3-blue);
    border-color: var(--w3-blue);
}

/* ---------- TOOL CARD ---------- */

.w3-tool {
    height: 100%;
    padding: 15px;
    border: 1px solid #e2e8ef;
    background: white;
    border-radius: 11px;
    transition: .16s ease;
}

.w3-tool:hover {
    transform: translateY(-2px);
    border-color: #c7d5e5;
    box-shadow: 0 9px 24px rgba(15,23,42,.065);
}

.w3-tool-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.w3-tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1769ff;
    background: #eef5ff;
    font-size: 17px;
}

.w3-tool-title {
    font-size: 12px;
    font-weight: 750;
    margin-top: 12px;
}

.w3-tool-desc {
    min-height: 34px;
    margin-top: 3px;
    color: #8490a2;
    font-size: 9px;
    line-height: 1.45;
}

.w3-tool-button {
    margin-top: 11px;
    font-size: 9px;
    border-radius: 7px;
    padding: 5px 10px;
}

.w3-free {
    background: #dcfce7;
    color: #15803d;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 8px;
    font-weight: 800;
}

.w3-pro {
    background: #fef3c7;
    color: #a16207;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 8px;
    font-weight: 800;
}

/* ---------- STATS ---------- */

.w3-mini-stat {
    padding: 13px;
}

.w3-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w3-mini-value {
    font-size: 18px;
    font-weight: 800;
    margin-top: 9px;
}

.w3-mini-label {
    color: #8a95a5;
    font-size: 9px;
}

/* ---------- ACTIVITY ---------- */

.w3-activity {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w3-activity:last-child {
    border-bottom: 0;
}

.w3-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w3-activity-title {
    font-size: 10px;
    font-weight: 700;
}

.w3-activity-meta {
    color: #8b96a7;
    font-size: 8px;
    margin-top: 2px;
}

/* ---------- SYSTEM ---------- */

.w3-system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f5;
}

.w3-system-row:last-child {
    border-bottom: 0;
}

.w3-system-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w3-system-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.w3-system-name {
    font-size: 10px;
    font-weight: 700;
}

.w3-system-state {
    font-size: 8px;
    padding: 4px 7px;
    border-radius: 99px;
    font-weight: 750;
}

.w3-online {
    background: #dcfce7;
    color: #15803d;
}

.w3-offline {
    background: #fee2e2;
    color: #b91c1c;
}

/* ---------- PRO CARD ---------- */

.w3-pro-card {
    background:
        radial-gradient(circle at 90% 10%,rgba(245,158,11,.14),transparent 25%),
        linear-gradient(135deg,#0b1525,#111d31);
    color: white;
    border-radius: 12px;
    border: 1px solid #273852;
    padding: 17px;
}

.w3-pro-card h3 {
    font-size: 14px;
    font-weight: 800;
}

.w3-pro-card p {
    color: #8fa1ba;
    font-size: 9px;
}

.w3-pro-list {
    padding: 0;
    margin: 12px 0;
    list-style: none;
}

.w3-pro-list li {
    color: #c6d2e2;
    font-size: 9px;
    margin: 7px 0;
}

.w3-pro-list i {
    color: #43df82;
    margin-right: 6px;
}

.w3-pro-button {
    width: 100%;
    border: 0;
    border-radius: 7px;
    height: 34px;
    background: #facc15;
    color: #171717;
    font-size: 10px;
    font-weight: 800;
}

/* ---------- QUICK COMMAND ---------- */

.w3-command {
    background: #07101c;
    border: 1px solid #1d304a;
    border-radius: 12px;
    padding: 13px;
}

.w3-command-label {
    color: #94a8c3;
    font-size: 10px;
    font-weight: 700;
}

.w3-command .form-select,
.w3-command .form-control {
    height: 35px;
    background: #101e31;
    color: #cbd8e8;
    border-color: #273a55;
    font-size: 10px;
}

.w3-command .btn {
    height: 35px;
    font-size: 10px;
    font-weight: 750;
}

/* ---------- TIPS ---------- */

.w3-tip {
    padding: 9px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #edf1f5;
}

.w3-tip:last-child {
    border-bottom: 0;
}

.w3-tip-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    background: #f5f3ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w3-tip-title {
    font-size: 9px;
    font-weight: 700;
}

.w3-tip-desc {
    color: #8a95a5;
    font-size: 8px;
}

/* ---------- MOBILE NAV ---------- */

.w3-bottom-nav {
    display: none;
}

/* ---------- MOBILE ---------- */

@media (max-width: 1199px) {

    .w3-content {
        padding: 21px;
    }

    .w3-device-stats {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 900px) {

    .wt-sidebar {
        width: 72px;
    }

    .wt-sidebar a {
        justify-content: center;
    }

    .wt-sidebar a span:not(.icon),
    .wt-sidebar .wt-section-label {
        display: none;
    }

    .w3-content {
        margin-left: 72px;
    }

    .w3-search {
        width: min(340px, 38vw);
    }

    .w3-hero {
        min-height: 170px;
    }
}

@media (max-width: 767px) {

    .wt-navbar {
        height: 59px;
    }

    .wt-sidebar {
        display: none;
    }

    .w3-content {
        margin-left: 0;
        padding: 15px 13px 86px;
    }

    .w3-mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .w3-search {
        display: none;
    }

    .w3-title {
        font-size: 21px;
    }

    .w3-subtitle {
        font-size: 10px;
    }

    .w3-hero {
        margin-top: 14px;
        min-height: auto;
    }

    .w3-hero-content {
        padding: 19px;
    }

    .w3-hero h1 {
        font-size: 24px;
    }

    .w3-feature-pills {
        display: none;
    }

    .w3-bridge {
        min-height: auto;
        padding: 15px;
    }

    .w3-device {
        padding: 16px;
    }

    .w3-device-name {
        font-size: 18px;
    }

    .w3-device-stats {
        grid-template-columns: repeat(2,1fr);
    }

    .w3-device-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .w3-device-actions .btn {
        width: 100%;
    }

    .w3-section {
        margin-top: 18px;
    }

    .w3-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .w3-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .w3-filter {
        white-space: nowrap;
    }

    .w3-tool {
        padding: 14px;
    }

    .w3-bottom-nav {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 62px;
        background: rgba(8,17,31,.96);
        border: 1px solid #23364f;
        border-radius: 14px;
        z-index: 9999;
        box-shadow: 0 12px 35px rgba(0,0,0,.25);
        backdrop-filter: blur(14px);
        align-items: center;
        justify-content: space-around;
    }

    .w3-bottom-nav a {
        color: #8294ad;
        text-decoration: none;
        text-align: center;
        min-width: 52px;
        font-size: 8px;
    }

    .w3-bottom-nav a i {
        display: block;
        font-size: 17px;
        margin-bottom: 3px;
    }

    .w3-bottom-nav a.active {
        color: #5fa0ff;
    }

    .w3-bottom-nav a.active i {
        color: #5fa0ff;
    }
}

@media (max-width: 420px) {

    .w3-device-stats {
        gap: 5px;
    }

    .w3-device-stat {
        padding: 8px;
    }

    .w3-device-stat-value {
        font-size: 10px;
    }

    .w3-quick {
        padding: 11px 5px;
    }

    .w3-quick-sub {
        display: none;
    }

    .w3-tool-desc {
        min-height: 30px;
    }
}


/* ============================================================
   WPANEL TECH V3.1
   RESPONSIVE LAYOUT CORRECTION
   ============================================================ */

/*
 * IMPORTANT:
 * Sidebar/layout wrapper sudah menangani posisi horizontal.
 * Jangan menambahkan margin-left kedua pada dashboard content.
 */

.w3-content {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0;
    padding: 24px 28px 95px;
    box-sizing: border-box;
}

/* Main dashboard container */
.w3-main,
.wt-main,
.main-content {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Prevent Bootstrap rows from creating unexpected overflow */
.w3-content .row {
    --bs-gutter-x: 1rem;
}

/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 1200px) {

    .w3-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .w3-hero {
        width: 100%;
    }

    .w3-device {
        width: 100%;
    }

}

/* ============================================================
   LARGE DESKTOP
   ============================================================ */

@media (min-width: 1400px) {

    .w3-content {
        padding-left: 30px;
        padding-right: 30px;
    }

}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1199px) {

    .w3-content {
        width: 100%;
        margin-left: 0 !important;
        padding: 20px;
    }

    .w3-hero {
        min-height: auto;
    }

    .w3-device {
        min-height: auto;
    }

}

/* ============================================================
   TABLET PORTRAIT
   ============================================================ */

@media (max-width: 991px) {

    .w3-content {
        padding: 18px;
    }

    .w3-hero-content {
        padding: 21px;
    }

    .w3-device-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .w3-content {
        width: 100%;
        margin: 0 !important;
        padding: 14px 12px 88px !important;
        overflow-x: hidden;
    }

    .w3-content > .d-flex {
        gap: 10px;
    }

    .w3-title {
        font-size: 21px;
        line-height: 1.25;
    }

    .w3-subtitle {
        max-width: 95%;
        line-height: 1.45;
    }

    .w3-hero {
        width: 100%;
        margin-top: 14px;
        border-radius: 13px;
    }

    .w3-hero-content {
        padding: 18px;
    }

    .w3-hero h1 {
        font-size: 23px;
        line-height: 1.18;
    }

    .w3-device {
        width: 100%;
        margin-top: 12px;
        padding: 15px;
        border-radius: 13px;
    }

    .w3-device-head {
        align-items: flex-start;
    }

    .w3-device-name {
        font-size: 18px;
        line-height: 1.25;
    }

    .w3-device-desc {
        line-height: 1.4;
        max-width: 90%;
    }

    .w3-device-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .w3-device-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .w3-device-stat {
        min-width: 0;
    }

    .w3-device-stat-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .w3-device-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .w3-device-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .w3-section-header {
        gap: 9px;
    }

    .w3-filters {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .w3-filters::-webkit-scrollbar {
        display: none;
    }

    .w3-filter {
        flex: 0 0 auto;
    }

    .w3-tool {
        min-width: 0;
        overflow: hidden;
    }

    .w3-tool-title,
    .w3-tool-desc {
        overflow-wrap: anywhere;
    }

    .w3-pro-card {
        min-height: auto;
    }

}

/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 480px) {

    .w3-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .w3-title {
        font-size: 19px;
    }

    .w3-hero h1 {
        font-size: 21px;
    }

    .w3-hero p {
        font-size: 10px;
        line-height: 1.5;
    }

    .w3-device-name {
        font-size: 17px;
    }

    .w3-device-desc {
        font-size: 9px;
    }

    .w3-device-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .w3-device-stat {
        padding: 8px;
    }

    .w3-device-stat-label {
        font-size: 7px;
    }

    .w3-device-stat-value {
        font-size: 9px;
    }

    .w3-quick-title {
        font-size: 9px;
    }

    .w3-tool {
        padding: 12px;
    }

    .w3-tool-title {
        font-size: 10px;
    }

    .w3-tool-desc {
        font-size: 8px;
    }

}

/* ============================================================
   VERY SMALL PHONE
   ============================================================ */

@media (max-width: 360px) {

    .w3-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .w3-device-stats {
        gap: 4px;
    }

    .w3-device-stat {
        padding: 7px;
    }

    .w3-device-icon {
        width: 38px;
        height: 38px;
    }

}

/* ============================================================
   OVERFLOW PROTECTION
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.w3-content *,
.w3-hero *,
.w3-device * {
    box-sizing: border-box;
}

/* Bootstrap row protection */
.w3-content .row {
    max-width: 100%;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */

@media (max-width: 767px) {

    .w3-mobile-menu {
        display: flex !important;
    }

    .w3-search {
        display: none !important;
    }

    .w3-top-icon {
        width: 34px;
        height: 34px;
    }

}

/* ============================================================
   SIDEBAR DESKTOP
   ============================================================ */

@media (min-width: 768px) {

    .wt-sidebar {
        flex-shrink: 0;
    }

}

/* ============================================================
   TOUCH TARGETS
   ============================================================ */

@media (max-width: 767px) {

    .btn,
    .w3-filter,
    .w3-quick,
    .w3-bottom-nav a {
        -webkit-tap-highlight-color: transparent;
    }

    .w3-quick {
        min-height: 78px;
    }

}

/* ============================================================
   SAFE AREA FOR MODERN PHONES
   ============================================================ */

@media (max-width: 767px) {

    .w3-bottom-nav {
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .w3-content {
        padding-bottom: calc(
            88px + env(safe-area-inset-bottom)
        ) !important;
    }

}

