:root {
    --dashboard-orange: #ff7f50;
    --dashboard-orange-light: #ff9a73;
    --dashboard-bg: #070707;
    --dashboard-panel: #101112;
    --dashboard-panel-2: #141516;
    --dashboard-border: #343434;
    --dashboard-text: #ffffff;
    --dashboard-muted: #9d9d9d;
}


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

* {
    box-sizing: border-box;
}

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

.dashboard-login-body {
    min-height: 100vh;
    color: var(--dashboard-text);
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 127, 80, .08),
            transparent 30%
        ),
        #050505;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


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

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 35px;
}


.login-shell {
    width: min(1320px, 100%);
    min-height: 760px;

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border: 1px solid #333;
    border-radius: 32px;

    background: #0c0d0e;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .65);
}


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

.login-brand-panel {
    position: relative;

    display: flex;

    background:
        linear-gradient(
            145deg,
            #151515,
            #070707
        );

    border-right: 1px solid #303030;

    overflow: hidden;
}


.brand-frame {
    width: 100%;

    padding: 45px 55px 40px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    position: relative;
}


.brand-frame::before {
    content: "";

    position: absolute;
    inset: 18px;

    pointer-events: none;

    border:
        1px solid rgba(255, 255, 255, .05);

    clip-path:
        polygon(
            0 0,
            92% 0,
            100% 8%,
            100% 92%,
            92% 100%,
            8% 100%,
            0 92%
        );
}


.brand-bird-wrapper {
    flex: 1;

    min-height: 390px;

    display: flex;

    justify-content: center;
    align-items: center;
}


.brand-bird {
    display: block;

    width: min(570px, 95%);
    max-height: 430px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 18px rgba(255, 127, 80, .20)
        );
}


.brand-title {
    position: relative;
    z-index: 2;

    text-align: center;
}


.brand-title h1 {
    margin: 0;

    color: #d7d7d7;

    font-size: clamp(48px, 4vw, 72px);

    font-weight: 800;

    letter-spacing: -2px;

    text-shadow:
        0 2px 0 #ffffff,
        0 5px 8px rgba(0, 0, 0, .8);
}


.brand-title h1 span {
    color: var(--dashboard-orange);

    text-shadow:
        0 2px 5px rgba(255, 127, 80, .30);
}


.brand-title p {
    margin: 7px 0 0;

    color: #b7b7b7;

    font-size: 19px;

    text-transform: uppercase;

    letter-spacing: 7px;
}


.brand-divider,
.login-heading-divider {
    width: 100px;
    height: 3px;

    margin: 25px auto;

    border-radius: 10px;

    background: var(--dashboard-orange);
}


.brand-features {
    position: relative;
    z-index: 2;

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

    margin-top: 10px;
}


.brand-feature {
    min-height: 110px;

    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;

    border-right: 1px solid #282828;

    text-align: center;
}


.brand-feature:last-child {
    border-right: none;
}


.brand-feature i {
    margin-bottom: 12px;

    color: var(--dashboard-orange);

    font-size: 37px;
}


.brand-feature strong {
    color: #ffffff;

    text-transform: uppercase;

    font-size: 15px;
}


.brand-feature span {
    margin-top: 5px;

    color: #929292;

    font-size: 13px;
}


/* ==========================================================
   FORM PANEL
========================================================== */

.login-form-panel {
    display: flex;

    align-items: center;

    padding: 65px 80px;

    background:
        linear-gradient(
            145deg,
            #131516,
            #0b0c0d
        );
}


.login-form-container {
    width: 100%;
    max-width: 590px;

    margin: auto;
}


.login-heading {
    margin-bottom: 45px;

    text-align: center;
}


.login-heading h2 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 42px;

    font-weight: 700;
}


.login-heading p {
    margin: 0;

    color: var(--dashboard-muted);

    font-size: 18px;
}


.login-heading-divider {
    width: 80px;

    margin-bottom: 0;
}


/* ==========================================================
   FIELDS
========================================================== */

.login-field {
    margin-bottom: 28px;
}


.login-field label {
    display: block;

    margin-bottom: 11px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 600;
}


