:root {
    --primary: #0057ff;
    --primary-hover: #0046d8;
    --primary-soft: #eaf1ff;

    --accent: #1e88ff;

    --success: #15c46b;
    --success-soft: #e8fbf1;

    --warning: #f6a623;
    --warning-soft: #fff6df;

    --danger: #ff4d6d;
    --danger-hover: #e83b5a;
    --danger-soft: #fff0f3;

    --background: #f4f8ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;

    --sidebar-start: #0b1739;
    --sidebar-end: #11245e;

    --text: #12213f;
    --text-secondary: #6b7b9d;
    --text-light: #8c9ab5;

    --border: #dce7ff;
    --border-soft: #e9f0ff;

    --shadow:
        0 18px 40px
        rgba(14, 45, 90, 0.08);

    --shadow-hover:
        0 22px 50px
        rgba(14, 45, 90, 0.13);

    --shadow-primary:
        0 12px 28px
        rgba(0, 87, 255, 0.24);

    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --transition:
        0.2s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #f7faff 0%,
            var(--background) 100%
        );

    color: var(--text);

    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    appearance: none;
}

svg {
    display: block;
}

/* =========================================================
   APP LAYOUT
========================================================= */

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

.sidebar {
    width: 270px;
    flex: 0 0 270px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 0;

    padding: 20px 14px;

    color: #ffffff;

    background:
        linear-gradient(
            165deg,
            var(--sidebar-start),
            var(--sidebar-end)
        );

    box-shadow:
        12px 0 40px
        rgba(17, 36, 94, 0.12);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.page-content {
    padding: 28px;
}

/* =========================================================
   BRAND
========================================================= */

.sidebar-brand {
    padding: 10px 10px 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2580ff,
            #0057ff
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    box-shadow:
        0 12px 26px
        rgba(0, 87, 255, 0.32);
}

.brand-logo-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-kicker {
    display: block;

    margin-bottom: 3px;

    color:
        rgba(255, 255, 255, 0.54);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.brand-title {
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 4px;

    flex: 1;
}

.sidebar-nav a {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;

    gap: 10px;

    padding: 0 13px;

    border-radius: 11px;

    color:
        rgba(255, 255, 255, 0.68);

    text-decoration: none;

    flex: 0 0 42px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.sidebar-nav a:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    transform: translateX(2px);
}

.sidebar-nav a.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(37, 128, 255, 0.28),
            rgba(0, 87, 255, 0.18)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.06);
}

.sidebar-nav a.active::before {
    content: "";

    position: absolute;

    left: -14px;
    top: 50%;

    width: 4px;
    height: 24px;

    border-radius:
        0 7px 7px 0;

    transform:
        translateY(-50%);

    background:
        #4da1ff;

    box-shadow:
        0 0 18px
        rgba(77, 161, 255, 0.6);
}

.nav-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    display: grid;
    place-items: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-label {
    flex: 1;

    font-size: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 16px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 11px 13px;

    border-radius: 13px;

    color:
        rgba(255, 255, 255, 0.72);

    text-decoration: none;

    background:
        rgba(255, 255, 255, 0.05);

    transition:
        background var(--transition),
        color var(--transition);
}

.logout-link:hover {
    color: #ffffff;

    background:
        rgba(255, 77, 109, 0.20);
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    min-height: 76px;

    position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 14px 28px;

    background:
        rgba(255, 255, 255, 0.88);

    border-bottom:
        1px solid
        rgba(220, 231, 255, 0.86);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-title {
    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    line-height: 1.3;
}

.topbar-user-info strong {
    color: var(--text);

    font-size: 13px;
}

.topbar-user-info small {
    color: var(--text-light);

    font-size: 11px;
}

.avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #2580ff,
            var(--primary)
        );

    box-shadow:
        var(--shadow-primary);
}

/* =========================================================
   PAGE HEADER
========================================================= */

.page-header,
.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.page-header h1,
.dashboard-welcome h1 {
    margin:
        4px 0 7px;

    color: var(--text);

    font-size: 32px;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.page-header p,
.dashboard-welcome p {
    margin: 0;

    max-width: 680px;

    color: var(--text-secondary);

    line-height: 1.6;
}

.page-eyebrow {
    display: inline-block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

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

.card {
    padding: 22px;

    border-radius:
        var(--radius-xl);

    background:
        var(--surface);

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    border-color:
        #cfddfb;

    box-shadow:
        var(--shadow-hover);
}

.card h2,
.card h3 {
    color: var(--text);
}

/* =========================================================
   GRID
========================================================= */

.grid {
    display: grid;
    gap: 18px;
}

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

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

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

.dashboard-primary-grid {
    align-items: stretch;
}

.dashboard-secondary-grid {
    margin-top: 18px;
}

.dashboard-card {
    min-height: 270px;

    display: flex;
    flex-direction: column;
}

.dashboard-card:hover,
.stat-card:hover {
    transform:
        translateY(-3px);
}

.dashboard-card-top {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 21px;
}

.dashboard-icon,
.secondary-card-icon,
.section-icon,
.card-heading-icon,
.info-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--primary);

    background:
        var(--primary-soft);

    border:
        1px solid
        #d8e5ff;
}

