:root{font-family:Segoe UI,Tahoma,sans-serif;color:#173b34;background:#f4f7f6}*{box-sizing:border-box}body{margin:0}.shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}aside{background:#063d35;color:white;padding:22px}.brand{display:flex;gap:12px;align-items:center;margin-bottom:35px}.brand .mark{width:42px;height:42px;border-radius:12px;background:#fff;color:#063d35;display:grid;place-items:center;font-weight:900}.brand small{display:block;opacity:.65;margin-top:3px}nav{display:grid;gap:7px}nav a{color:#dcebe7;text-decoration:none;padding:12px 14px;border-radius:10px}nav a.active,nav a:hover{background:#0d5e51;color:white}.shell > main > header{height:68px;background:white;border-bottom:1px solid #dfe9e6;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.status{color:#16866f}.content{padding:30px;max-width:1400px}h1{margin:0;font-size:30px}.lead{color:#68827b;margin:6px 0 24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.panel{background:#fff;border:1px solid #e0ebe8;border-radius:16px;padding:20px;box-shadow:0 8px 25px rgba(5,61,53,.04)}.card span{display:block;color:#718983}.card strong{display:block;font-size:30px;margin-top:8px}.panel{margin-top:20px}.panel h2{margin-top:0}.health,.row{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;padding:14px;border-top:1px solid #edf2f1}.health em{color:#16866f;font-style:normal}.mailgrid{display:grid;grid-template-columns:220px 1fr;background:white;border-radius:16px;overflow:hidden;border:1px solid #e0ebe8;min-height:590px}.folders{padding:18px;border-left:1px solid #e5eeec;display:grid;align-content:start;gap:6px}.folders a,.compose{padding:11px;border-radius:9px}.folders a.active{background:#e8f4f1;color:#075548}.compose{border:0;background:#075548;color:white;margin-bottom:15px}.messages article{padding:16px 20px;border-bottom:1px solid #edf2f1;display:flex;justify-content:space-between}.messages small{display:block;color:#789089;margin-top:5px}.messages time{color:#789089}.empty{padding:40px;text-align:center;color:#789089}.table .row{grid-template-columns:2fr repeat(3,1fr)}.table .row.six,.table .head{grid-template-columns:2fr repeat(5,1fr)}.actions{display:flex;gap:10px}.actions input{flex:1;padding:12px;border:1px solid #ccdcd8;border-radius:10px}.actions button{border:0;background:#075548;color:#fff;padding:0 18px;border-radius:10px}.notice{margin-top:15px;padding:12px;background:#e8f4f1;border-radius:10px}@media(max-width:900px){.shell{grid-template-columns:1fr}aside{display:none}.cards{grid-template-columns:1fr 1fr}.mailgrid{grid-template-columns:1fr}.folders{display:none}}
.mail-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:14px}.mail-toolbar strong{margin-inline-start:auto}.primary,.ghost,.folder-btn{border:0;border-radius:10px;padding:10px 14px;cursor:pointer}.primary{background:#075548;color:#fff}.ghost{background:#edf4f2;color:#17483f}.folder-btn{background:transparent;text-align:start;color:#315f57}.folder-btn.active{background:#e8f4f1;color:#075548;font-weight:700}.mailgrid{grid-template-columns:190px 360px 1fr}.messages{border-inline-end:1px solid #e5eeec}.messages article{cursor:pointer}.messages article.unread{background:#f0faf7}.reader{padding:24px;overflow:auto}.meta{color:#607b74}.plain{white-space:pre-wrap;font:inherit}.html-preview{line-height:1.65}.attachment{padding:10px;background:#f2f7f5;border-radius:9px;margin-top:8px}.modal-back{position:fixed;inset:0;background:#0008;display:grid;place-items:center;z-index:20}.compose-card,.login-card{background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 80px #0002}.compose-card{width:min(720px,92vw)}.compose-head{display:flex;justify-content:space-between;align-items:center}.field{width:100%;padding:11px 12px;border:1px solid #cdded9;border-radius:9px;margin:6px 0 14px}.field.body{min-height:230px;resize:vertical}.compose-actions{display:flex;justify-content:flex-end}.login-wrap{min-height:75vh;display:grid;place-items:center}.login-card{width:min(420px,92vw)}.brand-login{display:flex;align-items:center;gap:14px;margin-bottom:20px}.brand-login .mark{width:48px;height:48px;background:#075548;color:#fff;border-radius:13px;display:grid;place-items:center;font-weight:900}.brand-login h1{font-size:24px}.brand-login p{margin:3px 0;color:#718983}.alert{padding:10px 12px;background:#fff0f0;color:#9f3030;border-radius:9px;margin-bottom:12px}@media(max-width:1100px){.mailgrid{grid-template-columns:170px 1fr}.reader{grid-column:1/-1;border-top:1px solid #e5eeec}}

/* Commercial management additions */
.nav-group{margin-bottom:22px}.nav-group>small{display:block;color:#8db6ad;font-size:11px;font-weight:700;margin:0 10px 7px;text-transform:uppercase;letter-spacing:.5px}.nav-group nav{gap:4px}.shell > main > header>div{display:grid;gap:2px}.shell > main > header small{color:#7a938d;font-size:11px}.six-cards{grid-template-columns:repeat(6,1fr)}.card small{display:block;color:#8aa099;margin-top:4px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.panel-head h2{margin:0}.panel-head small{color:#718983}.text-link{color:#075548;text-decoration:none;font-weight:600}.progress-line{display:flex;justify-content:space-between;margin:10px 0}.progress-track{height:9px;background:#e9f0ee;border-radius:20px;overflow:hidden;margin-bottom:14px}.progress-track i{display:block;height:100%;background:#16866f;border-radius:20px}.quick-actions>div{display:flex;flex-wrap:wrap;gap:10px}.quick{background:#edf7f4;color:#075548;text-decoration:none;padding:11px 16px;border-radius:10px;font-weight:700}.form-panel h2,.table-card h2{margin-top:0}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(4,1fr)}.form-grid label{font-size:13px;color:#516c65;font-weight:600}.actions-bar{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}.actions-bar.align-end{align-items:flex-end;height:100%}.field.small{margin:0;min-width:190px}.inline-filter{display:flex;gap:8px;align-items:center}.data-table{overflow:auto}.data-head,.data-row{display:grid;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf2f1;min-width:900px}.data-head{background:#f6f9f8;border-radius:10px 10px 0 0;color:#607b74;font-size:12px;font-weight:700}.data-row span small{display:block;color:#839993;margin-top:3px}.tenants-table .data-head,.tenants-table .data-row{grid-template-columns:1.6fr .8fr 1fr .6fr .6fr 1fr .8fr}.mailboxes-table .data-head,.mailboxes-table .data-row{grid-template-columns:2fr 1.2fr .8fr .9fr .9fr 1.4fr}.aliases-table .data-head,.aliases-table .data-row{grid-template-columns:1.5fr 1.8fr .8fr 1.2fr}.keys-table .data-head,.keys-table .data-row{grid-template-columns:1.1fr 1.2fr 1.2fr 1fr 1.3fr .7fr .7fr}.domains-table .data-head,.domains-table .data-row{grid-template-columns:1.5fr 1.1fr .8fr .7fr .7fr .6fr .8fr}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:700}.badge.ok{background:#e2f7ef;color:#0d725e}.badge.danger{background:#fdeaea;color:#a53030}.badge.pending{background:#fff3d9;color:#926500}.mini{border:1px solid #cfe0dc;background:#fff;color:#315f57;border-radius:8px;padding:6px 9px;cursor:pointer;font-size:12px}.mini:hover{background:#edf6f3}.mini.danger-text{color:#a53030}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.toggle{border:0;background:#edf0ef;color:#7a8b87;border-radius:20px;padding:6px 10px;cursor:pointer}.toggle.on{background:#dff5ed;color:#08705b}.link-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.secret-box{margin-top:15px;background:#fff8df;border:1px solid #f1dd8e;border-radius:12px;padding:14px}.secret-box code{display:block;direction:ltr;text-align:left;margin-top:8px;word-break:break-all;color:#5c4b11}.plan-cards{grid-template-columns:repeat(3,1fr);margin-top:20px}.plan-card strong{font-size:20px;margin:0}.plan-top{display:flex;justify-content:space-between;align-items:center}.plan-card ul{padding-right:18px;line-height:2;color:#5b746e}.check-field{display:flex!important;align-items:center;gap:8px;margin-top:26px}.dns-list{display:grid;gap:10px}.dns-record{display:grid;grid-template-columns:90px minmax(0,1fr) 100px;gap:12px;align-items:center;padding:13px;background:#f7faf9;border-radius:10px}.dns-record code{direction:ltr;text-align:left;white-space:normal;word-break:break-all;color:#23433c}.modal-back{direction:rtl}
@media(max-width:1250px){.six-cards{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(2,1fr)}.plan-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.six-cards{grid-template-columns:repeat(2,1fr)}.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.plan-cards{grid-template-columns:1fr}.dns-record{grid-template-columns:1fr}.content{padding:18px}}
.commercial-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.feature-tile{display:grid;gap:8px;background:#fff;border:1px solid #dce9e6;border-radius:14px;padding:18px;text-decoration:none;color:#173b34;box-shadow:0 6px 20px rgba(5,61,53,.035)}.feature-tile:hover{border-color:#8fc5b8;transform:translateY(-1px)}.feature-tile span{color:#718983;font-size:13px;line-height:1.6}@media(max-width:1100px){.commercial-menu{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.commercial-menu{grid-template-columns:1fr}}

/* ========================================================================== */
/* GoodByte Mail - Commercial navigation refresh                              */
/* ========================================================================== */

:root {
    --gb-sidebar-width: 278px;
    --gb-green-950: #043a32;
    --gb-green-900: #064b41;
    --gb-green-800: #086052;
    --gb-green-700: #0a7462;
    --gb-green-600: #118a75;
    --gb-green-100: #e8f6f2;
    --gb-bg: #f3f7f6;
    --gb-card: #ffffff;
    --gb-text: #173b34;
    --gb-muted: #718983;
    --gb-border: #dce8e5;
    --gb-shadow: 0 14px 42px rgba(6, 75, 65, .07);
}

html,
body {
    min-height: 100%;
    background: var(--gb-bg);
}

body {
    overflow-x: hidden;
}

.gb-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr);
    direction: rtl;
    background:
        radial-gradient(circle at 25% 5%, rgba(17, 138, 117, .045), transparent 28%),
        var(--gb-bg);
}

.gb-sidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        linear-gradient(180deg, #05483e 0%, #043a32 100%);
    border-inline-start: 1px solid rgba(255,255,255,.08);
    box-shadow: -14px 0 36px rgba(3, 48, 41, .08);
}

.gb-sidebar-head {
    min-height: 84px;
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gb-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.gb-brand:hover {
    color: #fff;
}

.gb-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--gb-green-900);
    font-weight: 900;
    font-size: 19px;
    box-shadow: 0 8px 24px rgba(0,0,0,.11);
}

