/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg2: #111111;
  --card: #1a1a1a;
  --card2: #1e1e1e;
  --border: #2a2a2a;
  --border2: #333333;
  --accent: #ff6600;
  --accent-hover: #ff8533;
  --accent-dark: #cc5200;
  --text: #cccccc;
  --text-muted: #888888;
  --text-bright: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --nav-h: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  background: #0d0d0d;
  border: 1px solid var(--border2);
  color: var(--text-bright);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option { background: var(--card); color: var(--text); }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,102,0,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  box-shadow: 0 4px 20px rgba(255,102,0,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--border); color: var(--text-bright); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #141414;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--text-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-bright);
  background: var(--card);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav-username {
  color: var(--text-bright);
  font-weight: 600;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
  margin-left: auto;
}

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { padding: 40px 0 80px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-sm { padding: 16px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,102,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto 40px;
  gap: 0;
  position: relative;
}

.hero-search input {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
  padding: 14px 20px;
  font-size: 16px;
  background: var(--card2);
  border-color: var(--border2);
}

.hero-search button {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 24px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,102,0,0.15);
}
.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.category-count {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--border);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,102,0,0.12);
}

.product-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--card2);
}

.product-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--card2), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border2);
}

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-card-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-card-stat { display: flex; align-items: center; gap: 4px; }

/* Product list item (downloads page) */
.product-list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
}

.product-list-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(255,102,0,0.1);
}

.product-list-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card2);
}

.product-list-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.product-list-body { flex: 1; min-width: 0; }
.product-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.product-list-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-list-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free { background: #1c3a1c; color: #4ade80; border: 1px solid #166534; }
.badge-vip { background: #2d1a4a; color: #c084fc; border: 1px solid #7e22ce; }
.badge-premium { background: #2d1a00; color: #f59e0b; border: 1px solid #92400e; }
.badge-admin { background: #1a0a2e; color: #a855f7; border: 1px solid #6b21a8; }

.badge-unturned { background: #0c2a3a; color: #38bdf8; border: 1px solid #0369a1; }
.badge-minecraft { background: #1a2e0c; color: #86efac; border: 1px solid #166534; }
.badge-builds { background: #2a1a0c; color: #fb923c; border: 1px solid #9a3412; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,102,0,0.05) 0%, transparent 60%);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  background: var(--card);
  padding: 0 12px;
  position: relative;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ===== DOWNLOADS PAGE ===== */
.downloads-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--card2); color: var(--text-bright); }
.sidebar-item.active { background: rgba(255,102,0,0.15); color: var(--accent); font-weight: 600; }
.sidebar-item.sidebar-sub { padding-left: 28px; font-size: 13px; color: var(--text-muted); }
.sidebar-item .count {
  font-size: 11px;
  background: var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.tag-pill.active { background: rgba(255,102,0,0.15); border-color: var(--accent); color: var(--accent); }

/* Search bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-bar input { flex: 1; }

/* ===== PRODUCT PAGE ===== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.product-header { margin-bottom: 24px; }
.product-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.product-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.product-tab:hover { color: var(--text-bright); }
.product-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.product-content { min-height: 200px; }

.product-sidebar { display: flex; flex-direction: column; gap: 16px; }

.download-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.download-limit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.download-limit .count { color: var(--accent); font-weight: 700; font-size: 16px; }

.limit-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 8px 0;
  overflow: hidden;
}
.limit-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
  transition: width 0.3s;
}

.product-stats-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.product-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.product-stat-row:last-child { border-bottom: none; }
.product-stat-row .label { color: var(--text-muted); }
.product-stat-row .value { color: var(--text-bright); font-weight: 600; }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }

.admin-sidebar {
  background: #141414;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.admin-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 16px;
}
.admin-sidebar-title:first-child { margin-top: 0; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
  margin-bottom: 2px;
}
.admin-nav-link:hover { background: var(--card); color: var(--text-bright); }
.admin-nav-link.active { background: rgba(255,102,0,0.15); color: var(--accent); }

.admin-main { padding: 32px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.stat-card-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-label { font-size: 13px; color: var(--text-muted); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }

.td-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--card2);
}

/* ===== UPGRADE PAGE ===== */
.upgrade-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,102,0,0.06) 0%, transparent 60%);
}

.upgrade-cards { display: grid; grid-template-columns: repeat(2, 340px); gap: 24px; max-width: 740px; }

.upgrade-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.25s;
}

.upgrade-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(255,102,0,0.2);
}

.upgrade-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.upgrade-price { font-size: 40px; font-weight: 800; color: var(--text-bright); }
.upgrade-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }

.upgrade-features { list-style: none; margin: 20px 0 24px; }
.upgrade-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
}
.upgrade-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.upgrade-features li.no::before { content: '✗'; color: var(--danger); }

/* ===== PROFILE ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-info { flex: 1; }
.profile-username {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== FOOTER ===== */
.footer {
  background: #141414;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand { color: var(--accent); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== LOADING / EMPTY ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--text-muted); font-size: 14px; }
.loading::before { content: ''; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-bright);
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .downloads-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #141414; padding: 16px; border-bottom: 1px solid var(--border); z-index: 999; }
  .auth-card { padding: 28px 20px; }
  .upgrade-cards { grid-template-columns: 1fr; max-width: 340px; }
  .product-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .profile-header { flex-direction: column; text-align: center; }
}