.dashboard-icon svg,
.secondary-card-icon svg,
.section-icon svg,
.card-heading-icon svg,
.info-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-category {
    color: var(--text-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--text);

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.metric-note {
    margin-top: 8px;

    color: var(--text-secondary);

    line-height: 1.65;
}

.dashboard-card-footer {
    margin-top: auto;
    padding-top: 22px;
}

/* =========================================================
   STATS
========================================================= */

.dashboard-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.stat-card {
    display: block;

    padding: 18px;

    border-radius: 18px;

    color: inherit;

    text-decoration: none;

    background:
        var(--surface);

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.stat-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.stat-icon-success {
    color: var(--success);

    background:
        var(--success-soft);
}

.stat-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-label {
    flex: 1;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}

.stat-value {
    margin-top: 16px;

    color: var(--text);

    font-size: 34px;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.stat-link {
    display: block;

    margin-top: 7px;

    color: var(--text-light);

    font-size: 11px;
}

/* =========================================================
   CLOCK
========================================================= */

.dashboard-clock {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 250px;

    padding: 13px 15px;

    border-radius: 17px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.dashboard-clock-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.dashboard-clock-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-clock-date {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
}

.dashboard-clock-time {
    display: block;

    color: var(--text);

    font-size: 19px;
    font-weight: 800;
}

/* =========================================================
   BUTTONS
========================================================= */

.actions,
.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 15px;

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

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

.btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1670ff,
            var(--primary)
        );

    box-shadow:
        var(--shadow-primary);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-hover)
        );
}

.btn-secondary {
    color: var(--text);

    background: #ffffff;

    border-color:
        var(--border);
}

.btn-secondary:hover {
    border-color:
        #bdd1ff;

    background:
        #f8fbff;
}

.btn-success {
    color: #ffffff;

    background:
        var(--success);
}

.btn-danger {
    color: #ffffff;

    background:
        var(--danger);
}

.btn-danger:hover {
    background:
        var(--danger-hover);
}

.btn-small {
    min-height: 36px;

    padding: 8px 12px;

    font-size: 12px;
}

.btn-icon {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;

    transform: none;
}

/* =========================================================
   ICON BUTTON
========================================================= */

.icon-btn {
    width: 38px;
    height: 38px;

    display: inline-grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 12px;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.icon-btn:hover {
    transform:
        translateY(-1px);
}

.icon-btn svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn-danger {
    color: var(--danger);

    background:
        var(--danger-soft);
}

.icon-btn-danger:hover {
    color: #ffffff;

    background:
        var(--danger);

    box-shadow:
        0 9px 22px
        rgba(255, 77, 109, 0.24);
}

/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    border-radius:
        var(--radius-lg);

    border:
        1px solid
        var(--border-soft);
}

table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;

    background:
        var(--surface);
}

th,
td {
    padding: 14px 15px;

    text-align: left;
    vertical-align: middle;

    border-bottom:
        1px solid
        var(--border-soft);
}

th {
    color: var(--text-light);

    background:
        #f8fbff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tbody tr {
    transition:
        background var(--transition);
}

tbody tr:hover {
    background:
        #f8fbff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   FORMS
========================================================= */

.form-grid {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 7px;
}

label {
    color: #455a81;

    font-size: 12px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;

    min-height: 48px;

    padding: 11px 13px;

    color: var(--text);

    background:
        #ffffff;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

textarea {
    min-height: 100px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color:
        #8bb5ff;

    box-shadow:
        0 0 0 4px
        rgba(0, 87, 255, 0.08);
}

::placeholder {
    color: #a4afc3;
}

.form-help {
    color: var(--text-light);

    font-size: 11px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 10px;

    margin-top: 4px;
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    padding: 13px 15px;

    margin-bottom: 18px;

    border-radius:
        var(--radius-md);

    border: 1px solid transparent;

    line-height: 1.5;
}

.alert-success {
    color: #087840;

    background:
        var(--success-soft);

    border-color:
        #b9efd2;
}

.alert-error {
    color: #b12643;

    background:
        var(--danger-soft);

    border-color:
        #ffd2dc;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        currentColor;
}

.status-active {
    color: #08804a;

    background:
        var(--success-soft);
}

.status-blocked {
    color: #be2d49;

    background:
        var(--danger-soft);
}

.status-warning {
    color: #9b6500;

    background:
        var(--warning-soft);
}

/* =========================================================
   BADGES / CHIPS
========================================================= */

.code-chip,
.activity-chip,
.role-chip,
.file-size-chip,
.ip-chip,
.count-chip,
.assigned-chip {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 10px;

    color: #3c5e92;

    background:
        #f2f6ff;

    border:
        1px solid
        var(--border-soft);

    font-size: 11px;
    font-weight: 700;
}

.code-chip,
.ip-chip {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.notification-badge,
.dashboard-notification,
.message-unread-badge {
    min-width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border-radius: 999px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff5b77,
            #e91e4d
        );

    font-size: 10px;
    font-weight: 900;

    box-shadow:
        0 7px 16px
        rgba(233, 30, 77, 0.25);
}

/* =========================================================
   USERS
========================================================= */

.user-cell,
.file-cell,
.uploaded-by-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    background:
        var(--primary-soft);
}

.mini-avatar {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    background:
        var(--primary-soft);
}

.user-name {
    display: block;

    color: var(--text);
}

.user-meta {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 11px;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 20px;
}

.section-heading h2 {
    margin:
        2px 0 5px;
}

.section-heading p {
    margin: 0;

    color: var(--text-secondary);

    line-height: 1.5;
}

/* =========================================================
   FILES
========================================================= */

.file-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 38px;

    border-radius: 11px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.file-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-icon-small {
    width: 30px;
    height: 30px;

    flex-basis: 30px;
}

.assign-file-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assign-file-form select {
    min-width: 170px;

    min-height: 38px;

    padding: 8px 10px;
}

/* =========================================================
   WORKER PROFILE
========================================================= */

.worker-profile-card {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        minmax(360px, 1.2fr);

    gap: 24px;

    align-items: center;
}

.worker-profile-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.worker-profile-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #2580ff,
            var(--primary)
        );

    box-shadow:
        var(--shadow-primary);
}

