.hostit-fastsmtp-wrap,
.fastsmtp-hostit-wrap {
    --fastsmtp-bg: #eef3f8;
    --fastsmtp-accent: #1c77ba;
    --fastsmtp-accent-dark: #16689f;
    --fastsmtp-ink: #0f172a;
    --fastsmtp-card: #ffffff;
    background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 60%, #e8edf5 100%);
    padding: 0 14px 28px;
}

.fastsmtp-admin-shell {
    max-width: 1240px;
    margin: 14px auto 0;
}

.fastsmtp-admin-hero {
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.fastsmtp-admin-title {
    margin: 0;
    color: #20324b;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}

.fastsmtp-admin-subtitle {
    margin: 8px 0 0;
    color: #5f748f;
    font-size: 14px;
}

.fastsmtp-admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fastsmtp-admin-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
}

.fastsmtp-admin-card {
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 18px 18px 16px;
}

.fastsmtp-admin-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #20324b;
}

.fastsmtp-admin-card h3 {
    margin: 16px 0 10px;
    font-size: 15px;
    color: #20324b;
}

.fastsmtp-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fastsmtp-admin-field {
    margin: 0;
}

.fastsmtp-admin-field.full {
    grid-column: 1 / -1;
}

.fastsmtp-admin-field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #788ca5;
    font-weight: 700;
    margin-bottom: 5px;
}

.fastsmtp-admin-help {
    display: block;
    margin-top: 6px;
    color: #6b7d92;
    font-size: 12px;
    line-height: 1.45;
}

.fastsmtp-admin-field input,
.fastsmtp-admin-field select {
    width: 100%;
    min-width: 0;
    max-width: none;
    border: 1px solid #d2dfef;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 14px;
    color: #20324b;
    background: #fff;
}

.fastsmtp-admin-field select,
.fastsmtp-log-controls select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2366788f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
}

.fastsmtp-admin-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.fastsmtp-admin-inline input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d2dfef;
    border-radius: 10px;
    padding: 9px 11px;
}

.fastsmtp-admin-checks {
    margin: 12px 0 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.fastsmtp-admin-checks label {
    color: #324862;
    font-size: 13px;
}

.fastsmtp-admin-hint {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eaf3fb;
    border-left: 4px solid #1c77ba;
    color: #3f5671;
    font-size: 13px;
}

.fastsmtp-admin-info-list {
    display: grid;
    gap: 10px;
}

.fastsmtp-admin-info-list p {
    margin: 0;
    font-size: 14px;
    color: #324862;
}

.fastsmtp-admin-info-list a {
    color: #1c77ba;
    text-decoration: none;
    font-weight: 600;
}

.fastsmtp-admin-info-list a:hover,
.fastsmtp-admin-info-list a:focus {
    text-decoration: underline;
}

.fastsmtp-admin-meta {
    margin: 12px 0 0;
    color: #4a5c72;
    font-size: 12px;
}

.fastsmtp-admin-save {
    margin: 14px 0 0;
}

.fastsmtp-admin-save .button.button-primary,
.fastsmtp-admin-actions .button.button-primary {
    background: #1c77ba;
    border-color: #1c77ba;
}

.fastsmtp-admin-save .button.button-primary:hover,
.fastsmtp-admin-save .button.button-primary:focus,
.fastsmtp-admin-actions .button.button-primary:hover,
.fastsmtp-admin-actions .button.button-primary:focus {
    background: #16689f;
    border-color: #16689f;
}

.fastsmtp-dashboard-wrap {
    background: #eeeeef;
    padding-top: 24px;
}

.fastsmtp-dashboard-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.fastsmtp-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #00a99d;
    padding: 0 0 14px;
    margin-bottom: 20px;
}

.fastsmtp-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fastsmtp-dashboard-icon {
    color: #009e96;
    font-size: 16px;
    line-height: 1;
}

.fastsmtp-dashboard-brand h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #22272e;
    font-weight: 700;
}

