/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-elev: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #666666;
  --primary: #e91e63;
  --primary-2: #ff5722;
  --radius: 12px;
  --radius-sm: 8px;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 🔒 Security: Text selection disable (input/textarea ছাড়া) */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* 🔒 Security: Image drag disable */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* images won't be draggable */
}
/* কিন্তু লিঙ্ক এবং বাটনের ভেতরের ইমেজ ক্লিক করা যাবে */
button img, a img { pointer-events: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ==================== HEADER ==================== */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  color: white; box-shadow: 0 4px 20px rgba(233,30,99,0.3);
}
.logo-text { font-weight: 700; font-size: 18px; }

/* Search */
.search-wrap { flex: 1; max-width: 560px; position: relative; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.4); pointer-events: none;
}
.search-input {
  width: 100%; height: 40px; padding: 0 36px 0 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text); font-size: 14px;
  transition: all 0.2s;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input:focus {
  outline: none; border-color: rgba(233,30,99,0.5);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
}
.clear-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.4); padding: 4px;
}
.clear-btn:hover { color: white; }

.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 70vh; overflow-y: auto; z-index: 50;
}
.search-section-title {
  padding: 8px 12px 4px; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.3); font-weight: 600;
}
.search-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
  width: 100%; text-align: left;
}
.search-item:hover, .search-item.active {
  background: rgba(233,30,99,0.15);
  box-shadow: inset 0 0 0 1px rgba(233,30,99,0.3);
}
.search-item-logo {
  width: 40px; height: 40px; border-radius: 8px; background: white;
  padding: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.search-item-logo img { width: 100%; height: 100%; object-fit: contain; }
.search-item-logo .placeholder {
  font-weight: 700; color: #555; font-size: 12px;
}
.search-item-info { flex: 1; min-width: 0; }
.search-item-name { font-size: 14px; font-weight: 500; }
.search-item-cat { font-size: 12px; color: rgba(255,255,255,0.4); }
mark { background: rgba(233,30,99,0.3); color: white; padding: 0 2px; border-radius: 2px; }
.search-empty { padding: 24px; text-align: center; color: rgba(255,255,255,0.4); font-size: 14px; }
.search-hint {
  display: flex; justify-content: space-between; padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.05); font-size: 10px; color: rgba(255,255,255,0.3);
}
kbd {
  background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 3px;
  font-family: ui-monospace, monospace; font-size: 10px;
}

/* Lang Toggle */
.lang-toggle {
  display: flex; gap: 2px; background: rgba(255,255,255,0.05);
  border-radius: 8px; padding: 4px;
}
.lang-btn {
  padding: 4px 12px; font-size: 12px; font-weight: 500;
  border-radius: 6px; color: rgba(255,255,255,0.6); transition: all 0.15s;
}
.lang-btn:hover { color: white; }
.lang-btn.active { background: var(--primary); color: white; }

