:root {
  --gold: #c8a040;
  --gold-light: #e8c060;
  --gold-dim: #7a5e20;
  --bg-dark: #0a0a06;
  --bg-panel: #0f110a;
  --bg-panel2: #141810;
  --bg-header: #111308;
  --border-gold: #4a3a10;
  --border-bright: #7a6020;
  --text-main: #c8b890;
  --text-dim: #8a7a58;
  --text-bright: #e8d8a8;
  --green-online: #40c840;
  --red-offline: #c84040;
  --blue-link: #6090d8;
  --panel-shadow: inset 0 0 20px rgba(0,0,0,0.8);

}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ------ Global links -------------------------------------- */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 14px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(40,30,5,0.4) 0%, transparent 60%);
}

/* ===== TOP NAV ===== */
#top-nav {
  background: linear-gradient(180deg, #1a1608 0%, #0e0d06 60%, #080806 100%);
  border-bottom: 2px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

#top-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='1' height='1' fill='rgba(200,160,60,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 20px;
  border-right: 1px solid rgba(74,58,16,0.5);
  display: block;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:first-child { border-left: 1px solid rgba(74,58,16,0.5); }

.nav-links a:hover {
  color: var(--gold-light);
  background: rgba(200,160,60,0.08);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
}

.online-badge {
  background: linear-gradient(135deg, #0a1a08, #0d220a);
  border: 1px solid #2a4a1a;
  border-radius: 4px;
  padding: 6px 14px;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.online-badge .count {
  color: var(--green-online);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.online-badge .label {
  color: var(--green-online);
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.online-badge .sublabel {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
}

.btn-register {
  background: linear-gradient(180deg, #2a1f08 0%, #1a1205 100%);
  border: 1px solid var(--gold-dim);
  border-bottom-color: var(--border-gold);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-register:hover {
  background: linear-gradient(180deg, #3a2f10 0%, #2a1f08 100%);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ===== SLIDER ===== */
#header-slider {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
  background: #080806;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77,0,0.18,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Slide backgrounds - distinct fantasy scenes using CSS gradients */
.slide-1 {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180,60,20,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(60,20,120,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(200,140,30,0.3) 0%, transparent 40%),
    linear-gradient(135deg, #0e0604 0%, #1a0c08 40%, #0c0814 100%);
}

.slide-2 {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(20,80,160,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 60%, rgba(0,120,80,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(200,200,255,0.1) 0%, transparent 40%),
    linear-gradient(135deg, #04080e 0%, #081420 40%, #040c10 100%);
}

.slide-3 {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(200,160,20,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 70%, rgba(120,60,0,0.4) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(120,60,0,0.4) 0%, transparent 45%),
    linear-gradient(180deg, #0e0a02 0%, #181204 50%, #0a0802 100%);
}

/* Decorative SVG patterns per slide */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(200,160,60,0.04)' stroke-width='0.5'%3E%3Crect x='5' y='5' width='50' height='50'/%3E%3Cline x1='5' y1='30' x2='55' y2='30'/%3E%3Cline x1='30' y1='5' x2='30' y2='55'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Slide content overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0.6) 100%
  );
}

/* Top & bottom gold borders on slide */
.slide-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.slide-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.slide-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.slide-title {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow:
    0 0 40px rgba(200,160,60,0.7),
    0 2px 6px rgba(0,0,0,0.9),
    0 0 80px rgba(200,160,60,0.3);
  letter-spacing: 4px;
  line-height: 1;
  animation: slideTextIn 0.6s ease forwards;
}

.slide-sub {
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 3px;
  margin-top: 6px;
  animation: slideTextIn 0.6s 0.1s ease both;
}

.slide-tagline {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 2px;
  margin-top: 10px;
  text-transform: uppercase;
  animation: slideTextIn 0.6s 0.2s ease both;
}

@keyframes slideTextIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Decorative side ornaments */
.slide-ornament-left, .slide-ornament-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: rgba(200,160,60,0.15);
  pointer-events: none;
  font-family: serif;
  z-index: 1;
  user-select: none;
}
.slide-ornament-left { left: 30px; }
.slide-ornament-right { right: 30px; }

/* Slider nav dots */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-gold);
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200,160,60,0.6);
  transform: scale(1.2);
}

/* Prev/Next arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(10,8,2,0.6);
  border: 1px solid var(--border-gold);
  color: var(--gold-dim);
  font-size: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.slider-arrow:hover {
  background: rgba(30,22,6,0.9);
  color: var(--gold-light);
  border-color: var(--gold);
}
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* Decorative lines */
.deco-line {
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 10px auto;
  position: relative;
}

.deco-line::before {
  content: '✦';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dim);
  font-size: 10px;
}

/* ===== LOGO ICON ===== */

.nav-logo{
  text-align:center;
  margin-bottom:6px;
}

.nav-logo img{
  height:90px;   /* حجم الايكون */
  width:auto;
}

/* ===== LOGIN PANEL ===== */
.login-panel {
  background: linear-gradient(180deg, #161a0e 0%, #0f120a 100%);
  border: 1px solid var(--border-gold);
  position: relative;
}

.login-panel input[type="text"],
.login-panel input[type="password"] {
  width: 100%;
  background: linear-gradient(180deg, #0a0c06 0%, #0d100a 100%);
  border: 1px solid var(--border-gold);
  color: var(--text-bright);
  font-family: 'Crimson Text', serif;
  font-size: 12px;
  padding: 5px 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.login-panel input[type="text"]:focus,
.login-panel input[type="password"]:focus {
  border-color: var(--gold-dim);
  background: #0f1208;
}

.login-panel input::placeholder {
  color: var(--text-dim);
  font-style: italic;
  font-size: 11px;
}

.login-label {
  display: block;
  color: var(--text-dim);
  font-size: 10px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.login-field { margin-bottom: 7px; }

.btn-login {
  width: 100%;
  background: linear-gradient(180deg, #1e1a08 0%, #141205 100%);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 7px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-login:hover {
  background: linear-gradient(180deg, #2a2410 0%, #1e1a08 100%);
  border-color: var(--gold);
  color: var(--gold-light);
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(74,58,16,0.3);
}

.login-links a {
  color: var(--text-dim);
  font-size: 10px;
  text-decoration: none;
  transition: color 0.15s;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3px;
}

.login-links a:hover { color: var(--gold); }

/* ===== MAIN LAYOUT ===== */
#main-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 0 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ===== LEFT SIDEBAR ===== */
#sidebar-left {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== RIGHT SIDEBAR ===== */
#sidebar-right {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== CENTER CONTENT ===== */
#center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== PANEL STYLES ===== */
.panel {
  background: linear-gradient(180deg, #161a0e 0%, #0f120a 100%);
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: var(--panel-shadow);
  pointer-events: none;
}

/* Corner ornaments */
.panel::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 1px; height: 8px;
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
  pointer-events: none;
}

.panel-header {
  background: linear-gradient(180deg, #1e2010 0%, #141608 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 6px 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(200,160,60,0.3);
}

.panel-content {
  padding: 8px;
}

.panel-content a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  padding: 3px 5px;
  font-size: 15px;
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid rgba(74,58,16,0.2);
}

.panel-content a:last-child { border-bottom: none; }

.panel-content a:hover {
  color: var(--gold-light);
  background: rgba(200,160,60,0.06);
  padding-left: 10px;
}

.panel-content a::before {
  content: '› ';
  color: var(--gold-dim);
  font-size: 11px;
}

/* ===== TOP BAR (Logout/buttons) ===== */
.top-bar {
  background: linear-gradient(180deg, #1a1c10 0%, #12140a 100%);
  border: 1px solid var(--border-gold);
  padding: 8px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-action {
  background: linear-gradient(180deg, #1e1a08 0%, #141205 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-action:hover {
  background: linear-gradient(180deg, #2a2410 0%, #1e1a08 100%);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ===== ACCOUNT PANEL ===== */
.account-main {
  background: linear-gradient(180deg, #161a0e 0%, #0f120a 100%);
  border: 1px solid var(--border-gold);
  padding: 16px;
  position: relative;
}

.welcome-text {
  color: var(--text-bright);
  font-size: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(74,58,16,0.4);
}

.recovery-notice {
  background: linear-gradient(135deg, #1a1508, #120e04);
  border: 1px solid rgba(200,160,60,0.2);
  border-left: 3px solid var(--gold-dim);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.recovery-notice .recovery-btn {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(180deg, #1e1a08 0%, #141205 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  padding: 5px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s;
}

.recovery-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  background: linear-gradient(180deg, #1e2010 0%, #161808 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 5px 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 10px -16px;
}

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table tr td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(74,58,16,0.2);
  vertical-align: top;
}

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

.info-table td:first-child {
  color: var(--text-dim);
  white-space: nowrap;
  width: 140px;
  font-size: 12px;
}

.info-table td:last-child {
  color: var(--text-bright);
}

.status-free { color: #60a8e8; }
.status-premium { color: var(--gold); }
.status-online { color: var(--green-online); }
.status-offline { color: var(--red-offline); }

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ===== CHARACTER TABLE ===== */
.char-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}

.char-table th {
  background: linear-gradient(180deg, #1a1c10 0%, #141608 100%);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 8px;
  border: 1px solid rgba(74,58,16,0.4);
  text-align: left;
  text-transform: uppercase;
}

.char-table td {
  padding: 4px 8px;
  border: 1px solid rgba(74,58,16,0.2);
  color: var(--text-main);
}

.char-table tr:nth-child(even) td {
  background: rgba(200,160,60,0.03);
}

.char-table tr:hover td {
  background: rgba(200,160,60,0.06);
}

.char-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ===== PUBLIC INFO ===== */
.edit-btn {
  float: right;
  background: linear-gradient(180deg, #1a1608 0%, #100e04 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  padding: 3px 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.edit-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ===== TOP PLAYERS (RIGHT PANEL) ===== */
.top-player-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(74,58,16,0.2);
  transition: background 0.15s;
}

.top-player-entry:hover { background: rgba(200,160,60,0.05); }
.top-player-entry:last-child { border-bottom: none; }

.player-rank {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--gold-dim);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.player-rank.top1 { color: #e8c040; }
.player-rank.top2 { color: #c0c0c0; }
.player-rank.top3 { color: #cd7f32; }

.vocation-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.voc-knight { background: rgba(200,60,60,0.3); border: 1px solid rgba(200,60,60,0.4); color: #e08080; }
.voc-druid  { background: rgba(60,180,60,0.3); border: 1px solid rgba(60,180,60,0.4); color: #80d880; }
.voc-sorcerer { background: rgba(60,100,200,0.3); border: 1px solid rgba(60,100,200,0.4); color: #80a0e8; }
.voc-paladin { background: rgba(200,160,60,0.3); border: 1px solid rgba(200,160,60,0.4); color: #e8c060; }
.voc-none { background: rgba(120,120,120,0.2); border: 1px solid rgba(120,120,120,0.3); color: #a0a0a0; }

.player-info { flex: 1; overflow: hidden; }

.player-name {
  font-size: 11px;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-details {
  font-size: 10px;
  color: var(--text-dim);
}

/* ===== CLIENT PANEL ===== */
.download-btn {
  display: block;
  background: linear-gradient(180deg, #1a2010 0%, #101408 100%);
  border: 1px solid #2a4a18;
  color: #80c860;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  margin: 8px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.download-btn:hover {
  background: linear-gradient(180deg, #243018 0%, #141c08 100%);
  border-color: #3a6a28;
  color: #a0e880;
}

/* ===== SEARCH BAR ===== */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 240px;
}

.search-input {
  flex: 1;
  background: linear-gradient(180deg, #0a0c06 0%, #0d100a 100%);
  border: 1px solid var(--border-gold);
  border-right: none;
  color: var(--text-bright);
  font-family: 'Crimson Text', serif;
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  transition: border-color 0.2s;
  height: 28px;
}

.search-input:focus {
  border-color: var(--gold-dim);
  background: #0f1208;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
  font-size: 11px;
}

.search-btn {
  background: linear-gradient(180deg, #1e1a08 0%, #141205 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold-dim);
  font-size: 13px;
  padding: 0 9px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: linear-gradient(180deg, #2a2410 0%, #1e1a08 100%);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Slider inside center content - reduce height slightly */
#center-content #header-slider {
  height: 140px;
  border: 1px solid var(--border-gold);
  border-bottom: 2px solid var(--border-gold);
}

/* ===== FOOTER ===== */
#footer {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 11px;
  border-top: 1px solid rgba(74,58,16,0.3);
  margin-top: 10px;
}

/* Decorative corner pieces for panels */
.panel-corner-tr {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--gold-dim);
  border-right: 1px solid var(--gold-dim);
  pointer-events: none;
}

.panel-corner-bl {
  position: absolute;
  bottom: 2px; left: 2px;
  width: 8px; height: 8px;
  border-bottom: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
  pointer-events: none;
}

.panel-corner-br {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 8px; height: 8px;
  border-bottom: 1px solid var(--gold-dim);
  border-right: 1px solid var(--gold-dim);
  pointer-events: none;
}

/* ===== SERVER INFO PANEL ===== */
.srv-status-row {
  text-align: center;
  padding: 5px 0 8px;
  border-bottom: 1px solid rgba(74,58,16,0.3);
  margin-bottom: 8px;
}

.srv-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.srv-dot--online {
  background: var(--green-online);
  box-shadow: 0 0 6px var(--green-online);
}

.srv-dot--offline {
  background: var(--red-offline);
  box-shadow: 0 0 6px var(--red-offline);
}

.srv-status-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.srv-status-label--online  { color: var(--green-online); }
.srv-status-label--offline { color: var(--red-offline);  }

.srv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.srv-table td {
  padding: 3px 2px;
  border-bottom: 1px solid rgba(74,58,16,0.15);
}

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

.srv-table td:first-child {
  color: var(--text-dim);
}

.srv-table td:last-child {
  color: var(--gold-light);
  text-align: right;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}


/* ------ white class (used in some column headers) --------- */
.white { color: var(--text-bright) !important; }

/* ------ Input / Textarea global style --------------------- */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: linear-gradient(180deg, #0a0c06 0%, #0d100a 100%);
  border: 1px solid var(--border-gold);
  color: var(--text-bright);
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  padding: 4px 8px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-dim);
  background: #0f1208;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

/* Gesior row colors — set in config/config.php */
tr.Odd td  { background-color: var(--lightborder); }
tr.Even td { background-color: var(--darkborder); }
.TableContent tr.LabelH td { background-color: var(--vdarkborder) !important; }

/* Override Gesior default green buttons */
input[type="submit"],
input[type="button"],
button,
.TableButton,
.buttonz {
  background: linear-gradient(180deg, #1e1a08 0%, #141205 100%) !important;
  border: 0px solid var(--gold-dim) !important;
  color: var(--gold) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  padding: 6px 16px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  transition: all 0.2s !important;
  border-radius: 0 !important;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.TableButton:hover,
.buttonz:hover {
  background: linear-gradient(180deg, #2a2410 0%, #1e1a08 100%) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 0 8px rgba(200,160,60,0.2) !important;
}

.nav-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-boxes {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  min-width: 48px;
}

.countdown-box span {
  font-size: 20px;
  font-weight: 700;
  font-family: monospace;
  color: #c8a84b;
}

.countdown-box label {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-sep {
  font-size: 20px;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
}