/* ============================================================
   feature.css
   FEATURE STYLES — chat, discover, modals, the welcome gate, info drawer, quiz.
   NOTE: all CSS files load together; order affects overrides (base first).
   ============================================================ */

.mini-select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 12px; outline: none; cursor: pointer; }

.chat-layout { display: flex; gap: 14px; height: 500px; }

.chat-list { width: 200px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow-y: auto; }

.chat-list-item { padding: 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border); }

.chat-list-item:hover, .chat-list-item.active { background: var(--panel-2); }

.chat-window { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; }

.chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }

.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

.chat-input input { flex: 1; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13.5px; outline: none; }

.view-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-2); border: 1px solid var(--accent-dim); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 12.5px; color: var(--text-dim); }

.view-banner b { color: var(--text); }

.page { display: none; }

.page.active { display: block; }

.modal-bg { position: fixed; inset: 0; background: rgba(8,6,12,0.66); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }

.modal-bg.open { display: flex; }

.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 22px; }

.modal h3 { margin: 0 0 4px; font-size: 17px; }

.modal .step-count { font-size: 11.5px; color: var(--text-dim); margin: 0 0 18px; }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }

.field input[type=text], .field textarea, .field select { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text); font-size: 13.5px; outline: none; font-family: inherit; }

.field textarea { min-height: 60px; resize: vertical; }

.modal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }

.skip-note { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 10px; }

.quiz-q { display: none; }

.quiz-q.active { display: block; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--border); color: var(--text); padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 80; opacity: 0; transition: opacity 0.2s; pointer-events: none; }

.toast.show { opacity: 1; }

#infoBtn { position:fixed; right:16px; bottom:16px; z-index:90; width:42px; height:42px; border-radius:50%; background:var(--accent); color:#1a1424; border:none; font-size:20px; font-weight:700; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.4); }

.info-drawer { position:fixed; top:0; right:0; height:100vh; width:320px; max-width:88vw; background:var(--panel); border-left:1px solid var(--border); z-index:95; transform:translateX(100%); transition:transform .22s ease; display:flex; flex-direction:column; }

.info-drawer.open { transform:translateX(0); box-shadow:-8px 0 30px rgba(0,0,0,.4); }

.info-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:16px; border-bottom:1px solid var(--border); }

.info-tabs { display:flex; gap:6px; background:var(--panel-2); padding:5px; border-radius:10px; margin-bottom:14px; }

.info-tab { flex:1; text-align:center; padding:7px; border-radius:7px; font-size:12px; cursor:pointer; color:var(--text-dim); }

