:root {
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --purple: #7C3AED;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --border: #E2E8F0;
    --soft-border: #EEF2F7;
    --sidebar: #0F172A;
    --sidebar-muted: #94A3B8;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--primary-dark);
}

button,
.btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s ease;
}

button:hover,
.btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #F1F5F9;
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-warning {
    background: var(--warning);
    color: #111827;
}

.btn-success {
    background: var(--success);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: var(--sidebar);
    color: #fff;
    padding: 24px 18px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.brand span {
    color: #93C5FD;
}

.sidebar-section {
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--sidebar-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sidebar-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #CBD5E1;
    margin-bottom: 6px;
    font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.topbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.page-content {
    padding: 28px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.card h3,
.card h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.kpi-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.kpi-note {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.section-title {
    margin: 30px 0 16px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}

.status-active,
.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.status-paused,
.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.status-suspended,
.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.status-inactive,
.badge-muted {
    background: #E2E8F0;
    color: #475569;
}

.badge-primary {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-purple {
    background: #EDE9FE;
    color: #6D28D9;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 800;
}

.action-link:hover {
    background: #F1F5F9;
    color: var(--text);
}

.action-link.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.action-link.primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--soft-border);
}

th {
    background: #F8FAFC;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    font-size: 14px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(37, 99, 235, 0.16);
    border-color: var(--primary);
}

.muted {
    color: var(--muted);
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 26px 0;
}

.progress-wrap {
    height: 10px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 999px;
}

.report-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.notice {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    padding: 14px 16px;
    border-radius: 12px;
}

.warning-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 14px 16px;
    border-radius: 12px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-preview {
    background: linear-gradient(135deg, #0F172A, #1E3A8A, #4C1D95);
    color: #fff;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(14px);
}

@media print {
    .app-sidebar,
    .topbar,
    .no-print,
    button {
        display: none !important;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    body {
        background: #fff;
    }

    .card,
    .report-section,
    .kpi-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

@media (max-width: 980px) {
    .app-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .app-shell {
        display: block;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .auth-page {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Darker text override */
.kpi-label,
.kpi-note,
.muted,
.topbar p,
.page-header p,
.card p,
.sidebar-section {
    color: #0F172A;
}

.kpi-value {
    color: #0F172A;
}

.card h3,
.card h4,
.section-title,
.page-header h2,
.topbar h1 {
    color: #0F172A;
}
/* Professional auth page upgrade */
.auth-preview {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), transparent 34%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0F172A 45%, #1E3A8A 100%);
}

.preview-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
}

.preview-card h2,
.preview-card p {
    color: #FFFFFF;
}

.preview-inner-card {
    background: rgba(255, 255, 255, 0.96);
    color: #0F172A;
    border-radius: 20px;
    padding: 22px;
    margin-top: 22px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
}

.preview-inner-card h3,
.preview-inner-card p {
    color: #0F172A;
}

.preview-feature {
    padding: 14px 0;
    border-bottom: 1px solid #E2E8F0;
}

.preview-feature:last-child {
    border-bottom: none;
}

.preview-feature strong {
    display: block;
    color: #0F172A;
    margin-bottom: 4px;
}

.preview-feature span {
    display: block;
    color: #64748B;
    line-height: 1.5;
}
/* Softer professional text colors */
:root {
    --text: #1E293B;
    --heading: #0F172A;
    --muted: #64748B;
}

body,
p,
td,
input,
select,
textarea {
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header h2,
.topbar h1,
.section-title,
.kpi-value,
strong,
label {
    color: var(--heading);
}

.kpi-label,
.kpi-note,
.muted,
.topbar p,
.page-header p,
.card p,
.form-card p,
.report-section p {
    color: #475569;
}

/* Sidebar bottom tools */
.sidebar-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
}

.theme-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 800;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.admin-return-link {
    background: rgba(37, 99, 235, 0.18);
    color: #DBEAFE !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

/* Dark mode */
:root[data-theme="dark"] {
    --bg: #020617;
    --card: #0F172A;
    --text: #E2E8F0;
    --heading: #F8FAFC;
    --muted: #94A3B8;
    --border: #1E293B;
    --soft-border: #1E293B;
    --sidebar: #020617;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .app-main {
    background: var(--bg);
}

:root[data-theme="dark"] .topbar {
    background: rgba(15, 23, 42, 0.88);
    border-bottom-color: var(--border);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .report-section,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .auth-card {
    background: #0F172A;
    border-color: #1E293B;
    box-shadow: var(--shadow);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] .page-header h2,
:root[data-theme="dark"] .topbar h1,
:root[data-theme="dark"] .section-title,
:root[data-theme="dark"] .kpi-value,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] label {
    color: #F8FAFC;
}

:root[data-theme="dark"] p,
:root[data-theme="dark"] td,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .kpi-label,
:root[data-theme="dark"] .kpi-note,
:root[data-theme="dark"] .topbar p,
:root[data-theme="dark"] .page-header p,
:root[data-theme="dark"] .card p,
:root[data-theme="dark"] .form-card p,
:root[data-theme="dark"] .report-section p {
    color: #CBD5E1;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: #020617;
    color: #F8FAFC;
    border-color: #334155;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #64748B;
}

:root[data-theme="dark"] .action-link {
    background: #111827;
    color: #E2E8F0;
    border-color: #334155;
}

:root[data-theme="dark"] .action-link:hover {
    background: #1E293B;
    color: #FFFFFF;
}

:root[data-theme="dark"] .action-link.primary,
:root[data-theme="dark"] button,
:root[data-theme="dark"] .btn {
    background: #2563EB;
    color: #FFFFFF;
}

:root[data-theme="dark"] .notice {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
    color: #DBEAFE;
}

:root[data-theme="dark"] .warning-box {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FDE68A;
}

:root[data-theme="dark"] th {
    background: #111827;
    color: #CBD5E1;
}

:root[data-theme="dark"] .empty-state {
    background: #0F172A;
    border-color: #334155;
    color: #CBD5E1;
}

:root[data-theme="dark"] .progress-wrap {
    background: #1E293B;
}
/* Fix Back to Admin link - make it normal, not highlighted */
.admin-return-link {
    background: transparent !important;
    border: none !important;
    color: #CBD5E1 !important;
}

.admin-return-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

/* Make dark mode topbar solid, not transparent */
:root[data-theme="dark"] .topbar {
    background: #0F172A !important;
    border-bottom: 1px solid #243044 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Dark mode: make sidebar light so it does not blend with dark page */
:root[data-theme="dark"] .app-sidebar {
    background: #F8FAFC !important;
    border-right: 1px solid #E2E8F0 !important;
}

:root[data-theme="dark"] .brand {
    color: #0F172A !important;
}

:root[data-theme="dark"] .brand span {
    color: #2563EB !important;
}

:root[data-theme="dark"] .sidebar-section {
    color: #64748B !important;
}

:root[data-theme="dark"] .sidebar-link {
    color: #1E293B !important;
    background: transparent !important;
}

:root[data-theme="dark"] .sidebar-link:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

:root[data-theme="dark"] .sidebar-link.active {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

/* Back to Admin in dark mode should still not look active */
:root[data-theme="dark"] .admin-return-link {
    background: transparent !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
}

:root[data-theme="dark"] .admin-return-link:hover {
    background: #DBEAFE !important;
    border-color: #93C5FD !important;
    color: #1E3A8A !important;
}

/* Dark mode toggle button inside light sidebar */
:root[data-theme="dark"] .theme-toggle {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border: 1px solid #2563EB !important;
}

:root[data-theme="dark"] .theme-toggle:hover {
    background: #1D4ED8 !important;
}
/* =========================================================
   SELECTABLE BUTTON GROUPS
   Only the currently selected button is highlighted.
   ========================================================= */

button.traffic-period-btn {
    background: transparent !important;
    color: #475569 !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: none !important;
}

button.traffic-period-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
}

button.traffic-period-btn.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

button.traffic-period-btn.active:hover {
    background: var(--primary-dark) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-dark) !important;
}

/* Selectable traffic buttons in dark mode */
:root[data-theme="dark"] button.traffic-period-btn {
    background: transparent !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
}

:root[data-theme="dark"] button.traffic-period-btn:hover {
    background: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #64748B !important;
}

:root[data-theme="dark"] button.traffic-period-btn.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

:root[data-theme="dark"] button.traffic-period-btn.active:hover {
    background: var(--primary-dark) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-dark) !important;
}

/* =========================================================
   BUSINESS EDIT: COMPACT LOGO PREVIEW, SAFE GRID AND TOASTS
   ========================================================= */

.page-content,
.form-card,
.card,
.logo-upload-box,
.business-name-with-logo,
.business-logo-preview {
    min-width: 0;
}

#mainArea {
    align-items: start;
}

.logo-upload-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 22px;
}

.business-name-with-logo {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 100%;
}

.business-logo-preview {
    width: 180px;
    min-width: 180px;
    height: 130px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.business-logo-large {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 130px;
    object-fit: contain;
    object-position: center;
}

.business-logo-placeholder.large {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 34px;
    font-weight: 900;
}

.logo-upload-box input[type="file"] {
    max-width: 100%;
}

.form-card img,
.card img {
    max-width: 100%;
}

.app-main,
.page-content {
    overflow-x: hidden;
}

.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 9999;
    display: grid;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.toast-success {
    border-color: rgba(22, 163, 74, 0.35);
}

.toast-success .toast-icon {
    background: #DCFCE7;
    color: #166534;
}

.toast-error {
    border-color: rgba(220, 38, 38, 0.35);
}

.toast-error .toast-icon {
    background: #FEE2E2;
    color: #991B1B;
}

.toast-content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.toast-content strong {
    color: var(--heading);
}

.toast-content span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.toast-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 22px;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(148, 163, 184, 0.14) !important;
    color: var(--heading) !important;
}

:root[data-theme="dark"] .business-logo-preview {
    background: #020617;
    border-color: #334155;
}

:root[data-theme="dark"] .toast {
    background: #0F172A;
    border-color: #334155;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
    .business-name-with-logo {
        flex-direction: column;
    }

    .business-logo-preview {
        width: 150px;
        min-width: 150px;
        height: 110px;
    }

    .business-logo-large {
        max-width: 150px;
        max-height: 110px;
    }

    .toast-container {
        top: 14px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* =========================================================
   ADFORT TOASTS AND MODALS
   ========================================================= */

.adfort-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    width: min(380px, calc(100vw - 32px));
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
}

.adfort-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.adfort-toast.success {
    border-color: #86EFAC;
}

.adfort-toast.error {
    border-color: #FCA5A5;
}

.adfort-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 900;
    background: #DCFCE7;
    color: #166534;
}

.adfort-toast.error .adfort-toast-icon {
    background: #FEE2E2;
    color: #991B1B;
}

.adfort-toast p {
    margin: 4px 0 0;
}

.adfort-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adfort-modal.show {
    display: flex;
}

.adfort-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(4px);
}

.adfort-modal-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
    padding: 24px;
}

.adfort-modal-card h2 {
    margin-top: 0;
}

.business-status-summary {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.06);
    margin-top: 14px;
}

.business-status-summary p {
    margin: 0 0 10px;
}

.business-status-summary p:last-child {
    margin-bottom: 0;
}

:root[data-theme="dark"] .adfort-toast,
:root[data-theme="dark"] .adfort-modal-card {
    background: #0F172A;
    border-color: #334155;
}

:root[data-theme="dark"] .business-status-summary {
    background: rgba(148, 163, 184, 0.08);
    border-color: #334155;
}

@media (max-width: 640px) {
    .adfort-toast {
        top: 16px;
        right: 16px;
    }
}