/* AZ Auction Management System – app styles.
 * Brand colours are CSS variables so Elementor (AZ Brand controls) or the theme can override them. */
.azpa {
	--azpa-primary: #0f172a;
	--azpa-accent: #d97706;
	--azpa-text: #0f172a;
	--azpa-muted: #64748b;
	--azpa-surface: #ffffff;
	--azpa-bg: #f8fafc;
	--azpa-line: #e2e8f0;
	--azpa-ok: #15803d;
	--azpa-bad: #b91c1c;
	--azpa-warn: #b45309;
	--azpa-radius: 14px;
	--azpa-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
	color: var(--azpa-text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.azpa *, .azpa *::before, .azpa *::after { box-sizing: border-box; }
.azpa a { color: inherit; }
.azpa img { max-width: 100%; display: block; }
.azpa [hidden] { display: none !important; }
.azpa-h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .75rem; line-height: 1.25; }
.azpa-h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.azpa-muted { color: var(--azpa-muted); font-size: .9rem; }
.azpa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.azpa-row .azpa-h3 { margin: 0; }

/* Buttons */
.azpa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--azpa-line);
	background: var(--azpa-surface); color: var(--azpa-text); font-weight: 600; font-size: .95rem;
	text-decoration: none !important; cursor: pointer; transition: transform .08s, box-shadow .15s, background .15s; line-height: 1.2;
}
.azpa-btn:hover { box-shadow: var(--azpa-shadow); }
.azpa-btn:active { transform: scale(.98); }
.azpa-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.azpa-btn--primary { background: var(--azpa-primary); border-color: var(--azpa-primary); color: #fff !important; }
.azpa-btn--buy { background: var(--azpa-accent); border-color: var(--azpa-accent); color: #fff !important; }
.azpa-btn--ghost { background: transparent; }
.azpa-btn--danger { color: var(--azpa-bad) !important; border-color: #fecaca; }
.azpa-btn--sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.azpa-btn--block { width: 100%; }

/* Tabs and pills */
.azpa-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 0 16px; background: var(--azpa-bg); border-radius: 999px; scrollbar-width: none; }
.azpa-tabs::-webkit-scrollbar { display: none; }
.azpa-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--azpa-muted); }
.azpa-tabs a.is-active { background: var(--azpa-surface); color: var(--azpa-text); box-shadow: var(--azpa-shadow); }
.azpa-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.azpa-pills a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--azpa-line); text-decoration: none; font-size: .85rem; font-weight: 600; }
.azpa-pills a.is-active { background: var(--azpa-primary); color: #fff; border-color: var(--azpa-primary); }

/* Badges and chips */
.azpa-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: #e2e8f0; color: #334155; }
.azpa-badge--live { background: #dcfce7; color: #166534; }
.azpa-badge--live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-right: 6px; vertical-align: 1px; animation: azpa-pulse 1.4s infinite; }
.azpa-badge--upcoming { background: #dbeafe; color: #1e40af; }
.azpa-badge--closing { background: #fef3c7; color: #92400e; }
.azpa-badge--sold, .azpa-badge--bought_now { background: #ede9fe; color: #5b21b6; }
.azpa-badge--reserve_not_met { background: #ffedd5; color: #9a3412; }
.azpa-badge--outbid { background: #fee2e2; color: #991b1b; }
.azpa-badge--cancelled { background: #f1f5f9; color: #64748b; }
@keyframes azpa-pulse { 50% { opacity: .3; } }
.azpa-chip { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.azpa-dot { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--azpa-bad); color: #fff; font-size: .72rem; align-items: center; justify-content: center; }

/* Listing grid and cards */
.azpa-grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--azpa-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1024px) { .azpa-grid { grid-template-columns: repeat(min(var(--azpa-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .azpa-grid { grid-template-columns: minmax(0, 1fr); } }
.azpa-card { background: var(--azpa-surface); border-radius: var(--azpa-radius); overflow: hidden; box-shadow: var(--azpa-shadow); display: flex; flex-direction: column; }
.azpa-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e2e8f0; overflow: hidden; }
.azpa-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.azpa-card:hover .azpa-card__media img { transform: scale(1.03); }
.azpa-card__media .azpa-badge { position: absolute; top: 12px; left: 12px; }
.azpa-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.azpa-card__title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.azpa-card__title a { text-decoration: none; }
.azpa-card__price { font-size: 1.35rem; font-weight: 800; }
.azpa-card__price small { display: block; font-size: .72rem; font-weight: 600; color: var(--azpa-muted); text-transform: uppercase; letter-spacing: .04em; }
.azpa-card__meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.azpa-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--azpa-muted); margin-top: auto; }
.azpa-nophoto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px; font-weight: 800; font-size: 2rem; color: #94a3b8; background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.azpa-countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.azpa-countdown.is-final { color: var(--azpa-bad); }
.azpa-reserve { color: var(--azpa-warn); font-weight: 600; }
.azpa-reserve.is-met { color: var(--azpa-ok); }
.azpa-empty { padding: 28px 20px; text-align: center; color: var(--azpa-muted); background: var(--azpa-bg); border: 1px dashed var(--azpa-line); border-radius: var(--azpa-radius); }

/* Single auction */
.azpa-auction { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.azpa-auction__details { grid-column: 1 / -1; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .azpa-auction, .azpa-auction__details { grid-template-columns: minmax(0, 1fr); } }
.azpa-gallery__main { border-radius: var(--azpa-radius); overflow: hidden; background: #e2e8f0; aspect-ratio: 4 / 3; }
.azpa-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.azpa-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.azpa-gallery__thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.azpa-gallery__thumbs button.is-active { border-color: var(--azpa-primary); }
.azpa-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.azpa-auction__panel { background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; position: static; }
.azpa-auction__title { font-size: 1.6rem; line-height: 1.2; margin: 0; }
.azpa-timer { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--azpa-bg); border-radius: 12px; }
.azpa-timer__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--azpa-muted); font-weight: 700; }
.azpa-countdown--big { font-size: 1.6rem; }
.azpa-timer__ext { font-size: .8rem; color: var(--azpa-warn); font-weight: 700; }
.azpa-price { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.azpa-price__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--azpa-muted); font-weight: 700; }
.azpa-price__value { display: block; font-size: 2.2rem; line-height: 1.1; font-weight: 800; }
.azpa-price__count { font-size: .85rem; color: var(--azpa-muted); }
.azpa-price__reserve { text-align: right; padding: 8px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; }
.azpa-price__reserve span, .azpa-price__reserve em { display: block; font-size: .75rem; font-style: normal; }
.azpa-price__reserve strong { font-size: 1.15rem; }
.azpa-price__reserve.is-met { background: #f0fdf4; color: #166534; }
.azpa-bidform label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.azpa-bidform__row { display: flex; gap: 8px; align-items: stretch; }
.azpa-bidform__cur { display: flex; align-items: center; padding: 0 12px; background: var(--azpa-bg); border: 1px solid var(--azpa-line); border-radius: 12px; font-weight: 700; }
.azpa-bidform input { flex: 1; min-width: 0; font-size: 1.2rem; font-weight: 700; padding: 10px 12px; border: 1px solid var(--azpa-line); border-radius: 12px; }
.azpa-quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.azpa-quick button { border: 1px solid var(--azpa-line); background: var(--azpa-surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; font-size: .85rem; }
.azpa-or { display: flex; align-items: center; gap: 10px; color: var(--azpa-muted); font-size: .8rem; margin: 4px 0 10px; }
.azpa-or::before, .azpa-or::after { content: ''; flex: 1; height: 1px; background: var(--azpa-line); }
.azpa-closed, .azpa-gate { padding: 14px; border-radius: 12px; background: var(--azpa-bg); text-align: center; }
.azpa-gate p { margin: 0 0 10px; }
.azpa-facts { margin: 0; display: grid; gap: 0; }
.azpa-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--azpa-line); font-size: .92rem; }
.azpa-facts dt { color: var(--azpa-muted); }
.azpa-facts dd { margin: 0; font-weight: 600; text-align: right; }
.azpa-section { background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); padding: 20px; }
.azpa-history { list-style: none; margin: 0; padding: 0; }
.azpa-history li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--azpa-line); }
.azpa-history li time { grid-column: 1 / -1; font-size: .78rem; color: var(--azpa-muted); }
.azpa-history li.is-top .azpa-history__amt { color: var(--azpa-ok); }
.azpa-history__amt { font-weight: 800; }
.azpa-history__empty { display: block !important; color: var(--azpa-muted); }

/* Messages and alerts */
.azpa-msg { margin: 8px 0 0; font-size: .9rem; min-height: 1.2em; }
.azpa-msg.is-ok { color: var(--azpa-ok); font-weight: 600; }
.azpa-msg.is-bad { color: var(--azpa-bad); font-weight: 600; }
.azpa-alert { padding: 12px 14px; border-radius: 12px; background: #fffbeb; color: #92400e; margin: 0 0 12px; font-size: .92rem; }
.azpa-alert--ok { background: #f0fdf4; color: #166534; }
.azpa-alert--bad { background: #fef2f2; color: #991b1b; }
.azpa-alert--warn { background: #fff7ed; color: #9a3412; }
.azpa-leading:empty { display: none; }
.azpa-leading .azpa-alert { margin: 0; }
.azpa-flash { animation: azpa-flash 1s ease; }
@keyframes azpa-flash { 0% { background: #fde68a; } 100% { background: transparent; } }

/* Forms and panels */
.azpa-panel { background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); padding: 20px; margin-bottom: 16px; }
.azpa-auth { max-width: 460px; margin: 0 auto; }
.azpa-form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 12px; }
.azpa-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .azpa-form select, .azpa-form textarea {
	display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font-size: 1rem; border: 1px solid var(--azpa-line); border-radius: 10px; background: #fff; color: var(--azpa-text); font-weight: 400;
}
.azpa-form input:focus, .azpa-form select:focus, .azpa-form textarea:focus, .azpa-bidform input:focus { outline: 2px solid var(--azpa-primary); outline-offset: 1px; }
.azpa-form input:disabled { background: var(--azpa-bg); color: var(--azpa-muted); }
.azpa-form small { display: block; font-weight: 400; color: var(--azpa-muted); margin-top: 4px; }
.azpa-form .is-invalid { border-color: var(--azpa-bad) !important; background: #fef2f2 !important; }
.azpa-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.azpa-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.azpa-formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.azpa-span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .azpa-formgrid { grid-template-columns: minmax(0, 1fr); } }
.azpa-fieldset { border: 1px solid var(--azpa-line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; }
.azpa-fieldset legend { font-weight: 700; padding: 0 6px; }
.azpa-search { display: flex; gap: 8px; margin-bottom: 12px; }
.azpa-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--azpa-line); border-radius: 999px; font-size: 1rem; }

/* Dashboards */
.azpa-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.azpa-dash__head .azpa-h2 { margin: 0; }
.azpa-dash__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.azpa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.azpa-stat { display: block; padding: 16px; background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); text-decoration: none; }
.azpa-stat span { display: block; color: var(--azpa-muted); font-size: .82rem; font-weight: 600; }
.azpa-stat strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.azpa-stat em { display: block; font-size: .75rem; font-style: normal; color: var(--azpa-muted); }
.azpa-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .azpa-cols { grid-template-columns: minmax(0, 1fr); } }
.azpa-table-wrap { overflow-x: auto; background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); }
.azpa-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0; }
.azpa-table th, .azpa-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--azpa-line); vertical-align: middle; }
.azpa-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--azpa-muted); background: var(--azpa-bg); white-space: nowrap; }
.azpa-table .num { text-align: right; white-space: nowrap; }
.azpa-table tfoot th { text-align: right; font-weight: 600; }
.azpa-table .azpa-total th, .azpa-table .azpa-total td { font-size: 1.1rem; font-weight: 800; border-bottom: 0; }
.azpa-actions { white-space: nowrap; }
.azpa-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; min-height: 0; font-size: .8rem; }
.azpa-activity { list-style: none; margin: 0; padding: 0; background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); }
.azpa-activity li { padding: 10px 14px; border-bottom: 1px solid var(--azpa-line); font-size: .9rem; }
.azpa-activity time { display: block; font-size: .75rem; color: var(--azpa-muted); }
.azpa-activity--compact { margin-bottom: 16px; }
.azpa-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.azpa-note a { display: block; padding: 12px 14px; background: var(--azpa-surface); border-radius: 12px; box-shadow: var(--azpa-shadow); text-decoration: none; border-left: 4px solid transparent; }
.azpa-note.is-unread a { border-left-color: var(--azpa-accent); }
.azpa-note strong, .azpa-note span, .azpa-note time { display: block; }
.azpa-note span { font-size: .9rem; }
.azpa-note time { font-size: .75rem; color: var(--azpa-muted); }
.azpa-coming { padding: 18px 20px; border-radius: var(--azpa-radius); border: 2px dashed #cbd5e1; background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px); margin: 12px 0; }
.azpa-coming strong { display: inline-block; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; background: #334155; color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.azpa-coming p { margin: 0; color: var(--azpa-muted); }
.azpa-extra { font-size: .82rem; color: var(--azpa-muted); margin-top: 4px; }
.azpa-mediagrid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.azpa-mediagrid label { width: 110px; margin: 0; }
.azpa-mediagrid img { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; }
.azpa-mediagrid span { display: flex; gap: 6px; font-weight: 400; font-size: .85rem; margin-top: 4px; }
.azpa-logo-preview { max-height: 60px; margin-top: 8px; width: auto !important; }
.azpa-tablestatus { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.azpa-tablestatus li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; font-family: monospace; }
.azpa-tablestatus .is-ok { background: #dcfce7; color: #166534; }
.azpa-tablestatus .is-ok::before { content: '✓ '; }
.azpa-tablestatus .is-bad { background: #fee2e2; color: #991b1b; }
.azpa-tablestatus .is-bad::before { content: '✗ '; }
.azpa-usermenu { display: inline-flex; gap: 8px; }

/* Phone: app-style */
@media (max-width: 600px) {
	.azpa-auction__panel { position: static; padding: 16px; }
	.azpa-price__value { font-size: 1.9rem; }
	.azpa-tabs--app { position: sticky; top: 0; z-index: 5; border-radius: 0; margin-left: -4px; margin-right: -4px; }
	.azpa-dash__actions .azpa-btn { flex: 1; }
	.azpa-table th, .azpa-table td { padding: 8px; }
	.azpa-stat strong { font-size: 1.4rem; }
}

/* Images never force a column wider than the screen. */
.azpa-wrap img, .azpa-auction img, .azpa-card img { max-width: 100%; height: auto; }
.azpa-gallery__main img { width: 100%; }
@media (max-width: 420px) {
	.azpa-bidform__row { flex-wrap: wrap; }
	.azpa-bidform__row input { flex: 1 1 60%; }
	.azpa-bidform__row .azpa-btn { flex: 1 1 100%; }
}

/* ===================== Search ===================== */
.azpa-search--auctions { display: flex; gap: 8px; margin: 0 0 12px; }
.azpa-search--auctions input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--azpa-line); border-radius: 12px; font-size: 16px; background: var(--azpa-surface); }
.azpa-link { font-weight: 600; text-decoration: none; color: var(--azpa-primary); }

/* ===================== Lists (My Bids, account menu) ===================== */
.azpa-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--azpa-surface); border-radius: var(--azpa-radius); box-shadow: var(--azpa-shadow); overflow: hidden; }
.azpa-list li + li { border-top: 1px solid var(--azpa-line); }
.azpa-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t v" "s v"; gap: 2px 12px; padding: 14px 16px; text-decoration: none; color: inherit; align-items: center; min-height: 56px; }
.azpa-list a strong { grid-area: t; overflow-wrap: anywhere; }
.azpa-list a span { grid-area: s; color: var(--azpa-muted); font-size: .85rem; }
.azpa-list a b { grid-area: v; white-space: nowrap; }
.azpa-list a:active { background: var(--azpa-bg); }
.azpa-list--menu b { color: var(--azpa-muted); font-size: 1.4rem; font-weight: 400; }
.azpa-account-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.azpa-pills--wrap { flex-wrap: wrap; }

