:root {
  --ugfx-bg: #050507;
  --ugfx-bg-soft: #0c0d12;
  --ugfx-panel: rgba(20, 22, 29, 0.78);
  --ugfx-panel-strong: rgba(12, 14, 20, 0.92);
  --ugfx-line: rgba(255, 122, 0, 0.22);
  --ugfx-orange: #ff6a00;
  --ugfx-orange-2: #ff9a1f;
  --ugfx-orange-3: #ff7a00;
  --ugfx-red: #ff3b1f;
  --ugfx-warm: #ffd6a0;
  --ugfx-text: #f6f1ea;
  --ugfx-muted: #a2a5ad;
  --ugfx-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --ugfx-radius: 24px;
}
html { scroll-behavior: smooth; }
body.ugfx-body {
  color: var(--ugfx-text);
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 50% 0%, rgba(255,106,0,0.18), transparent 35%), linear-gradient(180deg, #07080c 0%, #050507 100%);
  min-height: 100vh;
}
.ugfx-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 0, 0.12), transparent 20%),
    radial-gradient(circle at 80% 15%, rgba(255, 59, 31, 0.12), transparent 18%),
    radial-gradient(circle at 50% 75%, rgba(255, 154, 31, 0.08), transparent 22%);
  pointer-events: none;
  z-index: -2;
}
.ugfx-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,154,31,.22) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}
main { padding-bottom: 7rem; }
.ugfx-topbar { backdrop-filter: blur(18px); background: rgba(5,5,7,.72); border-bottom: 1px solid rgba(255,122,0,.16); }
.ugfx-brand { display:flex; align-items:center; gap:.9rem; font-family:'Orbitron', sans-serif; }
.ugfx-brand-mark {
  display:inline-grid; place-items:center; width:52px; height:52px; border-radius:50%;
  background: linear-gradient(135deg, rgba(255,106,0,.18), rgba(255,59,31,.18));
  border:1px solid rgba(255,154,31,.38); box-shadow: 0 0 28px rgba(255,106,0,.24), inset 0 0 18px rgba(255,154,31,.15);
  font-weight:800; letter-spacing:.08em; color:var(--ugfx-warm);
}
.ugfx-brand-text { font-weight:700; letter-spacing:.08em; font-size:1rem; }
.ugfx-nav .nav-link {
  color: rgba(246,241,234,.86); padding: .8rem .95rem !important; border-radius:999px; font-weight:600;
}
.ugfx-nav .nav-link.active, .ugfx-nav .nav-link:hover {
  color:#fff; background:linear-gradient(135deg, rgba(255,106,0,.16), rgba(255,59,31,.12)); box-shadow: inset 0 0 0 1px rgba(255,154,31,.22);
}
.ugfx-btn-primary, .ugfx-btn-outline {
  border-radius: 999px; font-weight: 700; letter-spacing:.02em; padding:.78rem 1.15rem; transition: .25s ease;
}
.ugfx-btn-primary {
  background: linear-gradient(135deg, var(--ugfx-orange), var(--ugfx-red)); border: 0; color:#fff; box-shadow: 0 12px 30px rgba(255, 106, 0, .25);
}
.ugfx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255, 106, 0, .35); }
.ugfx-btn-outline {
  color: var(--ugfx-warm); border:1px solid rgba(255,154,31,.34); background: rgba(255,255,255,.03);
}
.ugfx-btn-outline:hover { background: rgba(255,154,31,.08); color:#fff; }
.ugfx-hero {
  position: relative; overflow: hidden; min-height: 88vh; display:flex; align-items:center;
}
.ugfx-hero::before {
  content:''; position:absolute; inset:0; background:
    linear-gradient(90deg, rgba(5,5,7,.96) 0%, rgba(5,5,7,.74) 48%, rgba(5,5,7,.48) 100%),
    url('../img/brand/ugfx-hero.png') center/cover no-repeat;
  filter: saturate(1.08) contrast(1.02);
}
.ugfx-hero::after {
  content:''; position:absolute; inset:auto 0 0 0; height:180px; background:linear-gradient(180deg, transparent, rgba(5,5,7,.94));
}
.ugfx-hero-content { position:relative; z-index:1; }
.ugfx-kicker {
  display:inline-flex; gap:.6rem; align-items:center; border:1px solid rgba(255,154,31,.24); background:rgba(10,10,14,.55);
  padding:.5rem .9rem; border-radius:999px; color:var(--ugfx-warm); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:.8rem;
}
.ugfx-display {
  font-family:'Orbitron', sans-serif; font-size: clamp(2.3rem, 5.3vw, 5rem); line-height:.9; letter-spacing:.01em; margin:1rem 0 1.25rem;
  text-shadow: 0 0 34px rgba(255,106,0,.14);
}
.ugfx-lead { color: var(--ugfx-muted); font-size: 1.1rem; max-width: 680px; }
.ugfx-hero-cta { display:flex; gap:1rem; flex-wrap:wrap; margin-top:2rem; }
.ugfx-stats-row { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; margin-top:2rem; }
.ugfx-stat-card, .ugfx-panel {
  background: var(--ugfx-panel); border:1px solid var(--ugfx-line); box-shadow: var(--ugfx-shadow); border-radius: var(--ugfx-radius); backdrop-filter: blur(18px);
}
.ugfx-stat-card { padding:1.25rem; }
.ugfx-stat-card strong { display:block; font-size:1.35rem; }
.section-pad { padding: 5rem 0; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading .title { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; }
.section-heading .copy { color: var(--ugfx-muted); max-width: 720px; }
.ugfx-feature-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.2rem; }
.ugfx-feature-card, .ugfx-card {
  position: relative; overflow:hidden; border-radius: var(--ugfx-radius); padding:1.35rem; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border:1px solid var(--ugfx-line); box-shadow: var(--ugfx-shadow);
}
.ugfx-feature-card::before, .ugfx-card::before {
  content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(255,106,0,.08), transparent 35%, rgba(255,59,31,.05) 100%); pointer-events:none;
}
.ugfx-icon-badge {
  width:54px; height:54px; display:grid; place-items:center; border-radius:18px; margin-bottom:1rem; font-size:1.25rem;
  background:linear-gradient(135deg, rgba(255,106,0,.18), rgba(255,59,31,.12)); border:1px solid rgba(255,154,31,.22);
}
.ugfx-card:hover, .ugfx-feature-card:hover { transform: translateY(-4px); transition: .2s ease; }
.ugfx-grid-2 { display:grid; grid-template-columns:1.35fr .95fr; gap:1.25rem; }
.ugfx-media-card img { width:100%; height:100%; object-fit:cover; }
.ugfx-news-grid, .ugfx-team-grid, .ugfx-event-grid, .ugfx-chart-grid { display:grid; gap:1.25rem; }
.ugfx-news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ugfx-team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ugfx-event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ugfx-chat-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; }
.ugfx-card h3, .ugfx-card h4, .ugfx-card h5 { position:relative; z-index:1; }
.ugfx-muted, .text-secondary { color: var(--ugfx-muted) !important; }
.ugfx-chip { display:inline-flex; align-items:center; gap:.45rem; border-radius:999px; padding:.45rem .8rem; border:1px solid rgba(255,154,31,.2); color:var(--ugfx-warm); background:rgba(255,255,255,.03); }
.ugfx-live-pill { color:#fff; background:linear-gradient(135deg, rgba(255,59,31,.85), rgba(255,106,0,.85)); border-radius:999px; padding:.4rem .7rem; font-size:.75rem; font-weight:800; letter-spacing:.08em; }
.table.ugfx-table { --bs-table-bg: transparent; --bs-table-color: var(--ugfx-text); --bs-table-border-color: rgba(255,255,255,.08); }
.table.ugfx-table tr.live-row { background: rgba(255,106,0,.08); }
.form-control, .form-select, textarea {
  background: rgba(12,14,20,.84) !important; border: 1px solid rgba(255,154,31,.18) !important; color: #fff !important; border-radius: 16px !important; padding: .9rem 1rem !important;
}
.form-control:focus, .form-select:focus, textarea:focus { box-shadow: 0 0 0 .2rem rgba(255,106,0,.12) !important; border-color: rgba(255,154,31,.45) !important; }
.ugfx-footer { padding: 4rem 0 8rem; border-top: 1px solid rgba(255,154,31,.12); background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.02)); }
.ugfx-footer-brand { font-family:'Orbitron', sans-serif; font-weight:800; margin-bottom:.8rem; }
.ugfx-footer-links a { color: var(--ugfx-muted); text-decoration:none; display:inline-block; padding:.2rem 0; }
.ugfx-footer-links a:hover { color:#fff; }
.ugfx-playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; padding: .8rem 0;
  background: linear-gradient(180deg, rgba(5,5,7,.15), rgba(5,5,7,.92) 40%);
}
.ugfx-playerbar-inner {
  display:flex; justify-content:space-between; gap:1rem; align-items:center; border-radius:24px; padding:.9rem 1rem; background:rgba(10,10,14,.82); border:1px solid rgba(255,154,31,.2); box-shadow:var(--ugfx-shadow); backdrop-filter: blur(18px);
}
.ugfx-player-thumb { width:56px; height:56px; object-fit:cover; border-radius:16px; }
.ugfx-micro-label { font-size:.72rem; letter-spacing:.12em; color:var(--ugfx-warm); font-weight:800; }
.ugfx-player-title { font-weight:800; }
.ugfx-player-meta { color:var(--ugfx-muted); font-size:.92rem; }
.ugfx-page-hero { padding: 4.5rem 0 2rem; }
.ugfx-page-hero .page-title { font-size: clamp(2rem, 5vw, 4rem); font-family:'Orbitron'; margin-bottom:.6rem; }
.ugfx-page-hero .page-copy { color: var(--ugfx-muted); max-width: 760px; }
.ugfx-team-avatar { width:100%; aspect-ratio: 4 / 4.3; object-fit:cover; border-radius:18px; margin-bottom:1rem; background:#0f121a; }
.ugfx-chat-messages { max-height: 540px; overflow:auto; display:flex; flex-direction:column; gap:.9rem; }
.ugfx-message { padding:1rem; border-radius:18px; background:rgba(255,255,255,.03); border:1px solid rgba(255,154,31,.13); }
.ugfx-message.system { background:rgba(255,106,0,.09); }
.ugfx-message .meta { font-size:.82rem; color:var(--ugfx-muted); margin-bottom:.4rem; }
.ugfx-message .gif-wrap img { max-width: 100%; border-radius: 14px; margin-top: .75rem; }
.ugfx-admin-shell { min-height:100vh; background:linear-gradient(180deg,#07080c,#050507); }
.ugfx-admin-sidebar { min-height:100vh; background:rgba(10,10,14,.92); border-right:1px solid rgba(255,154,31,.14); }
.ugfx-admin-sidebar a { color:var(--ugfx-muted); text-decoration:none; display:block; padding:.8rem 1rem; border-radius:14px; }
.ugfx-admin-sidebar a:hover, .ugfx-admin-sidebar a.active { color:#fff; background:rgba(255,106,0,.12); }


.ugfx-home-callout-list { display:grid; gap:.8rem; }
.ugfx-mini-callout { display:flex; align-items:flex-start; gap:.85rem; padding:.9rem 1rem; border-radius:18px; background:rgba(255,255,255,.03); border:1px solid rgba(255,154,31,.12); }
.ugfx-mini-callout i { color: var(--ugfx-orange-2); margin-top:.15rem; }
.ugfx-stack-list { display:grid; gap: .9rem; }
.ugfx-stack-link {
  display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; text-decoration:none; color:var(--ugfx-text);
  border-radius:20px; border:1px solid rgba(255,154,31,.15); background:rgba(255,255,255,.03);
}
.ugfx-stack-link:hover { color:#fff; transform: translateY(-2px); }
.ugfx-stack-link span { display:grid; gap:.25rem; }
.ugfx-stack-link small { color: var(--ugfx-muted); font-size:.88rem; }
.ugfx-stack-link.static { justify-content:flex-start; }
.ugfx-friend-row { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:.9rem 0; border-top:1px solid rgba(255,255,255,.06); }
.ugfx-friend-row:first-of-type { border-top:0; padding-top:0; }
.ugfx-friends-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.ugfx-page-body { line-height:1.8; font-size:1.05rem; }
.ugfx-page-body a { color: var(--ugfx-warm); }
.ugfx-event-grid.single-col { grid-template-columns:1fr; }


.ugfx-hero-orb{position:absolute;border-radius:50%;filter:blur(10px);opacity:.55;pointer-events:none;mix-blend-mode:screen;}
.ugfx-hero-orb-one{width:280px;height:280px;right:8%;top:12%;background:radial-gradient(circle,rgba(255,154,31,.55),rgba(255,106,0,0));animation:ugfxFloat 7s ease-in-out infinite;}
.ugfx-hero-orb-two{width:220px;height:220px;right:28%;bottom:10%;background:radial-gradient(circle,rgba(255,59,31,.45),rgba(255,59,31,0));animation:ugfxFloat 9s ease-in-out infinite reverse;}
.ugfx-hero-panel{box-shadow:0 24px 60px rgba(0,0,0,.32),0 0 55px rgba(255,106,0,.1);}
.ugfx-hero-art,.ugfx-cover-art{box-shadow:0 24px 60px rgba(0,0,0,.35);}
.ugfx-news-grid-home{grid-template-columns:repeat(2,minmax(0,1fr));}
.ugfx-team-grid-home{grid-template-columns:repeat(2,minmax(0,1fr));}
.reveal-up{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
.reveal-up.is-visible{opacity:1;transform:none;}
.ugfx-stack-link:hover,.ugfx-card:hover,.ugfx-feature-card:hover{box-shadow:0 18px 42px rgba(0,0,0,.28),0 0 26px rgba(255,106,0,.12);}
.ugfx-footer h6{font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ugfx-warm);}
@keyframes ugfxFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* Phase 3.1 polish */
.ugfx-hero .row{position:relative;}
.ugfx-hero .col-xl-7{position:relative;z-index:3;}
.ugfx-hero .col-xl-5{position:relative;z-index:2;}
.ugfx-display{position:relative;z-index:4;max-width:7.6ch;}
.ugfx-display span{display:block;}
.ugfx-hero-panel{position:relative;z-index:2;}
.ugfx-hero-panel::after{
  content:'';position:absolute;inset:-1px;border-radius:calc(var(--ugfx-radius) + 2px);
  background:linear-gradient(135deg,rgba(255,154,31,.28),rgba(255,106,0,.05),rgba(255,59,31,.18));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;padding:1px;pointer-events:none;opacity:.85;
}
.ugfx-card,.ugfx-feature-card,.ugfx-stack-link,.ugfx-stat-card{transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;}
.ugfx-card::after,.ugfx-feature-card::after{
  content:'';position:absolute;top:-140%;left:-35%;width:70%;height:320%;
  background:linear-gradient(115deg,transparent 0%,rgba(255,190,120,.16) 48%,transparent 100%);
  transform:rotate(18deg);opacity:0;pointer-events:none;
}
.ugfx-card:hover::after,.ugfx-feature-card:hover::after{animation:ugfxSweep 1.15s ease;opacity:1;}
.ugfx-card:hover,.ugfx-feature-card:hover,.ugfx-stack-link:hover,.ugfx-stat-card:hover{
  border-color:rgba(255,154,31,.28);
  box-shadow:0 22px 48px rgba(0,0,0,.34),0 0 38px rgba(255,106,0,.12);
}
.ugfx-home-media{display:block;width:100%;object-fit:cover;border-radius:18px;margin-bottom:1rem;border:1px solid rgba(255,154,31,.16);box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 18px rgba(255,106,0,.08);}
.ugfx-home-media-news{height:150px;}
.ugfx-home-media-event{height:178px;}
.ugfx-home-media-friend{height:170px;}
.ugfx-news-card h4,.ugfx-news-card p,.ugfx-news-card .btn{position:relative;z-index:1;}
.ugfx-team-avatar{box-shadow:0 18px 40px rgba(0,0,0,.30),0 0 20px rgba(255,106,0,.10);}
.ugfx-btn-primary,.ugfx-live-pill{position:relative;overflow:hidden;}
.ugfx-btn-primary::after,.ugfx-live-pill::after{
  content:'';position:absolute;top:0;left:-140%;width:70%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-24deg);
}
.ugfx-btn-primary:hover::after,.ugfx-live-pill::after{animation:ugfxShine 2.8s ease-in-out infinite;}
.ugfx-hero::before{animation:ugfxHeroPulse 12s ease-in-out infinite alternate;}
.body-embers{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0;}
.body-embers span{position:absolute;bottom:-20px;width:4px;height:4px;border-radius:50%;background:rgba(255,132,32,.9);box-shadow:0 0 12px rgba(255,132,32,.9),0 0 24px rgba(255,80,0,.45);animation:ugfxEmberUp linear infinite;opacity:.0;}
@keyframes ugfxSweep{0%{transform:translateX(0) rotate(18deg);opacity:0;}15%{opacity:1;}100%{transform:translateX(240%) rotate(18deg);opacity:0;}}
@keyframes ugfxShine{0%{left:-140%;}24%,100%{left:190%;}}
@keyframes ugfxHeroPulse{from{filter:saturate(1.08) contrast(1.02) brightness(1);}to{filter:saturate(1.12) contrast(1.05) brightness(1.03);}}
@keyframes ugfxEmberUp{0%{transform:translate3d(0,0,0) scale(.65);opacity:0;}12%{opacity:.9;}100%{transform:translate3d(var(--drift,0px),-110vh,0) scale(1.6);opacity:0;}}
@media (max-width:1199.98px){
  .ugfx-display{max-width:none;}
}


.ugfx-hero-content{position:relative;z-index:1;}
.ugfx-hero::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:120px;opacity:.28;pointer-events:none;
  background:
    linear-gradient(to top, rgba(255,106,0,.20), transparent 72%),
    repeating-linear-gradient(to right, rgba(255,106,0,.55) 0 4px, transparent 4px 13px);
  mask: linear-gradient(to top, #000, transparent 85%);
  animation: ugfxEqualizer 2.4s ease-in-out infinite alternate;
}
@keyframes ugfxEqualizer{from{transform:scaleY(.86);transform-origin:bottom;}to{transform:scaleY(1.12);transform-origin:bottom;}}


/* Schedule page upgrade */
.ugfx-schedule-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;margin-bottom:1.25rem;}
.ugfx-schedule-highlight{padding:1.35rem 1.45rem;min-height:172px;display:flex;flex-direction:column;justify-content:space-between;}
.ugfx-schedule-highlight.alt{background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));}
.ugfx-schedule-highlight h2{font-size:clamp(1.4rem,2.4vw,2rem);margin:.9rem 0 .4rem;}
.ugfx-schedule-highlight p{margin:0;color:var(--ugfx-muted);}
.ugfx-schedule-badge{display:inline-flex;align-items:center;gap:.55rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ugfx-warm);font-size:.8rem;}
.ugfx-schedule-shell{overflow:visible;}
.ugfx-schedule-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.8rem;}
.ugfx-schedule-tab{appearance:none;border:1px solid rgba(255,154,31,.14);background:rgba(255,255,255,.03);border-radius:20px;color:var(--ugfx-text);padding:1rem .85rem;display:grid;gap:.15rem;text-align:left;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;}
.ugfx-schedule-tab span{font-size:1rem;font-weight:800;letter-spacing:.04em;}
.ugfx-schedule-tab small{color:var(--ugfx-muted);font-size:.8rem;}
.ugfx-schedule-tab:hover,.ugfx-schedule-tab.is-active{transform:translateY(-2px);border-color:rgba(255,154,31,.34);background:linear-gradient(135deg, rgba(255,106,0,.15), rgba(255,59,31,.10));box-shadow:0 12px 28px rgba(0,0,0,.24),0 0 22px rgba(255,106,0,.10);}
.ugfx-schedule-panel{display:none;padding-top:1.4rem;}
.ugfx-schedule-panel.is-active{display:block;animation:ugfxScheduleFade .25s ease;}
.ugfx-schedule-panel-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;}
.ugfx-schedule-list{display:grid;gap:.95rem;}
.ugfx-schedule-item{position:relative;display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:1rem;align-items:center;padding:1rem 1.05rem;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,154,31,.12);overflow:hidden;}
.ugfx-schedule-item::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,106,0,.09), transparent 42%, rgba(255,59,31,.05));opacity:.65;pointer-events:none;}
.ugfx-schedule-item.is-live{border-color:rgba(255,154,31,.35);box-shadow:0 16px 38px rgba(0,0,0,.24),0 0 24px rgba(255,106,0,.12);}
.ugfx-schedule-item.is-auto .ugfx-schedule-time{color:var(--ugfx-warm);}
.ugfx-schedule-time{position:relative;z-index:1;font-family:'Orbitron',sans-serif;font-size:.98rem;line-height:1.45;color:#fff;}
.ugfx-schedule-show{position:relative;z-index:1;display:grid;gap:.55rem;}
.ugfx-schedule-show h4{margin:0;font-size:1.15rem;font-weight:800;}
.ugfx-schedule-meta{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;}
@keyframes ugfxScheduleFade{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
@media (max-width: 991.98px){
  .ugfx-schedule-top{grid-template-columns:1fr;}
  .ugfx-schedule-tabs{grid-template-columns:repeat(4,minmax(0,1fr));}
  .ugfx-schedule-item{grid-template-columns:1fr;gap:.75rem;}
}
@media (max-width: 575.98px){
  .ugfx-schedule-tabs{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ugfx-schedule-tab{padding:.9rem .8rem;border-radius:18px;}
  .ugfx-schedule-highlight{min-height:auto;}
}

/* Schedule page premium rebuild */
.ugfx-schedule-hero-wrap{padding-bottom:1rem;}
.ugfx-schedule-hero-card{
  padding:2rem 2rem 1.7rem;
  background:linear-gradient(135deg, rgba(18,20,28,.92), rgba(15,10,8,.95));
}
.ugfx-schedule-hero-card .page-title{
  font-family:'Inter',sans-serif;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:clamp(2.2rem,5vw,3.5rem);
}
.ugfx-schedule-mini-bar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.ugfx-schedule-mini-card{
  padding:1rem 1.15rem;
  display:grid;
  gap:.2rem;
  background:linear-gradient(180deg, rgba(22,24,33,.88), rgba(16,18,25,.92));
}
.ugfx-schedule-mini-card strong{font-size:1.4rem;line-height:1.2;}
.ugfx-schedule-mini-card small{color:var(--ugfx-muted);}
.ugfx-schedule-mini-label{
  color:var(--ugfx-warm);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.74rem;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.ugfx-schedule-shell-premium{background:linear-gradient(180deg, rgba(10,12,18,.92), rgba(9,10,16,.95));}
.ugfx-schedule-tabs-premium{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  margin-bottom:1.4rem;
}
.ugfx-schedule-day-btn{
  border:1px solid rgba(255,154,31,.22);
  background:rgba(255,255,255,.02);
  color:var(--ugfx-text);
  border-radius:999px;
  padding:.75rem 1.15rem;
  font-weight:700;
  min-width:112px;
  transition:.2s ease;
}
.ugfx-schedule-day-btn.is-active,
.ugfx-schedule-day-btn:hover{
  color:#fff;
  background:linear-gradient(135deg, rgba(255,106,0,.18), rgba(255,59,31,.12));
  box-shadow:inset 0 0 0 1px rgba(255,154,31,.18), 0 10px 24px rgba(0,0,0,.22);
}
.ugfx-schedule-day-panel{display:none;}
.ugfx-schedule-day-panel.is-active{display:block;}
.ugfx-schedule-day-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.1rem;
}
.ugfx-schedule-day-head h2{margin:0;font-size:2.1rem;font-weight:800;}
.ugfx-schedule-grid-premium{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.ugfx-schedule-period-card{
  padding:1rem;
  background:linear-gradient(180deg, rgba(9,12,20,.95), rgba(8,10,16,.95));
}
.ugfx-schedule-period-head{margin-bottom:.8rem;}
.ugfx-schedule-period-head h3{margin:0;font-size:1.35rem;font-weight:800;}
.ugfx-schedule-period-list{display:grid;gap:.68rem;}
.ugfx-schedule-row{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:.7rem;
  align-items:center;
}
.ugfx-schedule-time-pill,
.ugfx-schedule-show-pill{
  border-radius:14px;
  border:1px solid rgba(255,154,31,.14);
  min-height:54px;
  display:flex;
  align-items:center;
}
.ugfx-schedule-time-pill{
  justify-content:center;
  padding:.7rem .6rem;
  background:linear-gradient(180deg, rgba(58,32,17,.95), rgba(37,22,14,.95));
  color:var(--ugfx-warm);
  font-weight:800;
  font-size:.95rem;
}
.ugfx-schedule-show-pill{
  justify-content:space-between;
  gap:1rem;
  padding:.85rem 1rem;
  background:linear-gradient(180deg, rgba(11,13,22,.98), rgba(8,9,16,.98));
}
.ugfx-schedule-show-name{font-weight:700;color:#fff;}
.ugfx-schedule-row.is-dj .ugfx-schedule-show-pill{
  background:linear-gradient(135deg, rgba(73,33,14,.94), rgba(45,20,15,.92));
  border-color:rgba(255,154,31,.26);
  box-shadow:inset 0 0 0 1px rgba(255,154,31,.08);
}
.ugfx-schedule-row.is-live .ugfx-schedule-show-pill{
  box-shadow:0 0 0 1px rgba(255,154,31,.25), 0 0 24px rgba(255,106,0,.12);
}
@media (max-width: 991.98px){
  .ugfx-schedule-mini-bar,
  .ugfx-schedule-grid-premium{grid-template-columns:1fr;}
}
@media (max-width: 575.98px){
  .ugfx-schedule-hero-card{padding:1.4rem;}
  .ugfx-schedule-day-btn{min-width:auto;flex:1 1 calc(50% - .8rem);}
  .ugfx-schedule-row{grid-template-columns:80px 1fr;}
  .ugfx-schedule-time-pill{font-size:.85rem;}
  .ugfx-schedule-mini-card strong{font-size:1.1rem;}
}


.ugfx-news-hero-image{overflow:hidden;padding:.5rem;border-radius:28px;}
.ugfx-news-hero-image img{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:22px;}
@media (max-width: 768px){
  .ugfx-news-hero-image img{max-height:240px;}
}


.ugfx-listing-card{padding:0;display:flex;flex-direction:column;min-height:100%;background:linear-gradient(180deg, rgba(13,15,20,.94), rgba(9,10,14,.98));}
.ugfx-listing-card-media{position:relative;overflow:hidden;padding:.65rem .65rem 0;border-radius:28px 28px 0 0;}
.ugfx-listing-card-media::after{content:'';position:absolute;left:.65rem;right:.65rem;bottom:0;height:40%;background:linear-gradient(180deg, transparent, rgba(5,5,7,.42));border-radius:0 0 22px 22px;pointer-events:none;}
.ugfx-listing-card-media img{display:block;width:100%;height:220px;object-fit:cover;border-radius:22px;box-shadow:0 18px 36px rgba(0,0,0,.30);}
.ugfx-listing-card-media-event img{height:240px;}
.ugfx-listing-card-body{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;}
.ugfx-listing-card-body h3{margin-bottom:.8rem;}
.ugfx-team-page-hero{position:relative;overflow:hidden;}
.ugfx-team-page-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(7,8,12,.16), rgba(7,8,12,.52));pointer-events:none;}
.ugfx-team-page{position:relative;}
.ugfx-team-page::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(5,5,7,.18), rgba(5,5,7,.58));pointer-events:none;}
.ugfx-team-page .container-xxl{position:relative;z-index:1;}
.ugfx-team-card-dark{background:linear-gradient(180deg, rgba(10,12,18,.95), rgba(7,8,12,.98));}
.ugfx-team-card-dark::before{background:linear-gradient(135deg, rgba(255,106,0,.06), transparent 38%, rgba(255,59,31,.04) 100%);}
@media (max-width: 991px){
  .ugfx-listing-card-media img,.ugfx-listing-card-media-event img{height:200px;}
}


/* v31 page tone + listing image alignment */
.ugfx-listing-card-media img,
.ugfx-listing-card-media-event img{
  height:auto;
  aspect-ratio:4 / 4.3;
  object-fit:cover;
}

.ugfx-page-news .ugfx-page-hero,
.ugfx-page-events .ugfx-page-hero,
.ugfx-page-team .ugfx-page-hero,
.ugfx-page-friends .ugfx-page-hero,
.ugfx-page-charts .ugfx-page-hero,
.ugfx-page-page .ugfx-page-hero{
  position:relative;
  overflow:hidden;
  padding-top:4.75rem;
  padding-bottom:2.3rem;
  background:linear-gradient(180deg, rgba(6,7,10,.88), rgba(6,7,10,.38));
}

.ugfx-page-news .ugfx-page-hero::before,
.ugfx-page-events .ugfx-page-hero::before,
.ugfx-page-team .ugfx-page-hero::before,
.ugfx-page-friends .ugfx-page-hero::before,
.ugfx-page-charts .ugfx-page-hero::before,
.ugfx-page-page .ugfx-page-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(5,5,7,.80) 0%, rgba(5,5,7,.55) 100%),
    radial-gradient(circle at 18% 12%, rgba(255,106,0,.08), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255,59,31,.08), transparent 22%);
  pointer-events:none;
}

