﻿/* ============================================================
   DarkRO Legacy - FluxCP Theme
   Style inspired by dark gaming aesthetic
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-dark:       #07060d;
  --bg-card:       #0e0b1a;
  --bg-card-hover: #16122a;
  --bg-nav:        rgba(7, 6, 13, 0.97);
  --color-red:     #9b5de5;
  --color-red-dark:#7c3aed;
  --color-gold:    #f5a623;
  --color-green:   #10c755;
  --color-text:    #e8e3f5;
  --color-muted:   #6e6484;
  --color-border:  rgba(155, 93, 229, 0.18);
  --font-heading:  'Cinzel Decorative', serif;
  --font-body:     'Poppins', sans-serif;
  --nav-height:    56px;
  --topbar-height: 40px;
  --total-header:  96px;
  --radius:        6px;
  --transition:    0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

::selection { background: var(--color-red); color: #fff; }

/* custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0812; }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }

a { color: var(--color-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

img { max-width: 100%; }

ul { list-style: none; }

/* ---- Utility ---- */
.text-red    { color: var(--color-red) !important; }
.text-gold   { color: var(--color-gold) !important; }
.text-green  { color: var(--color-green) !important; }
.text-muted  { color: var(--color-muted) !important; }
.text-white  { color: #fff !important; }
.text-center { text-align: center; }
.w-100       { width: 100%; }
.d-none      { display: none; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-1       { gap: 8px; }
.gap-2       { gap: 16px; }

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--color-red);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-red {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
}
.btn-red:hover {
  background: linear-gradient(135deg, var(--color-red-dark), #5b21b6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(155, 93, 229, 0.5);
  transform: translateY(-1px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), #c9a93e);
  color: #1a1008;
  box-shadow: 0 4px 15px rgba(243, 204, 81, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffe066, var(--color-gold));
  color: #1a1008;
  box-shadow: 0 6px 20px rgba(243, 204, 81, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-red);
  border: 1px solid var(--color-red);
}
.btn-outline:hover {
  background: var(--color-red);
  color: #fff;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-news   { background: #1a3a6e; color: #6ca3e8; }
.badge-event  { background: #1e1040; color: var(--color-red); }
.badge-update { background: #1a1230; color: var(--color-green); }

/* ---- Status Pills ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.on  { background: var(--color-green); box-shadow: 0 0 6px var(--color-green); }
.status-dot.off { background: var(--color-red);   box-shadow: 0 0 6px var(--color-red); }

/* ============================================================
   TOP BAR
   ============================================================ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: #080610;
  border-bottom: 1px solid rgba(155, 93, 229, 0.25);
  z-index: 9999;
  font-size: 11px;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tb-left, .tb-center, .tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.tb-label   { color: var(--color-muted); }
.tb-sep     { color: rgba(255,255,255,0.18); }
.tb-time    { color: var(--color-gold); font-weight: 700; letter-spacing: .03em; }
.tb-on      { color: var(--color-green); font-weight: 700; }
.tb-off     { color: var(--color-red);   font-weight: 700; }
.tb-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.12); margin: 0 4px; }
.tb-count-box   { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tb-count-label { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.tb-count-val   { font-size: 14px; font-weight: 700; color: var(--color-green); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: var(--topbar-height); left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(8, 6, 16, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 998;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

#navbar .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
#navbar .nav-brand img {
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(155, 93, 229, 0.6));
}
#navbar .nav-brand span {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: var(--nav-height);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color var(--transition);
  cursor: pointer;
  user-select: none;
}
.nav-link i { font-size: 10px; opacity: 0.6; }
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--color-gold);
}
.nav-item.active > .nav-link { color: var(--color-red); }

/* dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(var(--nav-height) - 4px);
  left: 0;
  min-width: 200px;
  background: #0d0507;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-red);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 6px 0;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 9px 18px;
  color: #c0b8b9;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.dropdown-item:hover {
  color: var(--color-gold);
  background: rgba(155, 93, 229, 0.08);
  border-left-color: var(--color-red);
  padding-left: 22px;
}
.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

/* right side of nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.server-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--color-muted);
  padding-right: 16px;
  border-right: 1px solid var(--color-border);
}
.server-status strong { color: var(--color-text); }

/* ============================================================
   HERO / SPLASH  (BraveRO-style layout)
   ============================================================ */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(to right, rgba(7,6,13,0.5) 0%, rgba(7,6,13,0.15) 60%, rgba(7,6,13,0.75) 100%),
    linear-gradient(to bottom, rgba(30,10,60,0.25) 0%, rgba(7,6,13,0.7) 90%, #07060d 100%),
    url('../img/bg-splash.jpg') center center / cover no-repeat;
  background-color: #0e0b1a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--total-header);
  padding-right: 80px;
  position: relative;
  overflow: hidden;
}

/* Character renders – left side, bottom-anchored */
.hero-chars {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero-char-1 {
  height: 88vh;
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(180,40,40,0.35));
}

/* Login / welcome panel – right side */
.hero-panel {
  position: relative;
  z-index: 10;
  width: 340px;
  flex-shrink: 0;
}
.login-panel {
  background: rgba(8, 3, 4, 0.88);
  border: 1px solid rgba(155, 93, 229,0.35);
  border-radius: 6px;
  padding: 32px 28px 28px;
  backdrop-filter: blur(10px);
}
.login-panel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .14em;
  color: #fff;
  text-align: center;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.login-panel-user {
  color: var(--color-gold);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 20px;
}
.login-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color .2s;
}
.login-input:focus { outline: none; border-color: var(--color-red); background: rgba(255,255,255,0.08); }
.login-input::placeholder { color: #6a6263; }
.login-submit-btn {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  background: var(--color-red);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.login-submit-btn:hover { background: var(--color-red-dark); color: #fff; transform: translateY(-1px); }
.login-links-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}
.login-links-row a { color: var(--color-muted); }
.login-links-row a:hover { color: var(--color-red); }

/* page-banner for inner pages */
.page-banner {
  height: 130px;
  background:
    linear-gradient(to right, rgba(6,1,2,.96), rgba(6,1,2,.55)),
    url('../img/bg-banner.jpg') center/cover;
  background-color: #0e0608;
  display: flex;
  align-items: flex-end;
  margin-top: var(--total-header);
  border-bottom: 1px solid var(--color-border);
}
.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 16px;
}
.page-banner-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--color-gold);
  letter-spacing: .08em;
  margin: 0;
}
.page-banner-crumb {
  color: var(--color-muted);
  font-size: 11px;
  margin: 4px 0 0;
}
.page-banner-crumb a { color: var(--color-muted); }
.page-banner-crumb a:hover { color: var(--color-red); }
.crumb-sep { margin: 0 5px; opacity: .4; }

/* legacy hero classes kept to not break anything – hidden now */
.hero-content, .hero-logo, .hero-title, .hero-subtitle {
  display: none !important;
}
.UNUSED_hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--color-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-desc {
  color: var(--color-muted);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 32px;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-render {
  position: absolute;
  right: 8%;
  bottom: 0;
  height: 85vh;
  max-height: 720px;
  pointer-events: none;
  filter: drop-shadow(-10px 0 30px rgba(155, 93, 229,0.2));
  animation: float-slow 6s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
#main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* page top padding (below fixed nav, no hero) */
.page-top { padding-top: calc(var(--nav-height) + 36px); }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 14px 20px;
  background: rgba(155, 93, 229,0.06);
  border-bottom: 1px solid var(--color-border);
}
.panel-body { padding: 20px; }
.panel-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   ARTICLES (announcement cards)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: rgba(155, 93, 229,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.article-img {
  height: 160px;
  background: #100608 url('../img/article-placeholder.jpg') center/cover no-repeat;
  position: relative;
}
.article-img .badge { position: absolute; top: 10px; left: 10px; }
.article-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--color-gold); }
.article-excerpt { color: var(--color-muted); font-size: 12px; flex: 1; }
.article-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-meta i { color: var(--color-red); }

/* ============================================================
   RANKINGS TABLE
   ============================================================ */
.table-dark {
  width: 100%;
  border-collapse: collapse;
}
.table-dark thead th {
  background: rgba(155, 93, 229,0.1);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table-dark tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.table-dark tbody tr:hover { background: rgba(155, 93, 229,0.05); }
.table-dark tbody td {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--color-text);
  vertical-align: middle;
}
.rank-number {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-muted);
  width: 40px;
}
.rank-number.gold   { color: var(--color-gold); }
.rank-number.silver { color: #b0b8c0; }
.rank-number.bronze { color: #c87947; }
.player-name { font-weight: 600; color: #fff; }
.guild-name  { color: var(--color-muted); font-size: 12px; }

/* ============================================================
   FORMS (login / register)
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(155, 93, 229,0.15);
}
.form-control::placeholder { color: var(--color-muted); }
select.form-control option { background: #1a0d0e; }

/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(155, 93, 229,0.12); border-left: 3px solid var(--color-red);   color: #f08080; }
.alert-success { background: rgba(16,199,85,0.1);  border-left: 3px solid var(--color-green); color: #6be08a; }
.alert-info    { background: rgba(100,160,240,0.1); border-left: 3px solid #6ca3e8;            color: #9cc2f5; }
.alert-warning { background: rgba(243,204,81,0.1); border-left: 3px solid var(--color-gold);  color: var(--color-gold); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 24px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: all var(--transition);
  background: var(--bg-card);
}
.pagination a:hover      { color: var(--color-gold); border-color: var(--color-gold); }
.pagination span.current { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* ============================================================
   INFO BOXES (homepage)
   ============================================================ */
.info-section {
  padding: 80px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.info-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), transparent);
}
.info-box:hover {
  border-color: rgba(155, 93, 229,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.info-box-icon {
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: 14px;
}
.info-box-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.info-box-text { color: var(--color-muted); font-size: 13px; line-height: 1.7; }

/* ============================================================
   ONLINE LIST / CHARACTER BOX
   ============================================================ */
.char-list { display: flex; flex-direction: column; gap: 8px; }
.char-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.char-item:hover {
  background: rgba(155, 93, 229,0.05);
  border-color: rgba(155, 93, 229,0.25);
}
.char-class-icon { width: 28px; height: 28px; object-fit: contain; }
.char-info .char-name  { font-weight: 600; font-size: 13px; }
.char-info .char-class { font-size: 11px; color: var(--color-muted); }
.char-level {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  margin-top: 80px;
  border-top: 1px solid var(--color-border);
  background: rgba(0,0,0,0.3);
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand-logo {
  height: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(155, 93, 229,0.4));
}
.footer-tagline {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--color-muted);
  font-size: 15px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  color: var(--color-muted);
  font-size: 13px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.footer-links a:hover { color: var(--color-text); padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-section { padding: 60px 0; }
.home-section + .home-section {
  border-top: 1px solid var(--color-border);
}

/* counts bar */
.counts-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
}
.count-item {
  flex: 1;
  padding: 20px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: background var(--transition);
}
.count-item:last-child { border-right: none; }
.count-item:hover { background: rgba(155, 93, 229,0.05); }
.count-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-red);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.count-label {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FLUX CONTENT AREA (default FluxCP inner pages)
   ============================================================ */
#flux-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--total-header) + 30px) 20px 60px;
  min-height: calc(100vh - var(--total-header));
}
#home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* tables generated by FluxCP */
#flux-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
#flux-content table th {
  background: rgba(155, 93, 229,0.1);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
}
#flux-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--color-text);
  font-size: 13px;
}
#flux-content table tr:hover td { background: rgba(155, 93, 229,0.04); }

/* FluxCP messages */
#flux-content .message,
#flux-content .error-message,
#flux-content .success-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
#flux-content .error-message   { background: rgba(155, 93, 229,0.12); border-left: 3px solid var(--color-red); color: #f08080; }
#flux-content .success-message { background: rgba(16,199,85,0.1); border-left: 3px solid var(--color-green); color: #6be08a; }
#flux-content .message         { background: rgba(100,160,240,0.1); border-left: 3px solid #6ca3e8; color: #9cc2f5; }

/* FluxCP forms */
#flux-content input[type="text"],
#flux-content input[type="password"],
#flux-content input[type="email"],
#flux-content input[type="number"],
#flux-content select,
#flux-content textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 13px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
#flux-content input:focus,
#flux-content select:focus,
#flux-content textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(155, 93, 229,0.15);
}
#flux-content select option { background: #1a0d0e; }
#flux-content label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
#flux-content input[type="submit"],
#flux-content button[type="submit"] {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(155, 93, 229,0.3);
}
#flux-content input[type="submit"]:hover,
#flux-content button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--color-red-dark), #5b21b6);
  box-shadow: 0 6px 18px rgba(155, 93, 229,0.5);
  transform: translateY(-1px);
}