/* Icon Button */
.icon-btn {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: background 0.15s; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700;
  border-radius: 10px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ==================== HERO ==================== */
.hero { padding: 32px 16px 16px; }
.hero-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, #1a1a1a, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.05);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233,30,99,0.2), transparent, rgba(255,87,34,0.1));
}
.hero-content {
  position: relative; padding: 40px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.hero-left { flex: 1; min-width: 280px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(233,30,99,0.2); border: 1px solid rgba(233,30,99,0.3);
  font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 12px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title { font-size: 36px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.hero-desc { color: rgba(255,255,255,0.6); max-width: 540px; font-size: 15px; }
.hero-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; cursor: pointer; transition: background 0.15s;
}
.hero-channel-pill:hover { background: rgba(255,255,255,0.1); }
.hero-channel-pill img { width: 20px; height: 20px; border-radius: 50%; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; font-size: 13px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 30px rgba(233,30,99,0.3);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(233,30,99,0.4);
}
.hero-logos { display: flex; gap: 12px; }
.hero-logo-card {
  width: 112px; height: 112px; border-radius: 16px;
  background: white; padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  cursor: pointer; transition: transform 0.3s;
}
.hero-logo-card:hover { transform: translateY(-4px) scale(1.05); }
.hero-logo-card img { width: 100%; height: 100%; object-fit: contain; }

/* ==================== SECTIONS ==================== */
.section { padding: 24px 16px; }
.sections-wrap { padding: 0 16px 24px; }
.section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.section-icon { color: var(--primary); }
.section-title { font-size: 18px; font-weight: 600; }
.section-count { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 400; margin-left: 4px; }
.view-all {
  margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.5);
  display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s;
}
.view-all:hover { color: var(--primary); }

/* Channel Row */
.channel-row {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

/* Channel Card */
.channel-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; width: 96px; cursor: pointer;
  background: transparent; border: none; padding: 0; color: inherit;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.channel-card:hover { transform: translateY(-4px) scale(1.05); }
.channel-logo-wrap { position: relative; }
.channel-logo {
  width: 80px; height: 80px; border-radius: 50%;
  background: white; padding: 10px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3); transition: box-shadow 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.channel-card:hover .channel-logo {
  box-shadow: 0 8px 30px rgba(233,30,99,0.4);
}
.channel-logo img { width: 100%; height: 100%; object-fit: contain; }
.channel-logo .placeholder {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: rgba(255,255,255,0.6); font-weight: 700; font-size: 12px;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.hot-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: white;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  border: 2px solid var(--bg);
}
.fav-btn-card {
  position: absolute; bottom: -4px; left: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.fav-btn-card:hover { transform: scale(1.1); }
.fav-btn-card svg { width: 12px; height: 12px; color: rgba(255,255,255,0.6); }
.fav-btn-card.active svg { color: var(--primary); fill: var(--primary); }
.channel-name {
  font-size: 12px; color: rgba(255,255,255,0.7);
  text-align: center; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 16px; color: rgba(255,255,255,0.5);
}
.empty-state p { margin: 12px 0 8px; }
.link { color: var(--primary); }
.link:hover { text-decoration: underline; }

/* ==================== PLAYER MODAL ==================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; width: 100%; max-width: 960px;
  max-height: 95vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.player-wrap { background: black; aspect-ratio: 16/9; width: 100%; }
#videoPlayer { width: 100%; height: 100%; background: black; }
.player-info {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.player-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: white; padding: 4px; flex-shrink: 0;
}
.player-meta { flex: 1; min-width: 0; }
.player-name-row { display: flex; align-items: center; gap: 8px; }
.player-name-row h3 { font-size: 16px; font-weight: 600; }
.live-tag {
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.player-cat { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ==================== DRAWER ==================== */
.drawer {
  position: fixed; inset: 0; z-index: 100;
}
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.drawer-content {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 400px;
  background: var(--bg-card); border-left: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  animation: slideIn 0.25s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.drawer-header h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fav-list { flex: 1; overflow-y: auto; padding: 12px; }
.fav-item {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border-radius: 8px; transition: background 0.15s;
}
.fav-item:hover { background: rgba(255,255,255,0.05); }
.fav-item-logo {
  width: 40px; height: 40px; border-radius: 8px;
  background: white; padding: 4px; flex-shrink: 0;
}
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-name { font-size: 14px; font-weight: 500; }
.fav-item-cat { font-size: 12px; color: rgba(255,255,255,0.4); }
.fav-item-actions { display: flex; gap: 4px; }
.fav-empty { text-align: center; padding: 48px 16px; color: rgba(255,255,255,0.4); }

/* ==================== ADMIN ==================== */
.admin-login {
  min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(ellipse at top, rgba(233,30,99,0.15), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(255,87,34,0.08), transparent 50%);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}
.login-logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; box-shadow: 0 10px 40px rgba(233,30,99,0.4);
}
.login-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 20px; }
.login-card form { text-align: left; }
.login-hint {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.login-hint code {
  display: inline-block; margin-top: 4px; padding: 4px 8px;
  background: rgba(255,255,255,0.05); border-radius: 4px;
  color: rgba(255,255,255,0.6); font-family: ui-monospace, monospace;
}
.back-link { display: inline-block; margin-top: 16px; font-size: 14px; }

/* Login/Signup links */
.login-links {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; font-size: 12px;
}
.link-small {
  color: var(--primary); text-decoration: none; transition: opacity 0.15s;
}
.link-small:hover { opacity: 0.8; text-decoration: underline; }
.link-divider { color: rgba(255,255,255,0.2); }

/* Logged-in user info in sidebar */
.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: rgba(255,255,255,0.4);
  word-break: break-all;
}
.sidebar-user-email {
  display: block; color: rgba(255,255,255,0.7); font-size: 12px;
  margin-top: 2px; font-weight: 500;
}

/* Form */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: rgba(255,255,255,0.8);
}
.form-group input, .form-group select, .form-group textarea,
.search-input, .select-input {
  width: 100%; padding: 8px 12px; height: 40px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text); font-size: 14px;
  transition: border-color 0.15s;
}
.form-group textarea { height: auto; min-height: 60px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.search-input:focus, .select-input:focus {
  outline: none; border-color: rgba(233,30,99,0.5);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
}
.select-input option { background: var(--bg-elev); color: var(--text); }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.switch-row {
  display: flex; gap: 24px; padding: 12px 0;
}
.switch-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer;
}
.switch-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }

