/**
 * Turkmmo Forum Clone - Premium Styling & Visual Design System
 * Inspired by XenForo modern gaming themes, featuring dark/light modes,
 * customized rank styling, animations, responsive grids, and clean variables.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Dynamic Theme Variables */
:root[theme="dark"] {
  --bg-main: #0a0d16;
  --bg-card: #121824;
  --bg-card-hover: #171f2f;
  --bg-card-header: #192235;
  --border-color: #1e293b;
  --border-color-light: #2d3748;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #e67e22;       /* Turkmmo orange */
  --accent-hover: #d35400;
  --gold-glowing: #f1c40f;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --header-bg: #0d121f;
  --sub-nav-bg: #141c2d;
  --sidebar-widget-bg: rgba(18, 24, 36, 0.8);
  --modal-bg: rgba(10, 13, 22, 0.95);
  --input-bg: #192030;
  --input-border: #2d3748;
  --btn-secondary-bg: #1e293b;
  
  /* Rank Colors */
  --rank-admin-color: #ef4444;
  --rank-admin-bg: rgba(239, 68, 68, 0.1);
  --rank-coadmin-color: #f97316;
  --rank-coadmin-bg: rgba(249, 115, 22, 0.1);
  --rank-vip-color: #eab308;
  --rank-vip-bg: rgba(234, 179, 8, 0.1);
  --rank-expert-color: #3b82f6;
  --rank-expert-bg: rgba(59, 130, 246, 0.1);
  --rank-new-color: #10b981;
  --rank-new-bg: rgba(16, 185, 129, 0.1);
}

:root[theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-header: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-light: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-color: #e67e22;
  --accent-hover: #d35400;
  --gold-glowing: #f39c12;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --header-bg: #111827; /* Headers keep their signature dark gaming feel */
  --sub-nav-bg: #1f2937;
  --sidebar-widget-bg: rgba(255, 255, 255, 0.9);
  --modal-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --btn-secondary-bg: #e2e8f0;

  /* Rank Colors */
  --rank-admin-color: #dc2626;
  --rank-admin-bg: rgba(220, 38, 38, 0.08);
  --rank-coadmin-color: #ea580c;
  --rank-coadmin-bg: rgba(234, 88, 12, 0.08);
  --rank-vip-color: #ca8a04;
  --rank-vip-bg: rgba(202, 138, 4, 0.08);
  --rank-expert-color: #2563eb;
  --rank-expert-bg: rgba(37, 99, 235, 0.08);
  --rank-new-color: #059669;
  --rank-new-bg: rgba(5, 150, 105, 0.08);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Header Container */
header {
  background-color: var(--header-bg);
  border-bottom: 2px solid var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sleek Gaming Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

.logo i {
  color: var(--accent-color);
  filter: drop-shadow(0 0 4px rgba(230, 126, 34, 0.5));
}

/* Top Navbar */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #d1d5db;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links li.active a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-links li.active a {
  border-bottom: 2px solid var(--accent-color);
  border-radius: 4px 4px 0 0;
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Dynamic theme switch toggler */
.theme-toggle {
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--accent-color);
  transform: rotate(15deg);
}

/* Custom Search Input */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px 6px 36px;
  color: #fff;
  font-size: 14px;
  width: 180px;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  width: 250px;
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.2);
}

.search-box i {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}

/* User Account Section */
.user-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.avatar-container {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  overflow: hidden;
  background-color: var(--bg-card);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.username {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.user-rank-header {
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 500;
}

/* Sub Navigation Bar */
.sub-nav {
  background-color: var(--sub-nav-bg);
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sub-nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-links {
  display: flex;
  list-style: none;
  gap: 15px;
}

.sub-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.sub-links a:hover {
  color: var(--accent-color);
}

.sub-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.announcement-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gold-glowing);
}

/* Main Layout Wrapper */
.main-wrapper {
  max-width: 1300px;
  margin: 25px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
}

/* Billboard Server Ads Grid */
.billboard-container {
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 5px;
  box-shadow: var(--card-shadow);
}

.billboard-title {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.billboard-title i {
  animation: pulse-glow 1.5s infinite;
}

.server-ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.server-ad-card {
  position: relative;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.server-ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.server-ad-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}

.server-ad-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.25);
}