/* FluxCP page title */
#flux-content h1.page-title,
#flux-content h2.page-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.06em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-render  { display: none; }
}
@media (max-width: 768px) {
  #navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .counts-bar { flex-wrap: wrap; }
  .count-item { flex: 1 1 50%; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANNOUNCEMENTS BANNER + NEWS CAROUSEL
   ============================================================ */
.announcements-wrap {
  padding: 40px 0 20px;
}
.announcements-label {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 28px;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
}
.announcements-label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: var(--color-red);
  border-right: 0;
}

/* Carousel */
.carousel-outer {
  position: relative;
  padding: 0 44px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 14px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(30,10,12,.85);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.carousel-arrow:hover { background: var(--color-red); border-color: var(--color-red); color: #fff; }
.carousel-arrow.prev { left: 2px; }
.carousel-arrow.next { right: 2px; }

/* Carousel card */
.c-card {
  min-width: 210px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.c-card:hover { transform: translateY(-4px); border-color: rgba(155, 93, 229,.5); }
.c-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-dark) url('../img/article-placeholder.jpg') center/cover;
}
.c-card-body { padding: 10px 12px 12px; }
.c-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.c-card-badge {
  background: var(--color-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.c-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.c-card-excerpt {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nav-height references for dropdown that used old value */
.dropdown-menu { top: calc(var(--nav-height) - 4px); }
.nav-link { height: var(--nav-height); }

/* Responsive topbar */
@media (max-width: 900px) {
  .tb-center { display: none; }
  .tb-right  { gap: 8px; }
  #hero { padding-right: 20px; justify-content: center; }
  .hero-chars { width: 100%; opacity: .25; }
  .hero-panel { width: 90%; max-width: 340px; }
}
@media (max-width: 600px) {
  .tb-left { display: none; }
  .c-card { min-width: 160px; }
}

/* ============================================================
   FLUXCP GENERIC FORM TABLE (register, login, edit, etc.)
   ============================================================ */
#flux-content .generic-form-table,
#flux-content table.generic-form-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
/* override the data-table header style for form th labels */
#flux-content .generic-form-table th,
#flux-content table.generic-form-table th {
  background: transparent !important;
  color: var(--color-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  padding: 10px 16px 10px 0 !important;
  border: none !important;
  width: 180px;
  vertical-align: middle;
}
#flux-content .generic-form-table td,
#flux-content table.generic-form-table td {
  padding: 8px 0 !important;
  border: none !important;
  background: transparent !important;
  vertical-align: middle;
}
#flux-content .generic-form-table tr:hover td,
#flux-content table.generic-form-table tr:hover td {
  background: transparent !important;
}
/* ensure button is always visible */
#flux-content .generic-form-table button[type="submit"],
#flux-content .generic-form-table input[type="submit"],
#flux-content button[type="submit"],
#flux-content input[type="submit"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--color-red) !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 28px !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  cursor: pointer !important;
  transition: background .2s, transform .1s !important;
  box-shadow: 0 4px 12px rgba(155, 93, 229,0.3) !important;
  min-width: 120px;
}
#flux-content .generic-form-table button[type="submit"]:hover,
#flux-content .generic-form-table input[type="submit"]:hover,
#flux-content button[type="submit"]:hover,
#flux-content input[type="submit"]:hover {
  background: var(--color-red-dark) !important;
  transform: translateY(-1px) !important;
}
/* make strong inside button inherit */
#flux-content button strong { color: inherit; font-weight: inherit; }

/* action links (like "refresh captcha") */
#flux-content .action a { color: var(--color-muted); font-size: 12px; }
#flux-content .action a:hover { color: var(--color-red); }

/* Footer brand text (replaces logo image) */
.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: .06em;
  margin-bottom: 12px;
}