.ugfx-page-news .ugfx-page-hero .container-xxl,
.ugfx-page-events .ugfx-page-hero .container-xxl,
.ugfx-page-team .ugfx-page-hero .container-xxl,
.ugfx-page-friends .ugfx-page-hero .container-xxl,
.ugfx-page-charts .ugfx-page-hero .container-xxl,
.ugfx-page-page .ugfx-page-hero .container-xxl,
.ugfx-page-news .section-pad .container-xxl,
.ugfx-page-events .section-pad .container-xxl,
.ugfx-page-team .section-pad .container-xxl,
.ugfx-page-friends .section-pad .container-xxl,
.ugfx-page-charts .section-pad .container-xxl,
.ugfx-page-page .section-pad .container-xxl{
  position:relative;
  z-index:1;
}

.ugfx-page-news .section-pad,
.ugfx-page-events .section-pad,
.ugfx-page-team .section-pad,
.ugfx-page-friends .section-pad,
.ugfx-page-charts .section-pad,
.ugfx-page-page .section-pad{
  position:relative;
}

.ugfx-page-news .section-pad::before,
.ugfx-page-events .section-pad::before,
.ugfx-page-team .section-pad::before,
.ugfx-page-friends .section-pad::before,
.ugfx-page-charts .section-pad::before,
.ugfx-page-page .section-pad::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(5,5,7,.18), rgba(5,5,7,.60));
  pointer-events:none;
}

