/* Pre-Orders — Main Street Asian Market
   Matches site conventions: Montserrat, brand red #E8231A, no inline styles. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --brand-red: #E8231A;
    --ink: #000000;
    --ink-soft: #766F68;
    --cream: #FFFFFF;
    --light-grey: #F8F7F6;
    --card: #FFFFFF;
    --line: #E9E2D8;
    --green: #3CAB30;
    --amber: #C97A2B;
    --blue: #3B7DD8;
    --gray: #8A8A8A;
    --pending-deep: #C31E16;
    --ordering-deep: #A6631E;
    --arrived-deep: #2E62AC;
    --picked-up-deep: #2E8A25;
    --cancelled-deep: #6B6B6B;
    --radius: 10px;
    --admin-topbar-height: 64px;
}

* { box-sizing: border-box; }

.po-page {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

.po-wrap {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px 20px;
}

.po-header {
    text-align: center;
    margin-bottom: 40px;
}

.po-header h1 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.po-header p {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Submission form ───────────────────────────────── */

.po-form {
    background: var(--brand-red);
    border-radius: var(--radius);
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.po-form h2 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    color: #fff;
}

.po-field {
    margin-bottom: 32px;
}

.po-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.po-page .po-field input:not([type="checkbox"]),
.po-page .po-field textarea {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: auto;
    line-height: normal;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    padding: 16px 18px;
    border: none !important;
    border-radius: 6px;
    background: #fff !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}

.po-field input:focus,
.po-field textarea:focus {
    outline: 3px solid #000000;
    outline-offset: 0;
}

.po-field textarea {
    min-height: 70px;
    resize: vertical;
}

.po-page .po-submit {
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent !important;
    outline: 2px solid #ffffff !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: none !important;
    border-radius: 12px;
    height: auto;
    line-height: normal;
    margin: 0;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.po-page .po-submit:hover {
    outline: 2px solid #ffffff !important;
    transform: translateY(-0.25em);
    box-shadow: 4px 8px 0 0 #ffffff !important;
}

.po-page .po-submit:active {
    transform: translate(0.15em, 0.35em);
    box-shadow: 0 2px 0 0 #ffffff !important;
}

.po-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}

.po-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.po-msam-pickup-commit-field {
    margin-bottom: 24px;
}

.po-msam-pickup-commit-label {
    display: block;
    cursor: pointer;
}

.po-msam-pickup-commit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

#msam-pickup-commit-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    position: relative !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 5px !important;
    border: 2px solid #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    z-index: 1 !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease !important;
}

#msam-pickup-commit-checkbox:active {
    transform: scale(0.9) !important;
}

#msam-pickup-commit-checkbox:checked {
    background: #fff !important;
    border-color: #fff !important;
}

#msam-pickup-commit-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--brand-red);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

#msam-pickup-commit-checkbox:checked::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.po-msam-pickup-commit-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.po-msam-pickup-commit-desc {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 320px;
}

@media (max-width: 480px) {
    .po-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media screen and (max-width: 736px) {
	.po-wrap {
		position: relative;
		margin: 0 auto;
		padding: 18px 0px 20px;
	}

	.po-wrap-admin {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.po-status-card {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    animation: prFadeInUp 0.35s ease both;
}

.po-status-card-success {
    background: var(--green);
    color: #fff;
    overflow: hidden;
    animation: prFadeInUp 0.35s ease 0.5s both, prAutoFadeOut 1.2s ease 10.5s forwards;
}

.po-status-card-error {
    background: var(--brand-red);
    color: #fff;
}

/* ── Request list ──────────────────────────────────── */

.po-completed-collapsible {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.po-list h2 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
}

.po-search-wrap {
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.po-search-icon {
    position: absolute;
    left: 23px;
    top: 50%;
    transform: translateY(-50%);
    color: #DDDDDD;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.15s ease;
}

.po-search-clear {
    position: absolute;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
    color: #DDDDDD;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.po-search-clear:hover {
    color: #000000;
}

.po-page .po-search-input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 28px 50px 28px 50px;
    margin-bottom: 0;
    border: 2px solid #DDDDDD !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease;
}

.po-page .po-search-input::placeholder {
    color: #DDDDDD;
    font-weight: 400;
}

.po-page .po-search-input:focus {
    outline: none;
    border-color: #000000 !important;
}

.po-page .po-search-input:focus ~ .po-search-icon {
    color: #000000;
}

.po-page .po-search-input:focus ~ .po-search-clear {
    color: #000000;
}

.po-page .po-search-input:focus ~ .po-search-clear:hover {
    color: #DDDDDD;
}

.po-hidden {
    display: none !important;
}

.po-empty {
    color: var(--ink-soft);
    font-size: 0.95rem;
    text-align: center;
    padding: 30px 0;
}

/* Signature element: shelf-tag card, notched like a price tag,
   with the vote count set like a shelf price in a mono face. */
@keyframes prFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes prAutoFadeOut {
    0% { opacity: 1; max-height: 100px; margin-bottom: 40px; padding-top: 24px; padding-bottom: 24px; }
    100% { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes prHighlightPulse {
    0% { box-shadow: 0 0 0 3px rgba(232, 35, 26, 0.4), 0 1px 2px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.13); }
    100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.13); }
}

.po-tag {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.13);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    animation: prFadeInUp 0.4s ease both;
}

.po-tag:nth-child(1) { animation-delay: 0.02s; }
.po-tag:nth-child(2) { animation-delay: 0.06s; }
.po-tag:nth-child(3) { animation-delay: 0.10s; }
.po-tag:nth-child(4) { animation-delay: 0.14s; }
.po-tag:nth-child(5) { animation-delay: 0.18s; }
.po-tag:nth-child(6) { animation-delay: 0.22s; }
.po-tag:nth-child(n+7) { animation-delay: 0.24s; }

.po-tag-new {
    animation: prFadeInUp 0.4s ease both, prHighlightPulse 1.8s ease 0.4s;
}

.po-tag:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.11), 0 6px 16px rgba(0, 0, 0, 0.17);
    transform: translateY(-2px) scale(1.015);
}

