@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #e7f3ff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-soft: #f4f9ff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-secondary: #94a3b8;
  --text-tertiary: #cbd5e1;
  --line: rgba(51, 144, 236, 0.12);

  --accent: #3390ec;
  --accent-light: rgba(51, 144, 236, 0.1);
  --accent-hover: #2980d4;
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --success-bg: rgba(236, 253, 245, 0.85);
  --success-line: #6ee7b7;

  --gold: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(51, 144, 236, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 44px rgba(51, 144, 236, 0.1);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.12);

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --max-width: 480px;
  --header-height: 64px;
  --accent-rgb: 51, 144, 236;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse at 10% -10%, rgba(79, 172, 254, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(0, 242, 254, 0.08), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(51, 144, 236, 0.06), transparent 50%);
  pointer-events: none;
}

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

/* ═══════════════ Layout Container ═══════════════ */

#main-container {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 12px 16px 120px;
  /* Increased to 120px to ensure the last card's menu is accessible */
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#results-container {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  will-change: opacity, transform;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

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

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

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

/* ═══════════════ Skeleton Loaders ═══════════════ */

.skeleton {
  background: var(--bg-soft) !important;
  background-image: linear-gradient(90deg,
      var(--bg-soft) 0%,
      var(--line) 50%,
      var(--bg-soft) 100%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite linear !important;
  border-radius: 8px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.skeleton * {
  visibility: hidden;
}

.skeleton--text {
  height: 1em;
  margin-bottom: 0.5em;
  width: 100%;
}

.skeleton--circle {
  border-radius: 50%;
}

@keyframes pulse {

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

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ═══════════════ Top Bar ═══════════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
}

.topbar__inner {
  width: min(var(--max-width), 100%);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 64px;
  /* Strong protection for side buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  /* Important for flex-shrink to work */
}

.brand>div {
  min-width: 0;
  flex-shrink: 1;
}

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(51, 144, 236, 0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  text-decoration: none;
  position: absolute;
  left: 12px;
  z-index: 2;
}

.back-btn:active {
  transform: scale(0.9);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.back-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.brand:hover .brand__icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub.is-typing {
  color: var(--accent) !important;
  font-weight: 700;
  animation: pulse 1.5s infinite ease-in-out;
}

.topbar__action,
#chat-actions {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 10px;
  position: absolute;
  right: 12px;
  z-index: 2;
}

.dots-btn-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__action:hover {
  background: var(--accent-light);
}

.topbar__action:active {
  opacity: 0.6;
  transform: scale(0.96);
}

/* ═══════════════ Hero Section ═══════════════ */

.hero {
  padding: 16px 4px 12px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.12), rgba(0, 242, 254, 0.08));
  color: var(--accent);
  border: 1px solid rgba(51, 144, 236, 0.15);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1,
h1 {
  margin: 14px 0 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

@media (max-width: 480px) {

  .hero h1,
  h1 {
    font-size: 28px;
    letter-spacing: -0.025em;
  }
}

.hero__text,
.subtitle {
  margin: 12px auto 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.hero__actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ═══════════════ Section Titles ═══════════════ */

.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 24px 0 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 16px;
  min-width: 0;
}

.section-title-row .section__title {
  margin: 0;
  min-width: 0;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-toolbar .section-title-row {
  margin: 0;
}

.section-help-btn {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(51, 144, 236, 0.18);
  background: rgba(51, 144, 236, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.section-help-btn:active {
  transform: scale(0.92);
  background: rgba(51, 144, 236, 0.16);
}


/* ═══════════════ Grid ═══════════════ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

/* ═══════════════ Cards ═══════════════ */

.card,
.menu-card,
.form-shell,
.info-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.card:hover,
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.menu-card {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.menu-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.06), rgba(0, 242, 254, 0.04));
  pointer-events: none;
}

.menu-card__emoji {
  margin-bottom: 12px;
  background: var(--accent-light);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(51, 144, 236, 0.08);
  /* Replaced with current variable */
  border: 1px solid rgba(51, 144, 236, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent);
}

.menu-card__svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.25px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-card--compact:nth-child(2n) .menu-card__emoji {
  background: rgba(0, 242, 254, 0.08);
  color: #0088cc;
}

.menu-card#menu-pro .menu-card__emoji {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.menu-card__title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.menu-card__text {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.card,
.info-card {
  padding: 20px;
}

.card+.card,
.info-card+.info-card {
  margin-top: 14px;
}

.card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card p,
.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.card p strong {
  color: var(--text);
  font-weight: 600;
}

/* ═══════════════ Note / Alert ═══════════════ */

.note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: #065f46;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

/* ═══════════════ KPI Row ═══════════════ */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.kpi {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.kpi__value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
}

.kpi__label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-header {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 32px;
  margin-bottom: 12px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* Increased gap */
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: calc(100% - 20px);
  /* Expanded width */
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.stats-item__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* Reduced gap */
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-height: 24px;
}

/* Create a ghost element on the right to balance the icon's width */
.stats-item__row::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.stats-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.stats-item__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0.8;
}

/* ═══════════════ Buttons ═══════════════ */

.tg-button,
button.tg-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 0 20px;
  background: linear-gradient(135deg, #4facfe 0%, var(--accent) 100%);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(51, 144, 236, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tg-button::before,
button.tg-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tg-button:hover::before,
button.tg-button:hover::before {
  opacity: 1;
}

.tg-button:hover,
button.tg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(51, 144, 236, 0.35);
}

.tg-button:active,
button.tg-button:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 4px 12px rgba(51, 144, 236, 0.18);
}

/* Danger button */
.tg-button.danger,
button.tg-button.danger {
  background: linear-gradient(135deg, #f87171, var(--danger));
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.tg-button.danger:hover,
button.tg-button.danger:hover {
  background: linear-gradient(135deg, #f87171, var(--danger-hover));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

.tg-button.danger:active,
button.tg-button.danger:active {
  background: #dc2626;
  transform: translateY(0) scale(0.97);
}

/* Success/Green button */
.tg-button.success,
button.tg-button.success {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.tg-button.success:hover,
button.tg-button.success:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
}

.tg-button.success:active,
button.tg-button.success:active {
  background: #16a34a;
  transform: translateY(0) scale(0.97);
}

/* Outline button */
.tg-button.outline,
button.tg-button.outline {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
  border: 1.5px solid rgba(51, 144, 236, 0.22);
  box-shadow: 0 2px 8px rgba(51, 144, 236, 0.06);
}

.tg-button.outline::before,
button.tg-button.outline::before {
  display: none;
}

.tg-button.outline:hover,
button.tg-button.outline:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(51, 144, 236, 0.12);
}

.tg-button.outline:active,
button.tg-button.outline:active {
  background: #f0f7ff;
  transform: scale(0.97);
}

.tg-button.stars:hover {
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
}

/* Limited/Inactive button */
.tg-button.limited {
  background: #cbd5e1 !important;
  background-image: none !important;
  color: #64748b !important;
  box-shadow: none !important;
  opacity: 0.7;
  cursor: pointer;
}

.tg-button.limited:hover {
  transform: none;
  opacity: 0.8;
}

/* ═══════════════ Form Styles ═══════════════ */

.form-shell {
  padding: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-left: 2px;
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  /* Set to 16px to prevent iOS auto-zoom on focus */
  font-weight: 500;
  outline: none;
  appearance: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

input:focus,
select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(51, 144, 236, 0.08), inset 0 0 0 transparent;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  padding-left: 2px;
}

.form-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════ Reward Picker ═══════════════ */
.reward-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-chip {
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reward-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(51, 144, 236, 0.1);
}

.reward-chip:active {
  transform: scale(0.95);
}

.reward-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.reward-input-group input {
  padding-left: 38px !important;
}

.reward-input-group::before {
  content: '€';
  position: absolute;
  left: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.25s ease;
}

.reward-input-group:focus-within::before {
  color: var(--accent);
}

/* ═══════════════ Subscription Components ═══════════════ */

.sub-card {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.sub-card--pro {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.sub-card--pro .sub-card__title,
.sub-card--pro .sub-card__desc,
.sub-card--pro .sub-card__price,
.sub-card--pro .sub-card__features li {
  color: white;
}

.sub-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.sub-card__title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.sub-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.9;
}

.sub-card__price {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sub-card__price span {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.7;
}

.sub-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.sub-card__features li {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.sub-card__features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Plan Switcher / Buttons */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 480px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Modals Restructured for Mobile Keyboard Compatibility */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.modal-content {
  background: white;
  width: min(92%, 400px);
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(24px) scale(0.96);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 24px;
  margin-bottom: 24px;
  /* No max-height or internal overflow-y here */
}

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

@keyframes modalSlide {
  to {
    transform: translateY(0);
  }
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.modal-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-content--compact {
  text-align: center;
}

.modal-content--compact .modal-title {
  margin: 0 0 10px;
}

.modal-content--compact .modal-text {
  margin: 0 0 22px;
}

.section-info-modal__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(51, 144, 236, 0.1);
  color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions button {
  flex: 1;
}

/* Review Items */
.review-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-xs);
}

.review-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.review-item__name {
  font-weight: 800;
  color: var(--accent);
}

.review-item__date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.review-item__comment {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
}

/* Trip Items */
.trip-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  animation: fadeIn 0.4s ease-out;
}

.trip-item:last-child {
  margin-bottom: 0;
}

.trip-item__route {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-item__details {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.trip-item__details strong {
  color: var(--text);
}

/* Status Tags */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge--active {
  background: #dcfce7;
  color: #15803d;
}

.status-badge--warning {
  background: #fef9c3;
  color: #a16207;
}

/* ═══════════════ End Subscriptions ═══════════════ */

/* ═══════════════ Footer Info ═══════════════ */

.footer-info {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.text-highlight {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-info:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.footer-info:hover .text-highlight {
  color: var(--accent-hover);
}

.footer-info:active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* ═══════════════ Tab Bar ═══════════════ */

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: calc(min(var(--max-width), 100%) - 24px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  overflow: hidden;
  z-index: 100;
}

.tabbar a {
  flex: 1;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  white-space: nowrap;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.tabbar a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tabbar a.active {
  color: var(--accent);
}

.tabbar a.active::after {
  background: var(--accent);
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(51, 144, 236, 0.5);
}

.tabbar a:active,
.tabbar a:hover {
  color: var(--accent);
}

.tabbar-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tabbar a.active .tabbar-icon {
  stroke-width: 2.5;
}

.tabbar a:active .tabbar-icon {
  transform: scale(1.18);
}

.bottom-spacer {
  height: 12px;
}

/* ═══════════════ Results System ═══════════════ */

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.results-tabs::-webkit-scrollbar {
  display: none;
}

.results-tab {
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  border-radius: 14px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-family: var(--font-family);
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.results-tab:hover {
  border-color: rgba(51, 144, 236, 0.3);
}

.results-tab.is-active {
  background: linear-gradient(135deg, #4facfe, var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(51, 144, 236, 0.3);
}

/* ═══════════════ Match Cards ═══════════════ */



.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.match-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 144, 236, 0.1);
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.footer-btn.profile-btn {
  background: var(--bg-soft);
  color: var(--accent);
  border: 1px solid rgba(51, 144, 236, 0.15);
}

.footer-btn.message-btn {
  background: linear-gradient(135deg, #4facfe, var(--accent));
  color: #fff;
  box-shadow: 0 4px 12px rgba(51, 144, 236, 0.25);
}

.footer-btn:active {
  transform: scale(0.96);
}

.dots-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-tertiary);
  border: 1px solid rgba(51, 144, 236, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.dots-btn:active {
  transform: scale(0.9);
  background: rgba(51, 144, 236, 0.05);
}

.match-action-icon:active {
  transform: scale(0.88);
}

.match-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  /* Clips the red warning line */
  z-index: 1;
  animation: fadeUp 0.4s ease-out backwards;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.match-card.is-menu-open {
  z-index: 1000;
  overflow: visible;
  /* Allows the action menu to show outside the card */
}

.match-card--reported {
  background: rgba(239, 68, 68, 0.05);
  /* Very subtle red */
  border-color: rgba(239, 68, 68, 0.2);
}

.match-card--reported::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--danger);
  opacity: 0.6;
}

.match-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-sm);
}

.match-card__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-card p strong {
  color: var(--text);
}

/* Premium Badges */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-badge:active {
  transform: scale(0.92);
}

.user-badge--rating {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #b45309;
  border: 1px solid #fde68a;
}

.user-badge--trips {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.user-badge--pro {
  background: var(--gold-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Compact Card Layout */
.match-card__location {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-weight: 500;
}

.match-card__bio {
  font-size: 14px;
  color: var(--text);
  margin: 12px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}

.match-card__separator {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
  opacity: 0.5;
}

.match-card__compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.match-card__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.match-card__detail-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════ Pro Badge ═══════════════ */

.pro-badge {
  color: #fff;
  background: var(--gold-gradient);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-pro-badge {
  background: var(--gold-gradient);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-btn.is-restricted {
  filter: saturate(0.5);
  cursor: pointer;
}

/* ═══════════════ Responsive Grid ═══════════════ */

@media (max-width: 420px) {

  .grid-2,
  .hero__actions,
  .match-card__actions {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════ Account Styles ═══════════════ */

.card-anim {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 1000px;
  opacity: 1;
}

.is-removing {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
  overflow: hidden;
}

.account-id {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: 0.75;
}

.account-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(51, 144, 236, 0.06));
  color: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.account-kind.kind-search {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.06));
  color: #16a34a;
}

/* ═══════════════ Profile Section ═══════════════ */

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #4facfe 0%, #3390ec 50%, #00c6fb 100%);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 6px 20px rgba(51, 144, 236, 0.35);
  flex-shrink: 0;
}

.profile-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-edit-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-edit-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

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

.readonly-field {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.phone-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.stat-item:active {
  transform: scale(0.96);
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════ Settings ═══════════════ */

.settings-group {
  margin-bottom: 18px;
}

.settings-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.premium-select-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.premium-select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(51, 144, 236, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 48px 14px 18px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.premium-select-wrapper select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(51, 144, 236, 0.15);
  transform: translateY(-1px);
}

.premium-select-wrapper select:active {
  transform: translateY(0);
}

.premium-select-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.premium-select-wrapper select:focus + .premium-select-icon {
  transform: translateY(-50%) rotate(180deg);
}

.premium-select-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.toggle-item span {
  font-size: 14px;
  font-weight: 600;
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: .3s ease;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input:checked+.slider {
  background: linear-gradient(135deg, #4facfe, var(--accent));
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* ═══════════════ Chat Background ═══════════════ */

.is-chat-page {
  background-color: var(--bg) !important;
}

.is-chat-page .topbar__inner {
  justify-content: flex-start;
  padding-left: 64px;
  padding-right: 122px;
}

.is-chat-page #chat-actions {
  right: 2px;
  padding: 6px 0px;
}

.is-chat-page .back-btn {
  left: 6px;
}

#chat-actions .dots-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chat-actions .dots-btn:active {
  transform: scale(0.92);
}

.is-chat-page::before {
  opacity: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg%20width%3D%27800%27%20height%3D%27800%27%20viewBox%3D%270%200%20800%20800%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%20%20%3Cg%20fill%3D%27none%27%20stroke%3D%27%233390ec%27%20stroke-width%3D%272.0%27%20stroke-opacity%3D%270.15%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%20%20%20%20%3Cg%20transform%3D%27translate%2830.6%2056.7%29%20scale%281.13%29%20rotate%2892.0%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27145.1%27%20cy%3D%2722.4%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M181.6%2C32.2%20l2%2C2%20M181.6%2C34.2%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28277.6%2013.0%29%20scale%280.76%29%20rotate%28122.3%29%27%3E%3Cpath%20d%3D%27M-16%2C4%20l4%2C8%20h24%20l4%2C-8%20z%20M-8%2C-4%20h16%20v8%20h-16%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28389.9%2024.5%29%20scale%280.79%29%20rotate%28358.4%29%27%3E%3Cpath%20d%3D%27M-8%2C-12%20h10%20l6%2C6%20v14%20h-16%20z%20M2%2C-12%20v6%20h6%20M-4%2C-2%20h8%20M-4%2C4%20h8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28453.8%2042.8%29%20scale%281.10%29%20rotate%28301.5%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-12%2C-8%20l12%2C8%20l12%2C-8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28536.6%2025.9%29%20scale%280.73%29%20rotate%28137.2%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-12%2C-8%20l12%2C8%20l12%2C-8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28618.3%2029.3%29%20scale%280.77%29%20rotate%2862.4%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28697.1%2027.9%29%20scale%280.83%29%20rotate%2818.9%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28752.3%2057.5%29%20scale%281.12%29%20rotate%28109.6%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%2745.4%27%20cy%3D%27147.1%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M121.2%2C125.6%20l2%2C2%20M121.2%2C127.6%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28171.2%20128.5%29%20scale%280.95%29%20rotate%28107.6%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28278.5%20140.8%29%20scale%281.06%29%20rotate%2823.7%29%27%3E%3Cpath%20d%3D%27M-8%2C-8%20l16%2C16%20M16%2C-8%20l-16%2C16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28330.3%20148.6%29%20rotate%28-3.9%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Eto%3C/text%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27415.2%27%20cy%3D%27152.0%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28504.7%20131.3%29%20scale%280.75%29%20rotate%28236.2%29%27%3E%3Cpath%20d%3D%27M-8%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M0%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M-8%2C0%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28593.4%20103.4%29%20rotate%283.7%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Eto%3C/text%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27694.6%27%20cy%3D%27109.0%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28728.1%20119.4%29%20scale%281.06%29%20rotate%28345.7%29%27%3E%3Cpath%20d%3D%27M-10%2C5%20a10%2C10%200%200%2C1%2020%2C0%20M-5%2C5%20a5%2C5%200%200%2C1%2010%2C0%20M0%2C5%20v-5%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M11.3%2C201.8%20l2%2C2%20M11.3%2C203.8%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28148.4%20230.3%29%20scale%280.93%29%20rotate%2890.7%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28168.4%20199.6%29%20scale%280.97%29%20rotate%28284.3%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M249.3%2C168.7%20l2%2C2%20M249.3%2C170.7%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28353.2%20220.7%29%20scale%280.91%29%20rotate%284.2%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M434.7%2C197.1%20l2%2C2%20M434.7%2C199.1%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28536.1%20186.2%29%20scale%280.74%29%20rotate%28178.6%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28592.1%20185.5%29%20scale%281.00%29%20rotate%28254.0%29%27%3E%3Cpath%20d%3D%27M-16%2C4%20l4%2C8%20h24%20l4%2C-8%20z%20M-8%2C-4%20h16%20v8%20h-16%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28659.4%20182.6%29%20scale%280.80%29%20rotate%28147.5%29%27%3E%3Cpath%20d%3D%27M-12%2C0%20h24%20M0%2C-12%20c-5%2C0%20-8%2C5%20-8%2C12%20s3%2C12%208%2C12%20s8%2C-5%208%2C-12%20s-3%2C-12%20-8%2C-12%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28739.6%20199.8%29%20scale%281.00%29%20rotate%28140.4%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2813.6%20266.6%29%20scale%280.68%29%20rotate%28157.6%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M102.4%2C311.6%20l2%2C2%20M102.4%2C313.6%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28175.6%20263.8%29%20scale%281.00%29%20rotate%28145.1%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28264.9%20259.1%29%20rotate%282.5%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Efrom%3C/text%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27390.3%27%20cy%3D%27282.1%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28434.8%20271.8%29%20scale%280.70%29%20rotate%28281.6%29%27%3E%3Cpath%20d%3D%27M0%2C12%20v-18%20M-8%2C-2%20h16%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27534.7%27%20cy%3D%27266.8%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M573.3%2C278.8%20l2%2C2%20M573.3%2C280.8%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28694.2%20273.8%29%20scale%280.71%29%20rotate%28112.0%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28753.4%20285.9%29%20scale%280.81%29%20rotate%28351.5%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2829.3%20369.1%29%20scale%280.82%29%20rotate%28279.8%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-8%2C-12%20h16%20v4%20h-16%20z%20M-6%2C-8%20v16%20M6%2C-8%20v16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28111.0%20359.9%29%20scale%281.06%29%20rotate%2830.8%29%27%3E%3Cpath%20d%3D%27M-16%2C4%20l4%2C8%20h24%20l4%2C-8%20z%20M-8%2C-4%20h16%20v8%20h-16%20z%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27221.6%27%20cy%3D%27351.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28257.6%20336.7%29%20scale%280.78%29%20rotate%2897.3%29%27%3E%3Cpath%20d%3D%27M-8%2C-12%20h10%20l6%2C6%20v14%20h-16%20z%20M2%2C-12%20v6%20h6%20M-4%2C-2%20h8%20M-4%2C4%20h8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28386.9%20333.5%29%20scale%281.11%29%20rotate%2895.6%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28434.5%20389.6%29%20scale%280.69%29%20rotate%2851.2%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27501.9%27%20cy%3D%27390.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28591.8%20349.2%29%20scale%280.89%29%20rotate%28345.0%29%27%3E%3Cpath%20d%3D%27M0%2C12%20v-18%20M-8%2C-2%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28695.9%20374.8%29%20rotate%281.0%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Eto%3C/text%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28791.6%20342.6%29%20scale%280.63%29%20rotate%28267.4%29%27%3E%3Cpath%20d%3D%27M-12%2C4%20l2%2C-8%20h20%20l2%2C8%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2833.7%20427.6%29%20scale%281.05%29%20rotate%28242.3%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28110.7%20455.6%29%20scale%280.60%29%20rotate%2883.0%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27214.8%27%20cy%3D%27470.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M273.8%2C434.3%20l2%2C2%20M273.8%2C436.3%20l2%2C-2%27%20/%3E%20%20%20%20%3Ccircle%20cx%3D%27330.5%27%20cy%3D%27426.7%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28434.1%20458.8%29%20scale%280.89%29%20rotate%28330.1%29%27%3E%3Cpath%20d%3D%27M-16%2C4%20l4%2C8%20h24%20l4%2C-8%20z%20M-8%2C-4%20h16%20v8%20h-16%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28543.1%20416.0%29%20rotate%283.9%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Efrom%3C/text%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28621.7%20419.4%29%20scale%280.98%29%20rotate%2892.7%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28658.0%20444.1%29%20scale%280.93%29%20rotate%28164.5%29%27%3E%3Cpath%20d%3D%27M-8%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M0%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M-8%2C0%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28781.0%20468.3%29%20scale%280.74%29%20rotate%2855.3%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2835.9%20499.7%29%20scale%281.08%29%20rotate%28357.1%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28136.2%20513.4%29%20scale%280.78%29%20rotate%2818.2%29%27%3E%3Cpath%20d%3D%27M-10%2C-10%20h20%20v20%20h-20%20z%20M0%2C-4%20a4%2C4%200%201%2C0%200%2C8%20a4%2C4%200%201%2C0%200%2C-8%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28204.7%20508.2%29%20scale%280.65%29%20rotate%28321.1%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M305.9%2C543.5%20l2%2C2%20M305.9%2C545.5%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28386.6%20536.0%29%20scale%281.08%29%20rotate%28146.7%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28443.1%20538.0%29%20scale%280.77%29%20rotate%2898.1%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28533.1%20537.1%29%20rotate%282.9%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Eto%3C/text%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28627.8%20545.0%29%20scale%281.19%29%20rotate%28285.5%29%27%3E%3Cpath%20d%3D%27M-10%2C5%20a10%2C10%200%200%2C1%2020%2C0%20M-5%2C5%20a5%2C5%200%200%2C1%2010%2C0%20M0%2C5%20v-5%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M656.2%2C501.0%20l2%2C2%20M656.2%2C503.0%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28745.5%20490.6%29%20scale%281.08%29%20rotate%28353.0%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2861.3%20613.5%29%20scale%280.81%29%20rotate%28280.3%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-12%2C-8%20l12%2C8%20l12%2C-8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28147.0%20595.1%29%20scale%281.07%29%20rotate%28316.7%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28172.8%20598.7%29%20scale%280.82%29%20rotate%28162.5%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27248.2%27%20cy%3D%27598.0%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28366.1%20610.7%29%20scale%280.70%29%20rotate%28124.0%29%27%3E%3Cpath%20d%3D%27M-10%2C5%20a10%2C10%200%200%2C1%2020%2C0%20M-5%2C5%20a5%2C5%200%200%2C1%2010%2C0%20M0%2C5%20v-5%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28455.6%20568.9%29%20scale%280.91%29%20rotate%28142.3%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-8%2C-12%20h16%20v4%20h-16%20z%20M-6%2C-8%20v16%20M6%2C-8%20v16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28514.8%20603.3%29%20scale%280.97%29%20rotate%28139.7%29%27%3E%3Cpath%20d%3D%27M0%2C12%20v-18%20M-8%2C-2%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28588.2%20599.7%29%20scale%280.81%29%20rotate%28156.5%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-8%2C-12%20h16%20v4%20h-16%20z%20M-6%2C-8%20v16%20M6%2C-8%20v16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28654.2%20569.2%29%20scale%280.81%29%20rotate%28210.7%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28752.6%20597.5%29%20scale%280.79%29%20rotate%28225.4%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2859.9%20692.6%29%20scale%280.75%29%20rotate%28185.1%29%27%3E%3Cpath%20d%3D%27M-12%2C0%20h24%20M0%2C-12%20c-5%2C0%20-8%2C5%20-8%2C12%20s3%2C12%208%2C12%20s8%2C-5%208%2C-12%20s-3%2C-12%20-8%2C-12%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28146.9%20703.0%29%20scale%280.74%29%20rotate%28125.6%29%27%3E%3Cpath%20d%3D%27M-8%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M0%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M-8%2C0%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28220.2%20674.8%29%20scale%280.91%29%20rotate%2842.4%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28257.5%20697.7%29%20scale%280.87%29%20rotate%28286.5%29%27%3E%3Cpath%20d%3D%27M-8%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M0%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M-8%2C0%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28373.0%20698.6%29%20scale%280.98%29%20rotate%2823.8%29%27%3E%3Cpath%20d%3D%27M-12%2C-8%20h24%20v16%20h-24%20z%20M-12%2C-8%20l12%2C8%20l12%2C-8%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M410.5%2C692.3%20l2%2C2%20M410.5%2C694.3%20l2%2C-2%27%20/%3E%20%20%20%20%3Ccircle%20cx%3D%27514.5%27%20cy%3D%27683.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Ccircle%20cx%3D%27579.7%27%20cy%3D%27678.0%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28681.9%20692.8%29%20rotate%2811.2%29%27%3E%3Ctext%20x%3D%270%27%20y%3D%270%27%20font-family%3D%27Arial%27%20font-size%3D%2722%27%20font-weight%3D%27bold%27%20transform%3D%27translate%28-12%2C%208%29%27%3Eto%3C/text%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28779.2%20681.4%29%20scale%280.81%29%20rotate%28154.1%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M28.7%2C788.6%20l2%2C2%20M28.7%2C790.6%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28141.8%20733.1%29%20scale%280.79%29%20rotate%28154.4%29%27%3E%3Cpath%20d%3D%27M-8%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M0%2C0%20a4%2C4%200%201%2C0%208%2C0%20a4%2C4%200%201%2C0%20-8%2C0%20M-8%2C0%20h16%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28205.3%20730.2%29%20scale%280.81%29%20rotate%28314.1%29%27%3E%3Cpath%20d%3D%27M-12%2C4%20l2%2C-8%20h20%20l2%2C8%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28307.0%20754.6%29%20scale%280.77%29%20rotate%28247.1%29%27%3E%3Cpath%20d%3D%27M0%2C-14%20c-6%2C0%20-10%2C4%20-10%2C10%20c0%2C6%2010%2C16%2010%2C16%20c0%2C0%2010%2C-10%2010%2C-16%20c0%2C-6%20-4%2C-10%20-10%2C-10%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28390.4%20730.6%29%20scale%281.01%29%20rotate%28205.6%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M464.5%2C736.3%20l2%2C2%20M464.5%2C738.3%20l2%2C-2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M532.5%2C747.4%20l2%2C2%20M532.5%2C749.4%20l2%2C-2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M628.6%2C728.6%20l2%2C2%20M628.6%2C730.6%20l2%2C-2%27%20/%3E%20%20%20%20%3Cpath%20d%3D%27M657.4%2C733.2%20l2%2C2%20M657.4%2C735.2%20l2%2C-2%27%20/%3E%20%20%20%20%3Ccircle%20cx%3D%27777.5%27%20cy%3D%27742.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%2854.5%20834.2%29%20scale%280.72%29%20rotate%2886.1%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28109.5%20849.4%29%20scale%280.74%29%20rotate%2848.0%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28174.8%20854.7%29%20scale%281.17%29%20rotate%28310.1%29%27%3E%3Cpath%20d%3D%27M-10%2C5%20a10%2C10%200%200%2C1%2020%2C0%20M-5%2C5%20a5%2C5%200%200%2C1%2010%2C0%20M0%2C5%20v-5%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28273.2%20822.7%29%20scale%280.98%29%20rotate%28113.0%29%27%3E%3Cpath%20d%3D%27M-10%2C-10%20h20%20v20%20h-20%20z%20M0%2C-4%20a4%2C4%200%201%2C0%200%2C8%20a4%2C4%200%201%2C0%200%2C-8%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28386.7%20852.8%29%20scale%281.16%29%20rotate%28205.4%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28413.0%20834.9%29%20scale%280.65%29%20rotate%280.2%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28535.8%20867.0%29%20scale%281.05%29%20rotate%280.3%29%27%3E%3Cpath%20d%3D%27M-8%2C-12%20h10%20l6%2C6%20v14%20h-16%20z%20M2%2C-12%20v6%20h6%20M-4%2C-2%20h8%20M-4%2C4%20h8%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28604.0%20831.3%29%20scale%280.82%29%20rotate%2811.1%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28683.9%20841.6%29%20scale%280.67%29%20rotate%28313.5%29%27%3E%3Cpath%20d%3D%27M-16%2C4%20l4%2C8%20h24%20l4%2C-8%20z%20M-8%2C-4%20h16%20v8%20h-16%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28732.4%20838.7%29%20scale%280.89%29%20rotate%2879.0%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%2842.0%20893.1%29%20scale%281.08%29%20rotate%28321.8%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27125.0%27%20cy%3D%27894.5%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28191.9%20917.8%29%20scale%280.76%29%20rotate%28198.3%29%27%3E%3Cpath%20d%3D%27M-14%2C3%20L14%2C-14%20L5%2C14%20L-2%2C5%20L11%2C-10%20L-5%2C3%20Z%27/%3E%3C/g%3E%20%20%20%20%3Cpath%20d%3D%27M270.8%2C938.7%20l2%2C2%20M270.8%2C940.7%20l2%2C-2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28378.5%20908.9%29%20scale%280.96%29%20rotate%2882.8%29%27%3E%3Cpath%20d%3D%27M-2%2C12%20c2%2C-8%202%2C-16%200%2C-24%20M-2%2C-12%20c-6%2C-4%20-12%2C-2%20-14%2C2%20c4%2C-2%2010%2C0%2012%2C4%27/%3E%3C/g%3E%20%20%20%20%3Ccircle%20cx%3D%27458.7%27%20cy%3D%27930.4%27%20r%3D%271.2%27%20/%3E%20%20%20%20%3Cg%20transform%3D%27translate%28526.4%20892.2%29%20scale%280.65%29%20rotate%2835.9%29%27%3E%3Cpath%20d%3D%27M-14%2C-9%20h28%20v18%20h-28%20z%20M-14%2C-2%20v4%20M14%2C-2%20v4%20M-6%2C-5%20v10%20M0%2C-5%20v10%20M6%2C-5%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28615.8%20899.3%29%20scale%281.16%29%20rotate%28269.3%29%27%3E%3Cpath%20d%3D%27M0%2C-12%20l3%2C8%20l8%2C1%20l-6%2C5%20l2%2C8%20l-7%2C-4%20l-7%2C4%20l2%2C-8%20l-6%2C-5%20l8%2C-1%20z%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28688.6%20948.6%29%20scale%280.99%29%20rotate%28172.7%29%27%3E%3Cpath%20d%3D%27M-10%2C-5%20l10%2C-5%20l10%2C5%20v10%20l-10%2C5%20l-10%2C-5%20z%20M-10%2C-5%20l10%2C5%20M10%2C-5%20l-10%2C5%20M0%2C0%20v10%27/%3E%3C/g%3E%20%20%20%20%3Cg%20transform%3D%27translate%28742.7%20909.6%29%20scale%281.02%29%20rotate%2840.8%29%27%3E%3Cpath%20d%3D%27M-10%2C-10%20h20%20v20%20h-20%20z%20M0%2C-4%20a4%2C4%200%201%2C0%200%2C8%20a4%2C4%200%201%2C0%200%2C-8%20z%27/%3E%3C/g%3E%20%20%3C/g%3E%0A%3C/svg%3E"),
    radial-gradient(ellipse at 10% -10%, rgba(79, 172, 254, 0.2), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(0, 242, 254, 0.1), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(51, 144, 236, 0.1), transparent 50%);
  background-attachment: fixed;
  pointer-events: none;
}

/* ═══════════════ Responsive ═══════════════ */

@media (max-width: 480px) {
  .hero {
    padding: 20px 8px;
  }

  .card {
    padding: 16px;
    margin-top: 10px;
  }

  .account-kind {
    font-size: 11px;
    padding: 3px 8px;
  }

  .topbar {
    padding: 8px 16px;
  }

  .brand__title {
    font-size: 16px;
  }
}

/* ═══════════════ Chat & Dialogue Styles ═══════════════ */

/* Dialogue Styles Consolidated Below */

/* Chat View */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 120px;
}

.message-group {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.message-group.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message-group.received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}

.sent .message-bubble {
  background: linear-gradient(135deg, #4facfe, var(--accent));
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 3px 12px rgba(51, 144, 236, 0.2);
}

.received .message-bubble {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-xs);
}

.message-meta {
  font-size: 11px;
  margin-top: 3px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--text-secondary);
}

.sent .message-meta {
  justify-content: flex-end;
}

.read-receipt {
  font-size: 13px;
  color: var(--text-secondary);
  /* Matches the timestamp color */
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  letter-spacing: -2px;
  font-weight: 700;
  opacity: 0.8;
}

.read-receipt.is-read {
  color: #10b981;
  /* Standard success green, looks better on light/dark backgrounds */
  opacity: 1;
}

/* Chat Input Bar */
.chat-input-wrapper {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), 100%);
  padding: 0 16px;
  z-index: 90;
}

.chat-input-wrapper--bottom {
  bottom: calc(16px + env(safe-area-inset-bottom));
}

.chat-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  padding: 6px 6px 6px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px 8px 0; /* Added small right padding for caret */
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  outline: none;
  max-height: 120px;
  resize: none;
  color: var(--text);
  /* Force visible caret on all devices */
  caret-color: var(--accent) !important;
  overflow-y: auto; /* Ensure scrollbar appears if text is long */
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, var(--accent));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(51, 144, 236, 0.25);
  flex-shrink: 0;
}

.send-btn:active {
  transform: scale(0.88);
}

/* Removed redundant modal definitions, consolidated at line 997 */

.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
  color: var(--text);
  /* Force visible caret */
  caret-color: var(--accent) !important;
  line-height: 1.4;
}

/* Select and input elements using modal-textarea should not be as tall as textareas */
select.modal-textarea,
input.modal-textarea {
  min-height: 48px;
  resize: none;
}

.modal-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 144, 236, 0.08);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* ═══════════════ Action Icon Variants ═══════════════ */

.match-action-icon.yellow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.match-action-icon.orange {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
}

.match-action-icon.red {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.match-action-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}

.match-action-icon.is-blocked {
  background: linear-gradient(135deg, #374151, #111827) !important;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.25);
}

/* ═══════════════ Plan Cards (PRO Modal) ═══════════════ */

.plan-card {
  cursor: pointer;
  padding: 16px;
  border: 1.5px solid rgba(51, 144, 236, 0.2);
  border-radius: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.5);
}

.plan-card:hover {
  border-color: var(--accent);
  background: rgba(79, 172, 254, 0.04);
  transform: translateY(-1px);
}

/* ═══════════════ Multi-City Tags ═══════════════ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.city-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(51, 144, 236, 0.15);
  animation: tagIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-tag span {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.city-tag span:hover {
  opacity: 1;
}

@keyframes tagIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ═══════════════ Hidden Inputs ═══════════════ */
.hidden-input {
  display: none;
  margin-top: 10px;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden-input.is-visible {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════ Block State ═══════════════ */
.match-action-icon.is-blocked {
  background: var(--danger);
  color: #fff;
}

.match-action-icon.is-blocked svg {
  stroke: #fff;
}

/* ═══════════════ Conversations List ═══════════════ */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-elevated);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════ Conversations List (Fixed) ═══════════════ */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 16px;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.conversation-card:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.95);
}

.conversation-card.is-active-menu {
  z-index: 1010 !important;
}

.conversation-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden !important;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.online-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #22c55e;
  border: 2.5px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px white, 0 2px 8px rgba(34, 197, 94, 0.5);
  z-index: 10;
}

.brand__avatar-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
  /* Critical for ellipsis */
  display: flex;
  flex-direction: column;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  width: 100%;
}

.conversation-name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.conversation-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.conversation-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.conversation-last-msg {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dots-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.dots-btn:hover {
  background: rgba(51, 144, 236, 0.08);
}

/* ═══════════════ Discovery Grid (Tabs) ═══════════════ */

.discovery-grid {
  display: flex !important;
  flex-wrap: wrap;
  /* Changed from nowrap to wrap */
  gap: 10px;
  /* Slightly reduced gap for wrapped layout */
  padding: 8px 0 16px;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.discovery-grid::-webkit-scrollbar {
  display: none;
}

.discovery-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  /* Slightly reduced gap */
  justify-content: space-between;
  /* Push elements apart if needed */
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-card.is-full {
  flex: 1 1 100%;
  justify-content: center;
}

.discovery-card:hover {
  transform: translateY(-1px);
  border-color: rgba(51, 144, 236, 0.3);
}


.discovery-card:active {
  transform: scale(0.97);
}

.discovery-card.is-active {
  background: linear-gradient(135deg, #4facfe, var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(51, 144, 236, 0.2);
  transform: scale(0.98);
  /* Slight inward click effect for the active state */
  animation: activePulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes activePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(0.98);
  }
}

.discovery-card__icon {
  font-size: 16px;
  margin: 0;
}

.discovery-card__label {
  flex: 1;
  min-width: 0;
  white-space: normal;
  /* Allow wrapping */
  font-size: 11.5px;
  /* Slightly smaller for 2 lines */
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discovery-card.is-active .discovery-card__label {
  color: #fff;
}

.discovery-card__count {
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  /* Never squeeze the count */
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.discovery-card__count.is-positive {
  color: #10b981;
  /* Success green */
  background: rgba(16, 185, 129, 0.1);
}

.discovery-card.is-active .discovery-card__count {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════ Status Cards (Account Page) ═══════════════ */

.status-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
}

.status-card--free {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 5px solid #94a3b8;
}

.status-card--pro {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
}

.status-card--danger {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(248, 113, 113, 0.2) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2) !important;
}

.status-card--safedeal-promo {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-left: 6px solid #8b5cf6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.status-card--safedeal {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.status-card--safedeal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  animation: rotate 20s linear infinite reverse;
  pointer-events: none;
}

.status-card--safedeal .status-card__title,
.status-card--safedeal .status-card__title span,
.status-card--safedeal .status-card__subtitle:not(#stripe-status-text),
.status-card--safedeal b {
  color: #fff !important;
}

.status-card--safedeal #stripe-status-text .status-card__status--active {
  color: #fff !important;
  font-weight: 600;
}

.status-card--safedeal-promo::before {
  display: none !important;
}

.status-card--safedeal-promo .status-card__title {
  color: #1e293b !important;
}

.status-card--safedeal-promo .status-card__subtitle {
  color: #64748b !important;
}

.status-card--pro::before,
.status-card--safedeal-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.status-card--safedeal-promo .status-card__button {
  background: #8b5cf6 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.status-card--safedeal-promo .status-card__button:hover {
  background: #7c3aed !important;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.5) !important;
}

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

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

.status-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.status-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.status-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* Allow badge to wrap if needed */
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.status-card--free .status-card__title {
  color: #1e293b;
}

.status-card--pro .status-card__title {
  color: #f8fafc;
}

.status-card__subtitle {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.3;
}

.status-card--free .status-card__subtitle {
  color: #64748b;
}

.status-card--pro .status-card__subtitle {
  color: #94a3b8;
}

.status-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

.status-card--pro .status-card__badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.status-card__button {
  flex-shrink: 0;
  /* Don't allow button to shrink too much */
  position: relative;
  z-index: 2;
  background: #fbbf24;
  color: #000;
  border: none;
  font-weight: 750;
  font-size: 13px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto;
}

.status-card--pro .status-card__button {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.status-card__button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.4);
}

.status-card__button:active {
  transform: translateY(0) scale(0.96);
}

/* ═══════════════ Subscription Plans ═══════════════ */

.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  border-radius: 16px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.plan-card--premium {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.04);
}

.plan-card--premium:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.plan-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-card__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.plan-card__price {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-card__tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d97706;
  background: rgba(251, 191, 36, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

/* ═══════════════ Compact Dashboard (Index) ═══════════════ */

.hero--compact {
  padding: 8px 4px 4px;
}

.hero--compact h1 {
  font-size: 21px;
  margin-top: 4px;
}

.hero--compact .hero__text {
  font-size: 13px;
  margin: 8px auto 20px;
  max-width: 85%;
  opacity: 1;
  text-align: center;
  font-style: italic;
  padding: 8px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  line-height: 1.4;
  color: var(--text);
}

#requests-section,
#subscriptions-section {
  scroll-margin-top: 80px;
}

.section--no-top {
  margin-top: 0;
}

/* Statistics Bar relocated and consolidated above */

.menu-card--compact {
  min-height: 84px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.menu-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-card__emoji {
  font-size: 20px;
  line-height: 1;
}

.menu-card--compact:hover .menu-card__emoji {
  transform: scale(1.2) rotate(-5deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card--compact .menu-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: linear-gradient(to right, var(--text), #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-card__desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  padding-left: 28px;
  /* Offset to align with title text under the emoji */
}

@media (max-width: 380px) {
  .hero--compact h1 {
    font-size: 22px;
  }

  .menu-card--compact {
    padding: 12px;
  }

  .menu-card--compact .menu-card__title {
    font-size: 16px;
  }
}

/* ═══════════════ Polishing (Wow Factor) ═══════════════ */

.hero--compact .hero__badge {
  animation: float 3s ease-in-out infinite;
  background: rgba(51, 144, 236, 0.1);
  backdrop-filter: blur(4px);
}

.menu-card--compact {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card--compact:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.9);
}

.menu-card--compact .menu-card__title {
  background: linear-gradient(to right, var(--text), #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#main-container {
  /* Ensure a smoother entrance for the whole page */
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════ History Lists ═══════════════ */

.history-list {
  max-height: 60vh;
  overflow-y: auto;
  margin: 10px -10px 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.history-list::-webkit-scrollbar {
  display: none;
}

.history-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  animation: fadeUp 0.3s ease-out backwards;
}

.history-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}

.history-item__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-item__kind {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.history-item__kind.kind-search {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.history-item__status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.history-item__status--active {
  color: #059669;
  background: #ecfdf5;
}

.history-item__status--passed {
  color: #dc2626;
  background: #fef2f2;
  opacity: 0.8;
}

.history-item__date {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.history-item__route {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.history-item__details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.history-item__detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-item__separator {
  width: 4px;
  height: 4px;
  background: var(--line);
  border-radius: 50%;
}

.history-item--rating {
  border-left: 4px solid var(--gold);
}

.history-item__user {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.history-item__comment {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  margin: 8px 0;
  background: rgba(245, 158, 11, 0.05);
  padding: 8px 12px;
  border-radius: 12px;
}

.history-item__route-small {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 500;
}

/* ═══════════════ Action Dropdown Menu ═══════════════ */

.action-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -4px;
  min-width: 230px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.06);
  z-index: 1000;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

/* Arrow */
.action-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 1);
  border-top: 1px solid rgba(255, 255, 255, 1);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
  z-index: -1;
}

.action-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  line-height: 1.2;
}

.action-menu-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.action-menu-item.destructive {
  color: #ff3b30 !important;
  /* System red for visibility */
}

.action-menu-item.destructive.is-blocked {
  color: #2b8a3e !important;
  /* System green back to normal */
}

.action-menu-item.destructive:hover {
  background: rgba(239, 68, 68, 0.08);
}

.action-menu-item.success {
  color: #10b981;
}

.action-menu-item.success:hover {
  background: rgba(16, 185, 129, 0.08);
}

.action-menu-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  stroke-width: 2.5;
}

/* Ensure parents don't clip the menu */
.dots-btn-wrapper {
  position: relative;
  display: inline-flex;
  z-index: inherit;
}

/* ═══════════════ Unread Badges ═══════════════ */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: normal;
  margin-left: 6px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.tabbar-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  z-index: 10;
  pointer-events: none;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.warning-badge {
  background: linear-gradient(135deg, #facc15, #eab308) !important;
  color: #000 !important;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.45) !important;
}

.menu-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
  z-index: 10;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ═══════════════ Picker Modal (Autocomplete) ═══════════════ */

.picker-modal {
  z-index: 2000 !important;
  display: flex !important;
  align-items: flex-end;
  padding: 0;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.picker-content {
  width: 100%;
  max-width: var(--max-width);
  height: calc(100dvh - 20px);
  margin: 0 auto;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.picker-modal.is-active .picker-content {
  transform: translateY(0);
}

.picker-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
}

.picker-search {
  flex: 1;
  height: 48px;
  border: none;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.picker-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 40px;
  -webkit-overflow-scrolling: touch;
}

.picker-item {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.picker-item:active {
  background: var(--accent-light);
  color: var(--accent);
}

.picker-item:last-child {
  border-bottom: none;
}

.picker-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ═══════════════ Entrance Animations ═══════════════ */

.fade-in {
  animation: fadeInEffect 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInEffect {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

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

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* ═══════════════ Sorting Chips ═══════════════ */

.sort-container {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sort-container::-webkit-scrollbar {
  display: none;
}

.sort-chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.sort-chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-alpha);
  transform: translateY(-1px);
}

.sort-chip:active {
  transform: scale(0.96);
}

/* ═══════════════ Notification Badges ═══════════════ */
.badge-notify {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
  z-index: 5;
  pointer-events: none;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
  z-index: 5;
  pointer-events: none;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

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

/* ═══════════════ Radical Stability & Smart Button ═══════════════ */

.input-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  display: flex !important;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.input-trigger:empty::before {
  content: attr(data-placeholder);
  color: var(--text-secondary);
  font-weight: 400;
}

.input-trigger:active {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.picker-modal {
  z-index: 3000 !important;
  height: 100dvh !important;
  align-items: flex-start !important;
  /* Top-aligned for stability */
  transition: opacity 0.2s ease-out;
  opacity: 0;
  pointer-events: none;
}

.picker-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.picker-content {
  height: 100% !important;
  border-radius: 0 !important;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
  opacity: 0;
}

.picker-modal.is-active .picker-content {
  transform: translateY(0);
  opacity: 1;
}

.scroll-lock {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.publish-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.publish-btn.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ═══════════════ Limit Banner ═══════════════ */

.limit-banner {
  background: rgba(var(--accent-rgb, 51, 144, 236), 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(var(--accent-rgb, 51, 144, 236), 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  animation: fadeDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.limit-banner__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.limit-banner__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

#limit-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.limit-banner__btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  color: #fff !important;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.limit-banner__btn:active {
  transform: scale(0.96);
}

.limit-banner__btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(51, 144, 236, 0.15);
}

/* ═══════════════ Success Celebration Page ═══════════════ */

.success-body {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--bg);
}

.celebration-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(51, 144, 236, 0.05) 100%);
  z-index: 0;
  pointer-events: none;
}

.success-card {
  position: relative;
  z-index: 10;
  max-width: 400px;
  width: 100%;
  padding: 48px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.4);
  color: #fff;
  animation: revealCard 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes revealCard {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }

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

.pro-badge-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 32px;
}

.pro-badge-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at center, rgba(51, 144, 236, 0.5), transparent 70%);
  animation: badgeGlow 2.5s infinite ease-in-out;
  z-index: -1;
}

@keyframes badgeGlow {

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

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.pro-badge-logo {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  animation: badgePop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0);
}

@keyframes badgePop {
  0% {
    transform: scale(0) rotate(-15deg);
  }

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

.success-hero {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #3390ec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideDown 0.6s ease-out both;
  animation-delay: 0.4s;
}

.success-message {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  animation: slideDown 0.6s ease-out both;
  animation-delay: 0.6s;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Confetti Implementation */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  top: -20px;
  opacity: 0;
  animation: confettiFall var(--duration) var(--delay) linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}


/* ═══════════════ Global Premium Spinner ═══════════════ */

.fts-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(51, 144, 236, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  -webkit-animation: rotate 0.85s linear infinite;
  animation: rotate 0.85s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: inline-block;
  vertical-align: middle;
}

/* ═══════════════ Global Premium Spinner ═══════════════ */

.fts-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(51, 144, 236, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  -webkit-animation: ftsSpinnerRotate 0.85s linear infinite;
  animation: ftsSpinnerRotate 0.85s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: inline-block;
  vertical-align: middle;
}

@keyframes ftsSpinnerRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes ftsSpinnerRotate {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

/* ═══════════════ Custom Checkbox Grid ═══════════════ */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1.5px solid rgba(51, 144, 236, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.checkbox-item input[type="checkbox"] {
  display: none !important;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2.25px solid rgba(51, 144, 236, 0.3);
  border-radius: 5px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.checkbox-item:hover {
  border-color: rgba(51, 144, 236, 0.3);
  background: #ffffff;
}

.checkbox-item.active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(51, 144, 236, 0.08);
}

.checkbox-item.active .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-item.active .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 7.5px;
  border: solid white;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

.checkbox-item:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(51, 144, 236, 0.08);
}

.checkbox-item:has(input[type="checkbox"]:checked) .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-item:has(input[type="checkbox"]:checked) .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 7.5px;
  border: solid white;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Specific styling for subscription kind select to prevent text truncation */
#sub-kind {
  font-size: 14px !important;
  padding-left: 12px !important;
  padding-right: 32px !important;
  background-position: right 12px center !important;
}

/* Past Due Subscription Styling */
.sub-card--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.sub-card--danger .sub-card__title,
.sub-card--danger .sub-card__desc,
.sub-card--danger .sub-card__price {
  color: white;
}

.sub-card__badge.badge-danger {
  background: #fef2f2;
  color: #ef4444;
}

.tg-button.btn-retry,
a.tg-button.btn-retry {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.28);
}

.tg-button.btn-retry:hover,
a.tg-button.btn-retry:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