.ugfx-page-news .ugfx-card,
.ugfx-page-events .ugfx-card,
.ugfx-page-team .ugfx-card,
.ugfx-page-friends .ugfx-card,
.ugfx-page-charts .ugfx-card,
.ugfx-page-page .ugfx-card{
  background:linear-gradient(180deg, rgba(10,12,18,.95), rgba(7,8,12,.98));
  border-color:rgba(255,154,31,.14);
}

.ugfx-page-news .ugfx-card::before,
.ugfx-page-events .ugfx-card::before,
.ugfx-page-team .ugfx-card::before,
.ugfx-page-friends .ugfx-card::before,
.ugfx-page-charts .ugfx-card::before,
.ugfx-page-page .ugfx-card::before{
  background:linear-gradient(135deg, rgba(255,106,0,.05), transparent 38%, rgba(255,59,31,.035) 100%);
}

.ugfx-page-news .ugfx-listing-card,
.ugfx-page-events .ugfx-listing-card{
  background:linear-gradient(180deg, rgba(10,12,18,.95), rgba(7,8,12,.98));
}

.ugfx-page-news .ugfx-news-grid,
.ugfx-page-team .ugfx-team-grid{
  align-items:start;
}

@media (max-width: 991px){
  .ugfx-listing-card-media img,
  .ugfx-listing-card-media-event img{
    aspect-ratio:4 / 4.3;
  }
}

