/* ==========================================================================
   Hii Now - WhatsApp Interactive Directory App
   Pixel-Perfect WhatsApp Dark UI Stylesheet
   ========================================================================== */

:root {
  --wa-bg-deep: #0c1317;
  --wa-bg-chat: #0b141a;
  --wa-chat-bg: #0b141a;
  --wa-doodle-bg: url('../images/wa-doodle-dark.svg');
  --wa-header-bg: #202c33;
  --wa-incoming-bubble: #202c33;
  --wa-outgoing-bubble: #005c4b;
  --wa-panel-bg: #111b21;
  --wa-card-bg: #1f2c34;
  --wa-card-border: rgba(255, 255, 255, 0.08);
  --wa-input-bg: #2a3942;
  --wa-green: #00a884;
  --wa-green-hover: #029474;
  --wa-green-bright: #25d366;
  --wa-text-primary: #e9edef;
  --wa-text-secondary: #8696a0;
  --wa-text-muted: #667781;
  --wa-blue-tick: #53bdeb;
  --wa-border: #222d34;
  --wa-border-light: #2a3942;
  --wa-shadow: rgba(0, 0, 0, 0.35);
  --wa-list-item-hover: #202c33;
  --wa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--wa-bg-deep);
  color: var(--wa-text-primary);
  font-family: var(--wa-font);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
}

/* App Container */
.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wa-bg-deep);
  background-image: radial-gradient(circle at 50% 30%, rgba(0, 168, 132, 0.04) 0%, transparent 70%);
}

/* Phone Mockup Frame (Desktop Frame vs Responsive Mobile) */
.phone-frame {
  width: 100%;
  max-width: 440px;
  height: 92vh;
  max-height: 880px;
  background-color: var(--wa-bg-chat);
  border-radius: 28px;
  border: 10px solid #1f2c34;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Desktop Fullscreen Mode Toggle */
.phone-frame.full-screen-mode {
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Status Bar (Mobile frame top) */
.status-bar {
  height: 26px;
  background-color: var(--wa-header-bg);
  color: #aebac1;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  user-select: none;
  z-index: 25;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* Multi-View Screen Containers */
.wa-screen {
  flex: 1;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--wa-bg-chat);
  overflow: hidden;
}

.wa-screen.active {
  display: flex;
  z-index: 10;
}

/* ==========================================================================
   VIEW 1: WhatsApp Chats List Screen (Outside Chat UI)
   ========================================================================== */
.wa-list-header {
  background-color: var(--wa-header-bg);
  padding: 12px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--wa-border);
}

.wa-list-header .wa-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--wa-green);
  letter-spacing: -0.3px;
}

.wa-list-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
  color: var(--wa-text-secondary);
}

.wa-list-actions i {
  cursor: pointer;
}

.wa-list-actions i:hover {
  color: #fff;
}

/* WhatsApp Navigation Tabs */
.wa-tabs {
  background-color: var(--wa-header-bg);
  display: flex;
  border-bottom: 1px solid var(--wa-border);
  user-select: none;
}

.wa-tab {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  color: var(--wa-text-secondary);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.wa-tab.active {
  color: var(--wa-green);
  border-bottom: 3px solid var(--wa-green);
}

.wa-tab-badge {
  background-color: var(--wa-green);
  color: #111b21;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
}

/* Start New Chat Top Banner */
.wa-new-chat-banner {
  padding: 10px 14px;
  background-color: var(--wa-panel-bg);
  border-bottom: 1px solid var(--wa-border);
  display: flex;
  gap: 8px;
}

.btn-new-chat-card {
  width: 100%;
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid var(--wa-green);
  color: var(--wa-green-bright);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-new-chat-card:hover {
  background: var(--wa-green);
  color: #111b21;
  transform: translateY(-1px);
}

/* Chats List Scrollable Container */
.wa-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 95px;
}

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

.wa-chat-item:hover {
  background-color: var(--wa-header-bg);
}

.wa-chat-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #202c33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-chat-item-content {
  flex: 1;
  min-width: 0;
}

.wa-chat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.wa-chat-item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.wa-chat-item-snippet {
  font-size: 12.5px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-chat-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-chat-delete {
  background: none;
  border: none;
  color: var(--wa-text-muted);
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chat-delete:hover {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.15);
}

/* Floating Action Button (FAB) for Start New Chat */
.wa-fab-new-chat {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--wa-green);
  color: #ffffff !important;
  border: none;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 168, 132, 0.4);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab-new-chat i {
  color: #ffffff !important;
  font-size: 26px;
  line-height: 1;
}

