:root {
    --red: #f21d24;
    --red-dark: #cc1017;
    --red-soft: #fff0f1;

    --black: #0b0b0d;
    --black-soft: #171719;

    --white: #ffffff;

    --bg: #f7f7f9;
    --panel: #ffffff;

    --text: #161618;
    --muted: #777780;
    --muted-light: #a2a2aa;

    --border: #e7e7eb;

    --green: #14b86f;
    --green-soft: #ebfbf4;

    --sidebar-width: 245px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, .07);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    color: var(--text);
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
}


/* =========================================
   LOGIN
========================================= */

.login-body {
    min-height: 100vh;
    background: var(--white);
}


.login-shell {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1.02fr .98fr;
}


.login-left {
    min-height: 100vh;

    background: var(--black);

    color: white;

    padding: 45px 65px;

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;
}


.login-left::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(242, 29, 36, .18);

    filter: blur(90px);

    right: -220px;
    top: -160px;
}


.login-left::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    pointer-events: none;
}


.login-logo {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
}


.login-logo img {
    width: 180px;

    background: white;

    padding: 8px 12px;

    border-radius: 10px;
}


.login-content {
    position: relative;
    z-index: 2;

    margin: auto 0;

    max-width: 620px;
}


.platform-badge {
    display: inline-flex;

    border:
        1px solid rgba(255,255,255,.12);

    padding: 9px 13px;

    border-radius: 999px;

    color: #a8a8b0;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 27px;
}


.login-content h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(48px, 5vw, 72px);

    line-height: 1;

    letter-spacing: -3.5px;
}


.login-content h1 span {
    color: var(--red);
}


.login-content > p {
    margin-top: 25px;

    max-width: 520px;

    color: #96969e;

    font-size: 15px;

    line-height: 1.75;
}


.login-features {
    margin-top: 38px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px;
}


.login-features div {
    min-height: 65px;

    border:
        1px solid rgba(255,255,255,.09);

    background:
        rgba(255,255,255,.035);

    border-radius: 13px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    color: #c4c4cb;

    font-size: 11px;
}


.login-features span {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(242,29,36,.12);

    color: var(--red);
}


.login-footer {
    position: relative;
    z-index: 2;

    color: #626269;

    font-size: 9px;
}


.login-right {
    min-height: 100vh;

    display: grid;
    place-items: center;

    background: #fafafa;

    padding: 40px;
}


.login-card {
    width: min(100%, 455px);

    background: white;

    border:
        1px solid var(--border);

    border-radius: 22px;

    padding: 36px;

    box-shadow: var(--shadow);
}


.login-mini-label {
    color: var(--red);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.login-card-header h2 {
    margin-top: 11px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 29px;

    letter-spacing: -1.2px;
}


.login-card-header p {
    color: var(--muted);

    font-size: 12px;

    margin-top: 8px;

    line-height: 1.6;
}


.login-card form {
    margin-top: 30px;
}


.form-group {
    margin-bottom: 19px;
}


.form-group label {
    display: block;

    font-size: 10px;
    font-weight: 700;

    margin-bottom: 8px;
}


.form-group input {
    width: 100%;
    height: 48px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    outline: none;

    padding: 0 13px;

    font-size: 12px;

    transition: .2s;
}


.form-group input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(242,29,36,.07);
}


.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.password-label a {
    color: var(--red);

    font-size: 9px;
}


.password-wrap {
    position: relative;
}


.password-wrap input {
    padding-right: 65px;
}


.show-password {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    background: transparent;

    border: none;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;
}


.remember-row {
    margin-top: -3px;

    margin-bottom: 20px;
}


.remember-row label {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 10px;
}


.login-submit {
    width: 100%;
    height: 50px;

    border: none;

    border-radius: 11px;

    background: var(--red);

    color: white;

    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    transition: .2s;
}


.login-submit:hover {
    background: var(--red-dark);

    transform: translateY(-1px);
}


