:root {
    --bg: #f5f6f8;
    --surface: #fff;
    --text: #17181a;
    --muted: #70757d;
    --border: #e4e6e9;
    --accent: #111;
    --success: #067647;
    --danger: #b42318;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner {
    max-width: 1180px; margin: 0 auto; min-height: 72px; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-name { color: var(--muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
h1 { margin: 0 0 8px; font-size: 36px; line-height: 1.1; letter-spacing: -.04em; }
h2 { margin: 0 0 8px; font-size: 20px; }
.muted { color: var(--muted); margin: 0; }

.page-heading, .public-heading {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0 16px; border-radius: 10px;
    border: 1px solid var(--border); font-weight: 650; cursor: pointer;
}
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.ghost { background: var(--surface); }

.upload-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; margin-bottom: 40px;
}

.dropzone {
    margin-top: 20px; min-height: 210px; border: 2px dashed #cdd1d6;
    border-radius: 14px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; transition: .15s ease; background: #fafafa;
}
.dropzone:hover, .dropzone.dragover { border-color: #777; background: #f1f2f4; }
.dropzone input { display: none; }
.drop-icon { font-size: 34px; line-height: 1; color: #777; }
.dropzone span, .dropzone small { color: var(--muted); }
.dropzone strong { font-size: 17px; }

.file-list { display: grid; gap: 8px; margin: 14px 0; }
.file-row {
    display: flex; justify-content: space-between; gap: 15px;
    padding: 10px 12px; background: #f7f7f8; border-radius: 8px;
}
.file-row small { color: var(--muted); }
.remove-file { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.remove-file:hover { color: var(--danger); }

.upload-card form > .button { margin-top: 8px; }

.alert {
    margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
}
.alert.success { background: #ecfdf3; color: var(--success); }

.alert.subscription-success {
    margin: 0 0 32px;
    padding: 28px 32px;
    border: 2px solid #58a864;
    border-radius: 16px;
    background: #ecfdf3;
    color: #176534;
    box-shadow: 0 4px 14px rgba(48, 169, 90, 0.12);
}

.subscription-success-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.subscription-success-text {
    font-size: 16px;
    line-height: 1.5;
}


.alert.error { background: #fef3f2; color: var(--danger); }

.section-heading { margin: 0 0 18px; }

.empty-state {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 52px 28px; text-align: center;
}

.ad-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 42px 40px;
}

.ad-card {
    width: var(--ad-w, fit-content);
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    flex: 0 0 auto;
}

.ad-preview {
    width: var(--ad-w, auto);
    height: var(--ad-h, auto);
    max-width: none;
    background: transparent;
    display: block;
    overflow: visible;
}
.ad-preview img,
.ad-preview iframe,
.ad-preview video {
    display: block;
    width: var(--ad-w, auto);
    height: var(--ad-h, auto);
    min-width: var(--ad-w, 0);
    min-height: var(--ad-h, 0);
    max-width: none;
    max-height: none;
    object-fit: fill;
    border: 0;
    background: #fff;
    overflow: hidden;
}

.ad-card-info {
    padding: 12px 0 0;
    border: 0;
}
.ad-card-info span {
    display: block;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
}

@media (max-width: 650px) {
    .page-heading, .public-heading { align-items: stretch; flex-direction: column; }
    h1 { font-size: 30px; }
    .container { padding: 32px 16px; }
    .ad-grid { gap: 32px; }
}

/* Public preview: keep the same natural wrapping behavior as the manager.
   Never turn the entire page into a horizontal strip. */
   .public-page { overflow-x: hidden; }
   .public-page .container { max-width: 1180px; }
   .public-page .ad-grid { width: 100%; max-width: 100%; }

/* V1.6 — piece actions */
.ad-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ad-delete-form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.icon-button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 7px;
    flex: 0 0 auto;
}

.icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delete-button {
    color: #8a8f98;
}

.delete-button:hover {
    color: #c62828;
    background: #fff1f1;
}

.reload-button {
    color: #70757d;
}

.reload-button:hover {
    color: #111;
    background: #eceef1;
}

.public-page .ad-card-info {
    justify-content: space-between;
}

/* V1.8 — Home: campaign cards */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.campaign-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.075);
    border-color: #d9dce0;
}

.campaign-card-body {
    padding: 26px 26px 24px;
}

.campaign-card-body h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.campaign-card .client {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 17px;
}

.campaign-card .meta {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.campaign-card-actions {
    display: flex;
    gap: 10px;
    padding: 0 26px 26px;
    border-top: 0;
}

.campaign-card-actions .button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 16px;
}

@media (max-width: 650px) {
    .campaign-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .campaign-card-body {
        padding: 22px;
    }

    .campaign-card-actions {
        padding: 0 22px 22px;
    }
}

/* V1.9 — account header / settings */
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-large { width: 76px; height: 76px; font-size: 22px; }

.avatar-notification-wrap {
    position: relative;
    display: inline-flex;
    width: max-content;
    height: max-content;
}

.avatar-notification-badge {
    position: absolute;
    left: -4px;
    bottom: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #d93025;
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    cursor: pointer;
    user-select: none;
}

.settings-page { padding-top: 44px; }
.settings-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.settings-tabs {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    display: grid;
    gap: 4px;
}
.settings-tab {
    padding: 13px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
}
.settings-tab:hover { background: #f4f5f6; color: var(--text); }
.settings-tab.active { background: #111; color: #fff; }
.settings-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    min-height: 440px;
}
.settings-title { margin-bottom: 28px; }
.settings-title h2 { font-size: 26px; margin-bottom: 5px; letter-spacing: -.03em; }
.settings-form { display: grid; gap: 18px; }
.settings-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.settings-form input {
    width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 10px;
    padding: 0 13px; font: inherit; background: #fff; color: var(--text);
}
.settings-form input:focus { outline: 2px solid #ddd; border-color: #aaa; }
.settings-form small { display: block; color: var(--muted); margin-top: 7px; }
.settings-form-narrow { max-width: 520px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.profile-photo-row { display: flex; align-items: center; gap: 18px; padding-bottom: 8px; }
.profile-photo-row > div { flex: 1; }
.plan-note { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 650; }
.limit-warning { margin: 0; color: var(--danger); font-size: 14px; font-weight: 700; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan-card {
    border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: #fff;
}
.plan-card.current { border: 2px solid #111; padding: 23px; }
.plan-card.paid-plan { background: #fafafa; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
.plan-badge { background: #eef0f2; color: #555; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plan-badge.pro { background: #111; color: #fff; }
.plan-price { margin: 18px 0; font-size: 27px; font-weight: 850; letter-spacing: -.04em; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 650; }
.plan-card ul { margin: 0 0 22px; padding-left: 19px; color: #45484d; line-height: 1.9; }
.site-ad {
    min-height: 90px; margin: 34px auto 0; max-width: 970px; border: 1px dashed #d6d8dc;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #a0a4aa; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.45);
}

@media (max-width: 820px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-tabs { grid-template-columns: repeat(3, 1fr); }
    .settings-tab { text-align: center; font-size: 13px; }
    .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    .topbar-actions { gap: 7px; }
    .topbar-actions .user-name { display: none; }
    .topbar-actions .button { padding: 0 10px; font-size: 13px; }
    .settings-panel { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .settings-tabs { grid-template-columns: 1fr; }
}

/* V1.10 — MASTER / user management */
.master-note {
    margin: -8px 0 24px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f2f3f5;
    color: #17181a;
    font-size: 13px;
    font-weight: 800;
}

.settings-tabs-master {
    grid-template-rows: repeat(4, auto);
}

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

.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border: 1px solid #e3e5e8;
    border-radius: 14px;
    background: #fff;
}

.admin-user-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 13px;
}

.admin-user-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.admin-user-info strong {
    font-size: 15px;
    font-weight: 850;
    color: #111;
}

.admin-user-info span {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-plan {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.plan-switch-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.plan-switch-label {
    font-size: 12px;
    font-weight: 800;
    color: #8a8d92;
}

.plan-switch-label.active {
    color: #111;
}

.plan-switch {
    position: relative;
    width: 42px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9ccd0;
    cursor: pointer;
    transition: background .15s ease;
}

.plan-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .15s ease;
}

.plan-switch.on {
    background: #111;
}

.plan-switch.on span {
    transform: translateX(18px);
}

.admin-plan-status {
    min-width: 38px;
    font-size: 12px;
    font-weight: 800;
}

.admin-plan-status.paid { color: #111; }
.admin-plan-status.free { color: #8a8d92; }

@media (max-width: 700px) {
    .admin-user-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-plan {
        width: 100%;
        justify-content: flex-start;
    }
}
/* V1.11 — account/auth and user management */
.account-head { display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.header-avatar { width:32px; height:32px; border-radius:50%; font-size:11px; }
.header-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0 14px; color:#999; }
.auth-divider:before,.auth-divider:after { content:""; height:1px; background:var(--border); flex:1; }
.auth-divider span { font-size:12px; }
.google-placeholder { width:100%; background:#fff; color:#444; gap:10px; position:relative; }
.google-placeholder:disabled { opacity:1; cursor:default; }
.google-g { font-weight:800; font-size:18px; }
.google-placeholder small { position:absolute; right:12px; color:#999; font-size:11px; }
.auth-register { text-align:center; margin:20px 0 0; color:var(--muted); font-size:14px; }
.auth-register a { font-weight:750; color:#111; }
.optional { color:#999; font-weight:400; font-size:12px; }
.delete-user-form { margin:0; }
.admin-user-row { gap:18px; }
.admin-user-plan { display:flex; align-items:center; gap:10px; }
@media (max-width:760px) { .topbar-actions .user-name { display:none; } .topbar-actions { gap:6px; } .admin-user-row { align-items:flex-start; flex-direction:column; } .admin-user-plan { width:100%; justify-content:flex-start; flex-wrap:wrap; } }

/* V1.15 — login page polish */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #f5f6f8;
}
.auth-card {
    width: min(100%, 460px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20, 25, 30, .08);
    padding: 38px 40px 34px;
}
.auth-card .brand {
    margin-bottom: 30px;
    font-size: 24px;
}
.auth-card h1 {
    font-size: 38px;
    margin-bottom: 7px;
}
.auth-card > .muted {
    font-size: 16px;
    margin-bottom: 28px;
}
.auth-card form label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
}
.auth-card form input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    margin: 0 0 18px;
    border: 1px solid #d9dde2;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card form input:focus {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(17,17,17,.06);
}
.auth-submit {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    margin-top: 2px;
}
.auth-card .alert {
    margin-bottom: 20px;
}
.auth-divider {
    margin: 24px 0 14px;
}
.google-placeholder {
    min-height: 48px;
    border-radius: 10px;
}
.auth-register {
    margin-top: 22px;
    font-size: 14px;
}
@media (max-width: 520px) {
    .auth-page { padding: 18px 14px; }
    .auth-card { padding: 30px 24px 26px; border-radius: 15px; }
    .auth-card h1 { font-size: 34px; }
}
.g_id_signin {
    display: flex !important;
    justify-content: center !important;
}


/* Dashboard — campaign card metadata */
.campaign-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.campaign-card-meta .meta,
.campaign-card-meta .updated {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
}

.campaign-card-meta .meta {
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}

.campaign-card-meta .updated {
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.campaign-meta-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campaign-card-meta .meta .campaign-meta-icon {
    color: #26364f;
}

.campaign-card-meta .updated .campaign-meta-icon {
    color: #56657a;
}

/* Preview de logos na área de Branding */
.branding-logo-preview {
    width: 180px;
    height: 120px;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.branding-logo-preview img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}


/* Campo de mensagem do suporte */
.settings-form textarea {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.settings-form textarea:focus {
    outline: 2px solid #ddd;
    border-color: #aaa;
}



/* SUPPORT TICKET DETAIL */

.support-ticket-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.support-ticket-header > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-ticket-header > div strong,
.support-ticket-header > div span {
    display: inline;
}



.support-ticket-detail {
    width: 100%;
}

.support-reply-box {
    width: 100%;
    margin-top: 28px;
}

.support-reply-box textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.support-reply-box textarea:focus {
    outline: 2px solid #ddd;
    border-color: #aaa;
}

.support-reply-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* SUPPORT ADMIN */

.support-admin-list {
    margin-top: 24px;
}

.support-admin-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.support-admin-table-header,
.support-admin-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(200px, 1fr) 130px 180px;
    align-items: center;
    column-gap: 20px;
    padding: 16px 20px;
}

.support-admin-table-header {
    background: #f7f8fa;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.support-admin-row {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background .15s ease;
}

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

.support-admin-row:hover {
    background: #fafafa;
}

.support-admin-subject,
.support-admin-user {
    min-width: 0;
}

.support-admin-subject strong,
.support-admin-user strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.support-admin-subject span,
.support-admin-user span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-admin-date {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.support-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.support-status-open {
    background: #fff3cd;
    color: #856404;
}

.support-status-waiting_user {
    background: #e8f1ff;
    color: #315b9a;
}

.support-status-resolved {
    background: #e8f5e9;
    color: #34723b;
}

@media (max-width: 850px) {
    .support-admin-table-header {
        display: none;
    }

    .support-admin-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .support-admin-date {
        font-size: 12px;
    }
}

/* NOTIFICATION CENTER */

.notification-center-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 76px 28px 28px;
    box-sizing: border-box;
}

.notification-center-modal.open {
    display: flex;
}

.notification-center-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.notification-center-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 104px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.notification-center-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.notification-center-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.02em;
}

.notification-center-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f5;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.notification-center-close:hover {
    background: #e9eaec;
}

.notification-center-list {
    overflow-y: auto;
}

.notification-center-loading,
.notification-center-empty {
    padding: 28px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.notification-center-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.notification-center-item:hover {
    background: #f8f9fa;
}

.notification-center-item:disabled {
    opacity: .65;
    cursor: wait;
}

.notification-center-item-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: #d93025;
}

.notification-center-item-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.notification-center-item-content strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.notification-center-item-content span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.notification-center-item-content small {
    color: #8a8f98;
    font-size: 11px;
}

.notification-center-footer {
    border-top: 1px solid var(--border);
}

.notification-center-all {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.notification-center-all:hover {
    background: #f8f9fa;
}

@media (max-width: 600px) {
    .notification-center-modal {
        padding: 68px 12px 12px;
    }

    .notification-center-dialog {
        width: 100%;
        max-height: calc(100vh - 80px);
    }
}


/* ALERTS PAGE */

.alerts-page-list {
    width: 100%;
    max-width: 900px;
}

.alerts-page-card {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.alerts-page-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.alerts-page-item:last-child {
    border-bottom: 0;
}

.alerts-page-item:hover {
    background: #f8f9fa;
}

.alerts-page-item:disabled {
    opacity: .6;
    cursor: wait;
}

.alerts-page-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: #d93025;
}

.alerts-page-content {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.alerts-page-content strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}

.alerts-page-content span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.alerts-page-content small {
    margin-top: 2px;
    color: #8a8f98;
    font-size: 12px;
}

