:root{
  --bg:#0c0a12;
  --card:#141125;
  --border:#2a2344;
  --text:#eae6ff;
  --muted:#a99fce;
  --violet:#6a4df4;
  --violet-2:#8a73ff;
  --gold:#f5c542;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:20px;
}

/* Section */
.tickets-section{
  padding:32px 0;
  color:var(--text);

}
.tw-container{
margin:0 auto;

}
.tw-header{
  display:flex;
  gap:24px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:18px;
}
h2{
 color: #00bfbf; 
}
.tw-sub{
 margin:0;
}

/* Gallery */
.gallery-wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.gallery-viewport{
  overflow:hidden;
  flex:1;
  border-radius:16px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(20,17,37,.8), rgba(20,17,37,.6));
}
.gallery-track{
  display:flex;
  will-change:transform;
  transition:transform .35s ease;
}
.nav-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--card);
  color:#fff;
  font-size:24px;
  line-height:0;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:.2s;
}
.nav-btn:hover{
  border-color:var(--violet-2);
}
.nav-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

/* Cards */
.ticket-card{
  min-width:25%;
  box-sizing:border-box;
  padding:14px;
  border-right:1px solid var(--border);
}
@media (max-width:900px){
  .ticket-card{ min-width:50%; }
}
@media (max-width:560px){
  .ticket-card{ min-width:100%; }
}
.t-card{
  height:100%;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(106,77,244,.18), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(245,197,66,.12), transparent 50%),
    var(--card);
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Image on top of each card */
.t-media{
  position:relative;
  border:1px solid var(--border);
  border-radius:12px;
  background:#120f22;
  display:flex;
  align-items:center;
  justify-content:center;
  height:140px;           /* единая высота превью */
  overflow:hidden;
}
.t-media img{
  max-width:100%;
  max-height:100%;
  display:block;
  object-fit:contain;     /* не режем картинку */
}
.t-media .soldout-badge{
  position:absolute;
  top:8px;
  left:8px;
  background:linear-gradient(90deg,#ff6961,#ff9f68);
  color:#1b0d0d;
  font-weight:800;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
}

/* Head & price */
.t-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.t-badge{
  font-size:12px;
  color:#fff;
  background:linear-gradient(90deg, var(--violet), var(--violet-2));
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
}
.t-price{
  font-size:22px;
  font-weight:800;
  letter-spacing:.3px;
}

/* Progress */
.t-meter{
  display:flex;
  align-items:center;
  gap:8px;
}
.t-progress{
  flex:1;
  height:8px;
  background:#1c1833;
  border:1px solid var(--border);
  border-radius:999px;
  overflow:hidden;
}
.t-progress > span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg, var(--violet), var(--gold));
  transition:width .3s ease;
}
.t-count{
  font-size:12px;
  color:#a99fce;
  min-width:110px;
  text-align:right;
}

/* Fund + Button */
.t-fund{
font-size: 13px;
    color: #00bfbf;
    font-weight: 700;
    margin-top: 2px;
    text-align: center;
}
.t-actions{
  margin-top:auto;
}
.buy-btn{
  width:100%;
  display:inline-block;
  text-align:center;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  background:linear-gradient(90deg, var(--gold), #ffd977);
  color:#352700;
  box-shadow:0 6px 18px rgba(245,197,66,.25);
  text-decoration:none;
}
.buy-btn:hover{
  filter:brightness(1.03);
}
.buy-btn:active{
  transform:translateY(1px);
}
.buy-btn[aria-disabled="true"]{
  opacity:.6;
  cursor:not-allowed;
  filter:grayscale(1);
}

/* Hints */
.hint-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
}
.hint{
  font-size:12px;
  color:#a99fce;
  background:#120f22;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
}
