:root {
  --bg: #f8f9fb;
  --bg-2: #ffffff;
  --bg-3: #f1f3f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #e4e8ef;
  --border-2: #d0d7e3;
  --text: #0d1117;
  --text-2: #4a5568;
  --text-3: #8896ab;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-light: #eff6ff;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0a0d14;
  --bg-2: #111520;
  --bg-3: #161b28;
  --surface: #111520;
  --surface-2: #161b28;
  --border: #1e2535;
  --border-2: #252e42;
  --text: #e8edf5;
  --text-2: #8896ab;
  --text-3: #4a5568;
  --accent-light: #0d1f3c;
  --purple-light: #1a1030;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,249,251,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(10,13,20,.92);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid rgba(37,99,235,.2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

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

.ad-leaderboard, .ad-in-article, .ad-footer-leaderboard {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-sidebar {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ad-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), var(--purple));
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--purple);
  bottom: -50px;
  right: 10%;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.mail-engine { max-width: 620px; margin: 0 auto; }

.mail-box-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}

.mail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 6px;
  font-size: .8rem;
  color: var(--text-3);
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background var(--transition);
}

.connection-dot.connected { background: var(--green); animation: pulse-dot 2s infinite; }
.connection-dot.error { background: var(--red); }

.separator { opacity: .4; }

.mail-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-3);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mail-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mail-address-area { flex: 1; min-width: 0; }

.mail-skeleton .skel-line {
  height: 20px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border-2) 50%, var(--border) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.mail-address {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  word-break: break-all;
}

.mail-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.action-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.action-btn.spinning svg { animation: spin 1s linear infinite; }

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

.mail-timer {
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 2px;
  width: 100%;
  transition: width 1s linear;
}

.timer-text {
  font-size: .75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.inbox-section { padding: 60px 0; }

.inbox-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.inbox-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.inbox-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.inbox-badge {
  background: var(--accent);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.btn-ghost {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.inbox-empty {
  padding: 60px 24px;
  text-align: center;
  position: relative;
}

.empty-illustration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-2);
  margin-bottom: 24px;
}

.empty-envelope { font-size: 2rem; }

.empty-lines { display: flex; flex-direction: column; gap: 6px; }

.e-line {
  height: 8px;
  width: 100px;
  background: var(--border-2);
  border-radius: 4px;
}

.e-line.short { width: 60px; }

.inbox-empty h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.inbox-empty p {
  font-size: .9rem;
  color: var(--text-2);
  max-width: 340px;
  margin: 0 auto;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .1;
  animation: pulse-ring 3s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(.5); opacity: .2; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.inbox-list { padding: 8px; }

.mail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  margin-bottom: 4px;
  animation: slide-in .3s ease;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mail-item:hover {
  background: var(--accent-light);
  border-color: rgba(37,99,235,.15);
}

.mail-item.unread .mail-item-subject { font-weight: 700; }

.mail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.mail-item-body { flex: 1; min-width: 0; }

.mail-item-from {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item-subject {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item-preview {
  font-size: .82rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mail-item-time {
  font-size: .75rem;
  color: var(--text-3);
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.message-view { padding: 24px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  margin-bottom: 24px;
}

.back-btn:hover { border-color: var(--accent); color: var(--accent); }

.message-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.message-subject {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-2);
}

.message-body {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
}

.message-body pre {
  white-space: pre-wrap;
  font-family: var(--font-body);
}

.otp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-light), var(--purple-light));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

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

.otp-icon { font-size: 1.5rem; }

.otp-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.otp-code {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text);
}

.otp-copy-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.otp-copy-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.inbox-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.ip-widget {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.8;
}

.ip-skeleton {
  color: var(--text-3);
  font-style: italic;
  font-size: .82rem;
}

.ip-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.ip-row:last-child { border-bottom: none; }

.ip-key { color: var(--text-3); }
.ip-val { font-weight: 500; color: var(--text); }

.quick-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qtool-btn {
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-2);
  transition: all var(--transition);
  display: block;
}

.qtool-btn:hover {
  background: var(--accent-light);
  border-color: rgba(37,99,235,.2);
  color: var(--accent);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-list li {
  font-size: .85rem;
  color: var(--text-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.why-list li:last-child { border-bottom: none; }

.features-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(37,99,235,.15);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.see-all-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
  transition: opacity var(--transition);
}

.see-all-link:hover { opacity: .7; }

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.6;
}

.articles-preview {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-3);
}

.article-card-img.loading {
  background: linear-gradient(90deg, var(--border) 0%, var(--border-2) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.article-card-body { padding: 20px; }

.article-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card p {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
}

.article-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 340px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border-2) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-card { color: white; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .85rem;
  opacity: .8;
}

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

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

.footer-brand p {
  font-size: .88rem;
  color: var(--text-2);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 10px; }

.footer-links ul li a {
  font-size: .85rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-links ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--accent); }

.mobile-sticky-ad {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px;
  z-index: 200;
  text-align: center;
}

.close-sticky {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: .8rem;
}

#toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  animation: toast-in .3s ease;
  min-width: 240px;
  max-width: 340px;
}

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

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px 0;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.tool-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-body);
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
}

.tool-input:focus { border-color: var(--accent); }

.tool-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  margin-bottom: 10px;
}

.tool-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.tool-result {
  padding: 12px 14px;
  background: var(--bg-3);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: .88rem;
  color: var(--text);
  word-break: break-all;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tool-result.loading { color: var(--text-3); font-style: italic; font-family: var(--font-body); }

select.tool-input {
  appearance: none;
  cursor: pointer;
}

.article-page { padding: 60px 0; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: var(--bg-3);
}

.article-body {
  padding: 40px;
}

.article-body h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.article-body p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-body ul li {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 6px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-3);
  font-size: .92rem;
}

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-a.open {
  padding: 16px 20px;
  max-height: 300px;
}

.articles-list-page { padding: 60px 0; }

.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-page, .privacy-page, .contact-page, .terms-page {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}

.prose p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose ul li {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 6px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label { font-size: .85rem; font-weight: 600; color: var(--text-2); }

.form-input, .form-textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-input:focus, .form-textarea:focus { border-color: var(--accent); }

.submit-btn {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
  align-self: flex-start;
}

.submit-btn:hover { opacity: .9; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.team-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card p { font-size: .82rem; color: var(--text-3); }

@media (max-width: 1024px) {
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-sidebar { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 56px 20px 72px; }
  .hero-title { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .tools-grid { grid-template-columns: 1fr; }
  .mobile-sticky-ad { display: flex; flex-direction: column; }
  .team-grid { grid-template-columns: 1fr; }
}
