* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --gray: #f8fafc;
  --gray2: #f1f5f9;
  --text: #1e293b;
  --text2: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --red: #ef4444;
  --yellow: #f59e0b;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}
body { font-family: 'Inter', sans-serif; background: #f1f5f9; color: var(--text); }
.phone-wrap { max-width: 420px; margin: 0 auto; min-height: 100vh; background: #fff; position: relative; }

/* NAV BOTTOM */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; text-decoration: none; color: var(--text2); font-size: 11px; gap: 4px; transition: color .2s; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--green); }
.bottom-nav a svg { width: 22px; height: 22px; }
.cart-badge { position: relative; }
.badge { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; }

/* HEADER */
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
.top-bar h2 { font-size: 18px; font-weight: 700; }
.top-bar .back-btn { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 8px; display: flex; }

/* BUTTONS */
.btn-green { width: 100%; padding: 15px; background: var(--green); color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { width: 100%; padding: 13px; background: transparent; color: var(--green); border: 2px solid var(--green); border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* INPUT */
.input-field { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; outline: none; transition: border .2s; background: var(--gray); }
.input-field:focus { border-color: var(--green); background: #fff; }

/* LANDING PAGE */
.landing-hero { padding: 60px 28px 32px; text-align: center; }
.landing-logo { width: 72px; height: 72px; background: var(--green-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.landing-logo svg { width: 40px; height: 40px; color: var(--green); }
.landing-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.landing-hero p { color: var(--text2); font-size: 14px; line-height: 1.6; }
.landing-form { padding: 0 28px 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.tos { font-size: 12px; color: var(--text2); text-align: center; margin-top: 16px; line-height: 1.6; }
.tos a { color: var(--green); text-decoration: none; }

/* MENU */
.search-bar { padding: 14px 20px; }
.search-wrap { position: relative; }
.search-wrap input { width: 100%; padding: 11px 16px 11px 42px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; background: var(--gray); outline: none; }
.search-wrap input:focus { border-color: var(--green); background: #fff; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text2); width: 18px; height: 18px; }
.categories { display: flex; gap: 10px; padding: 0 20px 16px; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.cat-btn { flex-shrink: 0; padding: 8px 16px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .2s; }
.cat-btn.active, .cat-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.section-title { padding: 0 20px 12px; font-size: 15px; font-weight: 700; }
.menu-list { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.menu-card { display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); align-items: center; }
.menu-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--gray2); }
.menu-info { flex: 1; }
.menu-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.menu-info p { font-size: 12px; color: var(--text2); margin-bottom: 8px; line-height: 1.4; }
.menu-price { font-size: 15px; font-weight: 700; color: var(--green); }
.add-btn { width: 34px; height: 34px; background: var(--green); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.add-btn:hover { background: var(--green-dark); }
.add-btn svg { color: #fff; width: 18px; height: 18px; }

/* DETAIL */
.detail-img { width: 100%; height: 260px; object-fit: cover; background: var(--gray2); }
.detail-body { padding: 20px 20px 120px; }
.detail-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.detail-price { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.detail-desc { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; }
.detail-note label { font-size: 13px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 7px; }
.detail-note textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; resize: none; outline: none; background: var(--gray); }
.qty-wrap { display: flex; align-items: center; gap: 18px; margin: 20px 0; }
.qty-wrap label { font-size: 13px; font-weight: 600; color: var(--text2); }
.qty-ctrl { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.qty-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); background: #fff; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; }
.qty-num { font-size: 18px; font-weight: 700; min-width: 28px; text-align: center; }
.detail-footer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; background: #fff; padding: 16px 20px; border-top: 1px solid var(--border); }

/* CART */
.cart-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-card { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); align-items: center; }
.cart-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--gray2); flex-shrink: 0; }
.cart-info { flex: 1; }
.cart-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.cart-info .note { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.cart-info .price { font-size: 14px; font-weight: 700; color: var(--green); }
.cart-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-qty button { width: 28px; height: 28px; border: 1.5px solid var(--border); background: #fff; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; }
.cart-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.del-btn { background: none; border: none; cursor: pointer; color: var(--text2); padding: 4px; }
.cart-summary { margin: 0 20px; background: var(--green-light); border-radius: 14px; padding: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.summary-row.total { font-size: 16px; font-weight: 700; color: var(--green); border-top: 1px solid #bbf7d0; padding-top: 10px; margin-top: 4px; margin-bottom: 0; }
.cart-meja { margin: 16px 20px 0; }
.cart-meja label { font-size: 13px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 7px; }
.cart-footer { padding: 16px 20px 24px; }
.empty-cart { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: var(--text2); gap: 16px; }
.empty-cart svg { width: 64px; height: 64px; color: var(--border); }
.empty-cart p { font-size: 15px; }

/* PAYMENT */
.payment-summary { margin: 16px 20px; background: var(--green-light); border-radius: 14px; padding: 16px; }
.payment-summary .total-label { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.payment-summary .total-amount { font-size: 28px; font-weight: 700; color: var(--green); }
.payment-methods { padding: 0 20px; }
.payment-methods h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 14px; margin-bottom: 10px; cursor: pointer; border: 2px solid transparent; box-shadow: var(--shadow); transition: border .2s; }
.pay-option.selected { border-color: var(--green); background: var(--green-light); }
.pay-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--gray2); }
.pay-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.pay-info p { font-size: 12px; color: var(--text2); }
.pay-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.pay-option.selected .pay-check { background: var(--green); border-color: var(--green); }
.pay-option.selected .pay-check::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }
.payment-footer { padding: 16px 20px 32px; }

/* SUCCESS */
.success-wrap { padding: 40px 24px 100px; text-align: center; }
.success-icon { width: 80px; height: 80px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon svg { width: 40px; height: 40px; color: #fff; }
.success-wrap h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-wrap .sub { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.order-card { background: var(--gray); border-radius: 16px; padding: 18px; text-align: left; margin-bottom: 20px; }
.order-card .order-num { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-baru { background: #fef3c7; color: #92400e; }
.status-diproses { background: #dbeafe; color: #1e40af; }
.status-selesai { background: var(--green-light); color: var(--green-dark); }
.status-batal { background: #fee2e2; color: #991b1b; }
.order-items { margin: 12px 0; border-top: 1px solid var(--border); padding-top: 12px; }
.order-item-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.order-total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; color: var(--green); }
.eta { background: #fffbeb; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #92400e; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.success-actions { display: flex; flex-direction: column; gap: 10px; }

/* ADMIN */
.admin-body { display: flex; min-height: 100vh; background: var(--gray); }
.sidebar { width: 220px; background: #1a2e1a; min-height: 100vh; padding: 24px 0; display: flex; flex-direction: column; position: fixed; }
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.sidebar-logo h2 { color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sidebar-logo span { font-size: 22px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: all .2s; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(34,197,94,.15); color: #fff; border-right: 3px solid var(--green); }
.sidebar nav a svg { width: 18px; height: 18px; }
.sidebar-badge { background: var(--red); color: #fff; border-radius: 50px; padding: 1px 7px; font-size: 11px; margin-left: auto; }
.admin-main { margin-left: 220px; flex: 1; padding: 28px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-size: 22px; font-weight: 700; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 14px; background: #fff; padding: 8px 16px; border-radius: 50px; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.stat-card .label { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 700; }
.stat-card .value.green { color: var(--green); }
.stat-card .value.yellow { color: var(--yellow); }
.stat-card .value.blue { color: #3b82f6; }
.admin-table-wrap { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.table-header h2 { font-size: 16px; font-weight: 700; }
.filter-tabs { display: flex; gap: 6px; }
.filter-tab { padding: 6px 14px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; cursor: pointer; transition: all .2s; }
.filter-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; text-align: left; font-size: 12px; color: var(--text2); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--gray); }
td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.view-btn { background: var(--green-light); color: var(--green-dark); border: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; }
/* Detail panel */
.admin-content { display: flex; gap: 20px; }
.admin-table-wrap { flex: 1; }
.detail-panel { width: 300px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px; flex-shrink: 0; height: fit-content; position: sticky; top: 28px; }
.detail-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.detail-meta { font-size: 12px; color: var(--text2); margin-bottom: 14px; }
.detail-items { border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 12px; }
.detail-items .item-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.detail-summary .sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text2); }
.detail-summary .sum-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--green); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-proses { flex: 1; padding: 11px; background: var(--green); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-batal { flex: 1; padding: 11px; background: #fee2e2; color: var(--red); border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