.login-message {
    min-height: 20px;

    margin-top: 12px;

    font-size: 10px;

    text-align: center;
}


.login-message.error {
    color: #d81e26;
}


.demo-login {
    margin-top: 27px;

    border-top:
        1px solid var(--border);

    padding-top: 22px;
}


.demo-login > span {
    color: var(--muted-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.demo-login > p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


.demo-credentials {
    margin-top: 13px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


.demo-credentials div {
    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 11px;
}


.demo-credentials small {
    display: block;

    color: var(--muted-light);

    font-size: 7px;
}


.demo-credentials strong {
    display: block;

    margin-top: 4px;

    font-size: 9px;
}



/* =========================================
   PLATFORM LAYOUT
========================================= */

.platform-body {
    min-height: 100vh;

    background: var(--bg);
}


.platform-shell {
    min-height: 100vh;

    display: flex;
}


.platform-sidebar {
    width: var(--sidebar-width);

    height: 100vh;

    position: fixed;

    left: 0;
    top: 0;

    background: var(--white);

    border-right:
        1px solid var(--border);

    padding: 18px 14px;

    overflow-y: auto;

    z-index: 1000;
}


.sidebar-top {
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5px;

    margin-bottom: 13px;
}


.platform-logo img {
    width: 137px;
}


.sidebar-close {
    display: none;

    width: 32px;
    height: 32px;

    background: transparent;

    border: none;

    font-size: 22px;
}


.workspace-card {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 11px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    margin-bottom: 21px;
}


.workspace-icon {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--red);

    color: white;

    font-size: 9px;
    font-weight: 800;
}


.workspace-card > div:nth-child(2) {
    flex: 1;
}


.workspace-card small {
    display: block;

    color: var(--muted-light);

    font-size: 6px;
    letter-spacing: 1px;
}


.workspace-card strong {
    display: block;

    font-size: 9px;

    margin-top: 3px;
}


.workspace-card > span {
    color: var(--muted);

    font-size: 10px;
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
}


.sidebar-section-title {
    color: var(--muted-light);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.2px;

    margin:
        15px 10px 7px;
}


.sidebar-nav a {
    min-height: 41px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 11px;

    border-radius: 10px;

    color: #616168;

    font-size: 10px;

    margin-bottom: 3px;

    transition: .2s;
}


.sidebar-nav a:hover {
    background: #fafafa;

    color: var(--text);
}


.sidebar-nav a.active {
    background: var(--red-soft);

    color: var(--red);

    font-weight: 700;
}


.nav-icon {
    width: 20px;

    display: grid;
    place-items: center;

    font-size: 10px;
}


.nav-badge {
    margin-left: auto;

    min-width: 19px;
    height: 19px;

    border-radius: 999px;

    display: grid;
    place-items: center;

    background: #f2f2f4;

    color: #777;

    font-size: 7px;
}


.sidebar-upgrade {
    margin-top: 25px;

    padding: 16px;

    border-radius: 14px;

    background: var(--black);

    color: white;
}


.sidebar-upgrade > span {
    color: var(--red);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}


.sidebar-upgrade strong {
    display: block;

    font-size: 11px;

    line-height: 1.4;

    margin-top: 7px;
}


.sidebar-upgrade p {
    color: #898991;

    font-size: 8px;

    line-height: 1.6;

    margin-top: 8px;
}


.sidebar-upgrade a {
    display: inline-block;

    color: white;

    font-size: 8px;
    font-weight: 700;

    margin-top: 12px;
}


.platform-main {
    width:
        calc(
            100% - var(--sidebar-width)
        );

    margin-left:
        var(--sidebar-width);
}



/* TOPBAR */

.platform-topbar {
    min-height: 74px;

    position: sticky;

    top: 0;

    z-index: 800;

    background:
        rgba(255,255,255,.92);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid var(--border);

    padding:
        0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.topbar-left {
    display: flex;
    align-items: center;

    gap: 12px;
}


.sidebar-open {
    display: none;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: white;

    border:
        1px solid var(--border);
}


.topbar-label {
    display: block;

    color: var(--muted-light);

    font-size: 6px;
    letter-spacing: 1.2px;

    margin-bottom: 3px;
}


.topbar-left h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 17px;
}


.topbar-right {
    display: flex;
    align-items: center;

    gap: 8px;
}


.top-icon-button {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: white;

    border:
        1px solid var(--border);

    position: relative;
}


.notification-dot {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--red);

    top: 7px;
    right: 7px;
}


.user-menu {
    margin-left: 3px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-left:
        1px solid var(--border);

    padding-left: 12px;
}


.user-avatar {
    width: 36px;
    height: 36px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background: var(--black);

    color: white;

    font-size: 9px;
    font-weight: 800;
}


.user-details strong {
    display: block;

    font-size: 9px;
}


.user-details span {
    display: block;

    color: var(--muted);

    font-size: 7px;

    margin-top: 2px;
}


.user-menu > span {
    color: var(--muted);

    font-size: 9px;
}



/* CONTENT */

.platform-content {
    padding:
        31px 30px 50px;
}


.welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;

    margin-bottom: 27px;
}


