/* TDM License Panel - Main Styles */
:root {
  --primary: #5865F2;
  --secondary: #23272A;
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #3fb950;
  --red: #f85149;
  --orange: #d29922;
  --purple: #a371f7;
  --blue: #58a6ff;
  --sidebar-width: 260px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* ===== Painel Admin + Cliente (estilo login) ===== */
body.admin-panel,
body.client-panel {
  --bg: #000;
  --bg-card: #0f0f0f;
  --bg-hover: #161616;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --shadow: 0 16px 48px rgba(0,0,0,0.5);
  background: #000;
}

body.admin-panel .panel-bg-layer,
body.client-panel .panel-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

body.admin-panel .panel-orb,
body.client-panel .panel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  background: var(--primary);
}

body.admin-panel .panel-orb-tl,
body.client-panel .panel-orb-tl {
  width: 420px;
  height: 420px;
  top: -20%;
  left: -18%;
}

body.admin-panel .panel-orb-br,
body.client-panel .panel-orb-br {
  width: 420px;
  height: 420px;
  bottom: -20%;
  right: -18%;
}

body.admin-panel .panel-grid-wrap,
body.client-panel .panel-grid-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

body.admin-panel .panel-grid,
body.client-panel .panel-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 1px;
  opacity: 0.3;
  pointer-events: auto;
  z-index: 1;
}

body.admin-panel .panel-particles,
body.client-panel .panel-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

body.admin-panel .panel-particle,
body.client-panel .panel-particle {
  position: absolute;
  top: 0;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}

body.admin-panel .panel-cell,
body.client-panel .panel-cell {
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  border-radius: 1px;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

body.admin-panel .panel-cell.active,
body.client-panel .panel-cell.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary), 0 0 48px rgba(0,102,31,0.4);
}

body.admin-panel .panel-cell.trail,
body.client-panel .panel-cell.trail {
  background: rgba(12,115,29,0.25);
  border-color: rgba(12,115,29,0.4);
  box-shadow: 0 0 12px rgba(12,115,29,0.3);
}

body.admin-panel .app-layout,
body.client-panel .app-layout {
  position: relative;
  z-index: 10;
}

body.admin-panel .sidebar,
body.client-panel .sidebar {
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.05);
}

body.admin-panel .top-bar,
body.client-panel .top-bar {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.admin-panel .nav-item.active,
body.client-panel .nav-item.active {
  background: rgba(12,115,29,0.18);
  color: var(--primary);
}

body.admin-panel .brand-icon.brand-logo,
body.client-panel .brand-icon.brand-logo {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

body.admin-panel .card,
body.admin-panel .stat-card,
body.admin-panel .search-bar,
body.client-panel .card,
body.client-panel .stat-card,
body.client-panel .search-bar {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.05);
}

body.admin-panel .stat-card:hover,
body.client-panel .store-card:hover {
  transform: translateY(-4px);
  background: rgba(14,14,14,0.98);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 30px rgba(12,115,29,0.1);
}

body.admin-panel .table th,
body.client-panel .table th {
  background: rgba(0,0,0,0.5);
}

body.admin-panel .user-badge,
body.client-panel .user-badge {
  background: rgba(14,14,14,0.9);
  border: 1px solid rgba(255,255,255,0.05);
}

body.admin-panel .btn-primary,
body.client-panel .btn-primary {
  background: var(--primary);
}

body.admin-panel .btn-primary:hover,
body.client-panel .btn-primary:hover {
  background: #0a5c18;
}

body.admin-panel .form-group input:focus,
body.admin-panel .form-group select:focus,
body.admin-panel .form-group textarea:focus,
body.client-panel .form-group input:focus,
body.client-panel .form-group select:focus,
body.client-panel .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(12,115,29,0.25);
}

body.admin-panel .page-btn:hover,
body.admin-panel .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

body.client-panel .client-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.client-panel .client-support-btn {
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

body.client-panel .client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
}

body.client-panel .client-licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

body.client-panel .client-license-card { padding: 0; overflow: hidden; }

body.client-panel .client-license-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

body.client-panel .client-license-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

body.client-panel .license-key-small {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

body.client-panel .client-license-info { padding: 16px 20px; }

body.client-panel .info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

body.client-panel .info-row:last-child { border-bottom: none; }
body.client-panel .info-label { color: var(--text-muted); }
body.client-panel .text-red { color: var(--red); font-weight: 600; }

body.client-panel .client-license-actions {
  padding: 16px 20px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.client-panel .ip-change-group {
  display: flex;
  gap: 8px;
}

body.client-panel .ip-change-group input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

body.client-panel .ip-change-group input:focus {
  outline: none;
  border-color: var(--primary);
}

body.client-panel .client-empty {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
}

body.client-panel .client-empty svg { opacity: 0.3; margin-bottom: 16px; }
body.client-panel .client-empty h3 { color: var(--text); margin-bottom: 8px; }

body.client-panel .client-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Loja de scripts */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.store-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.4);
  overflow: hidden;
}