.wa-fab-new-chat:hover {
  transform: scale(1.08);
  background-color: var(--wa-green-bright);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wa-fab-new-chat:active {
  transform: scale(0.94);
}

/* ==========================================================================
   VIEW 2: Chat Conversation Screen (Inside Active Chat)
   ========================================================================== */
.wa-header {
  background-color: var(--wa-header-bg);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--wa-border);
  user-select: none;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
}

.wa-back-btn {
  background: none;
  border: none;
  color: var(--wa-blue-tick);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px;
  cursor: pointer;
}

.wa-back-btn i {
  font-size: 1.2rem;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2a3942;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.wa-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wa-chat-name {
  color: var(--wa-text-primary);
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-verified-badge {
  color: var(--wa-blue-tick);
  font-size: 13px;
}

.wa-chat-status {
  color: var(--wa-text-secondary);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-status.typing {
  color: var(--wa-green-bright);
  font-weight: 600;
}

.wa-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Small Theme Toggle Icon (Sun / Moon) */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffc107;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(15deg);
  color: #ffd54f;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.btn-theme-toggle:active {
  transform: scale(0.92);
}

/* Chat Body (Authentic WhatsApp Doodle Background Wallpaper) */
.wa-chat-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  background-color: var(--wa-chat-bg);
  background-image: var(--wa-doodle-bg);
  background-repeat: repeat;
  background-size: 380px 380px;
  background-position: center top;
  scroll-behavior: smooth;
}

.wa-chat-body::-webkit-scrollbar,
.wa-sheet-body::-webkit-scrollbar,
.wa-conversations-list::-webkit-scrollbar {
  width: 5px;
}

.wa-chat-body::-webkit-scrollbar-thumb,
.wa-sheet-body::-webkit-scrollbar-thumb,
.wa-conversations-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Message Rows */
.msg-row {
  display: flex;
  width: 100%;
  margin-bottom: 4px;
  animation: fadeInMsg 0.22s ease-out;
}

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

.msg-row.incoming {
  justify-content: flex-start;
}

.msg-row.outgoing {
  justify-content: flex-end;
}

/* Chat Bubbles */
.wa-bubble {
  max-width: 88%;
  min-width: 90px;
  padding: 8px 12px 6px;
  border-radius: 10px;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 2px var(--wa-shadow);
  font-size: 13.5px;
  line-height: 1.45;
}

.msg-row.incoming .wa-bubble {
  background-color: var(--wa-incoming-bubble);
  color: var(--wa-text-primary);
  border-top-left-radius: 2px;
}

.msg-row.outgoing .wa-bubble {
  background-color: var(--wa-outgoing-bubble);
  color: var(--wa-text-primary);
  border-top-right-radius: 2px;
}

.wa-bubble-content {
  margin-bottom: 2px;
}

.wa-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--wa-text-secondary);
  float: right;
  margin-top: 4px;
  margin-left: 12px;
  user-select: none;
}

.msg-row.outgoing .wa-bubble-meta {
  color: #aebac1;
}

.wa-ticks {
  color: var(--wa-blue-tick);
  font-size: 13px;
  display: inline-flex;
}

/* Date Pill & Meta Notice */
.wa-date-pill {
  align-self: center;
  background-color: rgba(24, 34, 41, 0.95);
  color: var(--wa-text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  margin: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-meta-notice {
  align-self: center;
  background-color: #182229;
  color: #ffd279;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  max-width: 94%;
  margin: 2px auto 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 210, 121, 0.15);
}

.wa-meta-notice a {
  color: var(--wa-blue-tick);
  text-decoration: underline;
}

/* Namaste & Welcome Card */
.wa-namaste-card {
  text-align: left;
}

.wa-namaste-img-wrap {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #111b21;
}

.wa-namaste-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  display: block;
}

.wa-welcome-quote {
  background: rgba(0, 168, 132, 0.08);
  border-left: 3px solid var(--wa-green);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 8px 0;
  font-size: 12px;
  color: #b5e3d8;
}

/* Action Buttons Grid inside chat */
.wa-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.wa-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--wa-green-bright);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.wa-action-btn:hover {
  background: rgba(0, 168, 132, 0.2);
  border-color: var(--wa-green);
  color: #fff;
  transform: translateY(-1px);
}

/* 6 Category Interactive Chips */
.wa-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0 6px;
}

