/* xgirl Live Cams */
.xgc-wrap [hidden], .xgc-btn[hidden], .xgc-notice[hidden] { display: none !important; }
.xgc-wrap { max-width: 1400px; margin: 0 auto; padding: 18px 14px 40px; color: #e6eef6; }
.xgc-wrap a { color: #ff8fb1; }
.muted { color: #9aa6b2; }
.xgc-card { background: linear-gradient(180deg, #161b21, #11151a); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px; }
.xgc-card h3 { margin: 0 0 10px; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.xgc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
  background: #232a32; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .08s, filter .15s; white-space: nowrap; }
.xgc-btn:hover { filter: brightness(1.15); }
.xgc-btn:active { transform: scale(.97); }
.xgc-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.xgc-btn-red { background: linear-gradient(135deg, #ff4f8b, #c41e3a); border-color: transparent; }
.xgc-btn-gold { background: linear-gradient(135deg, #ffd36b, #e09a1a); color: #231600; border-color: transparent; }
.xgc-btn-green { background: linear-gradient(135deg, #3ddc84, #1d9a55); border-color: transparent; color: #06210f; }
.xgc-btn-spy { background: linear-gradient(135deg, #8b5cf6, #5b21b6); border-color: transparent; }
.xgc-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.xgc-ok { color: #3ddc84; font-weight: 700; }

.xgc-badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: #333; color: #fff; }
.xgc-badge.is-public { background: #e3194b; }
.xgc-badge.is-private { background: #7c3aed; }
.xgc-badge.is-ticket { background: #e09a1a; color: #231600; }
.xgc-badge.is-offline { background: #3a424c; color: #c9d2db; }

/* Room */
.xgc-room { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.xgc-stage { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.xgc-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.xgc-stage-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; z-index: 3; pointer-events: none; }
.xgc-stage-top > * { pointer-events: auto; }
.xgc-pill { background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.xgc-stage-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 3; }
.xgc-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 20px; z-index: 2;
  background: radial-gradient(circle, rgba(10,12,16,.72), rgba(5,6,8,.94)); font-size: 16px; line-height: 1.7; }
.xgc-overlay > div > .fa-solid:first-child { font-size: 34px; color: #ff4f8b; }
.xgc-overlay .xgc-btn { margin-top: 12px; }
.xgc-stage[data-state="offline"] .xgc-overlay, .xgc-stage[data-state="locked"] .xgc-overlay,
.xgc-stage[data-state="connecting"] .xgc-overlay, .xgc-stage[data-state="error"] .xgc-overlay { display: flex; }
.xgc-stage[data-state="connecting"] .xgc-overlay { background: rgba(0,0,0,.5); }
.xgc-stage-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px) brightness(.45); transform: scale(1.1); z-index: 1; }
.xgc-stage[data-state="playing"] .xgc-stage-bg { display: none; }

.xgc-goal { margin-top: 10px; }
.xgc-goal-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; gap: 10px; }
.xgc-goal-track { height: 10px; border-radius: 6px; background: #232a32; overflow: hidden; }
.xgc-goal-bar { height: 100%; width: 0; background: linear-gradient(90deg, #ff4f8b, #ffd36b); transition: width .6s; }

.xgc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.xgc-quicktips { display: flex; gap: 6px; flex-wrap: wrap; }
.xgc-balance { margin-left: auto; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.xgc-balance b { color: #ffd36b; }
.xgc-notice { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #1d1430; border: 1px solid #5b21b6; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.xgc-notice.ticket { background: #2a1f08; border-color: #e09a1a; }
.xgc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff4f8b; animation: xgcPulse 1.2s infinite; }
@keyframes xgcPulse { 50% { opacity: .3; } }

.xgc-chat-card { display: flex; flex-direction: column; height: min(78vh, 720px); padding: 0; overflow: hidden; }
.xgc-chat-head { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; }
.xgc-chat { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.xgc-msg { padding: 3px 0; word-wrap: break-word; }
.xgc-time { color: #5d6875; font-size: 11px; }
.xgc-user { color: #7cc4ff; font-weight: 700; }
.xgc-user.is-model { color: #ff4f8b; }
.xgc-fan { color: #ffd36b; }
.xgc-tip, .xgc-menu { background: linear-gradient(90deg, rgba(224,154,26,.22), transparent); border-left: 3px solid #e09a1a; padding: 5px 8px; border-radius: 6px; margin: 3px 0; }
.xgc-system { color: #9aa6b2; font-style: italic; }
.xgc-goal { }
.xgc-msg.xgc-goal { color: #ffd36b; font-weight: 700; }
.xgc-chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.xgc-chat-form input { flex: 1; }
.xgc-input, .xgc-chat-form input, .xgc-form input, .xgc-form select, .xgc-form textarea {
  background: #0d1115; border: 1px solid rgba(255,255,255,.14); color: #e6eef6; border-radius: 9px; padding: 9px 11px; font-size: 14px; width: 100%; box-sizing: border-box; }
.xgc-form label { display: block; font-size: 13px; color: #9aa6b2; margin: 10px 0 4px; }
.xgc-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.xgc-info { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.xgc-menu-list { display: grid; gap: 6px; }
.xgc-menu-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: #0d1115; border-radius: 9px; border: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.xgc-menu-item:hover { border-color: #ff4f8b; }
.xgc-menu-item b { color: #ffd36b; white-space: nowrap; }
.xgc-prices td { padding: 5px 0; font-size: 14px; }
.xgc-prices td:last-child { text-align: right; font-weight: 700; color: #ffd36b; }

.xgc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.xgc-modal[hidden] { display: none; }
.xgc-modal-box { background: #161b21; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; width: 100%; max-width: 420px; }
.xgc-modal-box h3 { margin-top: 0; }

.xgc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: #232a32; color: #fff; padding: 12px 18px; border-radius: 12px;
  z-index: 6000; transition: all .25s; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 600; max-width: 90vw; }
.xgc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.xgc-toast.ok { background: #14532d; }
.xgc-toast.warn { background: #7c2d12; }

/* Lobby */
.xgc-lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.xgc-lobby-head h1 { margin: 0; font-size: 26px; }
.xgc-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.xgc-cats a { padding: 6px 12px; border-radius: 20px; background: #1a2027; color: #cfd9e3; text-decoration: none; font-size: 13px; border: 1px solid rgba(255,255,255,.07); }
.xgc-cats a.active, .xgc-cats a:hover { background: #c41e3a; color: #fff; }
.xgc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.xgc-tile { display: block; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; background: #12161b; border: 1px solid rgba(255,255,255,.06); transition: transform .12s, border-color .12s; }
.xgc-tile:hover { transform: translateY(-2px); border-color: #ff4f8b; }
.xgc-tile-img { position: relative; aspect-ratio: 4 / 3; background: #000 center / cover no-repeat; }
.xgc-tile-img .xgc-badge { position: absolute; top: 8px; left: 8px; }
.xgc-tile-img .xgc-pill { position: absolute; top: 8px; right: 8px; }
.xgc-tile.is-offline .xgc-tile-img { filter: grayscale(.7) brightness(.6); }
.xgc-tile-body { padding: 9px 11px; }
.xgc-tile-name { font-weight: 800; color: #fff; display: flex; justify-content: space-between; gap: 8px; }
.xgc-tile-topic { font-size: 12.5px; color: #9aa6b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.xgc-tile-goal { height: 4px; background: #232a32; border-radius: 3px; margin-top: 7px; overflow: hidden; }
.xgc-tile-goal span { display: block; height: 100%; background: linear-gradient(90deg, #ff4f8b, #ffd36b); }
.xgc-hero { background: linear-gradient(120deg, rgba(227,25,75,.25), rgba(124,58,237,.18)); border: 1px solid rgba(255,79,139,.25); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.xgc-hero p { margin: 4px 0 0; color: #cfd9e3; }

/* Studio */
.xgs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.xgs-col { display: grid; gap: 14px; }
.xgs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.xgs-stat { background: #0d1115; border-radius: 10px; padding: 10px; text-align: center; }
.xgs-stat b { display: block; font-size: 20px; color: #ffd36b; }
.xgs-stat span { font-size: 12px; color: #9aa6b2; }
.xgs-req { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px; background: #0d1115; border-radius: 9px; margin-bottom: 6px; font-size: 14px; }
.xgs-viewer { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.xgs-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.xgs-modes label { flex: 1; min-width: 150px; padding: 10px; border-radius: 10px; background: #0d1115; border: 1px solid rgba(255,255,255,.1); cursor: pointer; font-size: 13px; }
.xgs-modes input { margin-right: 6px; }
.xgs-copy { display: flex; gap: 6px; margin-bottom: 8px; }
.xgs-inline { display: flex; gap: 6px; }
.xgs-inline input { flex: 1; }

/* Dashboard */
.xgc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.xgc-tabs a { padding: 8px 14px; border-radius: 10px; background: #1a2027; color: #cfd9e3; text-decoration: none; font-weight: 700; font-size: 14px; }
.xgc-tabs a.active { background: #c41e3a; color: #fff; }
.xgc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.xgc-table th, .xgc-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
.xgc-table th { color: #9aa6b2; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.xgc-alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.xgc-alert.error { background: #3a1515; border: 1px solid #c41e3a; color: #ffb4b4; }
.xgc-alert.success { background: #0f2e1c; border: 1px solid #1d9a55; color: #a7f3c8; }
.xgc-alert.info { background: #14202e; border: 1px solid #2c5282; color: #cfe3ff; }

@media (max-width: 1000px) {
  .xgc-room, .xgs-grid, .xgc-info { grid-template-columns: 1fr; }
  .xgc-chat-card { height: 420px; }
  .xgs-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .xgc-wrap { padding: 10px 8px 30px; }
  .xgc-balance { margin-left: 0; width: 100%; }
  .xgc-form .row { grid-template-columns: 1fr; }
}
.xgc-search { display: flex !important; gap: 6px; align-items: center; margin: 0; }
.xgc-search input { width: 220px !important; margin: 0 !important; }
.xgc-search button { width: auto !important; margin: 0 !important; }
