:root {
  --wa-green: #00a884;
  --wa-green-light: #25d366;
  --wa-teal: #128c7e;
  --wa-dark-bg: #111b21;
  --wa-chat-bg: #0b141a;
  --wa-panel-bg: #202c33;
  --wa-input-bg: #2a3942;
  --wa-bubble-out: #005c4b;
  --wa-bubble-in: #202c33;
  --wa-text-primary: #e9edef;
  --wa-text-secondary: #8696a0;
  --wa-text-muted: #667781;
  --wa-border: #222e35;
  --wa-danger: #ea4335;
  --wa-warning: #f59e0b;
  --wa-badge: #00a884;
  --font-family: 'Segoe UI', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #0c1317;
  color: var(--wa-text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Background Top Banner */
.top-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 125px;
  background-color: var(--wa-green);
  z-index: 1;
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Screens */
.screen {
  width: 100%;
  height: 100%;
  display: flex;
}

/* ========================================================
   1. LOGIN SCREEN / QR CODE
   ======================================================== */
#loginScreen {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: var(--wa-dark-bg);
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--wa-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--wa-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-icon {
  font-size: 32px;
  color: var(--wa-green-light);
}

.brand h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--wa-text-primary);
}

.header-right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  background: #2a3942;
  color: var(--wa-green-light);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

.admin-pill {
  background: rgba(0, 168, 132, 0.15);
  color: var(--wa-green-light);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 168, 132, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-pill:hover {
  background: var(--wa-green);
  color: #111;
}

.login-content {
  display: flex;
  padding: 36px 32px;
  gap: 40px;
  align-items: center;
}

.login-instructions {
  flex: 1.3;
}

.login-instructions h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--wa-text-primary);
}

.login-instructions ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--wa-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.login-instructions ol strong {
  color: var(--wa-text-primary);
}

