*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #06060b;
  --bg-2: #0c0c14;
  --panel: rgba(14, 14, 22, 0.92);
  --panel-2: rgba(20, 20, 32, 0.96);
  --line: rgba(99, 102, 241, 0.18);
  --line-strong: rgba(129, 140, 248, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.3);
  --success: #4ade80;
  --danger: #ef4444;
  --discord: #5865f2;
  --telegram: #229ed9;
  --radius: 16px;
  --radius-lg: 24px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: rgba(99, 102, 241, 0.15);
  animation: float 8s ease-in-out infinite;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -80px;
  background: rgba(236, 72, 153, 0.12);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 15px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  background: rgba(6, 6, 11, 0.95);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid var(--line);
  box-shadow: 0 0 24px var(--accent-glow);
  overflow: hidden;
}

.brand-badge .brand-logo,
.brand-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  display: block;
}

.brand-copy h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.brand-kicker {
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skip-ads-btn {
  position: relative;
  overflow: hidden;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #db2777);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px var(--pink-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skip-ads-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px var(--pink-glow);
}

.skip-ads-btn:active {
  transform: scale(0.97);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.discord-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--discord);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.discord-btn:active {
  transform: scale(0.95);
}

.telegram-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--telegram);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.35);
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.5);
}

.telegram-btn:active {
  transform: scale(0.95);
}

.ghost-link,
.solid-link,
.folder-btn,
.btn,
.view-content-btn,
.tab-btn {
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.ghost-link {
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.solid-link,
.btn,
.folder-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.ghost-link:hover,
.solid-link:hover,
.btn:hover,
.folder-btn:hover {
  transform: translateY(-1px);
}

/* Hero */
.page-shell {
  padding: 28px 0 56px;
}

.hero-center {
  text-align: center;
  padding: 20px 0 32px;
}

.live-users-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: livePulse 1.6s ease-out infinite;
}

.live-users-text {
  color: #d1fae5;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.live-users-text strong {
  color: #34d399;
  font-size: 16px;
  font-weight: 800;
  min-width: 3ch;
  display: inline-block;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(135deg, #fff 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.stars,
.card-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.rating-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 12px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.hero-search,
.search-input,
.input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius);
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input,
.search-input {
  padding: 14px 16px;
}

select.input,
.select-input {
  padding: 14px 16px;
  color-scheme: dark;
  cursor: pointer;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

select.input option,
.select-input option {
  background-color: #141420;
  color: #f8fafc;
}

.file-input {
  padding: 12px 14px;
}

.panel-desc {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.panel-desc code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.mass-upload-grid {
  margin-top: 0;
}

.bulk-progress-wrap {
  margin-top: 16px;
}

.bulk-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bulk-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transition: width 0.3s ease;
}

.bulk-progress-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-head-row .panel-title {
  margin: 0;
}

.search-count {
  color: var(--muted);
  font-size: 13px;
}

.admin-search-wrap {
  margin-bottom: 18px;
}

.admin-search-input {
  max-width: 420px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  min-width: 220px;
}

.category-chip-view {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.chip-edit,
.chip-delete {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chip-edit {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
}

.chip-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.category-edit-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.input-compact {
  padding: 10px 12px;
  min-width: 120px;
}

.btn-compact {
  padding: 10px 12px;
  font-size: 12px;
}

.item-category-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  align-items: center;
}

.item-category-row .item-category-select {
  flex: 1;
  min-width: 0;
}

.hero-search:focus,
.input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.hero-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Layout */
.main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.sidebar-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.sidebar-hint {
  color: var(--muted);
  font-size: 12px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.category-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-panel:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--line);
  transform: translateX(4px);
}

.category-panel.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.1));
  border-color: var(--line-strong);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.category-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.category-info small {
  color: var(--muted);
  font-size: 12px;
}

.category-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.2s;
}

.category-panel.active .category-arrow,
.category-panel:hover .category-arrow {
  transform: translateX(3px);
  color: var(--accent-2);
}

/* Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.tab-btn:hover:not(.active) {
  color: #fff;
  border-color: var(--line);
}

/* Cards */
.cards-section {
  min-height: 200px;
}

.cards-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cards-fade {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.content-card {
  animation: cardIn 0.5s ease both;
}

.card-image-wrap,
.folder-image-wrap,
.admin-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141420;
  margin-bottom: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover .card-image-wrap {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

.card-image,
.folder-image,
.admin-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-card:hover .card-image {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  animation: badgePop 0.5s ease both;
}

.badge-hot {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
  animation: hotPulse 2s ease-in-out infinite, badgePop 0.5s ease both;
}

.card-image-wrap .badge-hot ~ .badge-new {
  top: 38px;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(249, 115, 22, 0.45); }
  50% { box-shadow: 0 0 24px rgba(249, 115, 22, 0.75); }
}

.badge-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}

.view-content-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 24px);
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #db2777);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 24px var(--pink-glow);
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.view-content-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 32px var(--pink-glow);
}

.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.card-title,
.folder-title,
.admin-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-item-views {
  color: #c4b5fd;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Admin panels */
.hero-panel,
.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.hero-left h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
}

.hero-left p {
  margin: 0;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-box {
  min-width: 140px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.stat-box strong {
  font-size: 28px;
}

.content-panel {
  padding: 24px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.input-small {
  max-width: 100px;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s;
}

.dropzone.dragover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent);
}

.actions {
  margin-top: 16px;
}

.btn-danger {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
}

.status.success { color: var(--success); }
.status.error { color: #f87171; }

.preview-box img {
  max-width: 160px;
  border-radius: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-chip small {
  color: var(--muted);
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 12px;
}

.admin-card-date,
.admin-card-cat {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-card-cat {
  color: var(--accent-2);
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lockr-link-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  word-break: break-all;
  color: var(--accent-2);
}

.target-link-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 10px;
  font-size: 11px;
  word-break: break-all;
  color: #f9a8d4;
}

.target-link-box strong,
.lockr-link-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.card-skip-ads {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.card-skip-ads:hover {
  transform: translateY(-1px);
  background: rgba(251, 191, 36, 0.18);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.15);
}

.card-skip-ads:active {
  transform: scale(0.97);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.full-btn {
  width: 100%;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-panel {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
    min-height: 64px;
  }

  .brand-copy h1 {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand-tag {
    display: none;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .brand-badge .brand-logo,
  .brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px;
    max-height: 40px;
  }

  .header-actions {
    width: auto;
    flex-shrink: 0;
    gap: 6px;
  }

  .skip-ads-btn {
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .discord-btn,
  .telegram-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
  }

  .cards-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body {
    padding-bottom: 76px;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    flex-direction: column;
  }

  .category-panel {
    flex: 1 1 100%;
  }
}

/* Branded admin buttons */
.admin-card-actions-branded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-card-actions-branded .btn-danger {
  grid-column: 1 / -1;
}

.btn-lockr-pro,
.btn-mega-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-lockr-pro {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.btn-mega-pro {
  background: linear-gradient(135deg, #b91c1c, #d9272e);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 39, 46, 0.35);
}

.btn-lockr-pro:hover,
.btn-mega-pro:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Access modal */
body.modal-open {
  overflow: hidden;
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.access-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.access-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: modalBackdropIn 0.3s ease;
}

.access-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(20, 20, 32, 0.98), rgba(12, 12, 20, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.modal-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141420;
}

.modal-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.access-modal.is-open .modal-preview-image {
  transform: scale(1);
}

.modal-preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 20, 0.95) 0%, rgba(12, 12, 20, 0.2) 45%, transparent 100%);
  pointer-events: none;
}

.modal-body {
  padding: 0 24px 24px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.access-modal.is-open .access-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  gap: 12px;
}

.modal-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal-choice:hover {
  transform: translateY(-2px);
}

.modal-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.modal-choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-choice-text strong {
  font-size: 15px;
  font-weight: 800;
}

.modal-choice-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.modal-choice-skip {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
  border-color: rgba(251, 191, 36, 0.25);
}

.modal-choice-skip:hover {
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.45);
}

.modal-choice-skip .modal-choice-icon {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.modal-choice-lockr {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.08));
  border-color: rgba(168, 85, 247, 0.25);
}

.modal-choice-lockr:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
}

.modal-choice-lockr .modal-choice-icon,
.lockr-icon-wrap {
  background: rgba(124, 58, 237, 0.22);
  color: #c4b5fd;
}

/* ===== Premium enhancements ===== */

.is-hidden {
  display: none !important;
}

body.age-locked {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(20px);
}

.age-gate-card {
  width: min(420px, 100%);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.age-gate-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.age-gate-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.age-gate-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.age-gate-actions {
  display: grid;
  gap: 10px;
}

.age-btn {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.age-btn-enter {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.age-btn-enter:hover {
  transform: translateY(-2px);
}

.age-btn-leave {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

.announce-banner {
  position: relative;
  z-index: 40;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(236, 72, 153, 0.12));
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
  animation: slideDown 0.5s ease both;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
}

.announce-icon {
  font-size: 18px;
  animation: wiggle 2s ease-in-out infinite;
}

.announce-text {
  flex: 1;
  font-size: 14px;
  color: #fde68a;
}

.announce-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.announce-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.featured-section {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.06));
  border: 1px solid var(--line);
  animation: fadeInUp 0.6s ease both;
}

.featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.featured-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.featured-head h3 {
  margin: 0;
  font-size: 22px;
}

.featured-spark {
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
  animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.content-card--featured .card-image-wrap {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35), 0 12px 32px rgba(99, 102, 241, 0.2);
}

.content-card--featured .card-title {
  color: #fde68a;
}

.skeleton-card {
  animation: fadeInUp 0.4s ease both;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.skeleton-title {
  height: 18px;
  width: 75%;
  margin: 0 auto 10px;
}

.skeleton-meta {
  height: 14px;
  width: 55%;
  margin: 0 auto;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-footer {
  margin-top: 48px;
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 14, 0.6);
}

.footer-inner {
  display: grid;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-logo {
  border-radius: 12px;
  object-fit: cover;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-2);
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.footer-disclaimer,
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 14, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
  align-items: center;
  animation: slideUp 0.4s ease both;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-bar-btn {
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s;
}

.mobile-bar-skip {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--pink), #db2777);
  color: #fff;
}

.mobile-bar-discord,
.mobile-bar-telegram {
  width: 44px;
  height: 44px;
  color: #fff;
}

.mobile-bar-discord {
  background: var(--discord);
}

.mobile-bar-telegram {
  background: var(--telegram);
}

.mobile-bar-btn:active {
  transform: scale(0.96);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 10000;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 32, 0.96);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.site-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.modal-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.modal-share-btn:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 960px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .back-to-top {
    bottom: 88px;
  }

  .site-toast {
    bottom: 100px;
    width: calc(100% - 32px);
    text-align: center;
  }
}

/* Admin featured controls */
.admin-card--featured {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 12px 32px rgba(251, 191, 36, 0.08);
}

.admin-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111;
  font-size: 11px;
  font-weight: 800;
}

.btn-feature {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-feature:hover {
  transform: translateY(-1px);
  background: rgba(251, 191, 36, 0.14);
}

.btn-feature.is-active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.16));
  border-color: rgba(251, 191, 36, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.featured-admin-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.featured-admin-status.is-active {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.analytics-panel {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(99, 102, 241, 0.04));
}

.analytics-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6ee7b7;
}

.analytics-stats .stat-box {
  position: relative;
  overflow: hidden;
}

.analytics-stats .stat-box small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.stat-box-live {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.stat-box-live .stat-live-value {
  color: #34d399;
  animation: liveCountPulse 2s ease-in-out infinite;
}

.stat-box-accent strong {
  color: #c4b5fd;
}

.analytics-note {
  margin: 14px 0 0;
}

@keyframes liveCountPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
