/* Shared tooltips — minimal, fast */
.tooltip.app-tooltip,
.tooltip.store-tooltip,
.tooltip.app-tooltip-action,
.tooltip.store-tooltip-action,
.tooltip.app-tooltip-desc,
.tooltip.store-tooltip-desc {
    --bs-tooltip-bg: #2f2f2f;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-max-width: 200px;
    transition: none !important;
    pointer-events: none;
}

.tooltip.app-tooltip .tooltip-inner,
.tooltip.store-tooltip .tooltip-inner,
.tooltip.app-tooltip-action .tooltip-inner,
.tooltip.store-tooltip-action .tooltip-inner,
.tooltip.app-tooltip-desc .tooltip-inner,
.tooltip.store-tooltip-desc .tooltip-inner {
    background: var(--bs-tooltip-bg);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 0.2rem 0.45rem;
    border-radius: 0.2rem;
    box-shadow: none;
    text-align: center;
}

.tooltip.app-tooltip-desc,
.tooltip.store-tooltip-desc {
    --bs-tooltip-max-width: min(18rem, 90vw);
}

.tooltip.app-tooltip-desc .tooltip-inner,
.tooltip.store-tooltip-desc .tooltip-inner {
    text-align: left;
}

/* Auth pages */
body.app-auth-page {
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 45%, #f8fafc 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.app-auth-page.app-auth-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.app-auth-page.app-auth-scroll {
    padding: 2rem 0;
}

.app-auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.app-auth-brand {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #111827;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.app-btn-primary {
    background: #f97316;
    border: none;
    color: #fff;
    font-weight: 700;
}

.app-btn-primary:hover {
    background: #fb923c;
    color: #fff;
}

.app-form-control {
    border-radius: 0.75rem;
    border-color: #d1d5db;
}

.app-form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

/* Customer order / verify pages */
body.app-customer-page {
    background: #f4f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-customer-wrap {
    max-width: 28rem;
    margin: 0 auto;
}

.app-customer-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.app-customer-hero {
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 45%, #fde68a 100%);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.customer-order-mode-badge {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.customer-order-mode-badge--takeaway {
    background: #0dcaf0 !important;
    color: #000 !important;
}

.app-invoice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.app-invoice-meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #64748b;
}

.app-invoice-meta strong {
    color: #1e293b;
}

.app-invoice-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.app-invoice-table thead th {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.55rem 0.35rem;
}

.app-invoice-table tbody td {
    padding: 0.65rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.app-invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.app-invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    border-top: 2px solid #f1f5f9;
    font-size: 1rem;
}

.app-invoice-total strong {
    font-size: 1.15rem;
    color: #059669;
}

@media print {
    body.app-customer-page {
        background: #fff;
    }

    .app-no-print {
        display: none !important;
    }

    .app-customer-wrap {
        max-width: none;
        padding: 0 !important;
    }

    .app-customer-card,
    .app-customer-hero {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Landing / home */
body.app-landing-page {
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-landing-wrap {
    max-width: 520px;
}

.app-landing-title {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.app-landing-tagline {
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 0.25rem;
    margin-bottom: 2rem;
}

.app-landing-logo {
    display: block;
    width: min(100%, 420px);
    height: auto;
    margin: 0 auto;
}

.app-landing-actions {
    margin-top: 0.5rem;
}

/* Legal documents */
body.app-legal-page {
    background: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.app-legal-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

.app-legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.app-legal-body p,
.app-legal-body li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

.app-legal-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.app-legal-body .lead {
    font-size: 1.05rem;
    color: #475569;
}

.app-public-footer a {
    color: #64748b;
}

.app-public-footer a:hover {
    color: #0f172a;
}

.app-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.app-contact-card a {
    color: #0284c7;
}

.app-contact-card a:hover {
    color: #0369a1;
}

/* Vendor admin shared panels */
body.app-vendor-page {
    background: #f4f6f8;
    min-height: 100vh;
}

.app-vendor-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.app-vendor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.app-vendor-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.app-vendor-table tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