/* Chat room overhaul */
.ugfx-btn-outline{border:1px solid rgba(255,154,31,.28)!important;color:#fff!important;background:rgba(255,255,255,.04)!important;border-radius:16px!important}
.ugfx-btn-outline:hover,.ugfx-btn-outline.active{background:rgba(255,106,0,.14)!important;border-color:rgba(255,154,31,.45)!important;box-shadow:0 0 0 .18rem rgba(255,106,0,.08)!important}
.ugfx-chat-shell{display:grid;grid-template-columns:360px minmax(0,1fr);gap:1.25rem;align-items:start}
.ugfx-chat-sidebar{display:grid;gap:1.2rem;position:sticky;top:92px}
.ugfx-chat-sidecard{overflow:hidden}
.ugfx-chat-onair{display:grid;grid-template-columns:92px 1fr;gap:1rem;align-items:center}
.ugfx-chat-cover{width:92px;height:92px;border-radius:22px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,154,31,.2),0 0 30px rgba(255,106,0,.15)}
.ugfx-chat-live-meta{display:flex;flex-wrap:wrap;gap:.6rem}
.ugfx-chat-player-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.ugfx-chat-feature-list{display:grid;gap:.8rem}
.ugfx-chat-feature-list div{display:flex;gap:.8rem;align-items:flex-start;padding:.85rem 1rem;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,154,31,.12)}
.ugfx-chat-feature-list i{color:var(--ugfx-orange-2);font-size:1.05rem;margin-top:.1rem}
.ugfx-chat-stage{padding:0;overflow:hidden}
.ugfx-chat-topbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1.15rem 1.2rem;border-bottom:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01))}
.ugfx-chat-topstats{display:flex;gap:.65rem;flex-wrap:wrap;justify-content:flex-end}
.ugfx-chat-feed{height:560px;overflow:auto;padding:1.2rem;display:flex;flex-direction:column;gap:1rem;background:linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,.025))}
.ugfx-chat-bubble{display:grid;grid-template-columns:48px minmax(0,1fr);gap:.9rem;align-items:start}
.ugfx-chat-bubble.system .ugfx-chat-bubble-main{border-color:rgba(255,106,0,.28);background:rgba(255,106,0,.08)}
.ugfx-chat-avatar{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,rgba(255,154,31,.22),rgba(255,59,31,.18));border:1px solid rgba(255,154,31,.2)}
.ugfx-chat-bubble-main{padding:1rem 1.05rem;border-radius:22px;background:rgba(255,255,255,.035);border:1px solid rgba(255,154,31,.11);backdrop-filter:blur(14px)}
.ugfx-chat-bubble-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.5rem;font-size:.9rem}
.ugfx-chat-bubble-head span{color:var(--ugfx-muted);font-size:.82rem}
.ugfx-chat-text{line-height:1.7;word-break:break-word}
.ugfx-chat-text a{color:var(--ugfx-warm)}
.ugfx-chat-media img{max-width:min(360px,100%);border-radius:18px;margin-top:.75rem;display:block}
.ugfx-chat-sticker{display:inline-flex;align-items:center;gap:.4rem;margin-top:.55rem;padding:.65rem .95rem;border-radius:999px;border:1px solid rgba(255,154,31,.22);background:linear-gradient(135deg,rgba(255,106,0,.14),rgba(255,255,255,.04));font-weight:800;letter-spacing:.04em}
.ugfx-chat-voice{margin-top:.75rem}.ugfx-chat-voice audio{width:min(340px,100%)}
.ugfx-chat-composer-wrap{border-top:1px solid rgba(255,255,255,.06);padding:1rem 1.2rem 1.2rem;background:rgba(8,10,14,.82)}
.ugfx-chat-composer{display:grid;gap:.9rem}
.ugfx-chat-editor{display:grid;gap:.8rem}
.ugfx-chat-toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.ugfx-chat-toolbar .btn.recording{background:rgba(255,59,31,.18)!important;border-color:rgba(255,59,31,.45)!important;box-shadow:0 0 16px rgba(255,59,31,.18)}
.ugfx-chat-attachments{display:flex;gap:.55rem;flex-wrap:wrap}
.ugfx-attach-card{display:inline-flex;align-items:center;gap:.65rem;padding:.45rem .72rem;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,154,31,.18)}
.ugfx-attach-card button{border:0;background:transparent;color:#fff;font-size:1.1rem;line-height:1}
.ugfx-chat-panels{display:grid;gap:.85rem}
.ugfx-chat-panel{padding:1rem;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,154,31,.12)}
.ugfx-chat-panel-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.8rem;flex-wrap:wrap}
.ugfx-chat-chip-row{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.8rem}
.ugfx-mini-chip{border:1px solid rgba(255,154,31,.18);background:rgba(255,255,255,.03);color:#fff;padding:.36rem .7rem;border-radius:999px}.ugfx-mini-chip.active{background:rgba(255,106,0,.16);border-color:rgba(255,154,31,.42)}
.ugfx-emoji-grid,.ugfx-sticker-grid,.ugfx-gif-grid{display:grid;gap:.7rem;grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}
.ugfx-emoji-btn,.ugfx-sticker-btn,.ugfx-gif-thumb{border:1px solid rgba(255,154,31,.12);background:rgba(255,255,255,.03);border-radius:18px;color:#fff;min-height:62px;padding:.6rem;transition:.18s ease}
.ugfx-emoji-btn{font-size:1.5rem}
.ugfx-sticker-btn{font-size:.9rem;font-weight:800;letter-spacing:.03em;line-height:1.2}
.ugfx-gif-thumb{padding:0;overflow:hidden;height:90px}.ugfx-gif-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ugfx-emoji-btn:hover,.ugfx-sticker-btn:hover,.ugfx-gif-thumb:hover{transform:translateY(-2px);border-color:rgba(255,154,31,.34);box-shadow:0 14px 28px rgba(0,0,0,.22),0 0 22px rgba(255,106,0,.1)}
.ugfx-chat-status-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}


.ugfx-admin-grid{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:1.25rem;align-items:start;}
.ugfx-admin-grid-tight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.ugfx-admin-list{display:grid;gap:1rem;}
.ugfx-admin-item{padding:1rem 1.1rem;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,154,31,.12);}
.ugfx-admin-item h4,.ugfx-admin-item h5{margin:0 0 .35rem;}
.ugfx-admin-meta{font-size:.84rem;color:var(--ugfx-muted);display:flex;flex-wrap:wrap;gap:.8rem;}
.ugfx-admin-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.85rem;}
.ugfx-admin-actions form{display:inline-flex;gap:.55rem;align-items:center;}
.ugfx-admin-form .form-control,.ugfx-admin-form .form-select{background:rgba(255,255,255,.05);border-color:rgba(255,154,31,.16);color:#fff;}
.ugfx-admin-form .form-control:focus,.ugfx-admin-form .form-select:focus{background:rgba(255,255,255,.07);color:#fff;border-color:rgba(255,154,31,.4);box-shadow:0 0 0 .2rem rgba(255,106,0,.12);}
.ugfx-admin-form .form-check-input{background-color:#0d1017;border-color:rgba(255,154,31,.3);} 
.ugfx-admin-alert{border-radius:16px;padding:.9rem 1rem;margin-bottom:1rem;border:1px solid rgba(255,154,31,.18);background:rgba(255,106,0,.08);}
.ugfx-admin-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem;}
.ugfx-admin-schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.ugfx-admin-schedule-grid textarea{min-height:320px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92rem;}
.ugfx-admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;}
.ugfx-admin-empty{padding:1rem;border-radius:16px;background:rgba(255,255,255,.02);border:1px dashed rgba(255,154,31,.14);color:var(--ugfx-muted);}
.ugfx-badge-dot{display:inline-flex;align-items:center;gap:.4rem;}
.ugfx-badge-dot::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--ugfx-orange-2);box-shadow:0 0 12px rgba(255,106,0,.45);}
.ugfx-chat-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:start;}
.ugfx-chat-admin-row audio{max-width:260px;}
@media (max-width: 1199.98px){.ugfx-admin-grid,.ugfx-admin-schedule-grid,.ugfx-admin-stat-grid,.ugfx-admin-grid-tight{grid-template-columns:1fr;}}