.worker-profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.worker-profile-name-row h2 {
    margin: 0;
}

.worker-profile-subtitle {
    margin:
        4px 0 0;

    color: var(--text-secondary);
}

.worker-info-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.worker-info-item {
    padding: 13px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.worker-info-label {
    display: block;

    margin-bottom: 6px;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================================
   UPLOAD
========================================================= */

.upload-panel {
    padding: 18px;

    margin-bottom: 22px;

    border-radius:
        var(--radius-lg);

    background:
        #f7faff;

    border:
        1px dashed
        #b8ceff;
}

.upload-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: end;
}

/* =========================================================
   MESSAGES
========================================================= */

.conversation-list {
    display: grid;
    gap: 9px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px;

    color: inherit;

    border-radius:
        var(--radius-lg);

    text-decoration: none;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.conversation-item:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow);
}

.conversation-unread {
    background:
        #f4f8ff;

    border-color:
        #c9dcff;
}

.conversation-avatar {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    position: relative;

    border-radius: 15px;

    color: var(--primary);

    font-weight: 800;

    background:
        var(--primary-soft);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.conversation-preview {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-shell {
    padding: 0;

    overflow: hidden;
}

.chat-header {
    padding: 17px 19px;

    border-bottom:
        1px solid
        var(--border-soft);
}

.chat-messages {
    min-height: 360px;

    padding: 24px;

    background:
        #f8fbff;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    margin-bottom: 15px;
}

.message-row-mine {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 68%;

    padding: 11px 13px;

    border-radius: 17px;
}

.message-bubble-mine {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1670ff,
            var(--primary)
        );

    border-bottom-right-radius: 5px;

    box-shadow:
        var(--shadow-primary);
}

.message-bubble-other {
    color: var(--text);

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    border-bottom-left-radius: 5px;
}

.message-author {
    margin-bottom: 4px;

    font-size: 10px;
    font-weight: 800;

    opacity: 0.7;
}

.message-text {
    line-height: 1.55;

    word-break: break-word;
}

.message-time {
    margin-top: 6px;

    font-size: 9px;

    opacity: 0.62;
}

.chat-composer {
    padding: 17px 19px;

    background:
        #ffffff;

    border-top:
        1px solid
        var(--border-soft);
}

.message-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 11px;

    align-items: end;
}

/* =========================================================
   WORKER FILES
========================================================= */

.worker-files-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;
}

.worker-file-card {
    min-height: 245px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    border-radius:
        var(--radius-lg);

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        0 12px 28px
        rgba(14, 45, 90, 0.05);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.worker-file-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);
}

.worker-file-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.worker-file-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.worker-file-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.worker-file-content {
    padding: 17px 0;
}

.worker-file-content h3 {
    margin:
        0 0 9px;

    font-size: 15px;

    word-break: break-word;
}

.worker-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;

    color: var(--text-secondary);

    font-size: 11px;
}

.worker-file-actions {
    margin-top: auto;
}

.worker-file-actions .btn {
    width: 100%;
}

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

.login-body {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 1.08fr)
        minmax(420px, 0.92fr);

    background:
        linear-gradient(
            135deg,
            #eaf1ff,
            #f8fbff
        );
}

.login-brand-panel {
    padding: 34px;

    position: relative;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            155deg,
            var(--sidebar-start),
            #12317c
        );
}

.login-brand-panel::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 128, 255, 0.35),
            transparent 68%
        );
}

.login-brand-content {
    position: relative;
    z-index: 1;

    max-width: 600px;

    margin-top: 100px;
}

.login-brand-content h1 {
    margin:
        8px 0
        18px;

    color: #ffffff;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    line-height: 1.02;

    letter-spacing: -0.055em;
}

.login-brand-content > p {
    color:
        rgba(255, 255, 255, 0.67);

    font-size: 16px;
    line-height: 1.7;
}

.login-brand-panel .page-eyebrow {
    color: #65adff;
}

.login-brand-panel .brand-kicker {
    color:
        rgba(255, 255, 255, 0.52);
}

.login-feature-list {
    display: grid;
    gap: 10px;

    margin-top: 34px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 500px;

    padding: 12px 13px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.login-feature-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #75b4ff;

    background:
        rgba(255, 255, 255, 0.08);
}

.login-feature-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature strong {
    display: block;

    color: #ffffff;

    font-size: 12px;
}