.login-input-group {
    min-height: 64px;

    display: flex;
    align-items: stretch;

    overflow: hidden;

    border: 1px solid #383838;
    border-radius: 10px;

    background: #111315;

    transition: .25s ease;
}


.login-input-group:focus-within {
    border-color: var(--dashboard-orange);

    box-shadow:
        0 0 0 3px rgba(255, 127, 80, .10);
}


.login-input-icon {
    width: 68px;

    display: flex;

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

    border-right: 1px solid #313131;

    color: #aaa;

    font-size: 23px;
}


.login-input-group input {
    flex: 1;

    min-width: 0;

    padding: 0 20px;

    color: #ffffff;

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 17px;
}


.login-input-group input::placeholder {
    color: #666;
}


.password-toggle {
    width: 64px;

    border: 0;

    color: #aaa;
    background: transparent;

    font-size: 21px;

    cursor: pointer;
}


.password-toggle:hover {
    color: var(--dashboard-orange);
}


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

.dashboard-login-button {
    width: 100%;
    min-height: 68px;

    margin-top: 8px;

    display: flex;

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

    gap: 12px;

    border: 0;
    border-radius: 10px;

    color: #111;

    background:
        linear-gradient(
            90deg,
            #ff7445,
            #ff681d
        );

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

    transition: .25s ease;
}


.dashboard-login-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            90deg,
            #ff8b63,
            #ff7a35
        );

    box-shadow:
        0 12px 30px rgba(255, 127, 80, .18);
}


.dashboard-login-button:disabled {
    cursor: wait;
    opacity: .65;
}


.login-separator {
    display: flex;

    align-items: center;

    gap: 20px;

    margin: 32px 0;
}


.login-separator span {
    height: 1px;

    flex: 1;

    background: #303030;
}


.login-separator small {
    color: #a0a0a0;
}


.back-home-button {
    min-height: 62px;

    display: flex;

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

    gap: 10px;

    border:
        1px solid #373737;

    border-radius: 10px;

    color: #e8e8e8;

    text-decoration: none;

    font-size: 18px;

    transition: .25s ease;
}


.back-home-button strong {
    color: var(--dashboard-orange);
}


.back-home-button:hover {
    color: #ffffff;

    border-color: var(--dashboard-orange);

    background:
        rgba(255, 127, 80, .04);
}


.login-security-note {
    margin-top: 45px;

    display: flex;

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

    gap: 10px;

    color: #858585;

    text-align: center;

    font-size: 13px;
}


/* ==========================================================
   COPYRIGHT
========================================================== */

.login-copyright {
    margin-top: 25px;

    color: #8f8f8f;

    text-align: center;

    font-size: 14px;
}


.login-copyright span {
    color: var(--dashboard-orange);
}


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