.store-carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.store-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.store-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.store-carousel-slide img,
.store-carousel-slide iframe,
.store-carousel-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
  background: #000;
}

.store-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.store-carousel-btn:hover {
  background: rgba(12,115,29,0.85);
  transform: translateY(-50%) scale(1.05);
}

.store-carousel-prev { left: 10px; }
.store-carousel-next { right: 10px; }

.store-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}

.store-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.store-carousel-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.store-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.4;
}

.store-owned-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(12,115,29,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.store-body { padding: 20px; }

.store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.store-head h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.store-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.store-actions { margin-top: 4px; }

.store-buy-btn { justify-content: center; }

.badge-orange { background: rgba(210,153,34,0.15); color: var(--orange); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 110;
  transition: transform var(--transition);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 105;
  backdrop-filter: blur(2px);
}

body.sidebar-open .sidebar-backdrop { display: block; }

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), #7289da);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.brand-text { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: rgba(88,101,242,0.15); color: var(--primary); }
.nav-item.logout { color: var(--red); }
.nav-item.logout:hover { background: rgba(248,81,73,0.1); }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; }

.top-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 0; z-index: 50;
}

.sidebar-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 4px;
}

.page-title { font-size: 18px; font-weight: 600; flex: 1; }
.user-badge {
  background: var(--bg-hover);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.content-area { padding: 24px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h2, .card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.stat-icon.blue { background: rgba(88,166,255,0.15); color: var(--blue); }
.stat-icon.purple { background: rgba(163,113,247,0.15); color: var(--purple); }
.stat-icon.green { background: rgba(63,185,80,0.15); color: var(--green); }
.stat-icon.red { background: rgba(248,81,73,0.15); color: var(--red); }
.stat-icon.orange { background: rgba(210,153,34,0.15); color: var(--orange); }

.stat-value { font-size: 28px; font-weight: 700; display: block; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #4752c4; }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-danger { color: var(--red) !important; }
.btn-danger:hover { background: rgba(248,81,73,0.1) !important; }
.btn-warning { color: var(--orange) !important; }
.btn-success { color: var(--green) !important; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 4px; }
.btn-group-vertical { display: flex; flex-direction: column; gap: 8px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.2);
}

.form-group textarea { resize: vertical; font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input-wrapper {
  position: relative;
  display: flex; align-items: center;
}

.input-wrapper svg { position: absolute; left: 12px; color: var(--text-muted); }
.input-wrapper input { padding-left: 40px; }

/* Table */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 12px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:hover td { background: var(--bg-hover); }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-green { background: rgba(63,185,80,0.15); color: var(--green); }
.badge-red { background: rgba(248,81,73,0.15); color: var(--red); }
.badge-blue { background: rgba(88,166,255,0.15); color: var(--blue); }
.badge-purple { background: rgba(163,113,247,0.15); color: var(--purple); }

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
}

.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 14px; outline: none; font-family: inherit;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header > .btn,
.page-header .btn-group {
  flex-shrink: 0;
}

.page-header h2 { font-size: 22px; font-weight: 700; }

/* Pagination */
.pagination { display: flex; gap: 4px; padding: 16px; justify-content: center; }
.page-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition);
}

.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Tool grid */
.tool-grid, .settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* File drop */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.file-drop:hover { border-color: var(--primary); background: rgba(88,101,242,0.05); }
.file-drop p { margin-top: 8px; font-size: 13px; }