.wa-cat-chip {
  background: #111b21;
  border: 1px solid var(--wa-border-light);
  color: var(--wa-text-primary);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wa-cat-chip:hover {
  background: #005c4b;
  border-color: var(--wa-green);
  color: #fff;
  transform: translateY(-1px);
}

.wa-cat-chip .emoji-icon {
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   Business Image Cards with Call & WhatsApp Buttons
   ========================================================================== */
.wa-biz-media-card {
  background: #111b21;
  border: 1px solid var(--wa-border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 320px;
}

.wa-biz-media-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  background-color: #1a252c;
}

/* Ensure all media images inside chat bubbles display full without cropping */
.wa-chat-body .wa-bubble img:not(.wa-avatar):not(.emoji-icon) {
  max-width: 100%;
}

.wa-biz-body {
  padding: 10px 12px;
}

.wa-biz-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.wa-biz-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.wa-biz-tagline {
  font-size: 12px;
  color: var(--wa-green-bright);
  margin-bottom: 6px;
  line-height: 1.3;
}

.wa-biz-details {
  font-size: 11.5px;
  color: var(--wa-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

/* Call and WhatsApp Buttons under single image */
.wa-biz-action-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-biz-call,
.btn-biz-wa {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-biz-call {
  background: #202c33;
  color: #e9edef;
  border: 1px solid var(--wa-border-light);
}

.btn-biz-call:hover {
  background: #2a3942;
  color: #fff;
}

.btn-biz-wa {
  background: var(--wa-green);
  color: #111b21;
  border: none;
}

.btn-biz-wa:hover {
  background: var(--wa-green-bright);
  color: #0b141a;
  transform: translateY(-1px);
}

/* Feedback Follow-up Bubble */
.wa-feedback-box {
  background: #111b21;
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
}

.wa-stars-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 8px 0;
}

.wa-star-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffc107;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.wa-star-btn:hover {
  background: rgba(255, 193, 7, 0.2);
}

/* Simplified 3-Choice Feedback (Excellent, Good, Bad) */
.wa-feedback-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}

.wa-feedback-choice-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.wa-feedback-choice-btn .wa-fb-emoji {
  font-size: 22px;
  line-height: 1;
}

.wa-feedback-choice-btn .wa-fb-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wa-text-primary);
}

.wa-feedback-choice-btn:hover {
  transform: translateY(-2px);
}

.wa-fb-excellent:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25d366;
}

.wa-fb-good:hover {
  background: rgba(83, 189, 235, 0.18);
  border-color: #53bdeb;
}

.wa-fb-bad:hover {
  background: rgba(234, 67, 53, 0.18);
  border-color: #ea4335;
}

/* HTML Delete Confirmation Modal Dialog */
.wa-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
}

.wa-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.wa-modal-dialog {
  background-color: var(--wa-panel-bg);
  border: 1px solid var(--wa-border);
  border-radius: 16px;
  width: 100%;
  max-width: 310px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  transform: scale(0.92);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-modal-backdrop.show .wa-modal-dialog {
  transform: scale(1);
}

.wa-modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.wa-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wa-text-primary);
  margin-bottom: 6px;
}

.wa-modal-desc {
  font-size: 12.5px;
  color: var(--wa-text-secondary);
  line-height: 1.4;
  margin-bottom: 18px;
}

.wa-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-wa-modal-danger {
  background-color: #ea4335;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-wa-modal-danger:hover {
  background-color: #d93025;
  transform: translateY(-1px);
}

.btn-wa-modal-cancel {
  background-color: transparent;
  color: var(--wa-text-secondary);
  border: 1px solid var(--wa-border);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-wa-modal-cancel:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--wa-text-primary);
}

/* Business Registration Promo Bubble */
.wa-register-box {
  background: #111b21;
  border: 1px solid rgba(0, 168, 132, 0.4);
  border-radius: 10px;
  padding: 12px;
  margin-top: 4px;
}

.btn-wa-register-plan {
  background: var(--wa-green);
  color: #111b21;
  border: none;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  font-size: 13px;
  margin-top: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-wa-register-plan:hover {
  background: var(--wa-green-bright);
  color: #000;
  transform: translateY(-1px);
}

/* Modern WhatsApp Chat Backup & Save History Card */
.wa-account-box {
  background: linear-gradient(180deg, #1f2c34 0%, #172228 100%);
  border: 1px solid rgba(0, 168, 132, 0.4);
  border-radius: 16px;
  padding: 16px 14px 12px;
  margin: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 168, 132, 0.15);
  position: relative;
  overflow: hidden;
}

.wa-account-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00a884, #25d366, #53bdeb);
}