.ugfx-wysiwyg{min-height:260px;padding:14px 16px;border-radius:18px;border:1px solid rgba(110,180,255,.28);background:rgba(10,18,28,.78);color:#eaf6ff;box-shadow:inset 0 0 0 1px rgba(0,170,255,.08),0 0 24px rgba(0,120,255,.08);}
.ugfx-wysiwyg:focus{outline:none;border-color:rgba(70,170,255,.65);box-shadow:0 0 0 3px rgba(38,132,255,.18),0 0 30px rgba(0,132,255,.12);}
.ugfx-editor-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;}
.ugfx-editor-toolbar .btn{padding:.35rem .7rem;}
.ugfx-admin-sidebar .ugfx-card{background:rgba(10,18,28,.7);}


/* Admin + chat upgrade pack */
:root{--ugfx-blue:#55d6ff;--ugfx-blue-2:#22a8ff;--ugfx-blue-soft:rgba(85,214,255,.18);}
.ugfx-admin-shell{background:radial-gradient(circle at top right, rgba(34,168,255,.12), transparent 32%),linear-gradient(180deg,#05070d,#040507 55%,#050608);} 
.ugfx-admin-sidebar{background:rgba(8,12,18,.94);border-right:1px solid rgba(85,214,255,.16);box-shadow:inset -1px 0 0 rgba(255,255,255,.03);} 
.ugfx-admin-sidebar a:hover,.ugfx-admin-sidebar a.active{background:rgba(85,214,255,.12);box-shadow:0 0 0 1px rgba(85,214,255,.2) inset;color:#fff;}
.ugfx-admin-sidebar .ugfx-card,.ugfx-admin-item,.ugfx-admin-empty,.ugfx-admin-alert{border-color:rgba(85,214,255,.14);} 
.ugfx-admin-alert{background:rgba(85,214,255,.08);} 
.ugfx-chip-blue{border-color:rgba(85,214,255,.24)!important;background:rgba(85,214,255,.12)!important;color:#dff7ff!important;}
.ugfx-admin-form .form-control,.ugfx-admin-form .form-select{border-color:rgba(85,214,255,.18);background:rgba(8,14,22,.82);} 
.ugfx-admin-form .form-control:focus,.ugfx-admin-form .form-select:focus{border-color:rgba(85,214,255,.42)!important;box-shadow:0 0 0 .2rem rgba(34,168,255,.12)!important;} 
.ugfx-chat-shell-admin{grid-template-columns:minmax(0,1fr)!important;}
.ugfx-chat-shell-admin .ugfx-chat-main{min-width:0;}
.ugfx-chat-stage{border:1px solid rgba(85,214,255,.12);background:linear-gradient(180deg, rgba(7,12,18,.92), rgba(8,10,16,.86));}
.ugfx-chat-topbar{padding:1.25rem 1.35rem;border-bottom:1px solid rgba(85,214,255,.12);background:linear-gradient(135deg, rgba(85,214,255,.08), rgba(255,154,31,.04));}
.ugfx-chat-feed{min-height:620px;max-height:620px;padding:1.35rem;background:linear-gradient(180deg, rgba(5,8,12,.15), rgba(7,8,12,.2));}
.ugfx-chat-bubble{display:grid;grid-template-columns:48px minmax(0,1fr);gap:1rem;margin-bottom:1rem;align-items:start;}
.ugfx-chat-avatar{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg, rgba(34,168,255,.35), rgba(85,214,255,.12));border:1px solid rgba(85,214,255,.22);color:#fff;box-shadow:0 0 24px rgba(34,168,255,.12);} 
.ugfx-chat-bubble-main{background:rgba(255,255,255,.03);border:1px solid rgba(85,214,255,.12);padding:1rem 1.1rem;border-radius:20px;}
.ugfx-chat-bubble.system .ugfx-chat-bubble-main{background:rgba(34,168,255,.08);border-color:rgba(85,214,255,.2);} 
.ugfx-chat-bubble-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.55rem;}
.ugfx-chat-text{line-height:1.7;font-size:1rem;word-break:break-word;}
.ugfx-chat-composer-wrap{padding:1.15rem 1.25rem;border-top:1px solid rgba(85,214,255,.12);background:rgba(5,8,12,.45);} 
.ugfx-chat-color-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.8rem;}
.ugfx-chat-color-row input[type=color]{width:58px;height:42px;border:1px solid rgba(85,214,255,.22);background:transparent;border-radius:14px;padding:.25rem;}
.ugfx-chat-toolbar{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;margin-top:.85rem;}
.ugfx-chat-panel{margin-top:.9rem;padding:1rem;border-radius:18px;border:1px solid rgba(85,214,255,.12);background:rgba(6,9,15,.9);} 
.ugfx-emoji-grid,.ugfx-sticker-grid,.ugfx-gif-grid{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));margin-top:.9rem;}
.ugfx-emoji-btn,.ugfx-sticker-btn,.ugfx-gif-thumb{border:1px solid rgba(85,214,255,.14);border-radius:16px;background:rgba(255,255,255,.03);padding:.75rem;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;}
.ugfx-emoji-btn:hover,.ugfx-sticker-btn:hover,.ugfx-gif-thumb:hover{transform:translateY(-2px);border-color:rgba(85,214,255,.3);box-shadow:0 0 24px rgba(34,168,255,.12);} 
.ugfx-sticker-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));}
.ugfx-sticker-btn{font-weight:800;color:#e8f7ff;font-size:.92rem;min-height:72px;display:grid;place-items:center;text-align:center;}
.ugfx-gif-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));}
.ugfx-gif-thumb img,.ugfx-chat-media img{width:100%;display:block;border-radius:16px;aspect-ratio:1/1;object-fit:cover;}
.ugfx-mini-chip.active,.ugfx-mini-chip:hover{background:rgba(85,214,255,.16);border-color:rgba(85,214,255,.24);} 
.ugfx-chat-admin-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:1rem;align-items:start;}
@media (max-width: 991.98px){.ugfx-chat-admin-row{grid-template-columns:1fr}.ugfx-chat-feed{min-height:460px;max-height:460px;}}


