:root {
  --primary-color: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #e8f0fe;
  --text-main: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --bg-main: #ffffff;
  --bg-sidebar: #f6f8fc;
  --bg-hover: #f1f3f4;
  --border-color: #dadce0;
  --star-gold: #f4b400;
  --danger-color: #d93025;
  --success-color: #188038;
  --warning-color: #f29900;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* TOP APP BAR */
.app-header {
  height: 64px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  border-radius: 8px;
}

.header-search {
  flex: 1;
  max-width: 720px;
  margin: 0 24px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #f1f3f4;
  border-radius: 24px;
  padding: 0 16px;
  height: 46px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text-main);
  margin: 0 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.domain-pill:hover {
  background-color: #d2e3fc;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* APP BODY */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* SIDEBAR */
.app-sidebar {
  width: 256px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex-shrink: 0;
}

.compose-btn-wrapper {
  margin-bottom: 16px;
}

.compose-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #c2e7ff;
  color: #001d35;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, background-color 0.2s;
  width: 100%;
}

.compose-btn:hover {
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  background-color: #b3def7;
}

.folder-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.folder-item:hover {
  background-color: #eaebef;
}

.folder-item.active {
  background-color: #d3e3fd;
  color: #041e49;
  font-weight: 600;
}

.folder-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-badge {
  font-size: 12px;
  background-color: transparent;
  color: var(--text-secondary);
  font-weight: 600;
}

.folder-item.active .folder-badge {
  color: #041e49;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.dns-status-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dns-status-card:hover {
  border-color: var(--primary-color);
}

/* MAIN CONTENT AREA */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* TOOLBAR */
.mail-toolbar {
  height: 48px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #ffffff;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill.active {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* EMAIL LIST */
.mail-list-container {
  flex: 1;
  overflow-y: auto;
}

.mail-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.1s, box-shadow 0.1s;
  position: relative;
}

.mail-item:hover {
  background-color: #f7f9fa;
  box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,0.3);
  z-index: 2;
}

.mail-item.unread {
  background-color: #ffffff;
  font-weight: 700;
  color: #202124;
}

.mail-item.read {
  background-color: #f8f9fa;
  color: #5f6368;
}

.mail-item.read .mail-sender {
  font-weight: 500;
  color: #202124;
}

.mail-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.star-btn.starred {
  color: var(--star-gold);
}

.mail-sender {
  min-width: 180px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 16px;
}

.mail-content-preview {
  flex: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 6px;
  min-width: 0;
}

.mail-subject {
  color: var(--text-main);
  white-space: nowrap;
}

.mail-no-subject {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.mail-snippet {
  color: var(--text-secondary);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 90px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-secondary);
}

.mail-hover-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.mail-item:hover .mail-hover-actions {
  display: flex;
}

.mail-item:hover .mail-date-label {
  display: none;
}

/* EMAIL READING VIEW */
.mail-view-container {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 32px;
  background-color: #ffffff;
}

.view-header {
  margin-bottom: 24px;
}

.view-subject-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sender-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sender-info-box {
  display: flex;
  gap: 14px;
}

.sender-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.sender-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sender-name-full {
  font-weight: 600;
  font-size: 15px;
}

.sender-email-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.mail-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: #e6f4ea;
  color: var(--success-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 500;
}

.view-body-html {
  line-height: 1.6;
  font-size: 14px;
  color: var(--text-main);
  margin: 24px 0;
  border-top: 1px solid #f1f3f4;
  padding-top: 20px;
}

.view-attachments-box {
  margin: 24px 0;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 4px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.attachment-chip:hover {
  background-color: #f1f3f4;
}

.view-reply-box {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-top: 32px;
  background: #ffffff;
}

/* FLOATING COMPOSE MODAL (Gmail-style) */
.compose-modal {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 580px;
  height: 600px;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 100;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.compose-header {
  height: 44px;
  background: #f2f6fc;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #dadce0;
}

.compose-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.compose-controls {
  display: flex;
  gap: 4px;
}

.compose-field-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f3f4;
  padding: 6px 16px;
}

.compose-field-label {
  font-size: 13px;
  color: var(--text-secondary);
  width: 50px;
}

.compose-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
}

.compose-editor-area {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
}

.compose-editor-area[contenteditable]:empty:before {
  content: attr(placeholder);
  color: var(--text-muted);
}

