:root {
  --bg-deep: #08020e;
  --bg-card: rgba(23, 11, 42, 0.72);
  --bg-card-hover: rgba(33, 16, 60, 0.85);
  --bg-elevated: rgba(43, 20, 78, 0.6);
  --border-subtle: rgba(217, 70, 239, 0.16);
  --border-glow: rgba(236, 72, 153, 0.4);
  --border-focus: #f43f5e;
  
  --primary-pink: #ff2a85;
  --primary-fuchsia: #d946ef;
  --primary-purple: #9333ea;
  --primary-violet: #7c3aed;
  
  --gradient-neon: linear-gradient(135deg, #ff2a85 0%, #d946ef 50%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 42, 133, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(30, 15, 55, 0.85) 0%, rgba(18, 8, 35, 0.95) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 30%, #f472b6 75%, #c084fc 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #f472b6;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  
  --shadow-glow: 0 0 35px rgba(217, 70, 239, 0.22);
  --shadow-card: 0 16px 48px -12px rgba(5, 1, 15, 0.8);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  height: fit-content;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(217, 70, 239, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 90% 25%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 65%, rgba(255, 42, 133, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #090314;
}
::-webkit-scrollbar-thumb {
  background: #3b175d;
  border-radius: 999px;
  border: 2px solid #090314;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 3, 16, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-emblem {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.brand-emblem-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand:hover .brand-emblem-svg {
  filter: drop-shadow(0 0 18px rgba(255, 42, 133, 0.75));
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.brand-main {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-gradient {
  background: linear-gradient(135deg, #ff2a85 0%, #ff529a 30%, #d946ef 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 42, 133, 0.5));
}

.brand-tld {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f472b6;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.18), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(255, 42, 133, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-tld::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff2a85;
  box-shadow: 0 0 6px #ff2a85;
  display: inline-block;
  animation: tld-pulse 2s infinite ease-in-out;
}

@keyframes tld-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px #ff2a85; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 42, 133, 0.6);
}

.nav-cta {
  background: rgba(217, 70, 239, 0.12);
  border: 1px solid rgba(217, 70, 239, 0.3);
  color: var(--primary-pink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  flex: 1;
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.25);
  color: #f472b6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.15);
}

.pill-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-pink);
  box-shadow: 0 0 10px var(--primary-pink);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--primary-pink); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 20px 0 40px;
}

.hero-title {
  font-size: clamp(24px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-title {
    font-size: clamp(20px, 5.2vw, 30px);
    white-space: normal;
  }
}

.hero-title .glow-highlight {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 42, 133, 0.4));
  display: inline-block;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title .glow-highlight.is-changing {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 16px;
  font-weight: 400;
}

/* Prominent Feature Badges */
.hero-feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 820px;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.hero-feature-pill svg {
  color: var(--primary-pink);
  flex-shrink: 0;
}

.hero-feature-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.hero-feature-pill-accent {
  background: rgba(255, 42, 133, 0.12);
  border-color: rgba(255, 42, 133, 0.35);
  color: #f472b6;
  cursor: pointer;
}

.hero-feature-pill-accent:hover {
  background: rgba(255, 42, 133, 0.24);
  border-color: var(--primary-pink);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.35);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  padding: 36px 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0.8;
}

/* Generator Box */
.generator-card {
  max-width: 860px;
  margin: 0 auto 56px;
}

.input-container {
  display: flex;
  align-items: center;
  background: rgba(14, 6, 28, 0.85);
  border: 1.5px solid rgba(217, 70, 239, 0.25);
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s;
}

.input-container:focus-within {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 4px rgba(255, 42, 133, 0.18), inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.input-user {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 10px 14px;
  min-width: 140px;
}

.input-at {
  color: var(--primary-pink);
  font-size: 22px;
  font-weight: 800;
  padding: 0 6px;
  user-select: none;
}

.domain-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 160px;
}

.input-domain {
  background: rgba(43, 20, 78, 0.4);
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 12px 38px 12px 16px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.input-domain:hover,
.domain-picker-wrap.open .input-domain,
.input-domain:focus {
  background: rgba(60, 28, 107, 0.5);
  border-color: var(--primary-pink);
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.25);
}

.domain-chevron-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 6px;
}

.domain-chevron-btn:hover {
  color: var(--primary-pink);
  background: rgba(255, 42, 133, 0.15);
}

