/* ============================================================
   SEENMODE — Master Stylesheet (Mobile-First Responsive)
   Font: Poppins | Colors: #000 / #fff / #206b38
   Compatible: Safari iOS, Chrome Android, all modern browsers
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #206b38;
  --green-dark: #174e29;
  --green-light: #e8f5ed;
  --green-mid: #2d8a4a;
  --black: #0a0a0a;
  --gray-900: #111;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #ccc;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --danger: #c0392b;
  --danger-light: #fdf0ef;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --info: #2563eb;
  --info-light: #eff6ff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500; background: var(--white); color: var(--black);
  line-height: 1.6; font-size: 14px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; -webkit-appearance: none; appearance: none; }
/* Prevent iOS zoom on input focus */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], input[type="number"],
select, textarea { font-size: 16px; }

/* ---- Logo Images ---- */
.logo-img-dark  { display: block; height: 28px; width: auto; object-fit: contain; }
.logo-img-light { display: block; height: 36px; width: auto; object-fit: contain; margin: 0 auto; }

/* ---- Auth Pages ---- */
.auth-body {
  min-height: 100vh; min-height: -webkit-fill-available;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); padding: 16px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; padding: 36px 28px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-mark {
  width: 56px; height: 56px; background: var(--green); border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.auth-logo .logo-mark svg { width: 30px; height: 30px; fill: #fff; }
.auth-logo h1 { font-size: 20px; font-weight: 700; color: var(--black); margin-top: 10px; }
.auth-logo p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.auth-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-align: center; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 400;
  color: var(--black); background: var(--white);
  transition: border-color .2s, box-shadow .2s; outline: none; -webkit-appearance: none;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,107,56,.12); }
.form-control::placeholder { color: var(--gray-300); }
.form-control-sm { padding: 8px 12px; font-size: 14px; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; gap: 12px; }
.form-row.col-2 { grid-template-columns: 1fr 1fr; }
.form-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  min-height: 44px;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn-ghost { background: transparent; color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 8px 14px; font-size: 12px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 15px; min-height: 50px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; border-radius: 8px; min-width: 44px; min-height: 44px; }