/* Admin corrective pass to match public side more closely */
.ugfx-admin-shell{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,106,0,.16), transparent 34%),
    linear-gradient(180deg, #07080c 0%, #050507 100%) !important;
}
.ugfx-admin-shell::before{
  content:'';position:fixed;inset:0;pointer-events:none;
  background-image: radial-gradient(rgba(255,154,31,.18) 1px, transparent 1px);
  background-size:32px 32px;opacity:.35;
}
.ugfx-admin-sidebar{
  background:rgba(10,10,14,.92) !important;
  border-right:1px solid rgba(255,154,31,.14) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.03);
}
.ugfx-admin-sidebar a:hover,.ugfx-admin-sidebar a.active{
  background:rgba(255,106,0,.12) !important;
  box-shadow:0 0 0 1px rgba(255,154,31,.18) inset !important;
}
.ugfx-admin-sidebar .ugfx-card,
.ugfx-admin-item,
.ugfx-admin-empty,
.ugfx-admin-alert,
.ugfx-card{
  border-color:rgba(255,154,31,.14) !important;
}
.ugfx-admin-alert{background:rgba(255,106,0,.08) !important;}
.ugfx-chip-blue{
  border-color:rgba(255,154,31,.22)!important;
  background:rgba(255,106,0,.10)!important;
  color:var(--ugfx-warm)!important;
}
.ugfx-admin-form .form-control,.ugfx-admin-form .form-select{
  border-color:rgba(255,154,31,.18)!important;
  background:rgba(12,14,20,.84)!important;
}
.ugfx-admin-form .form-control:focus,.ugfx-admin-form .form-select:focus{
  border-color:rgba(255,154,31,.38)!important;
  box-shadow:0 0 0 .2rem rgba(255,106,0,.12)!important;
}
.ugfx-chat-stage{
  border:1px solid rgba(255,154,31,.14) !important;
  background:linear-gradient(180deg, rgba(18,20,28,.92), rgba(15,10,8,.95)) !important;
}
.ugfx-chat-topbar{
  border-bottom:1px solid rgba(255,154,31,.14) !important;
  background:linear-gradient(135deg, rgba(255,106,0,.11), rgba(255,59,31,.08)) !important;
}
.ugfx-chat-feed{
  min-height:620px;max-height:620px;
  background:linear-gradient(180deg, rgba(5,5,7,.15), rgba(5,5,7,.22)) !important;
}
.ugfx-chat-bubble-main{
  background:rgba(255,255,255,.03) !important;
  border:1px solid rgba(255,154,31,.12) !important;
}
.ugfx-chat-bubble.system .ugfx-chat-bubble-main{
  background:rgba(255,106,0,.09) !important;
  border-color:rgba(255,154,31,.18) !important;
}
.ugfx-chat-avatar{
  background:linear-gradient(135deg, rgba(255,106,0,.28), rgba(255,59,31,.12)) !important;
  border:1px solid rgba(255,154,31,.22) !important;
  box-shadow:0 0 24px rgba(255,106,0,.12) !important;
}
.ugfx-chat-composer-wrap{
  border-top:1px solid rgba(255,154,31,.14) !important;
  background:rgba(5,5,7,.42) !important;
}
.ugfx-chat-color-row input[type=color],
.ugfx-chat-panel,
.ugfx-emoji-btn,.ugfx-sticker-btn,.ugfx-gif-thumb,
.ugfx-mini-chip.active,.ugfx-mini-chip:hover{
  border-color:rgba(255,154,31,.18)!important;
}
.ugfx-chat-panel{background:rgba(10,10,14,.90)!important;}
.ugfx-mini-chip.active,.ugfx-mini-chip:hover{background:rgba(255,106,0,.12)!important;}
.ugfx-emoji-btn:hover,.ugfx-sticker-btn:hover,.ugfx-gif-thumb:hover{
  border-color:rgba(255,154,31,.32)!important;
  box-shadow:0 0 24px rgba(255,106,0,.12)!important;
}