/* Masked customer identity shown on the public index — first name +
   last initial, no phone/email. Full contact info only ever renders
   on the password-protected admin page. */
.po-customer {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

.po-size-line {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 2px;
}


.po-body {
    flex: 1;
    padding: 30px;
}

.po-body-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.po-name {
    font-weight: 600;
    font-size: 1rem;
}

.po-date {
    font-size: 0.75rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.po-user-note {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 4px;
}

.po-status {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 10px;
}

.po-status.pending { background: #F5E9E8; color: var(--brand-red); }
.po-status.ordering { background: #FBEEDC; color: var(--amber); }
.po-status.arrived { background: #E5EFFB; color: var(--blue); }
.po-status.picked_up { background: #E3F6E0; color: var(--green); }
.po-status.cancelled { background: #EBEBEB; color: var(--gray); }

.po-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--light-grey);
    border-left: 3px solid var(--brand-red);
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
}

.po-reply strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-red);
    margin-bottom: 3px;
}

/* ── Admin page ────────────────────────────────────── */

.po-header-admin {
    text-align: left;
}

.po-header-admin p {
    margin: 0;
    max-width: none;
}

.po-saved-note {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.po-email-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #E3F6E0;
    color: #1F7A17;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 0 32px;
    animation: poBannerFadeIn 0.3s ease;
}

.po-email-error-banner {
    background: #F5E9E8;
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 0 16px;
    animation: poBannerFadeIn 0.3s ease;
}


.po-check-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.po-check-circle {
    stroke: var(--green);
    stroke-width: 3;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: poCheckCircle 0.5s ease forwards;
}

.po-check-mark {
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: poCheckMark 0.3s 0.45s ease forwards;
}

@keyframes poCheckCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes poCheckMark {
    to { stroke-dashoffset: 0; }
}

@keyframes poBannerFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.po-admin-row {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 40px;
    border-top: 4px solid #000000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14), 0 12px 32px rgba(0, 0, 0, 0.20);
}

.po-admin-row:last-child {
    margin-bottom: 0;
}

.po-admin-collapsible {
    margin-bottom: 0;
}

.po-admin-collapsible-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.po-admin-collapsible summary {
    list-style: none;
    cursor: pointer;
}

.po-admin-collapsible[open] summary {
    margin-bottom: 16px;
}

.po-admin-collapsible summary::-webkit-details-marker {
    display: none;
}

.po-admin-collapsible summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.po-admin-collapsible[open] summary::before {
    transform: rotate(90deg);
}

.po-admin-collapsible:not([open]) summary {
    color: var(--ink-soft) !important;
    transition: color 0.15s ease;
}

.po-admin-collapsible:not([open]) summary:hover {
    color: var(--ink) !important;
}

.po-admin-collapsible[open] .po-admin-list-heading-new {
    color: var(--brand-red);
}

.po-admin-new-row {
    border: 2px dashed var(--brand-red);
    margin-bottom: 32px;
    margin-top: 12px;
}

.po-admin-list-heading {
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.po-admin-list-heading-muted {
    color: var(--ink-soft);
}

.po-admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 20px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.po-admin-list-heading-muted .po-admin-count {
    background: var(--green);
}

.po-admin-collapsible:not([open]) .po-admin-count {
    background: var(--gray) !important;
}

.po-admin-row-muted {
    background: var(--card);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14), 0 12px 32px rgba(0, 0, 0, 0.20);
    border-right: 1px solid #E9E7E4;
    border-bottom: 1px solid #E9E7E4;
    border-left: 1px solid #E9E7E4;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.po-admin-row-muted:hover {
    opacity: 1;
}

.po-admin-section-label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-red);
    margin-bottom: 12px;
}

.po-contact-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.po-contact-edit-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: underline;
}