/* ---- Layout ---- */
.layout { display: flex; min-height: 100vh; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 99;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

.sidebar {
  width: var(--sidebar-w); background: var(--black); color: var(--white);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0;
  height: 100vh; height: -webkit-fill-available; z-index: 100;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transition: transform .3s cubic-bezier(.4,0,.2,1), -webkit-transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-logo {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: block;
}
.sidebar-logo .logo-box {
  width: 38px; height: 38px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo .logo-box svg { width: 22px; height: 22px; fill: #fff; }
.sidebar-logo .logo-img-dark {
  display: block;
  height: 26px;
  width: auto;
  max-width: 100%;
  margin-bottom: 8px;
}
.sidebar-role-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 8px;
}

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.3); padding: 10px 8px 6px; margin-top: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px;
  border-radius: 8px; color: rgba(255,255,255,.65); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all .15s; margin-bottom: 2px;
  text-decoration: none; min-height: 44px;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--green); color: #fff; }
.nav-item .nav-icon { width: 20px; flex-shrink: 0; opacity: .85; font-size: 16px; }
.nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.sidebar-user {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; overflow: hidden; }
.sidebar-user .user-info h4 {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user .user-info span { font-size: 11px; color: rgba(255,255,255,.4); }
.sidebar-user a.logout {
  color: rgba(255,255,255,.3); font-size: 18px; transition: color .2s;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: flex-end;
}
.sidebar-user a.logout:hover { color: var(--danger); text-decoration: none; }

.main-content {
  margin-left: var(--sidebar-w); flex: 1; display: flex;
  flex-direction: column; min-height: 100vh; max-width: 100%; overflow-x: hidden;
}

.topbar {
  height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title h1 { font-size: 17px; font-weight: 700; flex: 1; }
.topbar-title span { font-size: 12px; color: var(--gray-500); display: block; font-weight: 400; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.sidebar-toggle-btn {
  display: none; background: var(--gray-100); border: none; border-radius: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; flex-shrink: 0; color: var(--black);
}

.notif-btn {
  position: relative; width: 40px; height: 40px; background: var(--gray-100);
  border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; flex-shrink: 0;
}
.notif-btn .badge {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
}

.page-content { padding: 20px; flex: 1; }

/* ---- Cards ---- */
.card { background: var(--white); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.card-header h3 { font-size: 14px; font-weight: 700; }
.card-body { padding: 18px; }
.card-footer { padding: 14px 18px; border-top: 1px solid var(--gray-100); background: var(--gray-100); }

/* ---- Stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { width: 40px; height: 40px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 24px; font-weight: 800; color: var(--black); }
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-top: 2px; }
.stat-card.green-bg { background: var(--green); color: #fff; }
.stat-card.green-bg .stat-icon { background: rgba(255,255,255,.2); }
.stat-card.green-bg .stat-value { color: #fff; }
.stat-card.green-bg .stat-label { color: rgba(255,255,255,.7); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-100); }
th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); white-space: nowrap; border-bottom: 1px solid var(--gray-300); }
td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--gray-100); color: var(--black); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(32,107,56,.03); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-blue { background: var(--info-light); color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.badge-black { background: var(--black); color: #fff; }

/* ---- Progress ---- */
.progress-bar-wrap { background: var(--gray-100); border-radius: 20px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 20px; transition: width .4s ease; }

/* ---- Roadmap ---- */
.roadmap { display: flex; flex-direction: column; gap: 0; }
.roadmap-item { display: flex; align-items: flex-start; gap: 16px; position: relative; padding-bottom: 24px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-line { position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--gray-300); }
.roadmap-item.done .roadmap-line { background: var(--green); }
.roadmap-dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--gray-100); border: 2px solid var(--gray-300); z-index: 1; }
.roadmap-item.done .roadmap-dot { background: var(--green); border-color: var(--green); }
.roadmap-item.active .roadmap-dot { border-color: var(--green); animation: pulse-dot 1.5s infinite; }
.roadmap-content h4 { font-size: 13px; font-weight: 600; }
.roadmap-content span { font-size: 12px; color: var(--gray-500); }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(32,107,56,.4); } 50% { box-shadow: 0 0 0 6px rgba(32,107,56,0); } }

/* ---- Deliverables ---- */
.deliverables-table th:not(:first-child):not(:last-child) { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); max-width: 36px; padding: 14px 6px; font-size: 10px; }
.check-cell { text-align: center; }
.check-cell input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-100); margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-btn { padding: 10px 16px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; white-space: nowrap; min-height: 44px; }
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Modal (bottom sheet on mobile) ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-header { padding: 20px 22px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: var(--gray-100); border: none; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.modal-body { padding: 18px 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- Flash ---- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.flash-success { background: var(--green-light); color: var(--green-dark); border-left: 3px solid var(--green); }
.flash-error   { background: var(--danger-light); color: var(--danger); border-left: 3px solid var(--danger); }
.flash-info    { background: var(--info-light); color: var(--info); border-left: 3px solid var(--info); }

/* ---- File Upload ---- */
.file-drop { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--green); background: var(--green-light); }
.file-drop p { font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.file-drop .upload-icon { font-size: 32px; }
.file-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.file-preview a { color: var(--green); font-weight: 600; }

/* ---- Stepper ---- */
.stepper { display: flex; align-items: center; margin-bottom: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; padding-bottom: 4px; }
.step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gray-500); }
.step.done .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.step.active .step-num { border-color: var(--green); color: var(--green); }
.step-label { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.step.active .step-label, .step.done .step-label { color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--gray-300); min-width: 20px; }
.step.done + .step-line { background: var(--green); }