/* Code editor / output box */
.code-output-card { display: flex; flex-direction: column; }
.code-output-card .card-body { flex: 1; display: flex; flex-direction: column; }
.code-output-title { display: flex; align-items: center; gap: 10px; }
.code-output-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(139,148,158,0.15);
  color: var(--text-muted);
}
.code-output-badge.ready {
  background: rgba(63,185,80,0.15);
  color: var(--green);
}
.code-output-body { padding: 0 !important; }
.code-output-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.code-output-stats svg { color: var(--primary); flex-shrink: 0; }
.code-editor-wrap {
  position: relative;
  flex: 1;
  min-height: 480px;
}
.code-editor {
  width: 100%;
  height: 100%;
  min-height: 480px;
  padding: 16px 18px;
  background: #0a0e14 !important;
  border: none !important;
  border-radius: 0 !important;
  color: #7ee787 !important;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  resize: none;
  outline: none;
  box-shadow: none !important;
  caret-color: var(--primary);
}
.code-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(88,101,242,0.3) !important;
}
.code-editor::placeholder { color: #484f58 !important; }
.code-editor-wrap.has-code .code-editor-empty { display: none; }
.code-editor-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  pointer-events: none;
  background: #0a0e14;
}
.code-editor-empty svg { opacity: 0.35; }
.code-editor-empty p { font-size: 14px; opacity: 0.6; }
.code-editor-wrap-sm { min-height: 140px; }
.code-editor-sm { min-height: 140px !important; }
.adapter-extra {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.adapter-extra label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-copy-success {
  background: rgba(63,185,80,0.15) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

/* Discord button */
.btn-discord {
  background: #5865F2;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
  font-family: inherit;
}
.btn-discord:hover { background: #4752c4; color: white; }
.btn-block.btn-discord { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

.brand-icon.brand-logo {
  background: transparent;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.logo-preview-img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px;
  background: #0a0a0a;
}

/* ===== Login V2 - estilo referência ===== */
.login-v2 {
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
}

/* Camada de fundo animada */
.login-v2-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.login-v2-orb-1 {
  width: 480px;
  height: 480px;
  background: var(--primary);
  top: -20%;
  left: -18%;
  animation: orbFloatTL 12s ease-in-out infinite;
}

.login-v2-orb-2 {
  width: 480px;
  height: 480px;
  background: var(--primary);
  bottom: -20%;
  right: -18%;
  animation: orbFloatBR 15s ease-in-out infinite;
}

@keyframes orbFloatTL {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 30px) scale(1.08); }
}

@keyframes orbFloatBR {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.08); }
}

.login-v2-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.login-v2-grid-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.login-v2-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 1px;
  opacity: 0.35;
  pointer-events: auto;
}

.login-v2-cell {
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  border-radius: 1px;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.login-v2-cell.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary), 0 0 48px rgba(0,102,31,0.5);
  animation: cellPulse 1.2s ease-in-out infinite;
}

.login-v2-cell.trail {
  background: rgba(0,102,31,0.25);
  border-color: rgba(0,102,31,0.4);
  box-shadow: 0 0 12px rgba(0,102,31,0.3);
}

@keyframes cellPulse {
  0%, 100% { box-shadow: 0 0 24px var(--primary), 0 0 48px rgba(0,102,31,0.5); }
  50% { box-shadow: 0 0 36px var(--primary), 0 0 64px rgba(0,102,31,0.7); }
}

/* Partículas flutuantes */
.login-v2-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.login-v2-particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}

.login-v2-modal {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  width: 100%;
  max-width: 460px;
  margin: 20px;
  padding: 52px 48px 40px;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.08);
  text-align: center;
  transform: translateY(0) scale(1);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
  cursor: default;
}

.login-v2-modal:hover {
  transform: translateY(-8px) scale(1.03);
  background: #252525;
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 32px 100px rgba(0,0,0,0.55),
    0 0 40px rgba(0,102,31,0.12),
    0 0 1px rgba(255,255,255,0.12);
}

.login-v2-modal:hover .login-v2-logo-box {
  transform: scale(1.08);
  box-shadow: none;
}

.login-v2-modal:hover .login-v2-logo-img {
  filter: brightness(1.1);
}

.login-v2-logo {
  margin-bottom: 32px;
}

.login-v2-logo-box {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 18px;
  display: block;
  overflow: hidden;
  box-shadow: none;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.login-v2-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: filter 0.35s ease;
}

.login-v2-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

.login-v2-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
}

.login-v2-alert.error {
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.25);
  color: #f85149;
}

.login-v2-alert.info {
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.2);
  color: #58a6ff;
}

.login-v2-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-v2-discord-btn:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-1px);
}

.login-v2-discord-btn svg {
  flex-shrink: 0;
}

.login-v2-brand {
  margin-top: 36px;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  font-weight: 500;
}

/* Client login - legacy (unused) */
.client-portal { min-height: 100vh; background: var(--bg); }
.client-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.client-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.client-navbar-brand svg { color: var(--primary); }
.client-navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.client-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.client-header h1 { font-size: 26px; font-weight: 700; }
.client-licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.client-license-card { padding: 0; overflow: hidden; }
.client-license-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.client-license-header h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.license-key-small {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.license-key-small:hover { color: var(--blue); }
.client-license-info { padding: 16px 20px; }
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(48,54,61,0.5);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.text-red { color: var(--red); font-weight: 600; }
.client-license-actions {
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ip-change-group {
  display: flex;
  gap: 8px;
}
.ip-change-group input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.ip-change-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.client-empty {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
}
.client-empty svg { opacity: 0.3; margin-bottom: 16px; }
.client-empty h3 { color: var(--text); margin-bottom: 8px; }

/* License key */
.license-key {
  cursor: pointer;
  color: var(--primary);
  font-size: 12px;
  transition: color var(--transition);
}

.license-key:hover { color: var(--blue); }

/* Login page */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-bg { position: fixed; inset: 0; z-index: 0; }
.login-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.3;
}

.login-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,101,242,0.15), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.login-container { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 20px; }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo { text-align: center; margin-bottom: 32px; }
.logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), #7289da);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: white;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-logo h1 { font-size: 22px; font-weight: 700; }
.login-logo p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.login-form .form-group { margin-bottom: 20px; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.3); color: var(--red); }
.alert-success { background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3); color: var(--green); }
.alert-info { background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.3); color: var(--blue); }

