:root {
    --ads-navy: #172554;
    --ads-navy-dark: #0f172a;
    --ads-blue: #2563eb;
    --ads-blue-soft: #eff6ff;
    --ads-cyan: #38bdf8;
    --ads-bg: #f4f7fb;
    --ads-surface: #ffffff;
    --ads-border: #dbe3ef;
    --ads-text: #1e293b;
    --ads-muted: #64748b;
    --ads-danger: #b91c1c;
    --ads-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.advertiser-app {
    min-width: 980px;
    color: var(--ads-text);
    background: var(--ads-bg);
    font-family: Mukta, "Segoe UI", Arial, sans-serif;
}

.advertiser-shell {
    width: 100%;
    min-height: calc(100vh - 42px);
    border: 0;
    background: var(--ads-bg);
}

.advertiser-sidebar {
    width: 220px !important;
    padding: 20px 14px;
    background: linear-gradient(180deg, var(--ads-navy-dark), var(--ads-navy)) !important;
    border: 0 !important;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.08);
}

.advertiser-brand {
    display: block;
    margin: -4px 0 22px;
    padding: 10px 12px !important;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.advertiser-brand img {
    display: block;
    width: 100% !important;
    max-width: 184px;
    height: 72px !important;
    margin: 0 auto;
    object-fit: contain;
}

.advertiser-user {
    width: calc(100% - 8px) !important;
    margin: 0 4px 18px !important;
    border-collapse: separate;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
}

.advertiser-user td {
    padding: 7px 4px;
}

.advertiser-user span {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.advertiser-app .nav {
    margin: 0;
    padding: 0;
}

.advertiser-app .nav li {
    margin: 6px 0;
    padding: 0;
}

.advertiser-app .nav li input.LoginButton {
    width: 100% !important;
    height: 44px;
    padding: 0 15px;
    color: #cbd5e1;
    text-align: left;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.advertiser-app .nav li {
    position: relative;
}

.advertiser-app .nav li::before {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 14px;
    width: 18px;
    color: #94a3b8;
    font: 700 13px/18px "Segoe UI", Arial, sans-serif;
    text-align: center;
    pointer-events: none;
}

.advertiser-app .nav li:nth-child(1)::before { content: "▦"; }
.advertiser-app .nav li:nth-child(2)::before { content: "↗"; }
.advertiser-app .nav li:nth-child(3)::before { content: "◎"; }
.advertiser-app .nav li:nth-child(4)::before { content: "●"; }

.advertiser-app .nav li input.LoginButton {
    padding-left: 42px;
}

.advertiser-app .nav li:has(input.Selected)::before,
.advertiser-app .nav li:hover::before {
    color: #fff;
}

.advertiser-app .nav li input.LoginButton:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: translateX(2px);
}

.advertiser-app .nav li input.Selected {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.28);
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.advertiser-topbar {
    height: 76px;
    padding: 0 26px !important;
    background: var(--ads-surface) !important;
    border-bottom: 1px solid var(--ads-border);
}

.advertiser-page-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.advertiser-page-kicker,
.advertiser-form-kicker {
    display: block;
    color: var(--ads-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.advertiser-topbar-title {
    color: var(--ads-navy-dark);
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
}

.advertiser-logout {
    width: 130px;
    padding-right: 24px;
    color: var(--ads-muted);
    font-size: 13px;
    font-weight: 600;
    background: var(--ads-surface) !important;
}

.advertiser-logout a {
    display: inline-flex;
    margin-left: 8px;
    padding: 8px;
    vertical-align: middle;
    border-radius: 9px;
    background: var(--ads-blue-soft);
}

.advertiser-logout-label {
    vertical-align: middle;
}

.advertiser-logout a:hover {
    background: #dbeafe;
}

.advertiser-content-cell {
    padding: 22px 24px 30px;
    background: var(--ads-bg);
}

.advertiser-app #ctl00_Panel2 {
    overflow-x: auto;
    border: 0;
    border-radius: 14px;
    background: var(--ads-surface);
    box-shadow: var(--ads-shadow);
}

.advertiser-app .main {
    box-sizing: border-box;
    width: 100%;
    min-height: 520px;
    height: auto;
    padding: 20px;
    border-radius: 14px;
}

.advertiser-app #searchRow > td {
    padding-bottom: 16px;
}

.advertiser-app input.LoginButton {
    min-height: 36px;
    padding: 0 16px;
    color: var(--ads-navy);
    font-weight: 600;
    letter-spacing: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all .16s ease;
}

.advertiser-app input.LoginButton:hover {
    color: #fff;
    border-color: var(--ads-blue);
    background: var(--ads-blue);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.advertiser-app input.LoginTextBox,
.advertiser-app input.searchComp,
.advertiser-app select.searchComp,
.advertiser-app select.Medium,
.advertiser-app textarea {
    box-sizing: border-box;
    min-height: 36px;
    padding: 7px 10px;
    color: var(--ads-text);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.advertiser-app input.LoginTextBox:focus,
.advertiser-app input.searchComp:focus,
.advertiser-app select.searchComp:focus,
.advertiser-app select.Medium:focus,
.advertiser-app textarea:focus {
    outline: 0;
    border-color: var(--ads-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.advertiser-app .LoginLabel,
.advertiser-app .LoginLabelOverview {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.advertiser-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 22px 24px;
    color: #fff;
    border-radius: 14px;
    background:
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .3), transparent 28%),
        linear-gradient(135deg, #172554, #1d4ed8);
    box-shadow: 0 16px 32px rgba(30, 64, 175, .2);
}

.advertiser-dashboard-hero .advertiser-page-kicker {
    color: #7dd3fc;
}

.advertiser-dashboard-hero h2 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
}

.advertiser-dashboard-hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.advertiser-hero-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.advertiser-app .LoginLabelOverview {
    padding: 10px 14px;
    border: 1px solid var(--ads-border);
    background: #f8fafc;
}

.advertiser-app canvas {
    max-width: 100%;
}

.advertiser-app [id^="DashboardTerminalsChart"] {
    border: 1px solid var(--ads-border) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.advertiser-app .customGrid {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ads-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    background: #fff;
}

.advertiser-app .customGrid th {
    padding: 12px 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ads-border);
    background: #f8fafc;
}

.advertiser-app .customGrid td {
    padding: 11px 10px;
    color: #334155;
    border-bottom: 1px solid #edf2f7;
}

.advertiser-app .customGrid tr:last-child td {
    border-bottom: 0;
}

.advertiser-app .gridCSS,
.advertiser-app .gridAlternateCSS {
    background: #fff;
}

.advertiser-app .gridCSS:hover,
.advertiser-app .gridAlternateCSS:hover {
    background: var(--ads-blue-soft);
}

.advertiser-app .campaign-grid-wrap {
    padding: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
}

.advertiser-app .campaign-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px !important;
    margin: 2px;
    padding: 0 10px !important;
    color: #334155;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    border: 1px solid var(--ads-border) !important;
    border-radius: 7px !important;
    background: #fff !important;
    transition: all .16s ease;
}

.advertiser-app .campaign-action:hover {
    color: var(--ads-blue);
    border-color: #93c5fd !important;
    background: var(--ads-blue-soft) !important;
}

.campaign-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.campaign-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 118px;
    padding: 25px 28px;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background:
        radial-gradient(circle at 84% 12%, rgba(56, 189, 248, .34), transparent 30%),
        linear-gradient(125deg, #0f172a 0%, #172554 50%, #2563eb 100%);
    box-shadow: 0 18px 38px rgba(30, 64, 175, .2);
}

.campaign-hero::before {
    position: absolute;
    right: 80px;
    bottom: -125px;
    width: 260px;
    height: 260px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.campaign-hero .advertiser-page-kicker {
    color: #7dd3fc;
}

.campaign-hero h2 {
    margin: 5px 0 6px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.campaign-hero p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.5;
}

.campaign-hero-visual {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 88px;
    height: 78px;
}

.campaign-hero-page {
    position: absolute;
    top: 3px;
    left: 9px;
    box-sizing: border-box;
    width: 52px;
    height: 68px;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 8px;
    background:
        linear-gradient(#7dd3fc, #7dd3fc) 10px 15px / 28px 5px no-repeat,
        linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)) 10px 28px / 32px 4px no-repeat,
        linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 10px 39px / 24px 4px no-repeat,
        rgba(255, 255, 255, .1);
    transform: rotate(-7deg);
}

.campaign-hero-signal {
    position: absolute;
    top: 20px;
    right: 2px;
    width: 26px;
    height: 34px;
    border-top: 4px solid #7dd3fc;
    border-right: 4px solid #7dd3fc;
    border-bottom: 4px solid #7dd3fc;
    border-radius: 0 30px 30px 0;
}

.campaign-hero-signal::before {
    position: absolute;
    top: 7px;
    left: -4px;
    width: 14px;
    height: 14px;
    content: "";
    border-top: 4px solid #fff;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    border-radius: 0 20px 20px 0;
}

.campaign-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.campaign-info-strip > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid var(--ads-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .04);
}

.campaign-info-strip > div > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-info-strip strong {
    color: #1e293b;
    font-size: 13px;
}

.campaign-info-strip small {
    color: var(--ads-muted);
    font-size: 11px;
}

.campaign-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 17px;
    font-weight: 800;
    border-radius: 10px;
}

.campaign-info-blue { color: #1d4ed8; background: #dbeafe; }
.campaign-info-cyan { color: #0369a1; background: #e0f2fe; }
.campaign-info-violet { color: #6d28d9; background: #ede9fe; }

.campaign-list-card {
    overflow: hidden;
    border: 1px solid var(--ads-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.campaign-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--ads-border);
}

.campaign-list-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-list-heading strong {
    color: var(--ads-navy-dark);
    font-size: 17px;
}

.campaign-list-heading > span {
    color: var(--ads-muted);
    font-size: 12px;
}

.advertiser-app .FormBody {
    max-width: 760px;
    padding: 24px;
    border: 1px solid var(--ads-border);
    border-radius: 12px;
    background: #fff;
}

.advertiser-app .FormBody td {
    padding: 7px 5px;
}

.campaign-editor {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
}

.campaign-editor-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    padding: 23px 27px;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background:
        radial-gradient(circle at 87% 15%, rgba(56, 189, 248, .3), transparent 28%),
        linear-gradient(125deg, #0f172a, #172554 52%, #2563eb);
    box-shadow: 0 17px 36px rgba(30, 64, 175, .18);
}

.campaign-editor-hero::after {
    position: absolute;
    right: 92px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.campaign-editor-hero .advertiser-page-kicker {
    color: #7dd3fc;
}

.campaign-editor-hero h2 {
    margin: 5px 0 5px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
}

.campaign-editor-hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.campaign-editor-hero-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 19px;
    background:
        linear-gradient(#7dd3fc, #7dd3fc) 18px 18px / 32px 5px no-repeat,
        linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75)) 18px 30px / 25px 4px no-repeat,
        linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 18px 41px / 29px 4px no-repeat,
        rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.campaign-editor-card {
    overflow: visible;
    border: 1px solid var(--ads-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .07);
}

.campaign-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 24px;
    border-bottom: 1px solid var(--ads-border);
}

.campaign-editor-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-editor-heading strong {
    color: var(--ads-navy-dark);
    font-size: 18px;
}

.campaign-editor-heading > span {
    color: var(--ads-muted);
    font-size: 12px;
}

.advertiser-app .campaign-editor-body {
    box-sizing: border-box;
    max-width: none;
    padding: 0 24px 22px;
    border: 0;
    border-radius: 0;
}

.campaign-editor-table {
    width: 100%;
    border-collapse: collapse;
}

.advertiser-app .campaign-editor-table td {
    padding: 9px 8px;
    vertical-align: top;
}

.advertiser-app .campaign-editor-table td:first-child {
    box-sizing: border-box;
    width: 210px;
    padding-top: 18px;
}

.campaign-editor-table .LoginLabel {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.campaign-editor-table .LoginLabel b {
    color: #dc2626;
}

.campaign-editor-section td {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto !important;
    margin-top: 7px;
    padding: 20px 8px 10px !important;
    border-bottom: 1px solid #e8eef6;
}

.campaign-editor-section:first-child td {
    padding-top: 18px !important;
}

.campaign-editor-section td > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-editor-section strong {
    color: var(--ads-navy-dark);
    font-size: 14px;
}

.campaign-editor-section small {
    color: var(--ads-muted);
    font-size: 11px;
}

.campaign-section-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .2);
}

.advertiser-app .campaign-editor-input {
    box-sizing: border-box;
    width: min(100%, 610px) !important;
    height: 43px !important;
    padding: 8px 12px;
    font-size: 14px !important;
    border-radius: 9px;
    background-color: #f8fafc;
}

.advertiser-app select.campaign-editor-input {
    padding-right: 34px;
}

.campaign-validator {
    display: inline-block;
    margin-left: 7px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
}

.campaign-selected-site {
    box-sizing: border-box;
    width: min(100%, 610px);
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #eff6ff);
}

.campaign-selected-site-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 15px;
    border-bottom: 1px solid #dbeafe;
}

.campaign-selected-site-title > span:first-child {
    color: var(--ads-blue);
    font-size: 18px;
}

.campaign-selected-site-title strong {
    color: var(--ads-navy-dark);
    font-size: 14px;
}

.campaign-selected-site-title small {
    margin-left: auto;
    color: var(--ads-muted);
    font-size: 12px;
}

.campaign-selected-site-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #dbeafe;
}