.fastsmtp-dashboard-brand p {
    margin: 3px 0 0;
    color: #606a75;
    font-size: 13px;
}

.fastsmtp-dashboard-tabs {
    display: flex;
    gap: 4px;
}

.fastsmtp-dashboard-tabs a {
    color: #3f4650;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 14px;
}

.fastsmtp-dashboard-tabs a.is-active {
    background: #fff;
    color: #009e96;
    font-weight: 700;
}

.fastsmtp-dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.fastsmtp-dashboard-badges,
.fastsmtp-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fastsmtp-dashboard-status,
.fastsmtp-dashboard-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
}

.fastsmtp-dashboard-status.is-ok {
    background: #c9f7df;
    color: #00805f;
}

.fastsmtp-dashboard-status.is-warn {
    background: #fff4d7;
    color: #9a6a00;
}

.fastsmtp-dashboard-status span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.fastsmtp-dashboard-mode {
    background: #e8f0ff;
    color: #1d60e7;
}

.fastsmtp-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.fastsmtp-dashboard-metrics article,
.fastsmtp-dashboard-panel {
    background: #fff;
    border: 1px solid #c4c8ce;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.fastsmtp-dashboard-metrics article {
    padding: 20px;
    min-height: 84px;
}

.fastsmtp-dashboard-metrics strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: #242932;
    font-weight: 800;
}

.fastsmtp-dashboard-metrics span {
    display: block;
    margin-top: 8px;
    color: #5d6570;
    font-size: 13px;
}

.fastsmtp-dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fastsmtp-dashboard-panel {
    padding: 18px;
    min-height: 210px;
}

.fastsmtp-dashboard-panel h2 {
    margin: 0 0 14px;
    color: #22272e;
    font-size: 16px;
    font-weight: 800;
}

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

.fastsmtp-dashboard-panel-head a {
    color: #009e96;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fastsmtp-dashboard-dns {
    display: grid;
    gap: 10px;
}

.fastsmtp-dashboard-dns-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    border-radius: 7px;
    padding: 12px 14px;
    border: 1px solid transparent;
}

.fastsmtp-dashboard-dns-row span {
    font-size: 17px;
    font-weight: 800;
}

.fastsmtp-dashboard-dns-row strong {
    font-size: 14px;
}

.fastsmtp-dashboard-dns-row em {
    font-style: normal;
    color: #53606f;
    font-size: 13px;
}

.fastsmtp-dashboard-dns-row.is-green {
    background: #d3f9df;
    border-color: #52e092;
    color: #00805f;
}

.fastsmtp-dashboard-dns-row.is-yellow {
    background: #fff6dc;
    border-color: #f4cb5d;
    color: #9a6a00;
}

.fastsmtp-dashboard-dns-row.is-red {
    background: #ffe0e2;
    border-color: #ff8188;
    color: #d51e2a;
}

.fastsmtp-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.fastsmtp-dashboard-table th {
    background: #f5f6f7;
    border-bottom: 1px solid #c4c8ce;
    color: #656d77;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    padding: 10px 12px;
}

.fastsmtp-dashboard-table td {
    border-bottom: 1px solid #e5e7eb;
    color: #22272e;
    padding: 10px 12px;
    font-size: 13px;
}

.fastsmtp-dashboard-send-status {
    display: inline-flex;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
}

.fastsmtp-dashboard-send-status.is-sent {
    background: #c9f7df;
    color: #00805f;
}

.fastsmtp-dashboard-send-status.is-failed {
    background: #ffe0e2;
    color: #d51e2a;
}

.fastsmtp-dashboard-send-status.is-unknown {
    background: #e5e7eb;
    color: #4b5563;
}