.login-note {
  margin-top: 26px;
  background: rgba(0, 168, 132, 0.12);
  border-left: 3px solid var(--wa-green);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--wa-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-note i {
  color: var(--wa-green-light);
  font-size: 16px;
}

.qr-container {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-container img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #333;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--wa-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #222;
  font-weight: 500;
  border-radius: 12px;
}

.btn-refresh {
  background: var(--wa-green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   2. MAIN CHAT DASHBOARD
   ======================================================== */
#chatScreen {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: var(--wa-dark-bg);
}

/* Sidebar (Left) */
.sidebar {
  width: 400px;
  min-width: 340px;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--wa-dark-bg);
  border-right: 1px solid var(--wa-border);
  transition: transform 0.2s ease;
}

.sidebar-header {
  min-height: 64px;
  padding: 10px 14px;
  background-color: var(--wa-panel-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--wa-border);
}

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

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3c4950;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wa-text-primary);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-phone {
  font-size: 11px;
  color: var(--wa-green-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  font-size: 8px;
}

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

.action-pill-btn {
  background: rgba(0, 168, 132, 0.2);
  color: var(--wa-green-light);
  border: 1px solid rgba(0, 168, 132, 0.4);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.action-pill-btn:hover {
  background: var(--wa-green);
  color: #111;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--wa-text-primary);
}

.icon-btn.btn-danger:hover {
  background-color: rgba(234, 67, 53, 0.15);
  color: var(--wa-danger);
}

/* Quota Banner */
.quota-banner {
  background: linear-gradient(90deg, #182229 0%, #1e2d36 100%);
  border-bottom: 1px solid var(--wa-border);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.quota-banner:hover {
  background: #253642;
}

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

.quota-icon {
  font-size: 18px;
  color: var(--wa-warning);
}

.quota-text {
  display: flex;
  flex-direction: column;
}

.quota-plan {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wa-text-primary);
}

.quota-remaining {
  font-size: 11.5px;
  color: var(--wa-green-light);
}

.quota-upgrade-btn {
  background: var(--wa-green);
  color: #111;
  font-weight: 600;
  font-size: 11px;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search Box */
.search-box-wrap {
  padding: 8px 14px;
  border-bottom: 1px solid var(--wa-border);
}

.search-input-box {
  background-color: var(--wa-panel-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  gap: 12px;
  color: var(--wa-text-secondary);
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--wa-text-primary);
  font-size: 14px;
  width: 100%;
}

.search-input-box input::placeholder {
  color: var(--wa-text-secondary);
}

/* Chat List */
.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.chat-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.chat-item.active {
  background-color: #2a3942;
}

.chat-item-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chat-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 12px;
  color: var(--wa-text-secondary);
  flex-shrink: 0;
}

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

.chat-snippet {
  font-size: 13px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.unread-badge {
  background-color: var(--wa-green);
  color: #111;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--wa-text-muted);
  gap: 10px;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.chat-list-empty i {
  font-size: 32px;
}

/* ========================================================
   CHAT AREA (RIGHT)
   ======================================================== */
.chat-area {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--wa-chat-bg);
  position: relative;
}

/* Empty State */
.empty-chat-state {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.empty-state-content {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-logo i {
  font-size: 76px;
  color: #3b4a54;
}

.empty-state-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--wa-text-primary);
}

.empty-state-content p {
  color: var(--wa-text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.end-to-end-badge {
  margin-top: 24px;
  color: var(--wa-text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Active Chat Window */
.active-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.active-chat-header {
  height: 64px;
  padding: 10px 18px;
  background-color: var(--wa-panel-bg);
  border-bottom: 1px solid var(--wa-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-back-btn {
  display: none;
}

.chat-header-meta h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--wa-text-primary);
}

.chat-header-meta span {
  font-size: 12px;
  color: var(--wa-text-secondary);
}

/* Messages List */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-bubble {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.message-bubble.incoming {
  align-self: flex-start;
  background-color: var(--wa-bubble-in);
  border-top-left-radius: 0;
  color: var(--wa-text-primary);
}

.message-bubble.outgoing {
  align-self: flex-end;
  background-color: var(--wa-bubble-out);
  border-top-right-radius: 0;
  color: #e9edef;
}

.message-sender {
  font-size: 12px;
  font-weight: 600;
  color: var(--wa-green-light);
  margin-bottom: 2px;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--wa-text-secondary);
}

.message-meta i {
  font-size: 12px;
  color: #53bdeb;
}

/* Message Input Footer */
.chat-input-footer {
  min-height: 62px;
  padding: 10px 16px;
  background-color: var(--wa-panel-bg);
  border-top: 1px solid var(--wa-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-input-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-input-form input {
  flex: 1;
  background-color: var(--wa-input-bg);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--wa-text-primary);
  font-size: 15px;
}

.message-input-form input::placeholder {
  color: var(--wa-text-secondary);
}

.btn-send {
  background-color: var(--wa-green);
  color: #111;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-send:hover {
  background-color: var(--wa-green-light);
  transform: scale(1.05);
}

/* ========================================================
   MODALS: GENERAL & PACKAGES
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  padding: 16px;
}

.modal-box {
  background: var(--wa-dark-bg);
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

.modal-wide {
  max-width: 950px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--wa-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-header h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wa-green-light);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--wa-text-secondary);
  margin-top: 4px;
}

/* Limit Alert Banner */
.limit-alert-banner {
  background: rgba(234, 67, 53, 0.15);
  border-left: 4px solid var(--wa-danger);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ff8b80;
  font-size: 13.5px;
  font-weight: 500;
}

.limit-alert-banner i {
  font-size: 18px;
  color: var(--wa-danger);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
}

.package-card {
  background: var(--wa-panel-bg);
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--wa-green);
}

.package-card.highlight {
  border: 2px solid var(--wa-green);
  background: #1e2c34;
}

.pkg-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--wa-green);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.pkg-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wa-text-primary);
  margin-bottom: 6px;
}

.pkg-desc {
  font-size: 12px;
  color: var(--wa-text-secondary);
  min-height: 32px;
  margin-bottom: 14px;
}

.pkg-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--wa-border);
  padding-bottom: 12px;
}

.pkg-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--wa-green-light);
}

.pkg-duration {
  font-size: 12px;
  color: var(--wa-text-secondary);
}

.pkg-quota-highlight {
  background: rgba(0, 168, 132, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-green-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.pkg-features li {
  font-size: 12.5px;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkg-features li i {
  color: var(--wa-green);
  font-size: 12px;
}

.btn-buy-pkg {
  width: 100%;
  background: var(--wa-green);
  color: #111;
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-buy-pkg:hover {
  background: var(--wa-green-light);
}

.modal-footer {
  padding: 14px 24px;
  background: var(--wa-panel-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--wa-border);
}

.footer-note {
  font-size: 12px;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal form inputs */
.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body label {
  font-size: 13px;
  color: var(--wa-text-secondary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--wa-text-secondary);
}

.input-with-icon input {
  width: 100%;
  background: var(--wa-input-bg);
  border: 1px solid transparent;
  outline: none;
  padding: 10px 14px 10px 40px;
  border-radius: 6px;
  color: var(--wa-text-primary);
  font-size: 14px;
}

.input-with-icon input:focus {
  border-color: var(--wa-green);
}

.modal-body textarea {
  background: var(--wa-input-bg);
  border: 1px solid transparent;
  outline: none;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--wa-text-primary);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.modal-body textarea:focus {
  border-color: var(--wa-green);
}

.btn-primary {
  background: var(--wa-green);
  color: #111;
  font-weight: 600;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--wa-green-light);
}

.btn-secondary {
  background: transparent;
  color: var(--wa-text-secondary);
  border: 1px solid var(--wa-border);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--wa-text-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--wa-panel-bg);
  color: var(--wa-text-primary);
  border-left: 4px solid var(--wa-green);
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   📱 MOBILE RESPONSIVE OPTIMIZATION (< 768px)
   ======================================================== */
@media (max-width: 768px) {
  body {
    height: 100dvh;
  }

  .top-banner {
    display: none;
  }

  .app-container {
    height: 100dvh;
  }

  /* Login screen on mobile */
  #loginScreen {
    padding: 12px;
  }

  .login-card {
    height: 100%;
    max-height: 94dvh;
    overflow-y: auto;
  }

  .login-content {
    flex-direction: column-reverse;
    padding: 20px 16px;
    gap: 24px;
  }

  .login-instructions ol {
    font-size: 14px;
    gap: 10px;
  }

  .qr-container {
    min-height: 220px;
    padding: 10px;
    width: 100%;
    max-width: 260px;
  }

  /* Chat screen on mobile: toggle between sidebar & chatArea */
  #chatScreen {
    position: relative;
    overflow: hidden;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-right: none;
  }

  .sidebar.mobile-hidden {
    display: none !important;
  }

  .chat-area {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 10;
  }

  .mobile-back-btn {
    display: flex;
    font-size: 18px;
    margin-right: 2px;
  }

  .empty-chat-state {
    display: none !important; /* on mobile, we show sidebar instead of empty right pane */
  }

  .message-bubble {
    max-width: 85%;
  }

  /* Packages grid on mobile */
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .modal-wide {
    max-height: 92dvh;
  }

  .modal-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .modal-footer .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