.campaign-selected-site-stats > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
    background: #fff;
}

.campaign-selected-site-stats small {
    color: var(--ads-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.campaign-selected-site-stats b {
    color: #334155;
    font-size: 13px;
}

.campaign-number-field {
    position: relative;
    width: min(100%, 610px);
}

.campaign-number-field .campaign-editor-input {
    padding-right: 70px;
}

.campaign-number-field > span {
    position: absolute;
    top: 8px;
    right: 9px;
    padding: 5px 9px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: #e2e8f0;
    pointer-events: none;
}

.campaign-hour-field {
    max-width: 240px;
}

.campaign-upload {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: min(100%, 610px);
    min-height: 76px;
    gap: 12px;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px dashed #93c5fd;
    border-radius: 11px;
    background: #f8fbff;
}

.campaign-upload-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: var(--ads-blue);
    font-size: 22px;
    font-weight: 800;
    border-radius: 10px;
    background: #dbeafe;
}

.campaign-upload > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-upload strong {
    color: #334155;
    font-size: 13px;
}

.campaign-upload small {
    color: var(--ads-muted);
    font-size: 11px;
}

.campaign-upload-control {
    margin-left: auto;
}

.campaign-upload-progress {
    display: block;
    width: 160px !important;
    height: 6px !important;
    margin-top: 7px;
    border-radius: 999px;
}

.campaign-active-toggle {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(100%, 610px);
    gap: 5px;
    padding: 13px 15px;
    cursor: pointer;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
}

.campaign-active-toggle > span {
    padding-left: 25px;
    color: #64748b;
    font-size: 11px;
}

.campaign-active-toggle input {
    accent-color: #16a34a;
}

.campaign-active-toggle label {
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.campaign-editor-error {
    color: #b91c1c;
    font-size: 12px;
}

.campaign-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding: 18px 4px 2px;
    border-top: 1px solid var(--ads-border);
}

.campaign-editor-actions > span {
    color: var(--ads-muted);
    font-size: 12px;
}

.campaign-editor-actions > div {
    display: flex;
    gap: 10px;
}

.advertiser-app input.campaign-save-button,
.advertiser-app input.campaign-cancel-button {
    min-width: 135px;
    height: 40px;
}

.advertiser-app input.campaign-save-button {
    color: #fff;
    border-color: var(--ads-blue);
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}

.campaign-site-picker {
    max-width: 610px;
    width: 100%;
}

.advertiser-app input.campaign-site-selected {
    max-width: 610px;
    width: 100% !important;
}

.campaign-site-picker {
    position: relative;
}

.campaign-site-picker-label {
    display: block;
    margin: 0 0 5px;
    color: var(--ads-navy-dark);
    font-size: 13px;
    font-weight: 700;
}

.advertiser-app input.campaign-site-selected {
    width: 500px !important;
    height: 46px;
    padding: 8px 42px 8px 13px;
    color: var(--ads-navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-color: #93c5fd;
    background:
        linear-gradient(45deg, transparent 50%, var(--ads-blue) 50%) calc(100% - 19px) 19px / 6px 6px no-repeat,
        linear-gradient(135deg, var(--ads-blue) 50%, transparent 50%) calc(100% - 13px) 19px / 6px 6px no-repeat,
        #f8fbff;
}

.advertiser-app input.campaign-site-selected:hover {
    border-color: var(--ads-blue);
    background-color: var(--ads-blue-soft);
}

.campaign-site-picker-help {
    display: block;
    margin-top: 5px;
    color: var(--ads-muted);
    font-size: 12px;
}

.campaign-site-dropdown {
    box-sizing: border-box;
    width: 650px !important;
    height: 390px !important;
    margin-top: 6px;
    overflow: hidden !important;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(15, 23, 42, .2);
}

.campaign-site-dropdown-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ads-border);
    background: #f8fafc;
}

