* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #09090f; color: #f8fafc; height: 100vh; display: flex; flex-direction: column; overflow: hidden; user-select: none; }
.hidden { display: none !important; }

.tab-strip { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 0; background: #0b0b13; border-bottom: 1px solid rgba(139, 92, 246, 0.2); }
.tabs-list { display: flex; align-items: flex-end; gap: 5px; overflow-x: auto; max-width: calc(100vw - 52px); scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tab-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 125px; max-width: 200px; padding: 7px 10px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; border-bottom: none; color: #94a3b8; font-size: 12px; font-weight: 500; cursor: pointer; }
.tab-item:hover { background: rgba(124, 58, 237, 0.14); color: #e2e8f0; }
.tab-item.active { background: #131322; border-color: rgba(139, 92, 246, 0.4); color: #fff; }
.tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-close { background: none; border: none; color: #94a3b8; font-size: 15px; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tab-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.new-tab-btn { width: 28px; height: 28px; margin-bottom: 3px; border-radius: 8px; border: none; background: transparent; color: #94a3b8; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.new-tab-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.nav-bar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #131322; border-bottom: 1px solid rgba(139, 92, 246, 0.25); z-index: 10; }
.nav-controls { display: flex; align-items: center; gap: 4px; }
.nav-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: #cbd5e1; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.url-bar { flex: 1; display: flex; align-items: center; background: #09090f; border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 10px; padding: 5px 12px; }
.url-bar:focus-within { border-color: #a855f7; }
#url-input { flex: 1; background: transparent; border: none; outline: none; color: #f8fafc; font-size: 13px; }
.bookmark-star { background: none; border: none; color: #94a3b8; font-size: 15px; cursor: pointer; margin-left: 8px; }
.bookmark-star.saved, .bookmark-star:hover { color: #facc15; }
.brand-badge { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); font-size: 11px; font-weight: 600; color: #d8b4fe; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.bookmarks-bar { display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: #0d0d17; border-bottom: 1px solid rgba(139, 92, 246, 0.18); overflow-x: auto; scrollbar-width: none; }
.bookmarks-bar::-webkit-scrollbar { display: none; }
.bookmark-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(139, 92, 246, 0.2); color: #cbd5e1; font-size: 11px; padding: 3px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.bookmark-chip:hover { background: rgba(124, 58, 237, 0.25); color: #fff; }
.viewport { flex: 1; position: relative; overflow: hidden; background: #09090f; }
.bg-glow { position: absolute; top: -15%; left: 50%; transform: translateX(-50%); width: 650px; height: 400px; background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 75%); pointer-events: none; }
.start-page { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.clock { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #c084fc, #60a5fa, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.date { color: #94a3b8; font-size: 13px; margin: 6px 0 24px; }
.hero-title { margin-bottom: 20px; }
.hero-title h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }

.search-form { width: 100%; max-width: 560px; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; background: rgba(20, 20, 34, 0.9); border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 15px; padding: 7px 9px 7px 15px; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45); }
.search-box:focus-within { border-color: #a855f7; }
#center-input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 14px; padding: 7px 0; }
.go-btn { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; border: none; border-radius: 10px; padding: 9px 17px; font-size: 13px; font-weight: 600; cursor: pointer; }

.quick-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; }
.quick-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(139, 92, 246, 0.25); color: #cbd5e1; font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.quick-card:hover { background: rgba(124, 58, 237, 0.25); border-color: rgba(167, 139, 250, 0.6); color: #fff; }

.error-box { margin-top: 16px; color: #fca5a5; font-size: 12px; max-width: 560px; }
.footer { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font-size: 11px; color: #64748b; }
.footer a { color: #a855f7; text-decoration: none; font-weight: 600; }
.frames-host, .tab-frame { width: 100%; height: 100%; border: none; background: #fff; }