/* Admin readability + table + schedule editor corrective pass */
.ugfx-admin-shell,
.ugfx-admin-shell .ugfx-card,
.ugfx-admin-shell .ugfx-card h1,
.ugfx-admin-shell .ugfx-card h2,
.ugfx-admin-shell .ugfx-card h3,
.ugfx-admin-shell .ugfx-card h4,
.ugfx-admin-shell .ugfx-card h5,
.ugfx-admin-shell label,
.ugfx-admin-shell th,
.ugfx-admin-shell td,
.ugfx-admin-shell p,
.ugfx-admin-shell li,
.ugfx-admin-shell strong,
.ugfx-admin-shell span,
.ugfx-admin-shell .table,
.ugfx-admin-shell .table *{
  color: var(--ugfx-text);
}
.ugfx-admin-shell .text-secondary,
.ugfx-admin-shell .small,
.ugfx-admin-shell small,
.ugfx-admin-copy,
.ugfx-admin-shell .text-muted{
  color: rgba(246,241,234,.82) !important;
}
.ugfx-admin-sidebar a{color:rgba(246,241,234,.8) !important;}
.ugfx-admin-table{
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(255,106,0,.06);
  --bs-table-border-color: rgba(255,154,31,.12);
  margin-bottom: 0;
}
.ugfx-admin-table thead th{
  background: rgba(255,255,255,.03);
  color: #fff;
  border-bottom-color: rgba(255,154,31,.16);
  white-space: nowrap;
}
.ugfx-admin-table tbody td{
  background: transparent;
  color: var(--ugfx-text);
  vertical-align: top;
}
.ugfx-admin-table a{color: var(--ugfx-warm);text-decoration: none;}
.ugfx-admin-table a:hover{color:#fff;text-decoration: underline;}
.ugfx-admin-subrow td{
  color: rgba(246,241,234,.82);
  background: rgba(255,255,255,.02);
}
.ugfx-admin-empty-state{
  padding: 1.1rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(255,154,31,.16);
  background: rgba(255,255,255,.02);
  color: rgba(246,241,234,.72);
}
.ugfx-admin-schedule-premium-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.ugfx-admin-schedule-row{cursor:text;}
.ugfx-admin-schedule-input-wrap{padding:.35rem .45rem !important;}
.ugfx-admin-schedule-input{
  min-height: 44px;
  padding: .7rem .85rem !important;
  border-radius: 12px !important;
  background: rgba(8,9,16,.94) !important;
  border: 1px solid rgba(255,154,31,.12) !important;
  box-shadow: none !important;
}
.ugfx-admin-schedule-input:focus{
  border-color: rgba(255,154,31,.32) !important;
  box-shadow: 0 0 0 .18rem rgba(255,106,0,.1) !important;
}
@media (max-width: 991.98px){
  .ugfx-admin-schedule-premium-grid{grid-template-columns:1fr;}
}


/* Admin navbar/public match pass */
.ugfx-admin-topbar{position:sticky;top:0;z-index:1030;}
.ugfx-admin-shell{min-height:100vh;}
.ugfx-admin-nav-shell{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,154,31,.16);
}
.ugfx-admin-pill-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
}
.ugfx-admin-pill-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.72rem 1rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  color:rgba(246,241,234,.88);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,154,31,.14);
  transition:.2s ease;
}
.ugfx-admin-pill-nav a:hover,
.ugfx-admin-pill-nav a.active{
  color:#fff;
  background:linear-gradient(135deg, rgba(255,106,0,.16), rgba(255,59,31,.12));
  box-shadow: inset 0 0 0 1px rgba(255,154,31,.22), 0 0 22px rgba(255,106,0,.08);
}
.ugfx-admin-shell .ugfx-nav .nav-link{color:rgba(246,241,234,.88) !important;}
.ugfx-admin-shell .ugfx-nav .nav-link:hover{color:#fff !important;}
.ugfx-admin-shell .ugfx-admin-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;}
@media (max-width: 991.98px){
  .ugfx-admin-pill-nav a{flex:1 1 calc(50% - .7rem);}
}
@media (max-width: 575.98px){
  .ugfx-admin-pill-nav a{flex:1 1 100%;}
}


