/* =============================================
   Dapur pintar — GLOBAL CSS DESIGN SYSTEM
   ============================================= */

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

/* === CSS VARIABLES === */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-glow: rgba(5, 150, 105, 0.18);
  --secondary: #10b981;
  --secondary-dark: #0d9668;
  --accent: #c9a227;
  --danger: #db6060;
  --danger-dark: #bf4f4f;
  --warning: #cc8b4a;
  --purple: #8776dd;

  --bg: #f0fdf4;
  --bg-2: #ecfdf5;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --surface-3: #eef3ff;
  --glass: rgba(54, 84, 150, 0.04);
  --glass-border: rgba(61, 90, 150, 0.14);

  --text: #172033;
  --text-2: #2f3d58;
  --text-muted: #70809b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 6px 18px rgba(44, 64, 105, 0.08);
  --shadow: 0 10px 28px rgba(44, 64, 105, 0.13);
  --shadow-lg: 0 16px 44px rgba(44, 64, 105, 0.18);
  --shadow-glow: 0 0 28px rgba(5, 150, 105, 0.12);

  --transition: 0.24s cubic-bezier(0.22,0.8,0.2,1);
  --transition-slow: 0.46s cubic-bezier(0.22,0.8,0.2,1);

  /* Motif batik halus (ubin SVG), transparan — dipakai di body & halaman login */
  --batik-motif: url('../assets/batik-motif.svg');
  --batik-tile-size: 252px;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    var(--batik-motif) 0 0 / var(--batik-tile-size) var(--batik-tile-size) repeat,
    radial-gradient(120% 75% at 50% -24%, rgba(79,125,223,0.14) 0%, transparent 56%),
    radial-gradient(80% 52% at 100% 24%, rgba(62,175,149,0.08) 0%, transparent 54%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
    var(--batik-motif) 0 0 / var(--batik-tile-size) var(--batik-tile-size) repeat,
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(79,125,223,0.16) 0%, transparent 70%),
    linear-gradient(135deg, #f3f7ff 0%, #ecf3ff 100%);
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  position: relative;
  overflow-x: hidden;
}

.login-main {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 12px;
}

.login-bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.05) 0%, transparent 40%);
  pointer-events: none;
}


.login-floating {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}

.login-floating-a {
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent);
}

.login-floating-b {
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.05), transparent);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.6s var(--transition-slow) both;
  margin: 0 auto;
  z-index: 2;
}

.auth-entry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-border);
}

.auth-entry-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-entry-tab.is-active {
  background: rgba(99, 102, 241, 0.22);
  color: var(--text);
}

.auth-entry-panel[hidden] {
  display: none !important;
}

.auth-entry-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.auth-entry-success {
  text-align: center;
  padding: 8px 0 4px;
}

