.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f6f2, #eee7dc);
}
[data-theme="dark"] .bg-mesh {
  background: linear-gradient(135deg, #0f0f1a, #180f0a);
}
.bg-mesh .blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bg-mesh .blob:nth-child(1) {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -180px;
  background: radial-gradient(circle, rgba(212, 135, 58, 0.18) 0%, transparent 70%);
  animation: meshDrift1 24s ease-in-out infinite;
}
.bg-mesh .blob:nth-child(2) {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(26, 26, 46, 0.07) 0%, transparent 70%);
  animation: meshDrift2 30s ease-in-out infinite;
}
.bg-mesh .blob:nth-child(3) {
  width: 500px;
  height: 500px;
  top: 40%;
  left: 60%;
  background: radial-gradient(circle, rgba(212, 135, 58, 0.1) 0%, transparent 70%);
  animation: meshDrift3 18s ease-in-out infinite;
}
.bg-mesh .blob:nth-child(4) {
  width: 550px;
  height: 550px;
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle, rgba(212, 135, 58, 0.07) 0%, transparent 70%);
  animation: meshDrift1 26s ease-in-out infinite reverse;
}
[data-theme="dark"] .bg-mesh .blob:nth-child(1) {
  background: radial-gradient(circle, rgba(212, 135, 58, 0.25) 0%, transparent 70%);
}
[data-theme="dark"] .bg-mesh .blob:nth-child(2) {
  background: radial-gradient(circle, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
}
[data-theme="dark"] .bg-mesh .blob:nth-child(3) {
  background: radial-gradient(circle, rgba(212, 135, 58, 0.14) 0%, transparent 70%);
}
[data-theme="dark"] .bg-mesh .blob:nth-child(4) {
  background: radial-gradient(circle, rgba(212, 135, 58, 0.1) 0%, transparent 70%);
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  border-bottom: 0.5px solid var(--glass-border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2H13.5a.5.5 0 0 1 .5.5V7L8.5 13.5a1 1 0 0 1-1.4 0l-4.6-4.6a1 1 0 0 1 0-1.4L8 2z'/%3E%3Ccircle cx='11.5' cy='4.5' r='1' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.logo-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 135, 58, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent);
  border: 0.5px solid rgba(212, 135, 58, 0.2);
  padding: 2px 10px 2px 8px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(212, 135, 58, 0.08), 0 0 0 1px rgba(212, 135, 58, 0.03) inset;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.8;
}
nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.theme-toggle:hover {
  background: var(--accent-pale);
  border-color: rgba(212, 135, 58, 0.4);
  color: var(--accent);
}
.icon-moon,
.icon-sun {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  will-change: transform, opacity;
}
.icon-moon { transform: translate(0, 0); opacity: 1; }
.icon-sun { transform: translate(180%, 0); opacity: 0; }
[data-theme="dark"] .icon-sun { transform: translate(0, 0); opacity: 1; }
[data-theme="dark"] .icon-moon { transform: translate(-180%, 0); opacity: 0; }
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.glass-card {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem 1.75rem;
}
.glass-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.glass-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.glass-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.glass-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.glass-sub {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 300;
}
@media (max-width: 480px) {
  header { padding: 0 1rem; }
  .logo-badge { display: none; }
  main { padding: 1rem; }
  .glass-card { padding: 1.5rem 1.25rem; border-radius: var(--r-md); }
  .glass-icon { width: 56px; height: 56px; }
}
