* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: #000; color: #fff; height: 100vh; overflow: hidden; display: flex; justify-content: center; }

/* Desktop-Mobile layout */
.mobile-wrapper { width: 100%; max-width: 480px; height: 100vh; position: relative; background: #0b0c10; overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.5); }
.stream-container { width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; background: #0b0c10; display: flex; flex-direction: column; }

/* Header */
.f-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0b0c10; border-bottom: 1px solid rgba(255,255,255,0.05); }
.f-logo { display: flex; align-items: center; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.f-header-right { display: flex; align-items: center; }
.btn-login-small { background: #5c43ff; color: #fff; border: none; border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Video Box */
.f-video-wrap { padding: 12px 16px; cursor: pointer; }
.f-video-box { position: relative; width: 100%; height: 260px; border-radius: 12px; overflow: hidden; background: #13141a; display: flex; justify-content: center; align-items: center; }
.f-bg-video { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(15px) brightness(0.7); z-index: 1; pointer-events: none; }
.f-video-overlay { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.3); pointer-events: none; }
.overlay-box { background: #13141a; border-radius: 16px; padding: 20px; text-align: center; width: 85%; max-width: 300px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); pointer-events: auto; }
.overlay-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.overlay-box p { font-size: 11px; color: #a1a5b3; margin-bottom: 16px; line-height: 1.4; }
.btn-overlay-login { background: #5c43ff; color: #fff; border: none; border-radius: 24px; padding: 12px; font-size: 14px; font-weight: 600; width: 100%; cursor: pointer; }

/* Actions */
.f-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.f-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-group { background: #1c1e26; color: #d1d4dc; border: 1px solid rgba(255,255,255,0.05); }
.btn-private { background: #5c43ff; color: #fff; }
.btn-tokens { background: #ff2a5f; color: #fff; }

/* Tabs */
.f-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); margin: 0 16px; }
.f-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 600; color: #5a5d6a; border-bottom: 2px solid transparent; cursor: pointer; }
.f-tab.active { color: #fff; border-bottom-color: #fff; }

/* Chat Area */
.f-chat-area { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow: hidden; }
.chat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chat-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #d1d4dc; }
.chat-viewers { font-size: 12px; color: #a1a5b3; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.chat-messages::-webkit-scrollbar { display: none; }
.chat-rules { font-size: 11px; color: #5a5d6a; text-align: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.05); }

/* Message Styling matching screenshot 2 */
.f-msg { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.4; display: flex; gap: 8px; animation: slideUpMsg 0.3s ease-out; }
.f-msg .user { font-weight: 600; text-shadow: none; margin: 0; white-space: nowrap; }
.f-msg .text { color: #d1d4dc; word-wrap: break-word; }
@keyframes slideUpMsg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* User Colors */
.user.pink { color: #ff80ab; }
.user.green { color: #69f0ae; }
.user.blue { color: #4fc3f7; }
.user.cyan { color: #18ffff; }

/* Input Box */
.f-input-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px 20px; background: #0b0c10; border-top: 1px solid rgba(255,255,255,0.05); }
.fake-input { flex: 1; background: #1c1e26; border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 12px 16px; color: #5a5d6a; font-size: 13px; cursor: pointer; }
.powered-by { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #a1a5b3; font-weight: 600; cursor: pointer; }

/* Modal Fake TG */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 1000; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #13141a; width: 90%; max-width: 340px; border-radius: 16px; padding: 24px; position: relative; transform: scale(0.95); transition: 0.3s; border: 1px solid #1f2128; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: #a1a5b3; font-size: 20px; cursor: pointer; }
.modal-header { text-align: center; margin-bottom: 24px; }
.modal-logo { display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.modal-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.modal-header p { font-size: 13px; color: #a1a5b3; line-height: 1.4; }

.input-step { display: none; }
.input-step.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.input-label { font-size: 12px; font-weight: 600; color: #a1a5b3; margin-bottom: 8px; text-transform: uppercase; }
.phone-input-wrap { display: flex; align-items: center; background: #1c1e26; border-radius: 12px; border: 1px solid #2a2d38; padding: 0 12px; margin-bottom: 12px; }
.country-select-wrap { position: relative; border-right: 1px solid #3a3d4a; padding-right: 10px; margin-right: 8px; display: flex; align-items: center; }
.country-select { background: transparent; border: none; color: #fff; font-size: 15px; font-weight: 500; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.country-select option { background: #1c1e26; color: #fff; }
.phone-input-wrap input { flex: 1; background: transparent; border: none; color: #fff; font-size: 16px; padding: 14px 0; outline: none; width: 100%; }
.phone-input-wrap input::placeholder { color: #5a5d6a; }
.phone-input-wrap:focus-within { border-color: #00a2ff; }
.terms { font-size: 11px; color: #737785; text-align: center; margin-bottom: 20px; line-height: 1.4; }
.full-width { width: 100%; border-radius: 12px; padding: 14px; font-size: 15px; margin-top: 10px; }
.btn-blue:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-blue { background: #00a2ff; color: #fff; border: none; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 162, 255, 0.3); width: 100%; transition: 0.2s; }
.btn-blue:active { transform: scale(0.97); }