.small-label {
    color: var(--red);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.3px;
}


.welcome-row h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 27px;

    letter-spacing: -1px;

    margin-top: 7px;
}


.welcome-row p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 7px;
}


.welcome-actions {
    display: flex;

    gap: 8px;
}


.primary-action,
.secondary-action {
    min-height: 41px;

    padding: 0 15px;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 700;
}


.primary-action {
    background: var(--red);

    border: none;

    color: white;
}


.secondary-action {
    background: white;

    border:
        1px solid var(--border);

    color: var(--text);
}



/* METRICS */

.metric-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 12px;
}


.metric-card {
    min-height: 150px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: white;

    padding: 17px;

    display: flex;
    flex-direction: column;
}


.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.metric-header > span {
    color: var(--muted);

    font-size: 8px;
}


.metric-icon {
    width: 31px;
    height: 31px;

    border-radius: 9px;

    display: grid;
    place-items: center;

    background: var(--red-soft);

    color: var(--red);

    font-size: 9px;
}


.metric-value {
    display: block;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 27px;

    margin-top: 20px;
}


.metric-value.green {
    color: var(--green);
}


.metric-footer {
    margin-top: auto;

    display: flex;
    align-items: center;

    gap: 7px;
}


.metric-footer span,
.metric-footer small {
    font-size: 7px;
}


.metric-footer small {
    color: var(--muted-light);
}


.positive {
    color: var(--green);
}



/* PANELS */

.dashboard-content-grid {
    display: grid;

    grid-template-columns:
        1.45fr .8fr;

    gap: 12px;
}


.dashboard-panel {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 15px;

    padding: 18px;
}


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
}


.panel-label {
    display: block;

    color: var(--muted-light);

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 1px;
}


.panel-header h3 {
    margin-top: 4px;

    font-size: 11px;
}


.panel-header a {
    color: var(--red);

    font-size: 8px;
    font-weight: 700;
}


.panel-select {
    height: 31px;

    padding: 0 8px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: white;

    color: var(--muted);

    font-size: 7px;
}


.online-status {
    color: var(--green);

    font-size: 7px;
}



/* CHART */

.activity-panel {
    min-height: 325px;
}


.large-chart {
    height: 235px;

    margin-top: 14px;

    display: flex;
    align-items: stretch;

    gap: 10px;

    padding:
        20px 5px 0;
}


.chart-column {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: end;

    gap: 8px;
}


.chart-bar {
    display: block;

    width: 100%;

    border-radius: 6px 6px 2px 2px;

    background: #e8e8eb;

    min-height: 20px;
}


.chart-bar.highlight {
    background: var(--red);
}


