:root {
  --gold: #e5bb50;
  --gold-light: #f4da83;
  --bg: #080807;
  --panel: #121210;
  --panel-soft: #181815;
  --line: rgba(255,255,255,.075);
  --muted: #85847c;
  --text: #f1eee6;
  --green: #42cf7b;
  --danger: #ff7771;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(circle at 50% 0, rgba(226,181,68,.11), transparent 28rem), #080807; }
.login-card { width: min(100%, 440px); position: relative; padding: 43px; border: 1px solid rgba(229,187,80,.15); border-radius: 26px; background: linear-gradient(145deg, #181815, #0e0e0d); box-shadow: 0 30px 100px rgba(0,0,0,.58); }
.back-link { display: block; margin-bottom: 34px; color: #77766f; font-size: 11px; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid rgba(229,187,80,.25); border-radius: 18px; color: var(--gold); background: rgba(229,187,80,.08); font-size: 25px; font-weight: 900; }
.eyebrow { margin: 0 0 5px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.login-card h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.login-copy { margin: 9px 0 27px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-card label, .form-grid label { display: block; color: #c9c6bc; font-size: 11px; font-weight: 700; }
.login-card input, .form-grid input, .form-grid textarea, .product-row input {
  width: 100%; outline: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: var(--text); background: #0b0b0a; transition: border-color .2s, box-shadow .2s;
}
.login-card input { height: 51px; margin: 8px 0 17px; padding: 0 14px; }
.login-card input:focus, .form-grid input:focus, .form-grid textarea:focus, .product-row input:focus { border-color: rgba(229,187,80,.55); box-shadow: 0 0 0 4px rgba(229,187,80,.06); }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; right: 12px; top: 20px; border: 0; color: var(--gold); background: transparent; cursor: pointer; font-size: 10px; }
.form-error { min-height: 18px; margin: -4px 0 8px; color: var(--danger); font-size: 11px; }
.primary-btn { min-height: 44px; padding: 0 17px; border: 0; border-radius: 12px; color: #19150b; background: linear-gradient(120deg, #b88b32, var(--gold-light)); cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .18s, filter .18s; }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-btn:disabled { opacity: .55; cursor: wait; }
.login-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; min-height: 52px; }

.dashboard { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 230px; display: flex; flex-direction: column; padding: 23px 16px 18px; border-right: 1px solid var(--line); background: #0d0d0c; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 26px; border-bottom: 1px solid var(--line); }
.side-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(229,187,80,.25); border-radius: 12px; color: var(--gold); background: rgba(229,187,80,.08); font-weight: 900; }
.side-brand b { display: block; font-size: 13px; letter-spacing: .05em; }
.side-brand small { display: block; margin-top: 2px; color: #66655f; font-size: 7px; letter-spacing: .16em; }
.sidebar nav { display: grid; gap: 5px; padding-top: 24px; }
.nav-item { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 12px; color: #87867e; background: transparent; cursor: pointer; text-align: left; font-size: 11px; font-weight: 650; }
.nav-item span { width: 22px; color: #77766f; font-size: 15px; text-align: center; }
.nav-item:hover { color: #d4d1c8; background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--gold-light); background: rgba(229,187,80,.09); }
.nav-item.active span { color: var(--gold); }
.side-footer { display: grid; gap: 5px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.side-footer a, .side-footer button { min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 10px; color: #77766f; background: transparent; cursor: pointer; font-size: 10px; text-align: left; }
.side-footer span { width: 18px; font-size: 14px; }
.side-footer a:hover, .side-footer button:hover { color: #d0cdc4; background: rgba(255,255,255,.03); }

.dashboard-main { grid-column: 2; min-width: 0; }
.topbar { height: 82px; position: sticky; z-index: 10; top: 0; display: flex; align-items: center; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(8,8,7,.86); backdrop-filter: blur(15px); }
.topbar > div:first-of-type small { color: var(--gold); font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.topbar h1 { margin: 2px 0 0; font-size: 17px; }
.admin-profile { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.admin-profile > span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(229,187,80,.2); border-radius: 11px; color: var(--gold); background: rgba(229,187,80,.07); font-size: 11px; font-weight: 800; }
.admin-profile b { display: block; font-size: 10px; }
.admin-profile small { display: block; margin-top: 2px; color: var(--green); font-size: 8px; }
.admin-profile i { width: 5px; height: 5px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--green); }
.mobile-menu { display: none; border: 0; color: var(--text); background: transparent; cursor: pointer; font-size: 20px; }
.content { width: min(100% - 60px, 1120px); margin: 0 auto; padding: 34px 0 90px; }
.panel-page { display: none; animation: fadeUp .25s both; }
.panel-page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } }

.welcome-card { min-height: 190px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 29px; border: 1px solid rgba(229,187,80,.16); border-radius: 21px; background: radial-gradient(circle at 82% 30%, rgba(229,187,80,.17), transparent 18rem), linear-gradient(130deg, #191812, #11110f); }
.welcome-card::after { content: "R"; position: absolute; right: 55px; top: -43px; color: rgba(229,187,80,.045); font-size: 240px; font-weight: 950; line-height: 1; }
.welcome-card > div, .welcome-card a { position: relative; z-index: 1; }
.welcome-card h2 { margin: 6px 0 8px; font-size: clamp(23px, 3vw, 34px); letter-spacing: -.045em; }
.welcome-card p:last-child { margin: 0; color: #85847c; font-size: 11px; }
.welcome-card a { padding: 13px 15px; border: 1px solid rgba(229,187,80,.2); border-radius: 11px; color: var(--gold-light); background: rgba(229,187,80,.07); font-size: 10px; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 16px 0; }
.stats-grid article { min-width: 0; min-height: 107px; display: flex; align-items: center; gap: 13px; position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.stat-icon { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 13px; color: var(--gold); background: rgba(229,187,80,.08); }
.stats-grid small { display: block; color: #74736c; font-size: 9px; }
.stats-grid strong { display: block; max-width: 155px; margin-top: 5px; overflow: hidden; color: #dedbd2; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid article > i { position: absolute; right: 13px; top: 12px; padding: 4px 6px; border-radius: 99px; color: var(--green); background: rgba(66,207,123,.07); font-size: 7px; font-style: normal; }
.quick-actions, .settings-card { border: 1px solid var(--line); border-radius: 19px; background: var(--panel); }
.quick-actions { padding: 23px; }
.card-title { display: flex; align-items: center; justify-content: space-between; }
.card-title h2, .card-title h3 { margin: 0; }
.card-title h2 { font-size: 17px; }
.card-title h3 { font-size: 14px; }
.card-title p:not(.eyebrow) { margin: 4px 0 0; color: #72716a; font-size: 9px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 17px; }
.action-grid button { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #0d0d0c; cursor: pointer; text-align: left; }
.action-grid button:hover { border-color: rgba(229,187,80,.25); }
.action-grid button > span { width: 37px; height: 37px; display: grid; flex: 0 0 37px; place-items: center; border-radius: 11px; color: var(--gold); background: rgba(229,187,80,.07); }
.action-grid b { display: block; font-size: 10px; }
.action-grid small { display: block; margin-top: 3px; color: #6d6c65; font-size: 8px; }
.action-grid i { margin-left: auto; color: var(--gold); font-style: normal; }

.page-intro { min-height: 67px; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.page-intro h2 { margin: 3px 0 5px; font-size: 24px; letter-spacing: -.035em; }
.page-intro span { color: #77766f; font-size: 10px; }
.settings-layout { display: grid; grid-template-columns: 1.45fr .8fr; gap: 14px; }
.settings-card { padding: 22px; }
.settings-layout .save-bar { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 13px; margin-top: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { display: block; margin-top: 8px; padding: 0 13px; }
.form-grid input { height: 46px; }
.form-grid textarea { min-height: 90px; padding-top: 12px; resize: vertical; }
.form-grid label > small { display: block; margin-top: 6px; color: #686761; font-size: 8px; font-weight: 400; }
.photo-editor { margin-top: 25px; text-align: center; }
.photo-preview { width: 126px; height: 126px; margin: 0 auto 19px; padding: 3px; border: 1px solid rgba(229,187,80,.3); border-radius: 27px; background: rgba(229,187,80,.05); }
.photo-preview img, .photo-preview > span { width: 100%; height: 100%; border-radius: 23px; object-fit: cover; display: grid; place-items: center; color: var(--gold); background: #0c0c0a; font-size: 27px; font-weight: 900; }
.outline-btn { min-height: 37px; padding: 0 13px; border: 1px solid rgba(229,187,80,.25); border-radius: 10px; color: var(--gold-light); background: rgba(229,187,80,.06); cursor: pointer; font-size: 9px; font-weight: 700; }
.text-btn { min-height: 37px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; }
.text-btn.danger { color: var(--danger); }
.photo-editor p { margin: 13px auto 0; max-width: 210px; color: #66655f; font-size: 8px; line-height: 1.5; }
.save-bar { min-height: 70px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,18,16,.96); }
.save-bar span { margin-right: auto; color: #6e6d67; font-size: 9px; }

.price-intro { align-items: center; }
.product-editor-card { padding: 8px 18px; overflow-x: auto; }
.table-heading, .product-row { min-width: 720px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 90px 42px; align-items: center; gap: 13px; }
.table-heading { height: 42px; color: #66655f; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.product-row { min-height: 74px; border-top: 1px solid var(--line); }
.product-row input { height: 41px; padding: 0 11px; font-size: 10px; }
.input-money { position: relative; }
.input-money::before { content: "Rp"; position: absolute; z-index: 1; left: 10px; top: 14px; color: #66655f; font-size: 8px; }
.input-money input { padding-left: 30px; }
.discount-pill { width: max-content; padding: 6px 8px; border-radius: 99px; color: #ff9791; background: rgba(255,119,113,.08); font-size: 8px; font-weight: 800; }
.delete-product { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #77766f; background: transparent; cursor: pointer; }
.delete-product:hover { color: var(--danger); background: rgba(255,119,113,.07); }
.empty-state { padding: 45px; color: #76756e; text-align: center; font-size: 10px; }
#pricesForm .save-bar { margin-top: 14px; }
.bongkar-editor-card { margin-top: 14px; padding: 22px; overflow: visible; }
.bongkar-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 13px; margin-top: 21px; }
.bongkar-admin-grid label { color: #c9c6bc; font-size: 10px; font-weight: 700; }
.bongkar-admin-grid label.full { grid-column: 1 / -1; }
.admin-money-input, .admin-unit-input { position: relative; display: block; margin-top: 8px; }
.admin-money-input input, .admin-unit-input input, .bongkar-admin-grid textarea { width: 100%; outline: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: var(--text); background: #0b0b0a; transition: .2s; }
.admin-money-input input, .admin-unit-input input { height: 44px; }
.admin-money-input input { padding: 0 12px 0 37px; }
.admin-unit-input input { padding: 0 37px 0 12px; }
.admin-money-input i, .admin-unit-input i { position: absolute; top: 15px; color: #77766f; font-size: 9px; font-style: normal; }
.admin-money-input i { left: 12px; }
.admin-unit-input i { right: 13px; color: var(--gold); font-weight: 800; }
.bongkar-admin-grid textarea { display: block; min-height: 76px; margin-top: 8px; padding: 11px 12px; resize: vertical; }
.admin-money-input input:focus, .admin-unit-input input:focus, .bongkar-admin-grid textarea:focus { border-color: rgba(229,187,80,.55); box-shadow: 0 0 0 4px rgba(229,187,80,.06); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 12px 17px; border: 1px solid rgba(66,207,123,.22); border-radius: 99px; color: #9ce8ba; background: #16231a; box-shadow: 0 18px 60px rgba(0,0,0,.5); font-size: 10px; transform: translate(-50%, 100px); opacity: 0; transition: .28s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,119,113,.25); color: #ffaaa6; background: #281615; }
.sidebar-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(0,0,0,.65); }

@media (max-width: 900px) {
  .dashboard { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { width: 100%; }
  .mobile-menu { display: block; margin-right: 15px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-layout .save-bar { grid-column: auto; }
}
@media (max-width: 650px) {
  .login-card { padding: 30px 22px; }
  .topbar { height: 70px; padding: 0 16px; }
  .content { width: min(100% - 24px, 560px); padding-top: 22px; }
  .admin-profile div { display: none; }
  .welcome-card { min-height: 220px; align-items: flex-start; flex-direction: column; }
  .welcome-card::after { right: -12px; top: 10px; font-size: 180px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article { min-height: 87px; }
  .action-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .bongkar-admin-grid { grid-template-columns: 1fr; }
  .bongkar-admin-grid label.full { grid-column: auto; }
  .form-grid .full { grid-column: auto; }
  .page-intro { gap: 14px; }
  .price-intro { align-items: flex-start; flex-direction: column; }
  .save-bar { position: sticky; z-index: 5; bottom: 10px; }
  .save-bar span { display: none; }
  .save-bar .primary-btn { width: 100%; }
}
