/* ================================================================
   OXO.GE — Complete Modern Stylesheet
   Full modernization with persistent sidebar layout
   ================================================================ */

/* ========== LOCAL GEORGIAN FONTS ========== */
@font-face {
  font-family: 'BPG Nino Mtavruli';
  src: url('/fonts/bpg_nino_mtavruli_normal.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BPG Arial Caps';
  src: url('/fonts/bpg-arial-caps-webfont.woff2') format('woff2'),
    url('/fonts/bpg-arial-caps-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BPG Glaho Arial';
  src: url('/fonts/bpg-glaho-arial-webfont.woff2') format('woff2'),
    url('/fonts/bpg-glaho-arial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eka';
  src: url('/fonts/eka.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AppBar';
  src: url('/fonts/appBar.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FullApp';
  src: url('/fonts/fullApp.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ChannalName';
  src: url('/fonts/channalName.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qilka Bold';
  src: url('/fonts/Qilka-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS VARIABLES ========== */
:root {
  --sidebar-w: 260px;
  --header-h: 60px;

  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-bg: #eff6ff;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --success: #10b981;
  --success-light: #34d399;
  --danger: #ef4444;
  --danger-light: #f87171;
  --warning: #f59e0b;

  --dark: #0f172a;
  --dark-alt: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font-geo: 'BPG Arial Caps', 'BPG Glaho Arial', 'Eka', 'Roboto', Arial, sans-serif;
  --font-title: 'Qilka Bold', 'AppBar', 'BPG Nino Mtavruli', sans-serif;
  --font-heading: 'AppBar', 'BPG Nino Mtavruli', sans-serif;
  --font-body: 'BPG Glaho Arial', 'FullApp', 'BPG Arial Caps', sans-serif;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Force Georgian font on all form elements (browsers don't inherit by default) */
input,
button,
select,
textarea,
option {
  font-family: var(--font-body);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-geo);
  font-size: 13px;
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}

/* ========== APP LAYOUT ========== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ========== OVERLAY ========== */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  animation: fadeIn 0.2s ease;
}

#overlay.active {
  display: block;
}

/* ================================================================
   SIDEBAR — always visible on desktop, slide-in on mobile
   ================================================================ */
#sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--dark) 0%, #141b2d 50%, var(--dark-alt) 100%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

#sidebar.open {
  transform: translateX(0);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-link i {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-link span {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-close-btn {
  display: flex; /* always visible so user can close sidebar */
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--gray-400);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Sidebar body — scrollable */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}

.sidebar-body::-webkit-scrollbar {
  width: 4px;
}

.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Nav sections */
.nav-section {
  padding: 8px 0;
}

.nav-section + .nav-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  padding: 10px 20px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--gray-400);
  font-size: 13px;
  font-family: var(--font-body);
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(59, 130, 246, 0.08);
  border-left-color: var(--primary);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}

.nav-link.active i {
  opacity: 1;
  color: var(--primary-light);
}

.nav-link i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
  transition: var(--transition);
}

.nav-link:hover i {
  opacity: 1;
  color: var(--primary-light);
}

.nav-link.nav-cat {
  padding: 7px 20px 7px 28px;
  font-size: 12px;
}

.nav-link.nav-cat i {
  font-size: 11px;
}

/* Sidebar info box */
.sidebar-info-box {
  padding: 8px 20px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--gray-400);
}

.info-row i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

.info-row strong {
  color: var(--primary-light);
}

/* Sidebar Banner */
.sidebar-banner-box {
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius);
  text-align: center;
}
.sidebar-banner-link {
  display: inline-block;
  transition: var(--transition);
}
.sidebar-banner-link:hover {
  transform: scale(1.03);
}
.sidebar-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.sidebar-banner-text {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 8px;
  line-height: 1.5;
}
.sidebar-banner-text a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}
.sidebar-banner-text a:hover {
  text-decoration: underline;
}

/* Sidebar footer */
.sidebar-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 10px;
  color: var(--gray-500);
  text-align: center;
  flex-shrink: 0;
}

/* ================================================================
   MAIN WRAPPER — right side of sidebar
   ================================================================ */
.main-wrap {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ================================================================
   HEADER
   ================================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.mobile-menu-btn {
  display: flex; /* always visible — sidebar collapsed by default */
}

.header-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-600);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: 'Font Awesome 6 Free', var(--font-geo);
}

.header-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.header-logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.header-logo a {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #f59e0b 75%, var(--primary) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  animation: logo-gradient-shift 4s ease-in-out infinite;
}

@keyframes logo-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-logo a i {
  margin-right: 4px;
  animation: logo-icon-pulse 2.5s ease-in-out infinite;
}

@keyframes logo-icon-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.header-spacer {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-user-link,
.header-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.header-user-link {
  color: var(--gray-700);
  background: var(--gray-100);
}

.header-user-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.header-login-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.header-login-link:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
  color: var(--white);
}

.header-register-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.header-register-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* ========== SEARCH BAR ========== */
#search-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
  padding: 0 12px;
  z-index: 900;
  gap: 8px;
}

#search-bar.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.search-back {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-back:hover {
  background: var(--primary-bg);
}

#search-input {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}

#search-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ================================================================
   PAGE BODY
   ================================================================ */
.page-body {
  flex: 1;
  padding: 20px 5% 0;
}

/* ========== FILTER BAR ========== */
#filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: var(--header-h);
  z-index: 790;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  min-height: 46px;
  gap: 12px;
  max-width: none;
  margin: 0 auto;
}

.filter-label {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  font-weight: 500;
}

.filter-label i {
  margin-right: 4px;
}

.filter-category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  cursor: pointer;
}

.filter-category-label i {
  font-size: 13px;
  color: var(--gray-400);
}

/* ── Custom category dropdown (select-like with icons) ── */
.filter-dropdown {
  position: relative;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 13px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  font-family: var(--font-geo);
  min-width: 220px;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-dropdown-btn:hover {
  border-color: var(--primary);
}
.filter-dropdown-btn i:first-child {
  font-size: 12px;
  color: var(--gray-400);
  width: 16px;
  text-align: center;
}
.filter-dropdown-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.filter-dropdown.open .filter-dropdown-arrow {
  transform: rotate(180deg);
}
.filter-dropdown.open .filter-dropdown-btn {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 900;
  padding: 4px 0;
}
.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-geo);
  color: var(--gray-600);
  text-decoration: none;
  transition: background 0.1s;
  white-space: nowrap;
}
.filter-dropdown-item i {
  font-size: 12px;
  color: var(--gray-400);
  width: 16px;
  text-align: center;
}
.filter-dropdown-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.filter-dropdown-item:hover i {
  color: var(--primary);
}
.filter-dropdown-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.filter-dropdown-item.active i {
  color: var(--primary);
}

.filter-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 220px;
  transition: var(--transition);
  font-family: inherit;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ── Category filter buttons (scrollable row) ── */
.filter-cats-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}
.filter-cats-scroll::-webkit-scrollbar { display: none; }

.filter-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-geo);
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-cat-btn i {
  font-size: 11px;
  color: var(--gray-400);
  transition: color 0.15s;
}
.filter-cat-btn small {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 400;
}
.filter-cat-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}
.filter-cat-btn:hover i {
  color: var(--primary);
}
.filter-cat-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.filter-cat-btn.active i {
  color: var(--white);
}
.filter-cat-btn.active small {
  color: rgba(255,255,255,0.7);
}

/* Filter bar -- inline search */
.filter-search-form {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

.filter-search-input {
  border: 2px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  width: 180px;
  font-family: inherit;
  transition: var(--transition);
}

.filter-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-search-input::placeholder {
  color: var(--gray-400);
}

.filter-search-btn {
  border: 2px solid var(--primary);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-search-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Filter bar -- nav links (replaces search on homepage) */
.filter-nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 6px;
}

.filter-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-geo);
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-nav-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.06);
}

.filter-nav-link i {
  font-size: 11px;
}

.filter-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-geo);
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  white-space: nowrap;
}

.filter-nav-phone i {
  font-size: 11px;
}

/* ========== MAIN CONTENT AREA ========== */
#main {
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* ================================================================
   OXO.GE PROMO BANNER (above table)
   ================================================================ */
.oxo-promo-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.oxo-promo-inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  gap: 16px;
}
.oxo-promo-left {
  flex-shrink: 0;
}
.oxo-promo-counter img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  display: block;
  transition: transform 0.2s;
}
.oxo-promo-counter:hover img {
  transform: scale(1.05);
}
.oxo-promo-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.oxo-promo-title {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 1px;
}
.oxo-promo-title i {
  margin-right: 4px;
}
.oxo-promo-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oxo-promo-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.oxo-promo-online {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.oxo-promo-online strong {
  color: #34d399;
}
.oxo-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.oxo-promo-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* ================================================================
   RANKING TABLE
   ================================================================ */
.ranking-table-wrap {
  background: var(--white);
  overflow-x: auto;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

.ranking-table thead th {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-bottom: 2px solid var(--gray-200);
  padding: 10px 6px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--gray-500);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ranking-table thead th.col-site {
  text-align: left;
}

.ranking-table thead th small {
  display: block;
  font-weight: 400;
  font-size: 9px;
  color: var(--gray-400);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
  background: var(--primary-bg) !important;
}

.ranking-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.ranking-table td {
  padding: 8px 5px;
  vertical-align: middle;
  text-align: center;
}

/* Column widths */
.col-rank {
  font-weight: 800;
  color: var(--gray-700);
  width: 36px;
  font-size: 14px;
}

.col-trend {
  width: 52px;
}

.col-site {
  text-align: left !important;
  width: auto;
}

.col-icon {
  width: 28px;
}

/* Site name & details */
.site-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'BPG Nino Mtavruli', 'ChannalName', 'BPG Arial Caps', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.site-name a {
  color: var(--gray-800);
  transition: var(--transition);
}

.site-name a:hover {
  color: var(--primary);
}

.site-category {
  color: var(--gray-400);
  font-size: 10px;
  margin-top: 2px;
  display: inline-block;
  background: var(--gray-100);
  padding: 1px 7px;
  border-radius: 20px;
}

.site-url {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 2px;
}

.site-url a {
  color: var(--gray-400);
}

.site-url a:hover {
  color: var(--primary);
}

.site-url a i {
  margin-left: 3px;
  font-size: 9px;
  opacity: 0.5;
}

.site-url a:hover i {
  opacity: 1;
}

.site-desc {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  line-height: 1.3;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Trends */
.trend-up {
  color: var(--success);
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

.trend-down {
  color: var(--danger);
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(239, 68, 68, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

.trend-same {
  color: var(--gray-400);
  font-size: 12px;
}

/* Stat values */
.stat-main {
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-800);
}

.stat-yesterday {
  color: var(--gray-400);
  font-size: 10px;
  margin-top: 1px;
}

.stat-k {
  font-weight: 700;
  color: var(--gray-600);
  font-size: 12px;
}

/* Icons in table */
.icon-lock {
  color: var(--gray-400);
  font-size: 14px;
}

.icon-lock i {
  color: var(--gray-400);
  font-size: 14px;
}

.icon-chart {
  color: var(--primary);
  font-size: 14px;
}

.icon-chart i {
  color: var(--primary);
  font-size: 15px;
  transition: var(--transition);
}

.icon-chart:hover i {
  color: var(--accent);
  transform: scale(1.1);
}

/* ========== TOP 3 HIGHLIGHT ========== */
.ranking-table tbody tr.top-rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02)) !important;
  border-left: 3px solid #fbbf24;
}

.ranking-table tbody tr.top-rank-1 .col-rank {
  color: #d97706;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
}

.ranking-table tbody tr.top-rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.02)) !important;
  border-left: 3px solid #9ca3af;
}

.ranking-table tbody tr.top-rank-2 .col-rank {
  color: #6b7280;
  font-size: 15px;
}

.ranking-table tbody tr.top-rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.02)) !important;
  border-left: 3px solid #d97706;
}

.ranking-table tbody tr.top-rank-3 .col-rank {
  color: #b45309;
  font-size: 15px;
}

.ranking-table tbody tr.top-rank-1:hover {
  transform: scale(1.002);
}