/* ===================== App shell (/app/) ===================== */
html:has(.azpa-appbody) { -webkit-text-size-adjust: 100%; }
.azpa-appbody {
	margin: 0; background: var(--azpa-bg, #f8fafc); color: #0f172a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
	--azpa-bg: #f8fafc;
}
.azpa-appbar {
	position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px;
	min-height: 52px; padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 6px;
	background: #0f172a; color: #fff;
}
.azpa-appbar a { color: #fff; text-decoration: none; }
.azpa-appbar__back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -6px; border-radius: 50%; }
.azpa-appbar__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; flex: 0 0 auto; margin-right: auto; }
.azpa-appbar__mark { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; font-size: .8rem; font-weight: 900; overflow: hidden; }
.azpa-appbar__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.azpa-appbar__name { overflow: hidden; text-overflow: ellipsis; }
.azpa-appbar__title { flex: 1 1 0; min-width: 0; margin: 0; font-size: .95rem; font-weight: 600; opacity: .8; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.azpa-appbar__action { padding: 8px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.azpa-appmain { padding: 14px 14px calc(84px + env(safe-area-inset-bottom, 0px)); max-width: 760px; margin: 0 auto; }
.azpa-appmain .azpa { font-size: 15px; }
.azpa-appmain .azpa-auction { gap: 14px; }
.azpa-appmain .azpa-auction__panel { position: static; }
.azpa-appmain .azpa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 359px) { .azpa-appmain .azpa-grid { grid-template-columns: minmax(0, 1fr); } }
.azpa-appmain .azpa-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.azpa-appmain .azpa-tabs::-webkit-scrollbar { display: none; }
.azpa-appmain .azpa-tabs a { white-space: nowrap; flex: 0 0 auto; }
.azpa-appmain .azpa-dash__head { flex-wrap: wrap; }
/* Owner sections: all eight visible at once, no sideways scrolling. */
.azpa-appmain .azpa-tabs--grid { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 6px; margin: 0 0 16px; border-radius: 14px; }
.azpa-appmain .azpa-tabs--grid a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 4px; border-radius: 10px; font-size: 12.5px; line-height: 1.15; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.azpa-appmain .azpa-dash__actions { display: flex; gap: 8px; width: 100%; }
.azpa-appmain .azpa-dash__actions .azpa-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 6px; font-size: 14px; line-height: 1.15; text-align: center; justify-content: center; }