.login-feature span {
    display: block;

    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 11px;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        #f8fbff;
}

.login-card {
    width: 100%;
    max-width: 460px;

    padding: 34px;

    border-radius:
        var(--radius-xl);

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.login-card-header {
    margin-bottom: 25px;
}

.login-card-header h2 {
    margin:
        6px 0
        6px;

    color: var(--text);

    font-size: 30px;
}

.login-card-header p {
    margin: 0;

    color: var(--text-secondary);
}

.login-mobile-brand {
    display: none;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap input {
    padding-left: 44px;
}

.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    width: 19px;
    height: 19px;

    transform:
        translateY(-50%);

    color: var(--text-light);

    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-submit {
    width: 100%;

    min-height: 48px;

    margin-top: 3px;
}

.login-security-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    margin-top: 19px;

    color: var(--text-light);

    font-size: 10px;
}

.login-security-note svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
    padding: 48px 20px;

    text-align: center;
}

.empty-state-icon {
    width: 62px;
    height: 62px;

    margin:
        0 auto
        15px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.empty-state-icon svg {
    width: 29px;
    height: 29px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state h2 {
    margin-bottom: 6px;
}

.empty-state p {
    margin:
        0 0
        17px;

    color: var(--text-secondary);
}

.empty-mini-state {
    padding: 25px;

    border-radius:
        var(--radius-md);

    color: var(--text-secondary);

    text-align: center;

    background:
        var(--surface-soft);
}

/* =========================================================
   UTILITY
========================================================= */

.muted-text {
    color: var(--text-light);
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

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

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

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

@media (max-width: 950px) {

    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        padding-bottom: 12px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .sidebar-nav a {
        width: 100%;
        height: 42px;
        min-height: 42px;
        max-height: 42px;

        flex: 0 0 42px;
    }

    .sidebar-nav a.active::before {
        display: none;
    }

    .topbar {
        position: static;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .login-shell {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        margin-bottom: 26px;
    }
}

@media (max-width: 700px) {

    .page-content {
        padding: 18px;
    }

    .topbar {
        padding:
            13px 18px;
    }

    .page-header,
    .dashboard-welcome {
        display: block;
    }

    .page-header h1,
    .dashboard-welcome h1 {
        font-size: 27px;
    }

    .dashboard-clock {
        min-width: 0;

        margin-top: 15px;
    }

    .dashboard-stats-grid,
    .worker-files-grid {
        grid-template-columns: 1fr;
    }

    .worker-info-grid {
        grid-template-columns: 1fr;
    }

    .upload-form,
    .message-form {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 85%;
    }

    .assign-file-form {
        flex-direction: column;
        align-items: stretch;
    }

    .assign-file-form select {
        min-width: 0;
    }

    .login-form-panel {
        padding: 15px;
    }

    .login-card {
        padding: 25px 20px;
    }
}
.sidebar-nav-section {
    padding:
        17px 13px
        7px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;

    padding: 10px;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #2580ff,
            #0057ff
        );

    box-shadow:
        0 8px 18px
        rgba(0, 87, 255, 0.26);
}

.sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.3;
}

.sidebar-user-info strong {
    overflow: hidden;

    color: #ffffff;

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 9px;
}

.topbar-kicker {
    display: block;

    margin-bottom: 2px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* =========================================================
   FINTECH DASHBOARD V2
========================================================= */

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;

    margin-bottom: 24px;
}

.dashboard-hero h1 {
    margin: 5px 0 7px;

    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -0.045em;
}

.dashboard-hero p {
    margin: 0;

    color: var(--text-secondary);
}

.finance-stats {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.finance-stat-card {
    position: relative;

    display: block;

    padding: 18px;

    overflow: hidden;

    color: inherit;

    text-decoration: none;

    border-radius: 18px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.finance-stat-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -42px;
    bottom: -48px;

    border-radius: 50%;

    background:
        rgba(0, 87, 255, 0.05);
}

.finance-stat-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #c7d9ff;

    box-shadow:
        var(--shadow-hover);
}

.finance-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.finance-stat-label {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finance-stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.finance-stat-icon-success {
    color: var(--success);

    background:
        var(--success-soft);
}

.finance-stat-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-stat-value {
    display: block;

    margin-top: 14px;

    color: var(--text);

    font-size: 34px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.045em;
}

.finance-stat-note {
    display: block;

    margin-top: 9px;

    color: var(--text-light);

    font-size: 11px;
}

.dashboard-main-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.8fr);

    gap: 18px;

    margin-bottom: 18px;
}

.dashboard-main-card {
    padding: 22px;

    border-radius:
        var(--radius-xl);

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 22px;
}

.dashboard-panel-heading h2 {
    margin: 3px 0 0;

    font-size: 22px;
}

.dashboard-panel-kicker {
    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}

.dashboard-panel-link svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-user-summary {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.dashboard-summary-item {
    min-height: 108px;

    padding: 15px;

    border-radius: 15px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.dashboard-summary-item > span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}

.dashboard-summary-item strong {
    display: block;

    margin-top: 7px;

    color: var(--text);

    font-size: 25px;
}

.summary-bar {
    width: 100%;
    height: 5px;

    margin-top: 12px;

    overflow: hidden;

    border-radius: 999px;

    background:
        #e7efff;
}

.summary-bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #1670ff,
            #0057ff
        );
}