@media (max-width: 991.98px) {

    .login-page {
        padding: 20px;
    }

    .login-shell {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .login-brand-panel {
        border-right: none;
        border-bottom: 1px solid #303030;
    }

    .brand-frame {
        padding: 30px;
    }

    .brand-bird-wrapper {
        min-height: 250px;
    }

    .brand-bird {
        max-height: 280px;
    }

    .brand-title h1 {
        font-size: 48px;
    }

    .brand-title p {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .login-form-panel {
        padding: 50px 35px;
    }
}


@media (max-width: 575.98px) {

    .login-page {
        padding: 0;
    }

    .login-shell {
        border: 0;
        border-radius: 0;
    }

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

    .login-form-panel {
        min-height: calc(100vh - 50px);

        padding: 40px 20px;
    }

    .login-heading h2 {
        font-size: 34px;
    }

    .login-heading p {
        font-size: 15px;
    }

    .login-input-group {
        min-height: 58px;
    }

    .dashboard-login-button {
        min-height: 60px;

        font-size: 18px;
    }

    .login-copyright {
        padding: 10px;
        margin: 0;
    }
}


/* ==========================================================
   LOGIN - MOBILE / TABLET HARDENING
========================================================== */

.dashboard-login-body,
.login-page,
.login-shell,
.login-form-panel,
.login-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-form-container,
.login-form-container form,
.login-field,
.login-input-group {
    min-width: 0;
}

.login-input-group {
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
}

.login-input-icon {
    flex: 0 0 62px;
    width: 62px;
}

.login-input-group input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.password-toggle {
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* iPad / tablet */
@media (max-width: 1199.98px) {

    .login-page {
        width: 100%;
        overflow-x: hidden;
    }

    .login-shell {
        width: 100%;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-form-panel {
        width: 100%;
        min-width: 0;
    }
}


/* iPhone / phones */
@media (max-width: 575.98px) {

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

    .login-page {
        width: 100%;
        padding: 0;
    }

    .login-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .login-form-panel {
        width: 100%;
        min-height: 100svh;
        padding: 32px 22px 28px;
        overflow-x: hidden;
    }

    .login-form-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .login-heading {
        width: 100%;
        text-align: center;
    }

    .login-heading h2 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.1;
    }

    .login-heading p {
        font-size: 15px;
        line-height: 1.45;
    }

    .login-field {
        width: 100%;
    }

    .login-input-group {
        width: 100%;
        min-height: 58px;
    }

    .login-input-icon {
        flex-basis: 58px;
        width: 58px;
    }

    .password-toggle {
        flex-basis: 48px;
        width: 48px;
        min-width: 48px;
    }

    .login-input-group input {
        padding-left: 16px;
        padding-right: 10px;
        font-size: 16px;
    }

    .dashboard-login-button {
        width: 100%;
        min-height: 58px;
        font-size: 18px;
    }
}


/* Very small iPhones */
@media (max-width: 390px) {

    .login-form-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-heading h2 {
        font-size: 34px;
    }

    .login-input-icon {
        flex-basis: 52px;
        width: 52px;
    }

    .password-toggle {
        flex-basis: 44px;
        width: 44px;
        min-width: 44px;
    }
}


/* ==========================================================
   ADMIN DASHBOARD
========================================================== */

.dashboard-body {
    margin: 0;
    min-height: 100vh;
    background: #08090a;
    color: #f4f4f4;
    font-family: "Segoe UI", Arial, sans-serif;
}

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR
---------------------------------------------------------- */

.dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;

    width: 270px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(180deg, #111314 0%, #090a0b 100%);

    border-right: 1px solid #292929;

    z-index: 1000;

    transition: transform .25s ease;
}


.sidebar-brand {
    min-height: 92px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 18px 22px;

    border-bottom: 1px solid #272727;
}


.sidebar-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 7px rgba(255, 127, 80, .18));
}


.sidebar-brand-name {
    color: #e5e5e5;

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


.sidebar-brand-name span {
    color: var(--dashboard-orange);
}


.sidebar-brand-subtitle {
    margin-top: 2px;

    color: #737373;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 2.5px;
}


.sidebar-navigation {
    flex: 1;

    padding: 22px 14px;
}


.sidebar-section-title {
    padding: 12px 13px 8px;

    color: #606060;

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

    letter-spacing: 1.8px;
}


.sidebar-link {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 13px;

    margin: 3px 0;

    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    color: #aaa;
    background: transparent;

    text-decoration: none;

    cursor: pointer;

    transition: .2s ease;
}


.sidebar-link i {
    width: 22px;

    color: #858585;

    font-size: 17px;

    text-align: center;
}


.sidebar-link:hover {
    color: #fff;

    background: rgba(255,255,255,.045);
}


.sidebar-link:hover i {
    color: var(--dashboard-orange);
}


.sidebar-link.active {
    color: #fff;

    background:
        rgba(255, 127, 80, .10);

    border:
        1px solid rgba(255, 127, 80, .20);
}


.sidebar-link.active i {
    color: var(--dashboard-orange);
}


.sidebar-badge {
    min-width: 23px;

    margin-left: auto;

    padding: 3px 7px;

    border-radius: 20px;

    color: #111;
    background: var(--dashboard-orange);

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

    text-align: center;
}


.sidebar-footer {
    padding: 15px;

    border-top: 1px solid #272727;
}


.sidebar-logout {
    text-align: left;
}


/* MAIN
---------------------------------------------------------- */

.dashboard-main {
    width: calc(100% - 270px);

    margin-left: 270px;

    min-height: 100vh;
}


/* TOPBAR
---------------------------------------------------------- */

.dashboard-topbar {
    min-height: 92px;

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

    padding: 15px 35px;

    background:
        rgba(14, 15, 16, .96);

    border-bottom: 1px solid #292929;
}


.topbar-left {
    display: flex;
    align-items: center;

    gap: 18px;
}


.topbar-left h1 {
    margin: 0;

    color: #fff;

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


.topbar-left p {
    margin: 3px 0 0;

    color: #777;

    font-size: 12px;
}


.sidebar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid #333;
    border-radius: 7px;

    color: #ddd;
    background: #111;

    font-size: 22px;
}


.topbar-user {
    display: flex;
    align-items: center;

    gap: 11px;
}


.topbar-user-icon {
    width: 42px;
    height: 42px;

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

    border:
        1px solid rgba(255, 127, 80, .35);

    border-radius: 50%;

    color: var(--dashboard-orange);

    background:
        rgba(255, 127, 80, .06);
}


.topbar-user-info {
    display: flex;
    flex-direction: column;
}


.topbar-user-info strong {
    color: #eee;

    font-size: 13px;
}


.topbar-user-info span {
    color: #777;

    font-size: 10px;
}


.topbar-logout {
    width: 38px;
    height: 38px;

    margin-left: 8px;

    border: 0;
    border-radius: 7px;

    color: #999;
    background: transparent;

    cursor: pointer;
}


.topbar-logout:hover {
    color: var(--dashboard-orange);

    background:
        rgba(255, 127, 80, .08);
}


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

.dashboard-content {
    padding: 35px;
}


.dashboard-welcome {
    position: relative;

    min-height: 175px;

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

    padding: 35px;

    overflow: hidden;

    border:
        1px solid rgba(255, 127, 80, .18);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(255,127,80,.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #151617,
            #0d0e0f
        );
}


.dashboard-eyebrow,
.panel-eyebrow {
    color: var(--dashboard-orange);

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

    letter-spacing: 2px;
}


.dashboard-welcome h2 {
    margin: 8px 0;

    color: #fff;

    font-size: 29px;
}


.dashboard-welcome p {
    max-width: 630px;

    margin: 0;

    color: #8d8d8d;

    font-size: 14px;

    line-height: 1.7;
}


.welcome-icon {
    padding-right: 25px;

    color:
        rgba(255, 127, 80, .14);

    font-size: 90px;
}


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

.dashboard-stats {
    display: grid;

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

    gap: 20px;

    margin: 25px 0;
}


.dashboard-stat-card {
    min-height: 135px;

    display: flex;
    align-items: center;

    gap: 20px;

    padding: 25px;

    border: 1px solid #292b2d;
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #141617,
            #0e0f10
        );
}


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

    flex: 0 0 58px;

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

    border:
        1px solid rgba(255,127,80,.25);

    border-radius: 12px;

    color: var(--dashboard-orange);

    background:
        rgba(255,127,80,.06);

    font-size: 24px;
}