.domain-picker-wrap.open .domain-chevron-btn svg {
  transform: rotate(180deg);
  color: var(--primary-pink);
}

.domain-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 260px;
  background: #14092b;
  border: 1px solid rgba(255, 42, 133, 0.4);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 42, 133, 0.2);
  border-radius: 12px;
  z-index: 99999;
  overflow: hidden;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.domain-dropdown.hidden {
  display: none !important;
}

.domain-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.domain-dropdown-count {
  background: rgba(255, 42, 133, 0.15);
  color: var(--primary-pink);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.domain-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.domain-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
}

.domain-dropdown-item:hover,
.domain-dropdown-item.active {
  background: rgba(255, 42, 133, 0.18);
  color: #fff;
  border-left: 3px solid var(--primary-pink);
  padding-left: 9px;
}

.domain-dropdown-item.selected {
  color: var(--primary-pink);
  font-weight: 700;
}

.domain-dropdown-item .domain-badge {
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.domain-dropdown-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

.domain-dropdown-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.dropdown-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed rgba(255, 42, 133, 0.35);
  border-radius: 6px;
  padding: 8px;
  color: #f472b6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-add-btn:hover {
  background: rgba(255, 42, 133, 0.15);
  border-color: var(--primary-pink);
  color: #fff;
}

.btn-copy-main {
  background: var(--gradient-neon);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 42, 133, 0.4);
  transition: all 0.2s;
  margin-left: 10px;
  white-space: nowrap;
}

.btn-copy-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 42, 133, 0.6);
  filter: brightness(1.1);
}

.btn-copy-main:active {
  transform: translateY(1px);
}

.btn-copy-main svg {
  width: 18px;
  height: 18px;
}

/* Active Email Pill Bar */
.active-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.current-address-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(43, 20, 78, 0.5);
  border: 1px solid rgba(217, 70, 239, 0.3);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #fce7f3;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.15);
}

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
  display: inline-block;
  transition: background 0.3s;
}

.dot.online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
  animation: radar-ping 2s infinite;
}

.dot.bad {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@keyframes radar-ping {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-uptime {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Action Controls Row */
.action-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-action {
  background: rgba(30, 14, 55, 0.7);
  border: 1px solid rgba(217, 70, 239, 0.22);
  color: #f1f5f9;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-action:hover {
  background: rgba(54, 25, 99, 0.8);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 133, 0.25);
  color: #ffffff;
}

.btn-action svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-action.btn-accent {
  background: var(--gradient-neon);
  border: none;
  box-shadow: 0 4px 20px rgba(255, 42, 133, 0.35);
}

.btn-action.btn-accent:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 28px rgba(255, 42, 133, 0.55);
}

.btn-action.btn-danger-hover:hover {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25);
}

/* Refresh countdown chip */
.countdown-chip {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Workspace / Inbox Section */
.workspace {
  margin-top: 40px;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.inbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inbox-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.inbox-count-badge {
  background: var(--gradient-neon);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.4);
}

.inbox-search-box {
  position: relative;
  min-width: 260px;
}

.inbox-search-input {
  width: 100%;
  background: rgba(22, 11, 42, 0.7);
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 38px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.inbox-search-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 42, 133, 0.2);
}

.inbox-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-dim);
}

/* Messages List */
.messages {
  display: grid;
  gap: 14px;
}

.message-item {
  background: rgba(23, 11, 44, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 70, 239, 0.16);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  text-align: left;
  width: 100%;
  position: relative;
}

.message-item:hover {
  background: rgba(38, 18, 72, 0.85);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 42, 133, 0.25);
}

.sender-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-neon);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.3);
}

.message-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.message-from {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-subject {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.message-time {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.attachment-badge {
  background: rgba(217, 70, 239, 0.15);
  color: #f472b6;
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-dim);
  transition: transform 0.2s, fill 0.2s;
}

.message-item:hover .chevron-icon {
  fill: var(--primary-pink);
  transform: translateX(3px);
}

/* Empty Inbox State */
.empty-inbox {
  padding: 64px 24px;
  text-align: center;
  border: 1.5px dashed rgba(217, 70, 239, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(18, 8, 35, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-radar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 42, 133, 0.1);
  border: 1.5px solid rgba(255, 42, 133, 0.3);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.25);
}

.empty-radar svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-pink);
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
}

