:root {
    --bg: #f6f8fc;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #8a94a6;
    --muted2: #aeb6c6;
    --line: #e9eef6;

    --navy: #061f53;
    --navy2: #07285f;

    --blue: #2f5bd3;
    --cyan: #21a6cf;

    --green: #168a3f;
    --shadow: 0 18px 40px rgba(18, 38, 63, .10);
    --shadow2: 0 10px 24px rgba(18, 38, 63, .10);

    --r12: 12px;
    --r16: 16px;
    --r20: 20px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

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

button {
    font-family: inherit
}

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

.app-body {
    overflow-x: hidden
}

/* TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 74px;
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    align-items: center;
    padding: 0 28px;
    background: var(--bg);
}

.topbar-title {
    font-size: 28px;
    font-weight: 500;
    color: #7a7a7a;
    letter-spacing: .2px;
}

.topbar-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.topbar-logout {
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d8e2f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
}

.admin-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-weight: 600;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dbe3f1;
    display: grid;
    place-items: center;
    color: #6b7280;
    background: #f9fbff;
}

/* Hamburger */
.icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

.hamburger {
    width: 44px;
    height: 44px;
    display: none;
    border-radius: 12px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #6f6f6f;
    border-radius: 3px;
    margin: 5px auto;
}

/* SHELL */
.app-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    padding: 10px 18px 26px 18px;
    align-items: start;
}

/* OVERLAY (mobile drawer) */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, .35);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    z-index: 70;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto
}

/* SIDEBAR */
.sidebar {
    background: transparent;
    padding: 18px 6px 0 10px;
}

.sidebar-top {
    padding: 10px 8px 16px 8px;
    text-align: center;
}

.logo-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow2);
}

.logo-badge {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    background: var(--cyan);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(33, 166, 207, .25);
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: #7a7a7a;
}

.product-email {
    margin-top: 6px;
    font-size: 14px;
    color: #b4bccb;
    font-weight: 600;
}

.sidebar-grid {
    margin-top: 18px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid #eef2f9;
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    box-shadow: var(--shadow2);
}

