/* ==========================================================================
   FORUM ANINDA TASARIM - MASTER DESIGN SYSTEM
   GECE / GUNDUZ MODU (DARK / LIGHT THEME) + R10 WEBMASTER ALTYAPISI
   ========================================================================== */

:root {
  /* Renk Paleti - GUNDUZ (LIGHT) */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-dark: #991b1b;
  --primary-light: #fef2f2;
  --primary-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-header: #ffffff;
  --bg-input: #f8fafc;
  --bg-subnav: #ffffff;
  --bg-topbar: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --table-header: #f8fafc;
  --table-row-hover: #fffafb;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --quote-bg: #f8fafc;
  --code-bg: #1e293b;
}

[data-theme="dark"] {
  /* Renk Paleti - GECE (DARK) */
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: rgba(239, 68, 68, 0.15);
  --primary-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  
  --bg-body: #0b0f19;
  --bg-card: #151d30;
  --bg-card-header: #1a233a;
  --bg-input: #1e293b;
  --bg-subnav: #111827;
  --bg-topbar: #080c14;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --border-color: #232e47;
  --border-light: #1e293b;
  --table-header: #1a233a;
  --table-row-hover: #1e293b;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --quote-bg: #111827;
  --code-bg: #080c14;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 13.5px;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

/* TOP ANNOUNCEMENT BAR */
.top-notice-bar {
  background: var(--bg-topbar);
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
}

.top-notice-bar a {
  color: #ffffff;
}

.top-notice-bar a:hover {
  color: var(--primary);
}

/* MAIN HEADER */
.main-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
  background: var(--primary-gradient);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.badge-red {
  background: var(--primary);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* SEARCH BOX */
.header-search {
  flex-grow: 1;
  max-width: 440px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.header-search input:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* SUBNAV BAR (R10 STYLE) */
.subnav-bar {
  background: var(--bg-subnav);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}

.subnav-links li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.subnav-links li a:hover, .subnav-links li a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

/* BUTTONS */
.btn-red {
  background: var(--primary-gradient);
  color: white !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
  font-size: 13px;
}

.btn-red:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.35);
}

.btn-outline-red {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.btn-outline-red:hover {
  background: var(--primary);
  color: white !important;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* CARDS */
.r10-card, .forum-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.r10-card-header, .forum-card-header {
  background: var(--bg-card-header);
  padding: 12px 18px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.r10-card-header h2, .r10-card-header h3, .forum-card-header h2, .forum-card-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.r10-card-header h2 i, .r10-card-header h3 i, .forum-card-header h2 i, .forum-card-header h3 i {
  color: var(--primary);
}

.r10-card-body, .forum-card-body {
  padding: 16px 18px;
}

/* CATEGORY ROWS (FIXED BULLETPROOF FLEX LAYOUT) */
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s;
}

.category-row:last-child {
  border-bottom: none;
}

.category-row:hover {
  background-color: var(--table-row-hover);
}

.cat-left-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.cat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cat-details {
  flex: 1;
  min-width: 0;
}

.cat-details h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--text-main);
}

.cat-details p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.cat-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.cat-stat-num {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
}

/* TOPIC ROW */
.topic-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s;
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-row:hover {
  background-color: var(--table-row-hover);
}

.topic-row.pinned {
  border-left: 3px solid var(--primary);
  background-color: var(--primary-light);
}

.topic-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.topic-content {
  flex: 1;
  min-width: 0;
}

.topic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.topic-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-price {
  background: #16a34a;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.topic-stats {
  display: flex;
  gap: 16px;
  margin: 0 16px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* BADGES & RANKS */
.badge-tag {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rank-admin { background: var(--primary-gradient); color: white; }
.rank-mod { background: #0d9488; color: white; }
.rank-corporate { background: #1e3a8a; color: #bfdbfe; border: 1px solid #3b82f6; }
.rank-platinum { background: linear-gradient(135deg, #475569, #0f172a); color: #f1f5f9; border: 1px solid #94a3b8; }
.rank-gold { background: #d97706; color: white; }
.rank-silver { background: #64748b; color: white; }
.rank-verified { background: #0284c7; color: white; }
.rank-standard { background: var(--border-color); color: var(--text-main); }

/* TRADE BADGE */
.badge-trade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.trade-high { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.trade-mid { background: #fef9c3; color: #a16207; }
.trade-low { background: #fee2e2; color: #b91c1c; }
.trade-none { background: var(--border-color); color: var(--text-muted); }

/* R10 TABLES */
.r10-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
}

.r10-table th {
  background: var(--table-header);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  text-transform: uppercase;
}

.r10-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

.r10-table tr:hover td {
  background: var(--table-row-hover);
}

/* PROFILE PAGE LAYOUT */
.profile-container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
}

.profile-avatar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.avatar-wrapper img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  padding: 2px;
  background: var(--bg-card);
}

.online-pulse {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.kunye-table {
  width: 100%;
  font-size: 12px;
  margin-top: 14px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.kunye-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
}

.kunye-label { color: var(--text-muted); }
.kunye-val { font-weight: 700; color: var(--text-main); }

/* UZMANLIK SKILL BARS */
.skill-box { margin-bottom: 10px; }
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.skill-bar-outer {
  background: var(--border-color);
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-inner {
  background: var(--primary-gradient);
  height: 100%;
  border-radius: 4px;
}

/* PROFILE TABS */
.profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--primary);
  background: var(--bg-card);
  padding: 10px 16px 0 16px;
  border-radius: 10px 10px 0 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.profile-tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.profile-tab-btn:hover { color: var(--primary); }
.profile-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px 6px 0 0;
}

.trade-scorecard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.scorecard-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.scorecard-num {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.scorecard-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* LIVE STATS BAR */
.live-stats-bar {
  background: var(--bg-topbar);
  color: white;
  border-top: 3px solid var(--primary);
  padding: 16px 0;
  font-size: 13px;
}

.live-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-item i {
  color: var(--primary);
  font-size: 18px;
}

.stat-item-text {
  display: flex;
  flex-direction: column;
}

.stat-item-num {
  font-weight: 800;
  font-size: 15px;
  color: white;
}

.stat-item-lbl {
  font-size: 11px;
  color: #94a3b8;
}

/* USER MINI AVATAR */
.user-avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.icon-badge {
  position: relative;
  font-size: 17px;
  color: var(--text-muted);
  padding: 4px;
}

.icon-badge .badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .profile-container { grid-template-columns: 1fr; }
  .trade-scorecard { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .cat-stats { display: none; }
}


/* ==========================================================================
   POST CARD & TOPIC VIEW (TOPIC.PHP) - R10 EXACT FIX
   ========================================================================== */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-author-sidebar {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  background: var(--bg-input);
  border-right: 1px solid var(--border-color);
  padding: 20px 14px;
  text-align: center;
  flex-shrink: 0;
}

.author-avatar {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin: 0 auto 10px auto;
  display: block;
}

.author-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  display: block;
}

.author-stats {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: left;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.author-stats div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-stats div i {
  width: 14px;
  color: var(--primary);
}

.post-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.post-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.post-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  flex: 1;
}

.post-signature {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* QUOTES & CODE IN POSTS */
.forum-quote {
  background: var(--quote-bg);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.forum-code {
  background: var(--code-bg);
  color: #f8fafc;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 14px 0;
}

.editor-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.editor-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* R10 CONTROL PANEL MENU IN SIDEBAR */
.ucp-menu-header {
  background: var(--primary-gradient);
  color: white;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ucp-section-title {
  padding: 8px 14px 4px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ucp-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.ucp-link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s;
}

.ucp-link-list a i {
  width: 18px;
  color: var(--primary);
  text-align: center;
}

.ucp-link-list a:hover, .ucp-link-list a.active {
  background: var(--primary-light);
  color: var(--primary);
}

@media (max-width: 768px) {
  .post-card { flex-direction: column; }
  .post-author-sidebar { width: 100%; max-width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 14px; text-align: left; }
  .author-avatar { margin: 0; }
  .author-stats { display: none; }
}


/* ========================================================================== */
/* R10 AUTHENTIC USER DROPDOWN & CONTROL PANEL STYLES                        */
/* ========================================================================== */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.user-profile-trigger:hover {
    background: var(--bg-hover);
}

.online-indicator-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 9px;
    height: 9px;
    background: #16a34a;
    border: 2px solid #fff;
    border-radius: 50%;
}
[data-theme="dark"] .online-indicator-dot {
    border-color: #1e293b;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: fadeInDown 0.15s ease-out;
}

.user-dropdown-container:hover .user-dropdown-menu,
.user-dropdown-container.active .user-dropdown-menu {
    display: block;
}

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

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.dropdown-logout-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-body);
    transition: all 0.15s;
}
.dropdown-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.user-dropdown-tabs {
    display: flex;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
}
.user-dropdown-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.user-dropdown-tab:hover {
    color: var(--primary);
}
.user-dropdown-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-card);
}

.dropdown-tab-pane {
    display: none;
    padding: 8px;
}
.dropdown-tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.15s ease;
}
.dropdown-link-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.dropdown-link-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
}
.btn-sub-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}
.btn-invite-badge {
    background: #dc2626;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* SECONDARY SUBBAR (IMAGE 1 TOP SUBBAR) */
.secondary-subbar {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 6px 0;
}
.subbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}
.subbar-links a {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.subbar-links a:hover {
    color: #fff;
}

/* R10 PLAN CARDS (IMAGE 3 EXACT TIERS) */
.r10-plan-card {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.r10-plan-banner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.r10-plan-banner h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.5px;
}

.badge-kurumsal-plus {
    background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
    border-right: 4px solid #f59e0b;
}
.badge-kurumsal-plus h2 { color: #f59e0b; }

.badge-kurumsal {
    background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
}
.badge-platin {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}
.badge-gold {
    background: linear-gradient(135deg, #0369a1 0%, #38bdf8 100%);
}
.badge-silver {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
}

.r10-plan-features {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}
.r10-plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.r10-plan-features li {
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.r10-plan-pricing {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: var(--bg-body);
}
.r10-plan-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}
.r10-plan-price-row:last-child {
    border-bottom: none;
}

/* BUTTONS */
.btn-green-large {
    background: #16a34a;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-green-large:hover {
    background: #15803d;
}

.btn-blue-large {
    background: #0284c7;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-blue-large:hover {
    background: #0369a1;
}

.btn-red-bump {
    background: #dc2626;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-red-bump:hover {
    background: #b91c1c;
}

.btn-green-sm {
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}
.btn-green-sm:hover {
    background: #15803d;
}


/* ========================================================================== */
/* ULTRA-CLEAN R10 & WEBASYA USER CONTROL PANEL (UCP) SIDEBAR               */
/* ========================================================================== */
.ucp-sidebar-wrapper {
    position: sticky;
    top: 20px;
    width: 100%;
}

.ucp-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

[data-theme="dark"] .ucp-sidebar-card {
    background: #151d2f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.ucp-sidebar-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.ucp-header-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ucp-sidebar-content {
    padding: 8px 0 12px 0;
}

.ucp-section-heading {
    padding: 12px 16px 4px 16px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

[data-theme="dark"] .ucp-section-heading {
    color: #64748b;
}

.ucp-sidebar-content > .ucp-section-heading:not(:first-child) {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
}

[data-theme="dark"] .ucp-sidebar-content > .ucp-section-heading:not(:first-child) {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.ucp-nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 8px;
}

.ucp-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-theme="dark"] .ucp-nav-link {
    color: #cbd5e1;
}

.ucp-nav-link:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary);
    transform: translateX(3px);
}

[data-theme="dark"] .ucp-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.ucp-nav-link.active {
    background: rgba(220, 38, 38, 0.12);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
}

[data-theme="dark"] .ucp-nav-link.active {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-left-color: #ef4444;
}

.ucp-nav-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.ucp-nav-link:hover .ucp-nav-icon {
    transform: scale(1.12);
}

/* Color thematic badges for sidebar icons */
.icon-blue    { background: rgba(56, 189, 248, 0.15); color: #0284c7; }
.icon-green   { background: rgba(52, 211, 153, 0.15); color: #16a34a; }
.icon-purple  { background: rgba(167, 139, 250, 0.15); color: #7c3aed; }
.icon-amber   { background: rgba(251, 191, 36, 0.15); color: #d97706; }
.icon-rose    { background: rgba(251, 113, 133, 0.15); color: #e11d48; }
.icon-gold    { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.icon-emerald { background: rgba(34, 197, 94, 0.16); color: #16a34a; }
.icon-cyan    { background: rgba(6, 182, 212, 0.15); color: #0891b2; }
.icon-teal    { background: rgba(20, 184, 166, 0.15); color: #0d9488; }
.icon-sky     { background: rgba(14, 165, 233, 0.15); color: #0284c7; }
.icon-orange  { background: rgba(249, 115, 22, 0.15); color: #ea580c; }

[data-theme="dark"] .icon-blue    { color: #38bdf8; background: rgba(56, 189, 248, 0.2); }
[data-theme="dark"] .icon-green   { color: #34d399; background: rgba(52, 211, 153, 0.2); }
[data-theme="dark"] .icon-purple  { color: #a78bfa; background: rgba(167, 139, 250, 0.2); }
[data-theme="dark"] .icon-amber   { color: #fbbf24; background: rgba(251, 191, 36, 0.2); }
[data-theme="dark"] .icon-rose    { color: #fb7185; background: rgba(251, 113, 133, 0.2); }
[data-theme="dark"] .icon-gold    { color: #f59e0b; background: rgba(245, 158, 11, 0.22); }
[data-theme="dark"] .icon-emerald { color: #22c55e; background: rgba(34, 197, 94, 0.22); }
[data-theme="dark"] .icon-cyan    { color: #06b6d4; background: rgba(6, 182, 212, 0.2); }
[data-theme="dark"] .icon-teal    { color: #14b8a6; background: rgba(20, 184, 166, 0.2); }
[data-theme="dark"] .icon-sky     { color: #38bdf8; background: rgba(14, 165, 233, 0.2); }
[data-theme="dark"] .icon-orange  { color: #fb923c; background: rgba(249, 115, 22, 0.2); }

.ucp-nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.ucp-freeze-box {
    margin-top: 10px;
    padding: 12px 10px 4px 10px;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .ucp-freeze-box {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.ucp-btn-freeze {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.ucp-btn-freeze:hover {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}

/* ==========================================================================
   MODERN PROFILE SIDEBAR & KUNYE DESIGN (R10 / WEBASYA STYLE)
   ========================================================================== */
.profile-container {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
}

.profile-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.profile-cover-strip {
  height: 75px;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
  position: relative;
}

[data-theme="dark"] .profile-cover-strip {
  background: linear-gradient(135deg, #1e1114 0%, #7f1d1d 60%, #b91c1c 100%);
}

.profile-card-content {
  padding: 0 16px 20px 16px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -45px;
  margin-bottom: 8px;
}

.profile-avatar-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--bg-card);
}

.profile-pulse-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
  animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.profile-card-username {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.profile-verified-badge {
  color: #0284c7;
  font-size: 16px;
}

.profile-card-rank {
  margin-bottom: 14px;
}

.profile-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-profile-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  transition: all 0.2s;
}

.btn-profile-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.btn-profile-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-profile-secondary:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-light);
}

.btn-profile-trade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-profile-trade:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.profile-section-heading {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-section-heading i {
  color: var(--primary);
  font-size: 13px;
}

/* CONTACT LIST - ZERO BULLETS */
.profile-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
}

a.profile-contact-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(2px);
}

.profile-contact-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.profile-contact-item .contact-text {
  flex: 1;
  text-align: left;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-contact-item .contact-arrow {
  font-size: 11px;
  color: var(--text-muted);
}

/* BADGES */
.profile-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.badge-verified-pill i { color: var(--primary); }
.badge-trade-pill i { color: #eab308; }
.badge-trust-pill i { color: #16a34a; }
.badge-admin-pill {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
[data-theme="dark"] .badge-admin-pill {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

/* KUNYE TABLE */
.profile-kunye-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.kunye-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}

.kunye-item:last-child {
  border-bottom: none;
}

.kunye-item:nth-child(even) {
  background: var(--bg-input);
}

.kunye-item .k-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kunye-item .k-label i {
  width: 14px;
  text-align: center;
  font-size: 12px;
}

.kunye-item .k-value {
  font-weight: 700;
  color: var(--text-main);
}

/* SKILLS */
.profile-skills-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-row {
  text-align: left;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.skill-track {
  background: var(--border-color);
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  background: var(--primary-gradient);
  height: 100%;
  border-radius: 4px;
}

/* VISITORS */
.profile-visitors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visitor-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: all 0.2s;
}

.visitor-item:hover img {
  border-color: var(--primary);
  transform: scale(1.1);
}
