* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0a0a12; color: #e8e8ee; min-height: 100vh; line-height: 1.5; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,18,.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.04); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.logo-icon { width: 28px; height: 28px; border-radius: 6px; background: #6366f1; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.header-nav { display: flex; gap: 2px; }
.nav-btn { padding: 6px 14px; border: none; border-radius: 6px; background: transparent; color: #8888a0; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit; }
.nav-btn:hover { color: #e8e8ee; background: rgba(255,255,255,.03); }
.nav-btn.active { background: rgba(99,102,241,.1); color: #6366f1; }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 10px; }
.user-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8888a0; }
.user-dot { width: 6px; height: 6px; border-radius: 50%; background: #555568; }
.btn-tg { padding: 7px 16px; border: none; border-radius: 6px; background: #0088cc; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-tg:hover { background: #0099dd; }
.user-badge { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 20px; background: rgba(99,102,241,.1); font-size: 12px; color: #e8e8ee; cursor: pointer; }
#user-name { font-weight: 500; }

/* Main */
.main { max-width: 1100px; margin: 0 auto; padding: 76px 20px 40px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 20px; color: #e8e8ee; }
.tab { display: none; }
.tab.active { display: block; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.card { background: #15152a; border: 1px solid rgba(255,255,255,.04); border-radius: 10px; padding: 16px; transition: all .15s; }
.card:hover { background: #1a1a32; border-color: rgba(255,255,255,.08); }
.card-name { font-size: 14px; font-weight: 600; color: #e8e8ee; }
.card-version { font-size: 11px; color: #6366f1; background: rgba(99,102,241,.08); padding: 1px 6px; border-radius: 3px; margin-left: 5px; font-weight: 600; display: inline-block; }
.card-meta { font-size: 12px; color: #8888a0; margin-top: 4px; }
.card-desc { font-size: 13px; color: #8888a0; margin-top: 8px; line-height: 1.4; }
.card-actions { margin-top: 12px; display: flex; gap: 6px; }
.btn-dl { padding: 8px 16px; border: none; border-radius: 6px; background: #6366f1; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-dl:hover { background: #7577f5; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-box { background: #1a1a2e; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 24px; max-width: 380px; width: 90%; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal-body { font-size: 13px; color: #8888a0; margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-btn { padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit; border: none; }
.modal-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.06); color: #8888a0; }
.modal-btn-outline:hover { background: rgba(255,255,255,.03); color: #e8e8ee; }

/* Toast */
.toasts { position: fixed; bottom: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 8px; background: rgba(26,26,46,.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.05); color: #e8e8ee; font-size: 13px; max-width: 360px; pointer-events: auto; }

/* Empty */
.empty-state { text-align: center; padding: 60px 20px; color: #8888a0; }
.empty-state h3 { font-size: 16px; color: #e8e8ee; margin-bottom: 4px; }
.empty-state p { font-size: 13px; }

/* Upload */
.upload-box { max-width: 480px; margin: 40px auto; background: #15152a; border: 1px solid rgba(255,255,255,.04); border-radius: 12px; padding: 24px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 11px; font-weight: 600; color: #8888a0; text-transform: uppercase; letter-spacing: .5px; }
.form input { padding: 9px 12px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 6px; color: #e8e8ee; font-size: 13px; font-family: inherit; outline: none; transition: border .15s; }
.form input:focus { border-color: #6366f1; }
.btn-upload { padding: 10px 20px; border: none; border-radius: 6px; background: #6366f1; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-upload:hover { background: #7577f5; }