.nav-tile {
    height: 124px;
    border-radius: 16px;
    border: 1px solid #e4ebf7;
    background: rgba(255, 255, 255, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #7f8aa3;
    transition: .15s;
}

.nav-tile .tile-icon {
    color: #b0b9cb;
}

.nav-tile .tile-label {
    font-weight: 700;
    font-size: 18px;
}

.nav-tile.active {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: var(--shadow);
    color: var(--blue);
}

.nav-tile.active .tile-icon {
    color: var(--blue)
}

.nav-tile.disabled {
    opacity: .55;
    cursor: not-allowed
}

.nav-tile:hover {
    transform: translateY(-1px)
}

/* RIGHT RAIL */
/* ===== RIGHT RAIL (FIGMA-LIKE) ===== */
.right-rail {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.rail-card {
    width: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #eef2f9;
    box-shadow: 0 18px 40px rgba(18, 38, 63, .10);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rail-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.rail-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #fff;
    box-shadow: 0 12px 22px rgba(18, 38, 63, .12);
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.rail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.rail-avatar.active {
    outline: 3px solid rgba(33, 166, 207, .35);
    outline-offset: 2px;
}

.badge-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    right: 5px;
    top: 5px;
    background: #ff2d2d;
    border: 2px solid #fff;
}

/* Start chat (vertical pill) now INSIDE rail-card */
.chat-pill {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    border-radius: 18px;
    background: #2f5bd3;
    box-shadow: 0 14px 26px rgba(47, 91, 211, .22);
    color: #fff;
    padding: 14px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.chat-text {
    font-weight: 800;
    letter-spacing: .2px
}


.chat-pill {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    border-radius: 18px;
    background: #2f5bd3;
    box-shadow: var(--shadow);
    color: #fff;
    padding: 16px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.chat-ic {
    display: grid;
    place-items: center
}

.chat-text {
    font-weight: 800;
    letter-spacing: .2px
}

/* MAIN */
.app-main {
    min-width: 0
}

.page {
    padding: 4px 8px
}

.page-header {
    margin: 6px 0 10px 8px
}

.page-title {
    font-size: 34px;
    margin: 0;
    font-weight: 800;
    color: #0b0b0b;
}

.main-card {
    background: var(--card);
    border-radius: 2px;
    box-shadow: var(--shadow);
    min-height: 720px;
    padding: 26px 22px;
    display: grid;
    grid-template-columns: 300px 1fr 360px;
    gap: 36px;
}

.main-card--no-mini {
    grid-template-columns: 1fr 360px;
}

/* LEFT MINI PANEL */
.mini-panel {
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mini-stat {
    padding: 12px 10px
}

.muted {
    color: var(--muted2)
}

.big-number {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.big-number .n {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #0b0b0b;
}

.big-number .unit {
    font-size: 18px;
    font-weight: 800;
    color: #0b0b0b;
}

.mini-divider {
    height: 1px;
    background: var(--line);
    margin: 0 10px;
}

.mini-divider--bottom {
    margin-top: auto
}

.mini-actions {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.big-action {
    background: linear-gradient(180deg, var(--navy), var(--navy2));
    color: #fff;
    border-radius: 14px;
    padding: 20px 18px;
    height: 86px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 16px 30px rgba(6, 31, 83, .22);
}

.big-action--bottom {
    margin-top: 6px
}

.ba-ic {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-weight: 900;
    opacity: .95;
}

.ba-txt {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* LIST PANEL */
.list-panel {
    padding: 6px 6px;
    min-width: 0;
}

.list-panel-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-title {
    margin: 6px 0 6px 0;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

.tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.tabs {
    display: flex;
    gap: 44px;
    padding-left: 0;
}

.tab {
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
    color: #0b0b0b;
    padding: 10px 0;
    position: relative;
    cursor: pointer;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search {
    display: flex;
    align-items: center;
    border: 1px solid #e2e9f6;
    background: #fbfdff;
    height: 30px;
    border-radius: 6px;
    padding: 0 6px 0 8px;
}

.search input {
    border: 0;
    outline: none;
    background: transparent;
    width: 170px;
    font-size: 12px;
    color: #6b7280;
}

.search-btn {
    border: 0;
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
}

.tool-ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e9f6;
    background: #fbfdff;
    display: grid;
    place-items: center;
    color: #6b7280;
    cursor: pointer;
}

.list-date {
    margin-top: 10px;
    padding-left: 0;
    font-size: 12px;
    color: #c3cada;
    font-weight: 700;
}

.rows {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 12px
}

.row {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 44px 1fr 170px 120px;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
}

.row:hover {
    background: #f7faff
}

.row-ic {
    color: #0b0b0b;
    opacity: .9;
    display: grid;
    place-items: center;
}

.row-title {
    font-weight: 800
}

.row-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #c3cada;
    font-weight: 700
}

.row-mid {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-weight: 700
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%
}

.dot.green {
    background: var(--green)
}

.row-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.row-right-txt {
    font-weight: 800
}

.row-arrow {
    color: #9aa3b6;
    font-size: 22px;
    transform: translateY(-1px);
}

/* DETAIL PANEL */
.detail {
    border-left: 1px solid rgba(233, 238, 246, .5);
    padding: 24px 0 0 32px;
    min-width: 0;
    position: relative;
    isolation: isolate;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.detail-top {
    position: relative;
    overflow: hidden;
    padding-bottom: 8px;
}

.detail-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 10;
}

.dropdown {
    position: relative
}

.drop-btn {
    border: 1px solid #e8eef8;
    background: #fff;
    border-radius: 8px;
    height: 36px;
    padding: 0 12px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 38, 63, .08);
}

.drop-menu {
    position: absolute;
    top: 42px;
    right: 0;
    width: 140px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    box-shadow: var(--shadow2);
    padding: 8px;
    display: none;
}

.drop-menu.show {
    display: block
}

.drop-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 10px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    color: #4b5563;
}

.drop-menu button:hover {
    background: #f3f7ff
}

/* Segmented Pill (Activate/Deactivate) */
.seg-pill {
    display: inline-flex;
    background: rgba(247, 250, 255, 0.8);
    border: 1px solid rgba(233, 238, 246, 0.8);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(18, 38, 63, 0.06);
}

.seg-item {
    border: 0;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.seg-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #4b5563;
}

.seg-item.active {
    background: linear-gradient(135deg, #2f5bd3 0%, #21a6cf 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 91, 211, 0.25);
}

/* switch */
.switch {
    position: relative;
    width: 56px;
    height: 32px;
    display: inline-block
}

.switch input {
    display: none
}

.slider {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #d7dde9 100%);
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.slider:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked+.slider {
    background: linear-gradient(135deg, #2f5bd3 0%, #21a6cf 100%);
    box-shadow: inset 0 2px 4px rgba(47, 91, 211, 0.2), 0 0 0 3px rgba(47, 91, 211, 0.1);
}

.switch input:checked+.slider:before {
    transform: translateX(24px);
    box-shadow: 0 4px 12px rgba(47, 91, 211, 0.3), 0 2px 4px rgba(47, 91, 211, 0.2);
}

.check-dot {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #16a34a;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.switch input:checked+.slider .check-dot {
    opacity: 1;
    transform: scale(1);
}

/* profile */
.profile {
    padding-top: 80px;
    text-align: center;
    position: relative;
}

.profile-ring {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 5px;
    background: linear-gradient(135deg,
            rgba(47, 91, 211, 0.15) 0%,
            rgba(33, 166, 207, 0.2) 50%,
            rgba(233, 238, 246, 0.3) 100%);
    box-shadow: 0 8px 24px rgba(47, 91, 211, 0.12),
        0 4px 12px rgba(33, 166, 207, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform 0.3s ease;
}

.profile-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 180deg,
            var(--cyan) 0 60%,
            rgba(233, 238, 246, 0.4) 60% 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.profile-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-name {
    margin-top: 20px;
    font-weight: 900;
    font-size: 18px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.profile-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--line) 20%,
            var(--line) 80%,
            transparent 100%);
    margin: 20px 32px 0 32px;
}

/* info rows */
.detail-body {
    padding: 24px 16px 0 16px
}

.info-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.info-row:hover {
    background: rgba(247, 250, 255, 0.6);
    transform: translateX(2px);
}

.info-row--withchev {
    grid-template-columns: 40px 1fr 24px
}

.info-ic {
    color: #2f5bd3;
    opacity: 0.85;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(47, 91, 211, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.info-row:hover .info-ic {
    background: rgba(47, 91, 211, 0.12);
    transform: scale(1.05);
}

.info-txt {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.5;
}

.chev {
    color: #9aa3b6;
    font-size: 14px
}

.section-title {
    margin-top: 14px;
    font-weight: 900;
    font-size: 13px;
    color: #0b0b0b;
}

.subdriver {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 40px 1fr 32px;
    gap: 14px;
    align-items: start;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(247, 250, 255, 0.5);
    border: 1px solid rgba(233, 238, 246, 0.6);
    transition: all 0.2s ease;
}

.subdriver:hover {
    background: rgba(247, 250, 255, 0.8);
    border-color: rgba(47, 91, 211, 0.15);
    transform: translateX(2px);
}

.subdriver-ic {
    color: #2f5bd3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(47, 91, 211, 0.08);
    border-radius: 10px;
}

.subdriver .name {
    font-weight: 900;
    color: #0f172a;
    font-size: 14px;
}

.more-btn {
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    margin-top: 2px;
}

.more-btn span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0b0b0b;
    display: block;
    margin: 2px auto;
}

.spacer-line {
    height: 1px;
    background: var(--line);
    margin: 18px 10px;
}

.spent-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(47, 91, 211, 0.04) 0%, rgba(33, 166, 207, 0.04) 100%);
    border-radius: 14px;
    border: 1px solid rgba(233, 238, 246, 0.6);
    margin-top: 8px;
}

.spent-value {
    font-weight: 900;
    font-size: 36px;
    margin-top: 4px;
    background: linear-gradient(135deg, #2f5bd3 0%, #21a6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.ok-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 8px 14px rgba(22, 163, 74, .25);
}

.more-link {
    color: #2f5bd3;
    font-weight: 800;
    font-size: 12px;
}

.bars {
    margin-top: 14px;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 0 10px 14px 10px;
}

.bar {
    width: 14px;
    height: 88px;
    border-radius: 6px;
    background: #e9eef6;
}

.bar.solid {
    background: #15803d;
    height: 70px;
}

.bar.ghost {
    opacity: .55
}

.bars .bar:nth-child(2).solid {
    height: 92px
}

.bars .bar:nth-child(4).solid {
    height: 78px
}

.bars .bar:nth-child(6).solid {
    height: 54px
}

/* CAR CATEGORIES extras */
.rows--cars {
    gap: 10px
}

.rows--countries {
    gap: 10px;
}

.country-row {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 60px 200px 1fr 70px 28px;
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
}

.country-row:hover {
    background: #f7faff
}

.country-row.is-selected {
    background: rgba(247, 250, 255, .9);
    box-shadow: 0 10px 24px rgba(18, 38, 63, .06);
}

.country-flag {
    width: 40px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(233, 238, 246, .9);
    box-shadow: 0 6px 14px rgba(18, 38, 63, .08);
    background: #fff;
    display: grid;
    place-items: center;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-name {
    font-weight: 900;
}

.country-date {
    font-size: 12px;
    color: #c3cada;
    font-weight: 700
}

.country-info {
    font-weight: 900;
    text-align: center
}

.country-arrow {
    color: #9aa3b6;
    font-size: 22px
}

.detail--countries {
    padding-left: 22px;
}

.circle-hero--flag img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 1;
    filter: saturate(1.05) contrast(1.02);
}

.edit-fab {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(233, 238, 246, .8);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(18, 38, 63, .08);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #2f5bd3;
}

.edit-fab:hover {
    transform: translateY(-1px);
}

.country-detail-name {
    text-align: center;
    font-weight: 900;
    margin-top: 6px;
    color: #0f172a;
}

.country-form {
    padding: 8px 18px 0 18px;
}

.country-product-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.country-product-card {
    border: 1px solid #e5ebf6;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px;
}

.country-product-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.country-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    font-size: 12px;
    color: #475569;
}

.country-payload {
    margin-top: 12px;
}

.country-payload summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: #2f5bd3;
}

.country-payload pre {
    margin: 10px 0 0 0;
    padding: 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.chips--wide {
    grid-template-columns: 1fr 1fr;
    max-width: 320px;
}

.create-card--countries {
    width: min(240px, 100%);
}

.car-row {
    display: grid;
    grid-template-columns: 60px 150px 1fr 70px 28px;
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
    border-radius: 14px;
}

.car-row:hover {
    background: #f7faff
}

.car-ic {
    font-size: 22px;
    opacity: .9
}

.car-name {
    font-weight: 900
}

.car-date {
    font-size: 12px;
    color: #c3cada;
    font-weight: 700
}

.car-info {
    font-weight: 900;
    text-align: center
}

.car-arrow {
    color: #9aa3b6;
    font-size: 22px
}

.add-dashed {
    margin: 12px 8px 0 8px;
    border: 2px dashed #d7e1f3;
    border-radius: 14px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #0b0b0b;
    font-size: 22px;
    font-weight: 900;
}

.create-card {
    width: 200px;
    margin: 18px auto 0 auto;
    background: #fff;
    border: 1px solid #eef2f9;
    border-radius: 18px;
    box-shadow: var(--shadow2);
    padding: 16px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cc-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(33, 166, 207, .15);
}

.cc-input {
    width: 100%;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e8eef8;
    outline: none;
    padding: 0 10px;
    font-size: 12px;
}

.cc-btn {
    width: 120px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #2f5bd3;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.cc-edit {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #2f5bd3;
    font-weight: 900;
}

.detail--cars {
    padding-left: 22px
}

.circle-hero {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 46px auto 24px auto;
    background: linear-gradient(135deg, rgba(47, 91, 211, 0.05) 0%, rgba(33, 166, 207, 0.08) 100%);
    box-shadow: 0 12px 32px rgba(47, 91, 211, 0.12),
        0 6px 16px rgba(33, 166, 207, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform 0.3s ease;
}

.circle-hero::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 180deg,
            rgba(33, 166, 207, 0.3) 0 60%,
            rgba(233, 238, 246, 0.2) 60% 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.circle-hero:hover {
    transform: scale(1.02);
}

.circle-hero img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.95;
    filter: brightness(1.05) contrast(1.05);
}

.cars-form {
    padding: 10px 18px
}

.field {
    margin-bottom: 14px
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #9aa3b6;
    margin-bottom: 8px;
}

.input {
    width: 160px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e8eef8;
    background: #fff;
    padding: 0 10px;
    outline: none;
}

.seg {
    display: flex;
    gap: 14px;
    align-items: center
}

.seg-btn {
    width: 44px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e8eef8;
    background: #fff;
    font-weight: 900;
    color: #9aa3b6;
    cursor: pointer;
}

.seg-btn.active {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

.chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    max-width: 260px;
}

.chip {
    height: 34px;
    border-radius: 12px;
    border: 1px solid #e8eef8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-weight: 900;
    color: #6b7280;
    cursor: pointer;
}

.chip span {
    opacity: .6
}

.chip.active {
    box-shadow: var(--shadow2);
}

.chip.active span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2f5bd3;
    color: #fff;
    opacity: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.btn-outline {
    height: 36px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.6px solid #9aa3b6;
    background: transparent;
    color: #6b7280;
    font-weight: 900;
    cursor: pointer;
}

.btn-primary {
    height: 36px;
    padding: 0 30px;
    border-radius: 999px;
    border: 0;
    background: #2f5bd3;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.messenger-card {
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 18px 20px;
    min-height: 720px;
}

.messenger-list {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    padding-right: 18px;
}

.messenger-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eef2f9;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: var(--shadow2);
}

.messenger-search input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #6b7280;
}

.messenger-items {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
    flex: 1;
}

.messenger-search-group {
    margin: 8px 6px 0 6px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
}

.messenger-item {
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 52px 1fr 16px;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.messenger-item.is-active {
    background: #f7faff;
    box-shadow: 0 10px 24px rgba(18, 38, 63, .06);
}

.messenger-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(18, 38, 63, .12);
}

.messenger-name {
    font-weight: 800;
    color: #0f172a;
}

.messenger-date {
    font-size: 11px;
    color: #9aa3b6;
    font-weight: 700;
}

.messenger-preview {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.messenger-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
}

.messenger-empty {
    padding: 16px 12px;
    border: 1px dashed #dbe5f2;
    border-radius: 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.messenger-empty--thread {
    margin: auto;
    max-width: 360px;
}

.messenger-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.footer-ic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #eef2f9;
    background: #fff;
    display: grid;
    place-items: center;
    color: #9aa3b6;
    cursor: pointer;
}

.footer-ic.is-active {
    color: #2f5bd3;
    border-color: #dbe6ff;
    box-shadow: var(--shadow2);
}

.messenger-chat {
    display: flex;
    flex-direction: column;
    min-height: 680px;
    background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
    border-radius: 20px;
    overflow: hidden;
}

.messenger-chat-head {
    display: grid;
    grid-template-columns: 1fr 1fr 32px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
}

.chat-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #6b7280;
}

.chat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    color: #6b7280;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.chat-menu {
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #c1c7d6;
    cursor: pointer;
}

.messenger-thread {
    flex: 1;
    padding: 26px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    overflow: auto;
    scroll-behavior: smooth;
}

.chat-time {
    text-align: center;
    color: #c1c7d6;
    font-weight: 700;
    font-size: 13px;
}

.chat-message {
    display: flex;
    gap: 16px;
    align-items: center;
}

.chat-message--right {
    justify-content: flex-end;
}

.chat-avatar {
    width: 140px;
    text-align: center;
    color: #9aa3b6;
    font-size: 12px;
    font-weight: 700;
}

.chat-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(18, 38, 63, .18);
}

.chat-bubble {
    max-width: 420px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eef2f9;
    border-radius: 16px;
    box-shadow: var(--shadow2);
    color: #6b7280;
    font-weight: 700;
    line-height: 1.6;
    white-space: pre-wrap;
}

.chat-message--right .chat-bubble {
    background: linear-gradient(135deg, #2f5bd3 0%, #264eb8 100%);
    color: #fff;
    border-color: rgba(47, 91, 211, .25);
}

.messenger-compose {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compose-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #eef2f9;
    display: grid;
    place-items: center;
    color: #9aa3b6;
}

.compose-input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #6b7280;
}

.compose-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #2f5bd3;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.realtime-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    min-width: 240px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.realtime-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.realtime-toast.is-info {
    background: #1d4ed8;
}

.realtime-toast.is-success {
    background: #16a34a;
}

.realtime-toast.is-error {
    background: #dc2626;
}

.orders-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 18px 20px 28px 20px;
}

