/* =========================
   TICWIN – CLEAN STYLE.CSS
   ========================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg: #0b1020;
  --bg2: #0f1630;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --accent: #6d5efc;
  --accent2: #26d0ff;
}

html[data-theme="light"]{
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --text: #121318;
  --muted: rgba(18,19,24,.65);
  --card: rgba(0,0,0,.03);
  --border: rgba(0,0,0,.10);
  --accent: #5b5bff;
  --accent2: #00b7ff;
}

/* ---------- Global ---------- */
html.preload #mainNavbar,
html.preload #mainNavbar *,
html.preload .tw-card,
html.preload .offer-img,
html.preload .hero-card,
html.preload .dropdown-menu{
  transition: none !important;
  animation: none !important;
}

.tw-bg{
  background:
    radial-gradient(1200px 600px at 15% 10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: var(--tw-font, inherit);
  min-height: 100vh;
}

.tw-card{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.text-muted,
.small.text-muted{
  color: var(--muted) !important;
}

.cookie-banner{
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  z-index: 1080;
  border: 1px solid rgba(0,0,0,.08);
}

html:not([data-theme="light"]) .cookie-banner{
  background: rgba(15,20,40,.96);
  color: var(--text);
  border-color: rgba(255,255,255,.10);
}

/* ---------- Forms / readability ---------- */
html:not([data-theme="light"]) body{
  color: var(--text);
}

html:not([data-theme="light"]) p,
html:not([data-theme="light"]) h1,
html:not([data-theme="light"]) h2,
html:not([data-theme="light"]) h3,
html:not([data-theme="light"]) h4,
html:not([data-theme="light"]) h5,
html:not([data-theme="light"]) h6,
html:not([data-theme="light"]) label,
html:not([data-theme="light"]) .form-label,
html:not([data-theme="light"]) .card-title,
html:not([data-theme="light"]) .fw-bold,
html:not([data-theme="light"]) .fw-semibold,
html:not([data-theme="light"]) .modal-title,
html:not([data-theme="light"]) .accordion-button,
html:not([data-theme="light"]) .dropdown-item,
html:not([data-theme="light"]) .nav-link,
html:not([data-theme="light"]) .navbar-brand,
html:not([data-theme="light"]) .list-group-item{
  color: var(--text) !important;
}

html:not([data-theme="light"]) .form-control,
html:not([data-theme="light"]) .form-select,
html:not([data-theme="light"]) textarea,
html:not([data-theme="light"]) input{
  background-color: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,.14) !important;
}

html:not([data-theme="light"]) .form-control::placeholder,
html:not([data-theme="light"]) input::placeholder,
html:not([data-theme="light"]) textarea::placeholder{
  color: rgba(255,255,255,.45) !important;
}

html:not([data-theme="light"]) .form-check-label{
  color: var(--text) !important;
}

html:not([data-theme="light"]) .table{
  color: var(--text) !important;
}

html:not([data-theme="light"]) .table td,
html:not([data-theme="light"]) .table th{
  border-color: rgba(255,255,255,.10) !important;
}

html:not([data-theme="light"]) a{
  color: #8fdcff;
}

html:not([data-theme="light"]) a:hover{
  color: #b8ebff;
}

html:not([data-theme="light"]) .btn-outline-secondary{
  color: var(--text) !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* ---------- Proof / soft panels ---------- */
.proof-banner{
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: var(--tw-radius, 16px);
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
}

html:not([data-theme="light"]) .proof-banner{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88) !important;
}

html:not([data-theme="light"]) .proof-banner *{
  color: inherit !important;
}

.tw-soft-panel{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10) !important;
  color: var(--text);
}

.tw-soft-badge{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(255,255,255,.12) !important;
}

/* ---------- Offer image / cards ---------- */
.offer-media{
  border-top-left-radius: var(--tw-radius, 16px);
  border-top-right-radius: var(--tw-radius, 16px);
  overflow: hidden;
}

.offer-img{
  height: 180px;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card.tw-card:hover .offer-img{
  transform: scale(1.04);
}

.offer-img-fallback{
  height: 180px;
  width: 100%;
  display: block;
  background: rgba(0,0,0,.03);
}

html:not([data-theme="light"]) .offer-img-fallback{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72) !important;
}

.card.tw-card .card-body,
.card.tw-card .card-title,
.card.tw-card .text-muted,
.card.tw-card .small{
  color: var(--text);
}