.campaign-site-dropdown-header > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.campaign-site-dropdown-header strong {
    color: var(--ads-navy-dark);
    font-size: 15px;
}

.campaign-site-dropdown-header span {
    color: var(--ads-muted);
    font-size: 11px;
}

.campaign-site-search-wrap {
    position: relative;
    display: flex;
    flex: 1;
    max-width: 400px;
}

.campaign-site-search-icon {
    position: absolute;
    top: 8px;
    left: 10px;
    color: var(--ads-blue) !important;
    font-size: 18px !important;
    pointer-events: none;
}

.campaign-site-search-wrap input {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 7px 55px 7px 32px;
    color: var(--ads-text);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.campaign-site-search-wrap input:focus {
    outline: 0;
    border-color: var(--ads-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.campaign-site-search-wrap button {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 26px;
    padding: 0 8px;
    color: var(--ads-blue);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: 5px;
    background: var(--ads-blue-soft);
}

.campaign-site-grid-wrap {
    height: 322px;
    overflow: auto;
}

.campaign-site-grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.campaign-site-grid th {
    position: sticky;
    z-index: 1;
    top: 0;
    padding: 10px 11px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ads-border);
    background: #eef4fb;
}

.campaign-site-grid td {
    padding: 11px;
    color: #334155;
    font-size: 13px;
    border-bottom: 1px solid #edf2f7;
}

.campaign-site-grid tr[role="option"] {
    cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease;
}

.campaign-site-grid tr[role="option"]:hover,
.campaign-site-grid tr[role="option"]:focus {
    outline: 0;
    background: var(--ads-blue-soft);
    box-shadow: inset 3px 0 0 var(--ads-blue);
}

.campaign-site-grid tr[role="option"] td:nth-child(2) {
    color: var(--ads-navy);
    font-weight: 700;
}

.advertiser-app #ctl00_MasterBody_Panel1 {
    box-sizing: border-box;
    height: auto !important;
    max-width: 620px;
    padding: 24px;
    border: 1px solid var(--ads-border);
    border-radius: 12px;
    background: #fff;
}

.profile-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
}