.gb-brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.gb-brand-copy strong {
    font-size: 15px;
    white-space: nowrap;
}

.gb-brand-copy small {
    color: rgba(255,255,255,.60);
    font-size: 11px;
}

.gb-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.gb-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 12px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.gb-nav-section + .gb-nav-section {
    margin-top: 21px;
}

.gb-nav-caption {
    padding: 0 12px 8px;
    color: #80b6aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .35px;
}

.gb-nav {
    display: grid;
    gap: 4px;
}

.gb-nav-link {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    color: #dcece8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.gb-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.085);
    transform: translateX(-2px);
}

.gb-nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(31, 167, 142, .28), rgba(255,255,255,.09));
    box-shadow: inset -3px 0 0 #69d3bd;
}

.gb-nav-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    color: #bfe3da;
    font-size: 15px;
    line-height: 1;
}

.gb-nav-link.active .gb-nav-icon {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.gb-sidebar-footer {
    margin: 10px 12px 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
}

.gb-sidebar-footer strong,
.gb-sidebar-footer small {
    display: block;
}

.gb-sidebar-footer strong {
    font-size: 11px;
}

.gb-sidebar-footer small {
    margin-top: 2px;
    color: rgba(255,255,255,.55);
    font-size: 9px;
}

.gb-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #55d5a9;
    box-shadow: 0 0 0 5px rgba(85,213,169,.09);
}

.gb-service-state {
    color: #75dfbb;
    font-size: 10px;
    font-weight: 800;
}

.gb-main {
    min-width: 0;
    min-height: 100vh;
}

.gb-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 72px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--gb-border);
    backdrop-filter: blur(14px);
}

.gb-topbar-start,
.gb-topbar-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.gb-page-identity {
    display: grid;
    gap: 2px;
}

.gb-page-identity strong {
    color: var(--gb-text);
    font-size: 13px;
}

.gb-page-identity small {
    color: var(--gb-muted);
    font-size: 10px;
}

.gb-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gb-border);
    border-radius: 11px;
    background: #fff;
    color: var(--gb-green-900);
    font-size: 20px;
    cursor: pointer;
}

.gb-online-pill {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #cfe9e2;
    border-radius: 999px;
    background: #eff9f6;
    color: #0c755f;
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
}

.gb-online-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #18a57f;
    box-shadow: 0 0 0 4px rgba(24,165,127,.10);
}

.gb-logout-form {
    margin: 0;
}

.gb-logout-button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--gb-border);
    border-radius: 9px;
    background: #fff;
    color: #49635d;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: .15s ease;
}

.gb-logout-button:hover {
    border-color: #e8b8b8;
    background: #fff5f5;
    color: #a33b3b;
}

.gb-content {
    width: 100%;
    max-width: 1540px;
    margin-inline: auto;
    padding: 30px 32px 50px;
}

/* Improve the existing commercial pages without rewriting them. */
.gb-content > h1,
.gb-content .page-title {
    color: var(--gb-text);
    font-size: clamp(25px, 2vw, 34px);
    letter-spacing: -.35px;
}

.gb-content .lead {
    max-width: 900px;
    color: var(--gb-muted);
    font-size: 14px;
    line-height: 1.8;
}

.gb-content .panel,
.gb-content .card,
.gb-content .feature-tile {
    border-color: var(--gb-border);
    box-shadow: var(--gb-shadow);
}

.gb-content .panel {
    padding: 22px;
}

.gb-content .panel-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf3f1;
}

.gb-content .field {
    min-height: 43px;
    margin-top: 7px;
    border-color: #cbded9;
    background: #fff;
    outline: none;
    transition: border .15s ease, box-shadow .15s ease;
}

.gb-content .field:focus {
    border-color: #39a18a;
    box-shadow: 0 0 0 3px rgba(57,161,138,.11);
}

.gb-content .primary {
    min-height: 40px;
    padding-inline: 18px;
    background: linear-gradient(180deg, #0b7866, #07594c);
    box-shadow: 0 7px 18px rgba(7,89,76,.13);
}

.gb-content .primary:hover {
    filter: brightness(1.05);
}

.gb-content .data-table {
    border: 1px solid #e6efed;
    border-radius: 12px;
    overflow: auto;
}

.gb-content .data-head {
    border-radius: 0;
    background: #f3f8f6;
}

.gb-content .data-row:hover {
    background: #fafdfc;
}

.gb-mobile-overlay {
    display: none;
}

@media (max-width: 1120px) {

    .gb-shell {
        grid-template-columns: 1fr;
    }

    .gb-sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        width: min(300px, 88vw);
        transform: translateX(105%);
        transition: transform .22s ease;
        box-shadow: -20px 0 55px rgba(0,0,0,.20);
    }

    .gb-shell.menu-open .gb-sidebar {
        transform: translateX(0);
    }

    .gb-sidebar-close,
    .gb-menu-button {
        display: grid;
        place-items: center;
    }

    .gb-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(2, 30, 26, .48);
        opacity: 0;
        visibility: hidden;
        display: block;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .gb-shell.menu-open .gb-mobile-overlay {
        opacity: 1;
        visibility: visible;
    }

    .gb-topbar {
        padding-inline: 16px;
    }

    .gb-content {
        padding: 24px 18px 40px;
    }
}

