:root {
    color-scheme: light;
    --client-ink: #1d2939;
    --client-muted: #728094;
    --client-line: #e5eaf0;
    --client-surface: #fff;
    --client-canvas: #f5f7fa;
    --client-accent: #16765a;
    --client-accent-dark: #0f6048;
    --client-pale: #e8f5ef;
    --client-red: #a43b4a;
    --client-shadow: 0 12px 32px rgba(34, 51, 67, .055);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--client-ink); background: var(--client-canvas); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
.client-topbar { min-height: 68px; padding: 0 clamp(18px, 5vw, 70px); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--client-surface); border-bottom: 1px solid var(--client-line); }
.client-brand { color: var(--client-ink); font-size: 19px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; white-space: nowrap; }
.client-brand span { color: var(--client-accent); }
.client-brand small { margin-left: 7px; color: #98a4b2; font-size: 9px; letter-spacing: 1px; }
.client-topbar nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.client-topbar nav > a, .client-nav-button { color: #657386; font-size: 13px; font-weight: 650; text-decoration: none; }
.client-topbar nav > a:hover, .client-nav-button:hover, .client-link:hover { color: var(--client-accent); }
.client-inline-form { display: inline-flex; margin: 0; }
.client-nav-button, .client-row-actions button { padding: 0; background: none; border: 0; cursor: pointer; }
.client-shell { width: min(1120px, calc(100% - 36px)); margin: 35px auto 65px; }
.client-auth-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; margin-top: 0; margin-bottom: 0; }
.client-auth-card { width: min(455px, 100%); padding: 36px; background: var(--client-surface); border: 1px solid var(--client-line); border-radius: 17px; box-shadow: var(--client-shadow); }
.client-auth-card h1, .client-page-heading h1, .client-welcome h1 { margin: 4px 0 7px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.9px; }
.client-muted { color: var(--client-muted); }
.client-auth-card > .client-muted { margin: 0 0 24px; }
.client-eyebrow { color: var(--client-accent); font-size: 10px; font-weight: 800; letter-spacing: 1.25px; }
.client-form-stack, .client-form-grid { display: grid; gap: 17px; }
.client-form-stack label, .client-form-grid label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.client-form-stack input, .client-form-grid input:not([type="checkbox"]):not([type="file"]):not([type="color"]), .client-form-grid select { width: 100%; min-height: 44px; padding: 0 12px; color: var(--client-ink); background: white; border: 1px solid #dce3eb; border-radius: 8px; outline: none; }
.client-form-grid input[type="file"] { width: 100%; padding: 10px; color: #526174; background: white; border: 1px dashed #cbd4df; border-radius: 8px; font-size: 12px; }
.client-form-grid input[type="color"] { width: 100%; height: 45px; padding: 4px; background: white; border: 1px solid #dce3eb; border-radius: 8px; }
.client-form-stack input:focus, .client-form-grid input:focus, .client-form-grid select:focus { border-color: #6eb79c; box-shadow: 0 0 0 3px rgba(22, 118, 90, .12); }
.client-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.client-button:hover { transform: translateY(-1px); }
.client-button-main { color: white; background: var(--client-accent); }
.client-button-main:hover { background: var(--client-accent-dark); }
.client-button-light { color: #435165; background: white; border-color: var(--client-line); }
.client-button-light:hover { border-color: #c3cdd7; }
.client-form-stack .client-button { width: 100%; margin-top: 2px; }
.client-link { color: var(--client-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.client-alert { margin: 0 0 17px; padding: 12px 14px; color: var(--client-red); background: #fff0f1; border: 1px solid #f5d8dc; border-radius: 8px; font-size: 13px; }
.client-welcome, .client-page-heading { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.client-welcome p, .client-page-heading p { margin: 0; }
.client-code-chip { padding: 8px 12px; color: #546477; background: #fff; border: 1px solid var(--client-line); border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.public-link-card { margin-bottom: 17px; padding: 21px 23px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: white; background: linear-gradient(120deg, #16765a, #238b69); border-radius: 13px; box-shadow: 0 10px 25px rgba(22, 118, 90, .14); }
.public-link-card .client-eyebrow { color: #b7ebd6; }
.public-link-card a:not(.client-button) { display: block; width: fit-content; margin-top: 4px; color: white; font-size: 19px; font-weight: 750; text-decoration: none; word-break: break-all; }
.public-link-card p { margin: 4px 0 0; color: #d2efe3; font-size: 12px; }
.client-button-light { flex: 0 0 auto; }
.client-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.client-stat, .client-panel, .client-status-panel, .client-action-card { background: var(--client-surface); border: 1px solid var(--client-line); border-radius: 12px; box-shadow: var(--client-shadow); }
.client-stat { padding: 17px 18px; display: grid; gap: 5px; }
.client-stat > span { color: var(--client-muted); font-size: 12px; font-weight: 650; }
.client-stat strong { display: flex; align-items: center; gap: 7px; font-size: 22px; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.is-on { background: #27a878; box-shadow: 0 0 0 3px #dcf4e9; }
.is-off { background: #a3adba; box-shadow: 0 0 0 3px #eef1f4; }
.client-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.client-action-card { min-height: 104px; padding: 17px 19px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 11px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.client-action-card:hover { transform: translateY(-2px); border-color: #b7d8cb; }
.client-action-card strong { align-self: end; font-size: 14px; }
.client-action-card small { grid-column: 2; color: var(--client-muted); font-size: 12px; }
.action-icon { width: 34px; height: 34px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--client-accent); background: var(--client-pale); border-radius: 10px; font-size: 17px; }
.client-status-panel { padding: 19px 21px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.client-status-panel h2 { margin: 0 0 3px; font-size: 15px; }
.client-status-panel p { margin: 0; font-size: 12px; }
.client-button-pause { color: #7e4b28; background: #fff3e7; }
.client-button-pause:hover { background: #ffe9d2; }
.client-panel { overflow: hidden; }
.client-form-panel { max-width: 850px; padding: 23px; }
.client-prize-form-panel { max-width: 720px; }
.client-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.client-span-two { grid-column: 1 / -1; }
.client-section-title { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid #edf0f3; }
.client-section-title:not(:first-child) { margin-top: 5px; }
.client-section-title h2 { margin: 0; font-size: 15px; }
.client-section-title p { margin: 2px 0 0; color: var(--client-muted); font-size: 12px; }
.client-checkbox { display: flex !important; align-items: center; gap: 10px !important; min-height: 35px; }
.client-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--client-accent); }
.client-form-actions { grid-column: 1 / -1; padding-top: 5px; }
.current-logo, .client-current-prize { display: flex; align-items: center; gap: 10px; color: var(--client-muted); font-size: 12px; }
.current-logo img, .client-current-prize img { width: 48px; height: 48px; object-fit: contain; background: #f6f8fa; border: 1px solid var(--client-line); border-radius: 8px; }
.client-optional, .client-form-grid small { color: #8a96a6; font-size: 11px; font-weight: 500; }
.client-form-grid small { margin-top: -4px; }
.client-readonly { margin: 0; color: var(--client-muted); font-size: 12px; }
.client-table-wrap { width: 100%; overflow-x: auto; }
.client-table { width: 100%; border-collapse: collapse; text-align: left; }
.client-table th, .client-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.client-table th { color: #8995a5; background: #fafbfd; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.client-table td { color: #455265; font-size: 13px; }
.client-table tbody tr:last-child td { border-bottom: 0; }
.client-prize-name { min-width: 140px; display: flex; align-items: center; gap: 9px; }
.client-prize-name img { width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--client-line); border-radius: 7px; }
.client-prize-status { padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.prize-on { color: #14714f; background: var(--client-pale); }
.prize-off { color: #697587; background: #edf0f3; }
.client-row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.client-row-actions a, .client-row-actions button { color: var(--client-accent); font-size: 12px; font-weight: 750; text-decoration: none; }
.client-row-actions .danger-link { color: var(--client-red); }
.client-empty { padding: 36px !important; color: var(--client-muted) !important; text-align: center; }

@media (max-width: 760px) {
    .client-topbar { padding: 12px 17px; align-items: flex-start; }
    .client-topbar nav { justify-content: flex-end; flex-wrap: wrap; gap: 8px 13px; }
    .client-topbar nav > a, .client-nav-button { font-size: 11px; }
    .client-shell { width: min(100% - 26px, 600px); margin-top: 24px; }
    .client-auth-shell { min-height: calc(100vh - 68px); margin-top: 0; }
    .client-auth-card { padding: 29px 23px; }
    .client-welcome, .client-page-heading { align-items: flex-start; flex-direction: column; }
    .client-code-chip { align-self: flex-start; }
    .client-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .client-stat { padding: 13px; }
    .client-stat strong { font-size: 19px; }
    .client-status-panel { align-items: flex-start; flex-direction: column; }
    .client-status-panel .client-button { width: 100%; }
    .client-form-panel { padding: 17px; }
}
@media (max-width: 480px) {
    .client-topbar { align-items: center; gap: 8px; }
    .client-brand { font-size: 16px; }
    .client-brand small { display: block; margin: 4px 0 0; font-size: 8px; }
    .client-topbar nav { gap: 7px 9px; }
    .client-topbar nav > a, .client-nav-button { font-size: 10px; }
    .public-link-card { align-items: flex-start; flex-direction: column; padding: 18px; }
    .client-stat-grid, .client-action-grid, .client-form-grid { grid-template-columns: 1fr; }
    .client-section-title, .client-span-two, .client-form-actions { grid-column: auto; }
    .current-logo { grid-column: auto; }
}

.qr-management-card { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 3rem); align-items: center; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--client-border, #e5e7eb); border-radius: 1.25rem; background: #fff; box-shadow: 0 1rem 2.5rem rgb(29 40 58 / 7%); }
.qr-preview-panel { display: grid; justify-items: center; padding: 1.25rem; border-radius: 1rem; background: #f7f8fa; }
.campaign-qr-image { display: block; width: min(100%, 19rem); height: auto; padding: .5rem; background: #fff; }
.qr-code-label { margin: .75rem 0 0; color: #687386; font-size: .88rem; }
.qr-actions-panel h2 { margin: 0; color: #202b3b; font-size: 1.4rem; }
.qr-actions-panel > p { max-width: 38rem; color: #687386; line-height: 1.6; }
.qr-url-label { display: block; margin: 1.35rem 0 .4rem; color: #344054; font-size: .88rem; font-weight: 700; }
.qr-url-row { display: flex; gap: .5rem; }
.qr-url-row input { min-width: 0; flex: 1; padding: .75rem; border: 1px solid #d6dbe3; border-radius: .55rem; background: #fff; color: #344054; font: inherit; }
.qr-copy-feedback { min-height: 1.2rem; margin: .3rem 0; color: #14734c; font-size: .83rem; }
.qr-action-buttons { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.client-button-secondary { border: 1px solid #cfd6df; background: #fff; color: #344054; }
.client-button-secondary:hover { background: #f6f8fa; }
@media (max-width: 760px) { .qr-management-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .qr-url-row, .qr-action-buttons { flex-direction: column; }
    .qr-url-row .client-button, .qr-action-buttons .client-button { width: 100%; }
}