.chart-column small {
    text-align: center;

    color: var(--muted-light);

    font-size: 6px;
}



/* ASSISTANT */

.assistant-panel {
    min-height: 325px;

    display: flex;
    flex-direction: column;
}


.assistant-conversation {
    margin-top: 19px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.assistant-message {
    padding: 10px 11px;

    border-radius: 10px;

    font-size: 8px;

    line-height: 1.55;
}


.assistant-message.user {
    align-self: flex-end;

    max-width: 88%;

    background: var(--black);

    color: white;
}


.assistant-message.ai {
    max-width: 93%;

    background: #fafafa;

    border:
        1px solid var(--border);
}


.assistant-input {
    margin-top: auto;

    display: flex;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 4px;

    gap: 5px;
}


.assistant-input input {
    flex: 1;

    border: none;

    outline: none;

    padding: 0 7px;

    font-size: 8px;
}


.assistant-input button {
    width: 34px;
    height: 34px;

    border: none;

    border-radius: 8px;

    background: var(--red);

    color: white;
}



/* AGENT LIST */

.agents-panel,
.automation-panel {
    min-height: 310px;
}


.agent-list,
.automation-list {
    margin-top: 17px;
}


.agent-row,
.automation-row {
    min-height: 66px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-bottom:
        1px solid var(--border);
}


.agent-row:last-child,
.automation-row:last-child {
    border-bottom: none;
}


.agent-avatar,
.automation-symbol {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--red-soft);

    color: var(--red);

    font-size: 8px;
    font-weight: 800;
}


.agent-info,
.automation-row > div:nth-child(2) {
    flex: 1;
}


.agent-info strong,
.automation-row strong {
    display: block;

    font-size: 8px;
}


.agent-info span,
.automation-row span:not(.success-badge) {
    display: block;

    color: var(--muted-light);

    font-size: 7px;

    margin-top: 3px;
}


.agent-status {
    padding: 5px 7px;

    border-radius: 999px;

    color: var(--green) !important;

    background: var(--green-soft);

    font-size: 6px !important;

    font-weight: 700;
}


.success-badge {
    padding: 5px 7px;

    border-radius: 999px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 6px;
    font-weight: 700;
}



/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .metric-grid {
        grid-template-columns:
            1fr 1fr;
    }

}


@media (max-width: 900px) {

    .login-shell {
        grid-template-columns: 1fr;
    }


    .login-left {
        min-height: auto;

        padding:
            35px 28px 55px;
    }


    .login-content {
        margin-top: 80px;
    }


    .login-footer {
        margin-top: 65px;
    }


    .login-right {
        min-height: auto;

        padding: 60px 20px;
    }


    .platform-sidebar {
        transform:
            translateX(-100%);

        transition: .3s;
    }


    .platform-sidebar.open {
        transform:
            translateX(0);
    }


    .sidebar-close {
        display: block;
    }


    .sidebar-open {
        display: block;
    }


    .platform-main {
        width: 100%;

        margin-left: 0;
    }


    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .login-left {
        padding:
            28px 20px 45px;
    }


    .login-logo img {
        width: 145px;
    }


    .login-content h1 {
        font-size: 44px;

        letter-spacing: -2.3px;
    }


    .login-features {
        grid-template-columns: 1fr;
    }


    .login-card {
        padding: 27px 20px;
    }


    .demo-credentials {
        grid-template-columns: 1fr;
    }


    .platform-topbar {
        padding: 0 14px;
    }


    .top-icon-button {
        display: none;
    }


    .user-details,
    .user-menu > span {
        display: none;
    }


    .platform-content {
        padding:
            24px 15px 40px;
    }


    .welcome-row {
        flex-direction: column;
        align-items: flex-start;
    }


    .welcome-actions {
        width: 100%;
    }


    .welcome-actions button {
        flex: 1;
    }


    .metric-grid {
        grid-template-columns: 1fr;
    }


    .large-chart {
        height: 200px;

        gap: 5px;
    }

}
/* =========================================
   AI AGENTS PAGE
========================================= */