/* How It Works (Guide) Section */
.guide-section {
  margin: 100px 0 60px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pink);
  box-shadow: 0 14px 40px rgba(255, 42, 133, 0.18);
}

.step-number {
  font-size: 38px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-box {
  background: rgba(22, 10, 42, 0.65);
  border: 1px solid rgba(217, 70, 239, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s;
}

.feature-box:hover {
  border-color: var(--primary-fuchsia);
  background: rgba(35, 16, 68, 0.8);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-pink);
}

.feature-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Architecture Specs Bar */
.specs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
}

.spec-chip {
  background: rgba(30, 15, 58, 0.7);
  border: 1px solid rgba(217, 70, 239, 0.22);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-chip span {
  color: var(--primary-pink);
}

/* FAQ Accordion */
.faq-section {
  margin: 100px 0 60px;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
}

.faq-item:hover {
  border-color: rgba(255, 42, 133, 0.35);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-pink);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding-bottom: 22px;
}

/* Reader Modal */
dialog#reader {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-xl);
  background: #110724;
  color: var(--text-main);
  max-width: 780px;
  width: calc(100% - 32px);
  height: fit-content;
  max-height: calc(100vh - 40px);
  padding: 0;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 42, 133, 0.3);
  border: 1px solid rgba(217, 70, 239, 0.3);
}

dialog#reader::backdrop {
  background: rgba(6, 2, 12, 0.8);
  backdrop-filter: blur(12px);
}

.reader-article {
  padding: 36px 32px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.reader-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.reader-close:hover {
  background: var(--primary-pink);
  color: #ffffff;
  transform: scale(1.05);
}

.reader-header {
  border-bottom: 1px solid rgba(217, 70, 239, 0.18);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.reader-subject {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-word;
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.reader-meta-item strong {
  color: var(--text-main);
}

.reader-body-content {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.reader-body-content a {
  color: var(--primary-pink);
  text-decoration: underline;
}

.reader-body-content pre {
  background: #090314;
  border: 1px solid rgba(217, 70, 239, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  overflow-x: auto;
}

/* Attachments */
.reader-attachments-tray {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 70, 239, 0.18);
}

.reader-attachments-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-accent);
  margin-bottom: 12px;
}

.reader-attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-download-btn {
  background: rgba(43, 20, 78, 0.5);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.attachment-download-btn:hover {
  background: var(--gradient-neon);
  box-shadow: 0 4px 16px rgba(255, 42, 133, 0.4);
  transform: translateY(-1px);
}

/* QR Code Modal */
dialog#qrModal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-xl);
  background: #110724;
  color: var(--text-main);
  max-width: 400px;
  width: calc(100% - 32px);
  height: fit-content;
  max-height: calc(100vh - 40px);
  padding: 32px;
  text-align: center;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 42, 133, 0.35);
  border: 1px solid rgba(217, 70, 239, 0.35);
}

dialog#qrModal::backdrop {
  background: rgba(6, 2, 12, 0.8);
  backdrop-filter: blur(12px);
}

.qr-canvas-wrap {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(30, 14, 58, 0.95);
  border: 1px solid var(--primary-pink);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 42, 133, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1), toast-out 0.3s forwards 2.7s;
  pointer-events: auto;
}

@keyframes toast-in {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Footer */
.footer {
  background: rgba(9, 3, 18, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 36px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
  margin-top: 14px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-pink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  color: #f472b6;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .nav-container { height: 68px; }
  .nav-links { display: none; }
  .input-container { flex-direction: column; align-items: stretch; gap: 8px; }
  .btn-copy-main { margin-left: 0; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .inbox-header { flex-direction: column; align-items: flex-start; }
  .inbox-search-box { width: 100%; }
}

/* Custom Domain Feature Styles */
.btn-nav-custom-domain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #ff2a85 0%, #d946ef 50%, #9333ea 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.45);
  animation: pulse-domain-glow 2.2s infinite ease-in-out;
}

.btn-nav-custom-domain:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 25px rgba(255, 42, 133, 0.8), 0 0 25px rgba(217, 70, 239, 0.6);
  border-color: #fff;
  animation-play-state: paused;
}

@keyframes pulse-domain-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 133, 0.7), 0 0 12px rgba(255, 42, 133, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 42, 133, 0), 0 0 22px rgba(217, 70, 239, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 133, 0), 0 0 12px rgba(255, 42, 133, 0.3);
  }
}