.orders-summary {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.9fr 1fr 1.1fr 1.2fr 0.9fr 1.2fr;
    border: 1px solid #e5ebf6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow2);
}

.orders-summary-item {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #e5ebf6;
    min-height: 72px;
    justify-content: center;
}

.orders-summary-item:last-child {
    border-right: 0;
}

.orders-summary-item--icon {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.summary-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5ebf6;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.summary-title {
    font-weight: 800;
}

.summary-label {
    font-size: 12px;
    color: #9aa3b6;
    font-weight: 700;
}

.summary-value {
    font-weight: 900;
    color: #0f172a;
}

.summary-spark {
    margin-top: auto;
}

.summary-split {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-panels {
    display: flex;
    gap: 16px;
}

.orders-panel {
    background: #fff;
    border: 1px solid #e5ebf6;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orders-panel-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.panel-ic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cfd7ea;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
}

.panel-title {
    font-weight: 800;
}

.panel-sub {
    font-size: 11px;
    color: #9aa3b6;
    font-weight: 700;
}

.orders-panel--radio {
    min-width: 260px;
    gap: 12px;
}

.radio-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
}

.radio-row input {
    margin-top: 3px;
}

.radio-row strong {
    display: block;
    color: #0f172a;
}

.radio-row em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #9aa3b6;
}