.fastsmtp-hero {
    background: radial-gradient(circle at 20% 20%, #0d948833 0%, transparent 45%),
        radial-gradient(circle at 80% 0%, #f59e0b33 0%, transparent 40%),
        #0f172a;
    border-radius: 18px;
    padding: 24px;
    color: #fff;
    margin: 16px 0 24px;
}

.fastsmtp-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fastsmtp-title {
	color: #FFF;
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.fastsmtp-subtitle {
    margin: 0;
    color: #e2e8f0;
}

.fastsmtp-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.fastsmtp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.fastsmtp-card {
    background: var(--fastsmtp-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.fastsmtp-card-title {
    font-size: 18px;
    margin: 0 0 12px;
    color: var(--fastsmtp-ink);
}

.fastsmtp-card-subtitle {
    font-size: 15px;
    margin: 12px 0 6px;
    color: var(--fastsmtp-ink);
}

.fastsmtp-note {
    margin: 0 0 12px;
    color: #475569;
    font-size: 13px;
}

.fastsmtp-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.fastsmtp-form-row label {
    font-weight: 600;
    font-size: 12px;
    color: #334155;
}

.fastsmtp-form-row input,
.fastsmtp-form-row select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

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

.fastsmtp-result {
    margin-top: 10px;
    font-size: 13px;
    color: #0f172a;
}

.fastsmtp-steps {
    display: flex;
    gap: 0;
    margin: 16px 0 8px;
    padding: 0;
    flex-wrap: wrap;
}

.fastsmtp-steps li {
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 12px;
    margin-right: 16px;
    padding-right: 18px;
}

.fastsmtp-steps li::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 8px;
    width: 10px;
    height: 2px;
    background: #d8e1eb;
}

.fastsmtp-steps li:last-child {
    margin-right: 0;
    padding-right: 0;
}

.fastsmtp-steps li:last-child::after {
    display: none;
}

.fastsmtp-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #c8d5e3;
    background: #fff;
}

.fastsmtp-step-label {
    font-weight: 600;
    color: #64748b;
}

.fastsmtp-steps li.is-active {
    color: #0f172a;
}

.fastsmtp-steps li.is-active .fastsmtp-step-dot {
    border-color: #1c77ba;
    background: #1c77ba;
}

.fastsmtp-steps li.is-active .fastsmtp-step-label {
    color: #1e293b;
}

.fastsmtp-wizard-shell {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    margin: 16px auto;
    max-width: 980px;
}

.fastsmtp-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.fastsmtp-wizard-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.fastsmtp-wizard-subtitle {
    margin: 6px 0 0;
    color: #475569;
}

.fastsmtp-wizard-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1c77ba 0%, #2f95d8 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(28, 119, 186, 0.25);
}

.fastsmtp-wizard-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.fastsmtp-wizard-card {
    max-width: 980px;
    margin: 14px auto 0;
    border: 1px solid #e2e8f0;
}

.fastsmtp-wizard-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.fastsmtp-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.fastsmtp-provider-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.fastsmtp-provider-card.is-disabled {
    opacity: 0.65;
    background: #f8fafc;
}

.fastsmtp-dns-summary {
    margin-bottom: 8px;
}

.fastsmtp-dns-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.fastsmtp-dns-card.green {
    border-color: #10b981;
}

.fastsmtp-dns-card.yellow {
    border-color: #f59e0b;
}

.fastsmtp-dns-card.red {
    border-color: #ef4444;
}

.fastsmtp-dns-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fastsmtp-dns-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #64748b;
}

.fastsmtp-dns-card.green .fastsmtp-dns-dot {
    background: #10b981;
}

.fastsmtp-dns-card.yellow .fastsmtp-dns-dot {
    background: #f59e0b;
}

.fastsmtp-dns-card.red .fastsmtp-dns-dot {
    background: #ef4444;
}

.fastsmtp-dns-label {
    margin-left: auto;
    font-size: 12px;
    color: #475569;
}

.fastsmtp-dns-message {
    margin: 8px 0 6px;
}

.fastsmtp-dns-record {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.fastsmtp-dns-record code {
    display: inline-block;
    padding: 4px 6px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.fastsmtp-card input[type="text"],
.fastsmtp-card input[type="email"],
.fastsmtp-card input[type="password"],
.fastsmtp-card select {
    min-width: 280px;
    max-width: 520px;
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.fastsmtp-card .button {
    border-radius: 10px;
}

.fastsmtp-card .button.button-primary {
    background: #1c77ba;
    border-color: #1c77ba;
}

.fastsmtp-card .button.button-primary:hover,
.fastsmtp-card .button.button-primary:focus {
    background: #16689f;
    border-color: #16689f;
}

.fastsmtp-divider {
    margin: 16px 0;
}

.fastsmtp-full {
    grid-column: 1 / -1;
}

.fastsmtp-log-detail {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.fastsmtp-log-detail-card {
    margin-bottom: 14px;
}

.fastsmtp-log-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.fastsmtp-log-body {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.fastsmtp-log-error {
    margin-top: 10px;
    color: #b91c1c;
}

.fastsmtp-log-table-wrap {
    overflow-x: auto;
}

#fastsmtp-select-all-logs {
	margin: 2px 0 0;
}

input.fastsmtp-log-checkbox {
	margin: 0;
}

.fastsmtp-log-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fastsmtp-log-controls label {
    font-size: 13px;
    color: #324862;
}

.fastsmtp-log-controls select {
    width: auto;
    min-width: 88px;
}

.fastsmtp-log-table {
    margin-top: 0;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    overflow: hidden;
}

.fastsmtp-log-table thead th {
    background: #f5f8fc;
    color: #223047;
    font-weight: 700;
}

.fastsmtp-log-table tbody td {
    vertical-align: top;
}

.fastsmtp-admin-card .tablenav {
    margin-top: 12px;
    padding-top: 8px;
}

.fastsmtp-admin-card .tablenav .tablenav-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    float: none;
    color: #4b5a6f;
    font-size: 13px;
}

.fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cfdceb;
    border-radius: 8px;
    background: #fff;
    color: #295d92;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers:hover,
.fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers:focus {
    background: #eaf3fb;
    border-color: #1c77ba;
    color: #1c77ba;
}

.fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers.current {
    background: #1c77ba;
    border-color: #1c77ba;
    color: #fff;
    box-shadow: 0 2px 8px rgba(28, 119, 186, 0.22);
}

.fastsmtp-log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fastsmtp-log-clear-form {
    margin-bottom: 12px;
}

.fastsmtp-log-bulk-actions {
    margin-bottom: 10px;
}

.fastsmtp-log-table .check-column {
    width: 36px;
    text-align: center;
    padding: 10px;
}

.fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers.dots {
    min-width: auto;
    border: 0;
    background: transparent;
    padding: 0 4px;
    color: #72839a;
    font-weight: 700;
}

.fastsmtp-log-error-cell {
    color: #7a2530;
}

.fastsmtp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fastsmtp-status-sent {
    background: #dcfce7;
    color: #166534;
}

.fastsmtp-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.fastsmtp-status-unknown {
    background: #e2e8f0;
    color: #334155;
}

@media (max-width: 782px) {
    .fastsmtp-dashboard-head,
    .fastsmtp-dashboard-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fastsmtp-dashboard-tabs {
        width: 100%;
        overflow-x: auto;
    }

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

    .fastsmtp-admin-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .fastsmtp-admin-grid,
    .fastsmtp-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .fastsmtp-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fastsmtp-wizard-header {
        flex-wrap: wrap;
    }

    .fastsmtp-steps {
        gap: 8px;
    }

    .fastsmtp-steps li {
        margin-right: 0;
        padding-right: 0;
    }

    .fastsmtp-steps li::after {
        display: none;
    }

    .fastsmtp-admin-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .fastsmtp-log-detail-grid {
        grid-template-columns: 1fr;
    }

    .fastsmtp-log-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .fastsmtp-admin-card .tablenav .tablenav-pages .page-numbers {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
    }
}