html:not([data-theme="light"]) .card.tw-card .text-muted,
html:not([data-theme="light"]) .card.tw-card .small.text-muted{
  color: rgba(255,255,255,.72) !important;
}

/* ---------- Favorites ---------- */
.favorite-btn{
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  color: rgba(0,0,0,.30);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.favorite-btn:hover{
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,.55);
  transform: scale(1.12);
}

.favorite-btn.active{
  color: #ffc107;
}

html:not([data-theme="light"]) .favorite-btn{
  color: rgba(255,255,255,.55) !important;
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
}

html:not([data-theme="light"]) .favorite-btn:hover{
  color: rgba(255,255,255,.9) !important;
  background: rgba(255,255,255,.08) !important;
}

html:not([data-theme="light"]) .favorite-btn.active{
  color: #ffc107 !important;
  background: rgba(255,193,7,.10) !important;
  border-color: rgba(255,193,7,.28) !important;
}

.favorite-btn.pop,
.js-wish-vote.pop{
  animation: favPop 180ms ease-out;
}

@keyframes favPop{
  0%{ transform: scale(1); }
  60%{ transform: scale(1.35); }
  100%{ transform: scale(1); }
}

/* ---------- Sidebar ---------- */
.sidebar-sticky{
  position: sticky;
  top: 88px;
}

.sidebar-sticky .card.tw-card{
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,0,0,0.08);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .sidebar-sticky .card.tw-card{
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* ---------- Navbar ---------- */
#mainNavbar{
  z-index: 1030;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  transition:
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    backdrop-filter 0.25s ease,
    padding 0.25s ease,
    border-color 0.25s ease;
}

#mainNavbar.nav-scrolled{
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

#mainNavbar .navbar-brand{
  transition: font-size 0.25s ease, transform 0.25s ease;
}

#mainNavbar.nav-scrolled .navbar-brand{
  font-size: 1.05rem;
}

#mainNavbar .nav-link{
  position: relative;
  border-radius: 999px;
  padding: .45rem .8rem;
  margin: 0 .1rem;
  transition: background-color 0.15s ease, color 0.2s ease;
}

#mainNavbar .nav-link::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}

#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after{
  width: calc(100% - 1.2rem);
  left: .6rem;
}

@media (max-width: 991.98px){
  #mainNavbar .nav-link{
    margin: .15rem 0;
  }
  #mainNavbar .nav-link::after{
    display: none;
  }
}

/* navbar dark */
html:not([data-theme="light"]) #mainNavbar{
  background: rgba(10,14,30,.78) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

html:not([data-theme="light"]) #mainNavbar.nav-scrolled{
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

html:not([data-theme="light"]) #mainNavbar .navbar-brand,
html:not([data-theme="light"]) #mainNavbar .nav-link,
html:not([data-theme="light"]) #mainNavbar .btn,
html:not([data-theme="light"]) #mainNavbar .dropdown-toggle{
  color: rgba(255,255,255,.92) !important;
}

html:not([data-theme="light"]) #mainNavbar .nav-link:hover,
html:not([data-theme="light"]) #mainNavbar .navbar-brand:hover{
  color: #fff !important;
}

/* navbar light */
html[data-theme="light"] #mainNavbar{
  background: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

html[data-theme="light"] #mainNavbar .navbar-brand,
html[data-theme="light"] #mainNavbar .nav-link,
html[data-theme="light"] #mainNavbar .btn,
html[data-theme="light"] #mainNavbar .dropdown-toggle{
  color: rgba(18,19,24,.88) !important;
}

html[data-theme="light"] #mainNavbar .nav-link:hover,
html[data-theme="light"] #mainNavbar .navbar-brand:hover{
  color: #121318 !important;
}

html[data-theme="light"] #mainNavbar #themeToggle{
  color: rgba(18,19,24,.88) !important;
  border-color: rgba(0,0,0,.10) !important;
  background: rgba(0,0,0,.02) !important;
}

html:not([data-theme="light"]) #mainNavbar #themeToggle{
  color: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;
}

/* navbar dropdowns */
html:not([data-theme="light"]) #mainNavbar .dropdown-menu{
  background: rgba(15,20,40,.96) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: var(--text) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.38);
}

html[data-theme="light"] #mainNavbar .dropdown-menu{
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  color: #121318 !important;
}