.auth-entry-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.login-top-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.login-top-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.login-top-nav a:hover {
  color: var(--primary);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon-wrap {
  width: 72px;
  height: 72px;
  background: transparent;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-horizontal {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto 20px;
}

.about-logo-app {
  display: block;
  width: min(140px, 42vw);
  height: auto;
  margin: 0 auto 16px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.login-logo h1 {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo p { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

.login-mobile-hero {
  display: none;
}

/* === FORM ELEMENTS === */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrap { position: relative; }

/* Login / signup: tombol mata tampilkan password */
.auth-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-pw-wrap .input {
  padding-right: 44px;
  width: 100%;
}

.auth-pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 6px;
}

.auth-pw-toggle:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.auth-pw-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 42px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input:not(.has-icon),
.form-group select:not(.has-icon),
.form-group textarea:not(.has-icon) {
  padding-left: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select option { background: var(--surface-2); color: var(--text); }

.form-group textarea { resize: vertical; min-height: 96px; padding-left: 16px !important; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn.is-loading { pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, #34d399 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(5, 150, 105, 0.4); transform: translateY(-1px); }

.btn-success {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: white;
}

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 9px; border-radius: var(--radius-sm); }

/* === GLOBAL FOOTER + ABOUT PAGE === */
.app-footer {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-page .app-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.login-page .login-footer-saas {
  flex-shrink: 0;
}

.legal-page .legal-prose {
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-page .legal-prose a {
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.legal-page .legal-prose a:hover {
  text-decoration: underline;
}

.app-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

.about-page {
  min-height: calc(100vh - 72px);
  padding: 28px 16px;
}

.about-portfolio-page {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.about-logo-wrap {
  margin-bottom: 20px;
}

.about-logo,
.about-logo-horizontal {
  display: block;
  width: min(300px, 100%);
  height: auto;
}

.about-card h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 125, 223, 0.16), rgba(62, 175, 149, 0.1)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hero h1,
.about-hero-headline {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
}

.about-hero-sub {
  font-size: 1.05rem;
}

.about-subtitle {
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-hero-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.about-hero-panel div,
.about-feature-card,
.about-flow div {
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 90%, #ffffff);
  box-shadow: var(--shadow-sm);
}

.about-hero-panel strong,
.about-hero-panel span {
  display: block;
}

.about-hero-panel strong {
  margin-bottom: 5px;
}

.about-hero-panel span,
.about-feature-card p,
.about-flow small,
.about-section-head p {
  color: var(--text-muted);
  line-height: 1.5;
}

.about-section {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.about-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.about-feature-grid,
.about-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.about-feature-card p {
  margin: 0;
  font-size: 0.9rem;
}

.about-flow div {
  min-height: 142px;
}

.about-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(79, 125, 223, 0.14);
  color: var(--primary);
  font-weight: 900;
}

.about-flow strong,
.about-flow small {
  display: block;
}

.about-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.about-brand-line {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-hero-foot {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.about-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-roadmap-grid,
.about-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-roadmap-card,
.about-pricing-card {
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, #ffffff);
  box-shadow: var(--shadow-sm);
}

.about-roadmap-card h3,
.about-pricing-card h3 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
}

.about-roadmap-card ul,
.about-pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.about-roadmap-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 125, 223, 0.14);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-pricing-price {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.about-pricing-card.is-highlight {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--glass-border));
  box-shadow: var(--shadow-md);
}

.about-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-role-card {
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, #ffffff);
  box-shadow: var(--shadow-sm);
}

.about-role-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.about-role-summary {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-role-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-brand-line a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.about-brand-line a:hover {
  text-decoration: underline;
}

.app-footer-brand {
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Panduan & FAQ (panduan.html) */
.panduan-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.88rem;
}

.panduan-topnav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.panduan-topnav a:hover {
  text-decoration: underline;
}

.panduan-intro {
  margin-top: 0;
}

.panduan-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panduan-toc a {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--surface) 85%, #fff);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.panduan-toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.panduan-steps {
  display: grid;
  gap: 12px;
}

.panduan-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, #fff);
}

.panduan-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.panduan-step p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.panduan-tutorial-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 16px;
}

.panduan-tutorial-list li {
  padding-left: 4px;
}

.panduan-tutorial-list li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.panduan-tutorial-list li p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.panduan-tip {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.panduan-sublist {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.panduan-sublist li {
  margin-bottom: 6px;
}

.panduan-tip.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

.panduan-faq-list {
  display: grid;
  gap: 10px;
}

.panduan-faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, #fff);
  overflow: hidden;
}

.panduan-faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
}

.panduan-faq-item summary::-webkit-details-marker {
  display: none;
}

.panduan-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-weight: 800;
}

.panduan-faq-item[open] summary::after {
  content: '−';
}

.panduan-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.panduan-faq-item a {
  color: var(--primary);
}

.panduan-cta {
  text-align: center;
}

.panduan-cta .about-actions {
  justify-content: center;
}

.auth-recovery-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.auth-recovery-hint a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }

  .about-benefits-grid,
  .about-roadmap-grid,
  .about-pricing-grid,
  .about-roles-grid,
  .about-feature-grid,
  .about-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-page {
    padding: 16px 12px;
  }

  .about-hero,
  .about-section {
    padding: 18px;
  }

  .about-benefits-grid,
  .about-roadmap-grid,
  .about-pricing-grid,
  .about-roles-grid,
  .about-feature-grid,
  .about-flow {
    grid-template-columns: 1fr;
  }
}

/* === CARDS === */
.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-hover:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === STAT CARDS === */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.stat-card.blue::before { background: linear-gradient(90deg, var(--primary), #60a5fa); }
.stat-card.green::before { background: linear-gradient(90deg, var(--secondary), #34d399); }
.stat-card.amber::before { background: linear-gradient(90deg, var(--accent), #fbbf24); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.stat-card.red::before { background: linear-gradient(90deg, var(--danger), #f87171); }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.stat-card.blue .stat-icon { background: rgba(59,130,246,0.15); }
.stat-card.green .stat-icon { background: rgba(16,185,129,0.15); }
.stat-card.amber .stat-icon { background: rgba(245,158,11,0.15); }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.15); }
.stat-card.red .stat-icon { background: rgba(239,68,68,0.15); }

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-sublabel {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.35;
  margin-top: 6px;
  opacity: 0.9;
}

.courier-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.courier-summary-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.courier-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.95;
}

.courier-summary-card.tone-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.courier-summary-card.tone-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.courier-summary-card.tone-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.courier-summary-card.tone-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.courier-summary-card.tone-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.courier-summary-card.tone-teal::before { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

.courier-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.courier-summary-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.courier-summary-rank {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.courier-summary-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.courier-summary-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.courier-summary-progress {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.courier-summary-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.courier-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.courier-period-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.courier-period-btn {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.courier-period-btn:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.35);
}

.courier-period-btn.active {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.18);
}

.courier-pack-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.courier-pack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.courier-pack-card.tone-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.courier-pack-card.tone-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.courier-pack-card.tone-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.courier-pack-card.tone-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.courier-pack-card.tone-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.courier-pack-card.tone-teal::before { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

.courier-pack-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.courier-pack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.courier-pack-card.tone-blue .courier-pack-icon { color: #93c5fd; border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.16); }
.courier-pack-card.tone-green .courier-pack-icon { color: #6ee7b7; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.16); }
.courier-pack-card.tone-purple .courier-pack-icon { color: #c4b5fd; border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.16); }
.courier-pack-card.tone-amber .courier-pack-icon { color: #fde68a; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.16); }
.courier-pack-card.tone-red .courier-pack-icon { color: #fca5a5; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.16); }
.courier-pack-card.tone-teal .courier-pack-icon { color: #99f6e4; border-color: rgba(20,184,166,0.3); background: rgba(20,184,166,0.16); }

.courier-pack-name {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.courier-pack-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.courier-pack-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.courier-pack-stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 9px 10px;
}

.courier-pack-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.courier-pack-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.courier-legend-wrap {
  margin-top: 14px;
  border-top: 1px dashed var(--glass-border);
  padding-top: 12px;
}

.courier-legend-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.courier-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.courier-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 0.75rem;
  color: var(--text-2);
}

.courier-legend-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === TABLES === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  background: var(--surface-2);
  border-bottom: 1px solid var(--glass-border);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

tbody tr:hover { background: var(--glass); }
tbody tr:last-child td { border-bottom: none; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-red { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.badge-teal { background: rgba(20,184,166,0.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.25); }
.badge-gray { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* Premium breakdown card for "Laba setelah HPP" cell */
.owner-income-premium {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(20, 184, 166, 0.08)),
    var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.owner-income-premium--pending {
  border-color: var(--glass-border);
  background: var(--glass);
}

.owner-income-premium--low {
  border-color: rgba(239, 68, 68, 0.32);
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(244, 63, 94, 0.08)),
    var(--glass);
}

.owner-income-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.owner-income-value {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.owner-income-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.22);
}

.owner-income-grid {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.owner-income-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.owner-income-row strong {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
}

.owner-income-note {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-body { padding: 24px 28px; }

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition);
  line-height: 1;
}
.btn-close:hover { color: var(--text); background: var(--glass); }

/* === TOAST NOTIFICATIONS === */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition);
  max-width: 360px;
}

.toast.show { transform: translateX(0); }
.toast-success { background: #065f46; border: 1px solid rgba(16,185,129,0.4); color: #a7f3d0; }
.toast-error { background: #7f1d1d; border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.toast-info { background: #1e3a5f; border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; }

.toast-icon { font-size: 18px; }

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.empty-state p { font-size: 0.85rem; }

/* === LOADING === */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(148, 163, 184, 0.22);
  border-top-color: rgba(56, 189, 248, 0.95);
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
  vertical-align: middle;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.menu-loader-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.menu-loader-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Premium dark loading (staff + owner) — ringan: transform + opacity saja */
.menu-loader-overlay--premium {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(
    165deg,
    rgba(2, 6, 23, 0.9) 0%,
    rgba(15, 23, 42, 0.86) 42%,
    rgba(2, 6, 23, 0.92) 100%
  );
}

.menu-loader-premium {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 26px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.menu-loader-overlay--premium.show .menu-loader-premium {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu-loader-premium-visual {
  position: relative;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.2));
}

.menu-loader-premium-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(51, 65, 85, 0.42);
  border-top-color: rgba(56, 189, 248, 0.92);
  border-right-color: rgba(129, 140, 248, 0.38);
  animation: spin 1.15s cubic-bezier(0.45, 0.08, 0.3, 1) infinite;
  will-change: transform;
}

.menu-loader-premium-ring--delayed {
  inset: 9px;
  border-color: rgba(51, 65, 85, 0.32);
  border-bottom-color: rgba(167, 139, 250, 0.78);
  border-left-color: rgba(56, 189, 248, 0.28);
  animation-duration: 1.58s;
  animation-direction: reverse;
  animation-timing-function: cubic-bezier(0.4, 0.1, 0.35, 1);
}

.menu-loader-premium-label {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  animation: premiumLabelPulse 2.4s ease-in-out infinite;
}

.menu-loader-premium-caption {
  max-width: 280px;
  min-height: 1.25em;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.9);
  text-shadow: 0 1px 14px rgba(2, 6, 23, 0.55);
  opacity: 0;
  transform: translateY(6px);
}

.menu-loader-overlay--premium.show .menu-loader-premium-caption:not(:empty) {
  animation: premiumCaptionIn 0.58s ease 0.1s both;
}

@keyframes premiumLabelPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.92; }
}

@keyframes premiumCaptionIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === ERROR MESSAGE === */
.error-msg {
  color: #f87171;
  font-size: 0.82rem;
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* === UTILITIES === */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === ANIMATIONS === */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-in { animation: fadeSlideUp 0.4s var(--transition-slow) both; }

/* Owner — label toko di bawah nama produk (pesanan) */
.owner-order-product-td {
  vertical-align: top;
  max-width: 22rem;
}

.owner-order-product-name {
  font-weight: 600;
  line-height: 1.35;
}

.owner-order-toko-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
  font-weight: 500;
}

.owner-order-toko-sub--muted {
  font-size: 0.68rem;
  opacity: 0.9;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  html.is-mobile,
  body.is-mobile.login-page {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }

  body.is-pwa-standalone.login-page .login-mobile-hero {
    padding-top: max(16px, env(safe-area-inset-top, 0px));
  }

  .login-page {
    min-height: 100dvh;
    padding: 0;
    justify-content: flex-start;
    background: #ecfdf5;
  }

  .login-bg-pattern,
  .login-floating {
    display: none;
  }

  .login-mobile-hero {
    display: block;
    width: 100%;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px 20px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    background: linear-gradient(155deg, #064e3b 0%, #047857 42%, #059669 88%);
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.22);
  }

  .login-mobile-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 14px;
    background: linear-gradient(to bottom, transparent, #ecfdf5);
    pointer-events: none;
  }

  .login-mobile-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .login-mobile-hero__back:active {
    background: rgba(255, 255, 255, 0.24);
  }

  .login-mobile-hero__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
  }

  .login-mobile-hero__logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #ffffff;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  .login-mobile-hero__logo .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .login-mobile-hero__title {
    margin: 0;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(6, 78, 59, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .login-mobile-hero__tagline {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 500;
    color: #d1fae5;
    max-width: 20rem;
    text-shadow: 0 1px 2px rgba(6, 78, 59, 0.35);
  }

  .login-main {
    width: 100%;
    flex: 1;
    align-items: stretch;
    padding: 0;
    min-height: 0;
  }

  .login-card {
    max-width: none;
    width: 100%;
    flex: 1;
    margin: 0;
    border-radius: 22px 22px 0 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 36px rgba(6, 78, 59, 0.12);
    animation: loginSheetUp 0.55s cubic-bezier(0.22, 0.85, 0.2, 1) both;
    position: relative;
    z-index: 3;
  }

  @keyframes loginSheetUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .login-card::before {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
  }

  .login-top-nav--desktop,
  .login-logo--desktop {
    display: none;
  }

  .auth-entry-tabs {
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    gap: 6px;
  }

  .auth-entry-tab {
    min-height: 44px;
    font-size: 0.86rem;
    border-radius: 11px;
  }

  .auth-entry-tab.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
  }

  .auth-entry-hint {
    font-size: 0.8rem;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
  }

  .auth-email-form .input,
  .login-card .input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
  }

  .auth-email-form .btn-full,
  .login-card .btn-full {
    min-height: 48px;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-top: 8px;
  }

  .login-footer-saas {
    max-width: none;
    margin: 0;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: none;
    background: var(--surface);
  }

  .login-footer-saas__tagline,
  .login-footer-saas__copyright,
  .login-footer-saas__version {
    display: none;
  }

  .login-footer-saas__brand {
    font-size: 0.82rem;
  }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .modal { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; }
}

@media (max-width: 480px) {
  .login-mobile-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .login-mobile-hero__title {
    font-size: 1.28rem;
  }

  .login-mobile-hero__tagline {
    font-size: 0.8rem;
  }

  .login-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stat-grid { grid-template-columns: 1fr; }
  .toast { right: 10px; left: 10px; max-width: none; }
}