.orders-table-card {
    background: #fff;
    border: 1px solid #e5ebf6;
    border-radius: 14px;
    box-shadow: var(--shadow2);
    padding: 10px 0 6px 0;
}

.orders-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 14px 16px;
}

.orders-tabs {
    display: flex;
    gap: 18px;
    align-items: center;
}

.orders-tab {
    border: 0;
    background: transparent;
    font-weight: 800;
    color: #6b7280;
    cursor: pointer;
}

.orders-tab.is-active {
    background: #f3f4f6;
    color: #0f172a;
    border-radius: 10px;
    padding: 6px 10px;
}

.orders-tab--plus {
    font-weight: 900;
}

.orders-actions {
    display: flex;
    gap: 8px;
}

.orders-action {
    width: 38px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5ebf6;
    background: #fff;
    color: #6b7280;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table th,
.orders-table td {
    padding: 12px 10px;
    text-align: left;
    border-top: 1px solid #eef2f9;
    color: #6b7280;
}

.orders-table thead th {
    font-weight: 800;
    color: #0f172a;
    border-top: 0;
}

.orders-row {
    position: relative;
}

.orders-row--green {
    box-shadow: inset 4px 0 0 #16a34a;
}

.orders-row--orange {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.pdf-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.payments-card {
    grid-template-columns: 300px 1fr 320px;
    gap: 26px;
    padding: 18px 20px 24px 20px;
}

.payments-left,
.payments-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.payments-left,
.payments-center,
.payments-right {
    min-width: 0;
}

.payments-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payments-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eef2f9;
    box-shadow: var(--shadow2);
    display: grid;
    place-items: center;
}

.payments-user-name {
    font-weight: 800;
}

.payments-user-role {
    font-size: 12px;
    color: #9aa3b6;
    font-weight: 700;
}

.payments-balance {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payments-amount {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
}

.payments-amount--small {
    font-size: 24px;
}

.payments-bars {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    height: 80px;
    padding-bottom: 8px;
}

.payments-bars span {
    width: 18px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
}

.payments-bars span.active {
    height: 60px;
    background: #22a6cf;
}

.payments-bars--green span.active {
    background: #1f8f3a;
}

.payments-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 12px;
    color: #9aa3b6;
    font-weight: 800;
}

.dots-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #eef2f9;
    background: #fff;
    color: #9aa3b6;
    cursor: pointer;
}