#mainNavbar .dropdown-divider{
  border-top-color: rgba(255,255,255,.10);
}

html[data-theme="light"] #mainNavbar .dropdown-divider{
  border-top-color: rgba(0,0,0,.08);
}

html:not([data-theme="light"]) #mainNavbar .dropdown-menu .form-control,
html:not([data-theme="light"]) #mainNavbar .dropdown-menu .form-select{
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,.14) !important;
}

html[data-theme="light"] #mainNavbar .dropdown-menu .form-control,
html[data-theme="light"] #mainNavbar .dropdown-menu .form-select{
  background: #fff !important;
  color: #121318 !important;
  border-color: rgba(0,0,0,.12) !important;
}

/* ---------- Dropdown / modal / accordion dark ---------- */
html:not([data-theme="light"]) .dropdown-item:hover,
html:not([data-theme="light"]) .dropdown-item:focus{
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

html:not([data-theme="light"]) .modal-content{
  background: rgba(15,20,40,.96) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,.10) !important;
}

html:not([data-theme="light"]) .modal-header,
html:not([data-theme="light"]) .modal-footer{
  border-color: rgba(255,255,255,.10) !important;
}

html:not([data-theme="light"]) .accordion-item{
  background: transparent !important;
  border-color: rgba(255,255,255,.10) !important;
}

html:not([data-theme="light"]) .accordion-button{
  background: rgba(255,255,255,.04) !important;
}

html:not([data-theme="light"]) .accordion-button:not(.collapsed){
  background: rgba(255,255,255,.07) !important;
  box-shadow: none !important;
}

/* ---------- Alerts ---------- */
html:not([data-theme="light"]) .alert-info{
  background: rgba(38,208,255,.10) !important;
  color: var(--text) !important;
  border-color: rgba(38,208,255,.20) !important;
}

html:not([data-theme="light"]) .alert-secondary,
html:not([data-theme="light"]) .alert-light{
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,.10) !important;
}

/* ---------- Tickets ---------- */
.ticket-grid{
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(10, 1fr);
}

.ticket-cell{
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  user-select: none;
  color: #121318;
}

.ticket-free{ opacity: .9; }
.ticket-available{ background: #f1f3f5; }
.ticket-sold{ background: #d0ebff; }
.ticket-mine{
  background: #d3f9d8;
  animation: ticketWin 0.35s ease;
}
.ticket-winner{
  background: #ffe8a1;
  border-color: rgba(0,0,0,.18);
}

html:not([data-theme="light"]) .ticket-cell{
  color: rgba(255,255,255,.92) !important;
}

html:not([data-theme="light"]) .ticket-available{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
}

html:not([data-theme="light"]) .ticket-sold{
  background: rgba(38,208,255,.14) !important;
  border-color: rgba(38,208,255,.22) !important;
}

html:not([data-theme="light"]) .ticket-mine{
  background: rgba(25,135,84,.20) !important;
  border-color: rgba(25,135,84,.35) !important;
  color: #fff !important;
}

html:not([data-theme="light"]) .ticket-winner{
  background: rgba(255,193,7,.22) !important;
  border-color: rgba(255,193,7,.35) !important;
  color: #fff !important;
}

html:not([data-theme="light"]) .ticket-free{
  opacity: 1 !important;
}

@keyframes ticketWin{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.15); }
  100%{ transform: scale(1); }
}

/* ---------- Progress ---------- */
.tw-progress{
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

html[data-theme="light"] .tw-progress{
  background: rgba(0,0,0,0.08);
}

.tw-progress-bar{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .6s ease;
}

/* ---------- Hero ---------- */
.hero-card{
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
}

.hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 15% 20%, rgba(109,94,252,.18), transparent 60%),
    radial-gradient(500px 220px at 85% 25%, rgba(38,208,255,.16), transparent 60%);
  pointer-events: none;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.hero-title{
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle{
  font-size: 1.05rem;
  max-width: 720px;
  color: var(--muted);
}

.hero-point{
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  height: 100%;
}

.hero-point-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  flex: 0 0 auto;
}

.hero-side-panel{
  position: relative;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.hero-side-glow{
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,208,255,.22), transparent 65%);
  pointer-events: none;
}