/* Chat media upgrade */
.ugfx-chat-sticker--image{display:block;padding:.3rem;background:transparent;border:none;max-width:220px}
.ugfx-chat-sticker--image img{display:block;width:100%;max-width:180px;border-radius:18px;border:1px solid rgba(255,154,31,.22);box-shadow:0 10px 26px rgba(0,0,0,.24)}
.ugfx-sticker-btn--media{padding:.4rem;min-height:132px;align-content:start;gap:.45rem}
.ugfx-sticker-btn--media img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;display:block}
.ugfx-sticker-btn--media span{font-size:.78rem;line-height:1.2;font-weight:700;color:#eef8ff}
.ugfx-chat-panel-actions{display:flex;justify-content:center;margin-top:.9rem}
.ugfx-media-empty{grid-column:1/-1;padding:1rem;border:1px dashed rgba(255,255,255,.14);border-radius:16px;text-align:center;color:rgba(255,255,255,.72)}
.ugfx-attach-card--media{padding:.38rem .6rem .38rem .38rem}
.ugfx-attach-card--media img{width:44px;height:44px;object-fit:cover;border-radius:12px;display:block}
[data-sticker-search],[data-gif-search]{background:rgba(255,255,255,.04)}
@media (max-width: 767.98px){.ugfx-sticker-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));}.ugfx-gif-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));}.ugfx-chat-sticker--image{max-width:180px}}