.agents-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;

    margin-bottom: 25px;
}


.agents-page-header h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 28px;

    letter-spacing: -1px;

    margin-top: 7px;
}


.agents-page-header p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 7px;

    line-height: 1.6;

    max-width: 620px;
}


/* SUMMARY */

.agents-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 11px;

    margin-bottom: 13px;
}


.agent-summary-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 18px;
}


.agent-summary-card span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}


.agent-summary-card strong {
    display: block;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 25px;

    margin-top: 10px;
}


.summary-green {
    color: var(--green);
}



/* TOOLBAR */

.agents-toolbar {
    min-height: 62px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 10px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 13px;
}


.agent-search {
    width: min(420px, 100%);

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 0 11px;

    height: 40px;
}


.agent-search span {
    color: var(--muted-light);
}


.agent-search input {
    flex: 1;

    border: none;

    outline: none;

    font-size: 10px;
}


.agents-toolbar select {
    height: 40px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: white;

    padding: 0 10px;

    font-size: 9px;

    outline: none;
}



/* AGENT GRID */

.agents-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;
}


.agents-loading,
.agents-empty {
    grid-column:
        1 / -1;

    min-height: 200px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 15px;

    display: grid;
    place-items: center;

    color: var(--muted);

    font-size: 11px;
}


.agent-management-card {
    min-height: 285px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 19px;

    display: flex;
    flex-direction: column;

    transition: .25s;
}


.agent-management-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.06);
}


.agent-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}


.agent-card-avatar {
    width: 45px;
    height: 45px;

    border-radius: 13px;

    display: grid;
    place-items: center;

    background: var(--red-soft);

    color: var(--red);

    font-size: 11px;
    font-weight: 800;
}


.agent-status-pill {
    padding: 6px 8px;

    border-radius: 999px;

    font-size: 7px;

    font-weight: 700;

    text-transform: capitalize;
}


.agent-status-pill.active {
    background: var(--green-soft);

    color: var(--green);
}


.agent-status-pill.inactive {
    background: #f0f0f2;

    color: #77777e;
}


.agent-management-card h3 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 17px;

    margin-top: 20px;
}


.agent-description {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.65;

    margin-top: 8px;
}


.agent-instructions-preview {
    background: #fafafa;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 10px;

    margin-top: 13px;
}


.agent-instructions-preview span {
    display: block;

    color: var(--muted-light);

    font-size: 6px;

    font-weight: 800;

    letter-spacing: 1px;
}


.agent-instructions-preview p {
    color: #626268;

    font-size: 8px;

    line-height: 1.55;

    margin-top: 5px;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.agent-card-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;

    margin-top: auto;

    padding-top: 18px;
}


.agent-card-actions button {
    height: 36px;

    border-radius: 9px;

    border:
        1px solid var(--border);

    background: white;

    font-size: 8px;

    font-weight: 700;

    color: var(--text);

    transition: .2s;
}


.agent-card-actions button:hover {
    border-color: #aaa;
}


.agent-card-actions .edit-agent-button {
    background: var(--black);

    color: white;

    border-color: var(--black);
}


.agent-card-actions .edit-agent-button:hover {
    background: var(--red);

    border-color: var(--red);
}


.agent-card-actions .delete-agent-button {
    color: var(--red);
}


.agent-card-actions .delete-agent-button:hover {
    background: var(--red-soft);

    border-color:
        rgba(242,29,36,.3);
}


.agent-toggle-row {
    margin-top: 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 11px;

    border-top:
        1px solid var(--border);
}


.agent-toggle-row span {
    color: var(--muted);

    font-size: 8px;
}



/* SWITCH */

.agent-switch {
    width: 39px;
    height: 21px;

    border-radius: 999px;

    background: #d7d7db;

    border: none;

    position: relative;

    transition: .25s;
}


