:root {
  --bg: #050508;
  --bg-alt: #0d0f12;
  --bg-card: #0f172a;
  --text: #f9fafb;
  --text-soft: #cbd5f5;
  --accent: #28dba8;
  --accent-soft: #1fb885;
  --accent-blue: #0066ff;
  --border-subtle: rgba(148, 163, 184, 0.5);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 8, 0.9),
    rgba(5, 5, 8, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #52e0cf 0, #1fb885 45%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #041316;
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.lang-btn.active {
  color: var(--accent);
  background: rgba(40, 219, 168, 0.15);
}

.lang-separator {
  color: var(--text-soft);
  opacity: 0.5;
  font-size: 0.8rem;
}

.lang-btn.pro-active,
#proActivateBtn.pro-active {
  color: var(--accent);
  background: rgba(40, 219, 168, 0.15);
}

/* BUTTONS */

.btn {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #03120f;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 12px 30px rgba(40, 219, 168, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 40px rgba(40, 219, 168, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(40, 219, 168, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.9);
}

/* HERO */

.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: radial-gradient(circle at top, #10223f 0, #050508 55%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--text-soft);
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 80%);
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card-title {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}

.hero-card-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.hero-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.hero-tag-accent {
  background: rgba(40, 219, 168, 0.18);
  color: var(--accent);
}

.hero-card-main {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.hero-card-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: auto;
}

.hero-stars {
  letter-spacing: 0.06em;
}

.hero-rating {
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  inset: 25% -15%;
  background: radial-gradient(circle at 30% 0, rgba(40, 219, 168, 0.25), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(0, 102, 255, 0.22), transparent 62%);
  filter: blur(10px);
}

/* SECTIONS */

.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #050508 55%);
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 2.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  max-width: 34rem;
  font-size: 0.95rem;
}