@media (max-width: 650px) {

    .gb-topbar {
        height: 64px;
    }

    .gb-page-identity small {
        display: none;
    }

    .gb-page-identity strong {
        font-size: 12px;
    }

    .gb-online-pill {
        display: none;
    }

    .gb-content {
        padding: 20px 12px 32px;
    }

    .gb-content .panel,
    .gb-content .card {
        border-radius: 13px;
        padding: 16px;
    }
}

/* ========================================================================== */
/* GoodByte Mail 2026 visual system - based on the official GoodByte logo      */
/* ========================================================================== */
:root{
    --gb-brand-teal:#0b7288;
    --gb-brand-teal-dark:#075b6d;
    --gb-brand-teal-deep:#063f4c;
    --gb-brand-ink:#343434;
    --gb-brand-soft:#eaf5f7;
    --gb-brand-line:#d4e6ea;
    --gb-bg:#f4f8f9;
    --gb-text:#26383d;
    --gb-muted:#70868c;
    --gb-border:#dce9ec;
    --gb-shadow:0 16px 42px rgba(8,74,88,.08);
}

body{color:var(--gb-text);background:var(--gb-bg)}
.gb-shell{background:radial-gradient(circle at 20% 0,rgba(11,114,136,.06),transparent 28%),var(--gb-bg)}
.gb-sidebar{background:linear-gradient(180deg,var(--gb-brand-teal-dark) 0%,var(--gb-brand-teal-deep) 100%)}
.gb-sidebar-header{padding:17px 16px;border-bottom:1px solid rgba(255,255,255,.1)}
.gb-brand-logo-image{width:58px;height:44px;padding:5px;background:#fff;border-radius:11px;overflow:hidden;display:grid;place-items:center;box-shadow:0 7px 22px rgba(0,0,0,.12)}
.gb-brand-logo-image img{width:100%;height:100%;object-fit:contain;display:block}
.gb-brand-text strong{font-size:15px;letter-spacing:.1px}.gb-brand-text span{color:rgba(255,255,255,.62);font-size:10px}
.gb-nav-section-title{color:#84bdc8;font-size:10px;font-weight:800;padding:0 12px 8px}
.gb-nav-link.active{background:linear-gradient(90deg,rgba(25,159,184,.34),rgba(255,255,255,.10));box-shadow:inset -3px 0 0 #70d4e6}
.gb-nav-link:hover{background:rgba(255,255,255,.09)}
.gb-nav-icon{color:#c6e8ee}
.gb-topbar{border-color:var(--gb-brand-line);box-shadow:0 4px 18px rgba(8,74,88,.035)}
.gb-page-brand strong{color:var(--gb-brand-ink)}.gb-page-brand span{color:var(--gb-muted)}
.gb-online-indicator{color:var(--gb-brand-teal)}
.gb-content .primary,.primary{background:linear-gradient(135deg,var(--gb-brand-teal),var(--gb-brand-teal-dark));box-shadow:0 8px 18px rgba(11,114,136,.18)}
.gb-content .field:focus,.field:focus{border-color:var(--gb-brand-teal);box-shadow:0 0 0 3px rgba(11,114,136,.11)}
a{accent-color:var(--gb-brand-teal)}

/* Login */
.gb-login-layout{position:relative;min-height:100vh;display:grid;place-items:center;padding:32px 20px;direction:rtl;overflow:hidden;background:linear-gradient(145deg,#f8fbfc 0%,#eef6f7 52%,#e8f2f4 100%)}
.gb-login-layout:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(11,114,136,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(11,114,136,.025) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to bottom,black,transparent 75%);pointer-events:none}
.gb-login-glow{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.gb-login-glow-one{width:440px;height:440px;top:-220px;right:-110px;background:rgba(11,114,136,.09)}.gb-login-glow-two{width:360px;height:360px;bottom:-220px;left:-80px;background:rgba(52,52,52,.035)}
.gb-login-card{position:relative;z-index:1;width:min(470px,100%);padding:34px 38px 26px;background:rgba(255,255,255,.96);border:1px solid rgba(193,217,222,.82);border-radius:24px;box-shadow:0 28px 80px rgba(6,63,76,.13),0 2px 8px rgba(6,63,76,.04)}
.gb-login-brand{height:78px;display:flex;justify-content:center;align-items:center;margin-bottom:20px}.gb-login-brand img{display:block;max-width:285px;max-height:78px;width:auto;height:auto;object-fit:contain}
.gb-login-heading{text-align:center;margin-bottom:24px}.gb-login-kicker{display:inline-block;color:var(--gb-brand-teal);font-size:10px;font-weight:900;letter-spacing:1.8px;margin-bottom:7px}.gb-login-heading h1{margin:0;color:var(--gb-brand-ink);font-size:27px}.gb-login-heading p{margin:7px 0 0;color:var(--gb-muted);font-size:13px;line-height:1.7}
.gb-login-error{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:12px 14px;border:1px solid #f1c6c6;border-radius:12px;background:#fff4f4;color:#a63838}.gb-login-error>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fbe0e0;font-weight:900}.gb-login-error div{display:grid;gap:2px}.gb-login-error strong{font-size:12px}.gb-login-error small{font-size:11px}
.gb-login-form{display:grid}.gb-login-form label{margin:0 0 7px;color:#354b50;font-size:12px;font-weight:800}.gb-login-form label:not(:first-of-type){margin-top:15px}
.gb-input-wrap{position:relative}.gb-input-wrap input{width:100%;height:48px;padding:0 15px;border:1px solid #cbdde1;border-radius:12px;background:#fbfdfd;color:#26383d;font:inherit;font-size:13px;outline:none;transition:.18s ease}.gb-input-wrap input:focus{background:#fff;border-color:var(--gb-brand-teal);box-shadow:0 0 0 4px rgba(11,114,136,.09)}.gb-input-wrap input::placeholder{color:#9aabb0}
.gb-input-icon{position:absolute;inset-inline-end:15px;top:50%;transform:translateY(-50%);font-size:8px;color:#9cb1b6}.gb-input-wrap:has(.gb-input-icon) input{padding-inline-end:38px}
.gb-password-wrap input,.gb-auto-password-wrap input{padding-inline-end:48px!important}.gb-auto-password-wrap{position:relative;display:block}.gb-password-toggle{position:absolute;inset-inline-end:7px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#71898f;cursor:pointer;display:grid;place-items:center;transition:.15s ease}.gb-password-toggle:hover,.gb-password-toggle.is-visible{background:#eaf5f7;color:var(--gb-brand-teal)}.gb-eye-icon{font-size:16px;line-height:1}
.gb-login-submit{position:relative;height:49px;margin-top:23px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--gb-brand-teal),var(--gb-brand-teal-dark));color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(11,114,136,.20);transition:transform .15s ease,box-shadow .15s ease}.gb-login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 13px 28px rgba(11,114,136,.26)}.gb-login-submit:disabled{cursor:wait;opacity:.88}.gb-button-spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:gb-spin .7s linear infinite}.gb-login-form.is-loading .gb-button-text{display:none}.gb-login-form.is-loading .gb-button-spinner{display:inline-block}
.gb-login-security{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:19px;padding-top:17px;border-top:1px solid #edf3f4;color:#809499;font-size:10.5px}.gb-security-icon{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#e6f5f1;color:#148069;font-weight:900}.gb-login-footer{text-align:center;margin-top:13px;color:#a0afb3;font-size:9px;letter-spacing:.4px}

/* Global loading */
.gb-global-loader{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:rgba(245,250,251,.72);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .15s ease,visibility .15s ease}.gb-global-loader.show{opacity:1;visibility:visible}.gb-loader-card{min-width:190px;padding:22px 28px;display:grid;justify-items:center;gap:12px;background:#fff;border:1px solid var(--gb-brand-line);border-radius:18px;box-shadow:0 20px 60px rgba(6,63,76,.14)}.gb-loader-card img{width:135px;height:46px;object-fit:contain}.gb-loader-card strong{color:#526b71;font-size:11px}.gb-loader-spinner{width:28px;height:28px;border:3px solid #d7e9ed;border-top-color:var(--gb-brand-teal);border-radius:50%;animation:gb-spin .7s linear infinite}
@keyframes gb-spin{to{transform:rotate(360deg)}}

/* Consistent interactive feedback */
button,.primary,.ghost,.mini{transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}button:active:not(:disabled),.primary:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.62;cursor:not-allowed}.notice{border-radius:11px}.panel,.card{border-color:var(--gb-border)}

@media(max-width:600px){.gb-login-layout{padding:16px}.gb-login-card{padding:27px 20px 22px;border-radius:20px}.gb-login-brand{height:64px;margin-bottom:14px}.gb-login-brand img{max-width:235px;max-height:64px}.gb-login-heading h1{font-size:24px}.gb-login-heading p{font-size:12px}}


/* ========================================================================== */
/* GoodByte Mail - Client portal isolation                                     */
/* ========================================================================== */
.client-shell{min-height:100vh;background:#f4f7f8;color:#2c454d}.client-topbar{height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-bottom:1px solid #e2eaec;box-shadow:0 5px 20px rgba(35,72,83,.035);direction:rtl}.client-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#263f47}.client-brand img{width:92px;height:42px;object-fit:contain}.client-brand div{display:grid}.client-brand strong{font-size:14px}.client-brand span{font-size:10px;color:#92a1a6}.client-account{display:flex;align-items:center;gap:10px}.client-account-copy{text-align:left;display:grid}.client-account-copy strong{font-size:11px;color:#3b535a}.client-account-copy span{font-size:9px;color:#9ba9ad}.client-avatar{width:36px;height:36px;border-radius:11px;background:#0b7187;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900}.client-logout{height:34px;border:1px solid #dbe5e7;border-radius:9px;background:#fff;color:#597078;padding:0 11px;font-size:10px;cursor:pointer}.client-main{min-height:calc(100vh - 76px)}
.client-login-screen{width:min(1180px,calc(100vw - 40px));min-height:620px;display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #dde7e9;border-radius:28px;overflow:hidden;box-shadow:0 28px 90px rgba(16,58,72,.15);position:relative;z-index:2;direction:rtl}.client-login-brand-panel{position:relative;padding:55px;background:linear-gradient(145deg,#063b4b 0%,#075f75 58%,#0d7e95 100%);color:#fff;overflow:hidden}.client-login-brand-panel:before,.client-login-brand-panel:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.12)}.client-login-brand-panel:before{width:430px;height:430px;left:-180px;bottom:-190px}.client-login-brand-panel:after{width:260px;height:260px;left:-60px;bottom:-80px}.client-login-brand-inner{position:relative;z-index:2;max-width:430px}.client-login-logo{width:210px;max-height:95px;object-fit:contain;object-position:right center;filter:drop-shadow(0 8px 18px rgba(0,0,0,.12));margin-bottom:56px}.client-login-kicker{display:block;color:#8ed3df;font-size:11px;font-weight:900;letter-spacing:2px}.client-login-brand-inner h1{margin:10px 0 15px;color:#fff;font-size:38px;line-height:1.25}.client-login-brand-inner p{max-width:390px;color:rgba(255,255,255,.76);line-height:1.9;font-size:13px}.client-login-features{margin-top:32px;display:grid;gap:11px;color:#d8f0f4;font-size:12px}.client-login-form-panel{padding:60px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 100% 0%,rgba(11,113,135,.06),transparent 35%),#fff}.client-login-card{width:min(400px,100%)}.client-login-mobile-logo{display:none}.client-login-heading>span{color:#0b7187;font-size:11px;font-weight:900}.client-login-heading h2{margin:7px 0 5px;color:#263f47;font-size:27px}.client-login-heading p{margin:0 0 25px;color:#8a999e;font-size:12px}.client-login-error{margin:0 0 18px;padding:11px 12px;display:flex;gap:9px;align-items:center;border:1px solid #f0c8c6;border-radius:10px;background:#fff1f0;color:#b4433a;font-size:11px}.client-login-error>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#fbdedb;font-weight:900}.client-login-form{display:grid;gap:7px}.client-login-form label{margin-top:8px;color:#486068;font-size:11px;font-weight:800}.client-input-wrap{position:relative}.client-input{width:100%;height:46px;border:1px solid #d7e2e5;border-radius:10px;background:#fbfcfc;padding:0 42px 0 12px;outline:0;color:#29434b;transition:.15s}.client-input:focus{border-color:#0b7187;box-shadow:0 0 0 3px rgba(11,113,135,.1);background:#fff}.client-input-icon{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#82a0a8}.client-password-toggle{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:34px;height:32px;border:0;border-radius:8px;background:transparent;color:#6f8890;cursor:pointer}.client-login-submit{height:47px;margin-top:16px;border:0;border-radius:10px;background:linear-gradient(135deg,#0b7187,#07566a);color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;box-shadow:0 10px 23px rgba(11,113,135,.18);cursor:pointer}.client-login-submit:disabled{opacity:.65}.client-login-links{margin-top:22px;padding-top:16px;border-top:1px solid #edf1f2;display:flex;justify-content:space-between;gap:12px;color:#9aa7ab;font-size:9px}.client-login-links a{color:#0b7187;font-weight:800;text-decoration:none}.client-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:clientspin .7s linear infinite}@keyframes clientspin{to{transform:rotate(360deg)}}
@media(max-width:850px){.client-login-screen{grid-template-columns:1fr;min-height:0}.client-login-brand-panel{display:none}.client-login-form-panel{padding:35px 24px}.client-login-mobile-logo{display:block;margin-bottom:24px}.client-login-mobile-logo img{width:160px;height:70px;object-fit:contain}.client-account-copy{display:none}.client-topbar{padding:0 12px}.client-brand div{display:none}.client-brand img{width:88px}.client-logout{padding:0 8px}}


/* ============================================================
   Portal isolation: Admin vs Mail Client
   ============================================================ */
.gb-client-login-layout{background:linear-gradient(145deg,#f7fbfc 0%,#eef7f8 48%,#e8f2f4 100%)}
.gb-admin-login-layout{background:radial-gradient(circle at 12% 18%,rgba(11,113,135,.13),transparent 28%),linear-gradient(145deg,#f8fbfc,#edf5f6)}
.client-login-links-private{justify-content:space-between}.client-login-links-private span:last-child{direction:ltr;letter-spacing:.35px;color:#a3afb3}
.client-session-check{min-height:calc(100vh - 76px);display:flex;align-items:center;justify-content:center;gap:10px;color:#60777e;font-size:12px}.client-spinner-dark{border-color:rgba(11,113,135,.22);border-top-color:#0b7187}

/* ========================================================================== */
/* GoodByte Mail - Professional Webmail V8                                   */
/* ========================================================================== */
.gb-webmail{--wm-accent:#0b7187;--wm-accent-dark:#07566a;--wm-bg:#f5f8f9;--wm-panel:#fff;--wm-line:#e3eaec;--wm-text:#263f47;--wm-muted:#7e9197;--wm-soft:#edf6f7;min-height:calc(100vh - 76px);display:grid;grid-template-columns:238px 390px minmax(0,1fr);background:var(--wm-bg);color:var(--wm-text);direction:rtl;overflow:hidden}.gb-webmail.theme-dark{--wm-bg:#102329;--wm-panel:#142d34;--wm-line:#244149;--wm-text:#e8f0f2;--wm-muted:#91a7ad;--wm-soft:#193840}.wm-sidebar,.wm-list,.wm-reader{min-height:calc(100vh - 76px);background:var(--wm-panel)}.wm-sidebar{border-left:1px solid var(--wm-line);padding:16px 12px;overflow:auto}.wm-list{border-left:1px solid var(--wm-line);min-width:0;display:flex;flex-direction:column}.wm-reader{min-width:0;overflow:auto}.wm-compose-main{width:100%;height:48px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--wm-accent),var(--wm-accent-dark));color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800;box-shadow:0 10px 24px rgba(11,113,135,.18);cursor:pointer}.wm-section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 8px 7px;color:var(--wm-muted);font-size:10px;font-weight:900;letter-spacing:.4px}.wm-section-title button{border:0;background:transparent;color:var(--wm-accent);cursor:pointer;font-size:16px}.wm-folder-nav{display:grid;gap:3px}.wm-folder-btn{height:40px;border:0;border-radius:10px;background:transparent;color:var(--wm-muted);display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:7px;padding:0 9px;text-align:right;cursor:pointer}.wm-folder-btn:hover{background:var(--wm-soft);color:var(--wm-accent)}.wm-folder-btn.active{background:var(--wm-soft);color:var(--wm-accent);font-weight:800}.wm-folder-btn .ico{width:27px;height:27px;border-radius:8px;background:rgba(11,113,135,.07);display:grid;place-items:center}.wm-folder-btn b{min-width:21px;height:20px;padding:0 5px;border-radius:10px;background:var(--wm-accent);color:#fff;display:grid;place-items:center;font-size:9px}.wm-quota{margin-top:20px;padding:12px;border:1px solid var(--wm-line);border-radius:12px;background:color-mix(in srgb,var(--wm-panel) 88%,var(--wm-soft))}.wm-quota-row{display:flex;justify-content:space-between;gap:10px;color:var(--wm-muted);font-size:10px}.wm-quota-row strong{color:var(--wm-text)}.wm-quota-track{height:7px;margin:9px 0;background:var(--wm-line);border-radius:9px;overflow:hidden}.wm-quota-track i{display:block;height:100%;background:linear-gradient(90deg,var(--wm-accent),#18a0ac);border-radius:9px}.wm-side-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.wm-side-actions button{height:34px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);color:var(--wm-muted);font-size:10px;cursor:pointer}.wm-list-head{padding:15px 15px 10px;border-bottom:1px solid var(--wm-line)}.wm-list-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.wm-list-title h1{margin:0;color:var(--wm-text);font-size:20px}.wm-list-title small{color:var(--wm-muted);font-size:9px}.wm-icon-btn{width:35px;height:35px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);color:var(--wm-muted);display:grid;place-items:center;cursor:pointer}.wm-search{height:40px;margin-top:11px;border:1px solid var(--wm-line);border-radius:11px;background:color-mix(in srgb,var(--wm-panel) 94%,var(--wm-soft));display:flex;align-items:center;gap:8px;padding:0 11px}.wm-search input{width:100%;border:0;outline:0;background:transparent;color:var(--wm-text);font:inherit;font-size:11px}.wm-filter-bar{padding:8px 12px;display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--wm-line);overflow:auto}.wm-chip{height:29px;padding:0 10px;border:1px solid var(--wm-line);border-radius:15px;background:var(--wm-panel);color:var(--wm-muted);font-size:9px;white-space:nowrap;cursor:pointer}.wm-chip.active{background:var(--wm-soft);border-color:#bddce2;color:var(--wm-accent);font-weight:800}.wm-bulkbar{padding:8px 10px;display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--wm-line);background:var(--wm-soft);overflow:auto}.wm-bulkbar strong{margin-inline-end:auto;font-size:10px;color:var(--wm-accent);white-space:nowrap}.wm-bulkbar button,.wm-bulkbar select{height:29px;border:1px solid var(--wm-line);border-radius:8px;background:var(--wm-panel);color:var(--wm-muted);font-size:9px;padding:0 8px}.wm-message-scroll{overflow:auto;flex:1}.wm-row{position:relative;width:100%;min-height:82px;border:0;border-bottom:1px solid var(--wm-line);background:var(--wm-panel);display:grid;grid-template-columns:26px 34px minmax(0,1fr) 30px;gap:8px;align-items:center;padding:9px 10px;text-align:right;color:var(--wm-text);cursor:pointer}.wm-row:hover,.wm-row.selected{background:var(--wm-soft)}.wm-row.unread{background:color-mix(in srgb,var(--wm-soft) 72%,var(--wm-panel));font-weight:650}.wm-row-check{width:15px;height:15px;accent-color:var(--wm-accent)}.wm-avatar{width:34px;height:34px;border-radius:10px;background:#dceef1;color:var(--wm-accent);display:grid;place-items:center;font-size:10px;font-weight:900}.wm-row-copy{min-width:0;display:grid;gap:2px}.wm-row-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.wm-row-top strong,.wm-row-subject,.wm-row-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wm-row-top strong{font-size:11px}.wm-row-top time{font-size:8px;color:var(--wm-muted);direction:ltr}.wm-row-subject{font-size:10.5px}.wm-row-preview{font-size:9px;color:var(--wm-muted);font-weight:400}.wm-row-meta{display:flex;gap:5px;align-items:center;color:var(--wm-muted);font-size:8px}.wm-star{width:28px;height:28px;border:0;background:transparent;color:#a7b4b8;font-size:17px;cursor:pointer}.wm-star.on{color:#e5a528}.wm-thread-count{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--wm-line);font-size:8px}.wm-empty,.wm-skeleton,.wm-reader-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--wm-muted);text-align:center;padding:28px}.wm-empty .big,.wm-reader-empty .big{width:64px;height:64px;border-radius:19px;background:var(--wm-soft);color:var(--wm-accent);display:grid;place-items:center;font-size:25px}.wm-empty h3,.wm-reader-empty h3{margin:12px 0 4px;color:var(--wm-text);font-size:16px}.wm-empty p,.wm-reader-empty p{margin:0;font-size:10px;line-height:1.8}.wm-skeleton{align-items:stretch;justify-content:flex-start;gap:9px}.wm-skeleton i{height:62px;border-radius:10px;background:linear-gradient(90deg,var(--wm-soft),var(--wm-line),var(--wm-soft));background-size:200% 100%;animation:wm-shimmer 1.2s infinite}.wm-reader-head{position:sticky;top:0;z-index:4;padding:16px 20px;border-bottom:1px solid var(--wm-line);background:color-mix(in srgb,var(--wm-panel) 95%,transparent);backdrop-filter:blur(10px)}.wm-reader-headline{display:flex;justify-content:space-between;align-items:start;gap:14px}.wm-reader-head h2{margin:4px 0 0;color:var(--wm-text);font-size:20px;line-height:1.4}.wm-reader-actions{display:flex;gap:6px;flex-wrap:wrap}.wm-reader-actions button{height:33px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);color:var(--wm-muted);padding:0 10px;font-size:9px;cursor:pointer}.wm-reader-meta{padding:14px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--wm-line)}.wm-reader-meta .copy{min-width:0;display:grid;gap:2px}.wm-reader-meta strong{font-size:11px}.wm-reader-meta span{font-size:9px;color:var(--wm-muted);overflow:hidden;text-overflow:ellipsis}.wm-security-badges{display:flex;gap:5px;flex-wrap:wrap;margin-inline-start:auto}.wm-badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:12px;background:var(--wm-soft);color:var(--wm-accent);font-size:8px;font-weight:800}.wm-badge.warn{background:#fff4de;color:#9b6c00}.wm-badge.danger{background:#feeceb;color:#a43d37}.wm-reader-body{padding:24px 28px;line-height:1.85;color:var(--wm-text);font-size:12px;min-height:300px}.wm-reader-body.plain{white-space:pre-wrap}.wm-reader-body img{max-width:100%;height:auto}.wm-attachments,.wm-delivery,.wm-trace,.wm-thread{margin:0 20px 18px;padding:13px;border:1px solid var(--wm-line);border-radius:12px;background:color-mix(in srgb,var(--wm-panel) 96%,var(--wm-soft))}.wm-box-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:var(--wm-text);font-size:10px;font-weight:900}.wm-attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:7px}.wm-attachment{display:grid;grid-template-columns:32px 1fr auto;gap:7px;align-items:center;padding:8px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel)}.wm-attachment .ico{width:32px;height:32px;border-radius:8px;background:var(--wm-soft);display:grid;place-items:center}.wm-attachment strong{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wm-attachment small{font-size:8px;color:var(--wm-muted)}.wm-attachment button{border:0;background:transparent;color:var(--wm-accent);cursor:pointer}.wm-status-row,.wm-trace-row,.wm-thread-row{display:grid;grid-template-columns:1.2fr .7fr auto;gap:8px;align-items:center;padding:8px 0;border-top:1px dashed var(--wm-line);font-size:9px}.wm-status-row:first-of-type,.wm-trace-row:first-of-type{border-top:0}.wm-status-row strong{direction:ltr;text-align:right}.wm-status-code{padding:3px 7px;border-radius:8px;background:var(--wm-soft);color:var(--wm-accent);font-weight:800}.wm-trace-row{grid-template-columns:75px 120px 1fr}.wm-trace-row time{direction:ltr;color:var(--wm-muted)}.wm-thread-row{grid-template-columns:38px 1fr auto;cursor:pointer}.wm-thread-row:hover{color:var(--wm-accent)}
.wm-modal-back{position:fixed;inset:0;z-index:3500;background:rgba(15,35,42,.55);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px}.wm-modal{width:min(920px,96vw);max-height:94vh;background:var(--wm-panel);color:var(--wm-text);border:1px solid var(--wm-line);border-radius:18px;box-shadow:0 34px 100px rgba(8,45,56,.27);overflow:hidden;display:flex;flex-direction:column;direction:rtl}.wm-modal.small{width:min(520px,94vw)}.wm-modal>header{min-height:64px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--wm-line)}.wm-modal>header h3{margin:0;font-size:15px}.wm-modal>header small{display:block;color:var(--wm-muted);font-size:8px;margin-top:2px}.wm-modal-close{width:33px;height:33px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);color:var(--wm-muted);cursor:pointer}.wm-compose-fields{padding:7px 18px 0;overflow:auto}.wm-compose-line{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;min-height:46px;border-bottom:1px solid var(--wm-line);font-size:10px}.wm-compose-line>span{color:var(--wm-muted)}.wm-compose-line input{height:44px;border:0;outline:0;background:transparent;color:var(--wm-text);direction:ltr;text-align:right;font:inherit;font-size:10px}.wm-compose-line .mini-link{border:0;background:transparent;color:var(--wm-accent);font-size:9px;cursor:pointer}.wm-suggestions{margin:0 72px 7px;padding:6px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);box-shadow:0 12px 28px rgba(20,55,65,.1);display:grid;gap:2px}.wm-suggestions button{border:0;background:transparent;text-align:right;padding:7px;border-radius:7px;color:var(--wm-text);cursor:pointer}.wm-suggestions button:hover{background:var(--wm-soft)}.wm-suggestions strong{display:block;font-size:9px}.wm-suggestions small{font-size:8px;color:var(--wm-muted);direction:ltr}.wm-editor-toolbar{display:flex;gap:4px;flex-wrap:wrap;padding:9px 0}.wm-editor-toolbar button{min-width:30px;height:29px;border:1px solid var(--wm-line);border-radius:7px;background:var(--wm-panel);color:var(--wm-text);cursor:pointer;font-size:10px}.wm-editor{min-height:260px;max-height:360px;overflow:auto;padding:14px;border:1px solid var(--wm-line);border-radius:11px;background:color-mix(in srgb,var(--wm-panel) 95%,var(--wm-soft));outline:0;line-height:1.9;font-size:12px}.wm-editor:focus{border-color:#8cc2cc;box-shadow:0 0 0 3px rgba(11,113,135,.08)}.wm-compose-attach{padding:10px 18px;display:grid;gap:7px}.wm-dropzone{position:relative;min-height:52px;border:1px dashed #a8cad1;border-radius:10px;background:var(--wm-soft);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--wm-muted);font-size:9px;overflow:hidden}.wm-dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.wm-compose-attachment{display:grid;grid-template-columns:28px 1fr 28px;gap:7px;align-items:center;padding:7px 9px;border:1px solid var(--wm-line);border-radius:9px}.wm-compose-attachment strong{font-size:9px}.wm-compose-attachment small{display:block;color:var(--wm-muted);font-size:8px}.wm-compose-attachment button{border:0;background:transparent;color:#a43d37;cursor:pointer}.wm-compose-status{padding:7px 18px;color:var(--wm-muted);font-size:8px}.wm-compose-error{margin:0 18px 8px;padding:9px 11px;border:1px solid #efc8c4;border-radius:9px;background:#fff1f0;color:#a23e36;font-size:9px}.wm-modal>footer{padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--wm-line);background:color-mix(in srgb,var(--wm-panel) 96%,var(--wm-soft))}.wm-btn{height:36px;border-radius:9px;padding:0 13px;border:1px solid var(--wm-line);background:var(--wm-panel);color:var(--wm-muted);font-weight:700;font-size:10px;cursor:pointer}.wm-btn.primary{border:0;background:linear-gradient(135deg,var(--wm-accent),var(--wm-accent-dark));color:#fff;min-width:105px}.wm-btn.danger{color:#a53f38}.wm-btn:disabled{opacity:.55}.wm-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.38);border-top-color:#fff;border-radius:50%;display:inline-block;vertical-align:middle;animation:wm-spin .7s linear infinite}.wm-settings-body{padding:15px 18px;overflow:auto;display:grid;gap:14px}.wm-settings-section{padding:13px;border:1px solid var(--wm-line);border-radius:12px}.wm-settings-section h4{margin:0 0 10px;font-size:11px}.wm-setting-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:7px 0;border-top:1px dashed var(--wm-line);font-size:9px}.wm-setting-row:first-of-type{border-top:0}.wm-setting-row input[type=checkbox]{accent-color:var(--wm-accent)}.wm-setting-row select,.wm-setting-input{height:34px;border:1px solid var(--wm-line);border-radius:8px;background:var(--wm-panel);color:var(--wm-text);padding:0 9px;font:inherit;font-size:9px}.wm-signature{width:100%;min-height:100px;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-panel);color:var(--wm-text);padding:10px;resize:vertical;font:inherit;font-size:10px}.wm-session{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 0;border-top:1px dashed var(--wm-line);font-size:9px}.wm-session:first-of-type{border-top:0}.wm-session small{display:block;color:var(--wm-muted);margin-top:2px}.wm-session button{height:29px;border:1px solid var(--wm-line);border-radius:8px;background:var(--wm-panel);color:#a23e36;font-size:8px}.wm-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wm-toast-stack{position:fixed;left:18px;bottom:18px;z-index:4200;display:grid;gap:8px}.wm-toast{min-width:280px;max-width:420px;padding:11px 13px;border:1px solid #c9e7dd;border-radius:11px;background:#f0faf6;color:#176c55;box-shadow:0 14px 38px rgba(16,66,56,.12);display:grid;grid-template-columns:24px 1fr auto;gap:7px;align-items:center;font-size:9px}.wm-toast.error{border-color:#efc8c4;background:#fff2f1;color:#a23e36}.wm-toast button{border:0;background:transparent;color:inherit;font-size:16px}.wm-raw{direction:ltr;text-align:left;white-space:pre-wrap;overflow:auto;padding:15px;background:#102229;color:#d8eef2;font-family:Consolas,monospace;font-size:10px;min-height:360px;max-height:70vh}.gb-webmail.compact .wm-row{min-height:62px;padding-top:6px;padding-bottom:6px}.gb-webmail.compact .wm-row-preview{display:none}.gb-webmail.compact .wm-avatar{width:30px;height:30px;border-radius:8px}.theme-dark .wm-avatar{background:#1e4852;color:#a9e0e8}.theme-dark .wm-toast{background:#173a31;color:#b7ead9}.wm-mobile-back{display:none}
@keyframes wm-spin{to{transform:rotate(360deg)}}@keyframes wm-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media(max-width:1250px){.gb-webmail{grid-template-columns:220px 360px minmax(0,1fr)}}
@media(max-width:980px){.gb-webmail{grid-template-columns:210px minmax(0,1fr)}.wm-reader{position:fixed;inset:76px 0 0 0;z-index:2500;transform:translateX(-105%);transition:.2s;background:var(--wm-panel)}.wm-reader.open{transform:translateX(0)}.wm-mobile-back{display:inline-grid}.wm-reader-head{padding-top:12px}}
@media(max-width:680px){.gb-webmail{grid-template-columns:1fr}.wm-sidebar{display:none}.wm-list{border-left:0}.wm-list-head{padding:12px}.wm-row{grid-template-columns:24px 32px minmax(0,1fr) 27px}.wm-modal-back{padding:0}.wm-modal{width:100vw;height:100vh;max-height:none;border-radius:0}.wm-compose-fields{padding-inline:12px}.wm-compose-line{grid-template-columns:58px minmax(0,1fr) auto}.wm-suggestions{margin-inline:58px}.wm-password-grid{grid-template-columns:1fr}.wm-toast-stack{left:8px;right:8px;bottom:8px}.wm-toast{min-width:0;max-width:none}.client-topbar{height:64px}.client-main{min-height:calc(100vh - 64px)}.gb-webmail,.wm-sidebar,.wm-list,.wm-reader{min-height:calc(100vh - 64px)}.wm-reader{inset:64px 0 0 0}}

/* ========================================================================== */
/* GoodByte Webmail - readability + compose polish                            */
/* 2026-08-16                                                                 */
/* ========================================================================== */

/* The compose/settings modals are rendered outside .gb-webmail in Razor, so
   they must own the Webmail variables instead of relying on inheritance. */
.wm-modal-back {
    --wm-accent: #0b7187;
    --wm-accent-dark: #07566a;
    --wm-bg: #f5f8f9;
    --wm-panel: #ffffff;
    --wm-line: #dfe8eb;
    --wm-text: #243e47;
    --wm-muted: #71868d;
    --wm-soft: #eef6f7;
}

/* Slightly larger typography across the whole Webmail client. */
.gb-webmail {
    font-size: 12px;
    line-height: 1.5;
}

.client-brand strong { font-size: 15px; }
.client-brand span { font-size: 11px; }
.client-account-copy strong { font-size: 12px; }
.client-account-copy span { font-size: 10px; }
.client-avatar { font-size: 12px; }
.client-logout { font-size: 11px; }

.wm-compose-main {
    height: 50px;
    border-radius: 14px;
    font-size: 12.5px;
    letter-spacing: .05px;
}

.wm-section-title {
    margin-top: 21px;
    font-size: 11px;
}

.wm-folder-btn {
    min-height: 42px;
    height: auto;
    font-size: 12px;
}

.wm-folder-btn b { font-size: 10px; }
.wm-quota-row { font-size: 11px; }
.wm-side-actions button { font-size: 11px; }
.wm-list-title h1 { font-size: 22px; }
.wm-list-title small { font-size: 10px; }
.wm-search { height: 43px; }
.wm-search input { font-size: 12px; }
.wm-chip { height: 31px; font-size: 10.5px; padding-inline: 11px; }
.wm-bulkbar strong { font-size: 11px; }
.wm-bulkbar button,
.wm-bulkbar select { height: 31px; font-size: 10.5px; }

.wm-row {
    min-height: 88px;
    grid-template-columns: 28px 38px minmax(0,1fr) 32px;
    gap: 9px;
    padding: 10px 11px;
}

.wm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 11px;
}

.wm-row-top strong { font-size: 12.5px; }
.wm-row-top time { font-size: 9.5px; }
.wm-row-subject { font-size: 12px; }
.wm-row-preview { font-size: 10.5px; line-height: 1.45; }
.wm-row-meta { font-size: 9.5px; }
.wm-thread-count { font-size: 9px; }
.wm-empty h3,
.wm-reader-empty h3 { font-size: 18px; }
.wm-empty p,
.wm-reader-empty p { font-size: 11.5px; }

.wm-reader-head { padding: 18px 22px; }
.wm-reader-head h2 { font-size: 22px; }
.wm-reader-head small { font-size: 10.5px; }
.wm-reader-actions button { height: 36px; font-size: 10.5px; padding-inline: 12px; }
.wm-reader-meta { padding: 16px 22px; }
.wm-reader-meta strong { font-size: 12.5px; }
.wm-reader-meta span { font-size: 10.5px; }
.wm-badge { height: 26px; font-size: 9.5px; }
.wm-reader-body {
    padding: 28px 32px;
    font-size: 14px;
    line-height: 1.9;
}

.wm-box-title { font-size: 11.5px; }
.wm-attachment strong { font-size: 10.5px; }
.wm-attachment small { font-size: 9.5px; }
.wm-status-row,
.wm-trace-row,
.wm-thread-row { font-size: 10.5px; }

/* Compose / settings dialog */
.wm-modal-back {
    background: rgba(14, 36, 43, .48);
    backdrop-filter: blur(7px);
    padding: 24px;
}

.wm-modal {
    width: min(980px, 96vw);
    max-height: 92vh;
    background: #fff;
    color: var(--wm-text);
    border: 1px solid #dbe6e9;
    border-radius: 22px;
    box-shadow: 0 36px 110px rgba(6, 40, 50, .30);
}

.wm-modal.small { width: min(590px, 94vw); }

.wm-modal > header {
    min-height: 76px;
    padding: 15px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
    border-bottom-color: #e2ebed;
}

.wm-modal > header > div { min-width: 0; }
.wm-modal > header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #163b46;
}

.wm-modal > header small {
    margin-top: 4px;
    color: #7b9097;
    font-size: 11px;
    direction: ltr;
    text-align: right;
}

.wm-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 19px;
    background: #f8fbfb;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.wm-modal-close:hover {
    background: #eef6f7;
    border-color: #bed8de;
    color: var(--wm-accent);
}

.wm-compose-fields {
    padding: 10px 24px 0;
    background: #fff;
}

.wm-compose-line {
    grid-template-columns: 88px minmax(0,1fr) auto;
    min-height: 54px;
    border-bottom-color: #e7edef;
    font-size: 12px;
}

.wm-compose-line > span {
    color: #617980;
    font-size: 12px;
    font-weight: 700;
}

.wm-compose-line input {
    height: 52px;
    padding-inline: 8px;
    color: #233e47;
    font-size: 13px;
}

.wm-compose-line input::placeholder { color: #a2b0b4; }
.wm-compose-line .mini-link { font-size: 10.5px; font-weight: 700; }

.wm-suggestions {
    margin: 2px 88px 9px;
    padding: 7px;
    border-radius: 11px;
    box-shadow: 0 16px 36px rgba(20,55,65,.12);
}

.wm-suggestions button { padding: 9px; }
.wm-suggestions strong { font-size: 11px; }
.wm-suggestions small { font-size: 10px; }

.wm-editor-toolbar {
    gap: 6px;
    padding: 12px 0 10px;
    border-bottom: 0;
}

.wm-editor-toolbar button {
    min-width: 36px;
    height: 34px;
    border-radius: 9px;
    background: #fbfdfd;
    font-size: 12px;
    transition: .15s ease;
}

.wm-editor-toolbar button:hover {
    background: #edf6f7;
    border-color: #b8d6dc;
    color: var(--wm-accent);
}

.wm-editor {
    min-height: 310px;
    max-height: 410px;
    padding: 18px;
    border-color: #dfe8ea;
    border-radius: 13px;
    background: #fbfdfd;
    color: #263f47;
    font-size: 14px;
    line-height: 1.95;
}

.wm-editor:empty::before {
    content: "اكتب رسالتك هنا...";
    color: #a5b3b7;
    pointer-events: none;
}

.wm-editor:focus {
    background: #fff;
    border-color: #77b6c2;
    box-shadow: 0 0 0 4px rgba(11,113,135,.08);
}

.wm-compose-attach {
    padding: 13px 24px 8px;
    background: #fff;
}

.wm-dropzone {
    min-height: 68px;
    border-width: 1.5px;
    border-color: #94c4cd;
    border-radius: 13px;
    background: #f3f9fa;
    color: #627c84;
    font-size: 11.5px;
    font-weight: 600;
    transition: .15s ease;
}

.wm-dropzone:hover {
    background: #edf7f8;
    border-color: var(--wm-accent);
    color: var(--wm-accent);
}

.wm-compose-attachment {
    grid-template-columns: 32px 1fr 32px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #fbfdfd;
}

.wm-compose-attachment strong { font-size: 11px; }
.wm-compose-attachment small { font-size: 10px; }
.wm-compose-status { padding: 8px 24px; font-size: 10px; background: #fff; }
.wm-compose-error { margin: 0 24px 9px; padding: 11px 13px; font-size: 11px; }

.wm-modal > footer {
    min-height: 66px;
    padding: 12px 22px;
    background: #f9fbfb;
}

.wm-btn {
    height: 40px;
    padding-inline: 15px;
    border-radius: 10px;
    font-size: 11.5px;
}

.wm-btn.primary {
    min-width: 122px;
    box-shadow: 0 8px 20px rgba(11,113,135,.16);
}

.wm-settings-section h4 { font-size: 13px; }
.wm-setting-row { font-size: 11px; }
.wm-setting-row select,
.wm-setting-input { height: 38px; font-size: 11px; }
.wm-signature { font-size: 12px; }
.wm-session { font-size: 10.5px; }
.wm-session button { font-size: 9.5px; }
.wm-toast { font-size: 11px; }
.wm-raw { font-size: 11.5px; }

@media (max-width: 1180px) {
    .gb-webmail { grid-template-columns: 220px 360px minmax(0,1fr); }
}

@media (max-width: 680px) {
    .wm-modal-back { padding: 0; }
    .wm-modal { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
    .wm-modal > header { min-height: 70px; padding-inline: 16px; }
    .wm-compose-fields { padding-inline: 14px; }
    .wm-compose-line { grid-template-columns: 68px minmax(0,1fr) auto; }
    .wm-suggestions { margin-inline: 68px; }
    .wm-editor { min-height: 280px; font-size: 13.5px; }
    .wm-compose-attach { padding-inline: 14px; }
    .wm-compose-status { padding-inline: 14px; }
    .wm-compose-error { margin-inline: 14px; }
    .wm-modal > footer { padding-inline: 14px; }
}

/* =========================================================
   GoodByte Mail V8 - Global readability pass
   2026-08-17
   Slightly larger typography across the entire Web project.
   ========================================================= */
html { font-size: 16px; }
body { font-size: 15px; line-height: 1.55; }

/* Main admin shell */
.brand strong { font-size: 15px; }
.brand small { font-size: 12px; }
nav a { font-size: 14px; }
.nav-group > small { font-size: 12px; }
.shell > main > header { font-size: 14px; }
.shell > main > header small { font-size: 12px; }
h1 { font-size: 31px; }
h2 { font-size: 22px; }
.lead { font-size: 15px; }
.card span, .card small { font-size: 13.5px; }
.card strong { font-size: 31px; }
.panel, .health, .row { font-size: 14px; }
.feature-tile { font-size: 14px; }
.feature-tile span { font-size: 14px; }
.quick { font-size: 14px; }

/* Forms, buttons and data tables */
.form-grid label { font-size: 14px; }
.field,
.actions input,
.inline-filter input,
.inline-filter select,
.form-grid input,
.form-grid select,
.form-grid textarea { font-size: 14px; }
.primary,
.ghost,
.folder-btn,
.actions button,
.actions-bar button,
.link-button { font-size: 13.5px; }
.data-head { font-size: 13px; }
.data-row { font-size: 14px; }
.data-row span small { font-size: 12px; }
.badge { font-size: 12px; }
.mini { font-size: 13px; }
.toggle { font-size: 13px; }
.notice, .alert, .secret-box { font-size: 14px; }
.plan-card strong { font-size: 21px; }
.plan-card ul { font-size: 14px; }
.dns-record { font-size: 14px; }

/* Login screens */
.gb-login-heading h1,
.brand-login h1 { font-size: 26px; }
.gb-login-heading p,
.brand-login p { font-size: 14px; }
.gb-login-kicker { font-size: 11px; }
.login-card label,
.gb-login-card label { font-size: 13.5px; }
.login-card input,
.gb-login-card input { font-size: 14px; }
.login-card button,
.gb-login-card button { font-size: 14px; }

/* Client / Webmail header */
.client-brand strong { font-size: 16px; }
.client-brand span { font-size: 12px; }
.client-account-copy strong { font-size: 13px; }
.client-account-copy span { font-size: 11px; }
.client-avatar { font-size: 13px; }
.client-logout { font-size: 12px; }

/* Webmail navigation */
.wm-compose-btn { font-size: 13.5px; }
.wm-folder-btn { font-size: 13.5px; }
.wm-folder-btn b { font-size: 11px; }
.wm-quota-row { font-size: 12px; }
.wm-side-actions button { font-size: 12px; }
.wm-list-title h1 { font-size: 23px; }
.wm-list-title small { font-size: 11px; }
.wm-search input { font-size: 13px; }
.wm-chip { font-size: 11.5px; }
.wm-bulkbar strong { font-size: 12px; }
.wm-bulkbar select { font-size: 11.5px; }

/* Message list */
.wm-row-top strong { font-size: 13.5px; }
.wm-row-top time { font-size: 10.5px; }
.wm-row-subject { font-size: 13px; }
.wm-row-preview { font-size: 11.5px; line-height: 1.55; }
.wm-row-meta { font-size: 10.5px; }
.wm-thread-count { font-size: 10px; }

/* Message reader */
.wm-reader-empty h3 { font-size: 19px; }
.wm-reader-empty p { font-size: 12.5px; }
.wm-reader-head h2 { font-size: 23px; }
.wm-reader-head small { font-size: 11.5px; }
.wm-reader-actions button { font-size: 11.5px; }
.wm-reader-meta strong { font-size: 13.5px; }
.wm-reader-meta span { font-size: 11.5px; }
.wm-badge { font-size: 10.5px; }
.wm-reader-body,
.wm-reader-body p,
.wm-reader-body div,
.wm-reader-body li { font-size: 15px; line-height: 1.8; }
.wm-box-title { font-size: 12.5px; }
.wm-attachment strong { font-size: 11.5px; }
.wm-attachment small { font-size: 10.5px; }
.wm-thread-row { font-size: 11.5px; }
.wm-status-row,
.wm-trace-row { font-size: 10.5px; }

/* Compose + other webmail modals */
.wm-modal > header h3 { font-size: 19px; }
.wm-modal > header small { font-size: 11px; }
.wm-compose-line { font-size: 13px; }
.wm-compose-line input { font-size: 13px; }
.wm-compose-line .mini-link { font-size: 11.5px; }
.wm-suggestions strong { font-size: 12px; }
.wm-suggestions small { font-size: 11px; }
.wm-editor-toolbar button { font-size: 12px; }
.wm-editor { font-size: 15px; line-height: 1.9; }
.wm-dropzone { font-size: 12px; }
.wm-compose-attachment strong { font-size: 12px; }
.wm-compose-attachment small { font-size: 11px; }
.wm-compose-status { font-size: 11px; }
.wm-compose-error { font-size: 12px; }
.wm-btn { font-size: 12.5px; }

/* Webmail settings / sessions / toast */
.wm-settings-section h4 { font-size: 14px; }
.wm-setting-row { font-size: 12px; }
.wm-setting-row select,
.wm-setting-input { font-size: 12px; }
.wm-signature { font-size: 13px; }
.wm-session { font-size: 11.5px; }
.wm-session button { font-size: 10.5px; }
.wm-toast { font-size: 12px; }
.wm-raw { font-size: 12px; }

@media (max-width: 760px) {
    body { font-size: 14px; }
    h1 { font-size: 26px; }
    .wm-list-title h1 { font-size: 21px; }
    .wm-reader-head h2 { font-size: 21px; }
    .wm-editor { font-size: 14px; }
}