.agent-switch::after {
    content: "";

    width: 15px;
    height: 15px;

    position: absolute;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 2px 5px rgba(0,0,0,.2);

    transition: .25s;
}


.agent-switch.active {
    background: var(--green);
}


.agent-switch.active::after {
    left: 21px;
}



/* =========================================
   MODALS
========================================= */

.platform-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.platform-modal.open {
    display: flex;
}


.platform-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(8,8,10,.55);

    backdrop-filter: blur(4px);
}


.platform-modal-card {
    width: min(100%, 540px);

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    position: relative;

    z-index: 2;

    background: white;

    border-radius: 19px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.22);

    padding: 27px;
}


.modal-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 25px;
}


.modal-label {
    color: var(--red);

    font-size: 7px;

    letter-spacing: 1.3px;

    font-weight: 800;
}


.modal-header h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    margin-top: 6px;

    font-size: 22px;
}


.modal-close {
    width: 34px;
    height: 34px;

    border-radius: 9px;

    border:
        1px solid var(--border);

    background: white;

    font-size: 20px;

    color: var(--muted);
}


.modal-form-group {
    margin-bottom: 17px;
}


.modal-form-group label {
    display: block;

    font-size: 9px;

    font-weight: 700;

    margin-bottom: 7px;
}


.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 11px 12px;

    outline: none;

    font-size: 10px;

    resize: vertical;
}


.modal-form-group input {
    height: 44px;
}


.modal-form-group select {
    height: 44px;

    background: white;
}


.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px
        rgba(242,29,36,.07);
}


.modal-form-group small {
    display: block;

    color: var(--muted-light);

    font-size: 8px;

    line-height: 1.5;

    margin-top: 7px;
}


.modal-message {
    min-height: 17px;

    font-size: 9px;

    color: var(--red);
}


.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 17px;
}


.modal-cancel,
.modal-save,
.delete-confirm-button {
    min-height: 40px;

    padding: 0 15px;

    border-radius: 9px;

    font-size: 9px;

    font-weight: 700;
}


.modal-cancel {
    border:
        1px solid var(--border);

    background: white;

    color: var(--text);
}


.modal-save {
    border: none;

    background: var(--red);

    color: white;
}


.delete-modal-card {
    width: min(100%, 430px);

    text-align: center;
}


.delete-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 17px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--red-soft);

    color: var(--red);

    font-size: 20px;

    font-weight: 800;
}


.delete-modal-card h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 21px;
}


.delete-modal-card p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


.delete-modal-card .modal-actions {
    justify-content: center;
}


.delete-confirm-button {
    background: var(--red);

    border: none;

    color: white;
}



/* =========================================
   RESPONSIVE AGENTS
========================================= */

@media (max-width: 1100px) {

    .agents-grid {
        grid-template-columns:
            1fr 1fr;
    }

}


@media (max-width: 700px) {

    .agents-page-header {
        flex-direction: column;

        align-items: flex-start;
    }


    .agents-page-header
    .primary-action {
        width: 100%;
    }


    .agents-summary-grid {
        grid-template-columns: 1fr;
    }


    .agents-toolbar {
        align-items: stretch;

        flex-direction: column;
    }


    .agent-search {
        width: 100%;
    }


    .agents-toolbar select {
        width: 100%;
    }


    .agents-grid {
        grid-template-columns: 1fr;
    }


    .platform-modal-card {
        padding: 21px;
    }

}
/* =========================================
   LOGIN / REGISTER SWITCH
========================================= */

.register-form {
    display: none;
}

.register-form.active {
    display: block;
}

#loginForm.hidden {
    display: none;
}

.account-switch {
    margin-top: 22px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    font-size: 10px;

    color: var(--muted);
}

.account-switch-button {
    border: none;

    background: transparent;

    color: var(--red);

    font-weight: 700;

    cursor: pointer;

    padding: 0;
}