.section-update-note {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.4rem;
  background: rgba(40, 219, 168, 0.1);
  border: 1px solid rgba(40, 219, 168, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  align-self: center;
  box-shadow: 0 4px 12px rgba(40, 219, 168, 0.1);
  animation: subtlePulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.section-update-note:hover {
  background: rgba(40, 219, 168, 0.15);
  border-color: rgba(40, 219, 168, 0.4);
  transform: translateY(-1px);
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(40, 219, 168, 0.1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(40, 219, 168, 0.2);
  }
}

/* HOW IT WORKS */

.steps {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.55);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(40, 219, 168, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* DISCOVER */

.discover-controls {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  background: #020617;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  gap: 0.6rem;
}

.search-icon {
  font-size: 1rem;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-start;
}

#resetFilters {
  margin-left: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.filters select {
  background: #020617;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  cursor: pointer;
  background: rgba(15, 23, 42, 0.7);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.08s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.chip.active {
  background: rgba(40, 219, 168, 0.2);
  color: var(--accent);
  border-color: rgba(40, 219, 168, 0.9);
}

/* TOOL GRID */

.toolbar {
  max-width: 1120px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  gap: 1rem;
}

.sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sort-wrapper select {
  background: #020617;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}

.tool-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.95);
  border-color: rgba(40, 219, 168, 0.55);
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  position: relative;
}

.tool-favorite-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-favorite-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.tool-favorite-btn.favorited {
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.tool-name {
  font-weight: 600;
  font-size: 0.97rem;
}

.tool-category {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.tool-description {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.tag-accent {
  background: rgba(40, 219, 168, 0.17);
  color: var(--accent);
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  gap: 0.5rem;
}

.tool-price {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.tool-rating {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.tool-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

/* EMPTY STATE */

.empty-state {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-soft);
}

/* TOPLISTS */

.toplist-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.toplist-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toplist-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.toplist-card p {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* VALUE GRID */

.value-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.value-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.value-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.value-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* PRO */

.pro-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(40, 219, 168, 0.17), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 102, 255, 0.25), transparent 60%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

.pro-inner h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.pro-inner p {
  color: var(--text-soft);
  max-width: 32rem;
  font-size: 0.95rem;
}

.pro-list {
  list-style: none;
  padding: 0.6rem 0 1.2rem;
  margin: 0;
}

.pro-list li {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 2.2rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 26rem;
}

.footer-copy {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.footer-columns {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-columns h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-columns a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.footer-columns a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
}

/* MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  background: #020617;
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.3rem;
  max-width: 640px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.modal-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #52e0cf 0, #1fb885 45%, #0f172a 100%);
}

.modal-category {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.modal-columns {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.86rem;
}

.modal-columns h4 {
  margin: 0 0 0.4rem;
}

.modal-columns p {
  margin: 0;
  color: var(--text-soft);
}

.modal-columns ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.modal-footer {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.modal-rating {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* PAYWALL */
.paywall-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.paywall-backdrop[hidden] {
  display: none !important;
}

.paywall-modal {
  background: #020617;
  border-radius: 24px;
  padding: 2rem 2.5rem 2.2rem;
  max-width: 520px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
  position: relative;
}

.paywall-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.paywall-close:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.paywall-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.paywall-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.paywall-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.paywall-features li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 0;
}

.paywall-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.paywall-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* FULL PAYWALL PAGE */
.paywall-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.paywall-page[hidden] {
  display: none !important;
}

.paywall-page-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.paywall-page .paywall-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 1001;
}

.paywall-page .paywall-close:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
}

.paywall-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.paywall-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.paywall-hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paywall-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 0;
}

.paywall-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.paywall-feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.paywall-feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(40, 219, 168, 0.1);
}

.paywall-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(40, 219, 168, 0.15);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
}

.paywall-feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.paywall-feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.paywall-pricing {
  margin-bottom: 3rem;
}

.paywall-pricing-card {
  background: linear-gradient(135deg, rgba(40, 219, 168, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paywall-pricing-card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.paywall-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.paywall-price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}

.paywall-price-period {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.paywall-pricing-desc {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.paywall-pricing-card .btn-large {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.paywall-back-link {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.paywall-back-link:hover {
  color: var(--text);
}

/* Responsive Paywall Page */
@media (max-width: 768px) {
  .paywall-hero h1 {
    font-size: 2rem;
  }
  
  .paywall-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .paywall-pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .paywall-price-amount {
    font-size: 2.5rem;
  }
}

/* SHOW MORE BUTTON */
.show-more-container {
  max-width: 1120px;
  margin: 2rem auto;
  text-align: center;
}

/* PRO UPGRADE MESSAGE */
.pro-upgrade-message {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  text-align: center;
  padding: 1.2rem;
  background: rgba(40, 219, 168, 0.1);
  border: 1px solid rgba(40, 219, 168, 0.3);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-upgrade-message:hover {
  background: rgba(40, 219, 168, 0.15);
  border-color: rgba(40, 219, 168, 0.5);
}

.pro-upgrade-message p {
  margin: 0;
}

.pro-upgrade-message[hidden] {
  display: none !important;
}

/* PRO LOCKED MESSAGE */
.pro-locked-message {
  max-width: 1120px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pro-locked-message p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.pro-locked-message .btn {
  margin-top: 0.5rem;
}

.pro-locked-message[hidden] {
  display: none !important;
}

/* SEARCH LIMIT MESSAGE */
.search-limit-message {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
}

.search-limit-message[hidden] {
  display: none !important;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toplist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-inner {
    padding-inline: 1rem;
  }
}

@media (max-width: 680px) {
  /* Navigation improvements for mobile */
  .nav {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }

  .nav-inner {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .language-switcher {
    margin-right: 0.25rem;
  }

  .btn-ghost.small {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  /* Hero improvements for mobile */
  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-inner {
    gap: 1.8rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 1.5rem;
    gap: 0.65rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    justify-content: center;
  }

  .hero-meta {
    margin-top: 1.2rem;
    gap: 0.4rem;
  }

  .pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .hero-card {
    max-width: 100%;
    padding: 1.2rem 1rem;
    aspect-ratio: 4 / 5;
  }

  /* Section improvements */
  .section {
    padding: 2.5rem 1rem;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Filters and controls */
  .discover-controls {
    margin-bottom: 1.2rem;
  }

  .search-box {
    padding: 0.65rem 1rem;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-group {
    width: 100%;
  }

  .filters select {
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }

  .chip-row {
    gap: 0.35rem;
  }

  .chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }

  #resetFilters {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  /* Toolbar and grid */
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .tool-card {
    padding: 1rem 0.9rem;
  }

  .tool-name {
    font-size: 0.95rem;
  }

  .tool-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Steps and cards */
  .step-card {
    padding: 1.2rem 1rem;
  }

  .step-card h3 {
    font-size: 0.95rem;
  }

  .step-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Toplist and value grids */
  .toplist-grid,
  .value-grid,
  .footer-columns,
  .modal-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .tool-card,
  .toplist-card,
  .value-card,
  .paywall-feature-card,
  .paywall-pricing-card {
    min-height: clamp(260px, 70vw, 380px);
  }

  /* Pro section */
  .pro-inner {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .pro-inner h2 {
    font-size: 1.5rem;
  }

  .pro-inner p {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-copy {
    font-size: 0.85rem;
  }

  .footer-columns {
    margin-top: 1.5rem;
  }

  /* Buttons - better touch targets */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .btn.small {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  /* Modal improvements */
  .modal {
    max-width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1.3rem 1.2rem;
    border-radius: 16px;
  }

  .modal-header {
    gap: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .modal-close {
    top: 0.4rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .modal-columns {
    margin-top: 0.8rem;
    gap: 0.8rem;
  }

  /* Paywall improvements */
  .paywall-page {
    padding: 1rem 0.5rem;
  }

  .paywall-page .paywall-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .paywall-hero {
    margin-bottom: 2rem;
  }

  .paywall-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .paywall-hero-subtitle {
    font-size: 1rem;
  }

  .paywall-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .paywall-feature-card {
    padding: 1.2rem 1rem;
  }

  .paywall-feature-card h3 {
    font-size: 1rem;
  }

  .paywall-feature-card p {
    font-size: 0.85rem;
  }

  .paywall-pricing-card {
    padding: 1.8rem 1.2rem;
  }

  .paywall-price-amount {
    font-size: 2.25rem;
  }

  .paywall-price-period {
    font-size: 1rem;
  }

  .paywall-pricing-card .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Empty state */
  .empty-state {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }

  /* Pro upgrade message */
  .pro-upgrade-message {
    margin: 1rem auto 0;
    padding: 1rem;
    font-size: 0.85rem;
  }

  /* Pro locked message */
  .pro-locked-message {
    padding: 1.5rem 1rem;
    gap: 0.8rem;
  }

  .pro-locked-message p {
    font-size: 0.9rem;
  }

  /* Show more button */
  .show-more-container {
    margin: 1.5rem auto;
  }

  .btn.large {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* AUTH MODAL */
.auth-modal {
  max-width: 480px;
  padding: 2rem 1.8rem;
}

.auth-container {
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-social:hover {
  background: var(--bg-alt);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-social:active {
  transform: translateY(0);
}

.btn-social svg {
  flex-shrink: 0;
}

.btn-google {
  background: var(--bg-card);
}

.btn-google:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.4);
}

.btn-github {
  background: var(--bg-card);
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-microsoft {
  background: var(--bg-card);
}

.btn-microsoft:hover {
  background: rgba(0, 164, 239, 0.1);
  border-color: rgba(0, 164, 239, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-form {
  width: 100%;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(40, 219, 168, 0.1);
}

.form-group input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-error {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s ease;
}

.auth-error[hidden] {
  display: none !important;
}

/* Success message styling - glowing green/teal effect */
.auth-error.success {
  background: rgba(40, 219, 168, 0.15);
  border: 1px solid rgba(40, 219, 168, 0.5);
  color: var(--accent);
  text-shadow: 0 0 10px rgba(40, 219, 168, 0.5),
               0 0 20px rgba(40, 219, 168, 0.3),
               0 0 30px rgba(40, 219, 168, 0.2);
  box-shadow: 0 0 20px rgba(40, 219, 168, 0.2),
              inset 0 0 20px rgba(40, 219, 168, 0.1);
  animation: glowPulse 2s ease-in-out infinite;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(40, 219, 168, 0.5),
                 0 0 20px rgba(40, 219, 168, 0.3),
                 0 0 30px rgba(40, 219, 168, 0.2);
    box-shadow: 0 0 20px rgba(40, 219, 168, 0.2),
                inset 0 0 20px rgba(40, 219, 168, 0.1);
  }
  50% {
    text-shadow: 0 0 15px rgba(40, 219, 168, 0.7),
                 0 0 30px rgba(40, 219, 168, 0.5),
                 0 0 45px rgba(40, 219, 168, 0.3);
    box-shadow: 0 0 30px rgba(40, 219, 168, 0.3),
                inset 0 0 25px rgba(40, 219, 168, 0.15);
  }
}

/* Responsive Auth Modal */
@media (max-width: 640px) {
  .auth-modal {
    max-width: 100%;
    margin: 1rem;
    padding: 1.5rem 1.3rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-social {
    gap: 0.6rem;
  }

  .btn-social {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}