.badge-custom-domain {
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.custom-domain-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #110724;
  color: var(--text-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 42, 133, 0.15);
  padding: 28px;
  max-width: 580px;
  width: 90vw;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.custom-domain-dialog::backdrop {
  background: rgba(10, 4, 22, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cd-input-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cd-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.cd-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
}

.cd-domain-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.cd-domain-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cd-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.cd-status-pill.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.cd-instructions-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.cd-ns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cd-ns-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #f472b6;
}

.btn-copy-ns {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-ns:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.cd-subdomain-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.cd-actions-row {
  display: flex;
  gap: 12px;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #34d399 !important;
  color: #fff !important;
}

.btn-success:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.cd-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}

.cd-error-alert.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.modal-toast-container {
  position: absolute;
  top: 14px;
  right: 54px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.modal-toast-container .toast {
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 133, 0.5);
}

.btn-copy-ns.copied {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: #4ade80 !important;
  color: #4ade80 !important;
  font-weight: 700;
}

/* ==========================================================================
   BlogZone Educational Knowledge Hub & Article Reader
   ========================================================================== */
.blog-zone {
  margin-top: 100px;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  background: rgba(22, 10, 42, 0.45);
  border: 1px solid rgba(217, 70, 239, 0.15);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-tab-btn:hover {
  color: #ffffff;
  border-color: var(--primary-pink);
  background: rgba(255, 42, 133, 0.12);
}

.blog-tab-btn.active {
  background: var(--gradient-neon);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.4);
}

.blog-search-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: var(--text-dim);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  background: rgba(14, 5, 28, 0.7);
  border: 1px solid rgba(217, 70, 239, 0.25);
  border-radius: 999px;
  padding: 9px 18px 9px 40px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}

.blog-search-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

.blog-card {
  background: rgba(22, 10, 42, 0.6);
  border: 1px solid rgba(217, 70, 239, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pink);
  background: rgba(34, 15, 66, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 42, 133, 0.25);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
}

.blog-card-cat {
  background: rgba(255, 42, 133, 0.15);
  color: #f472b6;
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10.5px;
}

.blog-card-time {
  color: var(--text-dim);
  font-weight: 500;
}

.blog-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: #fce7f3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a85, #7c3aed);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.3);
}

.author-avatar.large {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-read-more {
  color: var(--primary-pink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}

.blog-card:hover .blog-read-more {
  transform: translateX(4px);
}

/* Article Reader Dialog */
dialog#blogReaderModal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-xl);
  background: #0f051e;
  color: var(--text-main);
  max-width: 860px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  height: fit-content;
  padding: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 42, 133, 0.3);
  border: 1px solid rgba(217, 70, 239, 0.3);
  overflow: hidden;
}

dialog#blogReaderModal::backdrop {
  background: rgba(6, 2, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.blog-reader-article {
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  padding: 40px;
}

.reader-breadcrumbs {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-breadcrumbs span {
  color: var(--primary-pink);
}

.reader-title-full {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.reader-subtitle-full {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.author-callout-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.author-callout-box .author-bio {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.article-body-html {
  font-size: 15.5px;
  line-height: 1.85;
  color: #d1d5db;
}

.article-body-html h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 16px;
  border-left: 4px solid var(--primary-pink);
  padding-left: 12px;
}

.article-body-html h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f3e8ff;
  margin: 28px 0 12px;
}

.article-body-html p {
  margin-bottom: 18px;
}

.article-body-html ul,
.article-body-html ol {
  margin: 0 0 20px 24px;
}

.article-body-html li {
  margin-bottom: 8px;
}

.article-lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: #fce7f3;
  margin-bottom: 26px;
  font-weight: 500;
}

.article-callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.article-callout.tip {
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.35);
  color: #f5d0fe;
}

.article-callout.warning {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  background: rgba(15, 6, 30, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table th {
  background: rgba(255, 42, 133, 0.15);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-body-html pre {
  background: #090214;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 22px 0;
}

.article-body-html code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #f472b6;
}

.article-cta-box {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.15), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(255, 42, 133, 0.4);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.article-cta-box p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .blog-controls { flex-direction: column; align-items: stretch; }
  .blog-search-wrap { max-width: 100%; }
  .blog-reader-article { padding: 24px 18px; }
  .reader-title-full { font-size: 24px; }
  .article-table { display: block; overflow-x: auto; }
}