.compose-toolbar {
  height: 48px;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.format-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-send {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-send:hover {
  background-color: var(--primary-hover);
}

/* SETTINGS MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.settings-modal-card {
  width: 720px;
  max-width: 90vw;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8f9fa;
  padding: 0 24px;
}

.tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.settings-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.dns-results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.dns-results-table th, .dns-results-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.dns-results-table th {
  background: #f8f9fa;
}

.badge-pass {
  background: #e6f4ea;
  color: #137333;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.badge-missing {
  background: #fce8e6;
  color: #c5221f;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.settings-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

.btn-secondary {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.6;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #323232;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================================================
   AUTHENTICATION & REGISTRATION SCREEN (Premium Lami Aurora Style)
   =================================================== */
.auth-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Ambient Animated Aurora Layer */
.auth-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.12) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

.auth-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #38bdf8 0%, #6366f1 70%, transparent 100%);
  top: -120px;
  left: -100px;
  animation: floatOrb1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #c084fc 0%, #4f46e5 70%, transparent 100%);
  top: -80px;
  right: -120px;
  animation: floatOrb2 24s ease-in-out infinite alternate;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #06b6d4 0%, #2563eb 70%, transparent 100%);
  bottom: -100px;
  left: 15%;
  animation: floatOrb3 22s ease-in-out infinite alternate;
}

.orb-4 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #818cf8 0%, #9333ea 70%, transparent 100%);
  bottom: -90px;
  right: 12%;
  animation: floatOrb1 26s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 35px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.06); }
  100% { transform: translate(35px, -30px) scale(0.96); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -45px) scale(1.1); }
  100% { transform: translate(-40px, -20px) scale(0.92); }
}

/* Floating Glassmorphic Badges */
.auth-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.2px;
  user-select: none;
}

.badge-top-left {
  top: 40px;
  left: 50px;
  animation: floatBadge 8s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 40px;
  right: 50px;
  animation: floatBadge 9s ease-in-out infinite alternate-reverse;
}

.badge-bottom-right {
  bottom: 40px;
  right: 50px;
  animation: floatBadge 10s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .auth-floating-badge {
    display: none;
  }
}

/* Frosted Glassmorphic Auth Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 
    0 24px 60px -12px rgba(15, 23, 42, 0.16),
    0 8px 24px -4px rgba(79, 70, 229, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.auth-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #747775;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.auth-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.username-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #747775;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.username-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.username-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

.domain-suffix-badge {
  background: #f1f3f4;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 14px;
  border-left: 1px solid #dadce0;
  user-select: none;
}

.username-input-wrapper.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.username-input-wrapper.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.username-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.username-feedback.error {
  color: #dc2626;
}

.username-feedback.success {
  color: #16a34a;
}

.auth-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.auth-input.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.field-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.field-feedback.error {
  color: #dc2626;
}

.field-feedback.success {
  color: #16a34a;
}

.auth-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.auth-input.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.field-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.field-feedback.error {
  color: #dc2626;
}

.field-feedback.success {
  color: #16a34a;
}

.username-input-wrapper.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.username-input-wrapper.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.username-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.username-feedback.error {
  color: #dc2626;
}

.username-feedback.success {
  color: #16a34a;
}

.auth-btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.auth-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.auth-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f3f4;
  font-size: 14px;
}

.auth-switch-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* User Profile Menu in Header */
.user-menu-container {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: none;
  flex-direction: column;
  z-index: 500;
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-logout:hover {
  background: #f1f3f4;
  color: var(--danger-color);
}

/* Custom Vector Logo & Auth Banners */
.auth-brand-logo-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-brand-logo-custom:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.brand-logo-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-custom:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1e293b;
}

.auth-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* Administrator Role Access Rules */
body:not(.is-admin) .admin-only {
  display: none !important;
}

body:not(.is-admin) .settings-tabs {
  display: none !important;
}

.readonly-input {
  background: #f8fafc !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

.dropdown-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  text-align: left;
}

.dropdown-action-btn:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
}

/* ===================================================
   LAMI INFORMATIONAL LANDING & SHOWCASE PAGE
   =================================================== */
.landing-page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* TOP STICKY NAVIGATION BAR */
.landing-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.landing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.landing-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.landing-brand-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-menu-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-menu-item {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.landing-menu-item:hover {
  color: #2563eb;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-landing-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.btn-landing-login:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #2563eb;
  transform: translateY(-1px);
}

.btn-landing-register {
  padding: 9px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-landing-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* HERO SECTION */
.landing-hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-hero-headline {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #0f172a;
  margin-bottom: 14px;
  max-width: 860px;
  text-wrap: balance;
}

.landing-hero-description {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: #64748b;
  max-width: 600px;
  margin-bottom: 28px;
}

.landing-hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  color: #1e293b;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #2563eb;
  transform: translateY(-2px);
}

/* HERO APP PREVIEW MOCKUP */
.landing-mockup-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.mockup-window {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 
    0 30px 80px -15px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  text-align: left;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid #e2e8f0;
}

.mockup-dots {
  display: flex;
  gap: 7px;
}

.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.mockup-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  color: #475569;
}

