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

:root {
  color-scheme: dark;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;

  --bg-base: #100a0a;
  --card-bg-start: rgba(28, 18, 20, 0.85);
  --card-bg-end: rgba(16, 10, 11, 0.95);
  --panel-bg: linear-gradient(165deg, var(--card-bg-start), var(--card-bg-end));

  --emerald-400: #e9b72c;
  --cyan-400: #fadb5f;
  --sky-400: #9c1f2e;

  --slate-50: #fcf9f2;
  --slate-100: #fcf9f2;
  --slate-300: #e3dbcc;
  --slate-400: #cfc4b6;
  --slate-500: #8c7f6b;
  --slate-600: #5c5243;
  --border-light: rgba(233, 183, 44, 0.15);

  --warning: #e9b72c;
  --danger: #9c1f2e;

  --header-surface-bg: rgba(0, 0, 0, 0.2);
  --header-surface-border: rgba(233, 183, 44, 0.16);
  --header-item-hover-bg: rgba(255, 255, 255, 0.06);
  --header-item-hover-border: rgba(233, 183, 44, 0.35);
  --header-item-active-bg: rgba(233, 183, 44, 0.1);
  --header-item-active-border: rgba(233, 183, 44, 0.38);
  --header-item-active-text: var(--emerald-400);
  --header-offset: 64px;
  --viewport-height: 100dvh;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-base: #efe4d2;
  --card-bg-start: rgba(255, 252, 246, 0.98);
  --card-bg-end: rgba(249, 239, 223, 0.96);
  --panel-bg: linear-gradient(165deg, var(--card-bg-start), var(--card-bg-end));

  --slate-50: #1d1611;
  --slate-100: #1d1611;
  --slate-300: #3b3026;
  --slate-400: #5f4d3d;
  --slate-500: #816c58;
  --slate-600: #9a836d;
  --border-light: rgba(150, 108, 32, 0.22);

  --header-surface-bg: rgba(255, 251, 245, 0.96);
  --header-surface-border: rgba(150, 108, 32, 0.32);
  --header-item-hover-bg: rgba(233, 183, 44, 0.22);
  --header-item-hover-border: rgba(150, 108, 32, 0.45);
  --header-item-active-bg: rgba(233, 183, 44, 0.32);
  --header-item-active-border: rgba(150, 108, 32, 0.5);
  --header-item-active-text: #6a480f;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--slate-100);
  min-height: var(--viewport-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.full-view-mode {
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

body.pricing-view-mode {
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(156, 31, 46, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(233, 183, 44, 0.15) 0%, transparent 45%);
}

:root[data-theme="light"] .bg-layer {
  background: radial-gradient(circle at 15% 20%, rgba(156, 31, 46, 0.16) 0%, transparent 46%),
    radial-gradient(circle at 85% 80%, rgba(233, 183, 44, 0.22) 0%, transparent 48%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
}

.app-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 16px;
  perspective: 1000px;
}

.card-outer {
  position: relative;
  border-radius: 28px;
  padding: 1px;
  background: conic-gradient(from var(--border-angle, 0deg),
      transparent 20%,
      rgba(156, 31, 46, 0.4) 35%,
      rgba(233, 183, 44, 0.5) 50%,
      rgba(255, 255, 255, 0.15) 65%,
      transparent 80%);
  animation: rotateBorder 12s linear infinite;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-outer:hover {
  transform: translateY(-2px);
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to {
    --border-angle: 360deg;
  }
}

.card-inner {
  background: linear-gradient(165deg,
      var(--card-bg-start) 0%,
      var(--card-bg-end) 100%);
  backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 27px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 10%,
      rgba(233, 183, 44, 0.15) 50%,
      transparent 90%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.card-outer:hover .logo-icon {
  transform: scale(1.05);
}

.logo-icon img {
  width: 145%;
  height: 145%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, var(--slate-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(156, 31, 46, 0.15);
  border: 1px solid rgba(233, 183, 44, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(156, 31, 46, 0.15);
}

.badge-live:hover {
  background: rgba(156, 31, 46, 0.25);
  box-shadow: 0 0 15px rgba(233, 183, 44, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(233, 183, 44, 0.4);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 4px rgba(233, 183, 44, 0);
  }
}

.input-section {
  margin-bottom: 24px;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.secret-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(233, 183, 44, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--slate-100);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secret-input::placeholder {
  color: var(--slate-500);
}

.secret-input:focus {
  border-color: rgba(233, 183, 44, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(233, 183, 44, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submit-btn {
  flex-shrink: 0;
  width: 52px;
  border-radius: 14px;
  border: 1px solid rgba(233, 183, 44, 0.25);
  background: linear-gradient(135deg, rgba(156, 31, 46, 0.2), rgba(233, 183, 44, 0.15));
  color: var(--emerald-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(156, 31, 46, 0.35), rgba(233, 183, 44, 0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  border-color: rgba(233, 183, 44, 0.5);
  box-shadow: 0 0 15px rgba(233, 183, 44, 0.2);
  transform: translateY(-1px);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover svg {
  transform: translateX(2px);
  color: #fff;
}

.submit-btn:active {
  transform: scale(0.95);
}

.otp-section {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.otp-container {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.otp-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0;
}

.otp-digit {
  width: 56px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(35, 20, 22, 0.8), rgba(20, 15, 16, 0.9));
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-100);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.otp-digit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 15px 15px 0 0;
}

.otp-digit.pop {
  animation: digitPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes digitPop {
  0% {
    transform: scale(0.65) translateY(10px);
    opacity: 0.5;
    color: var(--emerald-400);
  }

  50% {
    transform: scale(1.05) translateY(-3px);
    color: var(--slate-100);
    text-shadow: 0 0 15px rgba(233, 183, 44, 0.4);
    border-color: rgba(233, 183, 44, 0.4);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.otp-digit-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
}

.otp-digit-sep::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-500);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.otp-container:hover .otp-digit {
  border-color: rgba(233, 183, 44, 0.4);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(156, 31, 46, 0.15);
  transform: translateY(-2px);
}

.otp-container:hover .otp-digit:nth-child(1) {
  transition-delay: 0.00s;
}

.otp-container:hover .otp-digit:nth-child(2) {
  transition-delay: 0.02s;
}

.otp-container:hover .otp-digit:nth-child(3) {
  transition-delay: 0.04s;
}

.otp-container:hover .otp-digit:nth-child(5) {
  transition-delay: 0.06s;
}

.otp-container:hover .otp-digit:nth-child(6) {
  transition-delay: 0.08s;
}

.otp-container:hover .otp-digit:nth-child(7) {
  transition-delay: 0.10s;
}

.copy-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(156, 31, 46, 0.9);
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(156, 31, 46, 0.4);
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.copy-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--slate-500);
  padding-bottom: 6px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.copy-hint.visible {
  opacity: 1;
}

.ring-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.ring-svg {
  transform: rotate(-90deg);
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 6px rgba(233, 183, 44, 0.2));
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.5;
}

.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-100);
}

.progress-track {
  margin-top: 10px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--cyan-400));
  background-size: 200% 100%;
  transition: width 0.1s linear, background 0.3s ease;
  width: 0%;
}

.state-warning .otp-digit {
  border-color: rgba(233, 183, 44, 0.6);
  color: var(--warning);
  text-shadow: 0 0 12px rgba(233, 183, 44, 0.3);
}

.state-warning .ring-fg {
  stroke: var(--warning);
  filter: drop-shadow(0 0 8px rgba(233, 183, 44, 0.4));
}

.state-warning .progress-fill {
  background: linear-gradient(90deg, var(--danger), var(--warning));
}

.state-danger .otp-digit {
  border-color: rgba(156, 31, 46, 0.6);
  color: var(--danger);
  text-shadow: 0 0 12px rgba(156, 31, 46, 0.4);
  animation: shakeDanger 0.6s ease-in-out infinite alternate;
}

@keyframes shakeDanger {
  0% {
    transform: translateX(0);
    box-shadow: 0 0 0 rgba(156, 31, 46, 0.2);
  }

  50% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(1px);
    box-shadow: 0 0 10px rgba(156, 31, 46, 0.3);
  }
}

.state-danger .ring-fg {
  stroke: var(--danger);
  filter: drop-shadow(0 0 8px rgba(156, 31, 46, 0.5));
}

.state-danger .progress-fill {
  background: var(--danger);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(16, 10, 11, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 183, 44, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px clamp(8px, 1vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--slate-100);
}

.site-logo span {
  background: linear-gradient(135deg, #ffffff, var(--slate-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(233, 183, 44, 0.3));
}

.menu-container {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--header-surface-border);
  border-radius: 10px;
  background: var(--header-surface-bg);
  color: var(--slate-100);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--slate-100);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-toggle:hover {
  color: var(--emerald-400);
  background: rgba(233, 183, 44, 0.1);
}

.site-nav {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  background: var(--header-surface-bg);
  border: 1px solid var(--header-surface-border);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  z-index: 1;
}

.site-nav.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-link {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 36px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--slate-100);
  border-color: var(--header-item-hover-border);
  background: var(--header-item-hover-bg);
}

.nav-link.active {
  color: var(--header-item-active-text);
  border-color: var(--header-item-active-border);
  background: var(--header-item-active-bg);
  font-weight: 600;
}

.theme-toggle-btn:hover {
  border-color: var(--header-item-hover-border);
  background: var(--header-item-hover-bg);
}

:root[data-theme="light"] .noise {
  opacity: 0.012;
}

:root[data-theme="light"] .site-header {
  background: rgba(246, 236, 222, 0.84);
  border-bottom-color: rgba(150, 108, 32, 0.2);
  box-shadow: 0 4px 24px rgba(78, 52, 21, 0.12);
}

:root[data-theme="light"] .card-outer {
  animation: none;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 46px -16px rgba(86, 55, 20, 0.36);
}

:root[data-theme="light"] .card-outer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
      transparent 20%,
      rgba(156, 31, 46, 0.38) 35%,
      rgba(233, 183, 44, 0.5) 50%,
      rgba(255, 255, 255, 0.16) 65%,
      transparent 80%);
  transform: translateZ(0);
  transform-origin: center;
  animation: lightBorderSpin 16s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="light"] .card-inner {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  border: 1px solid rgba(150, 108, 32, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(86, 55, 20, 0.14);
}

:root[data-theme="light"] .badge-live {
  background: rgba(233, 183, 44, 0.2);
  border-color: rgba(150, 108, 32, 0.34);
  color: #7a5516;
  box-shadow: 0 4px 14px rgba(120, 80, 24, 0.14);
}

:root[data-theme="light"] .site-logo span,
:root[data-theme="light"] .app-title {
  background: linear-gradient(135deg, #2d2217, #5f4d3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root[data-theme="light"] .nav-link.active {
  color: var(--header-item-active-text);
  border-color: rgba(150, 108, 32, 0.38);
  background: linear-gradient(110deg,
      rgba(233, 183, 44, 0.2) 0%,
      rgba(255, 247, 215, 0.9) 42%,
      rgba(255, 255, 255, 0.96) 50%,
      rgba(255, 247, 215, 0.9) 58%,
      rgba(233, 183, 44, 0.2) 100%);
  background-size: 180% 100%;
  animation: none;
}

:root[data-theme="light"] .nav-link.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg,
      transparent 34%,
      rgba(255, 255, 255, 0.72) 50%,
      transparent 66%);
  transform: translate3d(-140%, 0, 0);
  animation: lightTabSweep 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform;
  pointer-events: none;
}

:root[data-theme="light"] .site-nav,
:root[data-theme="light"] .theme-toggle-btn {
  box-shadow: 0 5px 14px rgba(90, 58, 21, 0.12);
}

@keyframes lightBorderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes lightTabSweep {
  from {
    transform: translate3d(-140%, 0, 0);
  }

  to {
    transform: translate3d(140%, 0, 0);
  }
}

@media (max-width: 768px) {
  :root[data-theme="light"] .card-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

:root[data-theme="light"] .otp-section:not(.state-warning):not(.state-danger) .otp-digit {
  color: #fff4e3;
  border-color: rgba(150, 108, 32, 0.28);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.08),
    0 7px 14px rgba(0, 0, 0, 0.34);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .otp-digit::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent);
}

:root[data-theme="light"] .otp-digit-sep::before {
  background: rgba(79, 58, 35, 0.62);
}

:root[data-theme="light"] .secret-input,
:root[data-theme="light"] .mail-textarea,
:root[data-theme="light"] .contact-item,
:root[data-theme="light"] .outlook-list-item,
:root[data-theme="light"] .outlook-item-icon,
:root[data-theme="light"] .outlook-item-code,
:root[data-theme="light"] .pricing-logo-box,
:root[data-theme="light"] .pricing-cycle,
:root[data-theme="light"] .pricing-chip,
:root[data-theme="light"] .pricing-tier-badge,
:root[data-theme="light"] .pricing-detail-item,
:root[data-theme="light"] .pricing-detail-body,
:root[data-theme="light"] .welcome-group-btn,
:root[data-theme="light"] .mail-detail-body {
  background: rgba(255, 252, 247, 0.98);
  border-color: rgba(150, 108, 32, 0.28);
  box-shadow: 0 6px 16px rgba(90, 58, 21, 0.1);
}

:root[data-theme="light"] .pricing-card[data-product="kling"] .pricing-logo-image {
  filter: brightness(0) saturate(100%) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

:root[data-theme="light"] .secret-input,
:root[data-theme="light"] .mail-textarea {
  color: #2a2016;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 2px 9px rgba(90, 58, 21, 0.08);
}

:root[data-theme="light"] .secret-input:focus,
:root[data-theme="light"] .mail-textarea:focus {
  background: #fffefb;
  border-color: rgba(150, 108, 32, 0.44);
  box-shadow: 0 0 0 3px rgba(233, 183, 44, 0.2),
    0 10px 18px rgba(90, 58, 21, 0.15);
}

:root[data-theme="light"] .submit-btn,
:root[data-theme="light"] .mail-refresh-btn,
:root[data-theme="light"] .pricing-readmore,
:root[data-theme="light"] .pricing-detail-contact,
:root[data-theme="light"] .btn-close-modal,
:root[data-theme="light"] .mail-detail-close-btn {
  background: linear-gradient(145deg, rgba(255, 241, 214, 0.96), rgba(245, 221, 176, 0.9));
  border-color: rgba(150, 108, 32, 0.38);
  color: #734f15;
  box-shadow: 0 8px 16px rgba(90, 58, 21, 0.13);
}

:root[data-theme="light"] .submit-btn::before {
  background: linear-gradient(135deg, rgba(233, 183, 44, 0.35), rgba(150, 108, 32, 0.22));
}

:root[data-theme="light"] .submit-btn:hover,
:root[data-theme="light"] .mail-refresh-btn:hover,
:root[data-theme="light"] .pricing-readmore:hover,
:root[data-theme="light"] .pricing-detail-contact:hover,
:root[data-theme="light"] .btn-close-modal:hover,
:root[data-theme="light"] .mail-detail-close-btn:hover {
  border-color: rgba(150, 108, 32, 0.52);
  box-shadow: 0 12px 22px rgba(90, 58, 21, 0.18);
}

:root[data-theme="light"] .modal-content,
:root[data-theme="light"] .mail-detail-modal,
:root[data-theme="light"] .outlook-container,
:root[data-theme="light"] .pricing-card {
  border-color: rgba(150, 108, 32, 0.3);
  box-shadow: 0 16px 34px rgba(90, 58, 21, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .pricing-card:hover {
    border-color: rgba(150, 108, 32, 0.38);
    box-shadow: 0 14px 26px rgba(90, 58, 21, 0.2);
  }
}

:root[data-theme="light"] .outlook-list-item:hover,
:root[data-theme="light"] .contact-item:hover,
:root[data-theme="light"] .welcome-group-btn:hover {
  border-color: rgba(150, 108, 32, 0.38);
  box-shadow: 0 14px 26px rgba(90, 58, 21, 0.2);
}

:root[data-theme="light"] .outlook-item-icon {
  background: rgba(245, 226, 188, 0.95);
  color: #7a5516;
}

:root[data-theme="light"] .outlook-item-code {
  background: rgba(245, 226, 188, 0.95);
  color: #7a5516;
}

:root[data-theme="light"] .outlook-item-code.copied {
  background: rgba(233, 183, 44, 0.82);
  color: #2b1f13;
}

:root[data-theme="light"] .modal-overlay {
  background: rgba(44, 30, 16, 0.3);
}

:root[data-theme="light"] .mail-detail-frame {
  background: #ffffff;
}

:root[data-theme="light"] .welcome-modal-title {
  color: #2a2016;
}

:root[data-theme="light"] .welcome-modal-title strong {
  background: linear-gradient(90deg, #a23a16, #d07a19);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 12px rgba(120, 56, 18, 0.28);
  animation: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--panel-bg);
  border: 1px solid rgba(233, 183, 44, 0.2);
  border-radius: 24px;
  padding: 32px;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--emerald-400);
  background: rgba(233, 183, 44, 0.1);
}

.modal-footer {
  display: flex;
  justify-content: center;
}

.btn-close-modal {
  width: 100%;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(233, 183, 44, 0.2);
  border-radius: 12px;
  color: var(--slate-100);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-close-modal:hover {
  background: rgba(233, 183, 44, 0.1);
  border-color: rgba(233, 183, 44, 0.4);
  color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 183, 44, 0.1);
}

.btn-close-modal:active {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--slate-100);
}

.modal-body p {
  color: var(--slate-300);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal-body {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(233, 183, 44, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate-100);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
  background: rgba(233, 183, 44, 0.1);
  border-color: rgba(233, 183, 44, 0.3);
  transform: translateX(4px);
}

.contact-item svg {
  color: var(--emerald-400);
  background: rgba(233, 183, 44, 0.1);
  padding: 8px;
  border-radius: 10px;
  box-sizing: content-box;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-item:hover svg {
  transform: scale(1.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.mail-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mail-textarea {
  width: 100%;
  resize: none;
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(233, 183, 44, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--slate-100);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mail-textarea:focus {
  border-color: rgba(233, 183, 44, 0.55);
  box-shadow: 0 0 0 2px rgba(233, 183, 44, 0.12);
}

.mail-refresh-btn {
  border: 1px solid rgba(233, 183, 44, 0.25);
  background: rgba(233, 183, 44, 0.08);
  color: var(--emerald-400);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-refresh-btn:hover:not(:disabled) {
  background: rgba(233, 183, 44, 0.2);
  border-color: rgba(233, 183, 44, 0.45);
}

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

.mail-status {
  color: var(--slate-400);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.mail-status.error {
  color: #ff8a8a;
}

/* Mobile component sizing (cards, OTP, list items, pricing cards) */
@media (max-width: 480px) {
  .modal-content {
    padding: 24px 18px;
  }

  .app-wrap {
    padding: 10px;
  }

  .card-inner {
    padding: 24px 18px;
  }

  .otp-digit {
    width: 44px;
    height: 58px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .otp-digits {
    gap: 5px;
  }

  .otp-digit-sep {
    width: 6px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .app-title {
    font-size: 1.1rem;
  }

  .mail-form {
    margin-bottom: 10px;
    gap: 6px;
  }

  .mail-form>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mail-form>div>.mail-refresh-btn {
    width: 100%;
    min-width: 0 !important;
  }

  .mail-textarea {
    min-height: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .outlook-list-container {
    margin-top: 10px;
    padding-top: 0;
  }

  .outlook-list-item {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
  }

  .outlook-item-icon {
    width: 36px;
    height: 36px;
    margin-right: 0;
    font-size: 1rem;
  }

  .outlook-item-content {
    min-width: 0;
    width: calc(100% - 44px);
  }

  .outlook-item-title-row {
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
  }

  .outlook-item-title {
    font-size: 0.92rem;
  }

  .outlook-item-subtitle {
    font-size: 0.78rem;
  }

  .outlook-item-time {
    margin-left: auto;
    padding-left: 0;
    font-size: 0.72rem;
  }

  .outlook-item-code {
    margin-left: auto;
    padding: 5px 10px;
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .pricing-title {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }

  .pricing-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .pricing-grid {
    gap: 12px;
  }

  .pricing-card {
    border-radius: 10px;
    overflow: hidden;
  }

  .pricing-card-media {
    height: 92px;
    min-height: 0;
    padding: 10px;
  }

  .pricing-chip {
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .pricing-tier-badge {
    top: 8px;
    right: 8px;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .pricing-logo-box {
    border-radius: 10px;
  }

  .pricing-logo-image {
    height: 56px;
  }

  .pricing-card:nth-child(2) .pricing-logo-image {
    transform: translateX(4px);
  }

  .pricing-card-price {
    font-size: 1rem;
  }

  .pricing-card-body {
    padding: 10px;
    gap: 8px;
  }

  .pricing-label {
    font-size: 0.76rem;
  }

  .pricing-cycle {
    font-size: 0.7rem;
    padding: 3px 7px;
  }

  .pricing-note {
    font-size: 0.78rem;
  }

  .pricing-card-actions {
    padding: 0 10px 10px;
  }

  .pricing-readmore {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    font-size: 0.8rem;
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .otp-digit {
    width: 38px;
    height: 50px;
    font-size: 1.3rem;
  }
}

::-webkit-scrollbar {
  display: none;
}

.modal-body,
.mail-textarea,
.outlook-list-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.outlook-wrap {
  width: calc(100% - 24px);
  max-width: none;
  height: min(680px, calc(var(--viewport-height) - var(--header-offset) - 16px));
  max-height: calc(var(--viewport-height) - var(--header-offset) - 16px);
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
}

body.full-view-mode .outlook-wrap {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: calc(var(--viewport-height) - var(--header-offset));
  max-height: none;
  margin: 0;
  padding: 0;
}

.outlook-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid rgba(233, 183, 44, 0.2);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(1.2);
}

body.full-view-mode .outlook-container {
  border-radius: 0;
  box-shadow: none;
}

.pricing-title {
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--slate-300);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.pricing-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  will-change: scroll-position;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.pricing-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 18vw, 220px), 1fr));
  grid-auto-rows: max-content;
  gap: 12px;
  align-items: start;
  align-content: start;
  overflow: visible;
  padding: 4px 2px 2px;
}

#viewPricing.outlook-wrap {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: min(980px, calc(100% - 24px));
  height: auto;
  max-height: none;
  margin: calc(var(--header-offset) + 12px) auto 20px;
  padding: 0;
}

#viewPricing .outlook-container {
  overflow: visible;
  min-height: 0;
}

#viewPricing .pricing-scroll {
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
  overflow: visible;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

#viewPricing .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 0 2px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: max-content;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(233, 183, 44, 0.18);
  background: var(--panel-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover {
    border-color: rgba(233, 183, 44, 0.38);
    background: rgba(233, 183, 44, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
}

.pricing-card-media {
  display: flex;
  position: relative;
  height: 120px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(156, 31, 46, 0.28), transparent 54%),
    radial-gradient(circle at 85% 80%, rgba(233, 183, 44, 0.16), transparent 56%),
    linear-gradient(145deg, rgba(30, 18, 20, 0.94), rgba(17, 11, 12, 0.98));
  touch-action: pan-y;
}

.pricing-logo-box {
  width: min(240px, 88%);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(233, 183, 44, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

:root:not([data-theme="light"]) .pricing-card[data-product="gpt"] .pricing-logo-image,
:root:not([data-theme="light"]) .pricing-card[data-product="capcut"] .pricing-logo-image,
:root:not([data-theme="light"]) .pricing-card[data-product="grok"] .pricing-logo-image {
  filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(255, 255, 255, 0.12));
}

.pricing-logo-image {
  width: auto;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  -webkit-user-drag: none;
  pointer-events: none;
}

.pricing-card:nth-child(2) .pricing-logo-image {
  transform: translateX(6px);
}

.pricing-tier-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(233, 183, 44, 0.35);
  background: rgba(0, 0, 0, 0.48);
  color: var(--slate-100);
  font-size: 0.72rem;
  font-weight: 700;
}

.pricing-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(233, 183, 44, 0.35);
  color: var(--slate-100);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pricing-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  touch-action: pan-y;
}

.pricing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pricing-label {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-cycle {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-300);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-note {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.82rem;
  font-weight: 500;
}

.pricing-card-actions {
  padding: 0 12px 12px;
  margin-top: auto;
  touch-action: pan-y;
}

.pricing-card-price {
  margin: 0;
  color: var(--emerald-400);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.pricing-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(233, 183, 44, 0.32);
  background: rgba(233, 183, 44, 0.1);
  color: var(--emerald-400);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  padding: 0 14px;
  cursor: pointer;
  outline: none;
  margin-top: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.pricing-readmore:hover {
  background: rgba(233, 183, 44, 0.18);
  border-color: rgba(233, 183, 44, 0.46);
  transform: translateY(-1px);
}

.pricing-detail-modal {
  max-width: 760px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-detail-brand {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(233, 183, 44, 0.22);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.pricing-detail-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

:root:not([data-theme="light"]) .pricing-detail-brand img[data-product="gpt"],
:root:not([data-theme="light"]) .pricing-detail-brand img[data-product="capcut"],
:root:not([data-theme="light"]) .pricing-detail-brand img[data-product="grok"] {
  filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(255, 255, 255, 0.12));
}

:root[data-theme="light"] .pricing-detail-brand img[data-product="kling"] {
  filter: brightness(0) saturate(100%) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.pricing-detail-brand img[data-product="gemini"] {
  transform: scale(1.14) translateX(8px);
  transform-origin: center;
}

.pricing-detail-main {
  min-width: 0;
}

.pricing-detail-title {
  margin: 0 0 6px;
  color: var(--slate-100);
  font-size: 1.28rem;
  font-weight: 800;
}

.pricing-detail-tagline {
  margin: 0;
  color: var(--slate-300);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-detail-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pricing-detail-item {
  padding: 10px 12px;
  border: 1px solid rgba(233, 183, 44, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-detail-item span {
  color: var(--slate-400);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-detail-item strong {
  color: var(--slate-100);
  font-size: 0.95rem;
  font-weight: 700;
}

.pricing-detail-body {
  border: 1px solid rgba(233, 183, 44, 0.16);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.24), rgba(156, 31, 46, 0.06));
  padding: 14px;
}

.pricing-detail-body h3 {
  margin: 0 0 12px;
  color: var(--slate-100);
  font-size: 0.96rem;
  font-weight: 700;
}

.pricing-detail-features {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.pricing-detail-features li {
  color: var(--slate-300);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pricing-detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.pricing-detail-contact {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(233, 183, 44, 0.32);
  background: rgba(233, 183, 44, 0.12);
  color: var(--emerald-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pricing-detail-contact:hover {
  border-color: rgba(233, 183, 44, 0.44);
  background: rgba(233, 183, 44, 0.2);
  transform: translateY(-1px);
}

/* iOS WebKit: keep pricing layout in page-flow and avoid gesture traps. */
@supports (-webkit-touch-callout: none) {
  body.pricing-view-mode {
    overflow-y: auto;
  }
}

.outlook-list-container {
  flex: 1;
  overflow-y: auto;
  margin-top: 14px;
  padding-top: 4px;
}

.outlook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outlook-list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.outlook-list-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.outlook-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(233, 183, 44, 0.15);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
}

.outlook-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.outlook-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.outlook-item-title {
  color: var(--slate-50);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlook-item-badge {
  background: rgba(92, 242, 164, 0.15);
  color: var(--emerald-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.outlook-item-subtitle {
  color: var(--slate-400);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlook-item-time {
  color: var(--slate-500);
  font-size: 0.8rem;
  padding-left: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.outlook-item-code {
  margin-left: 12px;
  padding: 6px 14px;
  background: rgba(92, 242, 164, 0.12);
  color: var(--emerald-400);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(92, 242, 164, 0.2);
  letter-spacing: 2px;
}

.outlook-item-code:hover {
  background: rgba(92, 242, 164, 0.25);
  transform: scale(1.05);
}

.outlook-item-code.copied {
  background: rgba(92, 242, 164, 0.3);
  color: #fff;
  letter-spacing: 0;
}

.outlook-list-item.selected {
  border-color: rgba(233, 183, 44, 0.6);
  background: rgba(233, 183, 44, 0.1);
}

.mail-detail-modal {
  width: min(1100px, 96vw);
  height: min(90vh, 860px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 183, 44, 0.24);
  background: var(--panel-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mail-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}

.mail-detail-head-main {
  min-width: 0;
  flex: 1;
}

.mail-detail-title {
  margin: 0;
  color: var(--slate-100);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mail-detail-meta {
  margin: 6px 0 0;
  color: var(--slate-400);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-detail-close-btn {
  width: auto;
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid rgba(233, 183, 44, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--slate-100);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-detail-close-btn:hover {
  background: rgba(233, 183, 44, 0.1);
  border-color: rgba(233, 183, 44, 0.42);
}

.mail-detail-body {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(233, 183, 44, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;
}

.mail-detail-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

@media (min-width: 481px) and (max-width: 768px) {
  .site-header-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  .site-logo {
    flex: 0 0 auto;
    gap: 8px;
  }

  .site-logo span {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }

  .site-logo img {
    width: 28px;
    height: 28px;
  }

  .menu-container {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-end;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--header-surface-border);
    background: var(--header-surface-bg);
    color: var(--slate-100);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .header-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-offset) + 6px);
    right: 10px;
    width: min(280px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(233, 183, 44, 0.22);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(24, 15, 16, 0.97), rgba(13, 8, 9, 0.98));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 120;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .outlook-wrap {
    width: calc(100% - 16px);
    height: calc(var(--viewport-height) - var(--header-offset) - 10px);
    max-height: calc(var(--viewport-height) - var(--header-offset) - 10px);
  }

  .outlook-container {
    padding: 18px;
    border-radius: 18px;
  }

  .mail-form>div {
    gap: 10px;
  }

  .mail-form>div>.mail-refresh-btn {
    min-width: 112px !important;
  }

  .mail-textarea {
    font-size: 0.82rem;
  }

  #viewPricing .pricing-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    gap: 10px;
    padding: 4px 0 2px;
  }

  .pricing-card-media {
    min-height: 0;
    height: 104px;
  }

  .pricing-logo-image {
    height: 64px;
  }

  .pricing-card:nth-child(2) .pricing-logo-image {
    transform: translateX(5px);
  }

  .pricing-tier-badge {
    top: 9px;
    right: 9px;
  }

  .pricing-card-price {
    font-size: 1.1rem;
  }

  .pricing-card-body {
    padding: 11px;
    gap: 9px;
  }

  .pricing-card-actions {
    padding: 0 11px 11px;
  }

  .pricing-readmore {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    font-size: 0.84rem;
    margin-top: 0;
  }

  .pricing-detail-head {
    align-items: flex-start;
  }

  .pricing-detail-brand {
    width: 72px;
    height: 72px;
  }

  .pricing-detail-title {
    font-size: 1.1rem;
  }

  .pricing-detail-info {
    grid-template-columns: 1fr;
  }

  .pricing-detail-actions {
    grid-template-columns: 1fr;
  }

  .mail-detail-modal {
    width: 98vw;
    height: 92vh;
    padding: 12px;
  }

  .mail-detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mail-detail-close-btn {
    align-self: flex-end;
  }
}

.modal-overlay.modal-top-drop {
  align-items: flex-start;
  padding-top: 12vh;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-top-drop .modal-content {
  opacity: 0;
  transform: translate3d(0, -34px, 0) scale(0.96);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.modal-overlay.active.modal-top-drop .modal-content {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.welcome-modal-box {
  max-width: 460px;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.welcome-modal-inner {
  padding: 32px 28px 24px;
}

.welcome-icon-container {
  color: var(--emerald-400);
  margin-bottom: 18px;
  display: inline-flex;
  background: rgba(233, 183, 44, 0.08);
  padding: 14px;
  border-radius: 50%;
  border: 1px solid rgba(233, 183, 44, 0.15);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
  will-change: transform;
}

.modal-overlay.active.modal-top-drop .welcome-icon-container {
  transform: translate3d(0, -2px, 0) scale(1.02);
  box-shadow: 0 8px 24px rgba(233, 183, 44, 0.14);
}

.welcome-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.welcome-modal-title strong {
  background: linear-gradient(90deg, #ff8a6b, #ffdb88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow:
    0 0 8px #ff8a6b,
    0 0 15px #ffdb88;
  animation: ledSoftPulse 4s ease-in-out infinite alternate;
}

@keyframes ledSoftPulse {
  from {
    text-shadow:
      0 0 6px #ff8a6b,
      0 0 12px #ffdb88;
    filter: brightness(1);
  }

  to {
    text-shadow:
      0 0 14px #ff8a6b,
      0 0 24px #ffdb88;
    filter: brightness(1.15);
  }
}

.welcome-modal-text {
  margin: 10px;
  font-size: 15.5px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(90deg,
      #ff6b6b,
      #ff9f43,
      #feca57,
      #48dbfb,
      #1dd1a1,
      #5f27cd,
      #ff6b6b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowLight 6s ease infinite;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 107, 107, 0.3);
}

@keyframes rainbowLight {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.welcome-hide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--slate-300);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}

.welcome-hide-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--emerald-400);
  cursor: pointer;
}

.welcome-groups {
  display: flex;
  gap: 10px;
}

.welcome-groups-row {
  justify-content: center;
}

.welcome-group-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(233, 183, 44, 0.15);
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-group-btn:hover {
  background: rgba(233, 183, 44, 0.1);
  border-color: rgba(233, 183, 44, 0.4);
  color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 183, 44, 0.1);
}

.welcome-group-btn svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {

  .modal-top-drop .modal-content,
  .welcome-icon-container {
    transition: none;
    transform: none;
  }
}

/* Mobile shell/layout behavior (header menu + full-view pricing/outlook containers) */
@media (max-width: 480px) {
  .site-header-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    padding: 8px 10px;
  }

  .site-logo {
    grid-column: 1;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }

  .site-logo span {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-container {
    grid-column: 2;
    margin-left: 0;
    width: auto;
    flex: 0 0 auto;
    position: relative;
    min-width: 0;
    justify-self: end;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--header-surface-border);
    background: var(--header-surface-bg);
    color: var(--slate-100);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-offset) + 6px);
    right: 10px;
    width: min(260px, calc(100vw - 20px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(233, 183, 44, 0.22);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(24, 15, 16, 0.97), rgba(13, 8, 9, 0.98));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 120;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .header-actions {
    grid-column: 3;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 34px;
  }

  .theme-toggle-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .outlook-wrap,
  body.full-view-mode .outlook-wrap {
    position: fixed;
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    top: var(--header-offset);
    height: calc(var(--viewport-height) - var(--header-offset));
    max-height: calc(var(--viewport-height) - var(--header-offset));
    margin: 0;
    padding: 0;
  }

  .outlook-container {
    padding: 14px;
    border-radius: 0;
  }

  #viewPricing .pricing-grid {
    grid-template-columns: 1fr;
    padding: 4px 0 2px;
  }

  #viewPricing.outlook-wrap {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% - 16px);
    height: auto;
    max-height: none;
    margin: calc(var(--header-offset) + 8px) auto 16px;
    padding: 0;
  }

  #viewPricing .outlook-container {
    overflow: visible;
    min-height: 0;
    display: block;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #viewPricing .pricing-scroll {
    overflow: visible;
    height: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