.stat-content {
    display: flex;
    flex-direction: column;
}


.stat-content > span {
    color: #999;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.stat-content strong {
    margin: 2px 0;

    color: #fff;

    font-size: 31px;
}


.stat-content small {
    color: #777;

    font-size: 11px;
}


/* PANELS
---------------------------------------------------------- */

.dashboard-grid {
    display: grid;

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

    gap: 20px;
}


.dashboard-panel {
    overflow: hidden;

    border: 1px solid #292b2d;
    border-radius: 12px;

    background: #101112;
}


.dashboard-panel-header {
    min-height: 80px;

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

    padding: 20px 24px;

    border-bottom: 1px solid #292b2d;
}


.dashboard-panel-header h3 {
    margin: 4px 0 0;

    color: #eee;

    font-size: 17px;
}


.dashboard-panel-header > i {
    color: #484848;

    font-size: 25px;
}


/* LISTS
---------------------------------------------------------- */

.dashboard-list-item {
    display: flex;

    gap: 14px;

    padding: 18px 22px;

    border-bottom: 1px solid #222425;
}


.dashboard-list-item:last-child {
    border-bottom: none;
}


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

    flex: 0 0 42px;

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

    border-radius: 50%;

    color: var(--dashboard-orange);

    background:
        rgba(255,127,80,.08);

    border:
        1px solid rgba(255,127,80,.18);

    font-weight: 800;
}


