:root{
  /* Base (lebih terang & clean) */
  --bg0:#0A0F1F;
  --bg1:#0E1530;

  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.10);

  --text:#F8FAFF;
  --muted: rgba(248,250,255,.78);
  --muted2: rgba(248,250,255,.60);

  /* Bright Luxury palette */
  --gold:#F2D58B;      /* champagne gold */
  --gold2:#D8B55A;
  --ruby:#C83A4A;      /* ruby soft */
  --ruby2:#8C1D2A;
  --teal:#6FF3D8;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;

  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  overflow-x:hidden;

  /* Ruby-first background (lebih merah & jelas, tapi tetap premium) */
  background:
    /* ruby halo utama - lebih besar & lebih kuat */
    radial-gradient(1300px 820px at 10% 8%, rgba(200,58,74,.42), transparent 58%),

    /* ruby wash supaya merah “nempel” di seluruh canvas */
    radial-gradient(1200px 900px at 55% 22%, rgba(200,58,74,.22), transparent 62%),

    /* gold tetap ada tapi diturunkan biar gak ngalahin ruby */
    radial-gradient(1000px 720px at 88% 16%, rgba(242,213,139,.16), transparent 62%),

    /* teal tipis saja */
    radial-gradient(900px 650px at 70% 82%, rgba(111,243,216,.10), transparent 62%),

    /* base */
    linear-gradient(180deg, #111A36, var(--bg0) 62%, #070B18);
}


.wrap{ max-width:var(--max); margin:0 auto; padding:0 18px; }
a{ color:inherit; text-decoration:none; }

.bg-orb{
  position:fixed;
  width:560px;
  height:560px;
  filter: blur(80px);
  opacity:.55;
  z-index:-1;
}
.orb1{
  left:-180px; top:-150px;
  background: radial-gradient(circle at 35% 35%, rgba(200,58,74,.62), transparent 58%);
}
.orb2{
  right:-220px; top:80px;
  background: radial-gradient(circle at 35% 35%, rgba(242,213,139,.52), transparent 58%);
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--stroke2);
  background: rgba(10,15,31,.62);
  backdrop-filter: blur(14px);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand-mark{
  width:44px;
  height:44px;
  border-radius:16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(242,213,139,1), rgba(242,213,139,.10) 55%, transparent 70%),
    linear-gradient(135deg, rgba(200,58,74,1), rgba(140,29,42,1));
  box-shadow:
    0 18px 40px rgba(200,58,74,.16),
    0 14px 34px rgba(242,213,139,.14);
  position:relative;
}
.brand-mark::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 55%);
  mix-blend-mode: overlay;
  opacity:.50;
}

.brand-name{ font-weight:900; letter-spacing:.7px; }
.brand-sub{ font-size:12px; color:var(--muted2); margin-top:2px; }

.top-actions{ display:flex; gap:10px; align-items:center; }

.ghost{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition:.2s ease;
}
.ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(242,213,139,.24);
}

/* ===== Hero ===== */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  padding: 28px 0 12px;
  position:relative;
}