/* Toast */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%; max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Loja admin */
.store-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.store-admin-card {
  padding: 20px;
}

.store-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.store-admin-card-head h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-admin-preview {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.3);
}

.store-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-admin-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.store-images-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-image-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-image-row .store-image-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.store-image-row .store-image-input:focus {
  outline: none;
  border-color: var(--primary);
}

.store-image-add {
  min-width: 40px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
}

.store-image-remove {
  min-width: 36px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--red) !important;
}

.store-admin-empty {
  padding: 40px;
  text-align: center;
}

/* Toggle switch */
.toggle-field { margin-bottom: 16px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 26px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(12,115,29,0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loader */
.loader {
  position: fixed; inset: 0;
  background: rgba(13,17,23,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}

.loader.hidden { display: none; }

.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.hidden { display: none !important; }

code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Responsive */
@media (max-width: 1200px) {
  .store-grid,
  .store-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  body.client-panel .client-licenses-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 1024px) {
  .tool-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .code-editor-wrap,
  .code-editor {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.5);
  }

  .main-content { margin-left: 0; width: 100%; }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }

  .top-bar {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 16px;
    order: 2;
    flex: 1 1 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-bar-actions,
  body.client-panel .client-top-user {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  body.client-panel .client-support-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  body.client-panel .user-badge {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-area { padding: 16px; }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .page-header h2 { font-size: 20px; }
  .page-header > .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 24px; }

  .form-row { grid-template-columns: 1fr; }

  .card-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .card-body { padding: 16px; }

  .code-output-card .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .code-output-title { justify-content: space-between; }

  .code-output-card .btn-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .code-output-card .btn-group .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .store-grid,
  .store-admin-grid,
  body.client-panel .client-licenses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.client-panel .client-license-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  body.client-panel .ip-change-group {
    flex-direction: column;
  }

  body.client-panel .ip-change-group .btn {
    width: 100%;
    justify-content: center;
  }

  body.client-panel .client-license-actions .btn-group {
    flex-direction: column;
    width: 100%;
  }

  body.client-panel .client-license-actions .btn-group .btn,
  body.client-panel .client-license-actions .btn-group a {
    width: 100%;
    justify-content: center;
  }

  body.client-panel .client-empty {
    padding: 40px 20px;
  }

  body.client-panel .client-empty-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.client-panel .client-empty-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .store-image-row {
    flex-wrap: wrap;
  }

  .store-image-row .store-image-input {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .license-key {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  .modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }

  .modal-footer {
    flex-wrap: wrap;
  }

  .modal-footer .btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  #toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    max-width: none;
    width: 100%;
  }

  .file-drop { padding: 24px 16px; }

  .login-v2-modal {
    margin: 16px;
    padding: 36px 24px 28px;
    border-radius: 18px;
  }

  .login-v2-modal:hover {
    transform: none;
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.08);
  }

  .login-v2-modal:hover .login-v2-logo-box,
  .login-v2-modal:hover .login-v2-logo-img {
    transform: none;
    filter: none;
  }

  .store-carousel-btn {
    width: 32px;
    height: 32px;
  }

  .nav-item {
    padding: 12px 14px;
  }

  .store-body { padding: 16px; }

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }

  .stat-card {
    flex-direction: row;
    align-items: center;
  }

  .user-badge { display: none; }

  body.client-panel .client-support-btn {
    font-size: 0;
    padding: 8px;
    gap: 0;
    min-width: 36px;
    justify-content: center;
  }

  body.client-panel .client-support-btn svg {
    width: 16px;
    height: 16px;
  }

  .btn { padding: 10px 14px; }
  .btn-sm { padding: 6px 10px; }

  .code-editor-wrap,
  .code-editor {
    min-height: 280px;
  }

  .pagination {
    flex-wrap: wrap;
    padding: 12px;
  }

  .search-bar {
    padding: 10px 12px;
  }

  .store-admin-card { padding: 16px; }

  .toggle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .brand-text { font-size: 13px; max-width: 140px; }

  .sidebar-brand { padding: 16px; }

  .content-area { padding: 12px; }

  .top-bar { padding: 10px 12px; }
}
