/* Campus Food Delivery - UI enhancements (loaded after style.css) */
:root { --ring: 0 0 0 4px #d9f27966; --shadow-soft: 0 12px 34px #1b28221a; }

/* ---------- Logo (bigger) ---------- */
.site-brand-logo { width: auto; height: 58px; max-width: 120px; object-fit: contain; }
.app-brand-logo { width: auto; height: 52px; max-width: 110px; object-fit: contain; }
.sidebar-brand img { width: auto; height: 54px; max-width: 96px; border-radius: 10px; object-fit: contain; }
.footer-brand .site-brand-logo { height: 50px; }
.site-header { height: 84px; transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 26px #1b28221f; background: #f7f8f3f7; }
.login-story-logo { position: relative; z-index: 3; display: block; width: auto; height: 86px; max-width: 150px; margin-bottom: 14px; object-fit: contain; animation: popIn .7s cubic-bezier(.2,.8,.25,1) both; }

/* ---------- Readable text sizes (auto-scaled up from tiny defaults) ---------- */
.eyebrow { font-size: 14px; }
.site-links > a:not(.button) { font-size: 14px; }
.nav-order { font-size: 14px; }
.avatar-stack span { font-size: 14px; }
.hero-social-proof p { font-size: 14px; }
.hero-social-proof strong { font-size: 14px; }
.hero-sticker { font-size: 14px; }
.delivery-card strong { font-size: 14px; }
.delivery-card small { font-size: 13px; }
.delivery-live { font-size: 13px; }
.hero-bottom > span { font-size: 13px; }
.hero-tags { font-size: 14px; }
.step-number { font-size: 14px; }
.workflow-step p { font-size: 14px; }
.feature-intro > p { font-size: 14px; }
.feature-audience { font-size: 13px; }
.feature-card p { font-size: 14px; }
.feature-card > a { font-size: 14px; }
.canteen-art span { font-size: 11px; }
.numbers-copy p { font-size: 14px; }
.numbers-grid span { font-size: 14px; }
.numbers-footnote { font-size: 13px; }
.food-tag { font-size: 13px; }
.food-card > p { font-size: 14px; }
.menu-disclaimer { font-size: 13px; }
.faq-layout .section-heading > p { font-size: 14px; }
.text-link { font-size: 14px; }
.faq-list details p { font-size: 14px; }
.closing-inner > p { font-size: 14px; }
.footer-brand-column > p { font-size: 14px; }
.footer-title { font-size: 13px; }
.footer-column a, .footer-column > span:not(.footer-title) { font-size: 14px; }
.footer-bottom { font-size: 13px; }
.auth-nav { font-size: 14px; }
.login-story-label, .login-story-foot { font-size: 13px; }
.login-story-copy p { font-size: 14px; }
.login-story-foot { font-size: 12px; }
.login-description { font-size: 14px; }
.field-group label { font-size: 13px; }
.field-group input { font-size: 14px; }
.login-password-note { font-size: 13px; }
.captcha-field > span i { font-size: 14px; }
.button-full.button-large { font-size: 14px; }
.alert { font-size: 13px; }
.login-hint { font-size: 13px; }
.login-setup-note { font-size: 13px; }
.auth-footer { font-size: 13px; }
.app-home-link { font-size: 14px; }
.user-avatar { font-size: 14px; }
.topbar-identity strong { font-size: 14px; }
.topbar-identity small { font-size: 13px; }
.button-quiet { font-size: 13px; }
.sidebar-caption { font-size: 13px; }
.nav-link { font-size: 14px; }
.nav-link.nav-link-muted { font-size: 13px; }
.sidebar-status { font-size: 13px; }
.sidebar-bottom p { font-size: 14px; }
.breadcrumb { font-size: 13px; }
.dashboard-date { font-size: 13px; }
.dashboard-welcome-copy .eyebrow { font-size: 13px; }
.dashboard-welcome-copy > p { font-size: 13px; }
.dashboard-welcome-copy .button { font-size: 13px; }
.dashboard-welcome-copy .button-arrow { font-size: 14px; }
.dashboard-meal-card > span { font-size: 11px; }
.dashboard-meal-card strong { font-size: 14px; }
.dashboard-art-caption { font-size: 13px; }
.dashboard-section-heading .eyebrow { font-size: 13px; }
.role-pill { font-size: 13px; }
.card-index { font-size: 13px; }
.dashboard-card-label { font-size: 12px; }
.dashboard-card > p { font-size: 13px; }
.card-coming { font-size: 12px; }
.dashboard-bottom-banner strong { font-size: 14px; }
.dashboard-bottom-banner > div > span { font-size: 13px; }
.app-footer { font-size: 13px; }
/* First-run setup and account management */
.site-links > .setup-nav-link { font-size: 14px; }
.setup-inline-link { font-size: 14px; }
.setup-login-link { font-size: 13px; }
.success-alert { font-size: 13px; }
.password-toggle { font-size: 13px; }
.password-strength { font-size: 13px; }
.password-requirements { font-size: 12px; }
.setup-panel .button-full.button-large { font-size: 14px; }
.account-page-heading .eyebrow { font-size: 13px; }
.account-page-heading > p { font-size: 13px; }
.account-form .button { font-size: 14px; }
.account-form .alert, .account-form-column > .success-alert { font-size: 13px; }
.field-group select { font-size: 14px; }
.field-hint { font-size: 13px; }
.user-list-heading .eyebrow { font-size: 13px; }
.user-table th { font-size: 12px; }
.user-table td { font-size: 13px; }
.user-action-details > summary { font-size: 13px; }
.user-action-form label { font-size: 13px; }
.user-action-form input, .user-action-form select { font-size: 13px; }
.user-action-form .password-toggle { font-size: 13px; }
.user-table .role-pill { font-size: 12px; }
.account-active, .account-inactive { font-size: 13px; }
.report-heading p, .menu-welcome p { font-size: 14px; }
.report-tabs a, .pagination a { font-size: 13px; }
.report-filters .field-group label { font-size: 13px; }
.report-filters .field-group input, .report-filters .field-group select, .field-group textarea, .field-group input[type="file"] { font-size: 13px; }
.report-filters .button { font-size: 13px; }
.table-action { font-size: 13px; }
.pagination { font-size: 13px; }
.backup-schedule-note { font-size: 13px; }
.backup-schedule-note code { font-size: 13px; }
.backup-action-card p { font-size: 13px; }
.backup-action-card .button { font-size: 13px; }
.food-tag { font-size: 12px; }
.menu-card-body > p { font-size: 13px; }
.cart-count { font-size: 13px; }
.empty-state p { font-size: 13px; }
.order-meta dt { font-size: 12px; }
.order-meta dd { font-size: 13px; }
.order-timeline strong { font-size: 13px; }
.order-timeline small { font-size: 13px; }
.order-lines td { font-size: 13px; }
.total-line { font-size: 13px; }
.action-panel .field-group input, .action-panel .field-group select, .action-panel .field-group textarea { font-size: 13px; }
.cart-item-row strong { font-size: 14px; }
.cart-item-row small { font-size: 13px; }
.order-status-pill { font-size: 13px; }
.metric-label { font-size: 12px; }
.dashboard-metric > span:last-of-type { font-size: 13px; }
.metric-index { font-size: 12px; }
.chart-empty { font-size: 13px; }
.quick-link-card { font-size: 13px; }
.order-detail-head p { font-size: 13px; }
.order-panel > p { font-size: 13px; }
.order-timeline li > div > span { font-size: 13px; }
.order-timeline time { font-size: 12px; }
.order-line { font-size: 13px; }
.order-line strong { font-size: 13px; }
.order-line small { font-size: 13px; }
.order-total strong { font-size: 14px; }
.payment-info { font-size: 13px; }
.delivery-info-row > span, .field-label { font-size: 13px; }
.delivery-info-row > strong { font-size: 13px; }
.compact-input { font-size: 13px; }
.muted-copy { font-size: 13px; }
.cart-line > div > strong { font-size: 14px; }
.cart-line > div > span { font-size: 13px; }
.cart-line > strong { font-size: 14px; }
.checkout-form .field-group input, .checkout-form .field-group select, .checkout-form .field-group textarea { font-size: 13px; }
.checkout-form .button { font-size: 14px; }
.checkout-summary > div { font-size: 13px; }
.checkout-summary .checkout-total strong { font-size: 14px; }
.checkout-summary > small { font-size: 13px; }
@media (max-width: 900px) {
  .hero-sticker { font-size: 13px; }
}
@media (max-width: 650px) {
  .site-links > a:not(.button) { font-size: 14px; }
  .button-large { font-size: 14px; }
  .hero-bottom > span { font-size: 12px; }
  .hero-tags { font-size: 13px; }
  .feature-card p { font-size: 13px; }
  .feature-audience { font-size: 12px; }
  .feature-card > a { font-size: 13px; }
  .numbers-footnote { font-size: 12px; }
  .faq-list summary { font-size: 14px; }
  .auth-nav { font-size: 13px; }
  .login-story-copy p { font-size: 13px; }
  .auth-footer { font-size: 13px; }
  .user-avatar { font-size: 14px; }
  .topbar-identity strong { font-size: 13px; }
  .topbar-identity small { font-size: 12px; }
  .button-quiet { font-size: 13px; }
  .sidebar-brand { font-size: 14px; }
  .nav-link { font-size: 13px; }
  .dashboard-date { font-size: 12px; }
  .dashboard-welcome-copy .eyebrow { font-size: 12px; }
  .dashboard-welcome-copy > p { font-size: 13px; }
  .dashboard-meal-card strong { font-size: 13px; }
  .role-pill { font-size: 12px; }
  .dashboard-bottom-banner > div > span { font-size: 12px; }
  .app-footer { font-size: 12px; }
}
@media (max-width: 370px) {
  .auth-nav > a:first-child { font-size: 13px; }
}
@media (max-width: 650px) {
  .setup-inline-link { font-size: 13px; }
  .setup-story .login-story-copy p { font-size: 13px; }
}
@media (max-width: 650px) {
  .menu-card-body h3 { font-size: 14px; }
}
.user-table th { font-size: 13px; letter-spacing: .06em; }
.user-table td { font-size: 15px; padding: 15px 16px; white-space: normal; }
.user-table .role-pill { font-size: 13px; }
.user-table small { font-size: 13px; }

/* ---------- Animations ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.8) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 #8fb84a88; } 50% { box-shadow: 0 0 0 8px #8fb84a00; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.hero-copy h1 { animation: slideUp .8s cubic-bezier(.2,.7,.25,1) both; }
.hero-lede { animation: slideUp .8s .12s cubic-bezier(.2,.7,.25,1) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; animation: slideUp .8s .24s cubic-bezier(.2,.7,.25,1) both; }
.hero-photo { animation: floatY 6s ease-in-out infinite; }
.hero-sticker, .delivery-card { animation: floatY 5s ease-in-out infinite; }
.delivery-card { animation-delay: -2s; }
.delivery-live i { animation: pulseDot 1.8s infinite; }
.button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px #1b28222b; }
.button:active { transform: translateY(0); }
.button-outline { border: 2px solid var(--forest); color: var(--forest); background: transparent; }
.button-outline:hover { background: var(--forest); color: #fff; }
.feature-card, .food-card, .workflow-step { transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover, .food-card:hover, .workflow-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

/* ---------- Why choose us ---------- */
.why-section { background: #eef2e3; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.why-card { padding: 28px 24px; border: 1px solid #dfe5d2; border-radius: 18px; background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.why-icon { display: grid; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: var(--forest); color: var(--leaf); font-size: 26px; place-items: center; }
.why-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; color: var(--forest-deep); }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Login / Register / OTP ---------- */
.login-shell { width: min(1020px, 100%); animation: slideUp .75s cubic-bezier(.2,.7,.25,1) both; box-shadow: 0 26px 60px #1b282222; border-radius: 26px; }
.login-panel-inner { width: min(100%, 380px); }
.login-panel-inner h2 { font-size: 36px; }
.login-description, .login-hint, .login-password-note, .setup-login-link { font-size: 13px; }
.login-story-copy p { max-width: 290px; font-size: 14px; }
.login-story-label, .login-story-foot { font-size: 11px; }
.login-panel .field-group label, .login-panel label { font-size: 13px; font-weight: 700; color: var(--forest-deep); }
.login-panel input[type="text"], .login-panel input[type="email"], .login-panel input[type="password"], .login-panel input[type="number"] {
    min-height: 50px; padding: 12px 15px; border: 1.5px solid #dde2d3; border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.login-panel input:focus { border-color: #82a83b; box-shadow: var(--ring); outline: none; }
.login-panel .alert { border-radius: 12px; font-size: 14px; animation: shake .4s ease; }
.login-panel .success-alert { border-radius: 12px; font-size: 14px; }
.button.is-loading { position: relative; pointer-events: none; opacity: .85; }
.button.is-loading::after { display: inline-block; width: 15px; height: 15px; margin-left: 10px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; content: ""; vertical-align: -2px; animation: spin .7s linear infinite; }

.pw-meter { margin-top: 10px; }
.pw-meter-bar { height: 7px; overflow: hidden; border-radius: 9px; background: #e7eadf; }
.pw-meter-bar span { display: block; width: 0; height: 100%; border-radius: 9px; background: #d9534f; transition: width .3s ease, background .3s ease; }
.pw-meter[data-level="2"] .pw-meter-bar span { background: #e8a33d; }
.pw-meter[data-level="3"] .pw-meter-bar span { background: #9cbf3c; }
.pw-meter[data-level="4"] .pw-meter-bar span, .pw-meter[data-level="5"] .pw-meter-bar span { background: #3f9a5a; }
.pw-meter ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: #858c80; }
.pw-meter li::before { content: "○ "; }
.pw-meter li.ok { color: #3f7a45; font-weight: 600; }
.pw-meter li.ok::before { content: "✓ "; }

.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.otp-boxes input { width: 100%; min-height: 58px; padding: 0; border: 1.5px solid #dde2d3; border-radius: 12px; background: #fff; font-family: "Manrope", sans-serif; font-size: 26px; font-weight: 800; text-align: center; color: var(--forest-deep); transition: border-color .2s, box-shadow .2s, transform .15s; }
.otp-boxes input:focus { border-color: #82a83b; box-shadow: var(--ring); outline: none; transform: translateY(-2px); }
.otp-boxes input.filled { border-color: var(--forest); background: #f3f8e6; }
.otp-meta { display: flex; justify-content: space-between; margin-top: 10px; color: #858c80; font-size: 13px; }
.otp-meta strong { color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.button[disabled], .button.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Dashboards (all roles) ---------- */
.main-content { font-size: 15px; }
.dashboard-metric, .dashboard-chart-card, .order-panel, .quick-link-card { border-radius: 18px; transition: transform .22s ease, box-shadow .22s ease; }
.dashboard-metric:hover, .quick-link-card:hover, .dashboard-chart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.dashboard-welcome { border-radius: 22px; animation: slideUp .6s ease both; }
.metric-label { font-size: 13px; font-weight: 700; }
.dashboard-topline, .breadcrumb { font-size: 13px; }
.sidebar .nav-link { font-size: 15px; border-radius: 12px; transition: background .2s, transform .2s; }
.sidebar .nav-link:hover { transform: translateX(3px); }
.user-table-wrap { overflow-x: auto; border-radius: 16px; }
.user-table { font-size: 14px; }
.user-table thead th { position: sticky; top: 0; z-index: 1; background: #eef2e3; font-size: 13px; letter-spacing: .06em; }
.user-table tbody tr:nth-child(even) { background: #fafbf6; }
.user-table tbody tr { transition: background .15s; }
.user-table tbody tr:hover { background: #f0f5e1; }
.table-action { border-radius: 10px; font-size: 13px; transition: transform .15s, background .15s; }
.table-action:hover { transform: translateY(-1px); }
.empty-table { padding: 34px 16px; text-align: center; color: var(--muted); }
.role-pill, .order-status-pill { font-size: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.order-status-pill.status-placed { background: #e3eefb; color: #2a5fa0; }
.order-status-pill.status-confirmed { background: #e0f2f1; color: #1c7a73; }
.order-status-pill.status-preparing { background: #fdf0d9; color: #a56a10; }
.order-status-pill.status-ready_for_pickup, .order-status-pill.status-ready-for-pickup { background: #efe6fb; color: #6a3fb0; }
.order-status-pill.status-assigned_to_rider, .order-status-pill.status-assigned-to-rider { background: #e8eafc; color: #3f46b0; }
.order-status-pill.status-out_for_delivery, .order-status-pill.status-out-for-delivery { background: #ffe9d6; color: #b2570f; }
.order-status-pill.status-delivered { background: #dff3e3; color: #2c7a3d; }
.order-status-pill.status-cancelled { background: #fbe1e0; color: #b3322d; }
.order-timeline .timeline-dot { transition: transform .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
    .why-grid { grid-template-columns: 1fr; }
    .site-header { height: 72px; }
    .site-brand-logo { height: 48px; }
    .login-story-logo { height: 60px; margin-bottom: 6px; }
    .login-panel-inner h2 { font-size: 30px; }
    .otp-boxes { gap: 6px; }
    .otp-boxes input { min-height: 52px; font-size: 22px; }
    .pw-meter ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Landing: sign-in / create-account call to action ---------- */
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.closing-actions .button-outline { border-color: #fff; color: #fff; }
.closing-actions .button-outline:hover { background: #fff; color: var(--forest); }
.closing-actions .button-light { background: var(--leaf); color: var(--forest-deep); }
.nav-signin-btn { font-weight: 700; }
.hero-actions .button-large { min-width: 190px; justify-content: center; }