/* glass panel (lebih terang & “premium”) */
.hero::before{
  content:"";
  position:absolute;
  inset:-14px -14px auto -14px;
  height: 270px;
  border-radius: 36px;
  background:
    radial-gradient(520px 220px at 20% 22%, rgba(242,213,139,.28), transparent 62%),
    radial-gradient(620px 260px at 60% 0%, rgba(200,58,74,.22), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  z-index:-1;
}

.hero h1{
  font-size:44px;
  margin:0 0 10px;
  letter-spacing:-.8px;
  line-height:1.05;
  background: linear-gradient(90deg, rgba(242,213,139,1), rgba(248,250,255,1), rgba(111,243,216,.88));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}

.muted{ color:var(--muted); }

.hero-controls{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-direction:column;
}

.search{
  position:relative;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(242,213,139,.22);
  border-radius:18px;
  padding: 13px 14px 13px 42px;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
.search-icon{
  position:absolute;
  left:14px;
  top:11px;
  opacity:.85;
  font-size:16px;
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:.2s ease;
  font-size:13px;
}
.chip:hover{ border-color: rgba(242,213,139,.26); }
.chip.active{
  color:var(--text);
  border-color: rgba(242,213,139,.38);
  background: linear-gradient(135deg, rgba(200,58,74,.18), rgba(242,213,139,.14));
  box-shadow: 0 12px 28px rgba(200,58,74,.12);
}

.hero-right{ display:grid; gap:12px; }
.statcard{
  background:
    radial-gradient(280px 170px at 18% 0%, rgba(242,213,139,.20), transparent 62%),
    radial-gradient(300px 190px at 85% 25%, rgba(200,58,74,.18), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.stat-title{ font-size:12px; color:var(--muted2); }
.stat-value{ font-size:28px; font-weight:900; margin-top:6px; }
.stat-note{ font-size:12px; color:var(--muted2); margin-top:6px; }

/* ===== Grid ===== */
.grid-head{ margin-top:22px; }
.grid-head h2{ margin:0 0 6px; font-size:22px; letter-spacing:-.2px; }
.grid-head p{ margin:0; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  padding: 14px 0 30px;
}

/* ===== CARD UPGRADE (Elegant Luxury Glass) ===== */
/* Ini menggantikan total blok GOLD OUTLINE UPGRADE kamu */

.card, .statcard{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius2);

  background:
    radial-gradient(420px 220px at 18% 10%, rgba(242,213,139,.10), transparent 60%),
    radial-gradient(520px 260px at 85% 18%, rgba(200,58,74,.10), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));

  border: 1px solid rgba(255,255,255,.14);
  border-top-color: rgba(255,255,255,.18);

  box-shadow:
    0 22px 60px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.18);

  backdrop-filter: blur(12px);
}

/* highlight ring halus */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background:
    radial-gradient(600px 240px at 20% 12%, rgba(242,213,139,.22), transparent 55%),
    radial-gradient(540px 220px at 88% 18%, rgba(111,243,216,.14), transparent 60%);
  opacity:.45;
}

/* inner frame tipis (biar kelihatan mahal) */
.card::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius: calc(var(--radius2) - 10px);
  pointer-events:none;
  border: 1px solid rgba(255,255,255,.06);
  opacity:.90;
}

.card:hover{
  border-color: rgba(242,213,139,.22);
  box-shadow:
    0 28px 78px rgba(0,0,0,.52),
    0 0 0 1px rgba(242,213,139,.10),
    inset 0 1px 0 rgba(255,255,255,.20);
  transform: translateY(-1px);
}

/* statcard tetap konsisten tapi tenang */
.statcard:hover{
  border-color: rgba(242,213,139,.20);
}

/* ===== Badges & content ===== */
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}
.badge.live{
  border-color: rgba(242,213,139,.55);
  background: rgba(242,213,139,.10);
  color:#FFD98A;
  font-weight:800;
  box-shadow: 0 10px 22px rgba(255,215,0,.10);
  text-shadow: 0 0 8px rgba(255,215,0,.22);
}
.badge.soon{
  border-color: rgba(242,213,139,.24);
  color: rgba(255,246,226,.96);
  background: rgba(242,213,139,.08);
}
.badge.end{
  border-color: rgba(255,255,255,.16);
  color: rgba(248,250,255,.70);
}

.title{ font-weight:900; letter-spacing:.2px; margin:0 0 8px; font-size:16px; }
.desc{ margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.6; }
.meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted2);
  font-size:12px;
  margin-bottom:14px;
}

.btnrow{ display:flex; gap:10px; align-items:center; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(242,213,139,.42);
  background: linear-gradient(135deg, rgba(200,58,74,.36), rgba(242,213,139,.20));
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
  box-shadow:
    0 18px 34px rgba(200,58,74,.14),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.btn:hover{ transform: translateY(-1px); }

.small{
  padding:11px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.small:hover{ border-color: rgba(242,213,139,.22); }

/* ===== Footer ===== */
.footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.10);
  padding:18px 0 26px;
  color:var(--muted2);
  font-size:12px;
}