.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    padding: 24px 28px;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background:
        radial-gradient(circle at 84% 15%, rgba(56, 189, 248, .3), transparent 28%),
        linear-gradient(125deg, #0f172a 0%, #172554 52%, #2563eb 100%);
    box-shadow: 0 18px 38px rgba(30, 64, 175, .2);
}

.profile-hero::after {
    position: absolute;
    right: 115px;
    bottom: -105px;
    width: 225px;
    height: 225px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.profile-hero .advertiser-page-kicker {
    color: #7dd3fc;
}

.profile-hero h2 {
    margin: 5px 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.profile-hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.profile-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 245px;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
}

.profile-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #172554;
    font-size: 14px;
    font-weight: 900;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff, #bae6fd);
}

.profile-identity > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.profile-identity strong {
    max-width: 190px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-identity small {
    color: #bfdbfe;
    font-size: 11px;
}

.advertiser-app #ctl00_MasterBody_Panel1.profile-card {
    max-width: none;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .07);
}

.profile-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 24px;
    border-bottom: 1px solid var(--ads-border);
}

.profile-card-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-card-heading strong {
    color: var(--ads-navy-dark);
    font-size: 18px;
}

.profile-card-heading > span {
    color: var(--ads-muted);
    font-size: 12px;
}

.profile-form {
    padding: 4px 24px 24px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 15px;
    padding: 20px 0 11px;
    border-bottom: 1px solid #e8eef6;
}

.profile-section > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-section strong {
    color: var(--ads-navy-dark);
    font-size: 14px;
}

.profile-section small {
    color: var(--ads-muted);
    font-size: 11px;
}

.profile-section-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: var(--ads-blue);
    font-size: 15px;
    font-weight: 800;
    border-radius: 9px;
    background: var(--ads-blue-soft);
}

.profile-field {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 6px;
    margin-bottom: 14px;
}

