/**
 * Cooka Vendor Registration Styles
 *
 * Phase 2b: Frontend for Steps 1-4
 *
 * @package Cooka
 * @version v2.2.51w-ALCOHOL-STRIPE-PREFLIGHT-BASE
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --cooka-success: #16a34a;
    --cooka-error: #dc2626;
    --cooka-warning: #d97706;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.vendor-registration,
.vendor-status {
    padding: 2rem 1rem;
    min-height: 80vh;
    background: var(--cooka-surface);
}

.vendor-registration-container,
.vendor-status-container {
    max-width: 640px;
    margin: 0 auto;
}

/* ==========================================================================
   Progress Indicator
   ========================================================================== */

.registration-progress {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--cooka-border);
    color: var(--cooka-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--cooka-accent);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--cooka-success);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--cooka-muted);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--cooka-accent);
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    background: var(--cooka-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--cooka-accent);
    transition: width 0.5s ease;
    width: 0;
}

/* ==========================================================================
   Step Content
   ========================================================================== */

.registration-step {
    background: var(--cooka-surface-2);
    border: 1px solid var(--cooka-border);
    border-radius: var(--cooka-radius-lg);
    padding: 2rem;
    box-shadow: var(--cooka-shadow-sm);
}

.registration-step[aria-hidden="true"] {
    display: none;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cooka-text);
    margin: 0 0 0.5rem 0;
}

.step-description {
    color: var(--cooka-muted);
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--cooka-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--cooka-border);
    border-radius: var(--cooka-radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cooka-accent);
    box-shadow: 0 0 0 3px rgba(46, 125, 82, 0.15);
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--cooka-error);
}

.field-error {
    color: var(--cooka-error);
    font-size: 0.875rem;
}

.field-hint {
    color: #5f6368;
    font-size: 0.875rem;
    margin: 0.15rem 0 0;
    display: block;
}

.required {
    color: var(--cooka-error);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.form-actions {
    margin-top: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--cooka-radius-md);
    text-align: center;
}

.form-message:empty {
    display: none;
}

.form-message.success {
    background: #dcfce7;
    color: var(--cooka-success);
}

.form-message.error {
    background: #fee2e2;
    color: var(--cooka-error);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--cooka-radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--cooka-accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--cooka-accent-hover);
}

.btn-secondary {
    background: var(--cooka-surface);
    color: var(--cooka-text);
    border: 1px solid var(--cooka-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--cooka-border);
}

.btn-link {
    background: none;
    color: var(--cooka-accent);
    padding: 0.5rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    display: flex !important;
}

.btn .btn-loading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Step 3 Button States */
#step-3-submit {
    position: relative;
    transition: all 0.3s ease;
}

#step-3-submit.btn-success {
    background: var(--cooka-success);
}

#step-3-submit.btn-success:hover {
    background: #15803d;
}

#step-3-submit.btn-retry {
    background: var(--cooka-warning);
}

#step-3-submit.btn-retry:hover {
    background: #b45309;
}

/* ==========================================================================
   Consent Section
   ========================================================================== */

.consent-section {
    background: var(--cooka-surface);
    padding: 1.5rem;
    border-radius: var(--cooka-radius-md);
    margin-top: 1rem;
}

.consent-section h3 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.consent-group {
    margin-bottom: 1rem;
}

.consent-group:last-child {
    margin-bottom: 0;
}

.consent-label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.consent-text {
    font-size: 0.875rem;
    color: var(--cooka-text);
}

.consent-text a {
    color: var(--cooka-accent);
}

.consent-group.error .consent-label {
    color: var(--cooka-error);
}

/* ==========================================================================
   Email Verification
   ========================================================================== */

.verification-info {
    text-align: center;
    margin-bottom: 2rem;
}

.email-sent-icon {
    color: var(--cooka-accent);
    margin-bottom: 1rem;
}

.sent-to-email {
    color: var(--cooka-muted);
}

.sent-to-email strong {
    display: block;
    color: var(--cooka-text);
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.resend-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cooka-border);
}

.resend-section p {
    margin: 0 0 0.5rem 0;
    color: var(--cooka-muted);
}

.countdown {
    color: var(--cooka-muted);
    font-size: 0.875rem;
}

.countdown[aria-hidden="true"] {
    display: none;
}

/* ==========================================================================
   ID Verification
   ========================================================================== */

.id-verification-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-box {
    background: var(--cooka-surface);
    padding: 1.25rem;
    border-radius: var(--cooka-radius-md);
}

.info-box h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--cooka-muted);
}

.info-box p {
    margin: 0;
    color: var(--cooka-muted);
    font-size: 0.875rem;
}