.mockup-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.mockup-content-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 290px;
}

.mockup-mini-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-compose-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.mockup-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.mock-count {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.mockup-domain-card {
  margin-top: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

.mock-domain-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.green-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.mock-domain-desc {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.mockup-mail-list {
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.mockup-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.mockup-email-row.unread {
  background: #f8fafc;
  font-weight: 600;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.avatar-blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.avatar-indigo { background: linear-gradient(135deg, #4f46e5, #6366f1); }

.mock-email-info {
  flex: 1;
  min-width: 0;
}

.mock-email-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 2px;
}

.mock-sender {
  color: #0f172a;
}

.mock-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: normal;
}

.mock-subject {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-snippet {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FEATURES SECTION */
.landing-features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
}

.landing-section-intro {
  max-width: 700px;
  margin: 0 auto 48px;
}

.landing-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.landing-section-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 32px 26px;
  text-align: left;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -6px rgba(79, 70, 229, 0.12);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-accent-blue { background: rgba(37, 99, 235, 0.1); }
.icon-accent-purple { background: rgba(124, 58, 237, 0.1); }
.icon-accent-indigo { background: rgba(79, 70, 229, 0.1); }
.icon-accent-sky { background: rgba(2, 132, 199, 0.1); }

.feature-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* STATS SECTION */
.landing-stats-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.06);
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

/* CTA CALLOUT CARD */
.landing-cta-section {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 24px;
  width: 100%;
}

.landing-cta-glass-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%), rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(199, 210, 254, 0.9);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.12);
}

.cta-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.cta-subheading {
  font-size: 16px;
  color: #475569;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45);
}

.btn-cta-secondary {
  padding: 13px 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
  border-color: #94a3b8;
  color: #2563eb;
  transform: translateY(-2px);
}

/* LANDING FOOTER */
.landing-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  padding: 22px 0;
  margin-top: auto;
}

.landing-footer-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.footer-dot {
  color: #cbd5e1;
}

/* AUTH MODAL OVERLAY (LOGIN & REGISTRATION POPUP) */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-dialog {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.auth-modal-dialog .auth-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  isolation: isolate;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.auth-modal-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 25;
  transition: all 0.15s ease;
}

.auth-modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.08);
}

/* RESPONSIVE LANDING RULES */
@media (max-width: 850px) {
  .landing-menu-links {
    display: none;
  }
  .mockup-content-split {
    grid-template-columns: 1fr;
  }
  .mockup-mini-sidebar {
    display: none;
  }
  .landing-hero-headline {
    letter-spacing: -1px;
  }
}

/* ==========================================================================
   LAMI ADMIN PANEL STYLING
   ========================================================================== */
.admin-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-pill-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
  transform: translateY(-1px);
}

.admin-modal-card {
  max-width: 980px !important;
  width: 95% !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.admin-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-body {
  overflow-y: auto;
  padding: 20px 24px;
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  flex: 1;
  max-width: 360px;
}

.admin-search-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: #1e293b;
}