/* ---- Misc ---- */
.discount-banner { background: var(--green-light); border: 1.5px solid var(--green); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--green-dark); flex-wrap: wrap; }
.partner-card { border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; position: relative; }
.partner-card .partner-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.partner-card .partner-header h4 { font-size: 14px; font-weight: 700; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.addon-card { border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.addon-card:hover { border-color: var(--green); }
.addon-card.selected { border-color: var(--green); background: var(--green-light); }
.addon-card .addon-name { font-weight: 700; font-size: 14px; }
.addon-card .addon-price { font-size: 18px; font-weight: 800; color: var(--green); }
.addon-card p { font-size: 12px; color: var(--gray-500); }
.pl-card { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.pl-card h3 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.pl-card .pl-value { font-size: 32px; font-weight: 800; }
.pl-card.green-card { background: var(--green); }
.pl-card.red-card { background: var(--danger); }
.approval-info { background: var(--gray-100); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.approval-info pre { font-family: 'Courier New', monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all; color: var(--black); }
.notif-list { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); display: flex; gap: 10px; align-items: flex-start; }
.notif-item.unread { background: var(--green-light); }
.notif-item .notif-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notif-item .notif-text h5 { font-size: 12px; font-weight: 600; }
.notif-item .notif-text p { font-size: 11px; color: var(--gray-500); }
.agreement-scroll { height: 260px; overflow-y: scroll; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 16px; font-size: 13px; line-height: 1.8; color: var(--gray-700); margin-bottom: 16px; }
.refund-timeline { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt-step { flex: 1; min-width: 100px; text-align: center; position: relative; padding-top: 40px; }
.rt-step::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--gray-300); }
.rt-step:first-child::before { left: 50%; }
.rt-step:last-child::before { right: 50%; }
.rt-step.done::before { background: var(--green); }
.rt-dot { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--gray-300); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gray-300); z-index: 1; }
.rt-step.done .rt-dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.rt-step h5 { font-size: 11px; font-weight: 600; }
.rt-step span { font-size: 10px; color: var(--gray-500); }
.request-item { border: 1px solid var(--gray-100); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; }
.request-item .req-icon { width: 36px; height: 36px; background: var(--green-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.request-item h5 { font-size: 13px; font-weight: 600; }
.request-item p { font-size: 12px; color: var(--gray-500); }
.request-item .req-meta { margin-left: auto; text-align: right; flex-shrink: 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ---- Toast ---- */
.toast-container { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom,0)); right: 16px; left: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--black); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toast-in .3s ease; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes toast-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .page-content { padding: 16px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { width: 280px; transform: translateX(-280px); -webkit-transform: translateX(-280px); box-shadow: none; }
  .sidebar.open { transform: translateX(0); -webkit-transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .sidebar-toggle-btn { display: flex; }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar-title h1 { font-size: 15px; }
  .topbar-title span { display: none; }
  .auth-card { padding: 24px 18px; border-radius: var(--radius); }
  .auth-body { padding: 12px; align-items: flex-start; padding-top: 40px; }
  .form-row.col-2, .form-row.col-3 { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 20px; }
  .card-body { padding: 14px; }
  .card-header { padding: 13px 14px; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-width: 100%; }
  .addon-grid { grid-template-columns: 1fr; }
  .request-item { flex-wrap: wrap; }
  .request-item .req-meta { margin-left: 0; text-align: left; width: 100%; }
  .page-content { padding: 14px 12px; }
  .pl-card { padding: 18px; }
  .pl-card .pl-value { font-size: 26px; }
}

@media (max-width: 390px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn { font-size: 13px; padding: 11px 16px; }
  .topbar-title h1 { font-size: 14px; }
}

/* ---- Utilities ---- */
.text-green { color: var(--green); }
.text-red { color: var(--danger); }
.text-gray { color: var(--gray-500); }
.text-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.w-full { width: 100%; } .hidden { display: none; }
.divider { height: 1px; background: var(--gray-100); margin: 16px 0; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