/* ========== COLUMN DIVIDER (host | stats separation) ========== */
.col-divider {
  width: 3px !important;
  min-width: 3px !important;
  max-width: 3px !important;
  padding: 0 !important;
  background: linear-gradient(180deg, transparent 10%, var(--border-color, #e5e7eb) 30%, var(--border-color, #e5e7eb) 70%, transparent 90%) !important;
  border: none !important;
}
.ranking-table thead th.col-divider {
  background: linear-gradient(180deg, transparent 20%, var(--accent, #8b5cf6) 50%, transparent 80%) !important;
  opacity: 0.4;
}

/* ========== ONLINE BADGE (per-site) ========== */
.col-online {
  text-align: center !important;
}
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
}
.online-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}
.offline-badge {
  font-size: 11px;
  color: var(--gray-400);
}

/* ========== GENDER BAR ========== */
.gender-bar {
  display: flex;
  height: 18px;
  border-radius: 20px;
  overflow: hidden;
  min-width: 80px;
  font-size: 9px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gender-male {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.gender-female {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-wrap {
  padding: 18px 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.page-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.page-btn.disabled {
  color: var(--gray-300);
  pointer-events: none;
  border-color: var(--gray-100);
}

/* ================================================================
   PROVIDER BAR
   ================================================================ */
#provider-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 24px;
  letter-spacing: 0.5px;
}

#provider-bar a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
}

#provider-bar a:hover {
  opacity: 1;
  text-decoration: underline;
  color: var(--white);
}

/* ================================================================
   FOOTER
   ================================================================ */
#footer {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 12px;
  line-height: 1.8;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: start;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 18px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.footer-col p {
  color: var(--gray-400);
  font-size: 12px;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-col-right {
  text-align: right;
}

.footer-col-right h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  -webkit-text-fill-color: var(--gray-300);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-total {
  color: var(--gray-300);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-total strong {
  color: var(--primary-light);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 12px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links a i {
  margin-right: 5px;
  font-size: 11px;
  opacity: 0.6;
}

.footer-links a:hover i {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-500);
  font-size: 11px;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

.footer-sep {
  color: var(--gray-600);
}

.footer-dev-link {
  color: var(--accent) !important;
  font-weight: 600;
  transition: var(--transition);
}

.footer-dev-link:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* ========== RATING BANNER ========== */
.rating-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  transition: var(--transition);
  cursor: default;
}

.rating-banner:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.rating-banner-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rating-banner-icon i {
  color: var(--white);
  font-size: 20px;
}

.rating-banner-info {
  text-align: left;
}

.rating-banner-title {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--white);
  letter-spacing: 2px;
  font-weight: 700;
}

.rating-banner-stats {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.rb-stat {
  font-size: 11px;
  color: var(--gray-400);
}

.rb-stat strong {
  color: var(--primary-light);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  margin-right: 3px;
  vertical-align: middle;
}

/* ================================================================
   COOKIE BANNER
   ================================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 14px 24px;
  font-size: 12px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2000;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    padding: 12px 14px;
    gap: 10px;
    text-align: center;
    font-size: 11px;
  }
  #cookie-banner span {
    line-height: 1.5;
  }
  #cookie-close {
    width: 100%;
    justify-content: center;
  }
}

#cookie-banner a {
  color: var(--primary);
  font-weight: 600;
}

#cookie-banner i {
  margin-right: 6px;
  color: var(--warning);
}

#cookie-close {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  padding: 7px 18px;
  font-size: 12px;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 600;
}

#cookie-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-wrap {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 32px 36px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.auth-icon {
  text-align: center;
  padding-top: 32px;
  margin-bottom: -4px;
}

.auth-icon i {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 40px;
}

.auth-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 28px 0 24px;
  color: var(--gray-900);
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gray-800), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group label .req {
  color: var(--danger);
}

.form-group label i {
  margin-right: 4px;
  color: var(--gray-400);
  font-size: 13px;
}

.form-control {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-800);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
  font-family: var(--font-body);
  color: var(--gray-400);
}

.form-select {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
  font-family: var(--font-body);
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px 26px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary i {
  margin-right: 6px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary i {
  margin-right: 6px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  text-decoration: none;
}

.btn-danger i {
  margin-right: 6px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  margin-right: 4px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-sm:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm i {
  margin-right: 4px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--border-color);
  color: var(--gray-300);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--white);
  transform: translateY(-1px);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--gray-400);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.btn-edit {
  border-color: var(--warning);
  color: var(--warning);
}

.btn-edit:hover {
  background: var(--warning);
  color: var(--white);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--gray-200);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-back:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-back i {
  margin-right: 4px;
}

.btn-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-copy i {
  margin-right: 4px;
}

.forgot-link {
  font-size: 12px;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
}

.forgot-link i {
  margin-right: 4px;
}

/* ========== CUSTOM CAPTCHA ========== */
.oxo-captcha {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, var(--gray-50) 0%, #f0f4ff 100%);
  margin-bottom: 16px;
}

.oxo-captcha-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.oxo-captcha-label i {
  color: var(--primary);
  font-size: 15px;
}

.oxo-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oxo-captcha-img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  height: 50px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.oxo-captcha-refresh {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-500);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.oxo-captcha-refresh:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: rotate(90deg);
}

.oxo-captcha-input {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
  text-align: center;
  letter-spacing: 3px;
  max-width: 120px;
}

.oxo-captcha-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.oxo-captcha-input::placeholder {
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
}

/* ========== ALERTS ========== */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
}

.alert i {
  margin-right: 6px;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* ================================================================
   COUNTER / HTML CODE PAGE
   ================================================================ */
.code-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 36px;
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.code-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 32px 0 20px;
  text-transform: uppercase;
  color: var(--gray-800);
}

.code-title i {
  margin-right: 8px;
  color: var(--primary);
}

.code-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
}

.code-desc code {
  background: var(--primary-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
}

.counter-selection {
  margin: 24px 0;
}

.counter-selection h3 {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 14px;
  font-weight: 600;
}

.counter-selection h3 i {
  margin-right: 6px;
  color: var(--primary);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.counter-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.counter-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.counter-option.active {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.counter-option input {
  display: none;
}

.counter-option img {
  max-width: 100%;
  height: auto;
}

.counter-option span {
  font-size: 10px;
  color: var(--gray-500);
}

/* ── Color Picker ── */
.counter-color-section {
  margin: 20px 0;
}
.counter-color-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.counter-color-section h3 i {
  color: var(--primary);
  margin-right: 6px;
}
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.color-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.color-dot:hover {
  transform: scale(1.15);
}
.color-dot.active {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gray-400);
}
.color-dot-white {
  border: 2px solid var(--gray-300);
}
.color-dot-white.active {
  border-color: var(--gray-800);
}
.color-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-custom label {
  font-size: 12px;
  color: var(--gray-500);
}
.color-custom input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  background: none;
}
.color-custom input[type="text"] {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 12px;
  font-family: monospace;
  color: var(--gray-700);
}

.code-output {
  margin: 24px 0;
}

.code-output h3 {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 12px;
  font-weight: 600;
}

.code-output h3 i {
  margin-right: 6px;
  color: var(--primary);
}

.code-block {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.code-block pre {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--success-light);
}

.code-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 10px;
}

.code-note code {
  background: var(--primary-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
}

.code-box {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 18px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--success-light);
  margin-top: 14px;
}

/* Online banner section */
.online-banner-section {
  margin: 32px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px 28px;
}

.online-banner-section h3 {
  font-size: 16px;
  color: var(--gray-800);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-desc-small {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.online-banner-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.online-banner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 18px;
  transition: var(--transition);
}

.online-banner-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.online-banner-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.online-banner-demo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 14px;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 12px;
}

/* Pill v2 */
.online-demo-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.online-demo-sitename {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.online-demo-divider {
  opacity: 0.4;
  margin: 0 2px;
}

/* Badge v2 */
.online-demo-badge-v2 {
  display: inline-flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
  font-size: 13px;
  font-weight: 600;
}

.online-badge-top {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.online-badge-bottom {
  background: #fff;
  color: var(--gray-700);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Minimal */
.online-demo-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
  padding: 6px 0;
}

.online-pulse-sm {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: onlinePulse 1.5s ease-in-out infinite;
}

.online-banner-code {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px;
  word-break: break-all;
  font-family: 'Consolas', monospace;
}

.code-block-sm {
  position: relative;
  text-align: left;
}

.code-block-sm pre {
  font-size: 11px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 10px 36px 10px 10px;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: 'Consolas', monospace;
  margin: 0;
  line-height: 1.5;
}

.btn-copy-sm {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray-500);
  transition: var(--transition);
}

.btn-copy-sm:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.how-it-works {
  margin: 32px 0;
}

.how-it-works h3 {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 16px;
  font-weight: 600;
}

.how-it-works h3 i {
  margin-right: 6px;
  color: var(--primary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.step-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.step-text strong {
  font-family: 'BPG Nino Mtavruli', sans-serif;
  font-size: 13px;
  color: var(--gray-800);
  display: block;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
}

.step-text code {
  background: var(--primary-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
}

.counter-preview-section {
  margin: 24px 0;
}

.counter-preview-section h3 {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 12px;
  font-weight: 600;
}

.counter-preview-section h3 i {
  margin-right: 6px;
  color: var(--primary);
}

.preview-counter-live {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 2px dashed var(--gray-300);
}

.preview-counter-live p {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}

.preview-counter {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* ================================================================
   TERMS / LEGAL PAGE
   ================================================================ */
.terms-wrap {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 28px 36px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.terms-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 28px 0 18px;
  text-transform: uppercase;
  color: var(--gray-800);
}

.terms-title i {
  margin-right: 8px;
  color: var(--primary);
}

.terms-body {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.terms-body p {
  margin-bottom: 12px;
}

.terms-body h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--gray-800);
  font-weight: 700;
}

.terms-body h3 i {
  margin-right: 6px;
  color: var(--primary);
  font-size: 14px;
}

/* ================================================================
   FAQ PAGE
   ================================================================ */
.faq-wrap {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 28px 36px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 28px 0 18px;
  text-transform: uppercase;
  color: var(--gray-800);
}

.faq-title i {
  margin-right: 8px;
  color: var(--primary);
}

.faq-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin: -10px 0 20px;
}

.faq-section {
  margin-bottom: 8px;
}

.faq-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.faq-section-title i {
  margin-right: 8px;
  opacity: 0.7;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
}

.faq-q {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  transition: var(--transition);
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q > i:first-child {
  margin-right: 10px;
  color: var(--primary);
  opacity: 0.7;
  font-size: 15px;
}

.faq-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  transition: var(--transition);
}

.faq-toggle i {
  font-size: 11px;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
}

.faq-item.active .faq-toggle i {
  color: var(--white);
}

.faq-a {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
  padding-top: 10px;
  display: none;
}

.faq-a ul, .faq-a ol {
  margin: 8px 0 4px 20px;
  padding: 0;
}
.faq-a li {
  margin-bottom: 4px;
}
.faq-a code {
  background: var(--gray-50);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary);
}
.faq-a a {
  color: var(--primary);
  text-decoration: underline;
}
.faq-a a:hover {
  color: var(--primary-dark, #4f46e5);
}

.faq-a.open {
  display: block;
  animation: slideUp 0.3s ease;
}

/* ================================================================
   SEARCH RESULTS
   ================================================================ */
.search-header {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.search-header strong {
  color: var(--gray-800);
}

.no-results {
  padding: 56px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 15px;
}

.no-results i {
  margin-right: 8px;
  font-size: 18px;
}

/* Search form wide (search results page) */
.search-form-wide {
  flex: 1;
}

.search-form-wide .filter-search-input {
  flex: 1;
  width: auto;
}

.search-form-wide .filter-search-btn {
  padding: 6px 16px;
  font-weight: 600;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.search-form-wide .filter-search-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ================================================================
   STAT DETAIL PAGE v2 — Full Redesign
   ================================================================ */
.stat-page {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Breadcrumb */
.stat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.stat-breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.stat-breadcrumb a:hover { color: var(--accent); }
.stat-breadcrumb i.fa-chevron-right { font-size: 8px; }
.stat-breadcrumb span { color: var(--gray-600); font-weight: 500; }

/* ===== HERO v2 ===== */
.stat-hero2 {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.stat-hero2-left {
  position: relative;
  background: var(--dark);
  min-height: 320px;
}

.stat-hero2-screenshot {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stat-hero2-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s, filter 0.4s;
}

.stat-hero2-screenshot a:hover img {
  transform: scale(1.04);
  filter: brightness(0.65);
}

.stat-hero2-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}

.stat-hero2-screenshot a:hover .stat-hero2-overlay { opacity: 1; }

.stat-hero2-right {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-hero2-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-hero2-favicon {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.stat-hero2-header h1 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin: 0;
}

.stat-hero2-url {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-hero2-url:hover { text-decoration: underline; }

.stat-hero2-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Hero badges v2 */
.stat-hero2-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sh2b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
}
.sh2b i { font-size: 9px; }

.sh2b-rank {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  border-color: #fbbf24;
  color: #92400e;
}
.sh2b-cat { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.sh2b-up  { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.sh2b-down { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.sh2b-flat { background: var(--gray-50); color: var(--gray-500); }
.sh2b-online { background: #ecfdf5; border-color: #34d399; color: #065f46; }

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Hero actions v2 */
.stat-hero2-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-stat2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-stat2-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.btn-stat2-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  color: #fff;
}

.btn-stat2-outline {
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--gray-200);
}
.btn-stat2-outline:hover {
  border-color: var(--accent);
  background: #eff6ff;
  color: var(--accent);
}

/* Reviews/votes in hero */
.stat-hero2-reviews {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.stat-review-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
}

.stat-review-like {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-review-dislike {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.stat-review-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-500);
}

/* Counter preview in hero */
.stat-hero2-counter {
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.stat-hero2-counter-img {
  height: 28px;
  border-radius: 4px;
}

/* ===== STAT PRIVATE v2 ===== */
.stat-private2 {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.stat-private2-icon {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 14px;
}
.stat-private2 h3 {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.stat-private2 p {
  font-size: 13px;
  color: var(--gray-400);
}

/* ===== QUICK STATS ROW ===== */
.stat-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.sq-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.sq-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sq-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #eff6ff;
  color: #3b82f6;
  flex-shrink: 0;
}
.sq-icon-emerald { background: #ecfdf5; color: #10b981; }
.sq-icon-violet  { background: #f5f3ff; color: #8b5cf6; }

.sq-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.sq-lbl {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  font-weight: 500;
}

.sq-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sq-change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.sq-up { background: #ecfdf5; color: #059669; }
.sq-dn { background: #fef2f2; color: #dc2626; }

.sq-live-dot {
  width: 10px;
  height: 10px;
  background: #34d399;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.stat-sparkline { display: block; }

/* ===== 6 METRIC CARDS ===== */
.stat-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.sm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.sm-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 auto 8px;
}
.sm-blue    { background: #eff6ff; color: #3b82f6; }
.sm-indigo  { background: #eef2ff; color: #6366f1; }
.sm-emerald { background: #ecfdf5; color: #10b981; }
.sm-violet  { background: #f5f3ff; color: #8b5cf6; }
.sm-amber   { background: #fffbeb; color: #f59e0b; }
.sm-rose    { background: #fff1f2; color: #f43f5e; }

.sm-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.sm-lbl {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== ANALYTICS TABS v2 ===== */
.stat-tabs2 { margin-bottom: 24px; }

.st2-nav {
  display: flex;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}

.st2-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  white-space: nowrap;
}
.st2-btn:hover { color: var(--gray-700); }
.st2-btn.active {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.st2-panel { display: none; }
.st2-panel.active { display: block; }

/* ===== STAT BLOCK (section card) ===== */
.stat-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.stat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-block-head h3 {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.stat-block-head h3 i { color: var(--accent); font-size: 13px; }

.stat-block-sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* 2-col grid for stat blocks */
.stat-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 0;
}
.stat-grid-2col + .stat-block { margin-top: 14px; }

/* ===== HOURLY CHART v2 ===== */
.hourly-chart2 {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 140px;
  padding-top: 10px;
}

.hc2-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.hc2-val {
  font-size: 8px;
  color: var(--gray-400);
  margin-bottom: 2px;
  font-weight: 600;
}

.hc2-bar {
  width: 100%;
  max-width: 22px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.5s ease;
  opacity: 0.75;
}
.hc2-col:hover .hc2-bar {
  opacity: 1;
  background: #6366f1;
}
.hc2-col:hover .hc2-val { color: var(--accent); }

.hc2-now .hc2-bar {
  background: linear-gradient(180deg, #6366f1, var(--accent));
  opacity: 1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.hc2-lbl {
  font-size: 8px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ===== KEY-VALUE LIST ===== */
.stat-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray-600);
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
}
.stat-kv:last-child { border-bottom: none; }
.stat-kv strong { color: var(--gray-800); font-weight: 700; }

/* ===== TREND & K CARD ===== */
.stat-tk-card {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-tk-trend,
.stat-tk-k {
  flex: 1;
  text-align: center;
  padding: 10px 0;
}

.stat-tk-divider {
  width: 1px;
  height: 50px;
  background: var(--gray-200);
}

.tk-up {
  color: #059669;
  font-size: 22px;
  font-weight: 800;
}
.tk-down {
  color: #dc2626;
  font-size: 22px;
  font-weight: 800;
}
.tk-flat {
  color: var(--gray-400);
  font-size: 18px;
  font-weight: 600;
}

.tk-label {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}

.tk-k-val {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BAR LIST ===== */
.stat-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  align-items: center;
  gap: 10px;
}

.stat-bar-label {
  font-size: 12px;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.stat-bar-track {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.bar-blue    { background: var(--accent); }
.bar-indigo  { background: #6366f1; }
.bar-emerald { background: #10b981; }
.bar-violet  { background: #8b5cf6; }
.bar-amber   { background: #f59e0b; }
.bar-rose    { background: #f43f5e; }

.stat-bar-num {
  font-size: 12px;
  color: var(--gray-600);
  text-align: right;
  white-space: nowrap;
}
.stat-bar-num small {
  color: var(--gray-400);
  font-size: 11px;
}

.stat-empty-note {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--gray-400);
}
.stat-empty-note i { margin-right: 6px; }

/* ===== FOOTER ROW ===== */
.stat-foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
}

.stat-foot-item {
  font-size: 11.5px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-foot-item i { color: var(--gray-400); font-size: 12px; }
.stat-foot-item strong { color: var(--gray-700); }

/* ===== BACK BUTTON ===== */
.stat-back2 {
  text-align: center;
  margin-top: 16px;
}
.stat-back2 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.2s;
}
.stat-back2 a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #eff6ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .stat-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stat-hero2 {
    grid-template-columns: 1fr;
  }
  .stat-hero2-left { min-height: 240px; }

  .stat-quick-row {
    grid-template-columns: 1fr;
  }

  .stat-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid-2col {
    grid-template-columns: 1fr;
  }

  .st2-nav {
    overflow-x: auto;
    gap: 1px;
  }
  .st2-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
  .st2-btn span { display: none; }

  .hourly-chart2 { height: 90px; }
  .hc2-lbl { font-size: 7px; }
  .hc2-val { display: none; }

  .stat-bar-item {
    grid-template-columns: 80px 1fr 60px;
  }

  .stat-tk-card { flex-direction: column; }
  .stat-tk-divider { width: 50px; height: 1px; }
}

/* ================================================================
   DASHBOARD v2 — Full Redesign
   ================================================================ */

/* Remove page-body padding when dashboard is inside */
.page-body:has(.db2) {
  padding: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-body:has(.db2) #main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

/* Hide footer & provider bar on dashboard */
.page-body:has(.db2) ~ #provider-bar,
.page-body:has(.db2) ~ #footer {
  display: none;
}

/* ── Layout: sidebar + content ── */
.db2 {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* ── Sidebar ── */
.db2-sidebar {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.db2-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.db2-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.db2-profile-info { min-width: 0; }

.db2-profile-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db2-profile-role {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 3px;
}

.db2-role-admin { background: rgba(239,68,68,0.2); color: #fca5a5; }
.db2-role-moderator { background: rgba(245,158,11,0.2); color: #fcd34d; }
.db2-role-user { background: rgba(99,102,241,0.2); color: #a5b4fc; }

.db2-nav {
  flex: 1;
  padding: 12px 0;
}

.db2-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.db2-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.db2-nav-item.active {
  color: #fff;
  background: rgba(99,102,241,0.25);
  border-right: 3px solid #818cf8;
  font-weight: 600;
}

.db2-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.db2-nav-badge {
  margin-left: auto;
  background: rgba(99,102,241,0.4);
  color: #c7d2fe;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.db2-side-footer {
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db2-admin-link,
.db2-logout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.db2-admin-link {
  color: #fde68a;
  background: rgba(245,158,11,0.1);
}
.db2-admin-link:hover { background: rgba(245,158,11,0.2); }

.db2-logout-link {
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
}
.db2-logout-link:hover { background: rgba(239,68,68,0.2); }

/* ── Main Content ── */
.db2-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 40px;
}

/* ── Page Header ── */
.db2-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent), transparent) 1;
}

.db2-page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}

.db2-page-header h1 i {
  margin-right: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.db2-page-header p {
  width: 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Alerts ── */
.db2-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: db2FadeIn 0.3s ease;
}

.db2-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.db2-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes db2FadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stats Grid ── */
.db2-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.db2-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.db2-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.db2-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.db2-stat-primary .db2-stat-icon { background: rgba(99,102,241,0.12); color: #6366f1; }
.db2-stat-blue .db2-stat-icon { background: rgba(59,130,246,0.12); color: #3b82f6; }
.db2-stat-emerald .db2-stat-icon { background: rgba(16,185,129,0.12); color: #10b981; }
.db2-stat-amber .db2-stat-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }
.db2-stat-purple .db2-stat-icon { background: rgba(168,85,247,0.12); color: #a855f7; }
.db2-stat-rose .db2-stat-icon { background: rgba(244,63,94,0.12); color: #f43f5e; }

.db2-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}

.db2-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Grid 2-col ── */
.db2-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* ── Card ── */
.db2-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.db2-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.db2-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.db2-card-header h3 i {
  margin-right: 6px;
  color: var(--primary);
}

.db2-card-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.db2-card-link:hover { color: var(--accent); }

/* ── Mini list (overview sites) ── */
.db2-mini-list { display: flex; flex-direction: column; }

.db2-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
}

.db2-mini-row:last-child { border: none; }

.db2-mini-fav {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.db2-mini-info {
  flex: 1;
  min-width: 0;
}

.db2-mini-info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  display: block;
}

.db2-mini-info a:hover { color: var(--primary); }

.db2-mini-info span {
  font-size: 11px;
  color: var(--gray-400);
}

.db2-mini-stat {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.db2-mini-stat small {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 2px;
}

/* ── Activity stats ── */
.db2-activity-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.db2-act-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: var(--gray-50);
  border-radius: 8px;
}

.db2-act-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.db2-act-lbl {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
  display: block;
}

.db2-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Info Grid (account info) ── */
.db2-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.db2-info-item {
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.db2-info-label {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.db2-info-label i { margin-right: 4px; }

.db2-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ── Empty state ── */
.db2-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
}

.db2-empty-icon {
  font-size: 40px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.db2-empty h3 {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0 0 8px;
}

.db2-empty p {
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 20px;
}

.db2-empty-sm {
  text-align: center;
  padding: 24px 16px;
  color: var(--gray-500);
}

.db2-empty-sm i {
  font-size: 28px;
  color: var(--gray-300);
  margin-bottom: 8px;
  display: block;
}

.db2-empty-sm p {
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── Buttons ── */
.db2-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.db2-btn-sm { padding: 7px 12px; font-size: 12px; }

.db2-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.db2-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.db2-btn-outline {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.db2-btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); }

.db2-btn-purple {
  background: #7c3aed;
  color: #fff;
}
.db2-btn-purple:hover { background: #6d28d9; }

.db2-btn-danger {
  background: #ef4444;
  color: #fff;
}
.db2-btn-danger:hover { background: #dc2626; }

/* ── Site Cards ── */
.db2-site-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}

.db2-site-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.db2-site-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.db2-site-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.db2-site-fav {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-top: 2px;
  flex-shrink: 0;
}

.db2-site-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 3px;
}

.db2-site-name a {
  color: var(--gray-900);
  text-decoration: none;
}

.db2-site-name a:hover { color: var(--primary); }

.db2-site-rank {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-left: 4px;
}

.db2-site-url {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.db2-site-url a {
  color: var(--gray-400);
  text-decoration: none;
}

.db2-site-url a:hover { color: var(--primary); }

.db2-site-cat {
  color: var(--gray-400);
}

.db2-site-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.db2-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.db2-badge-open { background: #ecfdf5; color: #065f46; }
.db2-badge-closed { background: #fef2f2; color: #991b1b; }

.db2-badge-online {
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Site Stats Row */
.db2-site-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.db2-ss { text-align: center; }

.db2-ss-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.db2-ss-lbl {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
}

.db2-ss-blue { color: #3b82f6; }
.db2-ss-green { color: #22c55e; }
.db2-ss-amber { color: #f59e0b; }
.db2-ss-purple { color: #8b5cf6; }
.db2-ss-rose { color: #f43f5e; }

/* Site Actions */
.db2-site-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

/* ── Counter Config ── */
.db2-counter-card { position: relative; }

.db2-site-url-sm {
  font-size: 12px;
  color: var(--gray-400);
}

.db2-counter-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.db2-counter-controls { flex: 1; min-width: 250px; }

.db2-counter-preview {
  min-width: 200px;
  text-align: center;
}

.db2-preview-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.db2-preview-box {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.db2-preview-box img {
  max-width: 100%;
  height: auto;
}

/* ── Forms ── */
.db2-form-group {
  margin-bottom: 12px;
}

.db2-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.db2-select,
.db2-input,
.db2-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.db2-select:focus,
.db2-input:focus,
.db2-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.db2-textarea {
  resize: vertical;
  min-height: 80px;
}

.db2-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.db2-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  padding: 0;
}

.db2-color-dot:hover { transform: scale(1.15); }
.db2-color-dot.active { border-color: var(--gray-400) !important; transform: scale(1.1); }

.db2-color-input {
  width: 30px;
  height: 30px;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  background: none;
}

.db2-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.db2-color-input::-webkit-color-swatch { border-radius: 4px; border: 1px solid var(--gray-200); }

/* ── Code Block ── */
.db2-code-block {
  background: #1e1b4b;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.db2-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.db2-copy-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.db2-copy-btn:hover { background: rgba(255,255,255,0.2); }

.db2-code {
  margin: 0;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #e0e7ff;
  font-family: 'JetBrains Mono', monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ── News ── */
.db2-news-form .db2-form-group:last-of-type { margin-bottom: 14px; }

.db2-news-history {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.db2-news-history h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  margin: 0 0 10px;
}

.db2-news-history h4 i { margin-right: 4px; }

.db2-news-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 13px;
}

.db2-news-row:last-child { border: none; }

.db2-news-title {
  flex: 1;
  color: var(--gray-700);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db2-news-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.db2-ns-amber { background: #fef3c7; color: #b45309; }
.db2-ns-green { background: #ecfdf5; color: #065f46; }
.db2-ns-red { background: #fef2f2; color: #991b1b; }
.db2-ns-gray { background: var(--gray-100); color: var(--gray-600); }

.db2-news-time {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
}

.db2-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.db2-card-api {
  border-style: dashed;
}

.db2-text-muted {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.db2-text-xs {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 8px;
}

.db2-text-xs code {
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* ── Settings Forms ── */
.db2-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.db2-form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.db2-settings-form .db2-btn {
  margin-top: 4px;
}

/* ── Mobile Sidebar Toggle ── */
.db2-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  align-items: center;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .db2 { flex-direction: column; }

  .db2-sidebar {
    width: 100%;
    min-width: auto;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .db2-sidebar.open { left: 0; }

  .db2-mobile-toggle { display: flex; }

  .db2-content {
    padding: 20px 16px 80px;
  }

  .db2-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .db2-grid-2 {
    grid-template-columns: 1fr;
  }

  .db2-counter-row {
    flex-direction: column;
  }

  .db2-site-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .db2-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .db2-stats-grid {
    grid-template-columns: 1fr;
  }

  .db2-site-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .db2-activity-stats {
    flex-direction: column;
  }

  .db2-site-top {
    flex-direction: column;
  }
}

/* old dashboard compat */
.badge-open {
  background: #ecfdf5;
  color: #065f46;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-closed {
  background: #fef2f2;
  color: #991b1b;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
/* Sidebar is collapsed by default on all screen sizes.
   The @media (max-width: 992px) sidebar rules have been
   moved to the base styles above. */

@media (max-width: 768px) {
  .ranking-table thead th:nth-child(n+6),
  .ranking-table td:nth-child(n+6) {
    display: none;
  }

  .filter-select {
    min-width: 160px;
  }

  /* ── Filter bar: stack on mobile ── */
  .filter-inner {
    flex-wrap: nowrap;
    padding: 6px 10px;
    gap: 0;
  }

  .filter-cats-scroll {
    gap: 5px;
    padding: 4px 2px;
  }

  .filter-cat-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  .filter-cat-btn i { font-size: 10px; }

  .filter-nav-links {
    display: none;
  }

  /* ── Promo banner: mobile layout ── */
  .oxo-promo-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .oxo-promo-left {
    display: none;
  }
  .oxo-promo-center {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
  }
  .oxo-promo-desc {
    display: none;
  }
  .oxo-promo-right {
    flex: 1 1 100%;
    justify-content: center;
    gap: 10px;
  }

  /* ── Ranking table mobile tweaks ── */
  .ranking-table {
    font-size: 11px;
  }
  .ranking-table thead th {
    padding: 8px 6px;
    font-size: 10px;
  }
  .ranking-table td {
    padding: 8px 6px;
  }
  .col-rank {
    min-width: 30px;
    width: 36px;
    font-size: 13px;
  }
  .col-trend {
    min-width: 40px;
    width: 50px;
  }
  .col-site {
    min-width: 140px;
  }
  .site-name {
    font-size: 12px;
  }
  .stat-main {
    font-size: 12px;
  }

  /* ── News ticker ── */
  .news-ticker {
    padding: 8px 12px;
    gap: 8px;
  }
  .ticker-label {
    font-size: 10px;
    padding: 3px 8px;
  }
  .ticker-item a {
    font-size: 11.5px;
  }

  .stat-hero2 {
    grid-template-columns: 1fr;
  }

  .stat-hero2-left {
    min-height: 180px;
  }

  .stat-quick-row {
    grid-template-columns: 1fr;
  }

  .stat-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-col p {
    max-width: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col-right {
    text-align: center;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-wrap {
    margin: 20px 12px;
    padding: 0 18px 24px;
  }

  .terms-wrap,
  .faq-wrap,
  .code-wrap {
    margin: 16px 12px;
    padding: 0 18px 24px;
  }

  #header {
    padding: 0 14px;
    height: 54px;
  }

  .header-logo {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .ranking-table thead th {
    /* non-sticky — no top needed */
  }

  .rating-banner {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }

  .rating-banner-info {
    text-align: center;
  }

  .rating-banner-stats {
    justify-content: center;
  }

  .header-login-link span,
  .header-register-link span,
  .header-user-link span {
    display: none;
  }

  .header-register-link {
    padding: 6px 10px;
    gap: 0;
  }

  .header-login-link {
    padding: 6px 10px;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .stat-metrics-grid {
    grid-template-columns: 1fr;
  }

  .stat-hero2-right {
    padding: 16px;
  }

  .stat-hero2-actions {
    flex-direction: column;
  }

  .header-logo {
    font-size: 16px;
    letter-spacing: 2px;
  }

  /* ── Hide more columns on small phones ── */
  .ranking-table thead th:nth-child(n+5),
  .ranking-table td:nth-child(n+5) {
    display: none;
  }

  .ranking-table thead th {
    padding: 6px 4px;
    font-size: 9px;
  }
  .ranking-table td {
    padding: 6px 4px;
  }
  .col-rank {
    min-width: 26px;
    width: 30px;
    font-size: 12px;
  }
  .col-trend {
    min-width: 34px;
    width: 38px;
    font-size: 11px;
  }
  .col-site {
    min-width: 110px;
  }
  .site-name {
    font-size: 11.5px;
  }
  .site-name i {
    display: none;
  }
  .site-category {
    font-size: 9px;
    padding: 1px 5px;
  }
  .site-url {
    font-size: 9px;
  }
  .site-desc {
    display: none;
  }
  .stat-main {
    font-size: 11px;
  }
  .stat-yesterday {
    font-size: 9px;
  }

  /* ── Filter bar: full stack on very small ── */
  .filter-inner {
    flex-direction: column;
    padding: 8px 12px;
    gap: 6px;
    align-items: stretch;
  }

  .filter-label {
    font-size: 12px;
    text-align: center;
  }

  .filter-category-label {
    width: 100%;
    justify-content: center;
  }

  .filter-select {
    min-width: 100%;
    width: 100%;
  }

  .filter-nav-links {
    display: none;
  }

  .filter-search-form {
    width: 100%;
    margin-left: 0;
  }

  .filter-search-input {
    width: 100%;
    flex: 1;
  }

  /* ── Promo banner tiny ── */
  .oxo-promo-inner {
    padding: 8px 12px;
    gap: 6px;
  }
  .oxo-promo-title {
    font-size: 14px;
  }
  .oxo-promo-desc {
    font-size: 10.5px;
  }
  .oxo-promo-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
  .oxo-promo-online {
    font-size: 11px;
  }

  /* ── News ticker tiny ── */
  .news-ticker {
    padding: 6px 10px;
    gap: 6px;
    border-radius: 6px;
    margin-bottom: 8px;
  }
  .ticker-label {
    font-size: 9px;
    padding: 2px 6px;
  }
  .ticker-item a {
    font-size: 11px;
  }

  /* Ensure header search bar fits on small screens */
  .search-submit {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════
   NEWS TICKER
   ═══════════════════════════════════════════════════ */

.news-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-content {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.ticker-content::-webkit-scrollbar { display: none; }

.ticker-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.ticker-item a:hover { color: var(--accent); }

.ticker-item small {
  color: var(--gray-500);
  font-size: 11px;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════
   SITE FAVICON IN RATING TABLE
   ═══════════════════════════════════════════════════ */

.site-favicon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
}

.site-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════
   ONLINE COUNT
   ═══════════════════════════════════════════════════ */

.online-count {
  color: #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════
   NEWS PAGE (Redesigned)
   ═══════════════════════════════════════════════════ */

.news-page { max-width: none; margin: 0 auto; }

.news-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.news-page-header .page-title {
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-count {
  font-size: 13px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Hero / Featured news */
.news-hero {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.news-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.news-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.news-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.news-hero-meta span { display: flex; align-items: center; gap: 4px; }

.news-hero-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

/* News cards list */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 20px 20px 64px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.news-card-num {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.news-card-title {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--text-primary);
  font-weight: 700;
}

.news-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
}

.news-meta span { display: flex; align-items: center; gap: 4px; }

.news-card-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-300);
}

/* ═══════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════ */

/* ================================================================
   ADMIN PANEL v2 — Sidebar Layout (matches Dashboard v2 style)
   ================================================================ */

/* Remove page-body padding for admin panel */
.page-body:has(.adm) {
  padding: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-body:has(.adm) #main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

/* Hide footer & provider bar on admin */
.page-body:has(.adm) ~ #provider-bar,
.page-body:has(.adm) ~ #footer {
  display: none;
}

/* ── Layout: sidebar + content ── */
.adm {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* ── Sidebar ── */
.adm-sidebar {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.adm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.adm-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.adm-brand-text { min-width: 0; }

.adm-brand-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.3px;
}

.adm-brand-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

/* Nav */
.adm-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.adm-nav-label {
  padding: 16px 24px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3);
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}

.adm-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.adm-nav-item.active {
  color: #fff;
  background: rgba(239,68,68,0.12);
  border-left-color: #ef4444;
  font-weight: 600;
}

.adm-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.adm-nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.adm-badge-warn {
  background: rgba(245,158,11,0.25);
  color: #fcd34d;
}

.adm-side-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #a5b4fc;
  background: rgba(99,102,241,0.08);
  transition: all 0.2s;
}

.adm-back-link:hover { background: rgba(99,102,241,0.16); }

.adm-back-home {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}

.adm-back-home:hover { background: rgba(255,255,255,0.08); }

/* ── Main Content ── */
.adm-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 40px;
}

/* ── Mobile Toggle ── */
.adm-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}

/* ── Page Header ── */
.adm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ef4444, #f97316, transparent) 1;
}

.adm-page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}

.adm-page-header h1 i {
  margin-right: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adm-page-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}

.adm-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adm-server-badge {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--gray-500);
  border: 1px solid var(--border-color);
}

/* ── Alerts ── */
.adm-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: db2FadeIn 0.3s ease;
}

.adm-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.adm-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Stats Grid ── */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.adm-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.adm-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.adm-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.adm-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}

.adm-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

.adm-scolor-indigo .adm-stat-icon { background: rgba(99,102,241,0.12); color: #6366f1; }
.adm-scolor-emerald .adm-stat-icon { background: rgba(16,185,129,0.12); color: #10b981; }
.adm-scolor-amber .adm-stat-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }
.adm-scolor-purple .adm-stat-icon { background: rgba(168,85,247,0.12); color: #a855f7; }
.adm-scolor-cyan .adm-stat-icon { background: rgba(6,182,212,0.12); color: #06b6d4; }
.adm-scolor-rose .adm-stat-icon { background: rgba(244,63,94,0.12); color: #f43f5e; }
.adm-scolor-teal .adm-stat-icon { background: rgba(20,184,166,0.12); color: #14b8a6; }

/* ── Card ── */
.adm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.adm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.adm-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.adm-card-header h3 i {
  margin-right: 6px;
  color: var(--primary);
}

/* ── Quick Actions ── */
.adm-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}

.adm-abtn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.adm-abtn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.3); transform: translateY(-1px); }
.adm-abtn-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.adm-abtn-success:hover { box-shadow: 0 4px 12px rgba(34,197,94,0.3); transform: translateY(-1px); }
.adm-abtn-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.adm-abtn-purple:hover { box-shadow: 0 4px 12px rgba(139,92,246,0.3); transform: translateY(-1px); }
.adm-abtn-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.adm-abtn-cyan:hover { box-shadow: 0 4px 12px rgba(6,182,212,0.3); transform: translateY(-1px); }
.adm-abtn-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.adm-abtn-amber:hover { box-shadow: 0 4px 12px rgba(245,158,11,0.3); transform: translateY(-1px); }

/* ── Tables ── */
.adm-table-wrap { overflow-x: auto; }

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-table thead th {
  background: var(--gray-50);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.adm-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: middle;
}

.adm-table tbody tr { transition: background 0.15s; }
.adm-table tbody tr:hover { background: var(--gray-50); }

.adm-td-id { font-weight: 600; color: var(--gray-400); font-size: 12px; width: 50px; }
.adm-td-email { font-size: 12px; color: var(--gray-500); }
.adm-td-center { text-align: center; }
.adm-td-date { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.adm-td-mono { font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 12px; color: var(--gray-500); }
.adm-td-desc { font-size: 12px; color: var(--gray-400); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-td-stats { font-weight: 600; font-size: 12px; color: var(--primary); white-space: nowrap; }
.adm-td-empty { text-align: center; color: var(--gray-400); padding: 24px !important; }

/* ── Role Select ── */
.adm-role-select {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.adm-role-select:focus { outline: none; border-color: var(--primary); }
.adm-role-admin { border-color: #ef4444; color: #ef4444; }
.adm-role-moderator { border-color: #f59e0b; color: #f59e0b; }
.adm-role-banned { border-color: #6b7280; color: #6b7280; }

.adm-you-badge {
  font-size: 11px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ── Action Buttons (small icon) ── */
.adm-actions-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.adm-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.adm-btn-edit { background: rgba(99,102,241,0.1); color: #6366f1; }
.adm-btn-edit:hover { background: rgba(99,102,241,0.2); }
.adm-btn-stat { background: rgba(6,182,212,0.1); color: #06b6d4; }
.adm-btn-stat:hover { background: rgba(6,182,212,0.2); }
.adm-btn-danger { background: rgba(239,68,68,0.08); color: #ef4444; }
.adm-btn-danger:hover { background: rgba(239,68,68,0.18); color: #dc2626; }

/* ── URL link ── */
.adm-url-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
}

.adm-url-link:hover { text-decoration: underline; }

/* ── Category badge ── */
.adm-cat-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ── Pagination ── */
.adm-pagination {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.adm-page-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gray-500);
  background: var(--gray-50);
  transition: all 0.2s;
}

.adm-page-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.adm-page-btn.active { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }

/* ── Forms ── */
.adm-form { }

.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.adm-form-group { margin-bottom: 12px; }

.adm-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 5px;
}

.adm-form-group label i {
  margin-right: 4px;
  color: var(--gray-400);
}

.adm-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.adm-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

/* ── News Items ── */
.adm-news-item {
  padding: 16px;
  border-radius: 10px;
  background: var(--gray-50);
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
}

.adm-news-pending { border-left-color: #f59e0b; }

.adm-news-head { margin-bottom: 10px; }
.adm-news-head h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--gray-800); }

.adm-news-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
}

.adm-news-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.adm-news-img { margin: 8px 0; }
.adm-news-img img { max-width: 200px; border-radius: 8px; }

.adm-news-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 10px;
}

.adm-news-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Online users ── */
.adm-online-user { color: var(--gray-800); }
.adm-online-user i { color: #22c55e; margin-right: 4px; }
.adm-online-guest { color: var(--gray-400); }
.adm-online-guest i { margin-right: 4px; }

/* ── Empty state ── */
.adm-empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--gray-400);
}

.adm-empty-state i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  color: var(--gray-300);
}

.adm-empty-state p { margin: 0; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .adm-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

  .adm-sidebar.open { left: 0; }
  .adm-mobile-toggle { display: flex; align-items: center; justify-content: center; }

  .adm-content { padding: 20px 16px 80px; }
  .adm-stats-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-page-header h1 { font-size: 18px; }
}

@media (max-width: 600px) {
  .adm-stats-grid { grid-template-columns: 1fr 1fr; }
  .adm-stat-card { padding: 14px; }
  .adm-stat-value { font-size: 18px; }
  .adm-quick-actions { flex-direction: column; }
  .adm-action-btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   FORUM STYLES (v1 — legacy)
   ═══════════════════════════════════════════════════ */

.forum-page { max-width: none; margin: 0 auto; }

/* Forum header */
.forum-header {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 24px;
  color: #fff;
}

.forum-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.forum-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.forum-stats-bar {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.forum-stats-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 8px;
}

/* Forum breadcrumb */
.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.forum-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.forum-breadcrumb a:hover { text-decoration: underline; }

/* Forum category cards */
.forum-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.forum-cat-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.fcc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.fcc-info { flex: 1; min-width: 0; }

.fcc-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--text-primary);
}

.fcc-info p {
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
}

.fcc-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.fcc-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fcc-arrow {
  color: var(--gray-500);
  flex-shrink: 0;
}

/* Forum category header */
.forum-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.forum-cat-header h1 {
  margin: 0;
  font-size: 22px;
  flex: 1;
}

.forum-cat-header p {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* Forum section */
.forum-section h2 {
  font-size: 18px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Forum topic rows */
.forum-topics-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.2s;
}

.forum-topic-row:hover { border-color: var(--accent); }

.forum-topic-row.pinned {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.forum-topic-row.locked { opacity: 0.7; }

.ftr-icon {
  color: var(--gray-500);
  font-size: 18px;
  flex-shrink: 0;
}

.ftr-info { flex: 1; min-width: 0; }

.ftr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.ftr-title:hover { color: var(--accent); }

.ftr-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
  flex-wrap: wrap;
}

.ftr-meta span { display: flex; align-items: center; gap: 4px; }

.ftr-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.ftr-stats span { display: flex; align-items: center; gap: 4px; }

/* Forum topic header */
.forum-topic-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.forum-topic-header h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.fth-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
}

.fth-meta span { display: flex; align-items: center; gap: 4px; }

.fth-mod-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* Forum posts */
.forum-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.forum-post {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.fp-sidebar {
  width: 140px;
  flex-shrink: 0;
  padding: 16px;
  background: var(--bg-tertiary);
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.fp-avatar {
  color: var(--gray-500);
  margin-bottom: 8px;
}

.fp-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.fp-username.role-admin { color: #ef4444; }
.fp-username.role-mod { color: #f59e0b; }

.fp-role { margin-top: 6px; }

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.admin { background: #ef444422; color: #ef4444; }
.role-badge.mod { background: #f59e0b22; color: #f59e0b; }
.role-badge.user { background: rgba(99,102,241,0.12); color: var(--accent); }

.fp-info {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-info span { display: flex; align-items: center; gap: 4px; justify-content: center; }

.fp-body {
  flex: 1;
  min-width: 0;
  padding: 16px;
}

.fp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.fp-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
}

.fp-date {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fp-mod-btn {
  margin-left: auto;
  color: var(--danger);
  font-size: 12px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.fp-mod-btn:hover { opacity: 1; }

.fp-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-300);
  word-break: break-word;
}

/* Forum reply form */
.forum-reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.forum-reply-form h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.forum-locked-notice,
.forum-login-notice {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 14px;
  margin-top: 20px;
}

.forum-login-notice a { color: var(--accent); }

/* Forum new topic */
.forum-new-topic {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.forum-new-topic h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* ═══════════════════════════════════════════════════
   FORUM v2 STYLES (f2-*)
   ═══════════════════════════════════════════════════ */

/* Hero */
.f2-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 70%, #6366f1 100%);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
}
.f2-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.f2-hero h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; position: relative; z-index: 1; }
.f2-hero p { margin: 0; font-size: 14px; opacity: 0.8; position: relative; z-index: 1; }

.f2-hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.f2-hs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.f2-hs:hover { background: rgba(255,255,255,0.2); }
.f2-hs strong { font-weight: 700; }
.f2-hs-today { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.3); }

/* Forum page wrapper */
.forum-page2 { padding: 0; }

/* Layout: main + sidebar */
.f2-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.f2-main { min-width: 0; }
.f2-sidebar { min-width: 0; }

/* Section head */
.f2-section-head {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.f2-sh-count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Category list */
.f2-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f2-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.25s;
  color: inherit;
}
.f2-cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.f2-cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.f2-cat-card:hover .f2-cc-icon {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  transform: scale(1.05);
}
.f2-cc-info {
  flex: 1;
  min-width: 0;
}
.f2-cc-info h3 {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}
.f2-cc-info p {
  margin: 0;
  font-size: 11px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f2-cc-nums {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.f2-cc-nums span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.f2-cc-arrow {
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.f2-cat-card:hover .f2-cc-arrow { transform: translateX(3px); color: var(--accent); }

.f2-cc-desc {
  margin: 0;
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.4;
}

.f2-cc-last {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}
.f2-cc-last i { font-size: 10px; }

.f2-empty-sm {
  text-align: center;
  padding: 16px 10px;
  font-size: 12px;
  color: var(--gray-400);
}

/* Sidebar block */
.f2-side-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.f2-sb-head {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}
.f2-sb-head small {
  margin-left: auto;
  font-weight: 500;
  color: var(--gray-400);
  font-size: 11px;
}

/* Top 10 mini rows */
.f2-topic-mini-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.f2-tm-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.f2-tm-row:last-child { border-bottom: none; }
.f2-tm-rank {
  width: 22px;
  height: 22px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.f2-tm-row:nth-child(1) .f2-tm-rank { background: #fbbf2422; color: #fbbf24; }
.f2-tm-row:nth-child(2) .f2-tm-rank { background: #94a3b822; color: #94a3b8; }
.f2-tm-row:nth-child(3) .f2-tm-rank { background: #d9764222; color: #d97642; }

.f2-tm-info { flex: 1; min-width: 0; }
.f2-tm-title {
  font-size: 12px;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f2-tm-title:hover { color: var(--accent); }
.f2-tm-meta {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* New Topic button */
.f2-new-topic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.f2-new-topic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Recent topics section */
.f2-recent-section { margin-top: 24px; }

.f2-topic-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f2-topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.2s;
}
.f2-topic-row:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.f2-topic-row.f2-tr-pinned {
  border-left: 3px solid #f59e0b;
  background: rgba(245,158,11,0.04);
}
.f2-topic-row.f2-tr-locked { opacity: 0.65; }

.f2-tr-icon {
  color: var(--gray-500);
  font-size: 16px;
  flex-shrink: 0;
}
.f2-tr-info { flex: 1; min-width: 0; }
.f2-tr-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}
.f2-tr-title:hover { color: var(--accent); }
.f2-tr-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 3px;
  flex-wrap: wrap;
}
.f2-tr-meta span { display: flex; align-items: center; gap: 3px; }
.f2-tr-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.f2-tr-stats span { display: flex; align-items: center; gap: 4px; }
.f2-tr-site {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.f2-tr-site:hover { text-decoration: underline; }

/* Vote counts in topic rows */
.f2-tr-votes {
  display: flex;
  gap: 8px;
  font-size: 12px;
  flex-shrink: 0;
}
.f2-tr-votes .up { color: #22c55e; display: flex; align-items: center; gap: 3px; }
.f2-tr-votes .dn { color: #ef4444; display: flex; align-items: center; gap: 3px; }

/* Breadcrumb */
.f2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.f2-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.f2-breadcrumb a:hover { text-decoration: underline; }

/* Category page header */
.f2-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.f2-cat-header .f2-cc-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
}
.f2-cat-header .f2-ch-info { flex: 1; }
.f2-cat-header .f2-ch-info h1 {
  margin: 0 0 2px;
  font-size: 22px;
}
.f2-cat-header .f2-ch-info p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* Topic page header */
.f2-topic-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.f2-th-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.f2-th-top h1 {
  margin: 0;
  font-size: 20px;
  flex: 1;
}

/* Vote box */
.f2-vote-box {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.f2-vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--gray-400);
  transition: all 0.2s;
}
.f2-vote-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.f2-vote-btn.f2-vote-up.active,
.f2-vote-up.active {
  background: #22c55e22;
  border-color: #22c55e;
  color: #22c55e;
}
.f2-vote-btn.f2-vote-dn.active,
.f2-vote-dn.active {
  background: #ef444422;
  border-color: #ef4444;
  color: #ef4444;
}

/* Topic site link */
.f2-th-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99,102,241,0.08);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12px;
}
.f2-th-site a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.f2-th-site a:hover { text-decoration: underline; }

/* Topic meta */
.f2-th-meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
}
.f2-th-meta span { display: flex; align-items: center; gap: 4px; }

/* Topic mod actions */
.f2-th-mod {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════
   FORUM TOPIC PAGE — Redesigned (ft-*)
   ═══════════════════════════════════════════════════ */

/* ── Topic Hero ── */
.ft-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 70%, #6366f1 100%);
  border-radius: 20px;
  padding: 32px 28px 28px;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
}
.ft-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.ft-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.ft-hero-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb inside hero */
.ft-bc,
.ft-bc a,
.ft-bc span {
  color: rgba(255,255,255,0.7) !important;
}
.ft-bc a:hover {
  color: #fff !important;
}
.ft-bc .fa-chevron-right {
  font-size: 9px;
  opacity: 0.5;
}

/* Title + vote row */
.ft-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-hero-title {
  flex: 1;
  min-width: 0;
}
.ft-hero-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

/* Badges */
.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.ft-badge-pin {
  background: rgba(245,158,11,0.25);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
}
.ft-badge-lock {
  background: rgba(239,68,68,0.25);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}

/* Vote buttons in hero */
.ft-vote-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.ft-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  transition: all 0.25s;
}
.ft-vote-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.ft-vote-btn.ft-vote-like.active {
  background: rgba(34,197,94,0.3);
  border-color: rgba(34,197,94,0.6);
  color: #86efac;
}
.ft-vote-btn.ft-vote-dislike.active {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.6);
  color: #fca5a5;
}

/* Site link in hero */
.ft-hero-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  margin-top: 14px;
  font-size: 12.5px;
}
.ft-hero-site a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
}
.ft-hero-site a:hover { color: #fff; text-decoration: underline; }
.ft-hero-site-url { opacity: 0.6; }
.ft-stat-link {
  margin-left: 6px;
  padding: 3px 8px;
  background: rgba(99,102,241,0.35);
  border-radius: 6px;
  font-size: 11px;
}

/* Stats pills in hero */
.ft-hero-stats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ft-hs {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Mod actions in hero */
.ft-hero-mod {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ft-mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.ft-mod-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.ft-mod-danger {
  border-color: rgba(239,68,68,0.35);
  color: #f87171;
}
.ft-mod-danger:hover {
  background: rgba(239,68,68,0.2);
}

/* ── Posts List ── */
.ft-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.ft-post {
  display: flex;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ft-post:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300, #d1d5db);
}
.ft-post-op {
  border-left: 3px solid var(--accent, #8b5cf6);
}

/* Sidebar */
.ft-post-sidebar {
  width: 150px;
  flex-shrink: 0;
  padding: 18px 14px;
  background: var(--bg-tertiary, #f9fafb);
  text-align: center;
  border-right: 1px solid var(--border-color, #e5e7eb);
}
.ft-post-avatar {
  font-size: 36px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 8px;
  line-height: 1;
}
.ft-post-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  word-break: break-word;
  margin-bottom: 6px;
}
.ft-post-user.role-admin { color: #ef4444; }
.ft-post-user.role-mod { color: #f59e0b; }

.ft-post-role {
  margin-bottom: 8px;
}

.ft-post-info {
  font-size: 11px;
  color: var(--gray-500, #6b7280);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ft-post-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

/* Post body */
.ft-post-body {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.ft-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  margin-bottom: 14px;
}
.ft-post-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #8b5cf6);
  background: rgba(99,102,241,0.08);
  padding: 2px 8px;
  border-radius: 6px;
}
.ft-post-date {
  font-size: 12px;
  color: var(--gray-500, #6b7280);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ft-post-mod-form {
  display: inline;
  margin-left: auto;
}
.ft-post-del {
  color: var(--danger, #ef4444);
  font-size: 12px;
  opacity: 0.4;
  transition: opacity 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ft-post-del:hover { opacity: 1; }

/* Edit button */
.ft-post-edit {
  color: var(--accent, #8b5cf6);
  font-size: 12px;
  opacity: 0.4;
  transition: opacity 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: 4px;
}
.ft-post-edit:hover { opacity: 1; }

/* Edited indicator */
.ft-edited {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color, #e5e7eb);
  font-size: 11px;
  color: var(--gray-500, #6b7280);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
}

/* Inline edit textarea & actions */
.ft-edit-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--accent, #8b5cf6);
  border-radius: 10px;
  background: var(--bg-main, #f9fafb);
  color: var(--text-primary, #111827);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.ft-edit-textarea:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.ft-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ft-edit-save {
  padding: 7px 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary, #6366f1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, transform 0.15s;
}
.ft-edit-save:hover { background: var(--accent, #8b5cf6); transform: translateY(-1px); }
.ft-edit-save:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ft-edit-cancel {
  padding: 7px 18px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: var(--bg-card, #fff);
  color: var(--text-secondary, #374151);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.ft-edit-cancel:hover { border-color: var(--danger, #ef4444); color: var(--danger, #ef4444); }

.ft-post-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary, #374151);
  word-break: break-word;
}

/* ── Reply Form ── */
.ft-reply-form {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.ft-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent, #8b5cf6);
}
.ft-reply-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #111827);
}
.ft-reply-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-tertiary, #f9fafb);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-reply-textarea:focus {
  outline: none;
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.ft-reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.ft-reply-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.ft-reply-submit:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.4);
}

/* Notices */
.ft-notice {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: var(--gray-400, #9ca3af);
  font-size: 14px;
  margin-top: 20px;
}
.ft-notice-login a {
  color: var(--accent, #8b5cf6);
  font-weight: 600;
}
.ft-notice-locked {
  border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.03);
}

/* ── Topic Page Responsive ── */
@media (max-width: 768px) {
  .ft-hero {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .ft-hero-top {
    flex-direction: column;
  }
  .ft-hero-title h1 {
    font-size: 18px;
  }
  .ft-vote-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .ft-post {
    flex-direction: column;
  }
  .ft-post-sidebar {
    width: 100%;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    text-align: left;
  }
  .ft-post-avatar {
    font-size: 24px;
    margin-bottom: 0;
  }
  .ft-post-info {
    flex-direction: row;
    gap: 10px;
  }
  .ft-post-role {
    margin-bottom: 0;
  }
}

/* New topic form */
.f2-new-topic {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}
.f2-new-topic h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* ── Forum New Topic — Redesign ── */
.fnt-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  padding: 36px 5% 32px;
  margin-bottom: 28px;
}

.fnt-hero-inner {
  max-width: 800px;
}

.fnt-hero .f2-breadcrumb {
  margin-bottom: 14px;
}

.fnt-hero .f2-breadcrumb,
.fnt-hero .f2-breadcrumb a,
.fnt-hero .f2-breadcrumb span {
  color: rgba(255,255,255,0.5);
}

.fnt-hero .f2-breadcrumb a:hover {
  color: #fff;
}

.fnt-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.fnt-title i {
  margin-right: 10px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fnt-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

/* Form Wrap */
.fnt-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Alert */
.fnt-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form */
.fnt-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.fnt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fnt-group {
  margin-bottom: 18px;
}

.fnt-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 7px;
}

.fnt-label i {
  margin-right: 5px;
  color: var(--primary);
  font-size: 12px;
}

.fnt-input,
.fnt-select,
.fnt-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.fnt-input:focus,
.fnt-select:focus,
.fnt-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.fnt-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.fnt-select {
  appearance: auto;
  cursor: pointer;
}

/* Actions */
.fnt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.fnt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.fnt-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

.fnt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.fnt-btn-back {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.fnt-btn-back:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

/* Tips */
.fnt-tips {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.fnt-tips h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  margin: 0 0 10px;
}

.fnt-tips h4 i {
  margin-right: 6px;
  color: #f59e0b;
}

.fnt-tips ul {
  margin: 0;
  padding-left: 18px;
}

.fnt-tips li {
  font-size: 12px;
  color: #0c4a6e;
  margin-bottom: 5px;
  line-height: 1.5;
}

.fnt-tips li:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .fnt-hero { padding: 24px 4% 22px; }
  .fnt-title { font-size: 20px; }
  .fnt-form { padding: 20px 16px; }
  .fnt-form-grid { grid-template-columns: 1fr; }
  .fnt-form-wrap { padding: 0 3%; }
}

/* Empty state */
.f2-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.f2-empty i {
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════════
   RATING TABLE — VOTES COLUMN
   ═══════════════════════════════════════════════════ */
.col-votes {
  text-align: center;
  min-width: 80px;
}
.vote-likes {
  color: #22c55e;
  font-size: 12px;
  margin-right: 6px;
}
.vote-likes i { margin-right: 2px; }
.vote-dislikes {
  color: #ef4444;
  font-size: 12px;
}
.vote-dislikes i { margin-right: 2px; }
.vote-empty {
  color: var(--gray-600);
  font-size: 12px;
}


/* ═══════════════════════════════════════════════════
   NEWS PAGE v2 (n2-*)
   ═══════════════════════════════════════════════════ */
.news-page2 { max-width: none; margin: 0 auto; padding: 0; }

/* Header */
.n2-header {
  margin-bottom: 28px;
}
.n2-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.n2-header-left h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.n2-count {
  font-size: 12px;
  color: var(--gray-500);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-weight: 600;
}

/* Category filter */
.n2-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.n2-filter-btn {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--gray-500);
  transition: all 0.25s;
  white-space: nowrap;
}
.n2-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
}
.n2-filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.n2-filter-btn i { margin-right: 3px; }

/* Hero / Featured news */
.n2-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.n2-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #f59e0b);
}
.n2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  padding: 4px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.n2-hero-cat {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: 10px;
}
.n2-hero-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}
.n2-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.n2-hero-meta span { display: flex; align-items: center; gap: 5px; }
.n2-hero-img {
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.n2-hero-img img {
  max-width: 100%;
  height: auto;
  display: block;
}
.n2-hero-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--gray-300);
}

/* News card list — grid layout */
.n2-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}
.n2-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s;
}
.n2-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.n2-card-img {
  width: 130px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.n2-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n2-card-content { flex: 1; min-width: 0; }
.n2-card-top {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 11px;
}
.n2-card-cat {
  color: var(--accent);
  font-weight: 700;
}
.n2-card-site { color: var(--gray-500); }
.n2-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.n2-card-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.n2-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--gray-500);
}
.n2-card-meta span { display: flex; align-items: center; gap: 3px; }


/* Nav admin link */
.nav-admin {
  color: #ef4444 !important;
}

.nav-admin:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — FORUM + NEWS
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .forum-header { padding: 20px 16px; }
  .forum-header h1 { font-size: 20px; }
  .forum-stats-bar { gap: 8px; }
  .forum-stats-bar span { padding: 4px 8px; font-size: 11px; }

  .forum-cat-card { padding: 12px; gap: 12px; }
  .fcc-icon { width: 40px; height: 40px; font-size: 16px; }
  .fcc-stats { display: none; }

  .forum-topic-row { padding: 10px 14px; gap: 10px; }
  .ftr-stats { display: none; }

  .forum-post { flex-direction: column; }
  .fp-sidebar {
    width: 100%;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
  }
  .fp-avatar { margin-bottom: 0; }
  .fp-info { flex-direction: row; gap: 10px; }

  .admin-nav { gap: 2px; padding: 6px; }
  .admin-tab { padding: 6px 10px; font-size: 12px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-card { padding: 14px; }

  /* Forum v2 responsive */
  .f2-layout { grid-template-columns: 1fr; }
  .f2-hero { padding: 20px 16px; }
  .f2-hero h1 { font-size: 20px; }
  .f2-hero-stats { gap: 6px; }
  .f2-hs { padding: 4px 8px; font-size: 11px; }
  .f2-cat-card { padding: 12px; gap: 10px; }
  .f2-cc-icon { width: 36px; height: 36px; font-size: 15px; }
  .f2-cc-nums { display: none; }
  .f2-topic-row { padding: 10px 12px; gap: 10px; }
  .f2-tr-stats { display: none; }
  .f2-tr-votes { gap: 4px; font-size: 11px; }
  .f2-th-top { flex-direction: column; }
  .f2-vote-btn { padding: 5px 10px; font-size: 12px; }
  .col-votes { min-width: 60px; }

  /* News v2 responsive */
  .n2-hero { padding: 20px 16px; }
  .n2-hero-title { font-size: 18px; }
  .n2-card { flex-direction: column; gap: 10px; }
  .n2-card-img { width: 100%; height: 140px; }
  .n2-filter { gap: 4px; }
  .n2-filter-btn { padding: 4px 8px; font-size: 11px; }
}

@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-tab i + span { display: none; }
  .forum-header h1 { font-size: 18px; }
  .news-ticker { flex-direction: column; gap: 6px; }
  .f2-hero h1 { font-size: 18px; }
  .f2-hero-stats { flex-direction: column; gap: 4px; }
  .n2-header-left { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   NEW FEATURES: Georgia %, Pie Chart, Map, Overlap, Countries, Ads
   ═══════════════════════════════════════════════════════════ */

/* ── Georgia % column in rating table ── */
.col-geo { text-align: center; min-width: 55px; white-space: nowrap; }
.geo-flag { font-size: 16px; }
.flag-icon { width: 18px; height: 13px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.geo-pct { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.geo-pct .flag-icon { width: 14px; height: 10px; vertical-align: -1px; }
.geo-high { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.geo-mid  { background: rgba(251, 191, 36, 0.15); color: #f59e0b; }
.geo-low  { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.geo-none { color: var(--gray-500); font-weight: 400; }

/* ── Georgia % badge in stat hero ── */
.sh2b-geo { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* ── Returning vs New Donut Chart ── */
.pie-chart-wrap { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.donut-chart { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-ring { }
.donut-segment { stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.donut-total { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.donut-label { font-size: 10px; color: var(--gray-500); }

.pie-legend { display: flex; flex-direction: column; gap: 10px; }
.pie-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-primary); }
.pie-legend-item strong { margin-left: auto; font-weight: 600; }
.pie-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Georgia % Circle Display ── */
.georgia-pct-display { display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 12px; }
.geo-big-pct { position: relative; }
.geo-circle { position: relative; width: 120px; height: 120px; }
.geo-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.geo-center-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 18px; font-weight: 800; color: #ef4444; }
.geo-center-val .flag-icon { width: 20px; height: 14px; vertical-align: -2px; }
.sh2b .flag-icon { width: 16px; height: 11px; vertical-align: -1px; }
.geo-info-text { text-align: center; }
.geo-info-text p { font-size: 13px; color: var(--text-primary); margin: 0 0 4px; }
.geo-info-text small { font-size: 11px; color: var(--gray-500); }

/* ── Countries Map ── */
.countries-map-container { margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: #1e293b; }
.world-map-wrap { width: 100%; height: 300px; }
.world-map-large { height: 420px; }
.jvectormap-tip { background: var(--dark-card) !important; color: #fff !important; border: 1px solid var(--dark-border) !important;
  padding: 6px 10px !important; border-radius: 6px !important; font-size: 12px !important; font-family: inherit !important; }
.jvectormap-zoomin, .jvectormap-zoomout { background: var(--gray-700) !important; color: #fff !important;
  border-radius: 4px !important; width: 24px !important; height: 24px !important; line-height: 24px !important; font-size: 14px !important; }

/* ── stat-block-more link ── */
.stat-block-more { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-block-more:hover { text-decoration: underline; }
.stat-block-more i { font-size: 10px; }

/* ── Audience Overlap ── */
.stat-overlap-desc { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; font-style: italic; }
.overlap-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.overlap-link:hover { text-decoration: underline; }
.overlap-url { display: block; font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* ── Countries Page ── */
.countries-page-header { margin-bottom: 16px; }
.countries-page-header h1 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.countries-page-header h1 i { color: var(--accent); }
.countries-subtitle { font-size: 13px; color: var(--gray-500); margin: 0; }

.countries-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.countries-filter-label { font-size: 13px; color: var(--gray-500); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.countries-filter-btn { padding: 5px 12px; font-size: 12px; border-radius: 6px; background: var(--dark-card); border: 1px solid var(--dark-border);
  color: var(--text-secondary); text-decoration: none; transition: all 0.15s; }
.countries-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.countries-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.countries-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.cs-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 10px; padding: 16px; text-align: center; }
.cs-icon { font-size: 20px; color: var(--gray-400); margin-bottom: 6px; }
.cs-icon-blue { color: #3b82f6; }
.cs-icon-green { color: #34d399; }
.cs-icon-red { color: #ef4444; }
.cs-val { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.cs-lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.countries-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.countries-table thead th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; border-bottom: 1px solid var(--dark-border); }
.countries-table tbody tr { border-bottom: 1px solid var(--dark-border); transition: background 0.15s; }
.countries-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.countries-table td { padding: 8px 10px; color: var(--text-primary); }
.ct-rank { width: 40px; font-weight: 700; color: var(--gray-500); }
.ct-country { font-weight: 600; }
.ct-flag { margin-right: 6px; }
.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-pct { text-align: right; color: var(--accent); font-weight: 700; }
.ct-bar { width: 120px; }
.ct-bar-track { background: var(--dark-border); border-radius: 3px; height: 6px; overflow: hidden; }
.ct-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.4s ease; }
.ct-bar-geo { background: #ef4444; }

/* ══════════════════════════════════════════════════════
   ADVERTISEMENT PAGE — Redesigned
   ══════════════════════════════════════════════════════ */
.adv { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* ── Hero ── */
.adv-hero {
  text-align: center;
  padding: 48px 24px 40px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(236, 72, 153, 0.06) 100%);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}
.adv-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
  pointer-events: none;
}
.adv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adv-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.2;
}
.adv-hero-title span { color: var(--primary); }
.adv-hero-desc {
  font-size: 14px;
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.adv-hero-counters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.adv-counter {
  padding: 0 24px;
  text-align: center;
}
.adv-counter-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.adv-counter-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}
.adv-counter-sep {
  width: 1px;
  height: 32px;
  background: var(--dark-border);
}

/* ── Section ── */
.adv-section { margin-bottom: 36px; }
.adv-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.adv-section-title i { color: var(--primary); font-size: 18px; }

/* ── Benefits Grid ── */
.adv-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.adv-benefit {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.adv-benefit:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}
.adv-benefit-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 18px;
}
.adv-benefit h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.adv-benefit p {
  font-size: 11px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ── Banner Slot Card ── */
.adv-slot {
  display: flex;
  align-items: stretch;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.adv-slot:hover { border-color: rgba(99, 102, 241, 0.25); }
.adv-slot-premium {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(251, 191, 36, 0.04) 100%);
}
.adv-slot-premium:hover { border-color: rgba(251, 191, 36, 0.5); }

.adv-slot-left {
  flex: 1;
  padding: 20px 24px;
}
.adv-slot-left h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.adv-slot-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.adv-slot-desc {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0 0 12px;
  line-height: 1.5;
}
.adv-slot-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.adv-slot-specs span {
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 5px;
}
.adv-slot-specs i { color: var(--gray-500); font-size: 11px; }

.adv-slot-preview {
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--dark-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-slot-preview span {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.adv-preview-wide { height: 48px; }
.adv-preview-tall { height: 100px; width: 50px; margin: 0; }

.adv-slot-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border-left: 1px solid var(--dark-border);
  min-width: 160px;
  gap: 10px;
  text-align: center;
}
.adv-slot-price { display: flex; align-items: baseline; gap: 3px; }
.adv-price-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.adv-price-cur {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}
.adv-slot-avail {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.adv-avail-free { color: #34d399; }
.adv-avail-taken { color: #ef4444; }
.adv-slot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}
.adv-slot-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.adv-slots-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adv-slot-half { margin-bottom: 0; }
.adv-slot-half .adv-slot-left { padding: 16px 18px; }
.adv-slot-half .adv-slot-right { padding: 16px 20px; min-width: 140px; }
.adv-slot-half .adv-price-val { font-size: 26px; }

/* ── Specials ── */
.adv-specials { display: flex; flex-direction: column; gap: 10px; }
.adv-special {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.adv-special:hover { border-color: rgba(99, 102, 241, 0.25); }
.adv-special-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.adv-special-body { flex: 1; }
.adv-special-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px;
}
.adv-special-body p {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
  line-height: 1.4;
}
.adv-special-price {
  text-align: right;
  flex-shrink: 0;
}
.adv-special-price strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}
.adv-special-price span {
  font-size: 12px;
  color: var(--gray-500);
  margin-left: 2px;
}

/* ── Terms ── */
.adv-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px 24px;
}
.adv-term {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
}
.adv-term i { color: #34d399; margin-top: 3px; flex-shrink: 0; font-size: 12px; }

/* ── CTA ── */
.adv-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 28px;
}
.adv-cta-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.adv-cta-content h2 i { color: var(--primary); }
.adv-cta-content p {
  font-size: 13px;
  color: var(--gray-400);
  margin: 0;
}
.adv-cta-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.adv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
  color: #fff;
}
.adv-cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.adv-cta-email { background: var(--primary); }
.adv-cta-phone { background: #34d399; }
.adv-cta-fb { background: #1877f2; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .adv-hero { padding: 32px 16px; }
  .adv-hero-title { font-size: 22px; }
  .adv-hero-counters { gap: 0; }
  .adv-counter { padding: 0 14px; }
  .adv-counter-num { font-size: 18px; }
  .adv-benefits { grid-template-columns: repeat(2, 1fr); }
  .adv-slot { flex-direction: column; }
  .adv-slot-right { border-left: none; border-top: 1px solid var(--dark-border); flex-direction: row; justify-content: space-between; min-width: auto; }
  .adv-slots-row { grid-template-columns: 1fr; }
  .adv-special { flex-direction: column; text-align: center; gap: 10px; }
  .adv-special-price { text-align: center; }
  .adv-terms { grid-template-columns: 1fr; }
  .adv-cta { flex-direction: column; text-align: center; }
  .adv-cta-buttons { flex-direction: column; width: 100%; }
  .adv-cta-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .adv-benefits { grid-template-columns: 1fr; }
  .adv-hero-counters { flex-direction: column; gap: 16px; }
  .adv-counter-sep { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
  .countries-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-card { padding: 10px; }
  .cs-val { font-size: 16px; }
  .countries-filter-btn { padding: 4px 8px; font-size: 11px; }
  .ad-hero { padding: 24px 16px; }
  .ad-hero h1 { font-size: 18px; }
  .ad-price-amount { font-size: 20px; }
}

/* ================================================================
   Georgia COLUMN — Rating Table (Georgia Percentage)
   ================================================================ */
.col-geo { text-align: center; min-width: 55px; white-space: nowrap; }
.geo-flag { font-size: 16px; }
.flag-icon { width: 18px; height: 13px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.geo-pct { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.geo-pct .flag-icon { width: 14px; height: 10px; vertical-align: -1px; }
.geo-pct.geo-high { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.geo-pct.geo-mid { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.geo-pct.geo-low { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.geo-pct.geo-none { color: var(--gray-500); font-weight: 400; }

/* ================================================================
   DONUT / PIE CHART — Returning vs New Visitors
   ================================================================ */
.pie-chart-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
.donut-chart {
    position: relative;
    width: 160px;
    height: 160px;
}
.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.donut-ring { stroke: var(--gray-700); }
.donut-segment { transition: stroke-dasharray 0.6s ease; }
.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.donut-total { font-size: 22px; font-weight: 700; color: var(--dark); }
.donut-label { font-size: 11px; color: var(--gray-500); }
.pie-legend { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-300);
}
.pie-legend-item strong { margin-left: auto; color: var(--gray-100); }
.pie-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ================================================================
   GEORGIA % DISPLAY — Stat Page
   ================================================================ */
.georgia-pct-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
.geo-big-pct { position: relative; }
.geo-circle {
    position: relative;
    width: 140px;
    height: 140px;
}
.geo-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.geo-svg circle:first-child { stroke: var(--gray-700); }
.geo-center-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
}
.geo-info-text { text-align: center; }
.geo-info-text p { font-size: 13px; color: var(--gray-300); margin: 0 0 4px; }
.geo-info-text small { font-size: 11px; color: var(--gray-500); }

/* Georgia badge in stat hero */
.sh2b-geo {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ================================================================
   COUNTRIES MAP
   ================================================================ */
.countries-map-container {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
}
.world-map-wrap {
    width: 100%;
    height: 280px;
}
.world-map-large { height: 400px; }
.jvectormap-tip {
    background: var(--gray-900) !important;
    color: var(--gray-100) !important;
    border: 1px solid var(--gray-600) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-family: inherit !important;
}

/* "ყველა ქვეყანა →" link in block header */
.stat-block-more {
    font-size: 12px;
    color: var(--blue-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.stat-block-more:hover { color: var(--blue-300); }

/* ================================================================
   AUDIENCE OVERLAP
   ================================================================ */
.stat-overlap-desc {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 12px;
    font-style: italic;
}
.overlap-link {
    color: var(--blue-400);
    text-decoration: none;
    font-weight: 500;
}
.overlap-link:hover { text-decoration: underline; }
.overlap-url {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ================================================================
   COUNTRIES PAGE
   ================================================================ */
.countries-page-header {
    margin-bottom: 20px;
}
.countries-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-100);
    margin: 0 0 6px;
}
.countries-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0;
}

/* Date filter buttons */
.countries-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
}
.countries-filter-label {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}
.countries-filter-btn {
    padding: 5px 12px;
    font-size: 12px;
    color: var(--gray-300);
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.countries-filter-btn:hover { background: var(--gray-600); color: var(--gray-100); }
.countries-filter-btn.active {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-500);
}

/* Summary cards */
.countries-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.cs-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.cs-icon {
    font-size: 20px;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.cs-icon-blue { color: var(--blue-400); }
.cs-icon-green { color: #34d399; }
.cs-icon-red { color: #ef4444; }
.cs-val { font-size: 20px; font-weight: 700; color: var(--gray-100); }
.cs-lbl { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* Countries table */
.countries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.countries-table thead th {
    text-align: left;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--gray-700);
}
.countries-table tbody tr {
    border-bottom: 1px solid var(--gray-800);
    transition: background 0.15s;
}
.countries-table tbody tr:hover { background: var(--gray-800); }
.countries-table td { padding: 8px 10px; color: var(--gray-300); }
.ct-rank { color: var(--gray-500); font-weight: 500; width: 40px; }
.ct-country { font-weight: 500; color: var(--gray-200); }
.ct-flag { font-size: 16px; margin-right: 6px; }
.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-pct { text-align: right; color: var(--gray-400); }
.ct-bar { width: 140px; }
.ct-bar-track { height: 6px; background: var(--gray-700); border-radius: 3px; overflow: hidden; }
.ct-bar-fill { height: 100%; background: var(--blue-500); border-radius: 3px; transition: width 0.4s ease; }
.ct-bar-fill.ct-bar-geo { background: #ef4444; }

/* ================================================================
   ADVERTISEMENT PAGE
   ================================================================ */
.ad-page { max-width: 960px; margin: 0 auto; }

/* Hero */
.ad-hero {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    margin-bottom: 32px;
}
.ad-hero-icon {
    font-size: 40px;
    color: var(--blue-400);
    margin-bottom: 12px;
}
.ad-hero h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-100);
    margin: 0 0 10px;
}
.ad-hero-desc {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.ad-hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.ad-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ad-hero-stat i { font-size: 18px; color: var(--blue-400); }
.ad-hero-stat strong { font-size: 20px; color: var(--gray-100); }
.ad-hero-stat span { font-size: 12px; color: var(--gray-500); }

/* Section titles */
.ad-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-200);
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ad-section-title i { color: var(--blue-400); }

/* Banner slot cards */
.ad-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ad-slot-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ad-slot-card:hover { border-color: var(--gray-600); }
.ad-slot-header {
    padding: 12px 16px;
    background: var(--gray-750, #1e293b);
    border-bottom: 1px solid var(--gray-700);
}
.ad-slot-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-200);
    margin: 0;
}
.ad-slot-header.ad-slot-premium {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
    border-bottom-color: rgba(99, 102, 241, 0.3);
}
.ad-slot-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.ad-slot-body { padding: 16px; }

/* Preview box */
.ad-slot-preview {
    margin-bottom: 14px;
    border: 2px dashed var(--gray-600);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
}
.ad-preview-wide { height: 60px; }
.ad-preview-tall { height: 120px; max-width: 60px; margin: 0 auto 14px; }
.ad-preview-inner {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Slot details */
.ad-slot-details { margin-bottom: 14px; }
.ad-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
    padding: 4px 0;
}
.ad-detail i { width: 14px; text-align: center; color: var(--gray-500); }
.ad-detail strong { margin-left: auto; color: var(--gray-200); }

/* Price */
.ad-slot-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}
.ad-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-400);
}
.ad-price-period {
    font-size: 13px;
    color: var(--gray-500);
}

/* Status */
.ad-slot-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
}
.ad-status-free {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.ad-status-taken {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Text ad cards */
.ad-text-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ad-text-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.ad-text-icon {
    font-size: 28px;
    color: var(--blue-400);
    margin-bottom: 10px;
}
.ad-text-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-200);
    margin: 0 0 8px;
}
.ad-text-card p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 12px;
    line-height: 1.6;
}

/* Conditions */
.ad-conditions {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    padding: 20px;
}
.ad-cond-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-300);
    padding: 6px 0;
}
.ad-cond-item i { color: #10b981; flex-shrink: 0; }

/* Contact */
.ad-contact {
    margin: 32px 0;
}
.ad-contact-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 28px;
}
.ad-contact-icon {
    font-size: 36px;
    color: var(--blue-400);
    flex-shrink: 0;
}
.ad-contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-100);
    margin: 0 0 6px;
}
.ad-contact-info p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 14px;
}
.ad-contact-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ad-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--blue-600);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.ad-contact-btn:hover { background: var(--blue-500); }
.ad-contact-phone { background: #10b981; }
.ad-contact-phone:hover { background: #059669; }
.ad-contact-fb { background: #3b5998; }
.ad-contact-fb:hover { background: #2d4373; }

/* ================================================================
   RESPONSIVE — New Features
   ================================================================ */
@media (max-width: 1100px) {
    .col-avg, .col-monthly, .col-k { display: none; }
    .ranking-table thead th.col-avg,
    .ranking-table thead th.col-monthly,
    .ranking-table thead th.col-k { display: none; }
}
@media (max-width: 768px) {
    /* G:% column hide on mobile */
    .col-geo { display: none; }
    .col-votes { display: none; }
    .ranking-table thead th.col-votes { display: none; }

    /* Pie chart */
    .pie-chart-wrap { flex-direction: column; }
    .donut-chart { width: 130px; height: 130px; }

    /* Countries page */
    .countries-summary { grid-template-columns: repeat(2, 1fr); }
    .world-map-large { height: 250px; }
    .ct-bar { display: none; }

    /* Ad page */
    .ad-slots-grid { grid-template-columns: 1fr; }
    .ad-text-section { grid-template-columns: 1fr; }
    .ad-hero-stats { gap: 16px; }
    .ad-contact-inner { flex-direction: column; text-align: center; }
    .ad-contact-methods { justify-content: center; }
}

@media (max-width: 480px) {
    .countries-summary { grid-template-columns: 1fr 1fr; }
    .countries-filter { gap: 4px; }
    .countries-filter-btn { padding: 4px 8px; font-size: 11px; }
    .countries-page-header h1 { font-size: 17px; }
    .ad-hero h1 { font-size: 20px; }
    .ad-price-amount { font-size: 20px; }
    .world-map-wrap { height: 200px; }
}

/* ── Per-site API Key Box ── */
.db2-api-key-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
}
.db2-api-key-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600, #475569);
    margin-bottom: 8px;
}
.db2-api-key-label i {
    color: var(--primary, #6366f1);
    margin-right: 6px;
}
.db2-api-key-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.db2-api-key-input {
    flex: 1;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 8px;
    background: #fff;
    color: var(--dark, #1e293b);
    letter-spacing: 0.5px;
    cursor: text;
    user-select: all;
}
.db2-api-key-input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.db2-btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300, #cbd5e1);
    color: var(--gray-600, #475569);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.db2-btn-outline:hover {
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    color: #fff;
}
@media (max-width: 480px) {
    .db2-api-key-row { flex-direction: column; }
    .db2-api-key-input { font-size: 11px; }
}

/* ── API Documentation Page ── */
.db2-api-site-block {
    padding: 14px 16px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    margin-bottom: 12px;
}
.db2-api-site-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}
.db2-api-site-header i {
    color: var(--primary, #6366f1);
}
.db2-api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    font-family: 'Fira Code', 'Courier New', monospace;
}
.db2-api-method {
    display: inline-block;
    padding: 4px 12px;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.db2-api-url {
    font-size: 14px;
    color: var(--dark, #1e293b);
    word-break: break-all;
}
.db2-api-table-wrap {
    overflow-x: auto;
}
.db2-api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.db2-api-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--gray-50, #f8fafc);
    border-bottom: 2px solid var(--gray-200, #e2e8f0);
    font-weight: 600;
    color: var(--gray-600, #475569);
    white-space: nowrap;
}
.db2-api-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    vertical-align: top;
}
.db2-api-table td code {
    background: var(--gray-100, #f1f5f9);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--primary, #6366f1);
    font-weight: 600;
}
.db2-badge-req {
    display: inline-block;
    padding: 2px 8px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.db2-badge-opt {
    display: inline-block;
    padding: 2px 8px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.db2-badge-ok {
    display: inline-block;
    padding: 2px 10px;
    background: #10b981;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.db2-badge-err {
    display: inline-block;
    padding: 2px 10px;
    background: #ef4444;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.db2-api-notes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.db2-api-notes li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    font-size: 14px;
    color: var(--gray-700, #334155);
    display: flex;
    align-items: center;
    gap: 10px;
}
.db2-api-notes li:last-child {
    border-bottom: none;
}
.db2-api-notes li i {
    color: var(--primary, #6366f1);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .db2-api-endpoint { flex-direction: column; align-items: flex-start; gap: 8px; }
    .db2-api-table { font-size: 12px; }
    .db2-api-table th, .db2-api-table td { padding: 8px 10px; }
}

/* ── API Section Divider ── */
.db2-api-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 16px;
    color: var(--gray-400, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.db2-api-divider::before,
.db2-api-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200, #e2e8f0);
}
.db2-api-method-get {
    background: #3b82f6;
}

/* ── Site Alert Banner (no counter/no visitors) ── */
.db2-site-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 0;
    line-height: 1.5;
}
.db2-site-alert i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.db2-site-alert strong {
    display: block;
    color: #78350f;
    margin-bottom: 2px;
}
.db2-site-alert a {
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}
.db2-site-alert a:hover {
    color: #78350f;
}

/* Strike warning (orange) */
.db2-site-alert.db2-site-alert-warning {
    background: #fff7ed;
    border-color: #fb923c;
    color: #9a3412;
}
.db2-site-alert.db2-site-alert-warning i { color: #f97316; }
.db2-site-alert.db2-site-alert-warning strong { color: #7c2d12; }
.db2-site-alert.db2-site-alert-warning a { color: #c2410c; }
.db2-site-alert.db2-site-alert-warning a:hover { color: #7c2d12; }

/* Block danger (red) */
.db2-site-alert.db2-site-alert-danger {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}
.db2-site-alert.db2-site-alert-danger i { color: #ef4444; }
.db2-site-alert.db2-site-alert-danger strong { color: #7f1d1d; }
.db2-site-alert.db2-site-alert-danger a { color: #b91c1c; }
.db2-site-alert.db2-site-alert-danger a:hover { color: #7f1d1d; }

/* ===== Forum Category Page v3 ===== */

/* Hero Header */
.fc-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    min-height: 120px;
}
.fc-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.fc-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    z-index: 1;
}
.fc-hero-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    font-size: 28px;
    color: #fff;
    backdrop-filter: blur(8px);
}
.fc-hero-info {
    flex: 1;
    min-width: 0;
}
.fc-hero-info h1 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 4px;
    font-weight: 700;
}
.fc-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.4;
}
.fc-hero-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.fc-hero-stats i {
    margin-right: 4px;
}

/* New Topic Button */
.fc-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.fc-btn-new:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: #fff;
}
.fc-btn-new-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: var(--transition);
}
.fc-btn-new-sm:hover {
    background: var(--accent);
    color: #fff;
}

/* Topic List */
.fc-topics {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Topic Row */
.fc-topic {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}
.fc-topic:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(59,130,246,0.08);
    transform: translateX(2px);
}
.fc-pinned {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
    border-color: rgba(59,130,246,0.25);
}
.fc-locked {
    opacity: 0.7;
}

/* Topic Badge/Icon */
.fc-t-icon {
    flex-shrink: 0;
}
.fc-t-badge {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 15px;
}
.fc-badge-pin {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}
.fc-badge-lock {
    background: var(--gray-200);
    color: var(--gray-500);
}
.fc-badge-site {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.fc-badge-msg {
    background: var(--gray-100);
    color: var(--gray-400);
}

/* Topic Info */
.fc-t-info {
    flex: 1;
    min-width: 0;
}
.fc-t-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}
.fc-t-title:hover {
    color: var(--primary);
}
.fc-t-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11.5px;
    color: var(--gray-400);
}
.fc-t-meta i {
    margin-right: 3px;
    font-size: 10px;
}
.fc-t-author { color: var(--primary); font-weight: 500; }
.fc-t-site {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Topic Numbers (votes + counters) */
.fc-t-nums {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.fc-t-votes {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-400);
    padding: 4px 10px;
    background: var(--gray-50, #f9fafb);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.fc-t-votes i { font-size: 11px; }
.fc-t-votes .fc-sep { color: var(--gray-300); margin: 0 1px; }
.fc-vp { color: #10b981; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.06); }
.fc-vn { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }

.fc-t-counters {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-400);
}
.fc-t-counters i {
    margin-right: 3px;
    font-size: 10px;
}

/* Pagination */
.fc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 16px 0;
}
.fc-pg-dots {
    color: var(--gray-400);
    font-size: 14px;
    padding: 0 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .fc-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .fc-hero-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 12px;
    }
    .fc-hero-info h1 { font-size: 18px; }
    .fc-hero-stats { justify-content: center; }
    .fc-btn-new { width: 100%; justify-content: center; }

    .fc-topic {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px;
    }
    .fc-t-info {
        flex: 1 1 calc(100% - 52px);
        min-width: 0;
    }
    .fc-t-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .fc-t-nums {
        width: 100%;
        justify-content: flex-start;
        padding-top: 6px;
        border-top: 1px solid var(--border-color);
    }
    .fc-t-meta { gap: 8px; }
}

/* Sidebar mini row icon variant */
.f2-tm-rank-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    background: var(--gray-100);
    color: var(--gray-400);
}
.f2-tm-row:hover .f2-tm-rank-icon {
    background: rgba(59,130,246,0.1);
    color: var(--primary);
}

/* ═══ Site Warning Badge (Rating page) ═══ */
.site-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    animation: warningPulse 2s ease-in-out infinite;
}
.site-warning-badge i {
    color: #f59e0b;
    font-size: 10px;
}
@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ═══ Penalty Badges (Strike & Block) ═══ */
.site-penalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    animation: warningPulse 2s ease-in-out infinite;
}
.site-penalty-badge.penalty-blocked {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}
.site-penalty-badge.penalty-blocked i {
    color: #ef4444;
    font-size: 10px;
}
.site-penalty-badge.penalty-strike {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    color: #9a3412;
    border: 1px solid #f97316;
}
.site-penalty-badge.penalty-strike i {
    color: #f97316;
    font-size: 10px;
}
.site-penalty-badge.penalty-warning {
    background: linear-gradient(135deg, #fefce8, #fef08a);
    color: #854d0e;
    border: 1px solid #eab308;
}
.site-penalty-badge.penalty-warning i {
    color: #eab308;
    font-size: 10px;
}

/* ═══ Forum Topic Warning Box ═══ */
.ft-warning-box {
    margin-top: 12px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 16px;
    animation: warningPulse 3s ease-in-out infinite;
}
.ft-warning-header {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ft-warning-header i {
    color: #ef4444;
}
.ft-warning-item {
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-left: 3px solid #ef4444;
}
.ft-warning-item:last-child {
    margin-bottom: 0;
}
.ft-warning-reason {
    color: #1e293b;
    font-size: 13px;
    line-height: 1.5;
}
.ft-warning-meta {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #64748b;
}
.ft-warning-meta i {
    margin-right: 3px;
}

/* ═══ Admin Badge for danger in sidebar ═══ */
.adm-badge-danger {
    background: #ef4444 !important;
    color: #fff !important;
}