.info-box-highlight {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.info-box-privacy {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box-privacy .info-box-icon {
    flex-shrink: 0;
    color: var(--cooka-success);
    margin-top: 0.125rem;
}

.info-box-privacy .info-box-content h3 {
    margin: 0 0 0.5rem 0;
    color: #166534;
}

.info-box-privacy .info-box-content p {
    color: #15803d;
}

/* ==========================================================================
   Upload Areas
   ========================================================================== */

.upload-section {
    margin-bottom: 1.5rem;
}

.upload-section h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
}

.optional-label {
    font-weight: 400;
    color: var(--cooka-muted);
}

.upload-area {
    position: relative;
    border: 2px dashed var(--cooka-border);
    border-radius: var(--cooka-radius-md);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
    border-color: var(--cooka-accent);
    background: #f8fafc;
}

.upload-area.uploading {
    opacity: 0.5;
    pointer-events: none;
}

.upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.upload-icon {
    color: var(--cooka-muted);
}

.upload-text {
    color: var(--cooka-muted);
}

.upload-preview {
    margin-top: 1rem;
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--cooka-radius-md);
    object-fit: cover;
}

.upload-preview.has-preview + .upload-label {
    display: none;
}

/* Face match result */
.face-match-result {
    padding: 1.25rem;
    border-radius: var(--cooka-radius-md);
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.face-match-result[aria-hidden="true"] {
    display: none;
}

.face-match-result.processing {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.face-match-result.processing .match-indicator::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #bae6fd;
    border-top-color: var(--cooka-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.face-match-result.processing .match-icon,
.face-match-result.processing .match-text {
    display: none;
}

.face-match-result.match-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    animation: successPulse 0.6s ease-out;
}

.face-match-result.match-failed {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.face-match-result.image-error {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

@keyframes successPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.match-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.match-icon {
    display: none;
}

.face-match-result.match-success .match-icon-success {
    display: block;
    color: var(--cooka-success);
    animation: checkmarkDraw 0.5s ease-out;
}

.face-match-result.match-failed .match-icon-failed,
.face-match-result.image-error .match-icon-failed {
    display: block;
    color: var(--cooka-error);
}

@keyframes checkmarkDraw {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.match-text {
    text-align: left;
}

.match-status {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.face-match-result.match-success .match-status {
    color: #166534;
}

.face-match-result.match-failed .match-status,
.face-match-result.image-error .match-status {
    color: #991b1b;
}

.match-score {
    display: block;
    font-size: 0.875rem;
    color: var(--cooka-muted);
}

/* ==========================================================================
   Authority Preview
   ========================================================================== */

.authority-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1.25rem;
    border-radius: var(--cooka-radius-md);
    margin-top: 1.5rem;
}

.authority-preview[aria-hidden="true"] {
    display: none;
}

.authority-preview h3 {
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    color: var(--cooka-accent);
}

.authority-details {
    margin-bottom: 0.75rem;
}

.authority-name {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.authority-contact {
    color: var(--cooka-muted);
    font-size: 0.875rem;
    margin: 0;
}

.authority-info {
    font-size: 0.875rem;
    color: var(--cooka-muted);
    margin: 0;
}

/* ==========================================================================
   Success & Error States
   ========================================================================== */

.registration-success,
.registration-error {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    color: var(--cooka-success);
    margin-bottom: 1.5rem;
}

.error-icon {
    color: var(--cooka-error);
    margin-bottom: 1.5rem;
}

.success-message,
.error-message {
    color: var(--cooka-muted);
    margin-bottom: 2rem;
}

.next-steps {
    text-align: left;
    background: var(--cooka-surface);
    padding: 1.5rem;
    border-radius: var(--cooka-radius-md);
    margin-bottom: 2rem;
}

.next-steps h2 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.next-steps ol {
    margin: 0;
    padding-left: 1.25rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: var(--cooka-muted);
}

.success-actions,
.error-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--cooka-border);
    border-top-color: var(--cooka-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   Status Dashboard
   ========================================================================== */

.status-section[aria-hidden="true"] {
    display: none;
}

.status-header {
    text-align: center;
    margin-bottom: 2rem;
}

.status-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.dashboard-card {
    background: var(--cooka-surface-2);
    border: 1px solid var(--cooka-border);
    border-radius: var(--cooka-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cooka-shadow-sm);
    margin-bottom: 1.5rem;
}

.dashboard-card h2 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.trust-layer-card {
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 6px 20px rgba(15, 23, 42, 0.04);
}

.trust-layer-head h2 {
    font-size: 1.35rem;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.01em;
}

.trust-layer-head p {
    margin: 0;
    color: #5f6368;
    font-size: 0.98rem;
    line-height: 1.5;
}

.trust-progress {
    margin-top: 1rem;
    width: 100%;
    background: #f1f3f4;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.trust-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f8f67 0%, #2e7d52 100%);
    border-radius: inherit;
}

.status-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-card {
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.045);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 220px;
}

.status-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.status-card-top h2 {
    margin: 0;
    font-size: 1.08rem;
}

.status-card .status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-card-copy {
    margin: 0;
    color: #5f6368;
    font-size: 0.96rem;
    line-height: 1.5;
}

.status-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    min-height: 44px;
}

.status-secondary-link {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.status-secondary-link:hover {
    color: #374151;
}

.promo-redeem-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cooka-border);
}

.promo-redeem-title {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
}

.promo-feedback {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.promo-feedback-success {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.promo-feedback-error {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fecaca;
}

.promo-redeem-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.promo-redeem-input {
    min-width: 180px;
    max-width: 260px;
    flex: 1 1 220px;
}

.listing-status-head {
    margin-bottom: 0.9rem;
}

.listing-status-head h2 {
    margin-bottom: 0.4rem;
}

.listing-status-head p {
    margin: 0;
    color: #5f6368;
    font-size: 0.94rem;
    line-height: 1.5;
}

.listing-summary-polished {
    background: #fafafa;
    border: 1px solid var(--cooka-border);
    border-radius: 12px;
    padding: 1rem;
}

.listing-summary-polished p {
    margin: 0 0 0.55rem 0;
}

.listing-conversion-hints {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    color: #5f6368;
    font-size: 0.9rem;
    line-height: 1.45;
}

.listing-conversion-hints li {
    margin-bottom: 0.4rem;
}

.listing-primary-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.listing-secondary-link {
    margin-top: 0.55rem;
    display: inline-block;
}

.menu-list-polished {
    background: #fafafa;
    border: 1px solid var(--cooka-border);
    border-radius: 12px;
    padding: 0.9rem;
}

.menu-actions-polished {
    margin-top: 0.85rem;
}

.menu-actions-polished .btn {
    width: 100%;
    justify-content: center;
}

.status-card.status-active .status-chip {
    color: #14532d;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.status-card.status-pending .status-chip {
    color: #854d0e;
    background: #fef9c3;
    border-color: #fde68a;
}

.status-card.status-problem .status-chip {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fecaca;
}

.card-description {
    color: var(--cooka-muted);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

/* Progress checklist */
.progress-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--cooka-border);
    border-radius: 50%;
    flex-shrink: 0;
}

.checklist-item.completed .check-icon {
    background: var(--cooka-success);
    border-color: var(--cooka-success);
    position: relative;
}

.checklist-item.completed .check-icon::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-label {
    color: var(--cooka-muted);
}

.checklist-item.completed .check-label {
    color: var(--cooka-text);
}

.continue-section {
    margin-top: 1.5rem;
    text-align: center;
}

.continue-section[aria-hidden="true"] {
    display: none;
}

/* Hygiene status */
.hygiene-state {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hygiene-state[aria-hidden="true"] {
    display: none;
}

.state-icon {
    flex-shrink: 0;
}

.state-icon-pending { color: var(--cooka-muted); }
.state-icon-requested { color: var(--cooka-warning); }
.state-icon-approved { color: var(--cooka-success); }
.state-icon-rejected { color: var(--cooka-error); }

.hygiene-state p {
    margin: 0;
    color: var(--cooka-muted);
}

/* Menu list */
.menu-list {
    margin-bottom: 1rem;
}

.no-menus {
    color: var(--cooka-muted);
    text-align: center;
    padding: 2rem;
    background: var(--cooka-surface);
    border-radius: var(--cooka-radius-md);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--cooka-border);
    border-radius: var(--cooka-radius-md);
    margin-bottom: 0.75rem;
}

.menu-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.menu-meta {
    margin: 0;
    color: var(--cooka-muted);
    font-size: 0.875rem;
}

.menu-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    color: var(--cooka-accent);
}

.btn-delete {
    color: var(--cooka-error);
}

/* Address display */
.address-display {
    background: var(--cooka-surface);
    padding: 1rem;
    border-radius: var(--cooka-radius-md);
}

.address-line {
    margin: 0;
}

.address-line:first-child {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Login prompt */
.login-prompt {
    text-align: center;
    padding: 2rem;
}

.frontend-login-form {
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    gap: 0.65rem;
    text-align: left;
}

.frontend-login-form input[type="text"],
.frontend-login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--cooka-border);
    border-radius: var(--cooka-radius-md);
    background: var(--cooka-surface);
}

.frontend-login-form .btn {
    width: 100%;
}

.frontend-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.register-link {
    margin-top: 1rem;
    color: var(--cooka-muted);
}

.register-link a {
    color: var(--cooka-accent);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[aria-hidden="true"] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--cooka-surface-2);
    border-radius: var(--cooka-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--cooka-shadow-md);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cooka-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--cooka-muted);
}

.modal-close:hover {
    color: var(--cooka-text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cooka-border);
}

body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    .vendor-registration,
    .vendor-status {
        padding: 1rem;
    }

    .registration-step,
    .dashboard-card {
        padding: 1.5rem;
    }

    .step-header h1 {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .progress-step .step-label {
        display: none;
    }

    .menu-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .trust-layer-card {
        padding: 1.25rem;
    }

    .trust-layer-head h2 {
        font-size: 1.2rem;
    }

    .status-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .status-card {
        min-height: 0;
        padding: 1.2rem;
    }

    .status-card .btn {
        min-height: 46px;
    }

    .status-card-copy {
        font-size: 1rem;
    }

    .promo-redeem-input {
        max-width: 100%;
        width: 100%;
    }

    .promo-redeem-form .btn {
        width: 100%;
    }

    .listing-summary-polished {
        padding: 0.9rem;
    }

    .listing-conversion-hints {
        font-size: 0.92rem;
    }

    .menu-list-polished {
        padding: 0.75rem;
    }
}