.hero-stat-card{
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-stat-value{
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

html[data-theme="light"] .hero-kicker,
html[data-theme="light"] .hero-point,
html[data-theme="light"] .hero-side-panel,
html[data-theme="light"] .hero-stat-card{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
}

html[data-theme="light"] .hero-subtitle{
  color: rgba(18,19,24,.72);
}

/* ---------- Toasts ---------- */
.tw-toast-container{
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tw-toast{
  min-width: 260px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: .95rem;
  backdrop-filter: blur(10px);
  animation: twToastIn .25s ease;
}

.tw-toast-success{
  background: rgba(40,167,69,.12);
  border: 1px solid rgba(40,167,69,.35);
}

.tw-toast-danger,
.tw-toast-error{
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.35);
}

.tw-toast-info{
  background: rgba(13,110,253,.12);
  border: 1px solid rgba(13,110,253,.35);
}

@keyframes twToastIn{
  from{
    opacity: 0;
    transform: translateY(-8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Activity strip ---------- */
.activity-strip .card-body{
  position: relative;
}

.activity-dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: #ff4d6d;
  box-shadow: 0 0 0 rgba(255,77,109,.45);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(255,77,109,.45); }
  70%{ box-shadow: 0 0 0 10px rgba(255,77,109,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}

/* ===== Wishes accordion readability ===== */

html:not([data-theme="light"]) #wishesAccordion .accordion-item,
html:not([data-theme="light"]) #wishesAccordion .accordion-body,
html:not([data-theme="light"]) #wishesAccordion .accordion-button,
html:not([data-theme="light"]) #wishesAccordion .accordion-button span,
html:not([data-theme="light"]) #wishesAccordion .accordion-body div,
html:not([data-theme="light"]) #wishesAccordion .accordion-body form,
html:not([data-theme="light"]) #wishesAccordion .accordion-body .me-2 {
  color: var(--text) !important;
}

html:not([data-theme="light"]) #wishesAccordion .accordion-button {
  background: rgba(255,255,255,.04) !important;
  color: var(--text) !important;
}

html:not([data-theme="light"]) #wishesAccordion .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,.07) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

html:not([data-theme="light"]) #wishesAccordion .accordion-button::after {
  filter: invert(1) brightness(1.8);
}

html:not([data-theme="light"]) .js-wish-count.badge.bg-light.text-dark {
  background: rgba(255,255,255,.10) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.10);
}

html:not([data-theme="light"]) #wishesAccordion .border-bottom {
  border-color: rgba(255,255,255,.10) !important;
}

