@font-face {
    font-family: Sahel;
    src: url('../fonts/Sahel.woff') format('woff');
    font-display: swap;
}

:root {
    --ink: #173637;
    --ink-soft: #587071;
    --forest: #123b3b;
    --forest-2: #1b5150;
    --mint: #32d49a;
    --mint-soft: #ddf9ee;
    --cream: #f5f6f1;
    --paper: #fff;
    --line: #dde5e1;
    --warning: #e5a62f;
    --danger: #d95462;
    --info: #3b8fc7;
    --shadow: 0 16px 45px rgba(25, 55, 55, .08);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Sahel, Tahoma, sans-serif;
    line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input[type="submit"]:disabled { cursor: wait; opacity: .72; }
.button-spinner {
    width: 1em; height: 1em; flex: 0 0 auto;
    display: inline-block;
    border: 2px solid currentColor; border-left-color: transparent;
    border-radius: 50%;
    animation: button-spin .7s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 272px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 26px 20px;
    color: #edf9f5;
    background:
        radial-gradient(circle at 10% 10%, rgba(50, 212, 154, .18), transparent 32%),
        linear-gradient(160deg, #123b3b, #0b292a);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark {
    display: block;
    width: 46px; height: 46px; border-radius: 15px;
    object-fit: cover;
    background: var(--forest);
    box-shadow: 0 10px 25px rgba(50,212,154,.2);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.12rem; }
.brand small { color: #a8c3bd; font-size: .72rem; }
.main-nav { display: grid; gap: 7px; }
.main-nav a {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 13px; border-radius: 13px;
    color: #bed0cc; transition: .2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a.active {
    color: #fff; background: rgba(50,212,154,.18);
    box-shadow: inset -3px 0 var(--mint);
}
.nav-icon {
    display: grid; place-items: center; width: 27px; height: 27px;
    color: var(--mint); font: 700 1.1rem/1 Tahoma;
}
.sidebar-help {
    margin-top: auto; padding: 17px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
    background: rgba(255,255,255,.055); color: #b9ceca; font-size: .8rem;
}
.sidebar-help span, .sidebar-help a { display: block; }
.sidebar-help a { margin-top: 5px; color: var(--mint); }
.logout-link { display: flex; gap: 10px; padding: 18px 12px 2px; color: #adc2bd; }
.page-column { min-height: 100vh; margin-right: 272px; display: flex; flex-direction: column; }
.topbar {
    height: 82px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 55px); background: rgba(255,255,255,.86);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 15;
}
.topbar-title small, .topbar-title strong { display: block; }
.topbar-title small { color: var(--ink-soft); font-size: .72rem; }
.topbar-title strong { font-size: .92rem; }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.notification-menu { position: relative; }
.notification-menu > summary { list-style: none; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-trigger {
    position: relative; display: grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px;
    color: var(--forest); background: #fff; cursor: pointer; font: 800 1.2rem/1 Tahoma;
}
.notification-count {
    position: absolute; top: -7px; left: -7px; display: grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px;
    color: #fff; background: var(--danger); font: 700 .62rem/1 Sahel, Tahoma;
}
.notification-panel {
    position: absolute; top: calc(100% + 12px); left: 0; width: min(390px, calc(100vw - 28px));
    overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
    background: #fff; box-shadow: 0 24px 65px rgba(15, 48, 47, .2);
}
.notification-panel-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 17px; border-bottom: 1px solid var(--line); background: #fbfcfa;
}
.notification-panel-header strong, .notification-panel-header small { display: block; }
.notification-panel-header strong { font-size: .9rem; }
.notification-panel-header small { color: var(--ink-soft); font-size: .65rem; }
.notification-read-all {
    padding: 4px; border: 0; color: #218a68; background: transparent; font-size: .68rem;
}
.notification-list { max-height: min(460px, 70vh); overflow-y: auto; }
.notification-list form { margin: 0; }
.notification-item {
    position: relative; display: block; width: 100%; padding: 14px 18px 12px;
    border: 0; border-bottom: 1px solid #edf2ef; color: var(--ink);
    background: #fff; text-align: right;
}
.notification-item:hover { background: #f5fbf8; }
.notification-item.unread { padding-right: 27px; background: #f1fbf7; }
.notification-item.unread::before {
    content: ""; position: absolute; top: 21px; right: 13px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
}
.notification-item-text {
    display: -webkit-box; overflow: hidden; margin-bottom: 5px;
    font-size: .74rem; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.notification-item time { display: block; color: #7a8f8c; font-size: .62rem; }
.notification-empty { padding: 34px 18px; color: var(--ink-soft); text-align: center; font-size: .74rem; }
.avatar {
    display: grid; place-items: center; width: 42px; height: 42px;
    color: #fff; background: var(--forest); border-radius: 14px; font-weight: 800;
}
.menu-toggle { display: none; border: 0; background: transparent; color: var(--forest); font-size: 1.4rem; }
.content { width: min(1280px, 100%); margin: 0 auto; padding: 36px clamp(22px, 4vw, 55px); flex: 1; }
.app-footer {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 20px clamp(22px, 4vw, 55px); color: #7a8e8c; font-size: .72rem;
}
.sidebar-backdrop { display: none; }

.page-heading {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 20px; margin-bottom: 27px;
}
.eyebrow { color: #2d9974; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.45; }
h2 { margin-bottom: 12px; font-size: 1.1rem; }
h3 { font-size: .96rem; }
.page-heading p, .muted { color: var(--ink-soft); }
.page-heading p { margin: 0; font-size: .86rem; }
.page-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card, .card {
    background: var(--paper); border: 1px solid rgba(24,54,55,.07);
    border-radius: 20px; box-shadow: var(--shadow);
}
.stat-card { position: relative; overflow: hidden; min-height: 138px; padding: 20px; }
.stat-card::before {
    content: ""; position: absolute; width: 80px; height: 80px;
    top: -25px; left: -20px; border-radius: 50%; background: var(--mint-soft);
}
.stat-card span, .stat-card strong, .stat-card small { display: block; position: relative; }
.stat-card span { color: var(--ink-soft); font-size: .76rem; }
.stat-card strong { margin: 9px 0 2px; color: var(--forest); font-size: 1.8rem; line-height: 1.2; }
.stat-card small { color: #7b918e; font-size: .69rem; }
.stat-card.emphasis { background: var(--forest); color: #fff; }
.stat-card.emphasis span, .stat-card.emphasis small { color: #b8cfca; }
.stat-card.emphasis strong { color: var(--mint); }
.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; }
.card { padding: 23px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 15px; margin-bottom: 17px;
}
.card-header h2 { margin: 0; }
.card-header a { color: #258969; font-size: .78rem; }
.list { display: grid; }
.list-row {
    display: grid; grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid #eef2ef;
}
.list-row:first-child { border-top: 0; }
.list-main strong, .list-main small { display: block; }
.list-main small { color: var(--ink-soft); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 430px; }
.list-meta { color: var(--ink-soft); font-size: .7rem; text-align: left; }
.badge {
    display: inline-flex; align-items: center; gap: 5px; width: max-content;
    padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700;
    background: #edf1ef; color: #657876;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: #e2f8ef; color: #18815d; }
.badge-warning { background: #fff4d8; color: #9d7014; }
.badge-danger { background: #ffe7e9; color: #b33a47; }
.badge-info { background: #e5f4fb; color: #277da9; }
.badge-muted { background: #edf1ef; color: #657876; }
.quick-actions { display: grid; gap: 10px; }
.quick-action {
    display: flex; align-items: center; gap: 13px; padding: 13px;
    border: 1px solid var(--line); border-radius: 14px; transition: .2s;
}
.quick-action:hover { border-color: #a7ddca; transform: translateY(-1px); }
.quick-action i {
    display: grid; place-items: center; width: 39px; height: 39px;
    border-radius: 12px; background: var(--mint-soft); color: #218a68; font-style: normal;
}
.quick-action span { font-size: .82rem; font-weight: 700; }
.quick-action small { display: block; color: var(--ink-soft); font-size: .67rem; font-weight: 400; }
.button {
    display: inline-flex; justify-content: center; align-items: center; gap: 7px;
    min-height: 43px; padding: 9px 17px; border: 1px solid transparent;
    border-radius: 12px; font-weight: 700; font-size: .78rem; transition: .2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #082c28; background: var(--mint); }
.button-dark { color: #fff; background: var(--forest); }
.button-outline { color: var(--forest); background: transparent; border-color: #b8c9c5; }
.button-danger { color: #b03743; background: #fff; border-color: #efb9bf; }
.button-small { min-height: 36px; padding: 7px 13px; font-size: .72rem; }
.button.is-loading { cursor: wait; opacity: .65; pointer-events: none; }
.alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 13px; font-size: .8rem; }
.alert-success { color: #176c50; background: #ddf8ec; border: 1px solid #a9e2ce; }
.alert-danger { color: #9b3440; background: #ffeaec; border: 1px solid #f1bec4; }
.alert-warning { color: #806016; background: #fff5d9; border: 1px solid #edd699; }
.empty-state { padding: 42px 20px; color: var(--ink-soft); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }
.filters { display: flex; gap: 10px; margin-bottom: 18px; }
.filters .field { flex: 1; }
.data-grid { display: grid; gap: 12px; }
.data-card {
    display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.data-card h3 { margin-bottom: 3px; }
.data-card p { margin-bottom: 8px; color: var(--ink-soft); font-size: .75rem; }
.data-card-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #738886; font-size: .68rem; }
.data-card-actions { display: flex; gap: 7px; }
.pagination {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-top: 22px;
}
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.pagination-link {
    min-width: 39px; min-height: 39px; display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 11px; border: 1px solid var(--line); border-radius: 11px;
    color: var(--forest); background: #fff; font-size: .73rem; font-weight: 700;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.pagination-link:hover { border-color: #8dc9b5; background: var(--mint-soft); }
.pagination-link.is-current { border-color: var(--forest); color: #fff; background: var(--forest); }
.pagination-link.is-disabled { opacity: .42; pointer-events: none; }
.pagination-ellipsis { padding: 0 3px; color: var(--ink-soft); }
.load-more-row { display: flex; justify-content: center; margin-top: 14px; }
[data-ajax-page-region] { transition: opacity .18s ease; }
[data-ajax-page-region].is-page-loading { opacity: .52; pointer-events: none; }
.form-card { max-width: 900px; }
.ad-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: 20px;
    align-items: start;
}
.ad-editor-layout .form-card { max-width: none; }
.ad-live-preview { position: sticky; top: 106px; }
.ad-preview-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 16px;
}
.ad-preview-heading h2 { margin-bottom: 0; }
.ad-preview-content {
    overflow: hidden;
    border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.ad-preview-media {
    min-height: 230px;
    display: grid; place-items: center;
    color: #819391; background:
        linear-gradient(135deg, rgba(50,212,154,.08), rgba(18,59,59,.04)),
        #f3f6f4;
    font-size: .74rem; text-align: center;
}
.ad-preview-media[hidden] { display: none !important; }
.ad-preview-media img, .ad-preview-media video {
    display: block; width: 100%; max-height: 420px; object-fit: contain; background: #101d1d;
}
.ad-preview-copy { padding: 18px; }
.ad-preview-copy p {
    min-height: 52px; margin: 0;
    color: var(--ink); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere;
}
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 6px; font-size: .76rem; font-weight: 700; }
.input, .textarea, .select {
    width: 100%; min-height: 45px; padding: 10px 13px;
    color: var(--ink); background: #fbfcfa; border: 1px solid #cedbd7;
    border-radius: 12px; outline: none; transition: .2s;
}
.textarea { min-height: 145px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
    border-color: #4abb95; box-shadow: 0 0 0 4px rgba(50,212,154,.12);
}
.field-help, .field-validation-error { display: block; margin-top: 5px; font-size: .68rem; }
.field-help { color: #758987; }
.field-validation-error { color: var(--danger); }
.field-counter { float: left; color: #6d817f; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.payment-date-grid { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
jdp-container { --jdp-primary: var(--mint); font-family: Sahel, Tahoma, sans-serif; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }
.file-drop {
    display: block; padding: 23px; text-align: center;
    border: 1px dashed #9fb9b2; border-radius: 14px; background: #f7fbf9;
}
.file-drop input { max-width: 100%; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 20px; }
.creative-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.media-preview {
    width: 100%; max-height: 430px; object-fit: contain;
    margin-top: 16px; border-radius: 15px; background: #edf1ee;
}
.creative-text-below-media { margin-top: 18px; line-height: 2; }
.order-card-list { display: grid; gap: 10px; }
.order-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff;
}
.order-card-link {
    min-width: 0; display: grid; grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center; gap: 16px; padding: 4px;
}
.order-refresh-button { white-space: nowrap; }
.order-dialog {
    width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 40px);
    padding: 0; overflow: auto; color: var(--ink); background: var(--paper);
    border: 0; border-radius: 22px; box-shadow: 0 28px 90px rgba(6, 35, 34, .28);
}
.order-dialog::backdrop { background: rgba(5, 30, 30, .56); backdrop-filter: blur(4px); }
.order-dialog form { padding: 26px; }
.guide-dialog { width: min(760px, calc(100% - 32px)); }
.guide-dialog-body { padding: 26px; }
.guide-intro {
    margin-bottom: 20px; padding: 13px 15px; border-radius: 13px;
    color: #245f59; background: var(--mint-soft); font-size: .82rem;
}
.guide-steps {
    margin: 0; padding: 0; list-style: none; counter-reset: guide-step;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.guide-steps li {
    position: relative; min-width: 0; padding: 15px 52px 13px 14px;
    border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc;
    counter-increment: guide-step;
}
.guide-steps li::before {
    content: counter(guide-step); position: absolute; top: 14px; right: 14px;
    display: grid; place-items: center; width: 27px; height: 27px;
    border-radius: 9px; color: var(--forest); background: var(--mint); font-weight: 900;
}
.guide-steps strong { display: block; margin-bottom: 5px; font-size: .84rem; }
.guide-steps p { margin: 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.9; }
.guide-dialog-actions { margin-top: 22px; }
.order-dialog-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px;
}
.order-dialog-header h2 { margin: 0; }
.dialog-close {
    display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
    background: #fff; font-size: 1.4rem; line-height: 1;
}
.order-constraint {
    margin-bottom: 17px; padding: 12px 14px; border-radius: 12px;
    color: #245f59; background: var(--mint-soft); font-size: .75rem;
}
.detail-list { display: grid; gap: 0; }
.detail-row {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 11px 0; border-bottom: 1px solid #edf1ef; font-size: .76rem;
}
.detail-row span { color: var(--ink-soft); }
.timeline { position: relative; display: grid; gap: 17px; padding-right: 19px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 4px; width: 2px; background: #d7e4df; }
.timeline-item { position: relative; font-size: .76rem; }
.timeline-item::before {
    content: ""; position: absolute; right: -19px; top: 7px; width: 10px; height: 10px;
    border: 2px solid #fff; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px #a8d8c6;
}
.timeline-item small { display: block; color: var(--ink-soft); }
.share-link {
    display: flex; align-items: center; direction: ltr; gap: 8px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8;
}
.share-link a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #187b83; font: .75rem Tahoma; }
.share-link button { border: 0; border-radius: 8px; background: var(--mint-soft); color: #177657; font-size: .68rem; }
.hidden { display: none !important; }

.account-shell {
    min-height: 100vh;
    background: var(--cream);
}
.account-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.account-intro {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(40px, 8vw, 100px);
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(50,212,154,.22), transparent 30%),
        linear-gradient(155deg, #164746, #092828);
    display: flex; flex-direction: column; justify-content: center;
}
.account-intro::after {
    content: ""; position: absolute; z-index: -1;
    width: 420px; height: 420px; inset: auto auto -210px -150px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.account-intro .brand { padding: 0 0 45px; }
.account-intro .brand strong, .account-intro h1 { color: #fff; }
.account-intro .brand small { color: #b9cfca; }
.account-intro .eyebrow { color: #73e0b9; }
.account-intro h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 620px; }
.account-intro p { color: #b9cfca; max-width: 550px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-pills span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #d4e3df; font-size: .72rem; }
.account-form-wrap {
    display: grid; place-items: center; padding: 30px;
    background: radial-gradient(circle at 82% 12%, rgba(50,212,154,.09), transparent 24%);
}
.account-form { width: min(440px, 100%); padding: 35px; background: #fff; border-radius: 24px; box-shadow: 0 25px 70px rgba(13,48,47,.18); }
.account-form h2, .account-form label, .account-links { color: var(--ink); }
.account-form h2 { font-size: 1.45rem; }
.account-form > p { color: var(--ink-soft); font-size: .78rem; margin-bottom: 25px; }
.account-links { margin-top: 18px; text-align: center; font-size: .75rem; }
.account-links a { color: #18785d; font-weight: 700; }
.checkbox { display: flex; gap: 8px; align-items: center; font-size: .75rem; }
.captcha-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 45px;
    gap: 8px;
    align-items: stretch;
}
.captcha-container img {
    width: 150px; height: 48px; object-fit: contain;
    border: 1px solid #cedbd7; border-radius: 10px; background: #f7fbf9;
}
.captcha-input { min-width: 0; text-align: center; letter-spacing: .18em; text-transform: uppercase; }
.captcha-refresh { min-height: 48px; padding: 0; font-size: 1.2rem; }

@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .ad-editor-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); }
    .account-intro { padding: 45px; }
}
@media (max-width: 760px) {
    .sidebar { transform: translateX(105%); transition: transform .25s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(5,24,24,.55); }
    .page-column { margin-right: 0; }
    .menu-toggle { display: block; }
    .topbar-title { display: none; }
    .topbar { height: 70px; }
    .content { padding-top: 24px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .payment-date-grid { grid-template-columns: 1fr; }
    .data-card { grid-template-columns: 1fr; }
    .data-card-actions { justify-content: flex-start; }
    .pagination { justify-content: space-between; }
    .pagination-pages { order: -1; width: 100%; justify-content: center; }
    .order-card { grid-template-columns: 1fr; }
    .order-card-link { grid-template-columns: 1fr auto; }
    .order-card-link .list-meta { grid-column: 1 / -1; }
    .order-refresh-button { justify-self: start; }
    .ad-editor-layout { grid-template-columns: 1fr; }
    .ad-live-preview { position: static; }
    .guide-steps { grid-template-columns: 1fr; }
    .account-page { grid-template-columns: 1fr; }
    .account-intro {
        min-height: auto;
        padding: 22px 18px 4px;
        justify-content: flex-start;
    }
    .account-intro::after,
    .account-intro > :not(.brand) { display: none; }
    .account-intro .brand {
        width: min(440px, 100%);
        margin: 0 auto;
        padding: 0;
    }
    .account-shell { background: var(--cream); }
    .app-footer { flex-direction: column; }
}
@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .topbar-actions .button { display: none; }
    .notification-panel { position: fixed; top: 76px; right: 14px; left: 14px; width: auto; }
    .list-row { grid-template-columns: 1fr auto; }
    .list-meta { display: none; }
    .account-form-wrap { padding: 18px; }
    .account-form { padding: 25px 20px; }
    .captcha-container { grid-template-columns: minmax(0, 1fr) 45px; }
    .captcha-container img { grid-column: 1 / -1; grid-row: 1; width: 100%; }
}
