:root {
  --accent: #10B981;
  --accent-deep: #059669;
  --accent-light: rgba(16, 185, 129, .1);
  --text: #F3F4F6;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --surface: #15151A;
  --bg: #0D0D11;
  --border: rgba(255, 255, 255, .06);
  --danger: #EF4444;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}

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

.btn-primary {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  transition: background .2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
  padding: 13px 8px;
}

.btn-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.hot-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #FF6B35;
  background: rgba(255, 107, 53, .1);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
  animation: pulse-hot 2s ease-in-out infinite;
}

@keyframes pulse-hot {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(13, 13, 17, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: .3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s, background .2s;
  letter-spacing: .3px;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(16, 185, 129, .08);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(16, 185, 129, .08);
}

.nav-links .nav-help {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  margin-left: auto;
}

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

.balance-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .1);
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(16, 185, 129, .22);
  transition: background .2s;
}

.balance-chip:hover {
  background: rgba(16, 185, 129, .16);
}

.buy-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  transition: background .2s;
}

.buy-btn:hover {
  background: var(--accent-deep);
}

.login-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.login-link:hover {
  color: var(--accent);
  background: rgba(16, 185, 129, .08);
}

.avatar-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.avatar-btn.show {
  display: flex;
}

@media (max-width: 880px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 0;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 0;
  }
  .nav-links .nav-help {
    display: block;
    border-top: 1px solid rgba(0, 0, 0, .06);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--text-2);
  }
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, .15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero .sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 16px;
}

.social-proof {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 48px;
}

.social-proof b {
  color: var(--text);
  font-weight: 600;
}

.stars {
  color: #F59E0B;
  letter-spacing: 2px;
  font-size: 15px;
}

.showcase {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 40px;
  animation: fadeUp .6s ease both;
}

.showcase .ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.showcase .ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.showcase .ba .before {
  position: absolute;
  inset: 0;
}

.showcase .ba .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.showcase .ba .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #15151A;
  transform: translateX(-1px);
}

.showcase .ba .tag {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .6);
  color: #fff;
}

.showcase .ba .tag.l {
  left: 12px;
}

.showcase .ba .tag.r {
  right: 12px;
}

.showcase .ba .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(0deg, rgba(255, 255, 255, .6), transparent);
  color: #fff;
}

.showcase-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 16px;
}

.tools {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.tools h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.3px;
}

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

@media (max-width: 760px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 22px 20px;
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  animation: fadeUp .5s ease both;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.tool-card:nth-child(1) { animation-delay: .1s; }
.tool-card:nth-child(2) { animation-delay: .2s; }
.tool-card:nth-child(3) { animation-delay: .3s; }

.tool-card:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, .1);
  border-color: rgba(16, 185, 129, .3);
  transform: translateY(-4px);
}

.tool-card .emoji {
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform .3s ease;
}

.tool-card:hover .emoji {
  transform: scale(1.25);
}

.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.tool-card .price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
}

.tool-card .arrow {
  font-size: 14px;
  color: var(--text-2);
  opacity: 0.6;
  margin-top: 10px;
  font-weight: 500;
  transition: transform .3s ease;
}

.tool-card:hover .arrow {
  transform: translateX(4px);
}

.tool-card.active .arrow {
  color: var(--accent);
  font-weight: 700;
}

.pricing-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.pricing-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.pricing-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.price-compare {
  text-align: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-2);
}

.pc-old {
  text-decoration: line-through;
  color: var(--text-3);
  margin-right: 8px;
}