/* =========================
   ADMIN BACKOFFICE
   ========================= */

   .admin-sidebar .list-group-item{
    background: transparent !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }
  
  .admin-sidebar .list-group-item.active{
    background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
    border-color: transparent !important;
    color: #fff !important;
  }
  
  .admin-sidebar .list-group-item-action:hover,
  .admin-sidebar .list-group-item-action:focus{
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
  }
  
  html[data-theme="light"] .admin-sidebar .list-group-item-action:hover,
  html[data-theme="light"] .admin-sidebar .list-group-item-action:focus{
    background: rgba(0,0,0,.04) !important;
    color: #121318 !important;
  }
  
  /* admin header / small muted text */
  .admin-panel-title,
  .admin-panel-subtitle{
    color: var(--text) !important;
  }
  
  .admin-panel-subtitle{
    color: var(--muted) !important;
  }
  
  /* nav tabs */
  .admin-tabs{
    border-bottom-color: var(--border) !important;
  }
  
  .admin-tabs .nav-link{
    color: var(--muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  
  .admin-tabs .nav-link:hover{
    color: var(--text) !important;
    background: rgba(255,255,255,.05) !important;
    border-color: transparent !important;
  }
  
  .admin-tabs .nav-link.active{
    color: var(--text) !important;
    background: rgba(255,255,255,.08) !important;
    border-color: var(--border) var(--border) transparent !important;
  }
  
  html[data-theme="light"] .admin-tabs .nav-link:hover{
    background: rgba(0,0,0,.04) !important;
  }
  
  html[data-theme="light"] .admin-tabs .nav-link.active{
    background: rgba(0,0,0,.03) !important;
  }
  
  /* admin tables */
  .admin-table{
    color: var(--text) !important;
    margin-bottom: 0;
  }
  
  .admin-table > :not(caption) > * > *{
    background: transparent !important;
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
  }
  
  .admin-table thead th{
    color: var(--text) !important;
    background: rgba(255,255,255,.06) !important;
    border-bottom-color: var(--border) !important;
    font-weight: 700;
  }
  
  html[data-theme="light"] .admin-table thead th{
    background: rgba(0,0,0,.04) !important;
  }
  
  .admin-table tbody tr:hover > *{
    background: rgba(255,255,255,.03) !important;
  }
  
  html[data-theme="light"] .admin-table tbody tr:hover > *{
    background: rgba(0,0,0,.025) !important;
  }
  
  /* code / muted cells in admin */
  .admin-table code{
    color: var(--text) !important;
    background: rgba(255,255,255,.08);
    padding: .12rem .35rem;
    border-radius: 8px;
  }
  
  html[data-theme="light"] .admin-table code{
    background: rgba(0,0,0,.06);
  }
  
  .admin-card .text-muted,
  .admin-card .small.text-muted{
    color: var(--muted) !important;
  }
  
  /* admin badges */
  html:not([data-theme="light"]) .admin-card .badge.bg-dark{
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
  }
  
  html:not([data-theme="light"]) .admin-card .badge.bg-secondary{
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
  }
  
  html:not([data-theme="light"]) .admin-card .badge.bg-warning.text-dark{
    color: #121318 !important;
  }
  
  /* admin buttons in dark */
  html:not([data-theme="light"]) .admin-card .btn-outline-secondary,
  html:not([data-theme="light"]) .admin-card .btn-outline-primary,
  html:not([data-theme="light"]) .admin-card .btn-outline-danger{
    color: var(--text) !important;
  }
  
  /* tables wrapper */
  .admin-table-wrap{
    border-radius: 14px;
    overflow: hidden;
  }

  /* admin events */
.admin-table .badge{
  vertical-align: middle;
}

.admin-table td .small + .small{
  line-height: 1.35;
}

/* admin payments */
.admin-card .badge{
  letter-spacing: .01em;
}

/* admin compact action cells */
.admin-table td.text-end .btn,
.admin-table td.text-end form {
  margin-left: 0.25rem;
}

/* settings layout */
.admin-card .form-label{
  font-weight: 600;
}

.admin-card hr{
  border-color: var(--border);
}

/* theme editor */
.admin-card textarea.form-control{
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92rem;
}

/* featured offer */
.featured-offer-card{
  overflow: hidden;
  border-radius: 24px !important;
}

.featured-offer-img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px){
  .featured-offer-img{
    min-height: 240px;
  }
}

/* =========================
   Sticky ticket CTA
   ========================= */

   .sticky-ticket-bar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
  
    background: rgba(20,25,45,.92);
    border-top: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
  
    transform: translateY(100%);
    transition: transform .35s ease;
  }
  
  .sticky-ticket-bar.visible{
    transform: translateY(0);
  }
  
  .sticky-ticket-info{
    line-height: 1.2;
  }
  
  .sticky-ticket-btn{
    white-space: nowrap;
  }
  
  html[data-theme="light"] .sticky-ticket-bar{
    background: rgba(255,255,255,.95);
    border-top: 1px solid rgba(0,0,0,.08);
  }
  
  @media (min-width: 992px){
    .sticky-ticket-bar{
      left: 50%;
      right: auto;
      width: min(720px, calc(100% - 32px));
      transform: translate(-50%,100%);
      border-radius: 16px 16px 0 0;
    }
  
    .sticky-ticket-bar.visible{
      transform: translate(-50%,0);
    }
  }

  #ticketPurchase{
    scroll-margin-top: 110px;
  }

  /* live offer activity */
.offer-activity-box{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px 14px;
}

html[data-theme="light"] .offer-activity-box{
  background: rgba(0,0,0,.025);
}

.offer-activity-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.offer-activity-item:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

html[data-theme="light"] .offer-activity-item{
  border-bottom-color: rgba(0,0,0,.06);
}

.offer-activity-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .78rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

html[data-theme="light"] .offer-activity-badge{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.08);
}

.admin-table td .small[style*="white-space: pre-line"]{
  line-height: 1.45;
}

/* =========================
   Winners strip
   ========================= */

   .winners-strip{
    overflow: hidden;
  }
  
  .winner-item{
    height: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  }
  
  .winner-item:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.06);
  }
  
  .winner-name{
    font-weight: 700;
  }
  
  html[data-theme="light"] .winner-item{
    background: rgba(0,0,0,.025);
  }
  
  html[data-theme="light"] .winner-item:hover{
    background: rgba(0,0,0,.04);
  }

  /* hot / popular offer polish */