.dashboard-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 20px;
}

.dashboard-message-status {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dashboard-message-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.dashboard-message-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-message-status strong {
    display: block;

    color: var(--text);

    font-size: 27px;
    line-height: 1;
}

.dashboard-message-status span {
    display: block;

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 11px;
}

.dashboard-panel-copy {
    margin: 18px 0 0;

    color: var(--text-secondary);

    line-height: 1.6;
}

.dashboard-bottom-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.dashboard-action-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 17px;

    color: inherit;

    text-decoration: none;

    border-radius: 17px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        0 10px 25px
        rgba(14, 45, 90, 0.05);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.dashboard-action-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow);
}

.dashboard-action-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.dashboard-action-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-action-card span {
    display: block;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-action-card strong {
    display: block;

    margin-top: 2px;

    color: var(--text);

    font-size: 14px;
}

.dashboard-action-card small {
    display: block;

    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 10px;
}

@media (max-width: 1200px) {

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

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .dashboard-hero {
        display: block;
    }

    .dashboard-hero h1 {
        font-size: 30px;
    }

    .finance-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-user-summary {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CLIENT DASHBOARD V2
========================================================= */

.client-dashboard-overview {
    margin-bottom: 18px;
}

.client-welcome-card {
    min-height: 270px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(260px, 0.7fr);

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b1739 0%,
            #11245e 55%,
            #0057ff 140%
        );

    box-shadow:
        0 24px 55px
        rgba(11, 23, 57, 0.18);
}

.client-welcome-content {
    position: relative;
    z-index: 2;

    padding: 34px;
}

.client-card-kicker {
    display: inline-block;

    color: #69adff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.client-welcome-content h2 {
    max-width: 560px;

    margin:
        8px 0
        10px;

    color: #ffffff;

    font-size: 34px;
    line-height: 1.1;

    letter-spacing: -0.045em;
}

.client-welcome-content p {
    max-width: 580px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.64);

    line-height: 1.7;
}

.client-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 24px;
}

.btn-client-dark {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.09);

    border-color:
        rgba(255, 255, 255, 0.12);
}

.btn-client-dark:hover {
    background:
        rgba(255, 255, 255, 0.14);
}

.client-welcome-graphic {
    position: relative;

    min-height: 270px;
}