.list-content {
    min-width: 0;

    flex: 1;
}


.list-title {
    display: flex;
    align-items: center;

    gap: 8px;
}


.list-title strong {
    color: #e8e8e8;

    font-size: 13px;
}


.list-subject {
    margin: 5px 0;

    overflow: hidden;

    color: #999;

    font-size: 12px;

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


.list-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    color: #666;

    font-size: 10px;
}


.list-meta i {
    margin-right: 3px;

    color: #777;
}


.status-badge {
    padding: 3px 7px;

    border-radius: 20px;

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

    text-transform: uppercase;
}


.status-new,
.status-active {
    color: var(--dashboard-orange);

    background:
        rgba(255,127,80,.10);
}


.status-read {
    color: #bbb;

    background:
        rgba(255,255,255,.06);
}


.status-answered,
.status-closed {
    color: #888;

    background: #1d1e1f;
}


.dashboard-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;

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

    color: #666;
}


.dashboard-empty i {
    margin-bottom: 10px;

    font-size: 32px;
}


/* RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 991.98px) {

    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .dashboard-main {
        width: 100%;

        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

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

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


@media (max-width: 575.98px) {

    .dashboard-topbar {
        padding: 13px 15px;
    }

    .topbar-left h1 {
        font-size: 18px;
    }

    .topbar-left p,
    .topbar-user-info {
        display: none;
    }

    .dashboard-content {
        padding: 18px 14px;
    }

    .dashboard-welcome {
        padding: 25px 20px;
    }

    .dashboard-welcome h2 {
        font-size: 23px;
    }

    .welcome-icon {
        display: none;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .dashboard-stat-card {
        min-height: 110px;
    }

    .list-meta {
        flex-direction: column;

        gap: 4px;
    }
}

/* ==========================================================
   CONTACTS
   ========================================================== */

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.contacts-header h2 {
    margin: 4px 0 6px;
    font-size: 28px;
    font-weight: 500;
    color: #f5f5f5;
}

.contacts-header p {
    margin: 0;
    color: #8b929a;
    font-size: 14px;
}

.dashboard-eyebrow,
.panel-eyebrow {
    color: #ff7043;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contacts-total {
    min-width: 90px;
    padding: 14px 18px;
    border: 1px solid #292d31;
    border-radius: 12px;
    background: #111315;
    text-align: center;
}

.contacts-total strong {
    display: block;
    color: #ff7043;
    font-size: 24px;
    line-height: 1;
}

.contacts-total span {
    display: block;
    margin-top: 6px;
    color: #7f878f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Two-column contacts workspace */

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(460px, 1.4fr);
    gap: 18px;
    align-items: stretch;
}

.contacts-list-panel,
.contact-detail-panel {
    background: #111315;
    border: 1px solid #292d31;
    border-radius: 14px;
    overflow: hidden;
    min-height: 560px;
}

.contacts-list-header {
    padding: 18px 20px;
    border-bottom: 1px solid #292d31;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
}

.contacts-list {
    max-height: 650px;
    overflow-y: auto;
}


/* Contact row */

.contact-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #25282c;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.contact-row:hover,
.contact-row.active {
    background: #17191b;
}

.contact-row.active {
    box-shadow: inset 3px 0 0 #ff7043;
}

.list-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 112, 67, 0.35);
    background: rgba(255, 112, 67, 0.08);
    color: #ff7043;
    font-size: 16px;
    font-weight: 600;
}

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

.contact-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.contact-row-top strong {
    color: #f2f2f2;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-row-subject {
    margin-top: 5px;
    color: #b0b5ba;
    font-size: 13px;
}

.contact-row-meta {
    margin-top: 6px;
    color: #656d75;
    font-size: 11px;
}


/* Status */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-new {
    color: #ff7043;
    background: rgba(255, 112, 67, 0.13);
}

.status-read {
    color: #aeb5bc;
    background: rgba(174, 181, 188, 0.10);
}

.status-answered {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.10);
}


/* Detail panel */

.contact-detail-empty {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: #747c84;
}

