/* Adaptations for this application's account screens.
   Base ShopAds styles: public/css/auth-portal.css, copied from shop-myads. */
html { color-scheme: light; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:hover { text-decoration: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 18px; color: #89000a; background: #fff; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.register-prompt { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.register-prompt a, .text-link { color: var(--brand-dark); font-weight: 600; }
.register-prompt a:hover, .panel-link:hover, .back-link:hover, .text-link:hover { text-decoration: underline; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.register-brand { margin: 0 0 20px; }
.register-brand .portal-brand__logo { width: 38px; height: 38px; }
.register-brand .portal-brand__text { font-size: 24px; }
.notice { margin: 20px 0; padding: 14px 16px; border: 1px solid; border-radius: 6px; font-size: 13px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice.error { color: #a11220; background: #fff1f2; border-color: #ffcbd1; }
.notice.success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.portal-main { display: flex; flex-direction: column; min-width: 0; }
.portal-content { flex: 1; width: 100%; }
.portal-sidebar__inner { display: flex; flex-direction: column; }
.portal-nav { flex: 1; align-content: start; }
.sidebar-account { margin-top: 48px; padding: 16px 12px; border: 1px solid #ffcbd1; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.sidebar-account small { display: block; margin-top: 5px; font-size: 11px; color: #64748b; font-weight: 400; }
.sidebar-logout { margin-top: 12px; }
.sidebar-logout .button { width: 100%; }
.portal-topbar__actions { flex-direction: row; align-items: center; }
.portal-user__name { white-space: nowrap; }
.portal-nav__icon-wrap .fa-whatsapp { width: 22px; text-align: center; font-size: 22px; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 28px; font-size: 12px; color: #64748b; border-top: 1px solid var(--border); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
h2 { margin-bottom: 8px; font-size: 18px; line-height: 1.4; }
.muted, small { color: #64748b; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 4px 0 28px; }
.page-heading p { margin-bottom: 0; font-size: 14px; }
.page-heading .eyebrow { display: block; font-size: 11px; margin-bottom: 8px; color: #64748b; letter-spacing: .06em; }
.accent-dot { color: var(--brand-primary); }
.date-label { border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; font-size: 12px; white-space: nowrap; background: #fff; color: #64748b; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid transparent; border-radius: 4px; padding: 10px 16px; background: var(--brand-primary); color: #fff; font-size: 13px; font-weight: 600; }
.button:hover { background: var(--brand-dark); }
.button.secondary { border-color: #d9d9d9; background: #fff; color: #475569; }
.button.secondary:hover { color: var(--brand-dark); border-color: var(--brand-primary); background: #fff7f8; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.account-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; padding: 24px; border: 1px solid #ffcbd1; border-radius: 6px; background: linear-gradient(105deg, var(--brand-soft), #fff7f8); }
.account-banner h2 { font-size: 18px; margin-bottom: 6px; }
.account-banner p { color: #64748b; font-size: 13px; margin-bottom: 0; }
.account-banner .button { flex-shrink: 0; }
.section-label, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-label { margin-bottom: 16px; }
.section-label h2 { margin: 0; }
.section-label > span { color: #64748b; font-size: 11px; }
.card { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 1px 4px rgb(0 0 0 / 3%); min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { border-top: 3px solid var(--brand-primary); }
.stat-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #596579; font-size: 13px; }
.stat-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--brand-soft); color: var(--brand-primary); border-radius: 6px; font-size: 20px; }
.stat { display: block; margin: 12px 0 6px; font-size: 32px; font-weight: 700; color: var(--brand-dark); }
.stat-card small { font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #23834d; vertical-align: middle; }
.table-card { padding: 0; overflow: hidden; }
.section-heading { padding: 24px; }
.section-heading .eyebrow, .profile .eyebrow { display: block; font-size: 10px; color: #64748b; letter-spacing: .06em; margin-bottom: 8px; }
.section-heading p { margin: 0; font-size: 12px; }
.text-link { font-size: 13px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { padding: 14px 24px; background: #fafafa; color: #64748b; font-size: 11px; font-weight: 600; border-block: 1px solid var(--border); }
td { padding: 16px 24px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffafb; }
.person { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; text-transform: uppercase; }
.cell-detail { display: block; margin-top: 3px; font-size: 12px; color: #64748b; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; white-space: nowrap; background: #f8fafc; color: #475569; }
.badge.admin { background: var(--brand-soft); color: var(--brand-dark); border-color: #ffcbd1; }
.badge.user { background: #f0faf4; color: #237848; border-color: #cde9d8; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 24px; }
.search-form input { flex: 1; min-width: 0; }
.search-form a { color: var(--brand-dark); font-size: 13px; }
.search-form input, .role-form select { min-height: 44px; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; color: #333; font-size: 13px; }
.role-form { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 12px; border-top: 1px solid var(--border); }
.pagination a { color: var(--brand-dark); }
.empty { padding: 40px 24px; text-align: center; color: #64748b; }
.note { margin-top: 18px; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 24px; }
.dashboard-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dashboard-description { font-size: 13px; line-height: 1.6; }
.dashboard-status-list > div { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.dashboard-status-list dt { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dashboard-status-list dd { font-size: 20px; font-weight: 700; }
.dashboard-status-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #64748b; }
.dashboard-status-dot.pending { background: #b7791f; }
.dashboard-status-dot.approved { background: #23834d; }
.dashboard-status-dot.rejected { background: #d71932; }
.dashboard-status-total dt { color: #333; font-weight: 600; }
.dashboard-status-grid .note { line-height: 1.7; color: #64748b; }
@media (max-width: 720px) { .dashboard-status-grid { grid-template-columns: minmax(0, 1fr); } }
.profile { scroll-margin-top: 24px; }
dl { margin: 20px 0 0; }
dl > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
dl > div:last-child { border: 0; }
dt { font-size: 12px; color: #64748b; }
dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.account-info p { color: #64748b; font-size: 13px; line-height: 1.8; }
.account-info .portal-brand__logo { width: 42px; height: 42px; margin-bottom: 20px; }
@media (max-width: 1080px) {
    .portal-shell { grid-template-columns: minmax(0,1fr); }
    .portal-burger span { background: #fff; }
    .portal-burger { background: rgb(255 255 255 / 12%); border-radius: 4px; }
    .portal-sidebar__inner { min-height: 100%; height: auto; }
}
@media (max-width: 720px) {
    .page-heading { align-items: flex-start; }
    .date-label { display: none; }
    .account-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
    .account-banner .button { width: 100%; }
    .stats { gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-icon { display: none; }
    .stat-heading { font-size: 12px; }
    .stat-card small { font-size: 11px; }
    .profile-grid { grid-template-columns: minmax(0,1fr); }
    .section-heading { padding: 20px; }
    .section-label > span { display: none; }
    .app-footer { padding: 20px 16px; font-size: 11px; }
    .portal-topbar__actions { max-width: 60%; }
    .portal-user { min-width: 0; }
    .portal-user__name { max-width: 120px; }
    .search-form { padding: 20px; flex-wrap: wrap; }
    .search-form input, .role-form select { font-size: 16px; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: minmax(0,1fr); }
    .stat-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
    .stat { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
    .section-heading { align-items: flex-start; }
    .section-heading p { max-width: 180px; }
    .section-heading .text-link { font-size: 12px; }
    dl > div { grid-template-columns: minmax(0,1fr); gap: 6px; }
    .portal-topbar__spacer { font-size: 12px; }
    .portal-user__name { max-width: 80px; }
    .auth-hero, .auth-panel { padding: 24px; }
}
.request-intro { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; margin: auto; padding: 0; border: 0; border-radius: 18px; color: #1e293b; box-shadow: 0 24px 80px rgb(15 23 42 / 25%); }
.request-intro::backdrop { background: rgb(15 23 42 / 55%); backdrop-filter: blur(4px); }
.request-intro[open] { animation: request-intro-enter .22s ease-out; }
.request-intro__body { padding: 32px; }
.request-intro__eyebrow { display: inline-block; padding: 6px 10px; border-radius: 6px; background: #fff1f2; color: #be123c; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.request-intro h2 { margin: 18px 0 10px; font-size: 26px; line-height: 1.25; }
.request-intro p { color: #64748b; font-size: 13px; line-height: 1.75; }
.request-intro__steps { padding: 0; margin: 24px 0; list-style: none; counter-reset: request-step; display: grid; gap: 20px; }
.request-intro__steps li { position: relative; padding-left: 44px; counter-increment: request-step; }
.request-intro__steps li::before { content: counter(request-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1f5f9; color: #475569; font-weight: 700; font-size: 13px; }
.request-intro__steps strong { display: block; margin-bottom: 5px; font-size: 14px; }
.request-intro__steps span { display: block; color: #64748b; font-size: 12px; line-height: 1.7; }
.request-intro .request-intro__note { background: #f8fafc; padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.request-intro form { margin: 22px 0 0; display: flex; justify-content: flex-end; }
.request-intro-open { overflow: hidden; }
.request-help-link { background: none; border: 0; padding: 4px; color: #2563eb; font: inherit; cursor: pointer; }
.request-help-link:hover { text-decoration: underline; }
.request-queue__link { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.request-queue__link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(15 23 42 / 8%); }
.campaign-status--pending { color: #854d0e; background: #fefce8; border-color: #fde68a; }
.campaign-status--approve { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.campaign-status--reject { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.campaign-status--finish { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
:where(a, button, select, textarea, input):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@keyframes request-intro-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 600px) { .request-intro__body { padding: 24px 20px; } .request-intro h2 { font-size: 23px; } .request-intro form .button { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
