/* ============================================
   BELLYWELL — Clean & Simple Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --green-900: #14532D;
  --green-800: #166534;
  --green-700: #15803D;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-400: #4ADE80;
  --green-300: #86EFAC;
  --green-200: #BBF7D0;
  --green-100: #DCFCE7;
  --green-50: #F0FDF4;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;

  --orange-500: #F97316;
  --orange-100: #FFEDD5;
  --red-500: #EF4444;
  --red-100: #FEE2E2;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --purple-500: #8B5CF6;
  --purple-100: #EDE9FE;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* App Shell */
.app {
  max-width: 430px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100dvh;
  position: relative;
}

@media (min-width: 431px) {
  body {
    background: var(--gray-100);
  }

  .app {
    box-shadow: var(--shadow-lg);
  }
}

/* Page Views */
.page {
  display: none;
}

.page.active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ========== COMPONENTS ========== */

/* Top Navigation */
.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav h1 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.topnav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-600);
  transition: background 0.15s;
}

.topnav-btn:hover {
  background: var(--gray-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  padding: 0 20px;
  height: 44px;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  height: 48px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-sm {
  height: 34px;
  font-size: 13px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
}

.btn-danger {
  border: 1.5px solid var(--red-500);
  color: var(--red-500);
}

.btn-danger:hover {
  background: var(--red-100);
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-green {
  background: var(--green-100);
  color: var(--green-800);
}

.badge-orange {
  background: var(--orange-100);
  color: var(--orange-500);
}

.badge-red {
  background: var(--red-100);
  color: var(--red-500);
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-500);
}

.badge-purple {
  background: var(--purple-100);
  color: var(--purple-500);
}

/* Form Elements */
.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.field-input:focus {
  border-color: var(--green-500);
}

.field-input::placeholder {
  color: var(--gray-400);
}

.field-textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}

.field-textarea:focus {
  border-color: var(--green-500);
}

.field-icon-wrap {
  position: relative;
}

.field-icon-wrap .field-input {
  padding-left: 40px;
}

.field-icon-wrap .icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--gray-400);
  pointer-events: none;
}

.field-icon-wrap .icon-right {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--gray-400);
  padding: 4px;
}

.field-icon-wrap .icon-right:hover {
  color: var(--gray-600);
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
  user-select: none;
}

.checkbox input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 11px;
  color: transparent;
}

.checkbox input:checked+.checkbox-box {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.toggle-row-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.toggle-row-info p {
  font-size: 12px;
  color: var(--gray-500);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked+.toggle-track {
  background: var(--green-500);
}

.toggle input:checked+.toggle-track::before {
  transform: translateX(20px);
}

/* Chip / Filter Pill */
.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  transition: all 0.15s;
  white-space: nowrap;
}

.chip.active {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 600;
}

/* Toast */
.toast-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 32px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-wrap.show {
  transform: translateX(-50%) translateY(0);
}

.toast-inner {
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}

.toast-inner.success {
  background: var(--green-700);
}

.toast-inner.error {
  background: var(--red-500);
}

/* Scroll body */
.page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Section */
.section {
  padding: 16px 20px;
}

.section+.section {
  border-top: 6px solid var(--gray-50);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .count {
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ========== LOGIN PAGE ========== */
.login-page {
  justify-content: center;
  padding: 40px 24px;
  background: var(--white);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo-img {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.login-header p {
  font-size: 14px;
  color: var(--gray-500);
}

.login-form {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.login-help {
  text-align: center;
  margin-top: 20px;
}

.login-help a {
  font-size: 13px;
  color: var(--green-600);
  font-weight: 500;
}

.login-help a:hover {
  text-decoration: underline;
}

/* ========== DASHBOARD ========== */
.dash-profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.dash-profile-bar .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.dash-profile-bar .sub {
  font-size: 12px;
  color: var(--gray-500);
}

.dash-profile-bar .spacer {
  flex: 1;
}

.dash-profile-bar .topnav-btn {
  color: var(--gray-500);
}

/* Menu Mingguan Banner */
.menu-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 12px 20px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.menu-banner:hover {
  background: var(--green-100);
}

.menu-banner .icon {
  font-size: 22px;
}

.menu-banner .text {
  flex: 1;
}

.menu-banner .text strong {
  font-size: 14px;
  color: var(--green-800);
  display: block;
}

.menu-banner .text small {
  font-size: 11px;
  color: var(--green-600);
}

.menu-banner .arrow {
  color: var(--green-500);
  font-size: 18px;
}

/* Active Package Card */
.pkg-card {
  margin: 0 20px 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}

.pkg-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pkg-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.pkg-progress {
  padding: 0 16px 14px;
}

.pkg-progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pkg-progress-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

.pkg-progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-500);
}

.pkg-progress-label strong {
  color: var(--green-700);
}

.pkg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-100);
}

.pkg-stat {
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--gray-100);
}

.pkg-stat:last-child {
  border-right: none;
}

.pkg-stat .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-700);
  display: block;
}