.badge.bg-danger-subtle{
  background: rgba(220,53,69,.12) !important;
}

html:not([data-theme="light"]) .badge.bg-danger-subtle{
  background: rgba(220,53,69,.16) !important;
  color: #ffb3bd !important;
  border-color: rgba(220,53,69,.28) !important;
}

/* homepage trust section */

.tw-card .h5{
  font-weight:600;
}

.tw-card .small{
  opacity:.85;
}

/* admin recent activity */

.admin-event-mini{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.admin-event-mini + .admin-event-mini{
  margin-top: 8px;
}

html[data-theme="light"] .admin-event-mini{
  background: rgba(0,0,0,.02);
}

/* ALERT – missing shipping (dark-safe) */
.alert-shipping-warning {
  background: rgba(255, 193, 7, 0.12); /* jemná žlutá */
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: var(--text-color, #eaeaea);
  border-radius: 12px;
}

/* title */
.alert-shipping-warning .fw-semibold {
  color: #ffc107; /* výrazná žlutá */
}

/* text */
.alert-shipping-warning .small {
  color: rgba(255,255,255,0.75);
}

/* button */
.alert-shipping-warning .btn-warning {
  background: #ffc107;
  border: none;
  color: #000;
}

.alert-shipping-warning .btn-warning:hover {
  background: #e0a800;
}

.alert-shipping-warning {
  box-shadow: 0 0 0 1px rgba(255,193,7,0.2),
              0 4px 20px rgba(255,193,7,0.08);
}

/* =========================
   WIN TIMELINE
   ========================= */

   .win-timeline{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
  }
  
  .win-step{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
    color:var(--text);
    font-size:.92rem;
    line-height:1.2;
  }
  
  .win-step.done{
    border-color:rgba(40,167,69,.35);
    background:rgba(40,167,69,.12);
  }
  
  .win-step.active{
    border-color:rgba(255,193,7,.35);
    background:rgba(255,193,7,.12);
  }
  
  .win-step.muted{
    opacity:.75;
  }
  
  .win-step-icon{
    width:26px;
    height:26px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.9rem;
    background:rgba(255,255,255,.08);
    flex:0 0 auto;
  }
  
  html[data-theme="light"] .win-step{
    background:rgba(0,0,0,.025);
    border-color:rgba(0,0,0,.08);
    color:#121318;
  }
  
  html[data-theme="light"] .win-step.done{
    background:rgba(40,167,69,.08);
    border-color:rgba(40,167,69,.22);
  }
  
  html[data-theme="light"] .win-step.active{
    background:rgba(255,193,7,.12);
    border-color:rgba(255,193,7,.26);
  }
  
  html[data-theme="light"] .win-step-icon{
    background:rgba(0,0,0,.05);
  }

  /* === SHIPPING WARNING ALERT (light mode) === */
.alert-shipping-warning {
  background: linear-gradient(135deg, #fff4cc, #ffe8a3);
  border: 1px solid #ffd666;
  color: #5c3d00;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* headline */
.alert-shipping-warning .fw-semibold {
  font-size: 1rem;
  color: #5c3d00;
}

/* text */
.alert-shipping-warning .small {
  color: #7a5600;
}

/* button */
.alert-shipping-warning .btn-warning {
  background-color: #ffc107;
  border: none;
  font-weight: 500;
}

.alert-shipping-warning .btn-warning:hover {
  background-color: #e0a800;
}

.alert-shipping-warning {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(255, 193, 7, 0.2); }
  50% { box-shadow: 0 0 12px rgba(255, 193, 7, 0.35); }
  100% { box-shadow: 0 0 0 rgba(255, 193, 7, 0.2); }
}

.activity-live-card .winner-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.activity-live-card .winner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

#pwaInstallBtn {
  white-space: nowrap;
}

.tw-ios-install-hint {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
}

.tw-ios-install-hint-inner {
  background: rgba(15, 17, 21, 0.94);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.tw-pwa-update {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1090;
}

.tw-pwa-update-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 24, 32, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .tw-pwa-update-inner {
    flex-direction: column;
    align-items: stretch;
  }
}