.btn-primary {
  width: 100%; padding: 10px 16px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; font-weight: 600; font-size: 14px;
  border-radius: 8px; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  padding: 10px 16px; height: 40px;
  background: rgba(255,255,255,0.05); color: white;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  font-size: 14px; transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Admin Layout */
.admin-dash { min-height: calc(100vh - 64px); }
.admin-layout { display: flex; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-card); border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; min-height: calc(100vh - 64px);
  position: sticky; top: 64px;
}
.sidebar-header {
  display: flex; align-items: center; gap: 8px; padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
}
.sidebar-title { font-weight: 700; }
.sidebar-sub { font-size: 10px; color: rgba(255,255,255,0.4); }
.sidebar-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  transition: all 0.15s; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-item.active {
  background: var(--primary); color: white;
  box-shadow: 0 4px 20px rgba(233,30,99,0.3);
}

.admin-main { flex: 1; padding: 24px; min-width: 0; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.tab-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.tab-header .page-sub { margin-bottom: 0; }
.filters-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 20px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient, linear-gradient(135deg, var(--primary), var(--primary-2)));
  opacity: 0.2; filter: blur(40px);
}
.stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient, linear-gradient(135deg, var(--primary), var(--primary-2)));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.stat-value { font-size: 24px; font-weight: 700; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Quick Actions */
.quick-actions h3 { font-size: 16px; margin-bottom: 12px; }
.qa-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.qa-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 16px; text-align: left;
  transition: all 0.15s;
}
.qa-card:hover {
  border-color: rgba(233,30,99,0.3); background: rgba(255,255,255,0.02);
}
.qa-card div:first-child { font-size: 24px; margin-bottom: 8px; }
.qa-title { font-weight: 600; font-size: 14px; }
.qa-desc { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* Table */
.table-wrap {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; overflow: hidden; overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  background: rgba(255,255,255,0.02); padding: 12px;
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.5); font-weight: 600;
}
.data-table td { padding: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.data-table tr:hover { background: rgba(255,255,255,0.02); }
.ch-cell { display: flex; align-items: center; gap: 12px; }
.ch-cell-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: white; padding: 4px; flex-shrink: 0;
}
.ch-cell-name { font-weight: 500; }
.ch-cell-namebn { font-size: 12px; color: rgba(255,255,255,0.4); }
.url-cell {
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-family: ui-monospace, monospace;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.action-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.15s;
}
.action-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.action-btn.danger:hover { color: var(--primary); }
.status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.status-badge.active { background: rgba(34,197,94,0.2); color: rgb(74, 222, 128); }
.status-badge.inactive { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); }

/* Categories Grid */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 16px;
}
.cat-card-row { display: flex; align-items: flex-start; gap: 12px; }
.cat-icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cat-info { flex: 1; min-width: 0; }
.cat-name { font-weight: 600; font-size: 15px; }
.cat-namebn { font-size: 12px; color: rgba(255,255,255,0.5); }
.cat-slug { font-size: 11px; color: rgba(255,255,255,0.4); font-family: ui-monospace, monospace; margin-top: 4px; }
.cat-count {
  display: inline-block; margin-top: 8px;
  background: rgba(255,255,255,0.05); padding: 2px 8px;
  border-radius: 4px; font-size: 11px;
}

/* Settings */
.settings-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 20px; max-width: 720px;
}
.settings-card h3 {
  font-size: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 16px;
}
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] {
  width: 48px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; cursor: pointer; background: transparent;
}
.color-row input[type=text] { flex: 1; }

/* Dialog */
.dialog-content {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: 20px;
}
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-header h3 { font-size: 18px; font-weight: 600; }
.dialog-form { display: flex; flex-direction: column; }
.dialog-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;
}
.dialog-actions .btn-primary { width: auto; padding: 8px 16px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); color: white;
  padding: 12px 20px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 1000; font-size: 14px;
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header-inner { gap: 8px; padding: 10px 12px; }
  .logo-text { display: none; }
  .lang-toggle { display: none; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 13px; }
  .hero-logos { display: none; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}