.profile-field > span:first-child {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.profile-field > small {
    color: var(--ads-muted);
    font-size: 11px;
}

.profile-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-input-wrap {
    position: relative;
    display: block;
}

.profile-input-wrap::before {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 14px;
    width: 15px;
    height: 15px;
    color: #64748b;
    font: 700 13px/15px "Segoe UI", Arial, sans-serif;
    text-align: center;
    pointer-events: none;
}

.profile-input-email::before { content: "@"; }
.profile-input-password::before { content: "\2022\2022"; letter-spacing: -2px; }
.profile-input-company::before { content: "#"; }
.profile-input-phone::before { content: "+"; }
.profile-input-address::before { content: "\25C6"; font-size: 10px; }

.advertiser-app input.profile-input {
    box-sizing: border-box;
    width: 100% !important;
    height: 44px;
    padding: 8px 12px 8px 41px;
    font-size: 14px !important;
    border-radius: 9px;
    background: #f8fafc;
}

.advertiser-app input.profile-input:disabled {
    color: #64748b;
    border-color: #e2e8f0;
    background: #f1f5f9;
    opacity: 1;
}

.profile-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #bae6fd;
    border-radius: 11px;
    background: #f0f9ff;
}

.profile-security-note > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-security-note strong {
    color: #075985;
    font-size: 12px;
}

.profile-security-note small {
    color: #64748b;
    font-size: 11px;
}

.profile-security-icon {
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 29px;
    height: 25px;
    margin-top: 6px;
    border: 2px solid #0284c7;
    border-radius: 6px;
}

.profile-security-icon::before {
    position: absolute;
    top: -12px;
    left: 5px;
    box-sizing: border-box;
    width: 15px;
    height: 14px;
    content: "";
    border: 2px solid #0284c7;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ads-border);
}

.profile-actions > span {
    color: var(--ads-muted);
    font-size: 12px;
}

.profile-actions > div {
    display: flex;
    gap: 10px;
}

.advertiser-app input.profile-save-button,
.advertiser-app input.profile-cancel-button {
    min-width: 135px;
    height: 40px;
}

.advertiser-app input.profile-save-button {
    color: #fff;
    border-color: var(--ads-blue);
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}

@media (max-width: 850px) {
    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .profile-identity {
        width: 100%;
        box-sizing: border-box;
    }

    .profile-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.advertiser-modal {
    position: fixed !important;
    z-index: 1000;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(3px);
    overflow: hidden !important;
}

.advertiser-modal > div {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advertiser-modal-card {
    position: relative !important;
    box-sizing: border-box;
    width: min(432px, calc(100vw - 32px)) !important;
    height: min(570px, calc(100vh - 32px)) !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .35);
    transform: none !important;
    overflow: hidden;
}

html.advertiser-modal-open,
body.advertiser-modal-open {
    height: 100% !important;
    overflow: hidden !important;
}

.advertiser-footer {
    padding: 10px 0;
    color: var(--ads-muted);
    background: var(--ads-bg);
}

body.mainHeaderLogin.advertiser-login-page {
    min-width: 0;
    color: var(--ads-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, .22), transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(37, 99, 235, .25), transparent 32%),
        linear-gradient(135deg, #0f172a, #172554 58%, #1e3a8a);
}

.advertiser-account-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 610px;
    padding: 70px 20px 30px;
}

.advertiser-login-page #ImageHeaderLogo {
    width: 220px !important;
    padding: 24px 0 0 32px !important;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, .18));
}

.advertiser-login-page #ContentLogin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 610px;
    height: auto !important;
    padding: 70px 20px 30px;
}

.advertiser-login-page .advertiser-account-card {
    width: 520px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 70px rgba(15, 23, 42, .36);
    overflow: hidden;
}