.gateway-card {
    background: #0b2a67;
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow2);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    max-width: 100%;
}

.gateway-title {
    font-weight: 800;
}

.gateway-brand {
    font-size: 22px;
    font-weight: 900;
    margin: 10px 0 8px 0;
}

.gateway-meta {
    font-size: 11px;
    opacity: 0.85;
}

.bank-card {
    background: #6fd0a7;
    color: #0f172a;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow2);
    min-height: 120px;
    max-width: 100%;
    overflow: hidden;
}

.bank-title {
    font-weight: 800;
}

.bank-brand {
    font-size: 26px;
    font-weight: 900;
    margin: 8px 0 8px 0;
    letter-spacing: 2px;
}

.bank-meta {
    font-size: 11px;
}

.payments-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payments-center-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payments-title {
    font-size: 28px;
    margin: 0;
}

.payments-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5ebf6;
    border-radius: 10px;
    padding: 6px 8px;
    background: #fff;
}

.tool-search input {
    border: 0;
    outline: none;
    font-size: 12px;
    color: #6b7280;
}

.tool-search button {
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.payments-tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid #eef2f9;
    padding-bottom: 6px;
}

.payments-tab {
    border: 0;
    background: transparent;
    font-weight: 800;
    color: #6b7280;
    cursor: pointer;
    padding-bottom: 8px;
}

