html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background-image: url('/Images/PostGuardAI2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

    body > main {
        flex: 1;
        position: relative;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        overflow-y: auto;
        animation: pageFadeIn 0.9s ease-out;
    }

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    body > header {
        flex: 0 0 auto;
        position: relative;
        z-index: 10;
    }

    body > footer {
        flex: 0 0 auto;
        position: relative;
        z-index: 10;
    }

.offcanvas-nav-item {
    display: none;
}

    .offcanvas.show .offcanvas-nav-item,
    .offcanvas.showing .offcanvas-nav-item {
        display: block;
    }

.offcanvas.show .offcanvas-non-canvas-item,
.offcanvas.showing .offcanvas-non-canvas-item {
    display: none;
}

/* ========= Layout (from _Layout.cshtml.css) ========= */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    padding: 0;
    margin-right: 1rem;
}

a {
    color: #0077cc;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

#brandFallback {
    display: none;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========= Page headings ========= */

.page-heading {
    color: white;
}

/* ========= Gradient button (reusable) ========= */

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    letter-spacing: 0.3px;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient-lg {
    padding: 12px 24px;
    letter-spacing: 0.5px;
}

/* ========= Sign-in form ========= */

.signin-form {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.signin-form .form-label {
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    text-align: center;
}

.signin-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    text-align: center;
}

.signin-form .form-control:focus {
    background-color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.signin-form .form-control::placeholder {
    color: #999;
    opacity: 0.7;
    text-align: center;
}

.signin-form .form-group {
    margin-bottom: 1.5rem;
    text-align: center;
}

.signin-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

.signin-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 8px;
}

.signin-form .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.signin-container {
    min-height: 60vh;
}

.signin-submit {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    letter-spacing: 0.5px;
    min-width: 250px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .signin-form {
        padding: 1.5rem;
    }
}

/* ========= Cookie consent overlay ========= */

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.cookie-banner {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.cookie-banner-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.cookie-banner-text {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cookie-banner-text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-accept-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 36px;
    font-size: 1rem;
    letter-spacing: 0.3px;
    margin-top: 0.5rem;
}

.cookie-accept-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========= Styled modals (user-modal / delete-modal) ========= */

.user-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.user-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.user-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.user-modal .modal-body {
    padding: 1.5rem 2rem;
}

.user-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 2rem;
}

.user-modal .form-label {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-modal .form-control,
.user-modal .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.user-modal .form-control:focus,
.user-modal .form-select:focus {
    background-color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.user-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    letter-spacing: 0.3px;
}

.user-modal .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-modal .btn-secondary {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
}

.user-modal .section-divider {
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

.delete-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.delete-modal .modal-header {
    background: #dc3545;
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.delete-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.delete-modal .modal-body {
    padding: 1.5rem 2rem;
}

.delete-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 2rem;
}

.delete-modal .btn-danger {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
}

.delete-modal .btn-secondary {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
}

/* ========= Chart containers ========= */

.chart-container {
    position: relative;
    height: 350px;
}

/* ========= Whitelist scroll panel ========= */

.whitelist-scroll {
    max-height: 300px;
    overflow-y: auto;
}

/* ========= Sign-in page fade-in ========= */

.signin-container main {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========= Mailbox slot meter ========= */

.slot-meter {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slot-meter-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

.slot-meter-count {
    font-weight: 700;
    font-size: 1.05rem;
    color: #555;
}

.slot-meter-separator {
    color: #aaa;
    margin: 0 1px;
}

.slot-meter-track {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.slot-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 4.5rem;
}

.slot-dot-filled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.slot-dot-empty {
    background: #f0f0f0;
    color: #ccc;
    border: 2px dashed #ddd;
}

.slot-meter-bar {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
}

.slot-meter-bar .progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

.slot-meter-status {
    font-size: 0.9rem;
    text-align: center;
}

/* ========= Buy Now page ========= */

.buy-now-icon {
    font-size: 3.5rem;
    color: #667eea;
}

.buy-now-price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
}

.buy-now-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.buy-now-currency {
    font-size: 1.5rem;
    vertical-align: super;
    font-weight: 600;
    margin-right: 2px;
}

.buy-now-period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 4px;
}

.buy-now-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buy-now-features li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.buy-now-features li:last-child {
    border-bottom: none;
}

/* ========= System Settings ========= */

.system-test-icon {
    font-size: 2.5rem;
}

.log-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    border-radius: 8px;
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-entry {
    padding: 1px 0;
    border-bottom: 1px solid #2d2d2d;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-level-error {
    color: #f48771;
}

.log-level-warn {
    color: #cca700;
}

.log-level-info {
    color: #89d185;
}

.log-timestamp {
    color: #6a9955;
}

/* ========= Gmail Setup Guide ========= */

.guide-steps {
    position: relative;
    padding-left: 3rem;
}

.guide-steps::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.guide-step {
    position: relative;
    margin-bottom: 2rem;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step-number {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
    z-index: 1;
}

.guide-step-content h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.guide-step-content p,
.guide-step-content ol,
.guide-step-content ul {
    color: #555;
}

.guide-screenshot {
    margin-top: 0.75rem;
}

.guide-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.guide-screenshot-placeholder i {
    font-size: 1.5rem;
}

.letter-spaced {
    letter-spacing: 4px;
}

/* ========= How It Works — Architecture diagram ========= */

.arch-diagram {
    overflow-x: auto;
}

.arch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    min-width: 160px;
    font-weight: 600;
}

.arch-node i {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.arch-node span {
    font-size: 0.95rem;
}

.arch-node small {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.75;
}

.arch-external {
    background: #e8f4fd;
    border: 2px solid #90caf9;
    color: #1565c0;
}

.arch-core {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.35);
}

.arch-core small {
    opacity: 0.85;
}

.arch-service {
    background: #ffffff;
    border: 2px solid #dee2e6;
    color: #333;
}

.arch-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    min-width: 100px;
}

.arch-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #90caf9, #667eea);
    border-radius: 2px;
}

.arch-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arch-branches {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.arch-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arch-vline {
    width: 3px;
    height: 32px;
    background: linear-gradient(180deg, #667eea, #dee2e6);
    border-radius: 2px;
    margin-bottom: 0.25rem;
}

/* ========= How It Works — Processing pipeline ========= */

.pipeline {
    position: relative;
}

.pipeline-stage {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pipeline-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.pipeline-icon-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.pipeline-icon-info    { background: linear-gradient(135deg, #17a2b8, #138496); }
.pipeline-icon-danger  { background: linear-gradient(135deg, #dc3545, #c82333); }
.pipeline-icon-warning { background: linear-gradient(135deg, #ffc107, #e0a800); color: #333; }
.pipeline-icon-success { background: linear-gradient(135deg, #28a745, #218838); }
.pipeline-icon-secondary { background: linear-gradient(135deg, #6c757d, #5a6268); }

.pipeline-body {
    flex: 1;
}

.pipeline-body h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.pipeline-body p {
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.93rem;
    line-height: 1.65;
}

.pipeline-connector {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.5rem 1.4rem;
    color: #667eea;
    font-size: 1.1rem;
}

.pipeline-code-block {
    background: #1e1e2e;
    color: #a6e3a1;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    overflow-x: auto;
}

/* ========= How It Works — Category cards ========= */

.cat-card {
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
    border-left: 4px solid;
    background: #ffffff;
}

.cat-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cat-card h6 {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.cat-card p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.5;
}

.cat-safe       { border-color: #28a745; }
.cat-safe i     { color: #28a745; }
.cat-newsletter { border-color: #17a2b8; }
.cat-newsletter i { color: #17a2b8; }
.cat-promo      { border-color: #ffc107; }
.cat-promo i    { color: #e0a800; }
.cat-ad         { border-color: #fd7e14; }
.cat-ad i       { color: #fd7e14; }
.cat-sales      { border-color: #6f42c1; }
.cat-sales i    { color: #6f42c1; }
.cat-spam       { border-color: #dc3545; }
.cat-spam i     { color: #dc3545; }

/* ========= How It Works — Tech stack items ========= */

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.tech-icon {
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.tech-icon-blue   { background: linear-gradient(135deg, #667eea, #5568d3); }
.tech-icon-purple { background: linear-gradient(135deg, #764ba2, #6a3f8f); }
.tech-icon-teal   { background: linear-gradient(135deg, #20c997, #17a689); }
.tech-icon-red    { background: linear-gradient(135deg, #dc3545, #c82333); }
.tech-icon-indigo { background: linear-gradient(135deg, #6610f2, #520dc2); }

.tech-body {
    flex: 1;
}

.tech-body h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.tech-body p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.tech-url {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

/* ========= How It Works — Security cards ========= */

.sec-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}

.sec-card i {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    display: block;
}

.sec-card h6 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
}

.sec-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ========= How It Works — responsive ========= */

@media (max-width: 768px) {
    .arch-row {
        flex-direction: column;
    }

    .arch-connector {
        min-width: auto;
        padding: 0.5rem 0;
    }

    .arch-line {
        width: 3px;
        height: 32px;
    }

    .arch-branches {
        gap: 1rem;
    }

    .pipeline-stage {
        gap: 0.75rem;
    }

    .tech-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========= Mailbox Manager — colorful table & modal ========= */

.mb-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mb-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
}

.mb-card-header h5 {
    font-weight: 700;
}

/* Table */
.mb-table {
    font-size: 0.9rem;
}

.mb-table thead {
    background: #f0f2ff;
}

.mb-table thead th {
    color: #4a4e8a;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem;
    border-bottom: 2px solid #d5d9f2;
    white-space: nowrap;
}

.mb-table tbody tr {
    transition: background-color 0.2s ease;
}

.mb-table tbody tr:nth-child(odd) {
    background-color: #fafaff;
}

.mb-table tbody tr:nth-child(even) {
    background-color: #f0f4ff;
}

.mb-table tbody tr:hover {
    background-color: #e8ecff;
}

.mb-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e8ecf4;
    color: #444;
}

.mb-table tbody td code {
    background: #eef1fb;
    color: #5a5fc0;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Badges */
.mb-badge-on {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.65em;
}

.mb-badge-off {
    background: linear-gradient(135deg, #dc3545, #e85d6c) !important;
    color: white;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.65em;
}

/* Edit / Delete buttons */
.mb-btn-edit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mb-btn-edit:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.mb-btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mb-btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
}

/* ========= Mailbox Manager — modal styling ========= */

.mb-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mb-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.1rem 1.5rem;
}

.mb-modal-header .modal-title {
    font-weight: 700;
}

.mb-form-label {
    font-weight: 600;
    color: #4a4e8a;
    font-size: 0.9rem;
}

.mb-input {
    border: 2px solid #d5d9f2;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.93rem;
}

.mb-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

.mb-input::placeholder {
    color: #aab0d0;
}

/* Toggle switches */
.mb-switch {
    padding: 0.55rem 0 0.55rem 2.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mb-switch:hover {
    background-color: #f0f2ff;
}

.mb-switch-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.mb-switch-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.mb-switch .form-check-label {
    font-weight: 500;
    color: #444;
}

/* Modal section divider */
.mb-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}

.mb-section-title {
    font-weight: 700;
    color: #4a4e8a;
    font-size: 1rem;
}

/* ========= Home page — email stats charts ========= */

.home-stacked-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.home-stacked-segment {
    transition: width 0.6s ease;
    position: relative;
}

.home-stacked-segment:first-child {
    border-radius: 14px 0 0 14px;
}

.home-stacked-segment:last-child {
    border-radius: 0 14px 14px 0;
}

.home-stacked-segment:only-child {
    border-radius: 14px;
}

.home-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-bar-label {
    min-width: 130px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.home-bar-label i {
    font-size: 1.05rem;
}

.home-bar-track {
    flex: 1;
    height: 22px;
    background: #eef1fb;
    border-radius: 11px;
    overflow: hidden;
}

.home-bar-fill {
    height: 100%;
    border-radius: 11px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.home-bar-value {
    min-width: 100px;
    text-align: right;
    font-size: 0.88rem;
    color: #333;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .home-bar-label {
        min-width: 90px;
        font-size: 0.8rem;
    }

    .home-bar-value {
        min-width: 70px;
        font-size: 0.8rem;
    }

    .home-bar-value small {
        display: none;
    }
}