.advertiser-login-page .advertiser-account-card .Header {
    width: 100%;
    height: auto;
    color: #fff;
    background: linear-gradient(135deg, var(--ads-navy), #1d4ed8);
}

.advertiser-login-page .advertiser-account-card .HeaderTitle {
    padding: 15px 20px;
    background: transparent;
}

.advertiser-login-page .advertiser-account-card .HeaderLeft,
.advertiser-login-page .advertiser-account-card .HeaderRight {
    display: none;
}

.advertiser-login-page .advertiser-account-card h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.advertiser-login-page .advertiser-account-card .Content {
    box-sizing: border-box;
    height: auto !important;
    min-height: 310px;
    padding: 22px 24px 26px;
    background: #fff;
}

.advertiser-account-heading {
    display: block;
    color: #fff;
}

.advertiser-account-heading > span {
    display: block;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 400;
}

.advertiser-header-link {
    display: inline-block;
    width: auto !important;
    padding: 8px 11px;
    color: #fff !important;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.advertiser-header-link:hover {
    background: rgba(255, 255, 255, .18);
}

.advertiser-login-page .FormBody {
    padding: 0;
}

.advertiser-form-intro {
    display: flex;
    flex-direction: column;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e2e8f0;
}

.advertiser-form-intro strong {
    margin: 4px 0 2px;
    color: var(--ads-navy-dark);
    font-size: 18px;
}

.advertiser-form-intro > span:last-child {
    color: var(--ads-muted);
    font-size: 13px;
}

.advertiser-form-table {
    width: 100%;
}

.advertiser-form-table td {
    padding: 6px 4px;
}

.advertiser-form-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.advertiser-form-actions input.LoginButton:first-child {
    color: #fff;
    border-color: var(--ads-blue);
    background: var(--ads-blue);
}

.advertiser-form-actions input.LoginButton:first-child:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.advertiser-login-page .LoginLabel {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.advertiser-login-page input.LoginTextBox {
    box-sizing: border-box;
    height: 42px;
    padding: 8px 12px;
    color: var(--ads-text);
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
}

.advertiser-login-page input.LoginTextBox:focus {
    border-color: var(--ads-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.advertiser-login-page input.LoginButton {
    height: 40px;
    color: #fff;
    font-weight: 700;
    border: 1px solid var(--ads-blue);
    border-radius: 9px;
    background: var(--ads-blue);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .2);
}

.advertiser-login-page input.LoginButton:hover {
    color: #fff;
    border-color: #1d4ed8;
    background: #1d4ed8;
    box-shadow: 0 9px 18px rgba(37, 99, 235, .28);
}

.advertiser-login-page a {
    color: var(--ads-blue);
    font-weight: 600;
}

.advertiser-login-page #ctl00_MasterBody_lblError {
    color: var(--ads-danger) !important;
    font-size: 13px;
}

.advertiser-signup-page .advertiser-account-shell {
    align-items: flex-start;
    padding-top: 85px;
}

.advertiser-signup-page .advertiser-signup-card {
    width: 650px;
}

.advertiser-signup-page .advertiser-signup-content {
    padding: 24px 34px 30px !important;
}

.advertiser-signup-page .advertiser-form-table .LoginLabel {
    width: 155px !important;
    padding-right: 10px;
    text-align: right;
}

.advertiser-signup-page .advertiser-form-table input.LoginTextBox {
    width: 100% !important;
    max-width: 355px;
}

.advertiser-signup-page .advertiser-captcha-label {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-weight: 600;
}

.advertiser-signup-page #ctl00_MasterBody_lblErrorAdvertizer {
    display: block;
    max-width: 360px;
    color: var(--ads-danger) !important;
    font-size: 13px !important;
}

.advertiser-success-card {
    width: 600px !important;
}

.advertiser-success-content {
    min-height: 320px !important;
    padding: 35px !important;
    text-align: center;
}

.advertiser-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 24px rgba(34, 197, 94, .25);
}

.advertiser-success-message {
    width: 100%;
    color: #475569;
    font-size: 15px !important;
    text-align: center !important;
}

.advertiser-success-message td {
    padding-left: 0 !important;
}

.advertiser-primary-link {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 16px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 9px;
    background: var(--ads-blue);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}

.advertiser-primary-link:hover {
    background: #1d4ed8;
}

.advertiser-position-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advertiser-position-card strong {
    font-size: 17px;
}

.advertiser-position-card small {
    color: #475569;
    font-size: 12px;
}

.advertiser-position-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 16px;
    color: #fff;
    font: 700 13px Mukta, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: var(--ads-blue);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}

.advertiser-position-close:hover {
    background: #1d4ed8;
}

.advertiser-position-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 52px;
    padding: 0 2px 10px;
}

.advertiser-position-toolbar > div {
    display: flex;
    flex-direction: column;
}

.advertiser-position-toolbar strong {
    color: var(--ads-navy-dark);
    font-size: 16px;
}

.advertiser-position-frame {
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 52px);
    overflow: hidden;
    border: 1px solid var(--ads-border);
    border-radius: 8px;
    background: #f8fafc url('../../Images/A4Page.png') center / 100% 100% no-repeat;
}

.advertiser-position-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.advertiser-app .campaign-email-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 6px;
    padding: 6px 9px;
    color: var(--ads-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: var(--ads-blue-soft);
    white-space: nowrap;
}

.advertiser-app .campaign-email-action:hover {
    color: var(--ads-blue) !important;
    border-color: #93c5fd !important;
    background: var(--ads-blue-soft) !important;
}

.campaign-email-icon {
    font-size: 15px;
    line-height: 1;
}

.advertiser-app .campaign-grid-wrap {
    overflow-x: auto;
    border-radius: 0 !important;
}

.advertiser-app .campaign-grid {
    min-width: 1060px;
    border: 0;
    border-radius: 0;
}

.advertiser-app .campaign-grid th {
    padding: 13px 14px;
    font-size: 11px;
    letter-spacing: .07em;
}

.advertiser-app .campaign-grid td {
    padding: 14px;
    font-size: 13px;
    vertical-align: middle;
}

.advertiser-app .campaign-grid th:nth-child(1),
.advertiser-app .campaign-grid td:nth-child(1) { width: 22%; }

.advertiser-app .campaign-grid th:nth-child(2),
.advertiser-app .campaign-grid td:nth-child(2) { width: 14%; }

.advertiser-app .campaign-grid th:nth-child(3),
.advertiser-app .campaign-grid td:nth-child(3) {
    width: 17%;
    text-align: center;
}

.advertiser-app .campaign-grid th:nth-child(4),
.advertiser-app .campaign-grid td:nth-child(4) { width: 13%; }

.advertiser-app .campaign-grid th:nth-child(5),
.advertiser-app .campaign-grid td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.advertiser-app .campaign-grid th:nth-child(6),
.advertiser-app .campaign-grid td:nth-child(6) {
    width: 24%;
    text-align: right;
}

.advertiser-app .campaign-grid tr:hover td {
    background: #f8fbff;
}

.advertiser-app .campaign-grid td[colspan] {
    padding: 52px 20px;
    color: var(--ads-muted);
    text-align: center;
}

.campaign-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 155px;
}

.campaign-name-cell > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-name-cell strong {
    color: var(--ads-navy-dark);
    font-size: 13px;
}