.contact-detail-empty i {
    margin-bottom: 18px;
    color: #ff7043;
    opacity: 0.65;
    font-size: 42px;
}

.contact-detail-empty h3 {
    margin-bottom: 8px;
    color: #dfe2e4;
    font-size: 20px;
}

.contact-detail-empty p {
    margin: 0;
    font-size: 13px;
}

.contact-detail {
    padding: 28px;
}

.contact-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #292d31;
}

.contact-detail-header h3 {
    margin: 6px 0 0;
    color: #f5f5f5;
    font-size: 23px;
}

.contact-detail-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid #292d31;
}

.contact-detail-info div {
    min-width: 0;
}

.contact-detail-info span {
    display: block;
    margin-bottom: 6px;
    color: #6f7780;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-info strong,
.contact-detail-info a {
    color: #d7dadd;
    font-size: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-detail-info a:hover {
    color: #ff7043;
}

.contact-message {
    padding: 25px 0;
}

.contact-message > span {
    display: block;
    margin-bottom: 12px;
    color: #6f7780;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.contact-message p {
    margin: 0;
    color: #c5c9cd;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid #292d31;
}

.contact-action-button {
    padding: 10px 16px;
    border: 1px solid #34383d;
    border-radius: 8px;
    background: transparent;
    color: #c3c7ca;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.contact-action-button:hover {
    border-color: #ff7043;
    color: #ff7043;
}

.contact-action-primary {
    border-color: #ff7043;
    background: #ff7043;
    color: #090909;
}

.contact-action-primary:hover {
    background: #ff815d;
    color: #090909;
}


/* Responsive */

@media (max-width: 1100px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }

    .contacts-list-panel,
    .contact-detail-panel {
        min-height: auto;
    }

    .contact-detail-empty {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .contacts-header {
        align-items: flex-start;
    }

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

    .contact-actions {
        flex-direction: column;
    }

    .contact-action-button {
        width: 100%;
    }
}


/* =========================================================
   CONVERSATIONS
========================================================= */

.conversations-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    min-height: 620px;
}

.conversations-list-panel,
.conversation-detail-panel {
    background: #111416;
    border: 1px solid #292d30;
    border-radius: 14px;
    overflow: hidden;
}

.conversations-list {
    max-height: 620px;
    overflow-y: auto;
}

.conversation-row {
    width: 100%;
    display: flex;
    gap: 14px;
    align-items: center;

    padding: 18px;

    background: transparent;
    color: #fff;

    border: 0;
    border-bottom: 1px solid #292d30;

    text-align: left;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.conversation-row:hover {
    background: #171a1c;
}

.conversation-row.active {
    background: #191c1e;
    box-shadow: inset 3px 0 0 #ff7043;
}

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

.conversation-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conversation-row-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-row-meta,
.conversation-row-date {
    margin-top: 6px;
    color: #8d979f;
    font-size: 12px;
}


/* DETAIL */

.conversation-detail-panel {
    position: relative;
    min-width: 0;
}

.conversation-detail {
    display: flex;
    flex-direction: column;
    height: 620px;
}

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

    padding: 24px;

    border-bottom: 1px solid #292d30;
}

.conversation-detail-header h3 {
    margin: 5px 0;
    color: #fff;
}

.conversation-email {
    color: #929ca4;
    text-decoration: none;
}

.conversation-email:hover {
    color: #ff7043;
}

.conversation-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-close-button {
    border: 1px solid #3a3f43;
    background: transparent;
    color: #c8cdd1;

    border-radius: 8px;
    padding: 8px 12px;
}

.conversation-close-button:hover {
    border-color: #ff7043;
    color: #ff7043;
}


/* CHAT */

.conversation-messages {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 16px;

    padding: 24px;

    overflow-y: auto;

    background: #0c0e0f;
}

.conversation-message {
    width: fit-content;
    max-width: 72%;

    padding: 12px 15px;

    border-radius: 12px;
}

.message-visitor {
    align-self: flex-start;

    background: #181b1d;
    border: 1px solid #303438;
}

.message-admin {
    align-self: flex-end;

    background: rgba(255, 112, 67, 0.13);
    border: 1px solid rgba(255, 112, 67, 0.40);
}

.conversation-message-sender {
    margin-bottom: 5px;

    color: #ff7043;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.conversation-message-body {
    color: #e9ecef;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.conversation-message-date {
    margin-top: 7px;

    color: #747d84;

    font-size: 10px;
    text-align: right;
}

.conversation-no-messages {
    margin: auto;
    color: #7d868d;
    text-align: center;
}


/* REPLY */

.conversation-reply {
    padding: 18px 20px;

    background: #111416;

    border-top: 1px solid #292d30;
}

.conversation-message-input {
    width: 100%;
    resize: none;

    padding: 13px 15px;

    color: #fff;
    background: #0d0f10;

    border: 1px solid #34383b;
    border-radius: 9px;

    outline: none;
}

.conversation-message-input:focus {
    border-color: #ff7043;
}

.conversation-message-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.conversation-reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 10px;
}