.pc-arrow {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.pc-new {
  color: var(--text);
}

.pc-new strong {
  color: var(--accent);
  font-size: 17px;
}

.free-credits {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.free-credits > div {
  background: rgba(16, 185, 129, .06);
  border: 1px solid rgba(16, 185, 129, .15);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  min-width: 110px;
}

.free-credits > div > div:first-child {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.free-credits > div > div:nth-child(2) {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.free-credits > div > div:last-child {
  font-size: 10px;
  color: var(--text-2);
}

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

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(16, 185, 129, .15);
  background: #F0FDF4;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.price-card .pc-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px;
}

.price-row:last-of-type {
  border-bottom: none;
}

.price-row .pr-name {
  color: var(--text-2);
}

.price-row .pr-val {
  font-weight: 600;
  color: var(--text);
}

.price-row .pr-val.free {
  color: var(--accent);
}

.price-card .pc-cta {
  margin-top: 18px;
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transition: background .2s;
}

.price-card .pc-cta:hover {
  background: var(--accent-deep);
}

.site-footer {
  padding: 46px 24px 36px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .06);
  margin-top: 56px;
  background: #FFFFFF;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}

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

.footer-promise {
  font-size: 12.5px;
  color: rgba(16, 185, 129, .8);
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.footer-icp {
  font-size: 10px;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: .3px;
}

.footer-icp:hover {
  color: var(--text-2);
}

.trust-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6B7280;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.login-overlay.show {
  display: flex;
}

.login-modal {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  border: 1px solid rgba(0, 0, 0, .08);
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, .3);
  line-height: 1;
  transition: color .2s;
}

.login-modal-close:hover {
  color: rgba(0, 0, 0, .6);
}

.login-modal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.login-modal-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.login-tabs {
  display: flex;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: .2s;
  font-family: inherit;
}

.login-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.login-tab:hover {
  color: #9CA3AF;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  width: 100%;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #F9FAFB;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-field input:focus {
  border-color: rgba(16, 185, 129, .4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}

.auth-field input::placeholder {
  color: #9CA3AF;
}

.login-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  font-family: inherit;
  margin-top: 4px;
}

.login-submit-btn:hover {
  background: var(--accent-deep);
}

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

.login-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.login-note {
  font-size: 11px;
  color: #4B5563;
  text-align: center;
  margin-top: 14px;
}

.login-note a {
  color: #6B7280;
  text-decoration: none;
}

.login-note a:hover {
  color: var(--accent);
}

.register-method-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 10px;
}

.rm-tab {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: .2s;
  font-family: inherit;
}

.rm-tab.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.rm-tab:hover:not(.active) {
  color: #9CA3AF;
}

.auth-error {
  color: #EF4444;
  font-size: 12px;
  text-align: center;
  min-height: 16px;
}

.avatar-dropdown {
  position: fixed;
  top: 56px;
  right: 22px;
  display: none;
  z-index: 200;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  border: 1px solid rgba(0, 0, 0, .08);
  min-width: 160px;
}

.avatar-dropdown.show {
  display: block;
}

.avatar-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s;
}

.avatar-dropdown a:hover {
  background: rgba(0, 0, 0, .05);
}

.dd-balance {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-2);
}

.dd-divider {
  height: 1px;
  background: rgba(0, 0, 0, .06);
  margin: 4px 0;
}

.dd-danger {
  color: #e53e3e !important;
}

.dd-user-info {
  padding: 8px 16px 10px;
  font-size: 12px;
  color: #6B7280;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  margin-bottom: 4px;
}

.dd-user-info strong {
  color: var(--text);
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.payment-info {
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 16px;
  padding-bottom: 8px;
}

@media (max-width: 880px) {
  .hero {
    padding: 60px 20px 32px;
  }
  .hero h1 {
    font-size: clamp(28px, 6vw, 36px);
  }
  .hero .sub {
    font-size: 15px;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 15px 20px;
  }
  .hero-cta {
    gap: 8px;
  }
  .hero-trust {
    font-size: 11px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .footer-links {
    gap: 14px;
  }
}

.nav-links { display: flex !important; }

/* === Toast === */
.tmt-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e2e;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  pointer-events: none;
  white-space: nowrap;
}
.tmt-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}
.tmt-toast.error {
  background: #dc2626;
}
.tmt-toast.success {
  background: #10B981;
}