.campaign-name-cell small,
.campaign-country,
.campaign-schedule-end,
.campaign-currency {
    display: block;
    margin-top: 3px;
    color: var(--ads-muted);
    font-size: 11px;
}

.campaign-row-mark {
    flex: 0 0 auto;
    width: 9px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--ads-cyan), var(--ads-blue));
}

.campaign-site-name,
.campaign-schedule {
    display: block;
    color: #334155;
    font-weight: 700;
}

.campaign-limits {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.campaign-limits > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 62px;
    min-height: 48px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.campaign-limits b {
    color: #1e293b;
    font-size: 13px;
}

.campaign-limits small {
    margin-top: 1px;
    color: var(--ads-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.campaign-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
}

.campaign-status::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
}

.campaign-status-active {
    color: #047857;
    background: #d1fae5;
}

.campaign-status-active::before {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

.campaign-status-paused {
    color: #92400e;
    background: #fef3c7;
}

.campaign-status-paused::before {
    background: #f59e0b;
}

.campaign-actions {
    display: grid;
    grid-template-columns: repeat(2, 102px);
    justify-content: end;
    gap: 5px;
    min-width: 209px;
}

.advertiser-app .campaign-actions .campaign-action {
    min-width: 0;
    width: 102px;
    height: 31px !important;
    margin: 0;
    padding: 0 9px !important;
    cursor: pointer;
    text-decoration: none;
}

.campaign-action-icon {
    gap: 6px;
    font-family: inherit;
}

.campaign-action-icon > span:first-child,
.campaign-email-action > span:first-child {
    color: var(--ads-blue);
    font-size: 15px;
    line-height: 1;
}

.advertiser-app .campaign-edit-button {
    gap: 7px;
}

.campaign-pen-icon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    transform: rotate(-42deg);
}

.campaign-pen-icon::before {
    position: absolute;
    top: 1px;
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 11px;
    content: "";
    border: 1.5px solid var(--ads-blue);
    border-radius: 2px 2px 0 0;
    background: #fff;
}

.campaign-pen-icon::after {
    position: absolute;
    bottom: -1px;
    left: 5px;
    width: 0;
    height: 0;
    content: "";
    border-top: 4px solid var(--ads-blue);
    border-right: 2.5px solid transparent;
    border-left: 2.5px solid transparent;
}

.campaign-grid-pager {
    padding: 13px !important;
    border-top: 1px solid var(--ads-border);
    background: #f8fafc !important;
}

.campaign-grid-pager table {
    margin: 0 auto;
}

.campaign-grid-pager a,
.campaign-grid-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin: 0 2px;
    color: var(--ads-blue);
    text-decoration: none;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #fff;
}

.campaign-grid-pager span {
    color: #fff;
    border-color: var(--ads-blue);
    background: var(--ads-blue);
}

.campaign-preview-card {
    width: min(680px, calc(100vw - 32px)) !important;
    height: min(620px, calc(100vh - 32px)) !important;
}

.campaign-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 52px;
    padding: 0 2px 10px;
}

.campaign-preview-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-preview-toolbar strong {
    color: var(--ads-navy-dark);
    font-size: 15px;
}

.campaign-preview-toolbar button {
    height: 36px;
    padding: 0 15px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: var(--ads-blue);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}

.campaign-preview-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 52px);
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--ads-border);
    border-radius: 10px;
    background:
        linear-gradient(45deg, #eef2f7 25%, transparent 25%) 0 0 / 20px 20px,
        linear-gradient(45deg, transparent 75%, #eef2f7 75%) 0 0 / 20px 20px,
        linear-gradient(45deg, transparent 75%, #eef2f7 75%) -10px 10px / 20px 20px,
        linear-gradient(45deg, #eef2f7 25%, #f8fafc 25%) -10px 10px / 20px 20px;
}

.campaign-preview-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.advertiser-app #searchRow > td > table {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--ads-border);
    border-radius: 12px;
    background: #fff;
}

.advertiser-app #ctl00_MasterBody_lnkBtnAdd {
    height: 38px;
    padding: 0 18px;
    color: #fff;
    border-color: var(--ads-blue);
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}

.advertiser-app #searchRow input[type="image"] {
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid var(--ads-border);
    border-radius: 7px;
    background: #fff;
}

@media (max-width: 1180px) {
    .campaign-info-strip {
        grid-template-columns: 1fr;
    }

    .advertiser-app .campaign-editor-table td:first-child {
        width: 175px;
    }
}