#conversationCharacterCount {
    color: #727b82;
    font-size: 11px;
}

.conversation-send-button {
    padding: 10px 20px;

    border: 0;
    border-radius: 8px;

    background: #ff7043;
    color: #090909;

    font-weight: 700;
}

.conversation-send-button:hover {
    filter: brightness(1.07);
}

.conversation-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* STATUS */

.status-active {
    color: #ff7043;
    background: rgba(255, 112, 67, 0.12);
}

.status-closed {
    color: #9ca3a8;
    background: rgba(156, 163, 168, 0.12);
}


/* RESPONSIVE */

@media (max-width: 991px) {

    .conversations-layout {
        grid-template-columns: 1fr;
    }

    .conversations-list {
        max-height: 300px;
    }

    .conversation-detail {
        height: 600px;
    }
}

@media (max-width: 575px) {

    .conversation-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .conversation-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .conversation-message {
        max-width: 88%;
    }

    .conversation-reply-footer {
        gap: 12px;
    }
}

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

.messages-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 16px;
    margin-bottom: 20px;
}


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

    padding: 16px 18px;

    background: #111416;
    border: 1px solid #2a2f33;
    border-radius: 12px;
}


.messages-summary-icon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    border-radius: 50%;

    color: #ff7043;
    background: rgba(255, 112, 67, 0.08);
    border: 1px solid rgba(255, 112, 67, 0.35);

    font-size: 17px;
}


.messages-summary-card div {
    display: flex;
    flex-direction: column;
}


.messages-summary-card strong {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.1;
}


.messages-summary-card span:not(.messages-summary-icon) {
    margin-top: 4px;

    color: #7f8b94;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   MESSAGE PANEL
========================================================= */

.messages-panel {
    overflow: hidden;

    background: #111416;
    border: 1px solid #2a2f33;
    border-radius: 12px;
}


.messages-list {
    width: 100%;
}


.message-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    width: 100%;

    padding: 18px 20px;

    border-bottom: 1px solid #292e32;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


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


.message-row:hover {
    background: #15191c;
}


.message-row.message-unread {
    background: rgba(255, 112, 67, 0.035);
    border-left: 3px solid #ff7043;
}


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


.message-row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 8px;
}


.message-row-header > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}


.message-row-header strong {
    color: #ffffff;
    font-size: 15px;
}


.message-sender {
    color: #7f8b94;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.message-row-text {
    margin-bottom: 12px;

    color: #c5cbd0;
    font-size: 14px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}


.message-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.message-row-footer > span {
    color: #74808a;
    font-size: 11px;
}


.message-row-footer > span i {
    margin-right: 5px;
}


.message-open-conversation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    color: #d7dce0;
    background: transparent;

    border: 1px solid #394147;
    border-radius: 7px;

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

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.message-open-conversation:hover {
    color: #ffffff;
    border-color: #ff7043;
    background: rgba(255, 112, 67, 0.08);
}


/* Message status */

.status-new {
    color: #ff7043;
    background: rgba(255, 112, 67, 0.12);
}


.status-read {
    color: #8b969e;
    background: #24292d;
}


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

@media (max-width: 768px) {

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


    .message-row {
        padding: 16px;
    }


    .message-row-header {
        flex-direction: column;
        gap: 8px;
    }


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


    .message-open-conversation {
        width: 100%;
    }
}