.server-ad-card:hover img {
  transform: scale(1.08);
}

.ad-info {
  position: relative;
  z-index: 2;
  color: #fff;
}

.ad-server-name {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ad-server-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.ad-server-type {
  font-size: 11px;
  color: #cbd5e1;
}

.ad-server-status {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  color: #fff;
}

/* Forum Category Wrapper */
.forum-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.forum-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.category-header {
  background-color: var(--bg-card-header);
  border-bottom: 2px solid var(--border-color);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.category-title i {
  color: var(--accent-color);
  font-size: 18px;
}

.category-desc {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Subforums List */
.subforums-list {
  display: flex;
  flex-direction: column;
}

.subforum-row {
  display: grid;
  grid-template-columns: 45px 1fr 100px 100px 220px;
  padding: 15px 18px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.subforum-row:last-child {
  border-bottom: none;
}

.subforum-row:hover {
  background-color: var(--bg-card-hover);
}

.subforum-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-color);
  opacity: 0.7;
}

.subforum-row:hover .subforum-icon {
  opacity: 1;
  transform: scale(1.1);
}

.subforum-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subforum-title {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.subforum-title:hover {
  color: var(--accent-color);
}

.subforum-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.subforum-stats {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stats-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.stats-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Subforum Latest Post Box */
.subforum-last-post {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.last-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-main);
  flex-shrink: 0;
}

.last-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.last-post-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.last-post-title {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.last-post-title:hover {
  color: var(--accent-color);
}

.last-post-author {
  font-size: 11px;
}

.last-post-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* Sidebar Widgets Layout */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--sidebar-widget-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.widget-header {
  background-color: var(--bg-card-header);
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.widget-content {
  padding: 15px;
}

/* Stats list widget */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.stats-item .label {
  color: var(--text-secondary);
}

.stats-item .val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Recent activity list */
.recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
}

.activity-icon {
  color: var(--accent-color);
  margin-top: 3px;
}

.activity-text {
  display: flex;
  flex-direction: column;
}

.activity-link {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.activity-link:hover {
  color: var(--accent-color);
}

.activity-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Custom badges */
.rank-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.rank-admin { color: var(--rank-admin-color); background-color: var(--rank-admin-bg); border: 1px solid var(--rank-admin-color); }
.rank-coadmin { color: var(--rank-coadmin-color); background-color: var(--rank-coadmin-bg); border: 1px solid var(--rank-coadmin-color); }
.rank-vip { color: var(--rank-vip-color); background-color: var(--rank-vip-bg); border: 1px solid var(--rank-vip-color); text-shadow: 0 0 4px rgba(234, 179, 8, 0.4); animation: text-glow 2s infinite alternate; }
.rank-expert { color: var(--rank-expert-color); background-color: var(--rank-expert-bg); border: 1px solid var(--rank-expert-color); }
.rank-new { color: var(--rank-new-color); background-color: var(--rank-new-bg); border: 1px solid var(--rank-new-color); }

/* === NEW RANK CLASSES === */
.rank-active {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid #3b82f6;
}
.rank-experienced {
  color: #8b5cf6;
  background-color: rgba(139, 92, 246, 0.12);
  border: 1px solid #8b5cf6;
}
.rank-master {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  animation: text-glow-red 2s infinite alternate;
}
.rank-legend {
  color: #e67e22;
  background-color: rgba(230, 126, 34, 0.15);
  border: 1px solid #e67e22;
  text-shadow: 0 0 8px rgba(230, 126, 34, 0.6);
  animation: text-glow 1.5s infinite alternate;
}

@keyframes text-glow-red {
  from { text-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  to   { text-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
}

/* =============================================
   PROFILE PAGE — Hero + Rank Progress + Tabs
   ============================================= */

/* Hero Banner */
.profile-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d121f 0%, #1a2540 50%, #0a0d16 100%);
  z-index: 0;
}

.profile-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(230, 126, 34, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.profile-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 30px;
  flex-wrap: wrap;
}

.profile-hero-avatar {
  position: relative;
  flex-shrink: 0;
}

.profile-hero-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
  display: block;
}

.profile-hero-rank-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  border: 2px solid var(--bg-main);
}

.profile-hero-info {
  flex: 1;
  min-width: 180px;
}

.profile-hero-name {
  font-size: 26px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.profile-hero-sig {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
  max-width: 350px;
}

.profile-hero-quick-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 18px;
  min-width: 80px;
  text-align: center;
}

.hero-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* Rank Progress Section */
.profile-rank-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.rank-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-progress-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-progress-info {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-progress-bar-wrap {
  background: var(--bg-main);
  border-radius: 20px;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.rank-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e67e22, #f39c12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 30px;
  position: relative;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
}

.rank-progress-percent {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Rank Tier Ladder */
.rank-tier-ladder {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.rank-tier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex: 1;
  min-width: 80px;
  text-align: center;
  transition: all 0.2s ease;
}

.rank-tier-item.locked {
  opacity: 0.35;
  background: var(--bg-main);
  filter: grayscale(1);
}

.rank-tier-item.unlocked {
  background: var(--bg-card-hover);
  border-color: rgba(230, 126, 34, 0.2);
}

.rank-tier-item.current {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(230, 126, 34, 0.05));
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(230, 126, 34, 0.2);
}

.rank-tier-item i {
  font-size: 18px;
  color: var(--accent-color);
}

.rank-tier-item.locked i {
  color: var(--text-muted);
}

.tier-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.tier-req {
  font-size: 9px;
  color: var(--text-muted);
}

/* Profile Activity Tabs */
.profile-tabs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.profile-tab-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-card-header);
}

.profile-tab-btn {
  padding: 14px 22px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.profile-tab-btn:hover {
  color: var(--accent-color);
  background: rgba(230, 126, 34, 0.05);
}

.profile-tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.profile-tab-content {
  padding: 15px;
  flex-direction: column;
  gap: 2px;
}

.profile-tab-content.active {
  display: flex;
}

/* Activity rows inside tabs */
.profile-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-color);
}

.profile-activity-row:last-child {
  border-bottom: none;
}

.profile-activity-row:hover {
  background: var(--bg-card-hover);
}

.profile-act-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}

.profile-act-title:hover {
  color: var(--accent-color);
}

.profile-act-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.profile-act-comment {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0;
  font-style: italic;
}

.profile-act-likes {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-act-likes i {
  color: var(--accent-color);
}

/* Empty state */
.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 10px;
}

.profile-empty-state i {
  font-size: 36px;
  opacity: 0.4;
}

.profile-empty-state p {
  font-size: 13px;
}


/* Category Threads Page Listing */
.subforum-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.subforum-path {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.subforum-path a:hover {
  color: var(--accent-color);
}

.threads-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thread-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 45px 1fr 80px 80px 180px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.thread-row:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-color);
}