@media (max-width: 900px) {
    .campaign-editor-table,
    .campaign-editor-table tbody,
    .campaign-editor-table tr,
    .campaign-editor-table td {
        display: block;
        width: 100% !important;
    }

    .advertiser-app .campaign-editor-table td:first-child {
        padding: 12px 8px 3px;
    }

    .campaign-editor-section td {
        display: flex;
    }

    .campaign-editor-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.history-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.history-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    padding: 24px 28px;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background:
        radial-gradient(circle at 86% 20%, rgba(125, 211, 252, .28), transparent 30%),
        linear-gradient(125deg, #0f172a 0%, #172554 48%, #1d4ed8 100%);
    box-shadow: 0 18px 38px rgba(30, 64, 175, .2);
}

.history-hero::after {
    position: absolute;
    right: 95px;
    bottom: -72px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.history-hero .advertiser-page-kicker {
    color: #7dd3fc;
}

.history-hero h2 {
    margin: 5px 0 6px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.history-hero p {
    max-width: 650px;
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.5;
}

.history-hero-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.history-hero-icon span {
    width: 8px;
    margin-bottom: 19px;
    border-radius: 5px 5px 2px 2px;
    background: #7dd3fc;
}

.history-hero-icon span:nth-child(1) { height: 17px; opacity: .7; }
.history-hero-icon span:nth-child(2) { height: 29px; }
.history-hero-icon span:nth-child(3) { height: 42px; background: #fff; }

.history-filter-card,
.history-results-card {
    border: 1px solid var(--ads-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.history-filter-card {
    padding: 20px 22px;
}

.history-filter-heading,
.history-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.history-filter-heading {
    margin-bottom: 17px;
}

.history-filter-heading > div,
.history-results-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.history-filter-heading strong,
.history-results-heading strong {
    color: var(--ads-navy-dark);
    font-size: 17px;
}

.history-filter-note,
.history-page-size {
    color: var(--ads-muted);
    font-size: 12px;
}

.history-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .75fr) minmax(150px, .75fr) auto;
    align-items: end;
    gap: 14px;
}

.history-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-field > span:first-child {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.advertiser-app .history-field select,
.advertiser-app .history-field input {
    width: 100% !important;
    height: 42px !important;
    font-size: 13px !important;
}

.history-date-control {
    position: relative;
    display: block;
}

.history-date-control::after {
    position: absolute;
    top: 11px;
    right: 12px;
    width: 14px;
    height: 14px;
    content: "";
    pointer-events: none;
    border: 2px solid #94a3b8;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 #fff;
}

.history-date-control::before {
    position: absolute;
    z-index: 1;
    top: 9px;
    right: 15px;
    width: 8px;
    height: 4px;
    content: "";
    pointer-events: none;
    border-top: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
}

.advertiser-app input.history-filter-button {
    height: 42px;
    padding: 0 22px;
    color: #fff;
    border-color: var(--ads-blue);
    background: linear-gradient(135deg, var(--ads-blue), #1d4ed8);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}

.history-results-card {
    overflow: hidden;
}

.history-results-heading {
    padding: 19px 22px;
    border-bottom: 1px solid var(--ads-border);
}

.history-table-wrap {
    overflow-x: auto;
}

.advertiser-app .history-grid {
    border: 0;
    border-radius: 0;
}

.advertiser-app .history-grid th {
    padding: 13px 16px;
    font-size: 11px;
    letter-spacing: .07em;
    background: #f8fafc;
}

.advertiser-app .history-grid td {
    padding: 14px 16px;
    font-size: 13px;
    vertical-align: middle;
}

.advertiser-app .history-grid tr:hover td {
    background: #f8fbff;
}

.advertiser-app .history-grid td[colspan] {
    padding: 48px 20px;
    color: var(--ads-muted);
    text-align: center;
}

.history-campaign-id {
    display: inline-flex;
    align-items: center;
    min-width: 42px;
    padding: 5px 9px;
    color: var(--ads-blue);
    font-size: 12px;
    font-weight: 800;
    border-radius: 7px;
    background: var(--ads-blue-soft);
}

.history-recipient {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #334155;
    font-weight: 600;
}

.history-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #0369a1;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    background: #e0f2fe;
}

.history-printer {
    color: #475569;
    font: 600 12px/1.4 Consolas, "Courier New", monospace;
}

.history-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
}

.history-mode::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
}

.history-mode-color {
    color: #075985;
    background: #e0f2fe;
}

.history-mode-color::before {
    background: linear-gradient(135deg, #06b6d4 0 33%, #f59e0b 33% 66%, #ec4899 66%);
}

.history-mode-mono {
    color: #475569;
    background: #f1f5f9;
}

.history-mode-mono::before {
    background: #64748b;
}

.history-date {
    display: block;
    color: #334155;
    font-weight: 700;
}

.history-time {
    display: block;
    margin-top: 2px;
    color: var(--ads-muted);
    font-size: 11px;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    color: var(--ads-muted);
    font-size: 12px;
    border-top: 1px solid var(--ads-border);
    background: #f8fafc;
}

.history-pagination-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.history-page-label {
    color: #64748b;
    font-weight: 700;
}

.advertiser-app input.history-page-arrow,
.advertiser-app input.history-page-go {
    min-width: 36px;
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
}

.advertiser-app input.history-page-input {
    width: 48px !important;
    height: 34px !important;
    min-height: 34px;
    padding: 5px 7px;
    text-align: center;
}

@media (max-width: 1180px) {
    .history-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advertiser-app input.history-filter-button {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .advertiser-sidebar {
        width: 190px !important;
    }

    .advertiser-content-cell {
        padding: 16px;
    }

    .advertiser-app .main {
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .advertiser-login-page #ImageHeaderLogo {
        position: static !important;
        display: block;
        width: 180px !important;
        margin: 0 auto;
        padding: 20px 0 0 !important;
    }

    .advertiser-login-page #ContentLogin {
        min-height: 0;
        padding-top: 30px;
    }

    .advertiser-login-page .advertiser-account-card {
        width: 100%;
        max-width: 520px;
    }

    .advertiser-login-page .advertiser-account-card .Content {
        padding: 18px 12px 22px;
    }

    .advertiser-login-page input.LoginTextBox {
        width: 100% !important;
    }

    .advertiser-signup-page .advertiser-account-card {
        max-width: 650px;
    }

    .advertiser-form-actions {
        flex-wrap: wrap;
    }
}
