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

:root {
  --bg-dark: #0a1628;
  --bg-sidebar: #0f2035;
  --bg-main: #f0f4f3;
  --bg-card: #ffffff;
  --bg-chat: #ffffff;
  --bg-input: #f5f8f7;
  --text-primary: #0f2035;
  --text-secondary: #5a6b7a;
  --text-light: #8a9bab;
  --text-white: #e8f5e9;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --accent-light: #e8f5e9;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --red: #c62828;
  --blue: #1565c0;
  --blue-light: #e3f2fd;
  --navy: #0f2035;
  --navy-light: #1a3a5c;
  --border: #d5ddd9;
  --shadow: 0 1px 3px rgba(15,32,53,0.08);
  --shadow-lg: 0 4px 12px rgba(15,32,53,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  height: 100dvh;
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-y: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

/* ===== LANDING PAGE ===== */
.landing-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.landing-page.hidden {
  display: none;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* --- HERO --- */
.hero-section {
  background: linear-gradient(160deg, #1a4731 0%, #256d42 40%, #2e8b57 100%);
  padding: 60px 32px 48px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #a5d6a7;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.landing-brand-icon {
  font-size: 46px;
  color: #66bb6a;
}

.landing-brand h1 {
  font-size: 52px;
  font-weight: 800;
  color: #e8f5e9;
  letter-spacing: -1px;
}

.hero-headline {
  font-size: 22px;
  font-weight: 600;
  color: #e8f5e9;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(232,245,233,0.65);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #1a4731;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-btn-primary:hover {
  background: #e8f5e9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: #e8f5e9;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid rgba(232,245,233,0.3);
  text-decoration: none;
  transition: all 0.2s;
}

.hero-btn-secondary:hover {
  border-color: rgba(232,245,233,0.6);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #66bb6a;
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(232,245,233,0.5);
  margin-top: 4px;
  max-width: 140px;
}

/* --- PROBLEM --- */
.problem-section {
  padding: 64px 0;
  background: var(--bg-card);
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-main);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.problem-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  opacity: 0.7;
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FEATURES --- */
.features-section {
  padding: 64px 0;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- HOW IT WORKS --- */
.how-section {
  padding: 64px 0;
  background: var(--bg-card);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- BENEFITS --- */
.benefits-section {
  padding: 64px 0;
  background: linear-gradient(160deg, #1a4731 0%, #256d42 40%, #2e8b57 100%);
}

.benefits-section .section-title {
  color: #e8f5e9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}

.benefit-icon {
  font-size: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  flex-shrink: 0;
  color: #66bb6a;
}

.benefit-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #e8f5e9;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 14px;
  color: rgba(232,245,233,0.6);
  line-height: 1.5;
}

/* --- LOGIN SECTION --- */
.login-section {
  padding: 64px 0;
  background: var(--bg-main);
}

.login-wrapper {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.login-info {
  flex: 1;
}

.login-info h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.login-info > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.login-info-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-info-item {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-info-item i {
  font-size: 18px;
}

.login-card {
  width: 380px;
  min-width: 340px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

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

.login-logo-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.login-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-logo p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--green);
}

.login-error {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.login-btn:hover {
  background: var(--accent-hover);
}

.login-demo-hint {
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.login-demo-hint p {
  font-size: 12px;
  color: var(--text-light);
}

/* --- FOOTER --- */
.landing-footer {
  padding: 24px 0;
  background: var(--bg-sidebar);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.footer-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* --- LANDING RESPONSIVE --- */
@media (max-width: 900px) {
  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hero-section {
    padding: 40px 20px 36px;
  }

  .landing-brand h1 {
    font-size: 38px;
  }

  .landing-brand-icon {
    font-size: 42px;
  }

  .hero-headline {
    font-size: 19px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-num {
    font-size: 26px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  .problem-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .login-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .login-info {
    text-align: center;
  }

  .login-info-features {
    align-items: center;
  }

  .login-card {
    width: 100%;
    min-width: unset;
  }

  .section-inner {
    padding: 0 20px;
  }

  .problem-section,
  .features-section,
  .how-section,
  .benefits-section,
  .login-section {
    padding: 48px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-section {
    padding: 32px 16px 28px;
  }

  .landing-brand h1 {
    font-size: 30px;
  }

  .landing-brand-icon {
    font-size: 36px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 14px;
  }

  .hero-headline {
    font-size: 17px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 22px;
  }

  .hero-stat-label {
    font-size: 11px;
    max-width: 100px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .problem-card {
    padding: 20px 18px;
  }

  .problem-card h3 {
    font-size: 17px;
  }

  .problem-card p {
    font-size: 14px;
  }

  .step-card {
    padding: 16px;
  }

  .benefit-item {
    padding: 16px;
  }

  .benefit-item h3 {
    font-size: 15px;
  }

  .benefit-item p {
    font-size: 13px;
  }

  .login-info h2 {
    font-size: 24px;
  }

  .login-info > p {
    font-size: 15px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .section-inner {
    padding: 0 16px;
  }

  .problem-section,
  .features-section,
  .how-section,
  .benefits-section,
  .login-section {
    padding: 36px 0;
  }
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.logout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.logout-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.nav-item.active {
  background: var(--accent);
  color: white;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
}

.status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

.status-dot.error {
  background: var(--red);
}

.version {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  min-height: 0;
}

.view.active {
  display: flex;
}

.view-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.view-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.view-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== CHAT ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-main);
  overflow: hidden;
}

.chat-header {
  padding: 20px 32px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.chat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.chat-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 800px;
  animation: fadeIn 0.3s ease;
}

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

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--bg-input);
}

.message.user .message-avatar {
  background: var(--green-light);
}

.message-content {
  background: var(--bg-card);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.6;
}

.message.user .message-content {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.ai .message-content {
  border-bottom-left-radius: 4px;
}

.message-content p {
  margin-bottom: 8px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: 6px 0;
  padding-left: 20px;
}

.message-content li {
  margin-bottom: 4px;
}

.message-content strong {
  font-weight: 600;
}

.message-content code {
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Consolas', monospace;
}

.message.user .message-content code {
  background: rgba(255,255,255,0.2);
}

/* ===== AI FORMATTED CONTENT ===== */
.ai-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.ai-heading {
  font-weight: 700;
  margin: 10px 0 6px;
}

.ai-h2 {
  font-size: 16px;
}

.ai-h3 {
  font-size: 15px;
}

.ai-list {
  margin: 6px 0;
  padding-left: 20px;
}

.ai-list li {
  margin-bottom: 4px;
}

.ai-indent {
  margin-left: 24px;
  padding: 2px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.message-content em {
  font-style: italic;
  color: var(--text-secondary);
}

/* AI Tables (rendered from markdown) */
.ai-table-wrapper {
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
}

.ai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ai-table th {
  text-align: left;
  font-weight: 700;
  padding: 10px 14px;
  background: var(--green-light);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.ai-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--bg-input);
  color: var(--text-primary);
  line-height: 1.4;
}

.ai-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.015);
}

.ai-table tbody tr:hover {
  background: rgba(46,125,50,0.06);
}

.ai-table-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-input);
  border-top: 1px solid var(--border);
}

.btn-table-action {
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-table-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.message.user .ai-table-wrapper {
  display: none;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick Actions */
.quick-actions {
  padding: 0 32px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Chat Input */
.chat-input-area {
  padding: 12px 32px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  transition: border-color 0.15s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--accent);
}

#chatInput {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  padding: 6px 0;
  height: 32px;
  max-height: 120px;
  overflow-y: hidden;
  color: var(--text-primary);
}

#chatInput::placeholder {
  color: var(--text-light);
}

.send-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.send-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.input-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== PLACEHOLDER SECTIONS ===== */
.placeholder-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  flex: 1;
}

.placeholder-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.placeholder-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-section p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.api-info {
  font-size: 12px;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 12px;
  margin: 8px 0;
}

.btn-primary {
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== SCROLLBAR ===== */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ===== VIEW HEADER ROW ===== */
.view-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.view-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-count {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 4px 12px;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-weight: 500;
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== ORDERS ===== */
.orders-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
}

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.orders-empty h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.orders-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid var(--border);
}

.order-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.order-card.status-new { border-left-color: var(--blue); }
.order-card.status-accepted { border-left-color: var(--green); }
.order-card.status-rejected { border-left-color: var(--red); }
.order-card.status-delayed { border-left-color: #eab308; }

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

.order-number {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.order-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.new { background: var(--blue-light); color: var(--blue); }
.order-status.accepted { background: var(--green-light); color: #16a34a; }
.order-status.rejected { background: #fde2e2; color: var(--red); }
.order-status.delayed { background: #fef9c3; color: #a16207; }

.order-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.order-card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-cost {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.order-items-preview {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== ORDER MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  font-size: 13px;
}

.detail-item .label {
  color: var(--text-light);
  font-size: 11px;
  display: block;
}

.detail-item .value {
  font-weight: 500;
  color: var(--text-primary);
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.items-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.items-table td {
  padding: 8px;
  border-bottom: 1px solid var(--bg-input);
}

.modal-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.btn-accept {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-accept:hover { background: #16a34a; }

.btn-reject {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reject:hover { background: #dc2626; }

.btn-delay {
  background: #eab308;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delay:hover { background: #ca8a04; }

/* ===== SETTINGS ===== */
.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.settings-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.settings-field {
  margin-bottom: 16px;
}

.settings-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.settings-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.settings-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-field input[readonly] {
  background: var(--bg-main);
  cursor: default;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

.field-status {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.field-status.ok { color: var(--green); }
.field-status.warn { color: var(--red); }

.field-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.save-feedback, .test-feedback {
  font-size: 13px;
  margin-left: 12px;
  font-weight: 500;
}

.status-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.status-item .status-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.status-item .status-value {
  font-size: 13px;
  font-weight: 600;
}

.status-value.ok { color: var(--green); }
.status-value.err { color: var(--red); }

/* ===== DASHBOARD ===== */
.dashboard-scroll {
  flex: 1;
  overflow-y: auto;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 32px 24px;
}

.dashboard-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.dashboard-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.dash-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-input);
  font-size: 15px;
}

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

.summary-row span:first-child {
  color: var(--text-secondary);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.dash-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.dash-order-row .order-num {
  font-weight: 700;
  color: var(--text-primary);
}

.dash-order-row .order-amount {
  font-weight: 600;
  color: var(--green);
}

.text-muted {
  color: var(--text-light);
  font-size: 13px;
}

/* ===== MODULE CONTENT (Menu, Staff, Analytics) ===== */
.module-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card, .list-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow-x: auto;
}

.form-card h3, .list-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  flex: 1;
}

.form-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.readonly-field {
  background: var(--bg-main) !important;
  font-weight: 700;
  text-align: center;
}

.count-badge {
  font-size: 12px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: 8px;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.list-card-header h3 {
  margin-bottom: 0;
}

.staff-stats {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bg-input);
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background: var(--bg-input);
}

.data-table .empty-row {
  text-align: center;
  color: var(--text-light);
  padding: 32px;
  font-size: 13px;
}

.fc-good { color: var(--green); font-weight: 600; }
.fc-warn { color: #eab308; font-weight: 600; }
.fc-bad { color: var(--red); font-weight: 600; }

.btn-delete {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delete:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fde2e2;
}

/* ===== ANALYTICS ===== */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.analytics-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.analytics-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.analytics-bar-label {
  width: 100px;
  flex-shrink: 0;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-bar-track {
  flex: 1;
  height: 22px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.3s ease;
}

.analytics-bar-value {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
}

.analytics-empty {
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ===== MOBILE TOPBAR ===== */
.mobile-topbar {
  display: none;
}

/* ===== RESPONSIVE - APP (after login) ===== */

/* Tablet */
@media (max-width: 900px) {
  .app {
    flex-direction: row;
  }

  .sidebar {
    width: 60px;
    min-width: 60px;
  }

  .logo-text, .logo-subtitle, .nav-item span:last-child,
  .status-text, .version, .sidebar-user {
    display: none;
  }

  .sidebar-header {
    padding: 16px 10px;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .chat-messages, .chat-input-area, .quick-actions,
  .chat-header, .view-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-grid {
    padding: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .module-content {
    padding: 16px;
  }

  .orders-content {
    padding: 16px;
  }

  .settings-content {
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .quick-actions {
    flex-wrap: wrap;
  }

  .message {
    max-width: 100%;
  }
}

/* Phone */
@media (max-width: 600px) {
  .app {
    flex-direction: column;
    position: fixed;
    inset: 0;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-sidebar);
    color: var(--text-white);
    flex-shrink: 0;
    z-index: 10;
    min-height: 40px;
  }

  .mobile-topbar-brand {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-logout-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    flex-shrink: 0;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-header {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    padding: 4px 6px;
    gap: 0;
    flex: 1;
  }

  .logo-text, .logo-subtitle, .nav-item span:last-child,
  .status-text, .version, .sidebar-user, .sidebar-footer {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 8px 10px;
    flex-shrink: 0;
  }

  .nav-icon {
    font-size: 17px;
    width: 20px;
  }

  .main-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .view-header {
    padding: 12px;
  }

  .view-header h2 {
    font-size: 18px;
  }

  .view-header p {
    font-size: 12px;
  }

  .view-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .view-header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .chat-header {
    padding: 10px 12px 8px;
  }

  .chat-header h2 {
    font-size: 18px;
  }

  .chat-header p {
    font-size: 12px;
  }

  .chat-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .chat-header-actions {
    display: flex;
    gap: 6px;
  }

  .chat-header-actions .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
  }

  .chat-messages {
    padding: 10px;
  }

  .message-content {
    font-size: 14px;
    padding: 10px 12px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .message {
    gap: 8px;
  }

  .quick-actions {
    padding: 0 10px 6px;
    gap: 6px;
  }

  .quick-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .chat-input-area {
    padding: 6px 10px 10px;
  }

  .chat-input-wrapper {
    padding: 2px 8px;
  }

  #chatInput {
    font-size: 16px;
    height: 28px;
  }

  .send-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .input-hint {
    font-size: 10px;
    margin-top: 4px;
  }

  .stats-grid {
    padding: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
    gap: 8px;
  }

  .stat-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 10px;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    padding: 0 10px 10px;
    gap: 10px;
  }

  .dashboard-section {
    padding: 12px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .module-content {
    padding: 10px;
    gap: 10px;
  }

  .form-card, .list-card {
    padding: 14px;
  }

  .orders-content {
    padding: 10px;
  }

  .settings-content {
    padding: 10px;
    gap: 10px;
  }

  .settings-card {
    padding: 14px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th {
    padding: 6px 4px;
    font-size: 10px;
  }

  .data-table td {
    padding: 6px 4px;
  }

  .order-card {
    padding: 10px 12px;
  }

  .modal {
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 20px);
  }

  .modal-overlay {
    padding: 6px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
}