.admin-create-user-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-table-container {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-role-admin {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-role-user {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.admin-action-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-action-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.admin-action-btn.btn-del:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* Admin stats cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.admin-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 6px;
}

.admin-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.admin-server-status-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.admin-server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
}

.server-label {
  color: #475569;
  font-weight: 500;
}

.server-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

.server-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.server-badge.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

/* Reserved usernames pills */
.admin-reserved-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reserved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.reserved-lock-icon {
  font-size: 11px;
}

/* Auth Forgot Password & Telegram recovery styles */
.auth-forgot-link {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.auth-forgot-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.auth-success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #166534;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.badge-telegram-linked {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-telegram-unlinked {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}






/* AVATAR AND SPAM MANAGEMENT STYLES */
.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar, .dropdown-avatar {
  overflow: hidden;
  position: relative;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
}

.profile-avatar-wrapper {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #ffffff;
}

.avatar-actions-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blocked-senders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 10px;
}

.blocked-sender-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.blocked-sender-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.blocked-sender-email {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.blocked-sender-date {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.btn-unblock {
  background: transparent;
  border: 1px solid #fecaca;
  color: #ef4444;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-unblock:hover {
  background: #fee2e2;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE VERSION (SMARTPHONES & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
  /* Show user card in mobile drawer */
  .drawer-user-card {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f7ff, #e0effe);
    border-bottom: 1px solid #bae6fd;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* --- HEADER ON MOBILE --- */
  .app-header {
    height: 56px;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-left {
    gap: 6px;
  }

  .brand-logo-custom svg {
    width: 28px;
    height: 28px;
  }

  .brand-title {
    font-size: 16px;
  }

  .domain-badge {
    display: none !important;
  }

  .header-center {
    flex: 1;
    max-width: none;
    margin: 0 6px;
  }

  .search-container {
    width: 100%;
  }

  .search-input {
    height: 36px;
    font-size: 13px;
    padding-left: 34px;
    padding-right: 30px;
  }

  .header-right {
    gap: 4px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* --- OFF-CANVAS SIDEBAR DRAWER --- */
  .app-sidebar {
    position: fixed !important;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    background: #ffffff;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    display: flex !important;
    overflow-y: auto;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .compose-btn-wrapper {
    padding: 12px 14px;
  }

  .compose-btn {
    height: 44px;
    font-size: 14px;
  }

  /* --- MAIL LIST & TOOLBAR --- */
  .mail-toolbar {
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    width: 100%;
    padding-bottom: 2px;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
    border-radius: 16px;
  }

  .mail-counter-label {
    font-size: 11px;
    margin-left: auto;
  }

  /* --- TOUCH-FRIENDLY MAIL LIST ITEMS --- */
  .mail-item {
    padding: 12px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
  }

  .mail-item:active {
    background-color: #f1f5f9;
  }

  .mail-item .mail-sender {
    width: auto;
    max-width: 60%;
    font-size: 13.5px;
    font-weight: 600;
  }

  .mail-item .mail-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
  }

  .mail-item .mail-subject {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mail-item .mail-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* --- MAIL VIEW FULL VIEWPORT --- */
  .mail-view-container {
    padding: 12px 14px 70px;
  }

  .view-subject-title {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .sender-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
  }

  .sender-info-box {
    width: 100%;
  }

  .sender-details {
    min-width: 0;
    flex: 1;
  }

  .sender-name-full {
    font-size: 14px;
  }

  .sender-email-sub {
    font-size: 11px;
    word-break: break-all;
  }

  .view-body-html {
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    word-break: break-word;
  }

  .view-body-html img {
    max-width: 100% !important;
    height: auto !important;
  }

  .view-body-html table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  /* --- FULLSCREEN COMPOSE MODAL ON MOBILE --- */
  .compose-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 2200 !important;
    box-shadow: none !important;
  }

  .compose-header {
    padding: 12px 14px;
  }

  .compose-field-row {
    padding: 8px 14px;
  }

  .compose-input {
    font-size: 16px;
  }

  .compose-editor-area {
    font-size: 16px;
    padding: 12px 14px;
  }

  .compose-toolbar {
    padding: 10px 14px;
  }

  /* --- MODAL DIALOGS (SETTINGS & ADMIN) --- */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    z-index: 2500 !important;
  }

  .settings-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .admin-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .settings-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 12px 0;
  }

  .settings-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .settings-body {
    padding: 14px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-input {
    font-size: 16px;
  }

  .profile-avatar-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .avatar-actions-btns {
    justify-content: center;
  }

  .dns-results-table {
    display: block;
    overflow-x: auto;
  }

  /* --- MOBILE COMPOSE FAB BUTTON --- */
  .mobile-compose-fab {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .mobile-compose-fab:active {
    transform: scale(0.92);
  }
}

@media (min-width: 769px) {
  .mobile-compose-fab {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
}

/* --- LANDING & AUTH RESPONSIVENESS ON SMALL SCREENS --- */
@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px !important;
    border-radius: 20px !important;
    margin: 10px auto !important;
  }

  .landing-nav-bar {
    padding: 0 12px;
  }

  .landing-hero {
    padding: 30px 14px 16px;
  }

  .landing-hero-headline {
    font-size: 28px !important;
    letter-spacing: -0.5px;
  }

  .landing-hero-sub {
    font-size: 13.5px;
  }

  .landing-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .landing-cta-primary, .landing-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .landing-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .landing-benefit-card {
    padding: 16px;
  }
}

/* ==========================================================================
   LANDING PAGE ENHANCEMENTS & MODERN STYLES
   ========================================================================== */
.landing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.landing-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 550;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.landing-features-container {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.landing-features-header {
  margin-bottom: 32px;
  text-align: center;
}

.landing-features-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.landing-features-header p {
  font-size: 15px;
  color: #475569;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-red { background: #fef2f2; color: #ef4444; }
.icon-purple { background: #faf5ff; color: #8b5cf6; }
.icon-green { background: #f0fdf4; color: #16a34a; }

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

/* DRAWER PROFILE CARD AND SETTINGS */
.drawer-user-card {
  display: none !important; /* Hidden on PC desktop, only visible in mobile drawer */
}

.drawer-user-card:hover {
  background: linear-gradient(135deg, #e0effe, #bae6fd);
}

.drawer-user-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #1a73e8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drawer-user-info {
  min-width: 0;
  flex: 1;
}

.drawer-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-email {
  font-size: 11.5px;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-nav-actions {
  display: none !important; /* Hidden on PC desktop, only visible in mobile drawer */
}

.drawer-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.drawer-action-btn:hover {
  background: #f1f5f9;
}

.drawer-action-btn.text-danger {
  color: #ef4444;
}

.drawer-action-btn.text-danger:hover {
  background: #fee2e2;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (HEADER, DRAWER, PREVIEW & SETTINGS)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .app-container, .main-content, .mail-toolbar, .mail-list-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* TOP HEADER MOBILE FULL FIX */
  .app-header {
    height: 56px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }

  .header-left {
    min-width: 0 !important;
    width: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .brand-text {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .header-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 8px !important;
    max-width: none !important;
  }

  .search-bar {
    height: 38px !important;
    border-radius: 20px !important;
    padding: 0 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .search-bar input {
    font-size: 13px !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 4px !important;
  }

  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  #btnOpenSettings {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
  }

  .user-avatar {
    display: flex !important;
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }

  .domain-pill, .admin-pill-btn {
    display: none !important;
  }

  /* TOOLBAR & FILTER PILLS */
  .mail-toolbar {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .filter-pills {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    width: 100% !important;
    padding-bottom: 2px !important;
  }

  .filter-pills::-webkit-scrollbar {
    display: none !important;
  }

  /* LANDING RESPONSIVE */
  .landing-hero-headline {
    font-size: 28px !important;
    letter-spacing: -0.6px !important;
    line-height: 1.2 !important;
  }

  .landing-hero-description {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .landing-hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  .landing-trust-row {
    gap: 8px !important;
    margin-bottom: 24px !important;
  }

  .trust-badge-item {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  .landing-mockup-wrapper {
    margin-bottom: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 4px !important;
  }

  .mockup-window {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
  }

  .mockup-mini-sidebar {
    display: none !important;
  }

  .mockup-content-split {
    grid-template-columns: 1fr !important;
  }

  .landing-features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feature-card {
    padding: 16px !important;
  }
}

/* FIX LANDING OVERFLOW AND CONTRAST ON MOBILE */
@media (max-width: 768px) {
  .landing-page-wrapper {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .landing-hero-section {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 24px 12px 40px !important;
    box-sizing: border-box !important;
  }

  .landing-badge-pill {
    max-width: 92% !important;
    font-size: 11.5px !important;
    padding: 5px 12px !important;
    margin-bottom: 14px !important;
  }

  .landing-hero-headline {
    font-size: 26px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    padding: 0 8px !important;
    margin-bottom: 12px !important;
    color: #0f172a !important;
  }

  .landing-hero-description {
    font-size: 14px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    padding: 0 8px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .landing-hero-cta-group {
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

  .landing-trust-row {
    padding: 0 8px !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
  }

  .landing-mockup-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .mockup-window {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .landing-nav-container {
    padding: 10px 12px !important;
  }

  .landing-brand-text {
    font-size: 18px !important;
  }

  .btn-landing-login, .btn-landing-register {
    font-size: 13px !important;
    padding: 7px 12px !important;
  }
}


/* ADMIN STATUS BADGES & BLOCK/UNBLOCK BUTTONS */
.badge-status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-status-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.badge-status-blocked {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-status-blocked::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.admin-action-btn.btn-block {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fff5f5;
}
.admin-action-btn.btn-block:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.admin-action-btn.btn-unblock {
  color: #059669;
  border-color: #a7f3d0;
  background: #f0fdf4;
}
.admin-action-btn.btn-unblock:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ROTATING REFRESH ICON */
@keyframes spinRefresh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.rotating svg, .rotating {
  animation: spinRefresh 0.75s linear infinite;
}