.info-tab.on { background:var(--accent); color:#1a1424; font-weight:700; }

.info-pane { display:none; font-size:12.5px; line-height:1.6; color:var(--text-dim); }

.info-pane.on { display:block; }

.info-pane b { color:var(--text); }

/* welcome gate */
  .gate { position:fixed; inset:0; z-index:200; background:radial-gradient(1100px 640px at 50% -10%, #221c30, #16141c 60%); overflow-y:auto; padding:32px 20px; }

.gate-inner { max-width:940px; margin:0 auto; display:grid; grid-template-columns:1.15fr .85fr; gap:30px; align-items:start; }

.gate-brand { font-size:28px; font-weight:800; margin:0 0 6px; }

.gate-brand span { color:var(--accent); }

.gate-tag { color:var(--text-dim); font-size:15px; margin:0 0 22px; line-height:1.5; }

.gate-section { margin-bottom:18px; }

.gate-section h3 { font-size:14px; margin:0 0 6px; }

.gate-section p { font-size:13px; color:var(--text-dim); line-height:1.6; margin:0 0 8px; }

.gate-section b { color:var(--text); font-weight:600; }

.gate-fine { font-size:11.5px; color:var(--text-dim); line-height:1.55; }

.gate-supporter { background:var(--panel); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:12px; padding:14px 16px; }

.gate-card { background:var(--panel); border:1px solid var(--border); border-radius:18px; padding:24px; position:sticky; top:20px; }

.gate-tabs { display:flex; gap:6px; background:var(--panel-2); padding:5px; border-radius:12px; margin-bottom:18px; }

.gate-tab { flex:1; text-align:center; padding:9px; border-radius:8px; font-size:13.5px; cursor:pointer; color:var(--text-dim); }

.gate-tab.on { background:var(--accent); color:#1a1424; font-weight:700; }

.gate-cardsub { font-size:12.5px; color:var(--text-dim); margin:0 0 16px; line-height:1.5; }

.gate-lbl { display:block; font-size:12px; color:var(--text-dim); margin-bottom:7px; }

.gate-choice { display:flex; gap:8px; margin-bottom:14px; }

.gate-opt { flex:1; text-align:center; padding:10px; border-radius:9px; background:var(--panel-2); border:1px solid var(--border); font-size:12.5px; cursor:pointer; }

.gate-opt.on { background:var(--accent); color:#1a1424; border-color:var(--accent); font-weight:700; }

.gate-input { width:100%; background:var(--panel-2); border:1px solid var(--border); border-radius:9px; padding:11px; color:var(--text); font-size:13.5px; margin-bottom:11px; outline:none; font-family:inherit; }

.gate-btn { width:100%; background:var(--accent); color:#1a1424; border:none; border-radius:10px; padding:12px; font-weight:700; font-size:14px; cursor:pointer; }

.gate-btn:hover { opacity:.93; }

.gate-err { font-size:11.5px; color:var(--danger); margin:12px 0 6px; min-height:14px; text-align:center; }

.gate-card a { color:var(--accent); }

.front-opt { display:flex; align-items:center; gap:10px; padding:11px; border:1px solid var(--border); border-radius:10px; cursor:pointer; background:var(--panel-2); }

.front-opt:hover { background:var(--panel-3); }

.disc-tabs { display:flex; gap:6px; background:var(--panel-2); padding:5px; border-radius:12px; margin:14px 0; }

.disc-tab { flex:1; text-align:center; padding:8px; border-radius:8px; font-size:13px; cursor:pointer; color:var(--text-dim); }

.disc-tab.on { background:var(--accent); color:#1a1424; font-weight:700; }

.disc-pane { display:none; }

.disc-pane.on { display:block; }

.disc-sortbar { display:flex; align-items:center; gap:8px; margin-bottom:12px; flex-wrap:wrap; }

.sort-chip { font-size:11.5px; padding:4px 11px; border-radius:20px; background:var(--panel-2); border:1px solid var(--border); cursor:pointer; }

.sort-chip.on { background:var(--accent); color:#1a1424; border-color:var(--accent); font-weight:600; }

.filt-chip { font-size:11.5px; padding:4px 11px; border-radius:20px; background:var(--panel-2); border:1px solid var(--border); cursor:pointer; }

.filt-chip.on { background:var(--accent); color:#1a1424; border-color:var(--accent); font-weight:600; }

.disc-search { width:100%; background:var(--panel-2); border:1px solid var(--border); border-radius:10px; padding:10px 13px; color:var(--text); font-size:13.5px; outline:none; margin-bottom:14px; }

.disc-post .disc-by { font-size:11.5px; color:var(--text-dim); cursor:pointer; }

.disc-post .disc-by:hover { color:var(--accent); text-decoration:underline; }

.group-card { display:flex; align-items:center; gap:12px; padding:12px; }

.group-ico { width:42px; height:42px; border-radius:11px; background:var(--panel-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }

.group-meta { flex:1; }

.group-band { font-size:10.5px; padding:2px 8px; border-radius:20px; background:var(--panel-3); color:var(--text-dim); }

.gate-navtabs { display:flex; gap:6px; background:var(--panel-2); padding:5px; border-radius:12px; margin-bottom:16px; }

.gate-navtab { flex:1; text-align:center; padding:8px 6px; border-radius:8px; font-size:12.5px; cursor:pointer; color:var(--text-dim); }

.gate-navtab.on { background:var(--accent); color:#1a1424; font-weight:700; }

.gate-pane { display:none; }

.gate-pane.on { display:block; }

.gate-pane .point { display:flex; gap:12px; align-items:flex-start; margin-bottom:13px; }

.gate-pane .ico { width:34px; height:34px; border-radius:10px; background:var(--panel-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }

.gate-pane .point h3 { margin:0 0 3px; font-size:13.5px; }

.gate-pane .point p { margin:0; font-size:12.5px; color:var(--text-dim); line-height:1.5; }