.payments-tab.active {
    color: #0f172a;
    border-bottom: 2px solid #22a057;
}

.payments-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-pill {
    border: 1px solid #e5ebf6;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    font-size: 12px;
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payments-date {
    font-size: 12px;
    color: #b8c0d0;
    font-weight: 800;
    margin-top: 4px;
}

.txn-row {
    display: grid;
    grid-template-columns: 40px 1fr 140px 90px 20px;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.txn-ic {
    width: 34px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #e5ebf6;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.txn-name {
    font-weight: 800;
}

.txn-sub {
    font-size: 11px;
    color: #9aa3b6;
    font-weight: 700;
}

.txn-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.purple {
    background: #6d28d9;
}

.txn-amount {
    font-weight: 800;
}

.txn-arrow {
    color: #9aa3b6;
    font-size: 22px;
}

.profile-ring--payments {
    width: 140px;
    height: 140px;
    margin: 14px auto 8px auto;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visa-card {
    background: #0a2b6d;
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow2);
    max-width: 100%;
    overflow: hidden;
}

.visa-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    gap: 12px;
}

.visa-row > * {
    min-width: 0;
}

.visa-row strong,
.visa-row span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.visa-row strong {
    white-space: nowrap;
}

.visa-row.small {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 6px;
}

.visa-name {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-card {
    grid-template-columns: 1fr 320px;
    gap: 22px;
    padding: 18px 20px 24px 20px;
}

.teams-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.teams-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    gap: 16px;
}

.teams-status {
    border-radius: 8px;
    background: #e8f7fd;
    color: #127ea3;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

.teams-add {
    width: 160px;
    height: 40px;
    border-radius: 8px;
    border: 0;
    background: #2aa6cf;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.teams-add--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    background: #fff;
    border: 1px solid #e5ebf6;
    border-radius: 12px;
    padding: 12px 14px 14px 14px;
    box-shadow: var(--shadow2);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: inherit;
}

.team-card--active {
    border-color: #2aa6cf;
    box-shadow: 0 0 0 1px rgba(42, 166, 207, 0.12), var(--shadow2);
}

.team-card--inactive {
    opacity: 0.72;
}

.team-card-link {
    color: inherit;
    text-decoration: none;
}

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

.teams-actions {
    margin-left: auto;
}

.teams-card-count {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.team-ic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5ebf6;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.team-name {
    font-weight: 800;
    text-align: center;
}

.team-role {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-align: center;
}

.team-progress {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.team-progress span {
    display: block;
    height: 100%;
    background: #2aa6cf;
    border-radius: inherit;
}

.employees-card {
    background: #fff;
    border: 1px solid #e5ebf6;
    border-radius: 12px;
    box-shadow: var(--shadow2);
    padding: 10px 12px;
}

.employees-head {
    font-weight: 800;
    margin: 6px 6px 10px 6px;
}

.employee-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-top: 1px solid #eef2f9;
    text-decoration: none;
    color: inherit;
}

.employee-row-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 160px minmax(140px, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.employee-row--active {
    background: #f7fbfd;
}

.employee-row:first-of-type {
    border-top: 0;
}

.employee-ic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e5ebf6;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.employee-name {
    font-weight: 800;
}

.employee-role {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    min-width: 140px;
}

.employee-bar span {
    display: block;
    height: 100%;
    background: #2aa6cf;
    border-radius: inherit;
}

.gear-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #eef2f9;
    background: #fff;
    color: #9aa3b6;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 32px;
}

.drop-link {
    display: block;
    width: 100%;
    padding: 10px 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.drop-link:hover,
.drop-menu button:hover {
    background: #f3f7fd;
}

.teams-right {
    display: flex;
    flex-direction: column;
}

.role-card {
    background: #fff;
    border: 1px solid #e5ebf6;
    border-radius: 12px;
    box-shadow: var(--shadow2);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-title {
    font-weight: 800;
    font-size: 16px;
}

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

.profile-ring--teams {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px auto;
}

.profile-role {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
}

.teams-credentials {
    display: grid;
    gap: 10px;
}

.teams-credential {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5ebf6;
    background: #f8fbff;
    color: #0f172a;
}

.teams-credential-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.teams-user-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.teams-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teams-form-field span {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.teams-form-field input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dbe4f0;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
}

.role-divider {
    height: 1px;
    background: #e5ebf6;
    margin: 6px 0;
}

.access-title {
    font-size: 12px;
    color: #9aa3b6;
    font-weight: 800;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e5ebf6;
    border-radius: 10px;
    overflow: hidden;
}

.access-tile {
    padding: 16px 10px;
    border-bottom: 1px solid #eef2f9;
    border-right: 1px solid #eef2f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
}

.access-tile:nth-child(2n) {
    border-right: 0;
}

.access-tile:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.access-tile.is-active {
    color: #2f5bd3;
    background: #f7f9ff;
}

.access-tile.muted {
    opacity: 0.6;
}

.access-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.teams-save {
    width: 100%;
    margin-top: 14px;
    height: 40px;
    border-radius: 8px;
    border: 0;
    background: #2aa6cf;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #090d49;
    overflow: hidden;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
}

.login-layout {
    width: 100%;
    min-height: 100vh;
}

.login-scene {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 12, 80, 0.96) 0%, rgba(5, 8, 60, 0.98) 100%);
}

.login-shape {
    position: absolute;
    opacity: 0.92;
    transform: rotate(45deg);
    pointer-events: none;
}

.login-shape--left {
    left: 40px;
    top: 140px;
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, rgba(90, 58, 214, 0.82) 0%, rgba(0, 138, 255, 0.52) 100%);
}

.login-shape--center {
    left: 455px;
    top: -140px;
    width: 590px;
    height: 590px;
    background: linear-gradient(180deg, rgba(16, 8, 111, 0.98) 0%, rgba(9, 20, 102, 0.78) 100%);
}

.login-shape--top {
    right: 345px;
    top: -120px;
    width: 430px;
    height: 430px;
    background: linear-gradient(180deg, rgba(220, 10, 103, 0.9) 0%, rgba(111, 72, 184, 0.34) 100%);
}

.login-shape--right {
    right: -120px;
    top: 118px;
    width: 520px;
    height: 520px;
    background: linear-gradient(180deg, rgba(17, 116, 204, 0.9) 0%, rgba(31, 92, 178, 0.7) 100%);
}

.login-shape--bottom {
    right: 170px;
    bottom: -190px;
    width: 520px;
    height: 520px;
    background: linear-gradient(180deg, rgba(225, 5, 112, 0.88) 0%, rgba(74, 55, 219, 0.7) 55%, rgba(14, 137, 231, 0.78) 100%);
}

.login-hero {
    position: absolute;
    left: 368px;
    top: 376px;
    width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
}

.login-brand-mark {
    width: 68px;
    height: 79px;
}

.login-title {
    margin: 22px 0 0 0;
    font-size: 60px;
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.login-card {
    position: absolute;
    right: 154px;
    top: 174px;
    width: 606px;
    min-height: 722px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(228, 231, 238, 0.95);
    box-shadow: 0 26px 60px rgba(2, 10, 67, 0.18);
    padding: 40px 88px 34px 88px;
}

.login-card-logo {
    width: 78px;
    height: 90px;
    margin: 0 auto;
}

.login-divider {
    width: 100%;
    height: 2px;
    margin: 34px 0 58px 0;
    background: #efe3de;
}

.login-card-head {
    margin-bottom: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 22px;
    font-weight: 400;
    color: #1f1f1f;
}

.login-field input {
    height: 49px;
    border-radius: 5px;
    border: 1px solid #a9a9a9;
    background: #fff;
    padding: 0 14px;
    font-size: 18px;
    color: #121212;
    outline: none;
}

.login-field input:focus {
    border-color: #8e8e8e;
    box-shadow: none;
}

.login-error {
    margin-top: 6px;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

.login-submit {
    width: 274px;
    height: 47px;
    margin: 86px auto 0 auto;
    border: 0;
    border-radius: 999px;
    background: #3165bf;
    color: #fff;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 15px 28px rgba(42, 79, 165, 0.26);
}

.login-help {
    margin-top: 118px;
    color: #202020;
    font-size: 24px;
    line-height: 1.2;
}

.login-help a {
    color: #272cda;
    text-decoration: none;
}

@media (max-width: 900px) {
    .auth-shell,
    .login-layout,
    .login-scene {
        min-height: 100vh;
    }

    .login-hero {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        padding: 120px 24px 40px 24px;
    }

    .login-card {
        position: relative;
        right: auto;
        top: auto;
        width: calc(100% - 32px);
        min-height: auto;
        margin: 24px auto 40px auto;
        padding: 28px 24px 30px 24px;
    }

    .login-title {
        font-size: 46px;
    }

    .login-field {
        font-size: 18px;
    }

    .login-help {
        margin-top: 64px;
        font-size: 20px;
    }

    .login-submit {
        width: 100%;
        margin-top: 52px;
        font-size: 24px;
    }
}

.detail--vignette {
    padding-left: 22px;
}

.vignette-name {
    text-align: center;
    font-weight: 900;
    margin-top: 6px;
    color: #0f172a;
}

.vignette-form {
    padding: 8px 18px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vignette-select {
    display: flex;
    justify-content: center;
}

.vignette-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vignette-label {
    font-size: 12px;
    font-weight: 900;
    color: #9aa3b6;
}

.vignette-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pill-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #eef2f9;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 38, 63, .08);
}

.pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pill-title {
    font-size: 11px;
    color: #9aa3b6;
    font-weight: 800;
}

.pill-value {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
}

.pill-edit {
    border: 0;
    background: transparent;
    color: #9aa3b6;
    font-weight: 900;
    cursor: pointer;
}

.pill-add {
    width: 72px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid #eef2f9;
    background: #fff;
    box-shadow: var(--shadow2);
    font-weight: 900;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1500px) {
    .app-shell {
        grid-template-columns: 320px 1fr;
    }

    .right-rail {
        display: none;
    }

    .tabs {
        gap: 28px;
    }
}

@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 300px 1fr;
    }

    .main-card {
        grid-template-columns: 280px 1fr 330px
    }

    .main-card--no-mini {
        grid-template-columns: 1fr 330px;
    }
}

@media (max-width: 980px) {
    .topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 18px;
    }

    .topbar-left,
    .topbar-center {
        min-width: 0;
    }

    .topbar-left {
        flex: 1;
    }

    .topbar-center {
        flex: 1;
        text-align: center;
    }

    .topbar-right {
        flex: 0 0 auto;
    }

    .topbar-title,
    .topbar-brand {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger {
        display: block
    }

    .app-shell {
        grid-template-columns: 1fr;
        padding: 10px 12px 22px 12px;
    }

    .right-rail {
        display: none
    }

    .chat-fab {
        right: 14px
    }

    .sidebar {
        position: fixed;
        left: 12px;
        top: 74px;
        bottom: 12px;
        width: 320px;
        max-width: calc(100vw - 28px);
        z-index: 80;
        transform: translateX(-110%);
        transition: .22s;
        overflow: auto;
        border-radius: 18px;
        background: rgba(246, 248, 252, 0.98);
        border: 1px solid rgba(233, 238, 246, 0.9);
        box-shadow: var(--shadow2);
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .app-main {
        padding: 0 6px
    }

    .main-card {
        grid-template-columns: 1fr;
        padding: 18px 14px;
        min-height: auto;
    }

    .messenger-card {
        grid-template-columns: 1fr;
    }

    .messenger-list {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .orders-summary {
        grid-template-columns: 1fr 1fr;
    }

    .orders-panels {
        flex-direction: column;
    }

    .orders-table-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .orders-table-card {
        overflow-x: auto;
    }

    .orders-table {
        font-size: 12px;
    }

    .payments-card {
        grid-template-columns: 1fr;
    }

    .payments-left,
    .payments-right {
        border-top: 1px solid #eef2f9;
        padding-top: 16px;
    }

    .txn-row {
        grid-template-columns: 40px 1fr 110px;
        grid-auto-rows: auto;
        gap: 8px;
    }

    .txn-status,
    .txn-amount,
    .txn-arrow {
        grid-column: 2 / -1;
    }

    .teams-card {
        grid-template-columns: 1fr;
    }

    .team-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-row {
        grid-template-columns: 34px 1fr 100px 1fr 40px;
    }

    .detail {
        border-left: 0;
        padding: 16px 6px 0 6px;
    }

    .panel-title {
        text-align: left
    }

    .tabs-row {
        flex-wrap: wrap;
    }

    .tabs {
        gap: 22px;
        padding-left: 0;
        flex-wrap: wrap
    }

    .list-date {
        padding-left: 0;
    }

    .teams-topbar {
        justify-content: flex-start;
    }

    .country-row {
        grid-template-columns: 60px minmax(0, 1fr) 90px 28px;
    }

    .country-date {
        display: none;
    }

    .car-row {
        grid-template-columns: 60px minmax(0, 1fr) 90px 28px;
    }

    .car-date {
        display: none;
    }
}

/* Mobil gorunumde sorun var tekrar bakılabilir */
@media (max-width: 520px) {
    .topbar {
        padding: 0 14px;
        gap: 10px;
    }

    .topbar-title {
        font-size: 20px
    }

    .topbar-center {
        display: none;
    }

    .admin-name {
        display: none;
    }

    .tabs-row {
        flex-direction: column;
        align-items: flex-start
    }

    .tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
        gap: 16px;
    }

    .tab {
        white-space: nowrap;
    }

    .tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .search input {
        width: 150px
    }

    .row {
        grid-template-columns: 44px 1fr;
        grid-auto-rows: auto
    }

    .row-mid,
    .row-right {
        display: none
    }

    .country-row {
        grid-template-columns: 44px minmax(0, 1fr) 24px;
        padding: 10px 8px;
    }

    .country-info,
    .country-date {
        display: none;
    }

    .car-row {
        grid-template-columns: 48px 1fr 58px 24px
    }

    .car-date {
        display: none
    }

    .input {
        width: 100%;
    }

    .orders-summary {
        grid-template-columns: 1fr;
    }

    .orders-panel--radio {
        min-width: 0;
        width: 100%;
    }

    .chat-message {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-message--right {
        align-items: flex-end;
    }

    .chat-avatar {
        width: auto;
    }

    .orders-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .payments-center-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .payments-tabs {
        flex-wrap: wrap;
    }

    .payments-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .team-cards {
        grid-template-columns: 1fr;
    }

    .employee-row {
        grid-template-columns: 30px 1fr 36px;
        grid-auto-rows: auto;
        gap: 8px;
    }

    .employee-role,
    .employee-bar {
        grid-column: 2 / -1;
    }
}