.pkg-stat .label {
  font-size: 11px;
  color: var(--gray-500);
}

.pkg-footer {
  padding: 0 16px 14px;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  padding: 0 20px;
}

.tab {
  padding: 10px 0;
  margin-right: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  position: relative;
  transition: color 0.15s;
}

.tab.active {
  color: var(--green-700);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px 2px 0 0;
}

/* History List */
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-50);
}

.history-item:last-child {
  border-bottom: none;
}

.history-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.history-item .info {
  flex: 1;
  min-width: 0;
}

.history-item .info .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item .info .date {
  font-size: 12px;
  color: var(--gray-400);
}

/* Audit Timeline */
.audit-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-50);
  display: flex;
  gap: 12px;
}

.audit-item:last-child {
  border-bottom: none;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  margin-top: 6px;
  flex-shrink: 0;
}

.audit-dot.admin {
  background: var(--purple-500);
}

.audit-item .audit-body {
  flex: 1;
}

.audit-item .audit-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.audit-item .audit-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.audit-item .audit-time {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ========== EDIT ORDER PAGE ========== */
.edit-body {
  padding-bottom: 80px;
}

.filter-section {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

/* Mini Cal */
.mini-cal {
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mini-cal-head span {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.mini-cal-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mini-cal-scroll::-webkit-scrollbar {
  display: none;
}

.cal-cell {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.cal-cell .dn {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  display: block;
}

.cal-cell .dd {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  display: block;
  margin: 2px 0;
}

.cal-cell .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 2px auto 0;
}

.cal-cell:hover {
  background: var(--green-50);
}

.cal-cell.today {
  border-color: var(--green-300);
}

.cal-cell.active {
  background: var(--green-600);
  border-color: var(--green-600);
}

.cal-cell.active .dn,
.cal-cell.active .dd {
  color: var(--white);
}

.cal-cell.active .dot {
  background: rgba(255, 255, 255, 0.5) !important;
}

.cal-cell .dot.lunch {
  background: var(--green-400);
}

.cal-cell .dot.dinner {
  background: var(--orange-500);
}

.cal-cell.off {
  opacity: 0.3;
  pointer-events: none;
}

/* Select bar */
.select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  font-size: 13px;
}

.select-bar .count {
  font-weight: 600;
  color: var(--green-700);
}

/* Order items */
.order-items {
  padding: 8px 20px;
}

.order-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 8px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
}

.order-card:hover {
  border-color: var(--gray-200);
}

.order-card.selected {
  border-color: var(--green-500);
  background: var(--green-50);
}

.order-card .cb {
  margin-top: 1px;
}

.order-card .body {
  flex: 1;
  min-width: 0;
}

.order-card .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.order-card .date-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.order-card .tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.order-card .addr {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.order-card .meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-400);
}

/* Bottom bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 12px 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 200;
  transition: transform 0.25s ease-out;
}

.bottom-bar.hide {
  transform: translateX(-50%) translateY(100%);
}

/* ========== BOTTOM SHEET ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  max-height: 88dvh;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.sheet.show {
  transform: translateX(-50%) translateY(0);
}

.sheet-bar {
  width: 32px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  margin: 10px auto 4px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px;
  flex-shrink: 0;
}

.sheet-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.sheet-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s;
}

.sheet-x:hover {
  background: var(--gray-200);
}

.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}

/* Action list in sheet */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.15s;
}

.action-row:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.action-row .a-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.action-row .a-text {
  flex: 1;
}