.thread-row.pinned {
  border-left: 4px solid var(--accent-color);
  background-color: rgba(230, 126, 34, 0.03);
}

.thread-status-icon {
  font-size: 18px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
}

.thread-main-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thread-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.thread-title:hover {
  color: var(--accent-color);
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

.badge-pinned {
  background-color: var(--accent-color);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Post View Page Layout (XenForo Thread) */
.thread-view-header {
  margin-bottom: 20px;
}

.thread-view-title {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 220px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.post-card.pinned-op {
  border-top: 3px solid var(--accent-color);
}

.post-sidebar {
  background-color: var(--bg-card-header);
  border-right: 1px solid var(--border-color);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.post-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  overflow: hidden;
  margin-bottom: 12px;
  background-color: var(--bg-main);
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-name {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  word-break: break-all;
}

.post-user-details {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
}

.post-content-container {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-header {
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.post-body {
  font-size: 14.5px;
  color: var(--text-primary);
  flex-grow: 1;
}

.post-body p {
  margin-bottom: 12px;
}

.post-body code {
  background-color: var(--bg-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.post-body pre {
  background-color: var(--bg-main);
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid var(--border-color);
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-signature {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 25px;
  font-style: italic;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 15px;
}

.post-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-btn:hover {
  color: var(--accent-color);
}

.post-btn.liked {
  color: var(--accent-color);
  font-weight: 700;
}

/* Quick Comment Editor Area */
.quick-reply-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: var(--card-shadow);
}

.reply-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-editor-toolbar {
  background-color: var(--bg-card-header);
  border: 1px solid var(--input-border);
  border-bottom: none;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  display: flex;
  gap: 12px;
}

.toolbar-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
}

.toolbar-btn:hover {
  background-color: var(--border-color);
  color: var(--accent-color);
}

.reply-textarea {
  width: 100%;
  min-height: 150px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0 0 6px 6px;
  padding: 15px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}

.reply-textarea:focus {
  border-color: var(--accent-color);
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* Create Thread Form Page */
.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input-text {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 10px 15px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.form-input-text:focus {
  border-color: var(--accent-color);
}

/* User Profile Page Layout */
.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 25px;
}

.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 25px;
}

.profile-banner::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
}

.profile-header-info {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  margin-bottom: -50px;
}

.profile-large-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  overflow: hidden;
  background-color: var(--bg-card);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-large-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name-area {
  display: flex;
  flex-direction: column;
}

.profile-name-area h2 {
  font-size: 24px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.profile-stats-bar {
  display: flex;
  gap: 25px;
  background-color: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 25px 15px 155px; /* Offset to fit hanging avatar */
}

.profile-stat-box {
  display: flex;
  flex-direction: column;
}

.profile-stat-box .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-box .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-body-content {
  padding: 25px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.info-card {
  background-color: var(--bg-card-header);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
}

.info-card h3 {
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.info-card p {
  font-size: 14px;
  color: var(--text-primary);
}

/* Portal Market Layout */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.market-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.market-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.15);
}

.market-pkg-title {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.market-duration {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.market-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.market-features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-features-list li i {
  color: var(--rank-new-color);
}

/* Dynamic Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 420px;
  max-width: 90%;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--bg-card-header);
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

/* Footer Section */
footer {
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  padding: 25px 20px;
  margin-top: 50px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Responsive Styling rules */
@media (max-width: 992px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    padding: 0 15px;
    margin: 15px auto;
  }
  .server-ads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subforum-row {
    grid-template-columns: 45px 1fr 180px;
  }
  .subforum-row .subforum-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Header layout optimization */
  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
  
  /* Horizontal scrolling navigation menu for swipeability */
  .nav-links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    scrollbar-width: none; /* Firefox */
  }
  .nav-links::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  .nav-links li {
    flex-shrink: 0;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 13.5px;
  }
  
  .header-actions {
    order: 2;
    gap: 10px;
  }
  
  .search-box input {
    width: 110px;
    padding: 5px 10px 5px 30px;
    font-size: 13px;
  }
  .search-box input:focus {
    width: 140px;
  }
  .search-box i {
    left: 10px;
    font-size: 12px;
  }

  /* Sub Navigation mobile scroll support */
  .sub-nav {
    padding: 6px 15px;
  }
  .sub-nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sub-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .sub-links::-webkit-scrollbar {
    display: none;
  }
  .sub-links li {
    flex-shrink: 0;
  }
  .announcement-ticker {
    width: 100%;
    font-size: 11px;
    white-space: normal;
  }

  /* Thread View Post Layout stacks vertically */
  .post-card {
    grid-template-columns: 100% !important;
    min-height: auto;
  }
  .post-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 15px;
    flex-wrap: wrap;
    background-color: var(--bg-card-header);
  }
  .post-avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }
  .post-author-name {
    font-size: 14px;
  }
  .user-rank {
    font-size: 10px;
    padding: 2px 8px;
  }
  .post-user-details {
    display: none;
  }
  .post-content-container {
    padding: 15px;
  }
  .post-body {
    font-size: 13.5px;
  }
  .post-signature {
    margin-top: 15px;
  }

  /* User Profile Mobile Alignment */
  .profile-banner {
    height: 140px;
    justify-content: center;
    align-items: center;
    padding: 15px;
  }
  .profile-header-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: -70px;
    width: 100%;
    gap: 10px;
  }
  .profile-large-avatar {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }
  .profile-name-area h2 {
    font-size: 20px;
  }
  .profile-stats-bar {
    padding: 80px 15px 15px 15px;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  .profile-stat-box {
    align-items: center;
    flex: 1;
    min-width: 70px;
  }
  .profile-stat-box .num {
    font-size: 16px;
  }
  .profile-body-content {
    padding: 15px;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Market Grid layout stacks on mobile */
  .market-grid {
    grid-template-columns: 100%;
  }

  /* Admin Control Panel Layout Stacks */
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 10px;
    gap: 8px;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }
  .admin-sidebar-header {
    display: none;
  }
  .admin-tab-btn {
    width: auto;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 4px;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13px;
  }
  .admin-tab-btn.active {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
  }
  .admin-content {
    padding: 15px;
  }
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Threads List responsive layout logic */
  .thread-row {
    grid-template-columns: 35px 1fr 60px;
    padding: 10px 12px;
  }
  .thread-row .subforum-stats:nth-of-type(2),
  .thread-row .subforum-last-post {
    display: none;
  }
  .thread-row .subforum-stats:nth-of-type(1) {
    grid-column: 3;
    text-align: right;
  }
}

@media (max-width: 576px) {
  /* Server Ads Grid optimization */
  .server-ads-grid {
    grid-template-columns: 1fr;
  }
  .server-ad-card {
    height: 75px;
  }
  
  /* Subforum Row layout logic */
  .subforum-row {
    grid-template-columns: 35px 1fr;
    padding: 10px;
    gap: 8px;
  }
  .subforum-row .subforum-stats,
  .subforum-row .subforum-last-post {
    display: none;
  }
  .subforum-row .subforum-icon {
    font-size: 16px;
    width: auto;
  }
  .subforum-row .subforum-title {
    font-size: 14px;
  }
  .subforum-row .subforum-desc {
    font-size: 11px;
  }
  
  /* Header items scale down */
  .logo {
    font-size: 20px;
  }
  
  /* Admin panel sub grids */
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-group[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Footer container centers */
  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Animations */
@keyframes text-glow {
  from { text-shadow: 0 0 2px rgba(234, 179, 8, 0.4); }
  to { text-shadow: 0 0 10px rgba(234, 179, 8, 0.8), 0 0 14px rgba(234, 179, 8, 0.4); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(230,126,34,0.4)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(230,126,34,0.8)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(230,126,34,0.4)); }
}

/* Admin Panel Dashboard Styles */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 25px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  min-height: 500px;
}

.admin-sidebar {
  background-color: var(--bg-card-header);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 0 20px 15px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 15px;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background-color: var(--bg-card-hover);
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.admin-content {
  padding: 25px;
}

.admin-tab-view {
  display: none;
}

.admin-tab-view.active {
  display: block;
}

/* Metric Cards Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.metric-card {
  background-color: var(--bg-card-header);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Data Tables */
.admin-table-container {
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-card-header);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: var(--bg-card-hover);
}

/* Admin Actions Buttons */
.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.btn-sm-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-sm-danger:hover {
  background-color: #ef4444;
  color: #fff;
}

.btn-sm-edit {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.btn-sm-edit:hover {
  background-color: #3b82f6;
  color: #fff;
}

/* Select element styled for table cells */
.admin-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  outline: none;
}

/* Modal styles overrides or expansions for admin edit */
.admin-badge-preview {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

/* Flanking Skyscraper Sticky Ads - FULL HEIGHT */
.skyscraper-flank-wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.flank-ad {
  position: fixed;
  top: 0;
  width: calc(50% - 650px);
  height: 100vh;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  transition: opacity 0.25s ease;
}

.flank-ad:hover {
  opacity: 0.95;
}

.flank-ad.left-flank {
  left: 0;
}

.flank-ad.right-flank {
  right: 0;
}

.flank-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flank-ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  background: linear-gradient(180deg, #0d121f 0%, #1a2540 50%, #0d121f 100%);
  color: #fff;
}

.flank-ad-placeholder i {
  font-size: 32px;
  color: var(--accent-color);
  margin-bottom: 12px;
  animation: pulse-glow 1.5s infinite;
}

.flank-ad-title {
  font-size: 13px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.flank-ad-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.flank-ad-btn {
  background-color: var(--accent-color);
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
  border: none;
  width: 100%;
  cursor: pointer;
}

.flank-ad-btn:hover {
  background-color: var(--accent-hover);
}

/* Hide flank banners on smaller viewports */
@media (max-width: 1800px) {
  .flank-ad {
    display: none !important;
  }
}


/* =============================================
   PROFILE EDIT SECTION STYLES
   ============================================= */

.profile-hero-bio {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
  max-width: 380px;
}

.profile-hero-bio-empty {
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.profile-hero-bio-empty:hover {
  opacity: 1;
  color: var(--accent-color);
}

.profile-avatar-edit-btn {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7) !important;
  transition: all 0.2s ease;
}

.profile-avatar-edit-btn:hover {
  background: var(--accent-color) !important;
  transform: scale(1.1);
}

/* Edit Section Container */
.edit-section {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.edit-section-title {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Avatar edit preview row */
.edit-avatar-preview-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.edit-avatar-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(230, 126, 34, 0.3);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

/* Preset Avatar Grid */
.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.avatar-preset-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.avatar-preset-item:hover {
  border-color: var(--accent-color);
  background: rgba(230, 126, 34, 0.08);
  transform: translateY(-2px);
}

.avatar-preset-item.selected {
  border-color: var(--accent-color);
  background: rgba(230, 126, 34, 0.15);
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.25);
}

.avatar-preset-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
}

.avatar-preset-item span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Responsive edit grid */
@media (max-width: 600px) {
  .avatar-presets-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .edit-avatar-preview-row {
    flex-direction: column;
    align-items: center;
  }

  .profile-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero-quick-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* =============================================
   POST EDIT / DELETE BUTTONS
   ============================================= */

/* Small icon buttons in post-header */
.post-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

/* Show on hover of the post-card */
.post-card:hover .post-action-btn {
  opacity: 1;
  pointer-events: auto;
}

.post-action-btn.edit-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.post-action-btn.edit-btn:hover {
  background: #3b82f6;
  color: #fff;
  transform: scale(1.1);
}

.post-action-btn.delete-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.post-action-btn.delete-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

/* "Düzenlendi" badge */
.edited-badge {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Inline editor area inside a post */
.post-inline-editor {
  padding: 12px 0;
  border-top: 1px dashed var(--border-color);
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Make author name in post sidebar a link */
a.post-author-name {
  color: var(--text-primary);
  transition: color 0.15s;
}

a.post-author-name:hover {
  color: var(--accent-color);
}

/* =============================================
   FILE UPLOAD BUTTON
   ============================================= */

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(230,126,34,0.15), rgba(230,126,34,0.08));
  border: 1px solid rgba(230, 126, 34, 0.4);
  border-radius: 6px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.file-upload-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
  transform: translateY(-1px);
}

.file-upload-name {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* Live pulse indicator */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


