/* SecureTixx — distinct layout (not Tixx retail clone) */
.stx-app {
  --stx-bg: #f4f1ea;
  --stx-surface: #ffffff;
  --stx-ink: #1a1f2e;
  --stx-muted: #5c6478;
  --stx-line: #e2ddd3;
  --stx-emerald: #059669;
  --stx-emerald-dark: #047857;
  --stx-emerald-soft: rgba(5, 150, 105, 0.12);
  --stx-radius: 14px;
  --stx-radius-lg: 22px;
  --stx-shadow: 0 18px 48px rgba(26, 31, 46, 0.08);
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
  background: var(--stx-bg) !important;
  color: var(--stx-ink);
}

.stx-app .topbar,
.stx-app .topbar--simple {
  display: none !important;
}

/* —— Header —— */
.stx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stx-line);
}
.stx-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stx-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.stx-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}
.stx-nav a {
  color: var(--stx-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.stx-nav a:hover {
  color: var(--stx-ink);
  background: var(--stx-emerald-soft);
}
.stx-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stx-header-actions .tixx-settings-btn-nav {
  border: 1px solid var(--stx-line);
  background: var(--stx-surface);
  color: var(--stx-muted);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
}
.stx-header-actions .tm-topbar-login-btn {
  background: var(--stx-emerald) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.55rem 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}
.stx-header-actions .tm-topbar-account-trigger {
  background: var(--stx-emerald-soft) !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
  color: var(--stx-emerald-dark) !important;
  border-radius: 10px !important;
}

/* —— Shell: sidebar + main —— */
.stx-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .stx-shell { grid-template-columns: 1fr; }
  .stx-sidebar { order: 2; }
}

.stx-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stx-sidebar-card {
  background: var(--stx-surface);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius-lg);
  padding: 1.15rem;
  box-shadow: var(--stx-shadow);
}
.stx-sidebar-card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stx-muted);
}
.stx-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stx-cat-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--stx-ink);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.stx-cat-list a:hover {
  background: var(--stx-emerald-soft);
}
.stx-cat-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.stx-cat-ico--all { background: #dbeafe; }
.stx-cat-ico--concerts { background: #fce7f3; }
.stx-cat-ico--sports { background: #d1fae5; }
.stx-cat-ico--shows { background: #fef3c7; }

.stx-trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--stx-muted);
  font-weight: 500;
}
.stx-trust-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.stx-trust-list svg {
  width: 18px;
  height: 18px;
  color: var(--stx-emerald);
  flex-shrink: 0;
  margin-top: 1px;
}

/* —— Hero (split, no concert photo) —— */
.stx-main-col { min-width: 0; }
.stx-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .stx-hero { grid-template-columns: 1fr; }
}
.stx-hero-copy {
  background: linear-gradient(145deg, #064e3b 0%, #047857 48%, #10b981 100%);
  color: #ecfdf5;
  border-radius: var(--stx-radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--stx-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}
.stx-hero-copy .stx-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.stx-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stx-hero-copy .tm-retail-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 42ch;
}
.stx-hero-copy .tm-retail-cta {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.65rem 1.25rem;
  background: #fff;
  color: var(--stx-emerald-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.875rem;
  border: none;
}
.stx-hero-art {
  background: var(--stx-surface);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius-lg);
  min-height: 240px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.stx-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(5, 150, 105, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.25) 0%, transparent 40%),
    repeating-linear-gradient(-12deg, transparent, transparent 18px, rgba(5, 150, 105, 0.06) 18px, rgba(5, 150, 105, 0.06) 19px);
}
.stx-hero-shield {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  color: var(--stx-emerald);
  opacity: 0.9;
}
.stx-hero-hidden-img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Hide old Tixx hero/search */
.stx-app .tm-retail-hero:not(.stx-hero-hidden),
.stx-app .tm-search-strip-wrap:not(.stx-search-wrap),
.stx-app .home-trust:not(.stx-trust-inline),
.stx-app .home-categories:not(.stx-categories-hidden),
.stx-app .home-guest-strip:not(.stx-guest-bar) {
  display: none !important;
}

/* —— Search stack —— */
.stx-search-wrap {
  margin-bottom: 1.25rem;
}
.stx-search-card {
  background: var(--stx-surface);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--stx-shadow);
}
.stx-search-card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.stx-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .stx-search-grid { grid-template-columns: 1fr; }
}
.stx-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stx-muted);
  margin-bottom: 0.35rem;
}
.stx-field input,
.stx-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--stx-line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9375rem;
  background: #fafafa;
  color: var(--stx-ink);
}
.stx-field input:focus,
.stx-field select:focus {
  outline: 2px solid var(--stx-emerald-soft);
  border-color: var(--stx-emerald);
}
.stx-field--wide {
  grid-column: 1 / -1;
}
.stx-search-submit {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--stx-emerald);
  color: #fff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}
