*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; font-family: 'Open Sans', sans-serif; font-size: .9rem; line-height: 1.6; }

.dashboard-wrapper svg { width: 1em; height: 1em; vertical-align: middle; }

.dashboard-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .25s ease;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.25rem .75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.sidebar-brand img { height: 28px; }

.sidebar-nav { flex: 1; padding: .5rem 0; }
.sidebar-section { padding: .5rem 1rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .5; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.25rem;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s;
    cursor: pointer;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link .badge {
    margin-left: auto;
    font-size: .7rem;
    padding: .15em .5em;
    border-radius: 3px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(128,128,128,.15);
    font-size: .8rem;
}
.sidebar-footer a { text-decoration: none; display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.sidebar-footer svg { width: 16px; height: 16px; }

.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-actions select {
    border: 1px solid;
    padding: .3rem .6rem;
    font-size: .82rem;
    font-family: inherit;
    border-radius: 0;
    cursor: pointer;
}

.content-area { padding: 1.25rem 1.5rem; }

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: .5rem;
    cursor: pointer;
}
.sidebar-toggle svg { width: 22px; height: 22px; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    padding: 1.15rem 1.25rem;
    border-radius: 0;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.stat-card-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.stat-card-label svg { width: 14px; height: 14px; opacity: .6; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.stat-card-sub { font-size: .75rem; }

.panel {
    border: 1px solid;
    border-radius: 0;
    margin-bottom: 1.25rem;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid;
    font-weight: 700;
    font-size: .9rem;
}
.panel-header-actions { display: flex; gap: .5rem; }
.panel-body { padding: 1rem 1.15rem; }
.panel-body-flush { padding: 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.data-table th {
    text-align: left;
    padding: .6rem .75rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid;
}
.data-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .nowrap { white-space: nowrap; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .2em .6em;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.status-active { background: rgba(90,138,106,.15); color: #3d7050; }
.status-pending { background: rgba(201,168,90,.15); color: #9a7b20; }
.status-paused { background: rgba(150,150,150,.15); color: #777; }
.status-denied { background: rgba(200,80,80,.15); color: #b04040; }
.status-canceled { background: rgba(150,100,80,.15); color: #8a5a3a; }
.status-archived { background: rgba(120,120,140,.15); color: #666; }

.btn { border-radius: 0 !important; font-family: inherit; font-size: .83rem; font-weight: 600; padding: .45rem 1rem; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; gap: .4rem; }
.btn svg { width: 15px; height: 15px; }
.btn-sm { font-size: .78rem; padding: .3rem .7rem; }
.btn-xs { font-size: .72rem; padding: .2rem .5rem; }
.btn-icon { padding: .35rem; border: none; background: none; cursor: pointer; opacity: .6; }
.btn-icon:hover { opacity: 1; }
.btn-icon svg { width: 16px; height: 16px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0 !important; }
.btn-group .btn + .btn { margin-left: -1px; }

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.form-control {
    width: 100%;
    padding: .45rem .7rem;
    font-size: .85rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 0 !important;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; }
.input-prefix {
    flex: 0 0 auto;
    width: auto;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .5rem;
    border: 1px solid;
    border-right: none;
    border-radius: 0;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.5;
}
.form-select {
    width: 100%;
    padding: .45rem .7rem;
    font-size: .85rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 0 !important;
    cursor: pointer;
}
.form-hint { font-size: .73rem; margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"] { border-radius: 0 !important; cursor: pointer; }

.toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.filter-pills { display: flex; gap: .25rem; }
.filter-pill {
    padding: .3rem .75rem;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
    transition: background .15s;
    background: none;
    font-family: inherit;
}
.search-input {
    padding: .35rem .7rem;
    font-size: .82rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 0;
    min-width: 200px;
}

.pagination { display: flex; align-items: center; gap: .5rem; justify-content: center; padding: 1rem 0; font-size: .82rem; }
.pagination button { padding: .3rem .6rem; border: 1px solid; background: none; cursor: pointer; font-family: inherit; font-size: .8rem; border-radius: 0; display: inline-flex; align-items: center; }
.pagination button svg { width: 16px; height: 16px; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .page-info { font-weight: 600; }

.chart-container { position: relative; width: 100%; }
.chart-container canvas { width: 100% !important; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    width: 95%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    padding: 1.5rem;
}
.modal-box-wide { max-width: 720px; }
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.modal-title .btn-icon { margin-right: -.25rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid; }

.quick-actions-list { list-style: none; margin: 0; padding: 0; }
.quick-action-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-bottom: 1px solid;
}
.quick-action-item:last-child { border-bottom: none; }
.quick-action-info { flex: 1; min-width: 0; }
.quick-action-name { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-action-meta { font-size: .73rem; opacity: .7; }
.quick-action-buttons { display: flex; gap: .35rem; flex-shrink: 0; }
.quick-action-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid;
    flex-shrink: 0;
}

.tab-bar { display: flex; gap: 0; border-bottom: 2px solid; margin-bottom: 1rem; }
.tab-btn {
    padding: .5rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: border-color .15s;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    font-size: .85rem;
}
.empty-state svg { width: 40px; height: 40px; opacity: .3; margin-bottom: .75rem; }

.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; }
.toast {
    padding: .65rem 1rem;
    font-size: .82rem;
    font-weight: 500;
    border-left: 3px solid;
    min-width: 260px;
    max-width: 380px;
    animation: toast-in .25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.toast .btn-icon { opacity: .5; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 3rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

.creative-preview {
    width: 100%;
    max-width: 200px;
    border: 1px solid;
    display: block;
}

.view-toggle { display: inline-flex; margin-left: auto; }
.view-toggle-btn {
    padding: .3rem .5rem;
    border: 1px solid;
    background: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    transition: background .15s;
}
.view-toggle-btn svg { width: 16px; height: 16px; }
.view-toggle-btn + .view-toggle-btn { margin-left: -1px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.campaign-card {
    border: 1px solid;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
}
.campaign-card:hover { transform: translateY(-2px); }
.campaign-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid;
    padding: 6px;
}
.campaign-card-thumb-empty {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid;
    opacity: .25;
}
.campaign-card-thumb-empty svg { width: 40px; height: 40px; }
.campaign-card-body { padding: .75rem .85rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.campaign-card-title { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaign-card-meta { font-size: .73rem; opacity: .7; display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.campaign-card-footer { padding: .5rem .85rem; border-top: 1px solid; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

.creative-card {
    border: 1px solid;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
}
.creative-card:hover { transform: translateY(-2px); }
.creative-card-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid;
    padding: 6px;
}
.creative-card-body { padding: .6rem .75rem; }
.creative-card-title { font-weight: 600; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creative-card-meta { font-size: .72rem; opacity: .7; margin-top: .2rem; }

video.campaign-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid;
    padding: 6px;
}
video.creative-card-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid;
    padding: 6px;
}
video.creative-preview {
    width: 100%;
    max-width: 200px;
    border: 1px solid;
    display: block;
}

.modal-body svg { width: 14px; height: 14px; vertical-align: middle; }
.modal-overlay svg { width: 14px; height: 14px; vertical-align: middle; }
.modal-overlay .btn svg { width: 15px; height: 15px; }
.modal-overlay .btn-icon svg { width: 16px; height: 16px; }

.theme-day { background-color: #f5f0e8; color: #3b2f1e; }
.theme-day .sidebar { background-color: #faf6f0; border-right: 1px solid #e5ddd2; }
.theme-day .sidebar-brand { color: #3b2f1e; }
.theme-day .sidebar-section { color: #7a6b56; }
.theme-day .sidebar-link { color: #5a4a35; }
.theme-day .sidebar-link:hover { background-color: #f0ebe2; }
.theme-day .sidebar-link.active { background-color: #eee8dd; border-left-color: #5a8a6a; color: #3b2f1e; font-weight: 700; }
.theme-day .sidebar-link .badge { background: rgba(201,168,90,.2); color: #8a6d15; }
.theme-day .sidebar-footer { color: #7a6b56; border-top-color: #e5ddd2; }
.theme-day .sidebar-footer a { color: #7a6b56; }
.theme-day .sidebar-footer a:hover { color: #3b2f1e; }

.theme-day .topbar { background-color: #faf6f0; border-bottom: 1px solid #e5ddd2; color: #3b2f1e; }
.theme-day .topbar-actions select { background: #fff; border-color: #d4c8b8; color: #3b2f1e; }

.theme-day .stat-card { background-color: #faf6f0; border-color: #e5ddd2; }
.theme-day .stat-card-label { color: #7a6b56; }
.theme-day .stat-card-value { color: #3b2f1e; }
.theme-day .stat-card-sub { color: #9a8b75; }

.theme-day .panel { background-color: #faf6f0; border-color: #e5ddd2; }
.theme-day .panel-header { border-bottom-color: #e5ddd2; color: #3b2f1e; }

.theme-day .data-table th { border-bottom-color: #d4c8b8; color: #7a6b56; }
.theme-day .data-table td { border-bottom-color: #ede7dd; color: #3b2f1e; }
.theme-day .data-table tr:hover td { background-color: #f5f0e8; }

.theme-day .btn-primary { background-color: #5a8a6a; border-color: #5a8a6a; color: #fff; }
.theme-day .btn-primary:hover { background-color: #4d7a5c; border-color: #4d7a5c; }
.theme-day .btn-secondary { background-color: #fff; border-color: #d4c8b8; color: #5a4a35; }
.theme-day .btn-secondary:hover { background-color: #f5f0e8; }
.theme-day .btn-danger { background-color: #c25050; border-color: #c25050; color: #fff; }
.theme-day .btn-danger:hover { background-color: #a84040; }
.theme-day .btn-success { background-color: #5a8a6a; border-color: #5a8a6a; color: #fff; }
.theme-day .btn-success:hover { background-color: #4d7a5c; }
.theme-day .btn-warning { background-color: #c9a03a; border-color: #c9a03a; color: #fff; }
.theme-day .btn-icon { color: #7a6b56; }

.theme-day .input-prefix { background-color: #f5f0eb; border-color: #d4c8b8; color: #3b2f1e; }
.theme-day .form-control { background-color: #fff; border-color: #d4c8b8; color: #3b2f1e; }
.theme-day .form-control::placeholder { color: #b8a992; }
.theme-day .form-control:focus { border-color: #5a8a6a; box-shadow: 0 0 0 2px rgba(90,138,106,.15); }
.theme-day .form-select { background-color: #fff; border-color: #d4c8b8; color: #3b2f1e; }
.theme-day .form-label { color: #5a4a35; }
.theme-day .form-hint { color: #9a8b75; }

.theme-day .filter-pill { border-color: #d4c8b8; color: #5a4a35; background: transparent; }
.theme-day .filter-pill:hover { background-color: #f0ebe2; }
.theme-day .filter-pill.active { background-color: #5a8a6a; border-color: #5a8a6a; color: #fff; }
.theme-day .search-input { border-color: #d4c8b8; background: #fff; color: #3b2f1e; }
.theme-day .search-input::placeholder { color: #b8a992; }
.theme-day .search-input:focus { border-color: #5a8a6a; outline: none; }

.theme-day .pagination button { border-color: #d4c8b8; color: #5a4a35; background: #fff; }
.theme-day .pagination button:hover:not(:disabled) { background: #f0ebe2; }

.theme-day .tab-bar { border-bottom-color: #e5ddd2; }
.theme-day .tab-btn { color: #7a6b56; }
.theme-day .tab-btn:hover { color: #3b2f1e; }
.theme-day .tab-btn.active { color: #5a8a6a; border-bottom-color: #5a8a6a; }

.theme-day .modal-box { background: #faf6f0; border: 1px solid #e5ddd2; }
.theme-day .modal-footer { border-top-color: #e5ddd2; }

.theme-day .toast { background: #faf6f0; border-left-color: #5a8a6a; color: #3b2f1e; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.theme-day .toast.toast-error { border-left-color: #c25050; }

.theme-day .quick-action-item { border-bottom-color: #ede7dd; }
.theme-day .quick-action-thumb { border-color: #e5ddd2; }

.theme-day .spinner { border-color: #d4c8b8; border-right-color: transparent; }

.theme-day .sidebar-toggle svg { stroke: #3b2f1e; }

.theme-day a { color: #5a8a6a; }
.theme-day a:hover { color: #4d7a5c; }
.theme-day .text-muted { color: #9a8b75; }

.theme-day .creative-preview { border-color: #e5ddd2; }

.theme-day .view-toggle-btn { border-color: #d4c8b8; color: #7a6b56; }
.theme-day .view-toggle-btn:hover { background-color: #f0ebe2; }
.theme-day .view-toggle-btn.active { background-color: #5a8a6a; border-color: #5a8a6a; color: #fff; }
.theme-day .campaign-card { background-color: #faf6f0; border-color: #e5ddd2; }
.theme-day .campaign-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.theme-day .campaign-card-thumb { border-bottom-color: #e5ddd2; background: #f5f0e8; }
.theme-day .campaign-card-thumb-empty { border-bottom-color: #e5ddd2; background: #f5f0e8; }
.theme-day .campaign-card-footer { border-top-color: #e5ddd2; }
.theme-day .creative-card { background-color: #faf6f0; border-color: #e5ddd2; }
.theme-day .creative-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.theme-day .creative-card-thumb { border-bottom-color: #e5ddd2; background: #f5f0e8; }

.theme-night { background-color: #1f1915; color: #e8ddd4; }
.theme-night .sidebar { background-color: #1a1412; border-right: 1px solid #2e2420; }
.theme-night .sidebar-brand { color: #e8ddd4; }
.theme-night .sidebar-section { color: #998a7e; }
.theme-night .sidebar-link { color: #bfb0a2; }
.theme-night .sidebar-link:hover { background-color: #261e1a; }
.theme-night .sidebar-link.active { background-color: #2e2420; border-left-color: #c9865a; color: #e8ddd4; font-weight: 700; }
.theme-night .sidebar-link .badge { background: rgba(201,134,90,.2); color: #d4976a; }
.theme-night .sidebar-footer { color: #998a7e; border-top-color: #2e2420; }
.theme-night .sidebar-footer a { color: #998a7e; }
.theme-night .sidebar-footer a:hover { color: #e8ddd4; }

.theme-night .topbar { background-color: #1a1412; border-bottom: 1px solid #2e2420; color: #e8ddd4; }
.theme-night .topbar-actions select { background: #261e1a; border-color: #3d302a; color: #e8ddd4; }

.theme-night .stat-card { background-color: #261e1a; border-color: #3d302a; }
.theme-night .stat-card-label { color: #998a7e; }
.theme-night .stat-card-value { color: #e8ddd4; }
.theme-night .stat-card-sub { color: #7a6b60; }

.theme-night .panel { background-color: #261e1a; border-color: #3d302a; }
.theme-night .panel-header { border-bottom-color: #3d302a; color: #e8ddd4; }

.theme-night .data-table th { border-bottom-color: #3d302a; color: #998a7e; }
.theme-night .data-table td { border-bottom-color: #2e2420; color: #e8ddd4; }
.theme-night .data-table tr:hover td { background-color: #2e2420; }

.theme-night .btn-primary { background-color: #c9865a; border-color: #c9865a; color: #1a1412; }
.theme-night .btn-primary:hover { background-color: #b87548; border-color: #b87548; }
.theme-night .btn-secondary { background-color: #261e1a; border-color: #3d302a; color: #bfb0a2; }
.theme-night .btn-secondary:hover { background-color: #332820; }
.theme-night .btn-danger { background-color: #b04040; border-color: #b04040; color: #fff; }
.theme-night .btn-danger:hover { background-color: #9a3535; }
.theme-night .btn-success { background-color: #5a8a6a; border-color: #5a8a6a; color: #fff; }
.theme-night .btn-success:hover { background-color: #4d7a5c; }
.theme-night .btn-warning { background-color: #c9a03a; border-color: #c9a03a; color: #1a1412; }
.theme-night .btn-icon { color: #998a7e; }

.theme-night .input-prefix { background-color: #1e1814; border-color: #3d302a; color: #e8ddd4; }
.theme-night .form-control { background-color: #261e1a; border-color: #3d302a; color: #e8ddd4; }
.theme-night .form-control::placeholder { color: #6b5c52; }
.theme-night .form-control:focus { border-color: #c9865a; box-shadow: 0 0 0 2px rgba(201,134,90,.2); }
.theme-night .form-select { background-color: #261e1a; border-color: #3d302a; color: #e8ddd4; }
.theme-night .form-label { color: #bfb0a2; }
.theme-night .form-hint { color: #7a6b60; }

.theme-night .filter-pill { border-color: #3d302a; color: #bfb0a2; background: transparent; }
.theme-night .filter-pill:hover { background-color: #2e2420; }
.theme-night .filter-pill.active { background-color: #c9865a; border-color: #c9865a; color: #1a1412; }
.theme-night .search-input { border-color: #3d302a; background: #261e1a; color: #e8ddd4; }
.theme-night .search-input::placeholder { color: #6b5c52; }
.theme-night .search-input:focus { border-color: #c9865a; outline: none; }

.theme-night .pagination button { border-color: #3d302a; color: #bfb0a2; background: #261e1a; }
.theme-night .pagination button:hover:not(:disabled) { background: #332820; }

.theme-night .tab-bar { border-bottom-color: #3d302a; }
.theme-night .tab-btn { color: #998a7e; }
.theme-night .tab-btn:hover { color: #e8ddd4; }
.theme-night .tab-btn.active { color: #c9865a; border-bottom-color: #c9865a; }

.theme-night .modal-box { background: #1a1412; border: 1px solid #3d302a; }
.theme-night .modal-footer { border-top-color: #3d302a; }

.theme-night .toast { background: #261e1a; border-left-color: #c9865a; color: #e8ddd4; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.theme-night .toast.toast-error { border-left-color: #b04040; }

.theme-night .quick-action-item { border-bottom-color: #2e2420; }
.theme-night .quick-action-thumb { border-color: #3d302a; }

.theme-night .spinner { border-color: #3d302a; border-right-color: transparent; }

.theme-night .sidebar-toggle svg { stroke: #e8ddd4; }

.theme-night a { color: #d4976a; }
.theme-night a:hover { color: #dea87e; }
.theme-night .text-muted { color: #7a6b60; }

.theme-night .creative-preview { border-color: #3d302a; }

.theme-night .view-toggle-btn { border-color: #3d302a; color: #998a7e; }
.theme-night .view-toggle-btn:hover { background-color: #2e2420; }
.theme-night .view-toggle-btn.active { background-color: #c9865a; border-color: #c9865a; color: #1a1412; }
.theme-night .campaign-card { background-color: #261e1a; border-color: #3d302a; }
.theme-night .campaign-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.theme-night .campaign-card-thumb { border-bottom-color: #3d302a; background: #1f1915; }
.theme-night .campaign-card-thumb-empty { border-bottom-color: #3d302a; background: #1f1915; }
.theme-night .campaign-card-footer { border-top-color: #3d302a; }
.theme-night .creative-card { background-color: #261e1a; border-color: #3d302a; }
.theme-night .creative-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.theme-night .creative-card-thumb { border-bottom-color: #3d302a; background: #1f1915; }

.thumb-wrapper { position: relative; display: block; }
.mime-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .1em .4em;
    border-radius: 2px;
    opacity: .7;
    pointer-events: none;
}
.theme-day .mime-badge { background: rgba(0,0,0,.08); color: #5a4a35; }
.theme-night .mime-badge { background: rgba(255,255,255,.1); color: #bfb0a2; }

.hover-preview-overlay {
    display: none;
    position: fixed;
    z-index: 250;
    padding: 8px;
    border: 1px solid;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hover-preview-overlay img,
.hover-preview-overlay video {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}
.theme-day .hover-preview-overlay { background: #faf6f0; border-color: #e5ddd2; }
.theme-night .hover-preview-overlay { background: #1a1412; border-color: #3d302a; }

.theme-toggle-btn { white-space: nowrap; }
.theme-toggle-btn svg { width: 14px; height: 14px; }
.theme-toggle-label { font-size: .78rem; }

.gallery-settings-btn { white-space: nowrap; }
.gallery-settings-btn svg { width: 14px; height: 14px; }
.gallery-settings-modal { max-width: 420px; }
.gallery-settings-list { display: flex; flex-direction: column; gap: 0; }
.gallery-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}
.gallery-setting-row:last-child { border-bottom: none; }
.gallery-setting-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gallery-setting-label { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.gallery-setting-label svg { width: 16px; height: 16px; opacity: .6; flex-shrink: 0; }
.gallery-setting-hint { font-size: .72rem; opacity: .6; }
.gallery-setting-toggle { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; border-radius: 0 !important; }

.theme-day .gallery-setting-row { border-bottom-color: #ede7dd; }
.theme-night .gallery-setting-row { border-bottom-color: #2e2420; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

.deny-popover {
    position: absolute;
    z-index: 9999;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    padding: .75rem;
    width: 280px;
    font-size: .85rem;
}
.deny-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}
.deny-popover-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: inherit;
    opacity: .6;
}
.deny-popover-close:hover { opacity: 1; }
.deny-popover-close svg { width: 14px; height: 14px; }
.deny-popover-quick { width: 100%; }
.deny-popover-divider {
    border-top: 1px solid var(--border, #eee);
    margin: .5rem 0;
}
.deny-popover-label {
    font-size: .75rem;
    color: var(--text-muted, #888);
    margin-bottom: .35rem;
}
.deny-popover-templates {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: .25rem;
}
.deny-template-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.deny-template-btn {
    flex: 1;
    text-align: left;
    background: var(--bg-secondary, #f5f5f5);
    border: 1px solid var(--border, #ddd);
    border-radius: 4px;
    padding: .3rem .5rem;
    cursor: pointer;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}
.deny-template-btn:hover { background: var(--bg-hover, #eee); }
.deny-template-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}
.deny-template-remove:hover { color: #c9302c; }
.deny-template-remove svg { width: 12px; height: 12px; }
.deny-reason-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, #ddd);
    border-radius: 4px;
    padding: .4rem .5rem;
    font-size: .8rem;
    resize: vertical;
    font-family: inherit;
    background: var(--input-bg, #fff);
    color: inherit;
}
.deny-reason-input:focus {
    outline: 2px solid var(--primary, #4a90d9);
    outline-offset: -1px;
}
.deny-popover-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .4rem;
    gap: .5rem;
}
.deny-save-label {
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-muted, #888);
}

.cd-section { margin-bottom: 1.25rem; }
.cd-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    opacity: .6;
}
.cd-section-title svg { width: 14px; height: 14px; }

.cd-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.cd-header-id {
    font-size: .75rem;
    opacity: .5;
    font-family: monospace;
}

.cd-deny-banner {
    padding: .75rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .85rem;
    line-height: 1.5;
}
.cd-deny-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.cd-perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.cd-perf-card {
    padding: .85rem 1rem;
    border: 1px solid;
    border-radius: 2px;
    text-align: center;
}
.cd-perf-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .25rem;
}
.cd-perf-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.cd-perf-sub {
    font-size: .7rem;
    margin-top: .2rem;
}

.cd-budget-bar-track {
    height: 8px;
    border-radius: 4px;
    margin: .35rem 0 .2rem;
}
.cd-budget-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease;
}
.cd-budget-meta {
    display: flex;
    justify-content: space-between;
    font-size: .76rem;
}
.cd-budget-pct {
    text-align: center;
    font-size: .72rem;
    opacity: .6;
    margin-top: .15rem;
}

.cd-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
    font-size: .85rem;
}
.cd-detail-item { padding: .4rem 0; }
.cd-detail-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .55;
    margin-bottom: .15rem;
}
.cd-detail-value { line-height: 1.4; }
.cd-detail-item.full-width { grid-column: 1 / -1; }

.cd-targeting-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .85rem;
}
.cd-targeting-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.cd-targeting-row svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; opacity: .6; }
.cd-targeting-label {
    font-weight: 600;
    min-width: 70px;
    flex-shrink: 0;
}

.cd-region-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}
.cd-region-table th {
    text-align: left;
    padding: .4rem .6rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid;
}
.cd-region-table td {
    padding: .35rem .6rem;
    border-bottom: 1px solid;
}
.cd-region-table tr:last-child td { border-bottom: none; }
.cd-region-table .text-right { text-align: right; }

.cd-creative-wrap {
    display: inline-block;
    margin-top: .4rem;
}
.cd-creative-wrap .creative-preview { max-width: 180px; }
.cd-creative-mime {
    font-size: .7rem;
    opacity: .5;
    margin-bottom: .25rem;
}

.theme-day .cd-deny-banner { background: rgba(200,80,80,.08); border: 1px solid rgba(200,80,80,.2); color: #9a3030; }
.theme-day .cd-perf-card { background: #faf6f0; border-color: #e5ddd2; }
.theme-day .cd-perf-label { color: #7a6b56; }
.theme-day .cd-perf-value { color: #3b2f1e; }
.theme-day .cd-perf-sub { color: #9a8b75; }
.theme-day .cd-budget-bar-track { background: rgba(128,128,128,.15); }
.theme-day .cd-region-table th { border-bottom-color: #d4c8b8; color: #7a6b56; }
.theme-day .cd-region-table td { border-bottom-color: #ede7dd; color: #3b2f1e; }
.theme-day .cd-region-table tr:hover td { background: #f5f0e8; }
.theme-day .cd-detail-label { color: #7a6b56; }

.theme-night .cd-deny-banner { background: rgba(200,80,80,.1); border: 1px solid rgba(200,80,80,.25); color: #e07070; }
.theme-night .cd-perf-card { background: #261e1a; border-color: #3d302a; }
.theme-night .cd-perf-label { color: #998a7e; }
.theme-night .cd-perf-value { color: #e8ddd4; }
.theme-night .cd-perf-sub { color: #7a6b60; }
.theme-night .cd-budget-bar-track { background: rgba(128,128,128,.2); }
.theme-night .cd-region-table th { border-bottom-color: #3d302a; color: #998a7e; }
.theme-night .cd-region-table td { border-bottom-color: #2e2420; color: #e8ddd4; }
.theme-night .cd-region-table tr:hover td { background: #2e2420; }
.theme-night .cd-detail-label { color: #998a7e; }

.create-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1rem; }
.create-loading .spinner { width: 28px; height: 28px; }

.create-step-bar { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 1.75rem; max-width: 540px; margin-left: auto; margin-right: auto; position: relative; }
.create-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; cursor: pointer; }
.create-step:hover .create-step-circle { transform: scale(1.08); }
.create-step-circle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem; border: 2px solid; transition: all .2s; }
.create-step-label { font-size: .72rem; margin-top: .35rem; font-weight: 600; transition: color .2s; white-space: nowrap; }
.create-step-connector { flex: 1; height: 2px; margin-top: 17px; min-width: 20px; }

.create-step-section { display: none; }
.create-step-section.active { display: block; }

.create-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.create-nav .btn { min-width: 130px; }

@keyframes cc-shake { 0%,100%{transform:translateX(0)} 15%{transform:translateX(-5px)} 30%{transform:translateX(4px)} 45%{transform:translateX(-3px)} 60%{transform:translateX(2px)} 75%{transform:translateX(-1px)} }
.cc-shake { animation: cc-shake .45s ease-in-out; }

.cc-dropzone { border: 2px dashed; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.cc-dropzone:hover { opacity: .85; }
.cc-dropzone.has-file { border-style: solid; padding: 1rem; }
.cc-dropzone .cc-dropzone-icon svg { width: 40px; height: 40px; margin-bottom: .5rem; }
.cc-dropzone-title { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.cc-dropzone-hint { font-size: .78rem; opacity: .6; }
.cc-file-preview { display: flex; flex-direction: column; align-items: center; }
.cc-file-preview-media { max-width: 100%; max-height: 200px; object-fit: contain; }
.cc-file-info { margin-top: .6rem; font-size: .82rem; text-align: center; }
.cc-file-remove { margin-top: .5rem; }

.cc-dim-status { margin: 0; padding: .6rem 1rem; font-size: .82rem; font-weight: 500; border-top: 1px solid; }

.cc-field-error { font-size: .78rem; margin-top: .25rem; display: none; }
.cc-field-warning { font-size: .78rem; margin-top: .25rem; display: none; }
.cc-field-hint { font-size: .73rem; margin-top: .2rem; }

.cc-dollar-hint { font-size: .78rem; margin-top: .2rem; display: none; }

.cc-page-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cc-page-panel { border: 1px solid; overflow: hidden; }
.cc-page-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .85rem; font-size: .82rem; font-weight: 600; border-bottom: 1px solid; }
.cc-page-panel-head .cc-page-count { font-size: .72rem; font-weight: 500; padding: .1em .45em; }
.cc-page-panel-actions { display: flex; gap: .4rem; }
.cc-page-panel-actions button { font-size: .72rem; padding: .15em .5em; cursor: pointer; border: 1px solid; background: none; font-weight: 600; }
.cc-page-list { max-height: 220px; overflow-y: auto; padding: .5rem .75rem; }
.cc-page-check { display: flex; align-items: center; gap: .45rem; padding: .2rem 0; font-size: .82rem; cursor: pointer; }
.cc-page-check input[type="checkbox"] { margin: 0; flex-shrink: 0; }
.cc-page-check-label { flex: 1; }
.cc-page-check-bid { font-size: .72rem; opacity: .55; white-space: nowrap; }
.cc-page-allbanner { display: none; padding: .4rem .75rem; font-size: .78rem; font-weight: 600; text-align: center; }
.cc-page-panel.cc-all-selected .cc-page-allbanner { display: block; }

.cc-toggle-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; font-size: .85rem; }
.cc-toggle-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }

.cc-bid-overlay { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.cc-bid-overlay.active { display: flex; }
.cc-bid-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cc-bid-box { position: relative; z-index: 1; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; }
.cc-bid-header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.15rem; border-bottom: 1px solid; font-weight: 700; }
.cc-bid-body { padding: 1.15rem; }
.cc-bid-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.cc-bid-card { text-align: center; padding: .65rem; border: 1px solid; }
.cc-bid-card-label { font-size: .72rem; font-weight: 600; opacity: .6; margin-bottom: .2rem; }
.cc-bid-card-value { font-size: 1.1rem; font-weight: 700; }
.cc-comp-bar-track { height: 8px; width: 100%; margin: .5rem 0; }
.cc-comp-bar-fill { height: 100%; transition: width .3s; }
.cc-comp-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .5em; margin-right: .4rem; }
.cc-comp-text { font-size: .82rem; }
.cc-bid-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.cc-bid-table th, .cc-bid-table td { padding: .4rem .6rem; text-align: left; }
.cc-bid-table th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid; }

.cc-review-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cc-review-table th { text-align: left; font-weight: 600; padding: .5rem .75rem; width: 35%; white-space: nowrap; vertical-align: top; }
.cc-review-table td { padding: .5rem .75rem; word-break: break-word; }
.cc-review-preview { max-width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 1rem; }
.cc-review-preview-box { background: rgba(128,128,128,.08); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cc-review-preview-label { font-size: .72rem; margin-top: .35rem; opacity: .55; }

.cc-credit-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .85rem; }
.cc-credit-row.cc-credit-total { font-weight: 700; border-top: 1px solid; margin-top: .25rem; padding-top: .5rem; }
.cc-credit-sufficient { font-size: .78rem; }
.cc-credit-insufficient { font-size: .78rem; }

.cc-template-panel { border: 1px solid; padding: .85rem; margin-top: .75rem; display: none; }
.cc-template-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font-weight: 600; font-size: .88rem; }
.cc-template-row { display: flex; align-items: flex-start; justify-content: space-between; padding: .45rem 0; cursor: pointer; }
.cc-template-row + .cc-template-row { border-top: 1px solid; }
.cc-template-row-info { flex: 1; }
.cc-template-row-title { font-weight: 600; font-size: .85rem; }
.cc-template-row-desc { font-size: .75rem; opacity: .55; }
.cc-template-empty { font-size: .82rem; opacity: .55; padding: .5rem 0; }
.cc-template-active-banner { display: none; padding: .5rem .85rem; margin-bottom: .75rem; font-size: .82rem; font-weight: 600; }

.cc-country-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.cc-country-presets button { font-size: .72rem; padding: .2em .55em; border: 1px solid; background: none; cursor: pointer; font-weight: 600; }

.theme-day .create-step-circle { border-color: #d4c8b8; color: #9a8b75; background: #faf6f0; }
.theme-day .create-step-label { color: #9a8b75; }
.theme-day .create-step.active .create-step-circle { border-color: #5a8a6a; color: #fff; background: #5a8a6a; }
.theme-day .create-step.active .create-step-label { color: #5a8a6a; }
.theme-day .create-step.completed .create-step-circle { border-color: #5a8a6a; color: #fff; background: #5a8a6a; opacity: .7; }
.theme-day .create-step.completed .create-step-label { color: #5a8a6a; }
.theme-day .create-step-connector { background: #d4c8b8; }

.theme-day .cc-dropzone { border-color: #d4c8b8; background: #faf6f0; }
.theme-day .cc-dropzone:hover, .theme-day .cc-dropzone.dragover { border-color: #5a8a6a; background: rgba(90,138,106,.04); }
.theme-day .cc-dropzone.has-file { border-color: #5a8a6a; background: rgba(90,138,106,.04); }
.theme-day .cc-dropzone-icon { color: #9a8b75; }

.theme-day .cc-dim-status { border-top-color: #e5ddd2; }
.theme-day .cc-dim-status.cc-dim-ok { color: #2d6a4f; background: rgba(90,138,106,.1); }
.theme-day .cc-dim-status.cc-dim-error { color: #991b1b; background: rgba(200,50,50,.06); }
.theme-day .cc-dim-status.cc-dim-info { color: #1e40af; background: rgba(59,130,246,.06); }

.theme-day .cc-field-error { color: #c0392b; }
.theme-day .cc-field-warning { color: #b8860b; }
.theme-day .cc-field-hint { color: #9a8b75; }
.theme-day .cc-dollar-hint { color: #5a8a6a; }

.theme-day .cc-page-panel { border-color: #e5ddd2; }
.theme-day .cc-page-panel-head { background: #f5f0e8; border-bottom-color: #e5ddd2; color: #3b2f1e; }
.theme-day .cc-page-panel-actions button { border-color: #d4c8b8; color: #5a8a6a; }
.theme-day .cc-page-panel-actions button:hover { background: rgba(90,138,106,.08); }
.theme-day .cc-page-allbanner { background: rgba(90,138,106,.1); color: #2d6a4f; }
.theme-day .cc-page-check:hover { background: #f5f0e8; }

.theme-day .cc-bid-overlay .cc-bid-backdrop { background: rgba(59,47,30,.4); }
.theme-day .cc-bid-box { background: #faf6f0; border: 1px solid #e5ddd2; }
.theme-day .cc-bid-header { border-bottom-color: #e5ddd2; color: #3b2f1e; }
.theme-day .cc-bid-card { border-color: #e5ddd2; background: #f5f0e8; }
.theme-day .cc-comp-bar-track { background: rgba(128,128,128,.12); }
.theme-day .cc-bid-table th { border-bottom-color: #e5ddd2; color: #7a6b56; }
.theme-day .cc-bid-table td { border-bottom-color: #ede7dd; }

.theme-day .cc-review-table th { color: #7a6b56; border-bottom: 1px solid #e5ddd2; }
.theme-day .cc-review-table td { border-bottom: 1px solid #ede7dd; color: #3b2f1e; }
.theme-day .cc-credit-row { color: #3b2f1e; }
.theme-day .cc-credit-total { border-top-color: #e5ddd2; }
.theme-day .cc-credit-sufficient { color: #2d6a4f; }
.theme-day .cc-credit-insufficient { color: #c0392b; }

.theme-day .cc-template-panel { border-color: #e5ddd2; background: #f5f0e8; }
.theme-day .cc-template-row + .cc-template-row { border-top-color: #e5ddd2; }
.theme-day .cc-template-active-banner { background: rgba(90,138,106,.1); color: #2d6a4f; border: 1px solid rgba(90,138,106,.2); }
.theme-day .cc-country-presets button { border-color: #d4c8b8; color: #5a8a6a; }
.theme-day .cc-country-presets button:hover { background: rgba(90,138,106,.08); }

.theme-day .form-control.cc-invalid, .theme-day .form-select.cc-invalid { border-color: #c0392b; }
.theme-day .input-prefix:has(+ .cc-invalid) { border-color: #c0392b; }
.theme-day .form-control.cc-warn { border-color: #b8860b; }
.theme-day .input-prefix:has(+ .cc-warn) { border-color: #b8860b; }

.theme-night .create-step-circle { border-color: #3d302a; color: #7a6b60; background: #1a1412; }
.theme-night .create-step-label { color: #7a6b60; }
.theme-night .create-step.active .create-step-circle { border-color: #c9865a; color: #1a1412; background: #c9865a; }
.theme-night .create-step.active .create-step-label { color: #c9865a; }
.theme-night .create-step.completed .create-step-circle { border-color: #c9865a; color: #1a1412; background: #c9865a; opacity: .7; }
.theme-night .create-step.completed .create-step-label { color: #c9865a; }
.theme-night .create-step-connector { background: #3d302a; }

.theme-night .cc-dropzone { border-color: #3d302a; background: #1a1412; }
.theme-night .cc-dropzone:hover, .theme-night .cc-dropzone.dragover { border-color: #c9865a; background: rgba(201,134,90,.04); }
.theme-night .cc-dropzone.has-file { border-color: #c9865a; background: rgba(201,134,90,.04); }
.theme-night .cc-dropzone-icon { color: #7a6b60; }

.theme-night .cc-dim-status { border-top-color: #3d302a; }
.theme-night .cc-dim-status.cc-dim-ok { color: #6ee7b7; background: rgba(16,185,129,.1); }
.theme-night .cc-dim-status.cc-dim-error { color: #fca5a5; background: rgba(239,68,68,.1); }
.theme-night .cc-dim-status.cc-dim-info { color: #93c5fd; background: rgba(59,130,246,.1); }

.theme-night .cc-field-error { color: #e07070; }
.theme-night .cc-field-warning { color: #d4a017; }
.theme-night .cc-field-hint { color: #7a6b60; }
.theme-night .cc-dollar-hint { color: #c9865a; }

.theme-night .cc-page-panel { border-color: #3d302a; }
.theme-night .cc-page-panel-head { background: #261e1a; border-bottom-color: #3d302a; color: #e8ddd4; }
.theme-night .cc-page-panel-actions button { border-color: #3d302a; color: #c9865a; }
.theme-night .cc-page-panel-actions button:hover { background: rgba(201,134,90,.1); }
.theme-night .cc-page-allbanner { background: rgba(201,134,90,.12); color: #c9865a; }
.theme-night .cc-page-check:hover { background: #261e1a; }

.theme-night .cc-bid-overlay .cc-bid-backdrop { background: rgba(0,0,0,.55); }
.theme-night .cc-bid-box { background: #1a1412; border: 1px solid #3d302a; }
.theme-night .cc-bid-header { border-bottom-color: #3d302a; color: #e8ddd4; }
.theme-night .cc-bid-card { border-color: #3d302a; background: #261e1a; }
.theme-night .cc-comp-bar-track { background: rgba(128,128,128,.2); }
.theme-night .cc-bid-table th { border-bottom-color: #3d302a; color: #998a7e; }
.theme-night .cc-bid-table td { border-bottom-color: #2e2420; }

.theme-night .cc-review-table th { color: #998a7e; border-bottom: 1px solid #3d302a; }
.theme-night .cc-review-table td { border-bottom: 1px solid #2e2420; color: #e8ddd4; }
.theme-night .cc-credit-row { color: #e8ddd4; }
.theme-night .cc-credit-total { border-top-color: #3d302a; }
.theme-night .cc-credit-sufficient { color: #6ee7b7; }
.theme-night .cc-credit-insufficient { color: #e07070; }

.theme-night .cc-template-panel { border-color: #3d302a; background: #261e1a; }
.theme-night .cc-template-row + .cc-template-row { border-top-color: #3d302a; }
.theme-night .cc-template-active-banner { background: rgba(201,134,90,.12); color: #c9865a; border: 1px solid rgba(201,134,90,.2); }
.theme-night .cc-country-presets button { border-color: #3d302a; color: #c9865a; }
.theme-night .cc-country-presets button:hover { background: rgba(201,134,90,.1); }

.theme-night .form-control.cc-invalid, .theme-night .form-select.cc-invalid { border-color: #e07070; }
.theme-night .input-prefix:has(+ .cc-invalid) { border-color: #e07070; }
.theme-night .form-control.cc-warn { border-color: #d4a017; }
.theme-night .input-prefix:has(+ .cc-warn) { border-color: #d4a017; }

@media (max-width: 767.98px) {
    .content-area { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .stat-card-value { font-size: 1.3rem; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filter-pills { overflow-x: auto; }
    .data-table { font-size: .78rem; }
    .data-table th, .data-table td { padding: .45rem .5rem; }
    .quick-action-item { flex-wrap: wrap; }
    video.creative-preview { max-width: 100%; max-height: 200px; }
    .hover-preview-overlay img,
    .hover-preview-overlay video { max-width: 70vw; max-height: 50vh; }
    .cd-perf-grid { grid-template-columns: 1fr; }
    .cd-detail-grid { grid-template-columns: 1fr; }
    .cc-page-panels { grid-template-columns: 1fr; }
    .cc-bid-grid { grid-template-columns: 1fr; }
    .create-step-bar { gap: 0; }
    .create-step-label { font-size: .65rem; }
    .create-step-circle { width: 30px; height: 30px; font-size: .78rem; }
    .create-step-connector { margin-top: 14px; }
    .cc-country-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-lib-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-bid-inline-row { flex-wrap: wrap; }
}

.cc-creative-tabs { display: flex; gap: 0; margin-bottom: 1rem; border-bottom: 2px solid; }
.cc-creative-tab { background: none; border: none; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; cursor: pointer; position: relative; bottom: -2px; border-bottom: 2px solid transparent; opacity: .55; transition: all .15s; }
.cc-creative-tab:hover { opacity: .8; }
.cc-creative-tab.active { opacity: 1; }
.cc-creative-source { display: none; }
.cc-creative-source.active { display: block; }
.cc-lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.cc-lib-card { border: 2px solid transparent; cursor: pointer; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.cc-lib-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.cc-lib-card.selected { border-width: 2px; }
.cc-lib-card-thumb { height: 80px; display: flex; align-items: center; justify-content: center; position: relative; }
.cc-lib-card-video-icon { font-size: 1.5rem; position: absolute; opacity: .7; }
.cc-lib-card-meta { padding: .3rem .45rem; font-size: .7rem; display: flex; justify-content: space-between; }
.cc-lib-card-dims { font-weight: 600; }
.cc-lib-card-ext { opacity: .6; }
.cc-lib-selected-info { font-size: .82rem; padding: .5rem 0; }
.cc-lib-deselect { font-size: .78rem; }
.cc-lib-empty { font-size: .82rem; opacity: .55; padding: .75rem 0; }
.cc-lib-card-count { font-size: .72rem; opacity: .6; }

.cc-tpl-bar { display: flex; gap: .4rem; margin-bottom: .75rem; }

.cc-country-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; max-height: 260px; overflow-y: auto; padding: .25rem 0; }
.cc-country-tile { padding: .3rem .5rem; font-size: .75rem; cursor: pointer; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; transition: all .12s; user-select: none; }
.cc-country-tile:hover { opacity: .8; }
.cc-map-wrap { margin-bottom: .75rem; }
.cc-world-map { width: 100%; height: auto; max-height: 220px; }
.cc-map-dot circle { transition: fill .15s, r .15s; }
.cc-map-label { font-size: 7px; font-weight: 700; pointer-events: none; display: none; }
.cc-map-dot:hover .cc-map-label { display: block; }
.cc-map-dot:hover circle { r: 10; }

.cc-bid-inline { margin: .75rem 0 .25rem; padding: .6rem .85rem; font-size: .82rem; }
.cc-bid-inline-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cc-bid-inline-label { font-size: .7rem; font-weight: 600; opacity: .55; text-transform: uppercase; letter-spacing: .03em; }
.cc-bid-inline-val { font-weight: 700; font-size: .88rem; }
.cc-bid-inline-badge { font-size: .7rem; font-weight: 700; padding: .12em .45em; margin-left: auto; }
.cc-bid-inline-detail { font-size: .73rem; white-space: nowrap; }

.cc-credit-inline { margin: .5rem 0; padding: .5rem .85rem; font-size: .82rem; }
.cc-credit-inline-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cc-credit-inline-link { font-size: .78rem; margin-left: auto; white-space: nowrap; }

.cc-input-group { display: flex; align-items: stretch; }
.cc-input-group .input-prefix { display: flex; align-items: center; padding: 0 .6rem; font-weight: 600; font-size: .88rem; border-right: none; white-space: nowrap; min-height: 100%; }
.cc-input-group .form-control { border-left: none; flex: 1; min-width: 0; }

.theme-day .cc-creative-tabs { border-bottom-color: #e5ddd2; }
.theme-day .cc-creative-tab { color: #7a6b56; }
.theme-day .cc-creative-tab.active { color: #5a8a6a; border-bottom-color: #5a8a6a; }
.theme-day .cc-lib-card { background: #f5f0e8; border-color: #e5ddd2; }
.theme-day .cc-lib-card.selected { border-color: #5a8a6a; box-shadow: 0 0 0 1px #5a8a6a; }
.theme-day .cc-lib-card-thumb { background: rgba(128,128,128,.06); }
.theme-day .cc-country-tile { background: #f5f0e8; color: #3b2f1e; border-color: #e5ddd2; }
.theme-day .cc-country-tile.selected { background: #5a8a6a; color: #fff; border-color: #5a8a6a; }
.theme-day .cc-country-tile:hover { background: rgba(90,138,106,.1); }
.theme-day .cc-country-tile.selected:hover { background: #4e7a5e; }
.theme-day .cc-map-dot circle { fill: #d4c8b8; stroke: #b8a892; stroke-width: 1; }
.theme-day .cc-map-dot.selected circle { fill: #5a8a6a; stroke: #3e6e4e; }
.theme-day .cc-map-dot:hover circle { fill: #b8a892; }
.theme-day .cc-map-dot.selected:hover circle { fill: #4e7a5e; }
.theme-day .cc-map-label { fill: #3b2f1e; }
.theme-day .cc-bid-inline { background: rgba(90,138,106,.06); border: 1px solid rgba(90,138,106,.15); }
.theme-day .cc-credit-inline { background: rgba(59,130,246,.04); border: 1px solid rgba(59,130,246,.12); }

.theme-night .cc-creative-tabs { border-bottom-color: #3d302a; }
.theme-night .cc-creative-tab { color: #998a7e; }
.theme-night .cc-creative-tab.active { color: #c9865a; border-bottom-color: #c9865a; }
.theme-night .cc-lib-card { background: #261e1a; border-color: #3d302a; }
.theme-night .cc-lib-card.selected { border-color: #c9865a; box-shadow: 0 0 0 1px #c9865a; }
.theme-night .cc-lib-card-thumb { background: rgba(128,128,128,.1); }
.theme-night .cc-country-tile { background: #261e1a; color: #e8ddd4; border-color: #3d302a; }
.theme-night .cc-country-tile.selected { background: #c9865a; color: #1a1412; border-color: #c9865a; }
.theme-night .cc-country-tile:hover { background: rgba(201,134,90,.12); }
.theme-night .cc-country-tile.selected:hover { background: #b5764e; }
.theme-night .cc-map-dot circle { fill: #3d302a; stroke: #5a4a3e; stroke-width: 1; }
.theme-night .cc-map-dot.selected circle { fill: #c9865a; stroke: #a06e48; }
.theme-night .cc-map-dot:hover circle { fill: #5a4a3e; }
.theme-night .cc-map-dot.selected:hover circle { fill: #b5764e; }
.theme-night .cc-map-label { fill: #e8ddd4; }
.theme-night .cc-bid-inline { background: rgba(201,134,90,.06); border: 1px solid rgba(201,134,90,.15); }
.theme-night .cc-credit-inline { background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.12); }

.recharge-credit-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .88rem;
    border: 1px solid;
}

.recharge-info-bar {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: .83rem;
    line-height: 1.5;
    border: 1px solid;
}
.recharge-info-icon { flex-shrink: 0; margin-top: .1rem; }

.recharge-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.recharge-options { margin-bottom: 1.75rem; }

.recharge-card { margin-bottom: 0; display: flex; flex-direction: column; }
.recharge-card .panel-body { display: flex; flex-direction: column; flex: 1; }

.recharge-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.recharge-card-icon { flex-shrink: 0; opacity: .7; }
.recharge-card-title { margin: 0; font-size: .95rem; font-weight: 700; }

.recharge-card-desc {
    font-size: .82rem;
    line-height: 1.55;
    margin: 0 0 .85rem;
}

.recharge-methods-label {
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .45rem;
}

.recharge-methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .85rem;
}
.recharge-method-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .2em .55em;
    border: 1px solid;
    white-space: nowrap;
}

.recharge-card-note {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: .78rem;
    line-height: 1.45;
    margin-bottom: .85rem;
    padding: .5rem .65rem;
    border: 1px solid;
}
.recharge-card-note-warn { font-style: italic; }

.recharge-card-disabled { opacity: .5; pointer-events: none; position: relative; }
.recharge-card-unavailable {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: .85rem;
    padding: .55rem .7rem;
    border: 1px solid;
}

.recharge-card form { margin-top: auto; }
.recharge-btn { width: 100%; justify-content: center; margin-top: auto; }

.recharge-rules-section { margin-bottom: 1.5rem; }
.recharge-rules-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: .82rem;
    line-height: 1.6;
}
.recharge-rules-list li { margin-bottom: .45rem; }
.recharge-rules-list li:last-child { margin-bottom: 0; }

.recharge-prohibited-intro {
    font-size: .82rem;
    margin: 0 0 .65rem;
    font-weight: 600;
}

.recharge-policy-bar {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8rem;
    line-height: 1.5;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid;
    font-weight: 600;
}

.recharge-privacy-note {
    font-size: .73rem;
    line-height: 1.55;
    text-align: center;
    padding: .5rem 1rem 1rem;
}

.theme-day .recharge-credit-bar { background: rgba(90,138,106,.06); border-color: rgba(90,138,106,.18); color: #3b2f1e; }
.theme-day .recharge-info-bar { background: rgba(59,130,246,.04); border-color: rgba(59,130,246,.12); color: #3b2f1e; }
.theme-day .recharge-info-icon { color: #5a8a6a; }
.theme-day .recharge-section-title { color: #3b2f1e; }
.theme-day .recharge-card-icon { color: #5a8a6a; }
.theme-day .recharge-card-title { color: #3b2f1e; }
.theme-day .recharge-card-desc { color: #5a4a35; }
.theme-day .recharge-methods-label { color: #7a6b56; }
.theme-day .recharge-method-tag { background: #f5f0e8; border-color: #d4c8b8; color: #5a4a35; }
.theme-day .recharge-card-note { background: rgba(90,138,106,.06); border-color: rgba(90,138,106,.15); color: #3d7050; }
.theme-day .recharge-card-note-warn { background: rgba(201,168,90,.08); border-color: rgba(201,168,90,.2); color: #8a6d15; }
.theme-day .recharge-card-unavailable { background: rgba(200,80,80,.06); border-color: rgba(200,80,80,.18); color: #8a4040; }
.theme-day .recharge-policy-bar { background: rgba(200,80,80,.04); border-color: rgba(200,80,80,.15); color: #8a4040; }
.theme-day .recharge-privacy-note { color: #9a8b75; }

.theme-night .recharge-credit-bar { background: rgba(201,134,90,.08); border-color: rgba(201,134,90,.2); color: #e8ddd4; }
.theme-night .recharge-info-bar { background: rgba(59,130,246,.06); border-color: rgba(59,130,246,.12); color: #e8ddd4; }
.theme-night .recharge-info-icon { color: #c9865a; }
.theme-night .recharge-section-title { color: #e8ddd4; }
.theme-night .recharge-card-icon { color: #c9865a; }
.theme-night .recharge-card-title { color: #e8ddd4; }
.theme-night .recharge-card-desc { color: #bfb0a2; }
.theme-night .recharge-methods-label { color: #998a7e; }
.theme-night .recharge-method-tag { background: #1f1915; border-color: #3d302a; color: #bfb0a2; }
.theme-night .recharge-card-note { background: rgba(90,138,106,.08); border-color: rgba(90,138,106,.15); color: #6ee7b7; }
.theme-night .recharge-card-note-warn { background: rgba(201,168,90,.08); border-color: rgba(201,168,90,.18); color: #d4a650; }
.theme-night .recharge-card-unavailable { background: rgba(200,80,80,.08); border-color: rgba(200,80,80,.18); color: #e07070; }
.theme-night .recharge-policy-bar { background: rgba(200,80,80,.06); border-color: rgba(200,80,80,.15); color: #e07070; }
.theme-night .recharge-privacy-note { color: #7a6b60; }

@media (max-width: 767.98px) {
    .recharge-options.grid-2 { grid-template-columns: 1fr; }
    .recharge-rules-section .grid-2 { grid-template-columns: 1fr; }
}

.notif-settings-list { display: flex; flex-direction: column; gap: 0; }

.notif-setting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 0;
    border-bottom: 1px solid transparent;
}
.notif-setting-row:last-child { border-bottom: none; }

.notif-setting-info { flex: 1; min-width: 0; }
.notif-setting-label { font-size: .85rem; font-weight: 600; margin-bottom: .15rem; }
.notif-setting-desc { font-size: .78rem; opacity: .6; line-height: 1.4; }

.notif-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.notif-toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(128,128,128,.3);
    border-radius: 11px;
    transition: background .2s;
}
.notif-toggle-track::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.notif-toggle input:checked + .notif-toggle-track {
    background: #5a8a6a;
}
.notif-toggle input:checked + .notif-toggle-track::after {
    transform: translateX(18px);
}
.notif-toggle input:focus-visible + .notif-toggle-track {
    box-shadow: 0 0 0 2px rgba(90,138,106,.4);
}

.notif-privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: .8rem;
    line-height: 1.5;
}

.theme-day .notif-setting-row { border-bottom-color: #ede7dd; }
.theme-day .notif-setting-label { color: #3d3429; }
.theme-day .notif-privacy-notice { background: rgba(90,138,106,.06); border: 1px solid rgba(90,138,106,.15); color: #4a5a4e; }
.theme-day .notif-privacy-notice svg { color: #5a8a6a; }

.theme-night .notif-setting-row { border-bottom-color: #3d302a; }
.theme-night .notif-setting-label { color: #e8ddd4; }
.theme-night .notif-toggle-track { background: rgba(128,128,128,.4); }
.theme-night .notif-toggle-track::after { background: #e8ddd4; }
.theme-night .notif-toggle input:checked + .notif-toggle-track { background: #5a8a6a; }
.theme-night .notif-privacy-notice { background: rgba(90,138,106,.08); border: 1px solid rgba(90,138,106,.15); color: #bfb0a2; }
.theme-night .notif-privacy-notice svg { color: #6ee7b7; }

.cd-direct-link-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: .5rem .75rem;
    border-radius: 4px;
    font-size: .78rem;
}
.cd-direct-link-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: .75rem;
}
.cd-copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .6rem;
    font-size: .72rem;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.cd-copy-link-btn svg { width: 13px; height: 13px; }

.theme-day .cd-direct-link-row { background: rgba(90,138,106,.06); border: 1px solid rgba(90,138,106,.1); }
.theme-day .cd-direct-link-url { color: #5a6b56; }
.theme-day .cd-copy-link-btn { color: #5a8a6a; border-color: rgba(90,138,106,.2); }
.theme-day .cd-copy-link-btn:hover { background: rgba(90,138,106,.08); }

.theme-night .cd-direct-link-row { background: rgba(90,138,106,.08); border: 1px solid rgba(90,138,106,.12); }
.theme-night .cd-direct-link-url { color: #bfb0a2; }
.theme-night .cd-copy-link-btn { color: #6ee7b7; border-color: rgba(110,231,183,.2); }
.theme-night .cd-copy-link-btn:hover { background: rgba(110,231,183,.08); }

.metrics-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .65rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    font-size: .78rem;
    line-height: 1.5;
}
.metrics-disclaimer svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; }
.theme-day .metrics-disclaimer { background: rgba(212,160,23,.06); border: 1px solid rgba(212,160,23,.15); color: #7a6b56; }
.theme-day .metrics-disclaimer svg { color: #d4a017; }
.theme-night .metrics-disclaimer { background: rgba(212,160,23,.08); border: 1px solid rgba(212,160,23,.12); color: #bfb0a2; }
.theme-night .metrics-disclaimer svg { color: #d4a017; }

.metrics-disclaimer-inline {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    opacity: .6;
    margin-top: .5rem;
}
.metrics-disclaimer-inline svg { width: 12px; height: 12px; }

.metrics-chart-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.metrics-chart-cell {
    flex: 1;
    min-width: 180px;
}
.metrics-chart-label {
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .35rem;
    text-align: center;
}

.cc-mode-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    margin-bottom: .5rem;
}
.cc-mode-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
}
.cc-mode-label {
    font-size: .82rem;
    font-weight: 600;
}
.cc-mode-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    transition: background .2s;
}
.cc-mode-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .2s;
}
.cc-mode-switch.active .cc-mode-knob {
    transform: translateX(16px);
}
.cc-mode-desc {
    font-size: .78rem;
    opacity: .55;
}

.theme-day .cc-mode-switch { background: rgba(128,128,128,.25); }
.theme-day .cc-mode-switch.active { background: #5a8a6a; }
.theme-day .cc-mode-knob { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.theme-night .cc-mode-switch { background: rgba(128,128,128,.4); }
.theme-night .cc-mode-switch.active { background: #c9865a; }
.theme-night .cc-mode-knob { background: #e8ddd4; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.cc-advanced-panel {
    margin-top: 1rem;
    padding: .75rem;
    border-radius: 4px;
}
.cc-adv-panel-header {
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.cc-adv-hint {
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .35rem;
    opacity: .7;
}
.cc-adv-bars { display: flex; flex-direction: column; gap: .3rem; }
.cc-adv-bar-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
}
.cc-adv-bar-label {
    min-width: 80px;
    flex-shrink: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc-adv-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.cc-adv-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease;
}
.cc-adv-bar-val {
    min-width: 60px;
    text-align: right;
    font-size: .72rem;
    white-space: nowrap;
}
.cc-adv-bar-val small { opacity: .6; }

.cc-adv-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.cc-adv-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .55rem;
    border-radius: 3px;
    font-size: .75rem;
}

.cc-adv-hourly-grid {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 80px;
    padding-top: .25rem;
}
.cc-adv-hourly-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.cc-adv-hourly-fill {
    width: 100%;
    border-radius: 2px 2px 0 0;
    min-height: 1px;
    transition: height .3s ease;
}
.cc-adv-hourly-label {
    font-size: .6rem;
    margin-top: 2px;
    opacity: .5;
}

.theme-day .cc-advanced-panel { background: rgba(90,138,106,.04); border: 1px solid rgba(90,138,106,.1); }
.theme-day .cc-adv-bar-track { background: rgba(128,128,128,.12); }
.theme-day .cc-adv-bar-fill { background: #5a8a6a; }
.theme-day .cc-adv-tag { background: rgba(90,138,106,.08); color: #5a6b56; }
.theme-day .cc-adv-hourly-fill { background: #5a8a6a; }

.theme-night .cc-advanced-panel { background: rgba(201,134,90,.04); border: 1px solid rgba(201,134,90,.1); }
.theme-night .cc-adv-bar-track { background: rgba(128,128,128,.2); }
.theme-night .cc-adv-bar-fill { background: #c9865a; }
.theme-night .cc-adv-tag { background: rgba(201,134,90,.1); color: #bfb0a2; }
.theme-night .cc-adv-hourly-fill { background: #c9865a; }

@media (max-width: 767.98px) {
    .metrics-chart-row { flex-direction: column; }
    .cc-mode-desc { display: none; }
    .cc-adv-bar-label { min-width: 60px; }
}

.reactivate-form { padding: .25rem 0; }
.reactivate-desc { font-size: .85rem; line-height: 1.5; margin-bottom: 1rem; opacity: .85; }
.reactivate-credit-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem .85rem; border-radius: 2px; border: 1px solid;
    margin-bottom: 1rem; font-size: .85rem;
}
.reactivate-credit-label { font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .3px; opacity: .7; }
.reactivate-credit-value { font-weight: 700; font-size: 1rem; }
.reactivate-hint { font-size: .78rem; margin-top: .35rem; min-height: 1.1em; }
.reactivate-hint-error { color: #c9302c; }
.reactivate-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid; }

.theme-day .reactivate-credit-row { background: rgba(90,138,106,.06); border-color: rgba(90,138,106,.2); }
.theme-day .reactivate-credit-value { color: #3d6b4a; }
.theme-day .reactivate-actions { border-top-color: #e5ddd2; }

.theme-night .reactivate-credit-row { background: rgba(201,134,90,.06); border-color: rgba(201,134,90,.2); }
.theme-night .reactivate-credit-value { color: #c9865a; }
.theme-night .reactivate-actions { border-top-color: #3d302a; }

/* Welcome announcement box */
.welcome-announce {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    font-size: .78rem;
    line-height: 1.55;
}
.welcome-announce svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; opacity: .65; }
.welcome-announce-body { flex: 1; min-width: 0; }
.welcome-announce-title { font-weight: 700; font-size: .8rem; margin-bottom: .3rem; }
.welcome-announce ul { margin: .25rem 0 .4rem; padding-left: 1.15rem; }
.welcome-announce li { margin-bottom: .1rem; }
.welcome-announce-footer { opacity: .75; font-size: .73rem; }
.welcome-announce-footer a { font-weight: 600; }
.welcome-announce .btn-icon { align-self: flex-start; padding: .2rem; flex-shrink: 0; }

.theme-day .welcome-announce { background: rgba(90,138,106,.06); border-color: rgba(90,138,106,.18); color: #3b2f1e; }
.theme-day .welcome-announce svg.wa-icon { color: #5a8a6a; }
.theme-night .welcome-announce { background: rgba(201,134,90,.06); border-color: rgba(201,134,90,.18); color: #e8ddd4; }
.theme-night .welcome-announce svg.wa-icon { color: #c9865a; }

.sim-controls { display: flex; flex-direction: column; gap: .75rem; }
.sim-controls-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.sim-controls-row .form-group { min-width: 0; }

.sim-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 767px) { .sim-summary-grid { grid-template-columns: repeat(2, 1fr); } }

.sim-val-winning { color: #27ae60; }
.sim-val-outbid { color: #c0392b; }

.theme-night .sim-val-winning { color: #4cbb7c; }
.theme-night .sim-val-outbid { color: #e06050; }

.sim-status-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 4px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sim-status-badge svg { width: 13px; height: 13px; }
.sim-status-winning { background: rgba(39,174,96,.1); color: #27ae60; }
.sim-status-outbid { background: rgba(192,57,43,.1); color: #c0392b; }
.sim-status-none { background: rgba(130,120,110,.1); color: #82786e; }

.theme-night .sim-status-winning { background: rgba(76,187,124,.12); color: #4cbb7c; }
.theme-night .sim-status-outbid { background: rgba(224,96,80,.12); color: #e06050; }
.theme-night .sim-status-none { background: rgba(180,170,160,.1); color: #a09890; }

.sim-campaign-id { font-family: monospace; font-size: .8rem; padding: .1rem .35rem; border-radius: 3px; background: rgba(130,120,110,.08); }
.theme-night .sim-campaign-id { background: rgba(200,190,180,.08); }

.sim-lookup-info { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.sim-lookup-row { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .85rem; }
.sim-lookup-row > div { min-width: 180px; }
.sim-lookup-warning { background: rgba(230,126,34,.1); border: 1px solid rgba(230,126,34,.25); border-radius: 6px; padding: .6rem 1rem; font-size: .83rem; color: #d35400; margin-bottom: .5rem; }
.theme-night .sim-lookup-warning { background: rgba(230,126,34,.08); border-color: rgba(230,126,34,.2); color: #f0a060; }