.client-graphic-ring {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.ring-one {
    width: 270px;
    height: 270px;

    right: -45px;
    top: 0;
}

.ring-two {
    width: 190px;
    height: 190px;

    right: -5px;
    top: 40px;

    border-color:
        rgba(82, 164, 255, 0.28);
}

.client-graphic-logo {
    width: 84px;
    height: 84px;

    position: absolute;

    right: 50px;
    top: 93px;

    display: grid;
    place-items: center;

    border-radius: 25px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2580ff,
            #0057ff
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    box-shadow:
        0 18px 40px
        rgba(0, 87, 255, 0.30);
}

.client-graphic-logo svg {
    width: 40px;
    height: 40px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-quick-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 18px;
}

.client-quick-card {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    color: inherit;

    text-decoration: none;

    border-radius: 20px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.client-quick-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #c7d9ff;

    box-shadow:
        var(--shadow-hover);
}

.client-quick-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-quick-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.client-quick-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-quick-tag {
    flex: 1;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.client-quick-card h3 {
    margin:
        20px 0
        7px;

    font-size: 24px;

    letter-spacing: -0.035em;
}

.client-quick-card p {
    margin: 0;

    color: var(--text-secondary);

    line-height: 1.65;
}

.client-card-link {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: auto;
    padding-top: 20px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.client-card-link svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-future-panel {
    padding: 22px;

    border-radius: 20px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.client-future-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}

.client-future-heading h2 {
    margin:
        3px 0
        5px;

    font-size: 22px;
}

.client-future-heading p {
    margin: 0;

    color: var(--text-secondary);
}

.future-lock-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--text-light);

    background:
        var(--surface-soft);
}

.future-lock-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.future-services-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.future-service-item {
    padding: 14px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.future-service-item span {
    display: block;

    color: var(--text);

    font-size: 12px;
    font-weight: 800;
}

.future-service-item small {
    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: 9px;
}

@media (max-width: 1000px) {

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

    .client-welcome-graphic {
        display: none;
    }

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

@media (max-width: 700px) {

    .client-welcome-content {
        padding: 25px;
    }

    .client-welcome-content h2 {
        font-size: 28px;
    }

    .client-quick-grid,
    .future-services-grid {
        grid-template-columns: 1fr;
    }

    .client-future-heading {
        align-items: flex-start;
    }
}
.permissions-card {
    margin-bottom: 18px;
}

.permissions-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.permission-item {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px;

    border-radius: 15px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.permission-item:hover {
    border-color: #c8d9ff;

    background:
        #f5f9ff;
}

.permission-item strong {
    display: block;

    color: var(--text);

    font-size: 12px;
}

.permission-item > div > span {
    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: 10px;
}

.permission-switch {
    position: relative;

    width: 44px;
    height: 24px;

    flex: 0 0 44px;
}

.permission-switch input {
    width: 0;
    height: 0;

    opacity: 0;

    position: absolute;
}

.permission-slider {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        #d9e2f2;

    transition:
        background var(--transition);
}

.permission-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background:
        #ffffff;

    box-shadow:
        0 3px 8px
        rgba(14, 45, 90, 0.16);

    transition:
        transform var(--transition);
}

.permission-switch input:checked
+ .permission-slider {
    background:
        var(--primary);
}

.permission-switch input:checked
+ .permission-slider::before {
    transform:
        translateX(20px);
}

.permissions-actions {
    margin-top: 16px;
}

@media (max-width: 700px) {

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   KYC
========================================================= */

.kyc-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5f9ff
        );

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.kyc-status-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kyc-status-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.kyc-status-icon svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kyc-status-main h2 {
    margin:
        3px 0
        4px;

    font-size: 22px;
}

.kyc-status-main p {
    margin: 0;

    color: var(--text-secondary);
}

.kyc-form-card {
    margin-bottom: 18px;
}

.kyc-fieldset {
    padding: 0;
    margin: 0;

    border: 0;
}

.kyc-fieldset:disabled {
    opacity: 0.82;
}

.kyc-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;
}

.kyc-field-wide {
    grid-column:
        1 / -1;
}

.kyc-actions {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 18px;
}

.kyc-submit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.kyc-submit-card h2 {
    margin:
        3px 0
        5px;
}

.kyc-submit-card p {
    margin: 0;

    color: var(--text-secondary);
}

.kyc-admin-note {
    margin-bottom: 18px;
}

.kyc-admin-note > p {
    margin-bottom: 0;

    color: var(--text-secondary);

    line-height: 1.7;
}

@media (max-width: 700px) {

    .kyc-status-card,
    .kyc-submit-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .kyc-form-grid {
        grid-template-columns: 1fr;
    }

    .kyc-field-wide {
        grid-column: auto;
    }

    .kyc-actions {
        justify-content: stretch;
    }

    .kyc-actions .btn,
    .kyc-submit-card form,
    .kyc-submit-card .btn {
        width: 100%;
    }
}
/* =========================================================
   ADMIN KYC REVIEW
========================================================= */

.kyc-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 18px 20px;

    border-radius: 20px;

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.kyc-review-client {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kyc-review-client h2 {
    margin: 3px 0;

    font-size: 21px;
}

.kyc-review-client p {
    margin: 0;

    color: var(--text-secondary);
}

.kyc-review-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.kyc-review-grid {
    margin-bottom: 18px;
}

.kyc-data-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.kyc-data-item {
    padding: 13px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.kyc-data-item > span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kyc-data-item > strong {
    display: block;

    color: var(--text);

    font-size: 12px;

    word-break: break-word;
}

.kyc-data-wide {
    grid-column:
        1 / -1;
}

.kyc-review-document,
.kyc-existing-note,
.kyc-decision-card {
    margin-bottom: 18px;
}

.kyc-existing-note p {
    margin-bottom: 0;

    color: var(--text-secondary);

    line-height: 1.7;
}

.kyc-decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 16px;
}

@media (max-width: 700px) {

    .kyc-review-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kyc-review-status {
        align-items: flex-start;
    }

    .kyc-data-grid {
        grid-template-columns: 1fr;
    }

    .kyc-data-wide {
        grid-column: auto;
    }

    .kyc-decision-actions {
        flex-direction: column;
    }

    .kyc-decision-actions .btn {
        width: 100%;
    }
}
/* =========================================================
   KYC DOCUMENT UPLOAD
========================================================= */

.kyc-documents-card {
    margin-bottom: 18px;
}

.kyc-upload-form {
    display: grid;

    grid-template-columns:
        minmax(180px, 0.6fr)
        minmax(260px, 1.4fr)
        auto;

    gap: 14px;

    align-items: end;

    margin-bottom: 22px;

    padding: 16px;

    border-radius: 16px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.kyc-uploaded-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;
}

.kyc-uploaded-heading h3 {
    margin: 0;

    font-size: 15px;
}

.kyc-documents-list {
    display: grid;
    gap: 9px;
}

.kyc-document-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px;

    border-radius: 14px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);
}

.kyc-document-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.kyc-document-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kyc-document-content {
    flex: 1;
    min-width: 0;
}

.kyc-document-content strong {
    display: block;

    overflow: hidden;

    color: var(--text);

    font-size: 12px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.kyc-document-content span {
    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: 10px;
}

@media (max-width: 800px) {

    .kyc-upload-form {
        grid-template-columns: 1fr;
    }

    .kyc-upload-form .btn {
        width: 100%;
    }
}
/* =========================================================
   ADMIN KYC DOCUMENTS
========================================================= */

.kyc-admin-documents {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.kyc-admin-document {
    overflow: hidden;

    border-radius: 17px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.kyc-admin-document-preview {
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        #eef4ff;

    border-bottom:
        1px solid
        var(--border-soft);
}

.kyc-admin-document-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background:
        #ffffff;
}

.kyc-pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    color: var(--danger);
}

.kyc-pdf-preview svg {
    width: 48px;
    height: 48px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kyc-pdf-preview span {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.kyc-admin-document-info {
    padding: 14px;
}

.kyc-admin-document-info strong {
    display: block;

    margin-top: 4px;

    color: var(--text);

    font-size: 13px;

    word-break: break-word;
}

.kyc-admin-document-info small {
    display: block;

    margin-top: 4px;

    color: var(--text-light);

    font-size: 10px;
}

.kyc-admin-document-actions {
    padding:
        0 14px
        14px;
}

@media (max-width: 800px) {

    .kyc-admin-documents {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   WALLET
========================================================= */

.wallet-admin-card {
    margin-bottom: 18px;
}

.wallet-admin-summary {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 18px;
}

.wallet-balance-box {
    padding: 17px;

    border-radius: 16px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.wallet-balance-box > span {
    display: block;

    margin-bottom: 6px;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.financial-value {
    color: var(--text);

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.025em;
}

.financial-positive {
    color: #16a34a;

    font-weight: 800;
}

.financial-negative {
    color: #dc2626;

    font-weight: 800;
}

.wallet-adjust-form {
    display: grid;

    grid-template-columns:
        minmax(160px, 0.45fr)
        minmax(260px, 1fr)
        auto;

    gap: 12px;

    align-items: end;

    padding: 16px;

    border-radius: 16px;

    background:
        #f8fbff;

    border:
        1px solid
        var(--border-soft);
}

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

.wallet-history-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    margin:
        22px 0
        12px;
}

.wallet-history-heading h3 {
    margin: 0;

    font-size: 15px;
}

@media (max-width: 900px) {

    .wallet-adjust-form {
        grid-template-columns: 1fr;
    }

    .wallet-adjust-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {

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

    .wallet-adjust-actions {
        flex-direction: column;
    }

    .wallet-adjust-actions .btn {
        width: 100%;
    }
}
/* =========================================================
   WORKER WALLET
========================================================= */

.wallet-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    gap: 18px;

    margin-bottom: 18px;
}

.wallet-hero-card {
    position: relative;

    overflow: hidden;

    min-height: 190px;

    padding: 26px;

    border-radius: 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b1739,
            #12317c 65%,
            #0057ff
        );

    box-shadow:
        0 22px 48px
        rgba(11, 23, 57, 0.18);
}

.wallet-hero-card::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -85px;
    top: -80px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);
}

.wallet-hero-label {
    position: relative;
    z-index: 1;

    display: block;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.wallet-hero-value {
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 14px;

    color: #ffffff;

    font-size: 38px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.045em;
}

.wallet-hero-note {
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 15px;

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 11px;
}

.wallet-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px;

    border-radius: 22px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.wallet-summary-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.wallet-summary-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wallet-summary-card span {
    display: block;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wallet-summary-card strong {
    display: block;

    margin-top: 6px;

    color: var(--text);

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.wallet-summary-card small {
    display: block;

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 10px;
}

@media (max-width: 900px) {

    .wallet-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .wallet-hero-value {
        font-size: 31px;
    }
}
/* =========================================================
   WORKER FINANCE OVERVIEW
========================================================= */

.worker-finance-overview {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.worker-balance-card {
    display: block;

    min-height: 155px;

    padding: 20px;

    color: inherit;

    text-decoration: none;

    border-radius: 20px;

    background:
        #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.worker-balance-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-hover);
}

.worker-balance-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b1739,
            #12317c 65%,
            #0057ff
        );

    border-color:
        transparent;
}

.worker-balance-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.worker-balance-label {
    display: block;

    margin-bottom: 9px;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.worker-balance-primary
.worker-balance-label {
    color:
        rgba(255, 255, 255, 0.58);
}

.worker-balance-value {
    display: block;

    color: var(--text);

    font-size: 29px;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.worker-balance-primary
.worker-balance-value {
    color: #ffffff;
}

.worker-balance-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);

    background:
        var(--primary-soft);
}

.worker-balance-primary
.worker-balance-icon {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);
}

.worker-balance-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.worker-balance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 25px;

    color: var(--text-secondary);

    font-size: 10px;
}

.worker-balance-primary
.worker-balance-footer {
    color:
        rgba(255, 255, 255, 0.58);
}

.worker-balance-footer svg {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 800px) {

    .worker-finance-overview {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   BANK ACCOUNTS
========================================================= */

.bank-account-list {
    display: grid;
    gap: 12px;
}

.bank-account-card {
    padding: 16px;

    border-radius: 16px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.bank-account-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
}

.bank-account-top h3 {
    margin:
        3px 0
        0;

    font-size: 16px;
}

.bank-account-data {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;

    margin-bottom: 12px;
}

.bank-account-data > div {
    padding: 10px;

    border-radius: 11px;

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);
}

.bank-account-data span {
    display: block;

    margin-bottom: 4px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.bank-account-data strong {
    display: block;

    color: var(--text);

    font-size: 11px;

    word-break: break-word;
}

.bank-account-instructions {
    margin-bottom: 12px;
    padding: 11px;

    border-radius: 11px;

    color: var(--text-secondary);

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);

    font-size: 10px;
    line-height: 1.6;
}

@media (max-width: 700px) {

    .bank-account-data {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   DEPOSIT REVIEW
========================================================= */

.deposit-review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 22px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0b1739,
            #12317c 65%,
            #0057ff
        );

    color: #ffffff;

    box-shadow:
        0 20px 45px
        rgba(11, 23, 57, 0.16);
}

.deposit-review-amount {
    display: block;

    margin-top: 7px;

    color: #ffffff;

    font-size: 32px;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.deposit-reviewed-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.deposit-reviewed-state p {
    margin: 0;

    color: var(--text-secondary);
}
/* =========================================================
   WITHDRAWALS
========================================================= */

.withdrawal-process {
    display: grid;
    gap: 12px;
}

.withdrawal-process-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 13px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.withdrawal-process-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: #ffffff;

    background:
        var(--primary);

    font-size: 11px;
    font-weight: 800;
}

.withdrawal-process-item strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 12px;
}

.withdrawal-process-item p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}
/* =========================================================
   WITHDRAWAL REVIEW
========================================================= */

.withdrawal-review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 22px;

    border-radius: 20px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b1739,
            #12317c 65%,
            #0057ff
        );

    box-shadow:
        0 20px 45px
        rgba(11, 23, 57, 0.16);
}

.withdrawal-review-amount {
    display: block;

    margin-top: 7px;

    color: #ffffff;

    font-size: 32px;
    font-weight: 800;

    letter-spacing: -0.04em;
}
/* =========================================================
   MARKETS
========================================================= */

.market-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.market-security-card {
    display: block;

    padding: 19px;

    color: inherit;

    text-decoration: none;

    border-radius: 20px;

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.market-security-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-hover);
}

