/* ============================================
   RINZO ADMIN PANEL — admin-style.css
   Phase 9: + Activity Logs & System Health
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #030712; overflow-x: hidden; }
.font-display { font-family: 'Orbitron', sans-serif; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.25; }
.orb-cyan { width: 420px; height: 420px; background: #06b6d4; top: -120px; left: -120px; animation: floatA 18s ease-in-out infinite; }
.orb-purple { width: 380px; height: 380px; background: #a855f7; bottom: -100px; right: -80px; animation: floatB 22s ease-in-out infinite; }
.orb-pink { width: 300px; height: 300px; background: #ec4899; top: 45%; left: 55%; opacity: 0.12; animation: floatA 26s ease-in-out infinite reverse; }
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(60px,40px) scale(1.15);} }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-50px,-60px) scale(1.1);} }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); }

.loading-spinner { width: 48px; height: 48px; border: 3px solid #1f2937; border-top-color: #06b6d4; border-right-color: #a855f7; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass-card { background: rgba(17,24,39,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(75,85,99,0.3); transition: all 0.3s ease; }
.glass-card:hover { border-color: rgba(6,182,212,0.3); box-shadow: 0 0 20px rgba(6,182,212,0.05); }
.glass-header { background: rgba(3,7,18,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(75,85,99,0.3); }
.glass-sidebar { background: rgba(17,24,39,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-right: 1px solid rgba(75,85,99,0.3); }

.login-card { background: rgba(17,24,39,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(6,182,212,0.2); box-shadow: 0 0 40px rgba(6,182,212,0.05), 0 25px 50px rgba(0,0,0,0.5); animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

.input-field { transition: all 0.3s ease; }
.input-field:focus { box-shadow: 0 0 0 3px rgba(6,182,212,0.1); }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.5s ease; }
.btn-primary:hover::before { left: 100%; }

.nav-item { color: #9ca3af; border: 1px solid transparent; }
.nav-item:hover { color: #e5e7eb; background: rgba(75,85,99,0.2); border-color: rgba(75,85,99,0.3); }
.nav-item.active { color: #06b6d4; background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.3); box-shadow: 0 0 15px rgba(6,182,212,0.05); }

.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #06b6d4, #a855f7); opacity: 0; transition: opacity 0.3s ease; }
.stat-card:hover::after { opacity: 1; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,182,212,0.1); }

.quick-action { cursor: pointer; border: 1px solid rgba(75,85,99,0.3); }
.quick-action:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.quick-action:active { transform: translateY(0); }

.list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(31,41,55,0.4); border: 1px solid rgba(75,85,99,0.2); transition: all 0.2s ease; }
.list-item:hover { background: rgba(31,41,55,0.7); border-color: rgba(6,182,212,0.2); }
.list-item-title { font-size: 0.8rem; font-weight: 500; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.list-item-meta { font-size: 0.7rem; color: #6b7280; }
.list-item-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 9999px; font-weight: 600; white-space: nowrap; }

.chart-bar-container { display: flex; align-items: center; gap: 10px; }
.chart-bar-label { font-size: 0.75rem; color: #9ca3af; min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-track { flex: 1; height: 8px; background: rgba(31,41,55,0.8); border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #06b6d4, #a855f7); transition: width 0.8s ease; min-width: 2px; }
.chart-bar-value { font-size: 0.7rem; color: #6b7280; min-width: 30px; text-align: right; }

.toast { pointer-events: auto; animation: toastIn 0.3s ease; border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.toast-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.toast-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.toast-info { background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3); color: #67e8f9; }
@keyframes toastIn { from { opacity:0; transform:translateX(30px);} to { opacity:1; transform:translateX(0);} }
@keyframes toastOut { from { opacity:1; transform:translateX(0);} to { opacity:0; transform:translateX(30px);} }

.empty-state { text-align: center; padding: 24px 16px; color: #6b7280; }
.empty-state-icon { font-size: 2rem; margin-bottom: 8px; }
.empty-state-text { font-size: 0.8rem; }
.skeleton { background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0;} 100% { background-position: -200% 0;} }

.page-section { animation: pageIn 0.3s ease; }
@keyframes pageIn { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:translateY(0);} }

.badge-cyan { background: rgba(6,182,212,0.15); color: #67e8f9; }
.badge-green { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-purple { background: rgba(168,85,247,0.15); color: #d8b4fe; }
.badge-yellow { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-red { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ===== UPLOAD ===== */
.drop-zone { border: 2px dashed rgba(75,85,99,0.5); transition: all 0.3s ease; position: relative; overflow: hidden; }
.drop-zone:hover, .drop-zone.drag-over { border-color: #06b6d4; background: rgba(6,182,212,0.06); box-shadow: 0 0 30px rgba(6,182,212,0.1); }
.drop-zone.drag-over .drop-icon { transform: scale(1.2); }
.drop-icon { transition: transform 0.3s ease; animation: pulseIcon 2.5s ease-in-out infinite; }
@keyframes pulseIcon { 0%,100% { transform: scale(1);} 50% { transform: scale(1.08);} }
.drop-zone.has-file { border-style: solid; border-color: rgba(16,185,129,0.4); }
.audio-player { border-radius: 12px; outline: none; }
.progress-track { height: 8px; background: rgba(31,41,55,0.8); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #06b6d4, #a855f7, #ec4899); background-size: 200% 100%; border-radius: 4px; transition: width 0.2s ease; animation: progressGlow 1.5s linear infinite; }
@keyframes progressGlow { 0% { background-position: 0% 0;} 100% { background-position: 200% 0;} }
.tags-box { min-height: 48px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3); color: #67e8f9; padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; animation: chipIn 0.2s ease; }
.tag-chip button { background: none; border: none; color: #67e8f9; cursor: pointer; font-size: 0.85rem; line-height: 1; padding: 0; }
.tag-chip button:hover { color: #fca5a5; }
@keyframes chipIn { from { opacity:0; transform:scale(0.8);} to { opacity:1; transform:scale(1);} }

/* ===== TOGGLES ===== */
.toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: relative; width: 44px; height: 24px; background: #374151; border-radius: 9999px; transition: background 0.3s ease; flex-shrink: 0; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #9ca3af; border-radius: 50%; transition: all 0.3s ease; }
.toggle-input:checked + .toggle-track { background: linear-gradient(90deg, #06b6d4, #a855f7); }
.toggle-input:checked + .toggle-track .toggle-thumb { left: 23px; background: #fff; box-shadow: 0 0 8px rgba(6,182,212,0.6); }
.toggle-input:focus + .toggle-track { box-shadow: 0 0 0 3px rgba(6,182,212,0.2); }
.toggle-track.sm { width: 36px; height: 20px; }
.toggle-track.sm .toggle-thumb { width: 14px; height: 14px; }
.toggle-input:checked + .toggle-track.sm .toggle-thumb { left: 19px; }

/* ===== PHASE 4: RINGTONES ===== */
.rt-card { position: relative; overflow: hidden; animation: cardIn 0.4s ease both; }
.rt-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #06b6d4, #a855f7); opacity: 0; transition: opacity 0.3s ease; }
.rt-card:hover::before { opacity: 1; }
.rt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(6,182,212,0.08); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }

.rt-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; border: 1px solid rgba(75,85,99,0.4); background: rgba(31,41,55,0.5); color: #d1d5db; cursor: pointer; transition: all 0.2s ease; }
.rt-action:hover { transform: translateY(-1px); border-color: rgba(6,182,212,0.5); color: #67e8f9; background: rgba(6,182,212,0.1); }
.rt-action.danger:hover { border-color: rgba(239,68,68,0.5); color: #fca5a5; background: rgba(239,68,68,0.1); }
.rt-action:active { transform: translateY(0); }
.rt-action:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.on { background: #34d399; box-shadow: 0 0 6px #34d399; animation: dotPulse 2s infinite; }
.status-dot.off { background: #6b7280; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 4px #34d399;} 50% { box-shadow: 0 0 10px #34d399;} }

.page-btn { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(75,85,99,0.4); background: rgba(31,41,55,0.5); color: #d1d5db; cursor: pointer; transition: all 0.2s ease; }
.page-btn:hover:not(:disabled) { border-color: rgba(6,182,212,0.5); color: #67e8f9; }
.page-btn.active { background: linear-gradient(90deg, #06b6d4, #a855f7); color: #fff; border-color: transparent; box-shadow: 0 0 12px rgba(6,182,212,0.3); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

#modal-overlay { display: flex; }
#modal-overlay.hidden { display: none; }
.modal-shell { background: rgba(10,15,28,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(6,182,212,0.25); box-shadow: 0 0 50px rgba(6,182,212,0.08), 0 25px 60px rgba(0,0,0,0.6); animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px);} to { opacity: 1; transform: scale(1) translateY(0);} }
.modal-header { background: rgba(17,24,39,0.6); }

.eq { display: flex; gap: 4px; align-items: flex-end; height: 28px; }
.eq span { width: 5px; background: linear-gradient(180deg, #22d3ee, #a855f7); border-radius: 3px; height: 25%; transition: height 0.2s ease; }
.eq.playing span { animation: eqBounce 0.9s ease-in-out infinite; }
.eq span:nth-child(1){animation-delay:0s}.eq span:nth-child(2){animation-delay:.15s}.eq span:nth-child(3){animation-delay:.3s}.eq span:nth-child(4){animation-delay:.45s}.eq span:nth-child(5){animation-delay:.6s}.eq span:nth-child(6){animation-delay:.75s}.eq span:nth-child(7){animation-delay:.9s}
@keyframes eqBounce { 0%,100% { height: 20%;} 50% { height: 100%;} }

.seo-ring { position: relative; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--ring-color, #22d3ee) calc(var(--pct, 0) * 1%), rgba(31,41,55,0.9) 0); display: flex; align-items: center; justify-content: center; animation: ringIn 0.8s ease; }
.seo-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #0a0f1c; }
.seo-ring-value { position: relative; z-index: 1; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.5rem; }
@keyframes ringIn { from { transform: scale(0.7); opacity: 0;} to { transform: scale(1); opacity: 1;} }
.seo-check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(31,41,55,0.4); font-size: 0.78rem; }
.seo-check.ok { color: #6ee7b7; }
.seo-check.bad { color: #fca5a5; }

.analytic-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.analytic-label { font-size: 0.75rem; color: #9ca3af; min-width: 90px; }
.analytic-track { flex: 1; height: 10px; background: rgba(31,41,55,0.8); border-radius: 5px; overflow: hidden; }
.analytic-fill { height: 100%; border-radius: 5px; width: 0%; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }

/* ===== PHASE 5: CATEGORIES ===== */
.cat-card { position: relative; overflow: hidden; animation: cardIn 0.4s ease both; }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, #22d3ee); opacity: 0.9; }
.cat-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent, #22d3ee); opacity: 0.06; filter: blur(30px); transition: opacity 0.3s ease; }
.cat-card:hover::after { opacity: 0.14; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--accent, #22d3ee); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.cat-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; border-radius: 12px; flex-shrink: 0; transition: transform 0.25s ease; }
.cat-card:hover .cat-icon { transform: scale(1.12) rotate(-4deg); }
.icon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.icon-btn { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding: 8px 0; border-radius: 8px; background: rgba(31,41,55,0.5); border: 1px solid rgba(75,85,99,0.4); cursor: pointer; transition: all 0.2s ease; }
.icon-btn:hover { border-color: rgba(6,182,212,0.5); transform: translateY(-2px); background: rgba(6,182,212,0.08); }
.icon-btn.selected { background: rgba(6,182,212,0.15); border-color: #22d3ee; box-shadow: 0 0 12px rgba(34,211,238,0.35); transform: scale(1.05); }
.cat-preview { border: 1px dashed rgba(6,182,212,0.35); background: rgba(6,182,212,0.04); animation: pageIn 0.3s ease; }

/* ===== PHASE 6: ARTISTS ===== */
.artist-card { position: relative; overflow: hidden; animation: cardIn 0.4s ease both; display: flex; gap: 16px; }
.artist-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--a1, #ec4899), var(--a2, #a855f7)); opacity: 0.7; transition: opacity 0.3s ease; }
.artist-card:hover::before { opacity: 1; }
.artist-card:hover { transform: translateY(-3px); border-color: var(--a1, #ec4899); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.artist-avatar { position: relative; width: 64px; height: 64px; flex-shrink: 0; filter: drop-shadow(0 0 10px var(--a1, #ec4899)); }
.artist-avatar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--a1, #ec4899), var(--a2, #a855f7), var(--a1, #ec4899)); animation: ringRotate 6s linear infinite; }
.artist-card:hover .artist-avatar::before { animation-duration: 1.6s; }
@keyframes ringRotate { to { transform: rotate(360deg); } }
.avatar-inner { position: absolute; inset: 3px; border-radius: 50%; overflow: hidden; background: #0d1424; display: flex; align-items: center; justify-content: center; z-index: 1; }
.avatar-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.avatar-initials { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: 1px; user-select: none; }
.artist-avatar.sm { width: 48px; height: 48px; filter: drop-shadow(0 0 8px var(--a1, #22d3ee)); }
.artist-avatar.sm .avatar-initials { font-size: 0.9rem; }
.artist-preview { border: 1px dashed rgba(236,72,153,0.35); background: rgba(236,72,153,0.04); animation: pageIn 0.3s ease; }

/* ===== PHASE 7: ADS ===== */
.killswitch { position: relative; overflow: hidden; border: 1px solid rgba(52,211,153,0.25); }
.killswitch::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #34d399, #fbbf24, #f87171); opacity: 0.8; }
.kill-indicator { width: 14px; height: 14px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; animation: dotPulse 2s infinite; flex-shrink: 0; }
.kill-indicator.off { background: #f87171; box-shadow: 0 0 12px #f87171; animation: none; }
.power-switch { cursor: pointer; }
.power-track { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #1f2937; border: 2px solid #374151; transition: all 0.3s ease; position: relative; }
.power-track:hover { transform: scale(1.05); }
.power-track:active { transform: scale(0.95); }
.power-thumb { font-size: 1.7rem; color: #6b7280; transition: all 0.3s ease; line-height: 1; }
#kill-toggle:checked + .power-track { background: rgba(52,211,153,0.12); border-color: #34d399; box-shadow: 0 0 24px rgba(52,211,153,0.45); }
#kill-toggle:checked + .power-track .power-thumb { color: #34d399; text-shadow: 0 0 12px #34d399; }
.ads-tab { padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; color: #9ca3af; border: 1px solid transparent; transition: all 0.25s ease; white-space: nowrap; cursor: pointer; background: none; }
.ads-tab:hover { color: #e5e7eb; background: rgba(75,85,99,0.2); }
.ads-tab.active { color: #22d3ee; background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.35); box-shadow: 0 0 14px rgba(6,182,212,0.08); }
.adnet-card { position: relative; overflow: hidden; animation: cardIn 0.4s ease both; }
.adnet-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #06b6d4, #a855f7); opacity: 0.6; }
.adnet-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(6,182,212,0.08); }
.adnet-rank { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.3); color: #67e8f9; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.adslot-card { position: relative; overflow: hidden; animation: cardIn 0.4s ease both; }
.adslot-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #fbbf24, #ec4899); opacity: 0.6; transition: opacity 0.3s ease; }
.adslot-card:hover::before { opacity: 1; }
.adslot-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(251,191,36,0.06); }
.net-chip { padding: 4px 10px; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; background: rgba(31,41,55,0.5); border: 1px solid rgba(75,85,99,0.4); color: #d1d5db; cursor: pointer; transition: all 0.2s ease; }
.net-chip:hover { border-color: rgba(6,182,212,0.5); color: #67e8f9; background: rgba(6,182,212,0.1); transform: translateY(-1px); }
.code-preview { background: rgba(2,6,17,0.9); border: 1px solid rgba(75,85,99,0.4); border-radius: 10px; padding: 12px; font-size: 0.7rem; color: #86efac; font-family: 'Courier New', monospace; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.ad-render-frame { position: relative; border: 1px dashed rgba(245,158,11,0.4); border-radius: 12px; padding: 10px; background: rgba(245,158,11,0.04); }
.ad-label { position: absolute; top: -8px; left: 12px; background: #0a0f1c; padding: 0 8px; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fbbf24; z-index: 2; }

/* ===== PHASE 8: SETTINGS + LIVE PREVIEW ===== */
.settings-preview { position: relative; overflow: hidden; }
.settings-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #34d399, #06b6d4, #a855f7); opacity: 0.8; }
.preview-label { font-family: 'Orbitron', sans-serif; font-size: 0.6rem; letter-spacing: 2px; color: #6b7280; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.preview-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: dotPulse 2s infinite; flex-shrink: 0; }
.browser-frame { border-radius: 14px; overflow: hidden; border: 1px solid rgba(75,85,99,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.45); transition: box-shadow 0.3s ease; }
.browser-frame:hover { box-shadow: 0 24px 60px rgba(6,182,212,0.12); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0d1424; border-bottom: 1px solid rgba(75,85,99,0.3); }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.browser-dot.red { background: #f87171; }
.browser-dot.yellow { background: #fbbf24; }
.browser-dot.green { background: #34d399; }
.browser-url { margin-left: 10px; flex: 1; background: rgba(31,41,55,0.6); border-radius: 6px; padding: 4px 12px; font-size: 0.65rem; color: #9ca3af; font-family: 'Courier New', monospace; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { position: relative; background: #0a1020; min-height: 160px; --pv-color: #06b6d4; transition: background 0.35s ease; }
.browser-body.light { background: #f1f5f9; }
.pv-hidden { display: none !important; }
.pv-announcement { background: var(--pv-color); color: #030712; font-size: 0.65rem; font-weight: 700; text-align: center; padding: 6px 12px; animation: pageIn 0.3s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-header { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.pv-logo-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.pv-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.pv-logo-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1.5px solid var(--pv-color); font-size: 1.3rem; transition: border-color 0.3s ease; }
.pv-name { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: 0.5px; transition: color 0.3s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body.light .pv-name { color: #0f172a; }
.pv-tagline { font-size: 0.65rem; color: #94a3b8; margin-top: 2px; transition: color 0.3s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body.light .pv-tagline { color: #64748b; }
.pv-accent-bar { height: 3px; background: linear-gradient(90deg, var(--pv-color), transparent); margin: 0 20px 16px; border-radius: 2px; transition: background 0.3s ease; }
.pv-content { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.pv-skeleton { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(148,163,184,0.12) 25%, rgba(148,163,184,0.22) 50%, rgba(148,163,184,0.12) 75%); background-size: 200% 100%; animation: shimmer 1.8s infinite; }
.browser-body.light .pv-skeleton { background: linear-gradient(90deg, rgba(100,116,139,0.15) 25%, rgba(100,116,139,0.28) 50%, rgba(100,116,139,0.15) 75%); background-size: 200% 100%; }
.pv-maintenance { position: absolute; inset: 0; background: rgba(3,7,18,0.88); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 5; animation: pageIn 0.3s ease; }
.pv-maintenance span { font-size: 2.2rem; animation: pulseIcon 2s ease-in-out infinite; }
.pv-maintenance p { font-size: 0.72rem; color: #fcd34d; font-weight: 600; text-align: center; padding: 0 20px; }
.set-label { display: block; font-size: 0.75rem; color: #9ca3af; margin-bottom: 6px; font-weight: 500; }
.color-input { width: 56px; height: 42px; border-radius: 10px; border: 1px solid rgba(75,85,99,0.5); background: rgba(31,41,55,0.5); cursor: pointer; padding: 3px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.color-input:hover { transform: scale(1.06); box-shadow: 0 0 14px rgba(6,182,212,0.3); }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: none; border-radius: 7px; }
.color-input::-moz-color-swatch { border: none; border-radius: 7px; }
.settings-panel { animation: pageIn 0.3s ease; }

/* ===== PHASE 9: LOGS & SYSTEM ===== */
.live-stream { position: relative; overflow: hidden; }
.live-stream::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #34d399, #06b6d4, #a855f7); opacity: 0.85; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: dotPulse 1.6s infinite; flex-shrink: 0; }
.live-row { display: flex; align-items: center; gap: 12px; padding: 7px 16px; font-size: 0.72rem; font-family: 'Courier New', monospace; border-bottom: 1px solid rgba(75,85,99,0.12); animation: logIn 0.45s ease both; transition: background 0.2s ease; }
.live-row:last-child { border-bottom: none; }
.live-row:hover { background: rgba(6,182,212,0.06); }
.live-time { color: #6b7280; min-width: 62px; flex-shrink: 0; }
.live-action { font-weight: 700; min-width: 150px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-details { color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
@keyframes logIn { from { opacity: 0; transform: translateX(-14px);} to { opacity: 1; transform: none;} }

.log-row { animation: cardIn 0.4s ease both; transition: all 0.25s ease; }
.log-row:hover { transform: translateX(4px); border-color: rgba(6,182,212,0.35); }
.log-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9999px; font-size: 0.66rem; font-weight: 700; border: 1px solid; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.log-cyan { color: #67e8f9; background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.35); }
.log-green { color: #6ee7b7; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); }
.log-red { color: #fca5a5; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); }
.log-amber { color: #fcd34d; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
.log-purple { color: #d8b4fe; background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.35); }
.log-pink { color: #f9a8d4; background: rgba(236,72,153,0.12); border-color: rgba(236,72,153,0.35); }
.log-blue { color: #93c5fd; background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.35); }
.log-teal { color: #5eead4; background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.35); }
.log-gray { color: #9ca3af; background: rgba(107,114,128,0.15); border-color: rgba(107,114,128,0.4); }

.health-card { animation: cardIn 0.4s ease both; }
.health-card:hover { transform: translateY(-3px); }
.sec-check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(31,41,55,0.35); border: 1px solid rgba(75,85,99,0.2); transition: all 0.2s ease; animation: cardIn 0.4s ease both; }
.sec-check:hover { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.05); }
.sec-ok { width: 22px; height: 22px; border-radius: 50%; background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.4); color: #34d399; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; flex-shrink: 0; }

@media (max-width: 640px) {
    .stat-card { padding: 12px !important; }
    .stat-card p.text-2xl { font-size: 1.25rem; }
    .list-item-title { max-width: 120px; }
    .icon-grid { grid-template-columns: repeat(6, 1fr); }
    .artist-avatar { width: 56px; height: 56px; }
    .power-track { width: 56px; height: 56px; }
    .power-thumb { font-size: 1.4rem; }
    .pv-name { font-size: 0.9rem; }
    .live-action { min-width: 0; flex: 1; }
    .live-details { display: none; }
}
