/* ==========================================================================
   YMN Mail — Ultra Modern, Eye-Catching Design System
   Strict CSP Compliant (style-src 'self') · 100% Responsive · Zero CDN
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Premium Obsidian & Cyber-Blue Colors */
  --bg-deep: #060913;
  --bg-surface: #0c1222;
  --bg-surface-elevated: #141e36;
  --bg-card: rgba(12, 19, 36, 0.82);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-card-border-hover: rgba(59, 130, 246, 0.5);

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.45);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-subtle: rgba(244, 63, 94, 0.15);
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary-text: #60a5fa;
  --primary-subtle: rgba(37, 99, 235, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-btn: 0 0 25px rgba(37, 99, 235, 0.45), 0 4px 14px rgba(0, 0, 0, 0.5);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.18) 0px, transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Page Wrapper */
.page-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Hero Layout (Landing Page)
   ========================================================================== */
.hero-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 64px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(12, 19, 36, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(12, 19, 36, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.feature-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.feature-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Glassmorphic Auth Card
   ========================================================================== */
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8, #2563eb);
}

/* Segmented Tab Switcher */
.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #080d19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.card-header {
  margin-bottom: 24px;
}

.card-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

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

.form-input {
  width: 100%;
  height: 50px;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #0b1224;
}

.form-input::placeholder {
  color: #475569;
}

/* Password Eye Button */
.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: #94a3b8;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Composite Domain Input */
.email-composite {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 8px;
  align-items: center;
}

.email-at {
  color: #64748b;
  font-weight: 800;
  font-size: 1.1rem;
}

.domain-select {
  height: 50px;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.domain-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Password Strength & Requirements */
.password-strength-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strength-bar {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 300ms ease, background-color 300ms ease;
  border-radius: var(--radius-full);
}

.strength-fill.weak { width: 33%; background: var(--accent-rose); }
.strength-fill.medium { width: 66%; background: var(--accent-amber); }
.strength-fill.strong { width: 100%; background: var(--accent-emerald); }

.requirements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.req-item {
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
}

.req-item.met {
  color: var(--accent-emerald);
}

.req-item svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Password Match Indicator */
.password-match-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 8px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.password-match-indicator[hidden] {
  display: none;
}

.password-match-indicator.matched {
  color: var(--accent-emerald);
}

.password-match-indicator.mismatched {
  color: var(--accent-rose);
}

.password-match-indicator svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Primary Submit Button */
.btn-primary {
  width: 100%;
  height: 52px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
  margin-top: 24px;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--primary-glow), 0 6px 18px rgba(0, 0, 0, 0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.active {
  display: inline-block;
}

.text-center { text-align: center; }
.btn-link { background: none; border: none; cursor: pointer; color: #60a5fa; font-weight: 600; font-family: inherit; font-size: 0.86rem; transition: color var(--transition-fast); }
.btn-link:hover { text-decoration: underline; color: #93c5fd; }

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

/* Alerts */
.alert-box {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 14px;
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.alert-box.visible {
  display: flex;
}

.alert-box.error {
  background: var(--accent-rose-subtle);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.alert-box.success {
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.auth-footer-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inline-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.inline-link:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* Success Card */
.success-card-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.success-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.success-badge svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.created-email-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 8px 0;
}

.created-email-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #60a5fa;
  word-break: break-all;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Gmail & Mobile Setup Guide Layout (`gmail-setup.html`)
   ========================================================================== */
.guide-wrap {
  max-width: 900px;
  margin: 40px auto 80px;
  width: 100%;
}

.guide-hero {
  text-align: center;
  margin-bottom: 40px;
}

.guide-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 14px 0;
  color: var(--text-main);
}

.guide-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

.server-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.param-box {
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.param-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.param-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.param-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.param-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tip-box {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #bfdbfe;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tip-box svg {
  width: 22px;
  height: 22px;
  stroke: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Site Footer */
.site-footer {
  height: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  width: 100%;
}

.site-footer p {
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 0 60px;
  }
  .hero-intro {
    display: contents;
  }
  .hero-header {
    order: 1;
    text-align: center;
    align-items: center;
    gap: 16px;
  }
  .auth-card {
    order: 2;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }
  .features-grid {
    order: 3;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 0 16px;
  }
  .site-header {
    height: 68px;
    gap: 8px;
  }
  .brand {
    font-size: 1.15rem;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-icon svg {
    width: 19px;
    height: 19px;
  }
  .brand-tag {
    display: none;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .btn-secondary {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.08;
  }
  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .email-composite {
    grid-template-columns: 1fr;
  }
  .email-at {
    display: none;
  }
  .server-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    height: 72px;
    font-size: 0.78rem;
    padding: 0 12px;
  }
}

@media (max-width: 380px) {
  .site-header {
    height: 62px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 6px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .header-actions {
    gap: 4px;
  }
  .nav-link {
    padding: 5px 6px;
    font-size: 0.72rem;
  }
  .btn-secondary {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
}