.wa-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wa-account-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00a884 0%, #25d366 100%);
  color: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
}

.wa-account-header-text {
  flex: 1;
}

.wa-account-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--wa-text-primary);
  line-height: 1.25;
}

.wa-account-subtitle {
  font-size: 11.5px;
  color: var(--wa-text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.wa-modern-account-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-modern-input-group {
  display: flex;
  align-items: center;
  background-color: var(--wa-input-bg);
  border: 1px solid var(--wa-border-light);
  border-radius: 12px;
  padding: 2px 10px;
  transition: all 0.2s ease;
}

.wa-modern-input-group:focus-within {
  border-color: var(--wa-green);
  background-color: #202c33;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.22);
}

.wa-input-prefix-icon {
  color: var(--wa-green);
  font-size: 14px;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.wa-input-country-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--wa-text-secondary);
  padding-right: 8px;
  margin-right: 6px;
  border-right: 1px solid var(--wa-border-light);
  user-select: none;
}

.wa-modern-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--wa-text-primary);
  font-size: 13px;
  padding: 8px 0;
  width: 100%;
}

.wa-modern-input::placeholder {
  color: var(--wa-text-muted);
  font-size: 12px;
}

.wa-account-err {
  font-size: 11.5px;
  color: #ff6b6b;
  background: rgba(234, 67, 53, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 3px solid #ea4335;
  margin-top: 2px;
}

.btn-wa-modern-save {
  background: linear-gradient(135deg, #00a884 0%, #029474 100%);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.35);
  margin-top: 4px;
}

.btn-wa-modern-save:hover {
  background: linear-gradient(135deg, #02b890 0%, #00a884 100%);
  box-shadow: 0 6px 16px rgba(0, 168, 132, 0.5);
  transform: translateY(-1px);
}

.btn-wa-modern-save:active {
  transform: scale(0.98);
}

.wa-account-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
}

.wa-trust-pill {
  font-size: 11px;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-trust-pill i {
  color: var(--wa-green);
  font-size: 11px;
}

.btn-wa-dismiss-link {
  background: none;
  border: none;
  color: var(--wa-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.btn-wa-dismiss-link:hover {
  color: var(--wa-text-primary);
  text-decoration: underline;
}

/* Typing Bubble Indicator */
.wa-typing-bubble {
  background-color: var(--wa-incoming-bubble);
  padding: 10px 16px;
  border-radius: 12px;
  border-top-left-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px var(--wa-shadow);
}

.wa-typing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--wa-text-secondary);
  border-radius: 50%;
  animation: waDotPulse 1.2s infinite ease-in-out;
}

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

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

/* Floating Menu Button */
.wa-float-menu-btn {
  position: absolute;
  right: 16px;
  bottom: 68px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #111b21;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 9;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wa-float-menu-btn:hover {
  transform: scale(1.08);
  background: var(--wa-green-bright);
}

/* WhatsApp Bottom Chat Input Bar */
.wa-bottom-bar {
  background-color: var(--wa-header-bg);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--wa-border);
  z-index: 10;
}

.wa-bar-icon-btn {
  background: none;
  border: none;
  color: #8696a0;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.wa-bar-icon-btn:hover {
  color: #e9edef;
}

.btn-menu-pill {
  background: var(--wa-green);
  color: #111b21;
  border: none;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn-menu-pill:hover {
  background: var(--wa-green-bright);
}

.wa-input-wrapper {
  flex: 1;
  position: relative;
}

.wa-input-field {
  width: 100%;
  background-color: var(--wa-input-bg);
  border: none;
  border-radius: 20px;
  color: var(--wa-text-primary);
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  transition: background-color 0.15s ease;
}

.wa-input-field::placeholder {
  color: var(--wa-text-secondary);
  font-size: 13px;
}

.wa-input-field:focus {
  background-color: #32434d;
}

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

.wa-send-btn:hover {
  background-color: var(--wa-green-bright);
}

.wa-send-btn:active {
  transform: scale(0.95);
}

/* WhatsApp Native Bottom Sheet Modal / Drawer */
.wa-bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: none;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wa-bottom-sheet-backdrop.show {
  display: flex;
  opacity: 1;
}

.wa-bottom-sheet {
  width: 100%;
  max-height: 82%;
  background-color: var(--wa-panel-bg);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.wa-bottom-sheet-backdrop.show .wa-bottom-sheet {
  transform: translateY(0);
}

.wa-sheet-handle {
  width: 38px;
  height: 4px;
  background-color: #374248;
  border-radius: 2px;
  margin: 8px auto 4px;
}

.wa-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--wa-border);
}

.wa-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wa-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-sheet-close {
  background: none;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.wa-sheet-close:hover {
  color: #fff;
}

.wa-sheet-search {
  padding: 8px 14px;
  border-bottom: 1px solid var(--wa-border);
}

.wa-sheet-search-input {
  width: 100%;
  background-color: var(--wa-header-bg);
  border: 1px solid var(--wa-border-light);
  border-radius: 18px;
  color: var(--wa-text-primary);
  padding: 7px 12px 7px 36px;
  font-size: 13px;
  outline: none;
}

.wa-sheet-search-input:focus {
  border-color: var(--wa-green);
}

.wa-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 24px;
}

.wa-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background-color 0.15s ease;
}

.wa-sheet-item:hover {
  background-color: var(--wa-header-bg);
}

.wa-sheet-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wa-sheet-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--wa-header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-green-bright);
  font-size: 16px;
  flex-shrink: 0;
}