/* Auction screen: price + Bid / Buy Now always within thumb reach, above the bottom bar. */
.azpa-actionbar { position: fixed; left: 0; right: 0; bottom: calc(61px + env(safe-area-inset-bottom, 0px)); z-index: 59; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -6px 18px rgba(15,23,42,.08); }
.azpa-actionbar[hidden] { display: none; }
.azpa-actionbar__price { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.15; }
.azpa-actionbar__price small { color: #64748b; font-size: 11px; font-weight: 600; }
.azpa-actionbar__price strong { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azpa-actionbar .azpa-btn { min-height: 46px; padding: 0 16px; flex: 0 0 auto; }
.azpa-appbody--auction .azpa-appmain { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); scroll-padding-top: 64px; }
.azpa-appmain .azpa-table-wrap, .azpa-appmain table.azpa-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.azpa-appmain table.azpa-table { width: 100%; }
.azpa-apphero { background: #0f172a; color: #fff; border-radius: var(--azpa-radius, 14px); padding: 18px 16px; margin-bottom: 18px; }
.azpa-apphero h1 { margin: 2px 0 12px; font-size: 1.4rem; line-height: 1.2; color: #fff; }
.azpa-apphero .azpa-muted { color: #cbd5e1; margin: 0; }
.azpa-apphero .azpa-search--auctions { margin: 0; }
.azpa-apphero .azpa-search--auctions .azpa-btn { background: var(--azpa-accent, #d97706); border-color: transparent; color: #fff; }
.azpa-apphome__head { margin: 18px 0 8px; }
.azpa-apphome__head .azpa-h2 { margin: 0; }

.azpa-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
	background: rgba(255,255,255,.97); border-top: 1px solid #e2e8f0;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.azpa-tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; color: #64748b; text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 12px; }
.azpa-tabbar__item.is-active { color: #0f172a; }
.azpa-tabbar__item.is-active svg { stroke-width: 2.4; }
.azpa-tabbar__item span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.azpa-tabbar__badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #b91c1c; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@media (min-width: 900px) {
	.azpa-tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 12px; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 8px 30px rgba(15,23,42,.12); }
	.azpa-appmain { padding-bottom: 110px; }
	.azpa-actionbar { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 86px; border: 1px solid #e2e8f0; border-radius: 16px; }
	.azpa-appbody--auction .azpa-appmain { padding-bottom: 180px; }
}

/* Push notification log (owner Settings > Push notifications). */
.azpa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.azpa-chips .azpa-chip { text-decoration: none; background: #f1f5f9; color: #334155; }
.azpa-chips .azpa-chip.is-active { background: #8A0F96; color: #fff; }
.azpa-chip.azpa-push--sent { background: #dcfce7; color: #166534; }
.azpa-chip.azpa-push--failed { background: #fee2e2; color: #991b1b; }
.azpa-chip.azpa-push--queued, .azpa-chip.azpa-push--sending { background: #e0e7ff; color: #3730a3; }
.azpa-chip.azpa-push--skipped { background: #f1f5f9; color: #475569; }

/* 0.4.3 Live auction edit screen */
.azpa-edit__group { margin: 18px 0 10px; font-size: 1rem; font-weight: 800; color: var(--azpa-primary); }
.azpa-edit__group .azpa-muted { font-weight: 500; font-size: .85rem; }
.azpa-editstatus { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin: 0 0 16px; }
.azpa-editstatus > section { background: var(--azpa-surface); border: 1px solid var(--azpa-line); border-radius: var(--azpa-radius); padding: 4px 16px 12px; min-width: 0; }
.azpa-editstatus .azpa-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.azpa-editstatus .azpa-facts > div { padding: 8px 0; border-bottom: 1px solid var(--azpa-line); min-width: 0; }
.azpa-editstatus .azpa-facts dt { font-size: .75rem; color: var(--azpa-muted); text-transform: uppercase; letter-spacing: .04em; }
.azpa-editstatus .azpa-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.azpa-editstatus__amount { font-size: 1.7rem; font-weight: 800; margin: 4px 0; color: var(--azpa-primary); font-variant-numeric: tabular-nums; }
.azpa-editstatus__who { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.azpa-editstatus__asat { font-size: .8rem; }
.azpa-ok { color: var(--azpa-ok); }
.azpa-warn { color: var(--azpa-warn); }
.azpa-locknote { display: block; color: var(--azpa-muted); font-size: .78rem; margin-top: 4px; }
.azpa-form input:disabled { background: #f1f2f4; color: #6b7280; cursor: not-allowed; }
.azpa-edit__history { margin-top: 18px; }
.azpa-bidlog tr.is-top td { background: #fff7ed; font-weight: 600; }
.azpa-bidlog tr.is-top td:first-child { box-shadow: inset 4px 0 0 var(--azpa-accent); }
@media (max-width: 760px) {
	.azpa-editstatus { grid-template-columns: minmax(0, 1fr); }
	.azpa-editstatus .azpa-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.azpa-bidlog thead { display: none; }
	.azpa-bidlog, .azpa-bidlog tbody, .azpa-bidlog tr, .azpa-bidlog td { display: block; width: 100%; }
	.azpa-bidlog tr { border-bottom: 1px solid var(--azpa-line); padding: 8px 10px; }
	.azpa-bidlog td { border: 0; padding: 2px 0; text-align: left !important; }
	.azpa-bidlog td.num:first-child::before { content: "Bid "; color: var(--azpa-muted); }
}

/* 0.4.4: Featured toggle in the owner auctions list (existing chip colours). */
.azpa-feature.is-on { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ---------- 0.5.0 checkout and orders ---------- */
.azpa-badge--order-pending_payment { background: #fef3c7; color: #92400e; }
.azpa-badge--order-proof_received { background: #dbeafe; color: #1e40af; }
.azpa-badge--order-needs_review { background: #fee2e2; color: #991b1b; }
.azpa-badge--order-paid, .azpa-badge--order-ready_for_collection { background: #dcfce7; color: #166534; }
.azpa-badge--order-completed { background: #ede9fe; color: #5b21b6; }
.azpa-badge--order-cancelled { background: #f1f5f9; color: #475569; }
.azpa-checkout__lines .azpa-extra td { background: var(--azpa-bg); }
.azpa-extra__pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.azpa-extra__pick select { min-height: 44px; min-width: 80px; font-size: 1rem; }
.azpa-extra__sum { font-weight: 600; margin-left: 8px; }
.azpa-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-weight: 600; }
.azpa-check input { width: 22px; height: 22px; flex: none; margin: 0; }
.azpa-terms { margin: 12px 0; border: 1px solid var(--azpa-line); border-radius: 10px; padding: 10px 14px; }
.azpa-terms summary { cursor: pointer; font-weight: 600; }
.azpa-terms__text { max-height: 240px; overflow: auto; font-size: .9rem; }
.azpa-paybox dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.azpa-paybox dd span { font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-all; }
.azpa-checkout textarea, .azpa-order textarea { width: 100%; box-sizing: border-box; }
.azpa-checkout label.azpa-span2 { display: block; margin: 12px 0; }
@media (max-width: 480px) {
	.azpa-checkout__lines th, .azpa-checkout__lines td { padding: 8px 6px; font-size: .9rem; }
	.azpa-extra__sum { display: block; margin: 6px 0 0; }
}

/* 0.5.3: Terms and Conditions links and the in-app reader */
.azpa-check a[data-azpa-terms] { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.azpa-terms-version { margin: -4px 0 12px; font-size: .85rem; }
.azpa-legal-link { text-align: center; margin: 14px 0 0; font-size: .9rem; }
.azpa-legal-link a { color: inherit; text-decoration: underline; }
.azpa-reader { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #F5F6F8; }
.azpa-reader[hidden] { display: none; }
.azpa-reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: #240B36; color: #fff; border-bottom: 1px solid rgba(255,122,0,.22); }
.azpa-reader__bar strong { font-size: 1rem; }
.azpa-reader__bar .azpa-btn { min-height: 40px; padding: 8px 16px; color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.azpa-reader__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-wrap: anywhere; color: #171B23; line-height: 1.6; }
.azpa-reader__body .e-paragraph-base { display: block; margin: 0 0 10px; }
.azpa-reader__body header, .azpa-reader__body section, .azpa-reader__body aside { display: block; background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; padding: 16px; margin: 0 0 12px; }
.azpa-reader__body aside { background: #240B36; color: #EDE7F3; }
.azpa-reader__body aside h2 { color: #FFC94D; }
.azpa-reader__body h2 { font-size: 1rem; font-weight: 800; letter-spacing: .03em; color: #240B36; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #FFC94D; }
.azpa-reader__body ul { margin: 6px 0; padding-left: 1.2em; list-style: disc; }
.azpa-reader__body li { margin: 0 0 4px; }
.azpa-reader__body blockquote { margin: 8px 0; padding: 12px 14px; background: #F5F6F8; border-left: 4px solid #FF7A00; border-radius: 0 10px 10px 0; }
.azpa-reader__body u { text-decoration: none; background: #FFF1DC; border: 1px dashed #FF7A00; border-radius: 6px; padding: 0 4px; font-weight: 600; }
html.azpa-reader-open, html.azpa-reader-open body { overflow: hidden; }

/* 0.5.4: order page back link at the top, and the in-app document viewer. */
.azpa-order__back { margin: 0 0 8px; }
.azpa-docview__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.azpa-docview__tools { display: flex; gap: 6px; }
.azpa-docview__title { margin: 0 0 10px; font-size: 14px; word-break: break-word; }
.azpa-docview__pages { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.azpa-docview__pages:not(.is-zoomed) { overflow-x: hidden; }
.azpa-docview__page { display: block; max-width: none; margin: 0 auto 12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); border-radius: 4px; }
img.azpa-docview__page { max-width: 100%; height: auto; }
.azpa-docview__pages:not(.is-zoomed) canvas.azpa-docview__page { max-width: 100%; height: auto !important; }