.action-row .a-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.action-row .a-text p {
  font-size: 12px;
  color: var(--gray-500);
}

.action-row .a-arrow {
  color: var(--gray-400);
  font-size: 16px;
}

.a-icon.ic-date {
  background: var(--blue-100);
}

.a-icon.ic-addr {
  background: var(--orange-100);
}

.a-icon.ic-meal {
  background: var(--green-100);
}

.a-icon.ic-slot {
  background: var(--purple-100);
}

.a-icon.ic-cut {
  background: var(--gray-100);
}

/* Full calendar */
.fullcal {
  margin-bottom: 16px;
}

.fullcal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fullcal-nav span {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.fullcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fc-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 6px 0;
}

.fc-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.fc-day:hover {
  background: var(--green-50);
}

.fc-day.today {
  font-weight: 700;
  border: 1.5px solid var(--green-400);
}

.fc-day.picked {
  background: var(--green-600);
  color: var(--white);
  font-weight: 700;
}

.fc-day.off {
  color: var(--gray-300);
  pointer-events: none;
}

.fc-day.holiday {
  color: var(--red-500);
}

.cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-500);
}

.cal-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* Disclaimer */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  border: 1px solid var(--gray-100);
}

.disclaimer p {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--gray-800);
}

/* Address cards */
.addr-card {
  padding: 14px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.addr-card:hover {
  border-color: var(--gray-200);
}

.addr-card.picked {
  border-color: var(--green-500);
  background: var(--green-50);
}

.addr-card .addr-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.addr-card .addr-text {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}

.addr-card .addr-detail {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

.addr-card .addr-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.addr-card .addr-actions button {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 4px 0;
  transition: color 0.15s;
}

.addr-card .addr-actions button:hover {
  color: var(--green-700);
}

.addr-card .addr-actions .del:hover {
  color: var(--red-500);
}

.btn-add-addr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  transition: all 0.15s;
}

.btn-add-addr:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}

/* Addr form */
.addr-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-box {
  width: 100%;
  height: 140px;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-400);
  font-size: 13px;
  cursor: pointer;
}

.map-box:hover {
  border-color: var(--green-400);
}

.label-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.label-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}

.label-pill.active {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-700);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Meal sections */
.meal-sec {
  margin-bottom: 20px;
}

.meal-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.meal-sec-head .ico {
  font-size: 18px;
}

.meal-sec-head h4 {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.meal-sec-head .quota {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
}

.meal-sec-head .quota.full {
  background: var(--red-100);
  color: var(--red-500);
}

.meal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.meal-pill:hover {
  border-color: var(--green-300);
}

.meal-pill.on {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.meal-pill.locked {
  opacity: 0.35;
  pointer-events: none;
}

.meal-pill .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
  transition: all 0.15s;
  flex-shrink: 0;
}

.meal-pill.on .dot {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}

/* Slot cards */
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slot-card {
  padding: 20px 14px;
  text-align: center;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.slot-card:hover {
  border-color: var(--gray-200);
}

.slot-card.on {
  border-color: var(--green-500);
  background: var(--green-50);
}

.slot-card .slot-ico {
  font-size: 28px;
  margin-bottom: 8px;
}

.slot-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.slot-card p {
  font-size: 12px;
  color: var(--gray-500);
}

/* Menu modal */
.menu-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: all 0.15s;
  white-space: nowrap;
}

.menu-tab.active {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}

.menu-block {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

.menu-block-type {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

.menu-block-type.lunch {
  background: var(--blue-100);
  color: var(--blue-500);
}

.menu-block-type.dinner {
  background: var(--orange-100);
  color: var(--orange-500);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.menu-row+.menu-row {
  border-top: 1px solid var(--gray-200);
}

.menu-row .emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.menu-row .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.menu-row .cal {
  font-size: 11px;
  color: var(--gray-500);
}

/* Profile */
.profile-head {
  text-align: center;
  padding: 32px 20px 24px;
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  border: 3px solid var(--green-200);
}

.profile-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.profile-head p {
  font-size: 13px;
  color: var(--gray-500);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-50);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row .pr-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-row .pr-label {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-row .pr-value {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

/* Hidden utility */
.hide {
  display: none !important;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

::selection {
  background: var(--green-200);
  color: var(--green-900);
}