/* ═══════════════════════════════════════════════
   OwO NFHunt - Premium Dark UI
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f3;
  --bg-input: #f1f3f5;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent-1: #dc2626;
  --accent-2: #ef4444;
  --accent-3: #23a559;
  --accent-gradient: linear-gradient(135deg, #dc2626, #ef4444);
  --success: #16a34a;
  --success-glow: rgba(22, 163, 74, 0.25);
  --danger: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.25);
  --warning: #f59e0b;
  --gold: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #131318;
  --bg-card-hover: #1a1a24;
  --bg-input: #1a1a24;
  --border: #2a2a3a;
  --border-hover: #3a3a4a;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════ */

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(35, 165, 89, 0.04) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5%, 3%) rotate(2deg); }
  50% { transform: translate(-3%, 5%) rotate(-1deg); }
  75% { transform: translate(2%, -3%) rotate(1deg); }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: rgba(88, 101, 242, 0.12);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.10);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

.bg-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: rgba(35, 165, 89, 0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ═══════════════════════════════════════════════
   GLASS PANEL
   ═══════════════════════════════════════════════ */

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4 { font-weight: 700; color: var(--text-primary); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-text span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #23a559, #1a8a47);
  color: white;
  box-shadow: 0 4px 16px var(--success-glow);
}

.btn-success:hover {
  box-shadow: 0 6px 24px var(--success-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-danger:hover {
  box-shadow: 0 6px 24px var(--danger-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-glow {
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3); }
  50% { box-shadow: 0 4px 32px rgba(88, 101, 242, 0.6); }
}

/* ═══════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════ */

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

input::placeholder { color: var(--text-muted); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-btn:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════
   STATUS BADGE
   ═══════════════════════════════════════════════ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: rgba(35, 165, 89, 0.15);
  color: var(--success);
  border: 1px solid rgba(35, 165, 89, 0.3);
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════
   ── PORTAL PAGE ──
   ═══════════════════════════════════════════════ */

/* Portal Layout with Sidebar */
.portal-layout {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.portal-main {
  flex: 1;
  min-width: 0;
}

.portal-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  animation: fadeIn 0.6s ease;
}

.profile-card {
  padding: 2rem;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-1);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
  animation: profileGlow 3s ease-in-out infinite;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--accent-1);
}

.profile-status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--success);
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px var(--success-glow);
}

@keyframes profileGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(88, 101, 242, 0.3); }
  50% { box-shadow: 0 0 40px rgba(88, 101, 242, 0.5); }
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.profile-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg-input);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.profile-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.profile-meta-label {
  color: var(--text-secondary);
}

.profile-meta-value {
  font-weight: 600;
}

.profile-meta-value.active {
  color: var(--success);
}

@media (max-width: 900px) {
  .portal-layout {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
    position: static;
    order: -1;
  }
  .profile-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

.portal-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.portal-container {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

/* Portal Header with Logo */
.portal-header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fadeIn 0.6s ease;
}

.portal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.portal-logo-img {
  height: 64px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2);
}

.portal-logo-text {
  text-align: left;
}

.portal-logo-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
}

.portal-logo-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-logo-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.portal-tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
}

/* Account Grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.8s ease;
}

.account-card {
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.account-card:hover::before { opacity: 1; }

.account-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.15);
}

.account-card.running-card {
  border-color: var(--success);
  animation: cardPulse 3s ease-in-out infinite;
}

.account-card.running-card::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--success), #2dd4bf);
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 89, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(35, 165, 89, 0); }
}

.avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
  padding: 3px;
  background: var(--accent-gradient);
}

.account-card.running-card .avatar-wrap {
  background: linear-gradient(135deg, var(--success), #2dd4bf);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.account-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.channel-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Add Account Card */
.add-account-card {
  border: 2px dashed var(--border);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  min-height: 220px;
  justify-content: center;
}

.add-account-card:hover {
  border-color: var(--accent-1);
  background: rgba(88, 101, 242, 0.03);
}

.add-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: var(--transition);
}

.add-account-card:hover .add-icon {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(88, 101, 242, 0.1);
}

.add-account-card h3 {
  color: var(--text-secondary);
}

.add-account-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   DOWNLOAD SECTION
   ═══════════════════════════════════════════════ */

.download-section {
  margin-top: 3.5rem;
  padding: 32px;
  text-align: center;
  animation: fadeIn 1s ease;
}

.download-header {
  margin-bottom: 24px;
}

.download-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.download-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  min-width: 220px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.download-btn:hover::before { left: 100%; }

.download-btn.windows {
  background: linear-gradient(135deg, #0078d7, #005a9e);
  box-shadow: 0 4px 20px rgba(0, 120, 215, 0.3);
}

.download-btn.windows:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 120, 215, 0.5);
}

.download-btn.linux {
  background: linear-gradient(135deg, #f7931e, #e66000);
  box-shadow: 0 4px 20px rgba(247, 147, 30, 0.3);
}

.download-btn.linux:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(247, 147, 30, 0.5);
}

.download-btn.disabled {
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  border-color: var(--border);
  opacity: 0.6;
}

.download-btn.disabled:hover { transform: none; }

.dl-icon { font-size: 1.8rem; flex-shrink: 0; }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.dl-label { font-size: 1rem; font-weight: 700; }
.dl-meta { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }

/* ═══════════════════════════════════════════════
   ── DASHBOARD LAYOUT ──
   ═══════════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 72px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  z-index: 10;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition);
}

.server-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.server-icon:hover {
  border-radius: 14px;
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
}

.server-icon.active {
  border-radius: 14px;
  border-color: var(--accent-1);
  background: rgba(88, 101, 242, 0.1);
}

.server-icon.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-1);
  border-radius: 0 3px 3px 0;
}

.server-icon .status-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  background: var(--text-muted);
}

.server-icon .status-dot.running {
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px var(--success-glow); }
  50% { box-shadow: 0 0 12px var(--success-glow); }
}

.sidebar-divider {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.add-server-icon { border: 1px dashed var(--border); color: var(--text-muted); background: transparent; }
.add-server-icon:hover { border-color: var(--success); color: var(--success); background: rgba(35,165,89,0.1); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  margin: 16px 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-name {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.user-name strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Container */
.container {
  padding: 20px 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Panels */
.panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════
   BALANCE HERO
   ═══════════════════════════════════════════════ */

.balance-hero {
  padding: 32px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    rgba(88, 101, 242, 0.12),
    rgba(139, 92, 246, 0.08),
    rgba(35, 165, 89, 0.06)
  );
  border: 1px solid rgba(88, 101, 242, 0.15);
}

.balance-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(88, 101, 242, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(35, 165, 89, 0.06) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.balance-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
}

.balance-value {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  margin-bottom: 4px;
  letter-spacing: -2px;
}

.balance-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   DISCORD PROFILE CARD
   ═══════════════════════════════════════════════ */

.discord-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.dp-banner {
  width: 100%;
  height: 100px;
  background: var(--accent-gradient);
}

.dp-header {
  padding: 0 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dp-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin-top: -42px;
  border-radius: 50%;
  background: var(--bg-card);
  padding: 4px;
}

.dp-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-input);
  background-size: cover;
  background-position: center;
}

.dp-status-ring {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-status-ring .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dp-status-ring .dot.online {
  background: var(--success);
  box-shadow: 0 0 6px var(--success-glow);
}

.dp-badge-box {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.dp-badge {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dp-body {
  padding: 16px 20px 20px;
}

.dp-global-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.dp-username-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dp-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.dp-bio {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.dp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   LOG CONTAINER (Terminal)
   ═══════════════════════════════════════════════ */

.log-container {
  flex: 1;
  background: #0d0d1a;
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-y: auto;
  max-height: 350px;
  border: 1px solid var(--border);
  min-height: 200px;
}

.log-entry {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.log-entry:last-child { border-bottom: none; }

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.72rem;
  min-width: 60px;
}

.log-action {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 50px;
}

.log-action.INFO { color: var(--accent-1); }
.log-action.HUNT { color: var(--success); }
.log-action.BATTLE { color: #2dd4bf; }
.log-action.CAUGHT { color: var(--gold); }
.log-action.COWONCY { color: var(--success); }
.log-action.WARNING { color: var(--warning); }
.log-action.ERROR { color: var(--danger); }
.log-action.CAPTCHA { color: var(--danger); }
.log-action.BALANCE { color: #38bdf8; }

.log-detail { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════
   CHANNEL LIST
   ═══════════════════════════════════════════════ */

.channel-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.channel-item:hover {
  border-color: var(--border-hover);
}

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.channel-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.channel-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-icon { font-size: 1.5rem; margin-bottom: 4px; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 2px;
}

.stat-box.stat-caught .stat-value { color: var(--gold); }
.stat-box.stat-cowoncy .stat-value { color: var(--success); }
.stat-box.stat-captchas .stat-value { color: var(--danger); }

/* ═══════════════════════════════════════════════
   SYSTEM SUMMARY
   ═══════════════════════════════════════════════ */

.system-summary {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.sys-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg-input);
  border-radius: 6px;
}

.sys-item span {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel, .balance-hero {
  animation: slideUpFade 0.5s ease forwards;
}

.panel:nth-child(2) { animation-delay: 0.1s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   VERIFICATION SECTION
   ═══════════════════════════════════════════════ */

.verify-section {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 32px;
  text-align: center;
}

.verify-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.verify-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.verify-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.verify-tab.active {
  background: var(--accent-gradient);
  color: #fff;
}

.verify-tab-content {
  display: none;
  animation: fadeIn .3s ease;
}

.verify-tab-content.active {
  display: block;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.verify-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verify-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  text-align: left;
}

.verify-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-content strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.step-content span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.step-content code {
  background: rgba(88,101,242,0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-1);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865F2;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}

.verify-input-group {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.verify-input-group input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 6px;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.verify-input-group input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}

.verify-input-group .btn {
  padding: 12px 20px;
  white-space: nowrap;
}

.verify-banner {
  max-width: 640px;
  margin: -16px auto 24px;
  padding: 12px 20px;
}

.verify-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--warning);
}

.verify-banner-inner .btn {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 0.82rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .sidebar { width: 56px; }
  .server-icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .portal-logo { flex-direction: column; gap: 12px; }
  .portal-logo-title { font-size: 2rem; }
  .portal-logo-text { text-align: center; }
  .balance-value { font-size: 2.8rem; }
  .container { padding: 12px; }
  .navbar { margin: 8px 8px 0; padding: 10px 16px; }
  .grid-2 { gap: 12px; }
}