/* ===== Modal (center & clean) ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.modal.show{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(7px);
}

.modal-card{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width:min(620px, calc(100% - 28px));
  border-radius: 26px;
  padding:18px;
  background:
    radial-gradient(320px 190px at 18% 0%, rgba(242,213,139,.22), transparent 62%),
    radial-gradient(380px 240px at 92% 25%, rgba(200,58,74,.20), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.modal-title{
  font-weight:950;
  font-size:16px;
  letter-spacing:.2px;
}

.modal-sub{
  font-size:12px;
  margin-top:4px;
  color: var(--muted);
}

.iconbtn{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-size:22px;
  line-height:0;
}

.modal-preview{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:13px;
  line-height:1.6;
  word-break: break-word;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .hero{ grid-template-columns:1fr; gap:14px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .hero h1{ font-size:36px; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns:1fr; }
}

/* ===== LOGO IMAGE (FINAL) ===== */
.brand-mark.logo-img{
  background: none !important;
}
.brand-mark.logo-img::after{
  display:none !important;
}

.logo-img{
  background-image: url("https://eventwinner.site/event/assets/logoqqmilan.png") !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  border: 1px solid rgba(242,213,139,.28);
}

/* ===== HIDE ICON BOX ===== */
.brand-mark{
  display:none !important;
}

/* ===== BRAND NAME AS LOGO IMAGE ===== */
.brand-name{
  width:160px;               /* atur sesuai logo */
  height:32px;
  background: url("https://eventwinner.site/event/assets/logoqqmilan.png") center / contain no-repeat;
  text-indent:-9999px;       /* sembunyikan teks */
  overflow:hidden;
  display:block;
}

/* ===== FORCE: HILANGKAN KOTAK & JARAKNYA ===== */
.brand{
  gap:0 !important;              /* hilangkan jarak bekas kotak */
}
.brand-mark{
  display:none !important;       /* kotak hilang total */
  width:0 !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* ===== FORCE: QQMILAN JADI LOGO IMAGE ===== */
.brand-name{
  width:170px !important;        /* sesuaikan kalau perlu */
  height:34px !important;
  display:block !important;

  background-image: url("https://eventwinner.site/event/assets/logoqqmilan.png") !important;
  background-position: left center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;

  /* matikan teksnya dengan cara paling pasti */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  user-select: none !important;

  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

/* sub-title tetap rapi walau gap = 0 */
.brand > div{
  margin-left: 0 !important;
}
/* =========================
   FIX FINAL ICON STATCARD
   ========================= */

/* 1) statcard action harus jadi container row */
.statcard.stat-action{
  display:block;                 /* karena ini <a> */
}

.statcard.stat-action .stat-row{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
}

/* 2) Paksa semua IMG di dalam statcard jadi kecil (override global img rules) */
.statcard.stat-action img,
.statcard.stat-action .stat-icon{
  width:42px !important;
  height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  flex: 0 0 42px !important;
  object-fit: contain !important;
  display:block !important;
}

/* 3) Lindungi kalau ada rule img { width:100% } + cegah gambar "meledak" */
.statcard{
  overflow:hidden;               /* aman, card tidak bocor */
}

/* 4) Teks harus fleksibel */
.statcard.stat-action .stat-row > div{
  flex:1 1 auto !important;
  min-width:0 !important;
}
/* FIX KERAS: icon di statcard jangan pernah melebar */
.hero-right .statcard.stat-action .stat-row > img.stat-icon{
  width:42px !important;
  height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  flex: 0 0 42px !important;
  display:block !important;
  object-fit: contain !important;
}

/* jika ada rule img{width:100%} tetap akan kalah oleh selector ini */
.hero-right .statcard.stat-action .stat-row{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
}

/* cegah gambar “bocor” keluar card */
.hero-right .statcard{
  overflow:hidden;
}