.stx-search-submit:hover {
  background: var(--stx-emerald-dark);
}

/* —— Discover / events —— */
.stx-app .home-content {
  max-width: none;
  padding: 0;
}
.stx-app .home-section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stx-ink);
}
.stx-app .home-section-link {
  color: var(--stx-emerald);
  font-weight: 700;
}
.stx-app .home-carousel-track,
.stx-app .home-event-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
  scroll-snap-type: none;
}
.stx-app .home-event-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  background: var(--stx-surface);
  border: 1px solid var(--stx-line);
  border-radius: var(--stx-radius);
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(26, 31, 46, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stx-app .home-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--stx-shadow);
}
.stx-app .home-event-art {
  width: 120px;
  height: 96px;
  border-radius: 10px;
  min-height: 96px;
}
.stx-app .home-event-body {
  padding: 0.15rem 0;
}
.stx-app .home-event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stx-ink);
}
.stx-app .home-shop-banner {
  background: var(--stx-ink);
  border-radius: var(--stx-radius-lg);
  margin-top: 1.5rem;
  border: none;
}
.stx-app .home-shop-banner a {
  background: var(--stx-emerald);
  color: #fff;
  border-radius: 10px;
}
.stx-guest-bar {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--stx-surface);
  border: 1px dashed var(--stx-line);
  border-radius: var(--stx-radius);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--stx-muted);
}
.stx-guest-bar a {
  color: var(--stx-emerald);
  font-weight: 700;
}

/* —— Footer —— */
.stx-app .tm-site-footer--simple {
  background: var(--stx-ink) !important;
  margin-top: 2rem;
  border-top: 3px solid var(--stx-emerald);
}
.stx-app .tm-footer-disclaimer,
.stx-app .tm-footer-legal a {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* —— Shop page —— */
.stx-app.stx-shop .shop-hero,
.stx-app.stx-shop .hero-section {
  display: none !important;
}
.stx-app.stx-shop .topbar {
  display: none !important;
}
.stx-app.stx-shop {
  padding-top: 0;
}
.stx-shop-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stx-line);
  padding: 0.75rem 1.25rem;
}
.stx-shop-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stx-app.stx-shop .page-wrap,
.stx-app.stx-shop .shop-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
}
.stx-app.stx-shop .event-card,
.stx-app.stx-shop .shop-event-row {
  border-radius: var(--stx-radius) !important;
  border-color: var(--stx-line) !important;
}

/* —— Login / My tickets —— */
.stx-app.stx-login .topbar,
.stx-app.stx-wallet .topbar {
  display: none !important;
}
.stx-app.stx-login main,
.stx-app.stx-wallet main {
  padding-top: 0;
}
.stx-app .tm-login-card,
.stx-app .tm-auth-panel {
  border-radius: var(--stx-radius-lg) !important;
  border-color: var(--stx-line) !important;
  box-shadow: var(--stx-shadow) !important;
}
.stx-app .tm-my-tickets-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
}
.stx-app .tm-ticket-tile {
  border-radius: var(--stx-radius) !important;
  border: 1px solid var(--stx-line) !important;
}