.wa-sheet-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wa-text-primary);
}

.wa-sheet-sub {
  font-size: 11.5px;
  color: var(--wa-text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .phone-frame {
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .status-bar {
    display: none;
  }

  .wa-screen {
    top: 0 !important;
  }

  .wa-bubble {
    max-width: 90%;
  }

  .wa-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIGHT MODE THEME (WhatsApp Classic Beige & Teal UI)
   ========================================================================== */
[data-theme="light"],
body.wa-theme-light {
  --wa-bg-deep: #e1e7eb;
  --wa-bg-chat: #efeae2;
  --wa-chat-bg: #efeae2;
  --wa-header-bg: #008069;
  --wa-header-text: #ffffff;
  --wa-incoming-bubble: #ffffff;
  --wa-incoming-text: #111b21;
  --wa-outgoing-bubble: #d9fdd3;
  --wa-outgoing-text: #111b21;
  --wa-panel-bg: #f0f2f5;
  --wa-card-bg: #ffffff;
  --wa-card-border: #e9edef;
  --wa-input-bg: #ffffff;
  --wa-green: #008069;
  --wa-green-hover: #017561;
  --wa-green-bright: #25d366;
  --wa-text-primary: #111b21;
  --wa-text-secondary: #54656f;
  --wa-text-muted: #8696a0;
  --wa-blue-tick: #53bdeb;
  --wa-border: #e9edef;
  --wa-border-light: #d1d7db;
  --wa-shadow: rgba(11, 20, 26, 0.12);
  --wa-list-item-hover: #f5f6f6;
  --wa-doodle-bg: url('../images/wa-doodle-light.svg');
}

[data-theme="light"] body,
body.wa-theme-light {
  background-color: #d1d7db;
  color: #111b21;
}

[data-theme="light"] .phone-frame,
body.wa-theme-light .phone-frame {
  background-color: #efeae2;
  border-color: #c4c9cc;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .status-bar,
body.wa-theme-light .status-bar {
  background-color: #00705a;
  color: #e1f5fe;
}

[data-theme="light"] .wa-header,
body.wa-theme-light .wa-header {
  background-color: #008069;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-list-header,
body.wa-theme-light .wa-list-header {
  background-color: #008069;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-chats-title,
body.wa-theme-light .wa-chats-title {
  color: #ffffff !important;
}

[data-theme="light"] .wa-list-actions i,
body.wa-theme-light .wa-list-actions i {
  color: #e1f5fe !important;
}

[data-theme="light"] .wa-chat-name,
body.wa-theme-light .wa-chat-name {
  color: #ffffff;
}

[data-theme="light"] .wa-chat-status,
body.wa-theme-light .wa-chat-status {
  color: #e1f5fe;
}

[data-theme="light"] .wa-back-btn,
body.wa-theme-light .wa-back-btn {
  color: #ffffff;
}

[data-theme="light"] .wa-verified-badge,
body.wa-theme-light .wa-verified-badge {
  color: #a7f3d0;
}

[data-theme="light"] .btn-theme-toggle,
body.wa-theme-light .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

[data-theme="light"] .btn-theme-toggle:hover,
body.wa-theme-light .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .wa-conversations-list,
body.wa-theme-light .wa-conversations-list {
  background-color: #ffffff;
}

[data-theme="light"] .wa-chat-item,
body.wa-theme-light .wa-chat-item {
  border-bottom: 1px solid #f0f2f5;
  background-color: #ffffff;
}

[data-theme="light"] .wa-chat-item:hover,
body.wa-theme-light .wa-chat-item:hover {
  background-color: #f5f6f6;
}

[data-theme="light"] .wa-chat-item-name,
body.wa-theme-light .wa-chat-item-name {
  color: #111b21;
}

[data-theme="light"] .wa-chat-item-snippet,
body.wa-theme-light .wa-chat-item-snippet {
  color: #54656f;
}

[data-theme="light"] .wa-chat-item-avatar,
body.wa-theme-light .wa-chat-item-avatar {
  background-color: #e9edef;
  border: 1px solid #d1d7db;
}

[data-theme="light"] .wa-new-chat-banner,
body.wa-theme-light .wa-new-chat-banner {
  background-color: #ffffff;
  border-bottom: 1px solid #e9edef;
}

[data-theme="light"] .btn-new-chat-card,
body.wa-theme-light .btn-new-chat-card {
  background: rgba(0, 128, 105, 0.08);
  border-color: #008069;
  color: #008069;
}

[data-theme="light"] .btn-new-chat-card:hover,
body.wa-theme-light .btn-new-chat-card:hover {
  background: #008069;
  color: #ffffff;
}

[data-theme="light"] .wa-bubble,
body.wa-theme-light .wa-bubble {
  box-shadow: 0 1px 1.5px rgba(11, 20, 26, 0.15);
}

[data-theme="light"] .msg-row.incoming .wa-bubble,
body.wa-theme-light .msg-row.incoming .wa-bubble {
  background-color: #ffffff;
  color: #111b21;
}

[data-theme="light"] .msg-row.outgoing .wa-bubble,
body.wa-theme-light .msg-row.outgoing .wa-bubble {
  background-color: #d9fdd3;
  color: #111b21;
}

[data-theme="light"] .wa-bubble-meta,
body.wa-theme-light .wa-bubble-meta {
  color: #667781;
}

[data-theme="light"] .msg-row.outgoing .wa-bubble-meta,
body.wa-theme-light .msg-row.outgoing .wa-bubble-meta {
  color: #667781;
}

[data-theme="light"] .wa-date-pill,
body.wa-theme-light .wa-date-pill {
  background-color: rgba(255, 255, 255, 0.95);
  color: #54656f;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.15);
}

[data-theme="light"] .wa-meta-notice,
body.wa-theme-light .wa-meta-notice {
  background-color: #ffeecd;
  color: #54656f;
  border: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-welcome-quote,
body.wa-theme-light .wa-welcome-quote {
  background: rgba(0, 128, 105, 0.08);
  border-left-color: #008069;
  color: #008069;
}

[data-theme="light"] .wa-action-btn,
body.wa-theme-light .wa-action-btn {
  background: #ffffff;
  border-color: #d1d7db;
  color: #008069;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .wa-action-btn:hover,
body.wa-theme-light .wa-action-btn:hover {
  background: #008069;
  border-color: #008069;
  color: #ffffff;
}

[data-theme="light"] .wa-action-btn .text-white,
body.wa-theme-light .wa-action-btn .text-white {
  color: #111b21 !important;
}

[data-theme="light"] .wa-action-btn:hover .text-white,
body.wa-theme-light .wa-action-btn:hover .text-white {
  color: #ffffff !important;
}

[data-theme="light"] .wa-cat-chip,
body.wa-theme-light .wa-cat-chip {
  background: #ffffff;
  border-color: #d1d7db;
  color: #111b21;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .wa-cat-chip:hover,
body.wa-theme-light .wa-cat-chip:hover {
  background: #e7f8f5;
  border-color: #008069;
  color: #008069;
}

[data-theme="light"] .wa-biz-media-card,
body.wa-theme-light .wa-biz-media-card {
  background: #ffffff;
  border-color: #e9edef;
  box-shadow: 0 2px 8px rgba(11, 20, 26, 0.08);
}

[data-theme="light"] .wa-biz-media-img,
body.wa-theme-light .wa-biz-media-img {
  background-color: #f0f2f5;
}

[data-theme="light"] .wa-biz-name,
body.wa-theme-light .wa-biz-name {
  color: #111b21;
}

[data-theme="light"] .wa-biz-details,
body.wa-theme-light .wa-biz-details {
  color: #54656f;
}

[data-theme="light"] .btn-biz-call,
body.wa-theme-light .btn-biz-call {
  background: #f0f2f5;
  color: #111b21;
  border-color: #d1d7db;
}

[data-theme="light"] .btn-biz-call:hover,
body.wa-theme-light .btn-biz-call:hover {
  background: #e9edef;
  color: #000000;
}

[data-theme="light"] .btn-biz-wa,
body.wa-theme-light .btn-biz-wa {
  background: #25d366;
  color: #ffffff;
}

[data-theme="light"] .btn-biz-wa:hover,
body.wa-theme-light .btn-biz-wa:hover {
  background: #20bd5a;
  color: #ffffff;
}

[data-theme="light"] .wa-bottom-bar,
body.wa-theme-light .wa-bottom-bar {
  background-color: #f0f2f5;
  border-top-color: #e9edef;
}

[data-theme="light"] .wa-input-field,
body.wa-theme-light .wa-input-field {
  background-color: #ffffff;
  color: #111b21;
  border: 1px solid #e9edef;
}

[data-theme="light"] .wa-input-field:focus,
body.wa-theme-light .wa-input-field:focus {
  background-color: #ffffff;
  border-color: #008069;
}

[data-theme="light"] .wa-bottom-sheet,
body.wa-theme-light .wa-bottom-sheet {
  background-color: #ffffff;
  color: #111b21;
}

[data-theme="light"] .wa-sheet-header,
body.wa-theme-light .wa-sheet-header {
  border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-sheet-title,
body.wa-theme-light .wa-sheet-title {
  color: #111b21;
}

[data-theme="light"] .wa-sheet-item,
body.wa-theme-light .wa-sheet-item {
  border-bottom-color: #f0f2f5;
}

[data-theme="light"] .wa-sheet-item:hover,
body.wa-theme-light .wa-sheet-item:hover {
  background-color: #f5f6f6;
}

[data-theme="light"] .wa-sheet-name,
body.wa-theme-light .wa-sheet-name {
  color: #111b21;
}

[data-theme="light"] .wa-sheet-search-input,
body.wa-theme-light .wa-sheet-search-input {
  background-color: #f0f2f5;
  color: #111b21;
  border-color: #d1d7db;
}

[data-theme="light"] .wa-feedback-box,
body.wa-theme-light .wa-feedback-box {
  background-color: #ffffff;
  border-color: #ffd279;
}

[data-theme="light"] .wa-register-box,
body.wa-theme-light .wa-register-box {
  background-color: #ffffff;
  border-color: #008069;
}

/* Light Theme for 3-Choice Feedback */
[data-theme="light"] .wa-feedback-choice-btn,
body.wa-theme-light .wa-feedback-choice-btn {
  background-color: #f0f2f5;
  border-color: #d1d7db;
}

[data-theme="light"] .wa-feedback-choice-btn .wa-fb-label,
body.wa-theme-light .wa-feedback-choice-btn .wa-fb-label {
  color: #111b21;
}

/* Light Theme for HTML Delete Modal */
[data-theme="light"] .wa-modal-dialog,
body.wa-theme-light .wa-modal-dialog {
  background-color: #ffffff;
  border-color: #e9edef;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .wa-modal-title,
body.wa-theme-light .wa-modal-title {
  color: #111b21;
}

[data-theme="light"] .wa-modal-desc,
body.wa-theme-light .wa-modal-desc {
  color: #54656f;
}

[data-theme="light"] .btn-wa-modal-cancel,
body.wa-theme-light .btn-wa-modal-cancel {
  border-color: #d1d7db;
  color: #54656f;
}

[data-theme="light"] .btn-wa-modal-cancel:hover,
body.wa-theme-light .btn-wa-modal-cancel:hover {
  background-color: #f0f2f5;
  color: #111b21;
}

/* ==========================================================================
   Universal Light Mode Text Contrast Enforcement (Fix all white/light texts)
   ========================================================================== */
[data-theme="light"] .wa-bubble,
body.wa-theme-light .wa-bubble {
  color: #111b21;
}

[data-theme="light"] .wa-bubble .text-white,
body.wa-theme-light .wa-bubble .text-white,
[data-theme="light"] .wa-bubble .text-light,
body.wa-theme-light .wa-bubble .text-light,
[data-theme="light"] .wa-bubble-content .text-white,
body.wa-theme-light .wa-bubble-content .text-white,
[data-theme="light"] .wa-bubble-content .text-light,
body.wa-theme-light .wa-bubble-content .text-light,
[data-theme="light"] .wa-screen .text-white,
body.wa-theme-light .wa-screen .text-white,
[data-theme="light"] .wa-more-prompt,
body.wa-theme-light .wa-more-prompt,
[data-theme="light"] .wa-bubble-title,
body.wa-theme-light .wa-bubble-title {
  color: #111b21 !important;
}

[data-theme="light"] .wa-bubble strong,
body.wa-theme-light .wa-bubble strong,
[data-theme="light"] .wa-bubble-content strong,
body.wa-theme-light .wa-bubble-content strong,
[data-theme="light"] .wa-more-prompt strong,
body.wa-theme-light .wa-more-prompt strong {
  color: #111b21 !important;
}

[data-theme="light"] .wa-bubble .text-secondary,
body.wa-theme-light .wa-bubble .text-secondary,
[data-theme="light"] .wa-bubble-sub,
body.wa-theme-light .wa-bubble-sub {
  color: #54656f !important;
}

[data-theme="light"] .wa-namaste-card .wa-bubble-title,
body.wa-theme-light .wa-namaste-card .wa-bubble-title,
[data-theme="light"] .wa-namaste-card .wa-bubble-sub,
body.wa-theme-light .wa-namaste-card .wa-bubble-sub {
  color: #111b21 !important;
}

[data-theme="light"] .wa-account-box,
body.wa-theme-light .wa-account-box {
  background: #ffffff !important;
  border-color: #d1d7db !important;
  color: #111b21 !important;
}

[data-theme="light"] .wa-account-box .wa-bubble-title,
body.wa-theme-light .wa-account-box .wa-bubble-title,
[data-theme="light"] .wa-account-box .text-white,
body.wa-theme-light .wa-account-box .text-white,
[data-theme="light"] .wa-account-box .text-light,
body.wa-theme-light .wa-account-box .text-light {
  color: #111b21 !important;
}

[data-theme="light"] .wa-feedback-box .wa-bubble-title,
body.wa-theme-light .wa-feedback-box .wa-bubble-title,
[data-theme="light"] .wa-feedback-box .text-white,
body.wa-theme-light .wa-feedback-box .text-white,
[data-theme="light"] .wa-feedback-box .text-light,
body.wa-theme-light .wa-feedback-box .text-light {
  color: #111b21 !important;
}

[data-theme="light"] .wa-register-box .wa-bubble-title,
body.wa-theme-light .wa-register-box .wa-bubble-title,
[data-theme="light"] .wa-register-box .text-white,
body.wa-theme-light .wa-register-box .text-white,
[data-theme="light"] .wa-register-box .text-light,
body.wa-theme-light .wa-register-box .text-light {
  color: #111b21 !important;
}

[data-theme="light"] .wa-phone-prefix,
body.wa-theme-light .wa-phone-prefix {
  background-color: #f0f2f5 !important;
  color: #111b21 !important;
  border-color: #d1d7db !important;
}

/* ==============================================================================
   Native App-Style Privacy & Cookie Notice Sheet
   ============================================================================== */
.wa-cookie-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 40px;
  overflow: hidden;
  animation: waFadeIn 0.25s ease;
}

.wa-cookie-sheet-dialog {
  width: 100%;
  background-color: var(--wa-panel-bg);
  border-top: 1px solid var(--wa-border-light);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 16px 20px 24px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  animation: waSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-app-cookie-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 168, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-cookie-desc {
  font-size: 13px;
  color: var(--wa-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.btn-wa-primary {
  background-color: var(--wa-green);
  color: #111b21;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-wa-secondary {
  background-color: var(--wa-input-bg);
  color: var(--wa-text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--wa-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-wa-secondary:hover {
  background-color: var(--wa-header-bg);
  color: var(--wa-text-primary);
}

/* Light Theme Overrides */
[data-theme="light"] .wa-cookie-sheet-dialog,
body.wa-theme-light .wa-cookie-sheet-dialog {
  background-color: #ffffff !important;
  border-top-color: #e9edef !important;
}

[data-theme="light"] .wa-cookie-sheet-dialog .text-white,
body.wa-theme-light .wa-cookie-sheet-dialog .text-white {
  color: #111b21 !important;
}

[data-theme="light"] .wa-cookie-desc,
body.wa-theme-light .wa-cookie-desc {
  color: #54656f !important;
}

[data-theme="light"] .btn-wa-secondary,
body.wa-theme-light .btn-wa-secondary {
  background-color: #f0f2f5 !important;
  border-color: #d1d7db !important;
  color: #111b21 !important;
}