.market-security-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 22px;
}

.market-security-top h2 {
    margin:
        6px 0
        3px;

    font-size: 17px;
}

.market-security-meta {
    color: var(--text-light);

    font-size: 10px;
}

.market-security-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);

    background:
        var(--primary-soft);

    font-size: 11px;
    font-weight: 800;
}

.market-featured {
    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.market-price-block span,
.market-target span,
.security-price-main span,
.security-price-secondary span {
    display: block;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.market-price-block strong {
    display: block;

    margin-top: 5px;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -0.035em;
}

.market-target {
    margin-top: 13px;
}

.market-target strong {
    display: block;

    margin-top: 4px;

    font-size: 14px;
    font-weight: 800;
}

.market-security-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 18px;
}

.security-detail-prices {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.security-price-main,
.security-price-secondary {
    padding: 20px;

    border-radius: 18px;

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.security-price-main strong {
    display: block;

    margin-top: 7px;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.security-price-secondary strong {
    display: block;

    margin-top: 7px;

    font-size: 20px;
    font-weight: 800;
}

.market-detail-status {
    display: grid;
    gap: 11px;
}

.market-detail-status > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 12px;

    border-radius: 12px;

    background:
        var(--surface-soft);
}

.market-lock-notice {
    margin-top: 14px;
    padding: 13px;

    border-radius: 13px;

    background:
        #fff8e8;

    border:
        1px solid
        #f4dfaa;
}

.market-lock-notice p {
    margin:
        5px 0
        0;
}

@media (max-width: 1000px) {

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

@media (max-width: 700px) {

    .market-grid,
    .security-detail-prices {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   BUY SECURITY
========================================================= */

.buy-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 18px;
}

.buy-summary-grid > div {
    padding: 14px;

    border-radius: 14px;

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border-soft);
}

.buy-summary-grid span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.buy-summary-grid strong {
    display: block;

    color: var(--text);

    font-size: 18px;
    font-weight: 800;
}

.buy-form {
    display: grid;

    grid-template-columns:
        minmax(180px, 0.4fr)
        auto;

    gap: 12px;

    align-items: end;
}

@media (max-width: 700px) {

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

    .buy-form {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.portfolio-summary-card {
    padding: 18px;

    border-radius: 18px;

    background: #ffffff;

    border:
        1px solid
        var(--border-soft);

    box-shadow:
        var(--shadow);
}

.portfolio-summary-card span {
    display: block;

    margin-bottom: 7px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.portfolio-summary-card strong {
    display: block;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

@media (max-width: 1000px) {

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

@media (max-width: 650px) {

    .portfolio-summary-grid {
        grid-template-columns: 1fr;
    }
}
.portfolio-sell-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 175px;
}

.portfolio-sell-form input {
    width: 90px;
    min-width: 90px;
}

.portfolio-sell-form .btn {
    flex: 0 0 auto;
}
/* ==========================================
   SECURITY LOGO UPLOAD
========================================== */

.security-logo-preview{
    margin-top:16px;
}

.security-logo-preview img{
    width:72px;
    height:72px;
    border-radius:18px;
    object-fit:contain;
    background:#fff;
    border:1px solid #e5e7eb;
    padding:8px;
    box-shadow:0 4px 14px rgba(0,0,0,.08);
}

input[type="file"]{
    padding:10px;
}
/* ==========================================
   ADMIN SECURITY LOGO
========================================== */

.admin-security-cell{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:210px;
}

.admin-security-logo{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:10px;

    background:#ffffff;

    border:1px solid #e3eaf3;

    overflow:hidden;
}

.admin-security-logo img{
    width:30px;
    height:30px;

    object-fit:contain;

    display:block;
}

.admin-security-logo span{
    color:#3568d4;

    font-size:12px;
    font-weight:750;
}

.admin-security-info{
    display:flex;
    flex-direction:column;
}

.admin-security-info strong{
    color:#172033;

    font-size:14px;
    font-weight:700;
}