.po-contact-edit-btn:hover {
    color: var(--brand-red);
}

.po-contact-summary {
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.6;
}

.po-contact-summary-name {
    font-weight: 700;
}

.po-contact-summary a {
    color: var(--ink-soft);
    font-weight: 600;
}

.po-contact-summary a:hover {
    color: #000000;
}

.po-contact-summary-sep {
    color: var(--ink-soft);
    margin: 0 6px;
}

.po-contact-summary .po-status {
    margin-top: 0;
}

.po-admin-divider {
    border-top: 1px solid var(--line);
    margin: 20px 0;
}

.po-admin-edit-form .po-field {
    margin-bottom: 10px;
}

.po-admin-edit-form .po-field:last-child {
    margin-bottom: 0;
}

.po-admin-edit-form .po-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    margin-bottom: 5px;
}

.po-field-product-name input {
    font-size: 1.1rem !important;
    font-weight: 700;
    padding: 10px 12px !important;
}

.po-admin-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.po-admin-meta-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.po-admin-row .po-admin-edit-form input[type="text"],
.po-admin-row .po-admin-edit-form input[type="number"],
.po-admin-row .po-admin-edit-form input[type="email"],
.po-admin-row .po-admin-edit-form input[type="tel"],
.po-admin-row .po-admin-edit-form input[type="datetime-local"],
.po-admin-row .po-admin-edit-form select,
.po-admin-row .po-admin-edit-form textarea {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 8px 10px;
    border: 1px solid #D8D6D3 !important;
    border-radius: 6px;
    background: var(--light-grey) !important;
    color: var(--ink) !important;
}

.po-admin-edit-form textarea {
    min-height: 110px;
    resize: vertical;
}

.po-admin-row .po-admin-edit-form input:focus,
.po-admin-row .po-admin-edit-form select:focus,
.po-admin-row .po-admin-edit-form textarea:focus {
    outline: 2px solid var(--brand-red);
    outline-offset: 0;
    border-color: var(--brand-red) !important;
}

.po-admin-notify-field {
    margin-bottom: 0 !important;
}

.po-admin-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    cursor: pointer;
}

.po-admin-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
    border: 2px solid #D8D6D3 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    cursor: pointer;
}

.po-admin-checkbox-label input[type="checkbox"]:checked {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
}

.po-admin-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.po-admin-save {
    display: inline-block;
    margin-top: 20px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.po-admin-save:hover {
    background: #c91d15;
}

.po-admin-delete-form {
    margin-top: 10px;
}

.po-admin-delete {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink-soft);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.po-admin-delete:hover {
    color: var(--brand-red);
}

@media (max-width: 480px) {
    .po-admin-meta-row {
        grid-template-columns: 1fr;
    }
}

.po-login {
    max-width: 340px;
    margin: 80px auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.po-login .po-field label {
    color: var(--ink);
}

.po-page .po-login .po-field input {
    background: var(--light-grey) !important;
    border: 1px solid #D8D6D3 !important;
    color: var(--ink) !important;
}

.po-login .po-submit {
    background-color: var(--brand-red) !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    width: 100%;
}

.po-login .po-submit:hover {
    background-color: #c91d15 !important;
    transform: none;
    box-shadow: none !important;
}

.po-login .po-submit:active {
    background-color: #a8160f !important;
    transform: none;
    box-shadow: none !important;
}

.po-login h1 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
}

.po-error {
    color: var(--brand-red);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* ── Admin page: fixed top nav bar + full-width header ─────────── */

.po-admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--admin-topbar-height);
    background: #000000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.po-admin-topbar-inner {
    max-width: 760px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.po-wrap-admin {
    padding-top: 48px;
}

.po-admin-nav {
    display: flex;
    gap: 8px;
}

.po-admin-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.po-admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.po-admin-nav-active {
    background: var(--brand-red);
    color: #fff;
}

.po-admin-nav-active:hover {
    background: #c91d15;
    color: #fff;
}

.po-header-admin-full {
    background: var(--brand-red);
    padding: calc(var(--admin-topbar-height) + 32px) 20px 40px;
    text-align: left;
}

.po-header-admin-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

.po-header-admin-text {
    flex: 1 1 auto;
    min-width: 0;
}

.po-header-admin-icon {
    flex: 0 0 77px;
    width: 77px;
    height: 87px;
    fill: #ffffff;
    display: none;
}

@media (min-width: 640px) {
    .po-header-admin-icon {
        display: block;
    }
}

.po-header-admin-inner h1 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 8px;
    color: #ffffff;
}

.po-header-admin-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.po-logout {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.po-logout:hover {
    color: #ffffff;
    text-decoration: underline;
}


input.po-field-narrow {
    width: 60%;
}


@media (max-width: 480px) {
	
    input.po-field-narrow { width: 100%; }
    .po-form { padding: 30px; }
    .po-search-wrap { width: 100%; }
	
}
