/* =========================================
   COVEN WEBSITE STYLE vFINAL (Optimized Build)
   Bootstrap 3 Compatible / Coven Gold-Dark Theme
========================================= */

/* =========================================
   COLOR VARIABLES (Shared Palette)
========================================= */
:root {
  /* ╔══════════════════════════════════════════╗
     ║  SERVER THEME  ← change to rebrand site  ║
     ╚══════════════════════════════════════════╝ */

  /* Primary accent (gold) */
  --color-primary:     #f7c873;
  --color-primary-dim: #c9a552;
  --color-primary-glow:rgba(247,200,115,0.25);

  /* Backgrounds */
  --color-dark-bg:     #111111;
  --color-panel:       #1a1a1a;
  --color-panel-head:  #232323;
  --color-panel-alt:   rgba(22,22,22,0.95);

  /* Text */
  --color-text:        #d7d7d7;
  --color-text-muted:  #999999;
  --color-text-light:  #e5e5e5;

  /* Borders */
  --color-border:      rgba(70,55,40,0.3);

  /* Aliases used throughout CSS */
  --gold:              var(--color-primary);
  --gold-dark:         var(--color-primary-dim);
  --dark-bg:           var(--color-dark-bg);
  --panel-bg:          var(--color-panel-alt);
  --shadow-gold:       0 0 12px var(--color-primary-glow);
}

/* =========================================
   GLOBAL & LAYOUT
========================================= */
/* =========================================
   GLOBAL SETTINGS
========================================= */
body {
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(ellipse at center, var(--color-panel) 0%, #0d0d0d 100%);
  color: #ddd;
  font-size: 14px;
}

/* Tighter container padding on small screens */
@media (max-width: 767px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .panel-body { padding: 10px 10px; }
  .row { margin-left: -6px; margin-right: -6px; }
  .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
}

/* ===== Hyperlinks ===== */
a {
  color: var(--color-primary);                /* gold tone */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}
a:hover,
a:focus {
  color: #fff3c1;                /* brighter gold on hover */
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.35);
}

/* ===== HR ===== */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(247, 200, 115, 0.05),
        rgba(247, 200, 115, 0.35),
        rgba(247, 200, 115, 0.05)
    );
    margin: 25px 0;
}

/* ===== Inline <code> blocks ===== */
code {
  background: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.25);
  color: #ffd37a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(247, 200, 115, 0.15);
  white-space: nowrap;
  vertical-align: middle;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* =========================================
   HEADER / NAVBAR / LOGO (RESPONSIVE)
========================================= */
.header {
  width: 100%;
  height: 420px;
  background: url(../images/header.png) center center no-repeat;
  background-size: cover;
  position: relative;
  margin-bottom: 30px;
  padding-top: 50px;
}
/* ===== Header Slider ===== */
.header-slider {
  position: relative;
  height: 420px;
  overflow: visible; /* ✅ allows full mobile menu to appear */
  z-index: 10;
}

.header-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.header-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay text */
/* === Refined Balanced Bottom Slider Text === */
.slide-text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: rgba(15, 15, 15, 0.55);
  padding: 18px 32px 20px; /* slightly more bottom padding for balance */
  border-radius: 6px;
  border: 1px solid rgba(247, 200, 115, 0.25);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  width: fit-content;
  max-width: 90%;
  z-index: 10;

  color: var(--color-primary);
  font-family: 'Roboto', sans-serif;
  animation: fadeInText 1.5s ease;
}

.slide-text h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 6px 0; /* no top margin, small bottom gap */
  color: #ffd37a;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(247, 200, 115, 0.4);
}

.slide-text p {
  font-size: 15px;
  color: #eee;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Smooth fade-in animation */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive fix */
@media (max-width: 768px) {
  .slide-text {
    bottom: 30px;
    padding: 12px 20px 14px;
  }
  .slide-text h2 {
    font-size: 22px;
  }
  .slide-text p {
    font-size: 13px;
  }
}

/* --- Navbar over slider, fixed logo visibility & responsive z-index --- */
.header-slider .header-navbar {
  position: relative;
  top: 20px;
  z-index: 999; /* higher than slider */
  background: rgba(20, 20, 20, 0.96);
  height: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}


/* Make sure logo appears above navbar and visible */
.navbar-center-logo img {
  z-index: 30;
  position: relative;
}

/* Responsive fix - ensure toggle & dropdown appear above slider */
@media (max-width: 991px) {
  .menu-toggle {
    position: relative;
    z-index: 40;
  }

  .navbar-nav {
    z-index: 40;
    position: relative;
  }
}

/* Navbar base */
.header-navbar {
  background: rgba(20, 20, 20, 0.96);
  border: none;
  height: 80px;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  overflow: visible;
}

/* Navbar wrapper */
.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 6%;
  position: relative;
  flex-wrap: wrap; /* ✅ allows full menu to expand vertically on mobile */

}

/* Navbar menus */
.navbar-nav {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.navbar-nav li {
  position: relative;
}

/* Navbar links */
.navbar-inverse .navbar-nav > li > a {
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 12px;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}
.navbar-inverse .navbar-nav > li > a i {
  margin-right: 6px;
  font-size: 15px;
  opacity: 0.9;
}
.navbar-inverse .navbar-nav > li > a:hover {
  color: var(--color-primary);
}
.navbar-inverse .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), #b9954f);
  transition: width 0.3s ease;
}
.navbar-inverse .navbar-nav > li > a:hover::after {
  width: 100%;
}

/* Centered logo */
.navbar-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}
.navbar-center-logo img {
  height: 110px;
  width: auto;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.95);
  padding: 6px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(247, 200, 115, 0.4);
  animation: logoSpin 12s linear infinite;
  transition: box-shadow .3s, animation-play-state .3s;
}
.navbar-center-logo img:hover {
  animation-play-state: paused;
  box-shadow: 0 0 32px rgba(247, 200, 115, 0.85);
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


//* =========================================
   DROPDOWN MENU (FANTASY GOLD STYLE)
========================================= */
.navbar-nav > li.dropdown {
  position: relative;
}

/* --- DESKTOP STYLE --- */
@media (min-width: 992px) {
  /* Keep dropdown rendered & centered (no jump) */
  .dropdown-menu.fantasy-dropdown {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;

    /* override Bootstrap hidden state */
    display: block !important;

    /* hidden by default but still measured */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background: linear-gradient(180deg, rgba(22,18,12,.98) 0%, rgba(12,10,8,.98) 100%);
    border: 1px solid rgba(247,200,115,.25);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 170px;
    box-shadow:
      0 0 12px rgba(247,200,115,.15),
      inset 0 0 8px rgba(255,220,150,.05);
    backdrop-filter: blur(3px);
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 100;
  }

  /* Show dropdown on hover */
  .navbar-nav > li.dropdown:hover > .dropdown-menu.fantasy-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* --- MOBILE / TABLET STYLE --- */
@media (max-width: 991px) {
  /* hidden by default, shown when Bootstrap adds .open */
  .navbar-nav li.dropdown .fantasy-dropdown {
    display: none !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .navbar-nav li.dropdown.open .fantasy-dropdown {
    display: block !important;
  }

  .navbar-nav li.dropdown .fantasy-dropdown > li > a {
    display: block !important;
    text-align: center !important;
    padding: 14px 0 !important;
    color: var(--color-text-light) !important;
    border-bottom: 1px solid rgba(247,200,115,0.08) !important;
    background: transparent !important;
  }

  .navbar-nav li.dropdown .fantasy-dropdown > li > a:hover {
    background: rgba(247,200,115,0.1) !important;
    color: var(--color-primary) !important;
  }
}


.fantasy-dropdown > li > a {
  color: #e5d7b5 !important;
  font-size: 13.5px;
  padding: 9px 16px;
  display: block;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: 0.2s ease;
  background: transparent;
}
.fantasy-dropdown > li > a:hover {
  background: linear-gradient(90deg, rgba(247, 200, 115, 0.12) 0%, rgba(255, 220, 160, 0.08) 100%);
  color: var(--color-primary) !important;
  padding-left: 20px;
  box-shadow: inset 0 0 6px rgba(247, 200, 115, 0.15);
}
.fantasy-dropdown > li:not(:last-child) > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dropdown-menu.fantasy-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(247, 200, 115, 0.2);
}

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

/* =========================================
   PANEL BASE STYLE
========================================= */
.panel {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #333;
  color: #ddd;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.panel-heading {
  background: linear-gradient(to right, #2b2b2b, #1b1b1b);
  color: var(--color-primary) !important;
  font-weight: 600;
  border-bottom: 1px solid #444;
}
.panel-heading.d-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 18px !important;
}

.panel-body {
  font-size: 14px;
  line-height: 1.6;
}
.panel-footer {
  background-color: var(--color-dark-bg);
  font-size: 13px;
  color: #aaa;
}
.panel-gold .panel-heading {
  background: linear-gradient(to right, #3b2a15, #1f160a);
  color: #ffd37a !important;
}

/* =========================================
   LEFT SIDE (LOGIN + SERVER INFO)
========================================= */
.panel-dark {
  background: rgba(22, 22, 22, 0.95);
  border: 1px solid rgba(80, 65, 40, 0.6);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(5px);
}
.panel-dark .panel-heading {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(90, 70, 40, 0.5);
}
.panel-dark .list-group-item {
  background: transparent;
  color: #ddd;
  border: 0;
  border-bottom: 1px solid rgba(70, 55, 40, 0.3);
  font-size: 13.5px;
}
.panel-dark .list-group-item:last-child {
  border-bottom: 0;
}

/* Inputs */
.panel-dark input.form-control {
  background: var(--color-dark-bg);
  border: 1px solid #333;
  color: #eee;
  border-radius: 3px;
  font-size: 13px;
  transition: 0.3s;
}
.panel-dark input.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(247, 200, 115, 0.6);
  background: #161616;
  color: #fff;
}
.panel-dark .input-group-addon {
  background: #222;
  border: 1px solid #333;
  color: var(--color-primary);
  min-width: 38px; /* 👈 fixes icon width without affecting input */
  text-align: center;
  padding: 8px 0; /* centers icon vertically */
  border-right: none; /* smooth join with input */
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--color-primary), #e1b758);
  color: var(--color-dark-bg);
  font-weight: 600;
  border: none;
  border-radius: 3px;
  transition: 0.2s;
  box-shadow: 0 0 8px rgba(247, 200, 115, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffd37a, #f0c25f);
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.6);
}
.btn-gray {
  background: #2b2b2b;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 3px;
  transition: 0.2s;
}
.btn-gray:hover {
  background: #3a3a3a;
  color: #fff;
}

/* Status Indicators */
.status-online { color: #8cff8c; font-weight: 600; }
.status-offline { color: #ff8080; font-weight: 600; }

/* ===============================
   COUNTDOWN + TRAILER SECTION
=============================== */
.countdown-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 5px;
}

.time-segment {
  background: linear-gradient(180deg, rgba(25,25,25,0.95), rgba(15,15,15,0.9));
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 80px;
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.15);
  text-align: center;
}

.time-segment span {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #ffd37a;
  text-shadow: 0 0 8px rgba(247, 200, 115, 0.4);
  line-height: 1.2;
}

.time-segment small {
  display: block;
  font-size: 12px;
  color: #bfae7a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(247, 200, 115, 0.25);
  border: 1px solid rgba(247, 200, 115, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ===============================
   TRAILER CAROUSEL
=============================== */

/* ── Latest Video ─────────────────────────────────────────── */
/* Reuses .video-wrapper styles (gold border + glow already defined above) */
.latest-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(247, 200, 115, 0.25);
    box-shadow: 0 0 20px rgba(247, 200, 115, 0.2);
    margin: 0 auto;
    max-width: 900px;
}
.latest-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 8px;
}

.trailer-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(247,200,115,0.25);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(247,200,115,0.25);
  background: rgba(15,15,15,0.96);
  overflow: hidden;
}

/* Keep 16:9 ratio */
.trailer-carousel::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.trailer-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.trailer-slide.active {
  display: block;
  opacity: 1;
}

.trailer-slide iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Arrows */
.trailer-prev, .trailer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(247,200,115,0.25);
  color: var(--color-primary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}
.trailer-prev:hover, .trailer-next:hover {
  background: linear-gradient(135deg, var(--color-primary), #b9954f);
  color: var(--color-dark-bg);
  box-shadow: 0 0 10px rgba(247,200,115,0.4);
}
.trailer-prev { left: 10px; }
.trailer-next { right: 10px; }

/* Dots */
.trailer-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.trailer-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(247,200,115,0.4);
  background: rgba(30,30,30,0.9);
  cursor: pointer;
  transition: all 0.25s ease;
}
.trailer-dots button.active {
  background: linear-gradient(135deg, var(--color-primary), #b9954f);
  box-shadow: 0 0 8px rgba(247,200,115,0.4);
}
.trailer-dots button:hover {
  background: var(--color-primary);
}

/* ===============================
   NEWS FEED (Home Page)
=============================== */
.news-item {
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(247, 200, 115, 0.15);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeInNews 0.45s ease forwards;
}
@keyframes fadeInNews {
  to { opacity: 1; transform: translateY(0); }
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(247, 200, 115, 0.25);
}

/* Title — same tone as panel headings */
.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  text-shadow: 0 0 4px rgba(247, 200, 115, 0.3);
}

/* Content — same weight and tone as dashboard body text */
.news-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  white-space: pre-line;
  margin-bottom: 10px;
}

/* Footer — same color and font as panel footer */
.news-footer {
  font-size: 13px;
  color: #b3a78f;
  text-align: right;
  border-top: 1px solid rgba(247,200,115,0.08);
  padding-top: 6px;
  letter-spacing: 0.25px;
}


/* ===============================
   NEWS LOGS (Admin Add News)
=============================== */
.news-short,
.news-full {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.4;
  color: #ddd;
}
.toggle-news {
  display: inline-block;
  color: var(--color-primary);
  font-size: 12px;
  margin-top: 4px;
  text-decoration: none;
}
.toggle-news:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================================
   TOP RANK TABLE
========================================= */
.table {
  width: 100%;
  margin-bottom: 0;
  background: rgba(18, 18, 18, 0.9);
  border: none;
  border-radius: 5px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
  table-layout: auto;
}
.table th {
  background: linear-gradient(180deg, var(--color-panel-head) 0%, #161616 100%);
  color: var(--color-primary);
  border: none;
  border-bottom: 1px solid rgba(70, 55, 40, 0.3) !important;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 0;
}
/* Only uppercase actual column headers in thead, not label cells */
.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.table td {
  color: var(--color-text);
  border: none;
  border-bottom: 1px solid rgba(70, 55, 40, 0.3) !important;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  transition: background 0.2s ease-in-out;
}
.table tbody tr:hover {
  background: rgba(247, 200, 115, 0.07);
}
.table tbody tr:first-child {
  background: rgba(247, 200, 115, 0.12);
  font-weight: 600;
  color: #fff3c1;
  text-shadow: 0 0 5px rgba(247, 200, 115, 0.25);
}

/* =========================================
   TOP CLASS INLINE BLOCKS (ABOVE TABLE)
========================================= */
.top-class-inline {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 12px 25px;
  background: rgba(20, 20, 20, 0.85);
  border-bottom: 1px solid rgba(247, 200, 115, 0.1);
  margin-bottom: 15px;
}

/* === Each Top-Class Card === */
.top-class-box {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(25,25,25,0.97), rgba(15,15,15,0.95));
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ddd;
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.1);
  transition: all 0.25s ease;
  height: 100px;
  overflow: hidden;
}

.top-class-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(247, 200, 115, 0.25);
}

/* === Class Image on Left === */
.top-class-box .class-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  border: 1px solid rgba(247, 200, 115, 0.25);
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.1);
  background: var(--color-dark-bg);
}
.top-class-box .class-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* === Right Side (Info) === */
.top-class-box .info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-class-box .top-title {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

.top-class-box .top-name {
  font-weight: 600;
  color: #fff3c1;
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-class-box .top-level {
  color: #cbb37a;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.3;
}

/* === Eye Icon === */
.top-class-box .view-inv {
  color: var(--color-primary);
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.top-class-box .view-inv:hover i {
  color: #ffd37a;
  transform: scale(1.15);
  text-shadow:
    0 0 10px rgba(247, 200, 115, 0.6),
    0 0 20px rgba(247, 200, 115, 0.3);
}
.top-class-box .view-inv i {
  font-size: 14px;
  transition: 0.25s ease;
}

/* === Responsive === */
@media (max-width: 992px) {
  .top-class-inline {
    justify-content: space-around;
  }
  .top-class-box {
    flex: 1 1 45%;
    max-width: 45%;
    height: 110px;
  }
}
@media (max-width: 600px) {
  .top-class-inline {
    flex-direction: column;
    align-items: center;
  }
  .top-class-box {
    width: 92%;
    height: 110px;
  }
}

/* =========================================
   UNIVERSAL RANK TABLE STRIPING (Fantasy Style)
========================================= */
.table-striped tbody tr:nth-of-type(odd),
.table.coven-table tbody tr:nth-of-type(odd) {
  background: rgba(25, 25, 25, 0.9) !important;
}

.table-striped tbody tr:nth-of-type(even),
.table.coven-table tbody tr:nth-of-type(even) {
  background: rgba(30, 30, 30, 0.95) !important;
}

.table-striped tbody tr:hover,
.table.coven-table tbody tr:hover {
  background: rgba(247, 200, 115, 0.07) !important;
  transition: background 0.25s ease;
}

.table.coven-table tbody tr:first-child {
  background: transparent;
  font-weight: normal;
  color: inherit;
  text-shadow: none;
}

.table.coven-table thead th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* === Fix: Table responsive overflow showing on full-width === */
.table-responsive {
  border: none !important;
  background: transparent !important;
  overflow-x: auto;
  overflow-y: hidden;              /* prevent vertical scrollbars */
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-shadow: none !important;
}

/* Fix DataTables nowrap stretching full width */
.table-responsive .dataTable {
  width: 100% !important;          /* keep within container */
  table-layout: auto !important;
  white-space: nowrap !important;
}

/* Hide horizontal scroll when not needed */
.table-responsive:has(table.coven-table:not([style*="width"])) {
  overflow-x: visible;
}

/* Optional: refined scrollbar color */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(247, 200, 115, 0.25);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(25, 25, 25, 0.5);
}

/* =========================================
   UNIVERSAL PROGRESS BAR (outside #ranking)
========================================= */
.progress-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25px;
  position: relative;
  overflow: visible !important;
  z-index: 5;
}

.progress-bar-segments {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: relative;
  cursor: pointer;
}

.progress-bar-segments span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.progress-bar-segments .bg-warning {
  background: linear-gradient(90deg, var(--color-primary), #b9954f);
  border: 1px solid rgba(247, 200, 115, 0.35);
  box-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
}

.progress-bar-segments .bg-light {
  background: rgba(35, 35, 35, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.15);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.progress-bar-segments span:hover {
  transform: scale(1.3);
}

.progress-bar-segments .partial {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(35, 35, 35, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.15);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.progress-bar-segments .partial .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #b9954f);
  box-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
}

/* Tooltip */
.progress-bar-segments::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.96);
  color: var(--color-primary);
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, top 0.25s ease;
  z-index: 99;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.15);
}

.progress-bar-segments:hover::after {
  opacity: 1;
  top: -34px;
}

/* === Animal Tooltip === */
.animal-icon {
  display: inline-block;
  position: relative;
}

.animal-icon img {
  border: 1px solid rgba(247,200,115,.15);
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(247,200,115,.15);
  transition: transform .15s ease, box-shadow .15s ease;
  vertical-align: middle;
}

.animal-icon img:hover {
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(247,200,115,.25);
}

/* =========================================
   DOWNLOAD PAGE 
========================================= */
/* === Download Page Layout === */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(20,16,8,0.9), rgba(12,10,5,0.9));
  border: 1px solid rgba(247,200,115,0.12);
  padding: 14px 16px;
  border-radius: 8px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
  gap: 10px;
}
.download-row:hover {
  background: linear-gradient(135deg, rgba(28,22,10,0.95), rgba(18,14,6,0.95));
  border-color: rgba(247,200,115,0.28);
  box-shadow: 0 0 16px rgba(247,200,115,0.12);
  transform: translateY(-1px);
}

.download-info {
  flex: 1 1 auto;
  min-width: 200px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 220px;
}

/* Divider line between sections */
.divider-light {
  border: none;
  border-top: 1px solid rgba(247,200,115,0.1);
  margin: 22px 0;
  position: relative;
}

/* === Buttons === */
.btn-mega {
  background-color: #d92d2d;
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-mega:hover {
  box-shadow: 0 0 10px rgba(217, 45, 45, 0.6);
  color: #fff;
}

.btn-mediafire {
  background-color: #1a8cff;
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-mediafire:hover {
  box-shadow: 0 0 10px rgba(26, 140, 255, 0.6);
  color: #fff;
}

.btn-drive {
  background-color: #34a853;
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-drive:hover {
  box-shadow: 0 0 10px rgba(52, 168, 83, 0.6);
  color: #fff;
}

.btn-microsoft {
  background-color: #0078d7;
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-microsoft:hover {
  box-shadow: 0 0 10px rgba(0, 120, 215, 0.6);
  color: #fff;
}

/* =========================================
   RULES PAGE - ACCORDION STYLE
========================================= */
.panel-group .panel-heading {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.panel-group .panel-heading:hover {
  background: linear-gradient(135deg, #3b2a15, #1a140a);
  box-shadow: 0 0 8px rgba(247, 200, 115, 0.3);
}

.panel-group .panel-title a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 15px;
  outline: none;
}
.panel-group .panel-title a:focus,
.panel-group .panel-title a:active,
.panel-group .panel-heading:focus,
.panel-group .panel-heading:active {
  outline: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.panel-group .panel-collapse .panel-body,
.panel-group .panel-heading + .panel-collapse > .panel-body {
  background: rgba(20, 16, 10, 0.97) !important;
  border-top: 1px solid rgba(247, 200, 115, 0.18) !important;
  color: #ccc !important;
  padding: 14px 18px !important;
}

.panel-group .panel-body ul {
  margin: 6px 0 4px 20px;
  list-style-type: disc;
  padding: 0;
}

.panel-group .panel-body li {
  margin-bottom: 7px;
  line-height: 1.6;
  color: #c8c0b0;
}

.panel-group .panel-body li strong {
  color: var(--color-primary);
}

.panel-group .panel-body p {
  margin-bottom: 0;
  color: #c8c0b0;
  line-height: 1.6;
}

/* =========================================
   DASHBOARD INFO CARD
========================================= */
.dashboard-info {
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.95), rgba(15, 15, 15, 0.95));
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.dashboard-info .info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 30px;
}

.dashboard-info .info-item i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--color-primary);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dashboard-info .info-label {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dashboard-info .info-value {
  color: #eaeaea;
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
  padding-left: 5px;
  border-left: 2px solid rgba(247, 200, 115, 0.25);
}

.dashboard-info .info-item:hover .info-value {
  color: #ffd37a;
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.3);
}

/* =========================================
   DASHBOARD BUTTONS
========================================= */
.dashboard-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-dashboard {
  background: linear-gradient(135deg, #2b2b2b, var(--color-panel));
  border: 1px solid rgba(247, 200, 115, 0.25);
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 180px; /* ✅ fixed button width */
  text-align: center;
}


.btn-dashboard:hover {
  background: linear-gradient(135deg, var(--color-primary), #e1b758);
  color: var(--color-dark-bg) !important;
  border-color: var(--color-primary);
  text-decoration: none; /* remove underline */
}

.btn-dashboard i {
  font-size: 14px;
}

/* Admin buttons (gold outline) */
.btn-dashboard.admin {
  background: rgba(40, 30, 15, 0.9);
  border: 1px solid rgba(247, 200, 115, 0.4);
  color: #ffd37a;
}

.btn-dashboard.admin:hover {
  background: linear-gradient(135deg, #ffd37a, #f0c25f);
  color: var(--color-dark-bg);
}

/* Logout button */
.btn-dashboard.logout {
  background: linear-gradient(135deg, #a33, #611);
  border: 1px solid rgba(255, 100, 80, 0.4);
  color: #ffdede;
}

.btn-dashboard.logout:hover {
  background: linear-gradient(135deg, #ff6666, #cc3333);
  color: var(--color-dark-bg);
  text-decoration: none;
}

/* =========================================
   FLOATING ADMIN TOOLBAR
========================================= */
.admin-toolbar {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, rgba(25,25,25,0.95), rgba(15,15,15,0.9));
  border: 1px solid rgba(247,200,115,0.25);
  border-radius: 50%;
  color: var(--color-primary);
  text-decoration: none; /* <-- no underline */
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Hover & focus states */
.admin-btn:hover,
.admin-btn:focus {
  background: linear-gradient(135deg, var(--color-primary), #b9954f);
  color: var(--color-dark-bg);
  box-shadow: 0 0 15px rgba(247,200,115,0.4);
  transform: translateY(-2px);
  text-decoration: none; /* <-- prevents underline on hover/focus */
  outline: none;
}

/* Tooltip (same logic as .view-inv) */
.admin-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,0.96);
  color: var(--color-primary);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(247,200,115,0.25);
  border: 1px solid rgba(247,200,115,0.25);
  opacity: 0;
  animation: fadeInTooltip .3s forwards;
  pointer-events: none;
}
@keyframes fadeInTooltip {
  to { opacity: 1; }
}

/* Logout button (special red tone) */
.admin-btn.logout {
  background: linear-gradient(135deg, #a33, #611);
  border-color: rgba(255, 100, 80, 0.4);
  color: #ffdede;
}
.admin-btn.logout:hover {
  background: linear-gradient(135deg, #ff6666, #cc3333);
  color: var(--color-dark-bg);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--color-dark-bg);
  color: #bbb;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}
footer p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3px;
}
footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  color: #fff;
}

/* =========================================
   ALERTS
========================================= */
.alert {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(247, 200, 115, 0.25);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  background: rgba(25, 25, 25, 0.95);
  color: #ddd;
  margin-bottom: 15px;
  backdrop-filter: blur(4px);
}

/* ✅ Success */
.alert-success {
  background: linear-gradient(135deg, rgba(20, 40, 20, 0.9), rgba(15, 25, 15, 0.9));
  border-color: rgba(140, 255, 140, 0.25);
  color: #baffba;
  text-shadow: 0 0 6px rgba(0, 255, 80, 0.2);
}

/* ⚠ Warning */
.alert-warning {
  background: linear-gradient(135deg, rgba(50, 40, 10, 0.95), rgba(40, 30, 5, 0.95));
  border-color: rgba(247, 200, 115, 0.35);
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.3);
}

/* ❌ Danger */
.alert-danger {
  background: linear-gradient(135deg, rgba(60, 10, 10, 0.9), rgba(40, 5, 5, 0.9));
  border-color: rgba(255, 120, 120, 0.25);
  color: #ffb3b3;
  text-shadow: 0 0 6px rgba(255, 80, 80, 0.3);
}

/* 💬 Info */
.alert-info {
  background: linear-gradient(135deg, rgba(15, 25, 35, 0.95), rgba(10, 20, 30, 0.95));
  border-color: rgba(100, 180, 255, 0.25);
  color: #b8d7ff;
  text-shadow: 0 0 6px rgba(100, 180, 255, 0.2);
}

/* Links */
.alert a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}
.alert a:hover {
  color: #fff3c1;
}

/* =========================================
   ALERT ANIMATION
========================================= */
.alert {
  opacity: 0;
  transform: scale(0.96);
  animation: fadeInAlert 0.4s ease forwards;
}

@keyframes fadeInAlert {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================
   COVEN BADGE THEME (BOOTSTRAP-COMPATIBLE)
========================================= */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;          /* ✅ matches Bootstrap 5 */
  font-size: 0.75em;               /* consistent with .btn-sm and default text */
  font-weight: 600;
  line-height: 1;
  border-radius: 0.375rem;         /* 6px radius */
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(247,200,115,0.25);
  background: rgba(25,25,25,0.95);
  color: #ddd;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
  vertical-align: middle;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}

/* === Golden (Primary / Warning tone) === */
.badge-gold,
.badge-warning,
.badge-primary {
  background: linear-gradient(135deg, rgba(45,35,15,0.95), rgba(20,15,5,0.95));
  color: var(--color-primary) !important;
  border-color: rgba(247,200,115,0.35);
  text-shadow: 0 0 5px rgba(247,200,115,0.25);
  box-shadow: 0 0 6px rgba(247,200,115,0.2);
}

/* === Success === */
.badge-success {
  background: linear-gradient(135deg, rgba(25,40,25,0.95), rgba(15,25,15,0.9));
  color: #baffba !important;
  border-color: rgba(140,255,140,0.25);
  text-shadow: 0 0 5px rgba(0,255,100,0.25);
}

/* === Danger === */
.badge-danger {
  background: linear-gradient(135deg, rgba(60,15,15,0.9), rgba(35,10,10,0.9));
  color: #ffb3b3 !important;
  border-color: rgba(255,120,120,0.25);
  text-shadow: 0 0 5px rgba(255,80,80,0.25);
}

/* === Info === */
.badge-info {
  background: linear-gradient(135deg, rgba(15,25,35,0.95), rgba(10,20,30,0.95));
  color: #b8d7ff !important;
  border-color: rgba(100,180,255,0.25);
  text-shadow: 0 0 5px rgba(100,180,255,0.2);
}

/* === Secondary / Neutral === */
.badge-secondary {
  background: linear-gradient(135deg, rgba(35,35,35,0.95), rgba(20,20,20,0.9));
  color: #ccc !important;
  border-color: rgba(247,200,115,0.1);
}

/* === Light variant === */
.badge-light {
  background: linear-gradient(135deg, rgba(247,200,115,0.1), rgba(247,200,115,0.05));
  color: var(--color-primary) !important;
  border-color: rgba(247,200,115,0.25);
}

/* === Hover glow === */
.badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(247,200,115,0.25);
}

/* === Size variants === */
.badge-sm { font-size: 0.65em; padding: 0.25em 0.55em; }
.badge-lg { font-size: 0.85em; padding: 0.45em 0.8em; }

/* =========================================
   CHAR/INV VIEWER STYLES
========================================= */
.coven-form {
  background: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.25);
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.12);
  margin-bottom: 16px;
}

.coven-form .group-title {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 13px;
  margin-bottom: 6px;
}

.coven-form .form-check-label {
  color: #e6e6e6;
  margin-right: 14px;
  cursor: pointer;
}

.coven-form input.form-control,
.coven-form select.form-control {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(247, 200, 115, 0.2);
  color: #ddd;
  font-size: 13px;
  border-radius: 4px;
  transition: 0.2s;
}
.coven-form input.form-control:focus,
.coven-form select.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(247, 200, 115, 0.35);
  color: #fff;
}

/* =========================================
   EQUIPMENT MODAL
========================================= */
#equipModal .modal-content {
  background: linear-gradient(180deg, rgba(25,25,25,0.97), rgba(15,15,15,0.95));
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 10px;
  box-shadow:
    0 0 20px rgba(247, 200, 115, 0.2),
    inset 0 0 10px rgba(0, 0, 0, 0.8);
  color: var(--color-text-light);
}

#equipModal .modal-header {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
  border-bottom: 1px solid rgba(247, 200, 115, 0.25);
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
}

#equipModal .modal-title {
  text-transform: none !important;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-primary);
  letter-spacing: 0.3px;
}

#equipModal .close {
  color: var(--color-primary);
  opacity: 0.9;
  font-size: 24px;
  transition: 0.2s;
  position: absolute;
  right: 12px;
  top: 8px;
}
#equipModal .close:hover {
  color: #fff3c1;
  opacity: 1;
  transform: scale(1.2);
}

#equipModal .modal-body {
  background: rgba(20,20,20,0.95);
  border-top: 1px solid rgba(247, 200, 115, 0.1);
  border-bottom: 1px solid rgba(247, 200, 115, 0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
}

#equipModal .text-muted {
  color: #bfae7a !important;
}

/* Tooltip compatibility inside modal */
div.tooltip {
  z-index: 99999 !important;
}

/* Centering inside modal */
#equipModalBody #inv-container {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

/* =========================================
   VIEW EQUIPMENT ICON (EYE BUTTON)
========================================= */
.view-inv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none !important;
  transition: all 0.25s ease;
  position: relative;
  margin-right: 5px;
}

.view-inv i {
  font-size: 15px;
  transition: all 0.25s ease;
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
}

.view-inv:hover i {
  color: #ffd37a;
  text-shadow:
    0 0 10px rgba(247, 200, 115, 0.6),
    0 0 20px rgba(247, 200, 115, 0.3);
  transform: scale(1.15);
}

/* Custom tooltip */
.view-inv[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: rgba(20, 20, 20, 0.9);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.25);
  pointer-events: none;
}

/* =========================================
   GUILD MODAL
========================================= */
.coven-modal {
  background: linear-gradient(180deg, rgba(25,25,25,0.97), rgba(15,15,15,0.95));
  border: 1px solid rgba(247,200,115,0.25);
  border-radius: 10px;
  box-shadow:
    0 0 20px rgba(247,200,115,0.2),
    inset 0 0 10px rgba(0,0,0,0.8);
  color: var(--color-text-light);
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

.coven-modal .modal-header {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(247,200,115,0.4);
  border-bottom: 1px solid rgba(247,200,115,0.25);
  padding: 12px 20px;
}

.coven-modal .modal-title {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--color-primary);
}

.coven-modal .close {
  color: var(--color-primary);
  opacity: 0.9;
  font-size: 24px;
  transition: 0.2s;
  position: absolute;
  right: 12px;
  top: 8px;
}
.coven-modal .close:hover {
  color: #fff3c1;
  opacity: 1;
  transform: scale(1.2);
}

.coven-modal .modal-body {
  background: rgba(20,20,20,0.95);
  border-top: 1px solid rgba(247,200,115,0.1);
  border-bottom: 1px solid rgba(247,200,115,0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
}

/* =========================================
   GUILD VIEW ICON
========================================= */
.view-guild {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary); /* same golden tone */
  text-decoration: none !important;
  transition: all 0.25s ease;
  position: relative;
  margin-right: 5px;
}

.view-guild i {
  font-size: 15px;
  transition: all 0.25s ease;
  text-shadow: 0 0 6px rgba(247, 200, 115, 0.4);
}

.view-guild:hover i {
  color: #ffd37a;
  text-shadow:
    0 0 10px rgba(247, 200, 115, 0.6),
    0 0 20px rgba(247, 200, 115, 0.3);
  transform: scale(1.15);
}

/* Tooltip style same as inventory */
.view-guild[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: rgba(20, 20, 20, 0.9);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.25);
  pointer-events: none;
}

/* =========================================
   TABLES (Dashboard / Char Info)
========================================= */
.table.coven-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(28, 28, 28, 0.98);
  color: #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6);
}

.table.coven-table thead th {
  background: linear-gradient(180deg, #2b2b2b 0%, var(--color-panel) 100%);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(247, 200, 115, 0.1);
}

.table.coven-table tbody td,
.table.coven-table tbody th {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table.coven-table tbody tr:nth-child(even) {
  background: rgba(22, 22, 22, 0.9);
}

.table.coven-table tbody tr:hover {
  background: rgba(247, 200, 115, 0.05);
}

.table.coven-table th.bg-light {
  background: rgba(40, 40, 40, 0.9) !important;
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* === Fix Bootstrap gray border for dark tables === */
.table.coven-table > tbody > tr > td,
.table.coven-table > tbody > tr > th,
.table.coven-table > tfoot > tr > td,
.table.coven-table > tfoot > tr > th,
.table.coven-table > thead > tr > td,
.table.coven-table > thead > tr > th {
  border-top: none !important;
}
/* =========================================
   INVENTORY / STORAGE TAB STYLE
========================================= */
.inv-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
  border-bottom: 1px solid rgba(247, 200, 115, 0.15);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
  padding: 6px 0;
}

.inv-tab {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(247, 200, 115, 0.2);
  border-bottom: none;
  color: #c7b88f;
  font-weight: 600;
  padding: 10px 25px;
  margin: 0 6px;
  border-radius: 6px 6px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.inv-tab:hover {
  color: var(--color-primary);
  box-shadow: 0 0 8px rgba(247, 200, 115, 0.2);
}

.inv-tab.active {
  background: linear-gradient(180deg, rgba(247, 200, 115, 0.2) 0%, rgba(247, 200, 115, 0.05) 100%);
  color: var(--color-primary);
  border-color: rgba(247, 200, 115, 0.4);
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.25);
}

.inv-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #b9954f);
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.3);
  z-index: 2;
}

.inv-tabcontent {
  display: none;
  padding: 20px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.15);
  border-top: none;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
  border-radius: 0 0 8px 8px;
  animation: fadeIn 0.3s ease;
}

.inv-tabcontent.active {
  display: block;
}

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

.inv-tab.active {
  animation: pulseTab 0.7s ease-in-out;
}
@keyframes pulseTab {
  0% { box-shadow: 0 0 4px rgba(247,200,115,0.1); }
  50% { box-shadow: 0 0 15px rgba(247,200,115,0.4); }
  100% { box-shadow: 0 0 8px rgba(247,200,115,0.2); }
}

/* =========================================
   SKILLS TABLE
========================================= */

.table-skills {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, rgba(18,18,18,0.97), rgba(10,10,10,0.94));
  color: #dcdcdc;
  border: 1px solid rgba(247,200,115,0.15);
  font-size: 13px;
  margin: 0;
}

/* Header */
.table-skills thead th {
  background: rgba(25,25,25,0.98);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(247,200,115,0.25);
  padding: 10px 8px;
  text-align: center;
}

/* Table cells */
.table-skills td,
.table-skills th {
  border: none;
  padding: 9px 6px;
  vertical-align: middle;
  text-align: center;
}

/* Remove alternating colors */
.table-skills tbody tr {
  background: transparent;
}

/* Hover highlight */
.table-skills tbody tr:hover {
  background: rgba(247,200,115,0.05);
  transition: 0.25s ease;
}

/* Skill icon */
.table-skills img {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 6px rgba(247,200,115,0.15);
  vertical-align: middle;
}

/* Skill name */
.table-skills td.skill-name {
  color: #fff3c1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Grade column */
.table-skills td.skill-grade {
  color: #cbb37a;
  font-weight: 600;
}

/* Index column */
.table-skills td.skill-index {
  color: #aaa;
  font-weight: 400;
  width: 60px;
}

/* ===============================
   Character Trader
=============================== */
/* --- Character-actions layout --- */
.character-actions {
  display: flex;
  justify-content: center;      /* center the row */
  align-items: center;
  gap: 12px;                    /* spacing between buttons */
  flex-wrap: wrap;              /* wrap on small screens */
  margin-top: 10px;
}
.character-actions form,
.character-actions a {
  margin: 0;                    /* remove default spacing */
}

/* ===============================
   SCHEDULE MODULE
=============================== */

/* Navigation */
.schedule-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.schedule-nav a {
  color: var(--color-primary);
  border: 1px solid rgba(247, 200, 115, 0.25);
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
}

.schedule-nav a:hover {
  background: rgba(247, 200, 115, 0.12);
  box-shadow: 0 0 8px rgba(247, 200, 115, 0.25);
}

/* Main structure */
.schedule-wrapper {
  margin: 0 10px 15px;
}

.schedule-card {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(247, 200, 115, 0.1);
  margin-bottom: 20px;
  border-radius: 6px;
}

.schedule-header {
  background: rgba(247, 200, 115, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(247, 200, 115, 0.12);
}

.schedule-card.today .schedule-header {
  background: rgba(247, 200, 115, 0.12);
  box-shadow: 0 0 8px rgba(247, 200, 115, 0.2);
  color: #ffdf9e;
}

/* Grid layout */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 15px;
}

/* Event card */
.schedule-item {
  display: flex;
  align-items: center;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(247, 200, 115, 0.08);
  border-radius: 6px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.15);
}

/* Event image */
.schedule-img {
  flex-shrink: 0;
  margin-right: 10px;
}

.schedule-img img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: contain;
  opacity: 0.9;
}

/* Info text */
.schedule-info {
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.schedule-name {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}

.schedule-time {
  color: #e0e0e0;
  font-size: 13px;
  margin-top: 2px;
}

.schedule-timer {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  margin-top: 1px;
}

/* Compact version for sidebar */
#next-event {
  display: inline-block;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* =========================================
   DROP LIST PAGE 
========================================= */
.droplist-scope .dl-filter-bar {
  background: rgba(15,15,15,.96);
  border-bottom: 1px solid rgba(247,200,115,.15);
  padding: 10px 12px;
  text-align: center;
}

/* Filter Button */
.droplist-scope .btn-gold {
  background: rgba(247,200,115,.1);
  color: var(--color-primary);
  border: 1px solid rgba(247,200,115,.3);
  font-weight: 600;
  transition: .25s;
}
.droplist-scope .btn-gold:hover {
  background: rgba(247,200,115,.22);
  color: #fff7d1;
  box-shadow: 0 0 8px rgba(247,200,115,.25);
}

/* Dropdown Menu */
.droplist-scope .dropdown-menu {
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100% !important;
  margin-top: 6px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(247, 200, 115, 0.25);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.2);
  min-width: 160px;
  padding: 4px 0;
  z-index: 9999 !important;   /* always on top of table */
  position: absolute !important;
}
/* Allow dropdowns to overflow the table container */
.droplist-scope .dl-filter-bar .dropdown,
.droplist-scope .dl-filter-bar {
  position: relative;
  overflow: visible !important;
}
.droplist-scope,
.dl-table-wrap {
  overflow: visible !important;
}
.droplist-scope .dropdown-menu > li > a {
  color: #e5d7b5 !important;
  font-size: 13px;
  padding: 8px 12px;
  display: block;
  text-align: center;
}
.droplist-scope .dropdown-menu > li > a:hover {
  background: rgba(247,200,115,.1);
  color: var(--color-primary) !important;
}

/* Table */
.droplist-scope .coven-droplist thead th {
  text-align: center !important;
  vertical-align: middle !important;
  background: rgba(247,200,115,.05);
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  text-transform: uppercase;
}
.droplist-scope .coven-droplist td {
  color: #ccc;
  background: rgba(15,15,15,.97);
  border: none;
  vertical-align: middle;
}
.droplist-scope .coven-droplist tbody tr:hover td {
  background: rgba(247,200,115,.05);
}

/* Monster card */
.droplist-scope .monster-cell { text-align:center; }
.droplist-scope .monster-stack { display:flex; flex-direction:column; align-items:center; }
.droplist-scope .monster-img {
  max-width:120px;
  height:auto;
  border-radius:8px;
  border:1px solid rgba(247,200,115,.15);
  box-shadow:0 0 8px rgba(247,200,115,.15);
}
.droplist-scope .monster-name {
  margin-top:.5rem;
  font-weight:600;
  color:var(--color-primary);
  line-height:1.1;
  max-width:220px;
  word-break:break-word;
}
.droplist-scope .monster-level {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}

/* Drops */
.droplist-scope td.drops { white-space:normal; }
.droplist-scope .drop-icon {
  display:inline-block;
  margin:.125rem .25rem .25rem 0;
  vertical-align:top;
}
.droplist-scope .drop-icon img {
  max-height:40px;
  border-radius:5px;
  border:1px solid rgba(247,200,115,.15);
  transition:transform .15s ease, box-shadow .15s ease;
}
.droplist-scope .drop-icon img:hover {
  transform:scale(1.12);
  box-shadow:0 0 8px rgba(247,200,115,.25);
}

/* =========================================
   COVEN BOOTSTRAP PAGINATION THEME
========================================= */
/* === Fix: First row after thead not bold === */
.droplist-scope .coven-droplist tbody tr:first-child,
.droplist-scope .coven-droplist tbody tr:first-child td,
.droplist-scope .coven-droplist tbody tr:first-child th {
  font-weight: normal !important;
  color: #ccc !important;
  text-shadow: none !important;
  background: rgba(15, 15, 15, 0.97) !important;
}

/* === Add more breathing room below Area filter bar === */
.droplist-scope .dl-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* space between buttons */
  flex-wrap: wrap; /* wrap on small screens */
  background: rgba(15,15,15,.96);
  border-bottom: 1px solid rgba(247,200,115,.15);
  padding: 10px 12px;
  margin-bottom: 20px;
}


/* =========================================
   DROPLIST — RESPONSIVE / MOBILE
========================================= */
@media (max-width: 991px) {
  /* Stack filter bar buttons */
  .droplist-scope .dl-filter-bar {
    padding: 8px;
    gap: 6px;
  }
  .droplist-scope .dl-filter-bar .btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Make table horizontally scrollable */
  .dl-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .droplist-scope .coven-droplist {
    min-width: 480px;
  }

  /* Smaller monster image on tablet */
  .droplist-scope .monster-img {
    max-width: 80px;
  }
  .droplist-scope .monster-name {
    font-size: 13px;
    max-width: 160px;
  }
}

@media (max-width: 600px) {
  /* Even smaller on phones */
  .droplist-scope .monster-img {
    max-width: 60px;
  }
  .droplist-scope .monster-name {
    font-size: 12px;
    max-width: 120px;
  }
  .droplist-scope .monster-level {
    font-size: 13px;
  }
  .droplist-scope .coven-droplist thead th {
    font-size: 11px;
    padding: 6px 4px;
  }
  .droplist-scope .coven-droplist td {
    font-size: 12px;
    padding: 6px 4px;
  }
  .droplist-scope .drop-icon img {
    max-height: 32px;
  }
  /* Dropdown menu — full width on mobile */
  .droplist-scope .dropdown-menu {
    left: 0 !important;
    transform: none !important;
    width: 100%;
    min-width: unset;
  }
}

/* === purchase Steps === */
.purchase-steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.purchase-steps .step {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #666;
  background: rgba(20,16,8,0.8);
  border: 1px solid rgba(247,200,115,0.15);
  transition: all 0.2s;
}
.purchase-steps .step.active {
  background: linear-gradient(135deg, rgba(247,200,115,0.2), rgba(180,140,60,0.15));
  border-color: rgba(247,200,115,0.5);
  color: var(--color-primary);
  box-shadow: 0 0 10px rgba(247,200,115,0.15);
}

/* =========================================
   TEXT UTILITIES (Global Coven Theme)
========================================= */
.text-gold { color: var(--color-primary) !important; }
.text-muted { color: #b3a78f !important; }  /* <- updated muted color */

/* =========================================
   COVEN GLOBAL FORM RESET (OVERRIDES)
   Make sure selects/inputs match site theme
========================================= */

/* Baseline for all .form-control (Bootstrap + your forms) */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  background: rgba(20, 20, 20, 0.92) !important;
  border: 1px solid rgba(247, 200, 115, 0.25) !important;
  color: #ddd !important;
  border-radius: 4px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  padding: 7px 10px !important;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6) !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  background: rgba(25,25,25,0.96) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 6px rgba(247,200,115,0.35) !important;
  color: #fff !important;
  outline: none !important;
}

/* Placeholder tint */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(220,220,220,0.55) !important;
}

/* Disabled */
.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(30,30,30,0.85) !important;
  color: rgba(200,200,200,0.5) !important;
  border-color: rgba(247,200,115,0.15) !important;
  cursor: not-allowed !important;
}

/* =========================
   SELECT: unified arrow + padding
   (works for Bootstrap selects and plain <select>)
========================= */
select.form-control,
select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  /* golden chevron */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;

  padding-right: 34px !important; /* make room for arrow */
  height: 36px;                    /* consistent height with inputs */
}

/* brighter arrow on focus */
select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, #fff3c1 50%),
    linear-gradient(135deg, #fff3c1 50%, transparent 50%);
}

/* hide default arrow on old IE/Edge */
select::-ms-expand { display: none; }

/* Option panel colors (supported browsers only) */
select option {
  background: #151515;
  color: #e6e6e6;
}

/* =========================
   Input group addon (global)
========================= */
.input-group-addon {
  background: rgba(25,25,25,0.95) !important;
  border: 1px solid rgba(247,200,115,0.25) !important;
  color: var(--color-primary) !important;
  border-right: none !important;
  font-weight: 600;
}

/* =========================
   DataTables controls consistency
========================= */
.dataTables_filter input[type="search"],
.dataTables_length select {
  background: rgba(20,20,20,0.92) !important;
  border: 1px solid rgba(247,200,115,0.25) !important;
  color: #ddd !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6) !important;
  height: 36px;
  padding: 7px 10px !important;
}

/* In case Bootstrap sets white background on .form-control specifically */
select.form-control,
input.form-control,
textarea.form-control {
  background-color: rgba(20,20,20,0.92) !important;
  color: #ddd !important;
}

/* =========================================
   GLOBAL PAGINATION STYLE (Responsive Gold)
========================================= */
.dataTables_paginate {
  margin: 14px 0;
  text-align: center;
}

/* Container */
.dataTables_paginate .pagination {
  display: flex;
  flex-wrap: wrap;              /* ✅ allows wrapping on mobile */
  justify-content: center;      /* ✅ centers the buttons like Bootstrap */
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Buttons */
.dataTables_paginate .pagination li a,
.dataTables_paginate .pagination li span {
  background: rgba(25,25,25,.92);
  border: 1px solid rgba(247,200,115,.25);
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-block;
  min-width: 30px;
  text-align: center;
  line-height: 1.2;
}

/* Hover */
.dataTables_paginate .pagination li a:hover {
  background: rgba(247,200,115,.2);
  color: #fff3c1;
  box-shadow: 0 0 8px rgba(247,200,115,.3);
}

/* Active */
.dataTables_paginate .pagination .active a,
.dataTables_paginate .pagination .active span {
  background: linear-gradient(135deg, var(--color-primary), #b9954f);
  color: var(--color-dark-bg);
  border-color: rgba(247,200,115,.4);
  box-shadow: 0 0 10px rgba(247,200,115,.4);
}

/* Disabled */
.dataTables_paginate .pagination .disabled a,
.dataTables_paginate .pagination .disabled span {
  opacity: .35;
  cursor: default;
}

/* ✅ Mobile Optimization */
@media (max-width: 600px) {
  .dataTables_paginate .pagination li a,
  .dataTables_paginate .pagination li span {
    padding: 5px 8px;
    font-size: 12px;
  }
}

/* ── Table overflow on mobile ──────────────────────────────────────── */
@media (max-width: 767px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Reduce table font/padding on mobile */
  .table th,
  .table td {
    font-size: 12px;
    padding: 7px 4px;
    white-space: nowrap;
  }
}

/* ── Tablet (768px – 991px): tighten 3-col layout ─────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  /* Collapse left/right sidebars into narrower columns */
  .col-md-3 { width: 25%; }
  .col-md-6 { width: 50%; }

  /* Smaller sidebar panels */
  .panel-dark .panel-body { padding: 10px 12px; }
  .panel-dark .btn { font-size: 12px; padding: 6px 8px; }

  /* Logo smaller on tablet */
  .navbar-center-logo img { height: 80px; }

  /* News items less padding */
  .news-item { padding: 12px 14px; }

  /* Countdown boxes tighter */
  .time-segment { min-width: 60px; padding: 8px 10px; }
  .time-segment span { font-size: 20px; }
}


/* =========================================
   RESPONSIVE MENU
========================================= */

.menu-toggle { display: none; }

@media (max-width: 991px) {

  /* ── Toggle button — centered icon ─────── */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    color: var(--color-primary);
    font-size: 24px;
    cursor: pointer;
    border-bottom: 1px solid rgba(247,200,115,0.1);
    box-sizing: border-box;
  }
  #menu-icon {
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .navbar-nav.show ~ * #menu-icon,
  body.menu-open #menu-icon {
    transform: rotate(90deg);
  }

  /* ── Wrapper ───────────────────────────── */
  .navbar-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
  }

  /* ── Hide desktop logo ─────────────────── */
  .navbar-center-logo { display: none; }

  /* ── Combined mobile nav ───────────────── */
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(10,10,14,0.98);
    border-top: 1px solid rgba(247,200,115,0.12);
    animation: fadeIn 0.25s ease;
    padding: 6px 0 10px;
    margin: 0 !important;
    float: none !important;
  }
  /* navbar-right loses its float on mobile so it stacks after navbar-left */
  .navbar-nav.navbar-right {
    float: none !important;
    margin: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  .navbar-nav.show { display: flex; }

  /* ── Nav items ─────────────────────────── */
  .navbar-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(247,200,115,0.06);
  }
  .navbar-nav > li:last-child { border-bottom: none; }

  .navbar-nav > li > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: auto !important;
    padding: 13px 20px !important;
    color: #ddd !important;
    background: transparent !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background .15s, color .15s;
  }
  .navbar-nav > li > a:hover,
  .navbar-nav > li > a:focus {
    background: rgba(247,200,115,0.07) !important;
    color: var(--color-primary) !important;
  }
  .navbar-nav > li > a i.fa {
    width: 18px;
    text-align: center;
    color: var(--color-primary);
    opacity: 0.8;
  }

  /* ── Dropdown trigger ──────────────────── */
  .navbar-nav > li.dropdown > a {
    justify-content: center !important;
    position: relative;
  }
  .navbar-nav > li.dropdown > a .caret {
    position: absolute;
    right: 20px;
  }

  /* ── Dropdown submenu ──────────────────── */
  .navbar-nav .dropdown-menu,
  .navbar-nav .fantasy-dropdown {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: rgba(20,16,10,0.98) !important;
    border: none !important;
    border-top: 1px solid rgba(247,200,115,0.06) !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: none;
  }
  .navbar-nav .open > .dropdown-menu,
  .navbar-nav .open > .fantasy-dropdown {
    display: block !important;
  }
  .navbar-nav .dropdown-menu > li > a,
  .navbar-nav .fantasy-dropdown > li > a {
    padding: 10px 20px !important;
    font-size: 13px !important;
    color: #aaa !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .navbar-nav .dropdown-menu > li > a:hover,
  .navbar-nav .fantasy-dropdown > li > a:hover {
    color: var(--color-primary) !important;
    background: rgba(247,200,115,0.06) !important;
  }

  /* ── Badges in nav ─────────────────────── */
  .navbar-nav .badge-gold {
    margin-left: auto;
    font-size: 10px;
  }

  /* ── Prevent body scroll when menu open ── */
  body.menu-open { overflow: hidden; }

}

/* =========================================
   ADMIN FAB MENU
========================================= */
#admin-fab-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary, #f7c873);
  color: #111;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(247,200,115,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
#admin-fab-btn:hover { background: #ffd97a; }
#admin-fab-menu {
  position: fixed;
  bottom: 90px;
  left: 28px;
  z-index: 9998;
  background: #1c1c1c;
  border: 1px solid rgba(247,200,115,.3);
  border-radius: 10px;
  padding: 10px;
  min-width: 200px;
  max-width: 220px;
  width: auto;
  display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
#admin-fab-menu.open { display: block; }
.admin-fab-group { margin-bottom: 8px; }
.admin-fab-group-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px 4px;
}
.admin-fab-item {
  display: block;
  padding: 6px 10px;
  color: #d7d7d7;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.admin-fab-item:hover {
  background: rgba(247,200,115,.15);
  color: var(--color-primary, #f7c873);
  text-decoration: none;
}
.admin-fab-item i { width: 16px; text-align: center; margin-right: 6px; }

/* ── Small phones (≤ 380px) ─────────────── */
@media (max-width: 380px) {
  .navbar-nav > li > a {
    padding: 12px 14px !important;
    font-size: 13px;
  }
  .navbar-nav .dropdown-menu > li > a,
  .navbar-nav .fantasy-dropdown > li > a {
    padding: 9px 14px 9px 30px !important;
  }
}


/* =========================================================
   Global: prevent panels/tables from clipping dropdown menus
   Bootstrap 3 sets overflow:hidden on panels which clips dropdowns
   ========================================================= */
.panel-body {
  overflow: visible !important;
}
.table-responsive {
  overflow-x: auto !important;
}
/* Exception: header navbar still needs overflow hidden for mobile */
.header-navbar .panel-body {
  overflow: hidden !important;
}

/* =========================================================
   Droplist Builder (dlbuilder.php) - extracted from inline
   ========================================================= */
.d-none-init           { display: none; }
.dl-output-header      { text-align: center; margin-bottom: 10px; }
.dl-output-title       { font-weight: 700; }
.dl-output-meta        { font-size: 13px; margin-top: 4px; }
.dl-paths-toggle       { text-decoration: none; }
.dl-paths-box          { display: none; margin: -2px 0 14px 0; }
.dl-file-status        { margin-bottom: 16px; }
.dl-paths-link-wrap    { text-align: center; margin-bottom: 14px; }
.dl-action-wrap        { text-align: center; margin-top: 6px; margin-bottom: 6px; }
.dl-action-hint        { margin-top: 8px; }
.dl-results-table      { margin: 0 0 8px 0; }
.dl-word-break         { word-break: break-all; }

/* =========================================================
   Monsters / Droplist page (monsters.php) - extracted
   ========================================================= */
.dl-filter-btn         { min-width: 160px; }

/* =========================================================
   Utility classes extracted from inline styles (site-wide)
   ========================================================= */
.cov-mw-260        { max-width: 260px; }
.cov-mw-250-wrap   { max-width: 250px; word-wrap: break-word; }
.text-gold-warm    { color: var(--color-primary); }
.cov-disc-list     { padding-left: 20px; list-style-type: disc; }
.cov-meta-hint     { margin-top: 10px; font-size: 13px; color: #ccc; }
.cov-meta-sm       { margin-top: 8px; font-size: 13px; }
.cov-inline-block  { display: inline-block; }
.cov-card-text     { border-radius: 8px; font-size: 14px; }
.cov-card-text-mt  { border-radius: 8px; font-size: 14px; margin-top: 15px; }
.cov-mt-8          { margin-top: 8px; }
.cov-pointer       { cursor: pointer; }
.cov-left-mt6      { text-align: left; margin-top: 6px; }
.cov-media-img     { width: 100%; border-radius: 4px; max-height: 180px; object-fit: cover; }
.cov-flex-gallery  { margin: 18px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Date input calendar icon — gold to match site ──────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(82%) sepia(40%) saturate(700%) hue-rotate(335deg) brightness(103%);
  cursor: pointer;
  opacity: 0.75;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ── Number input spinners — show but dimmed, full on hover ─────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button;
  appearance: auto;
  opacity: 0.4;
  cursor: pointer;
}
input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-inner-spin-button {
  opacity: 1;
}

/* ── Button active (click) states ────────────────────────────────────────── */
/* btn-gold states → consolidated below */

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON FIXES — override Bootstrap's color:#333 on :focus/:active
   ═══════════════════════════════════════════════════════════════════════════ */

/* btn-gray states → consolidated below */

/* General .btn focus ring — replace Bootstrap's blue with gold */
.btn:focus,
.btn.focus,
.btn:active:focus,
.btn:active.focus,
.btn.active:focus,
.btn.active.focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(247,200,115,0.35) !important;
}

/* ── Number input spinners — dimmed, appear on hover/focus ──────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button;
  appearance: auto;
  opacity: 0.35;
  cursor: pointer;
}
input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-inner-spin-button,
input[type="number"]:hover::-webkit-outer-spin-button,
input[type="number"]:focus::-webkit-outer-spin-button {
  opacity: 0.85;
}

/* ── Date calendar icon — gold ───────────────────────────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(82%) sepia(40%) saturate(700%) hue-rotate(335deg) brightness(103%);
  cursor: pointer;
  opacity: 0.7;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* PAGE FADE-IN — removed, caused content to be invisible on heavy pages */

/* =========================================
   2. PAGE LOADING BAR
========================================= */
#page-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 99999;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#page-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #ffd37a);
  box-shadow: 0 0 8px rgba(247,200,115,0.6);
  transition: width 0.4s ease;
}

/* =========================================
   3. SCROLL TO TOP BUTTON
========================================= */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #c9a552);
  color: #111;
  border: none;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 9990;
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  background: linear-gradient(135deg, #ffd37a, #e8b84b);
  box-shadow: 0 4px 18px rgba(247,200,115,0.5);
}

/* =========================================
   4. ACTIVE NAV ITEM
========================================= */
.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > li.active > a:hover,
.navbar-inverse .navbar-nav > li.active > a:focus {
  color: var(--color-primary) !important;
  background: transparent !important;
}
.navbar-inverse .navbar-nav > li.active > a::after {
  width: 100% !important;
  background: linear-gradient(to right, var(--color-primary), #b9954f);
}

/* =========================================
   5. FOOTER
========================================= */
.site-footer {
  background: linear-gradient(180deg, #0e0e0e, #080808);
  border-top: 1px solid rgba(247,200,115,0.15);
  margin-top: 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  border: 1px solid rgba(247,200,115,0.3);
  padding: 3px;
  background: rgba(20,20,20,0.9);
  margin-bottom: 4px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.footer-logo:hover {
  border-color: rgba(247,200,115,0.6);
  box-shadow: 0 0 16px rgba(247,200,115,0.25);
}
.footer-tagline {
  font-size: 12px;
  color: #666;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-links a {
  color: #888;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.footer-links a i { margin-right: 5px; opacity: 0.7; }
.footer-links a:hover { color: var(--color-primary); text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: #444;
  border-top: 1px solid rgba(247,200,115,0.07);
  padding-top: 14px;
  width: 100%;
}
.footer-copy strong { color: #666; }

@media (max-width: 767px) {
  .footer-links { gap: 8px 14px; }
  #scroll-top { bottom: 16px; right: 14px; width: 36px; height: 36px; font-size: 13px; }
}

/* =========================================
   GEAR RANKING PAGE
========================================= */
.gear-top-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.gear-top-box {
  width: 48%;
  display: flex;
  background: linear-gradient(180deg, rgba(25,25,25,.97), rgba(15,15,15,.95));
  border: 1px solid rgba(247,200,115,.25);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 15px rgba(247,200,115,.15);
  transition: .25s;
}
.gear-top-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(247,200,115,.25);
}
.gear-class-image {
  width: 140px;
  height: 290px;
  position: relative;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(247,200,115,.25);
  background: #111;
  box-shadow: 0 0 12px rgba(247,200,115,.15);
  overflow: hidden;
}
.gear-class-image img {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 290px;
  object-fit: contain;
}
.gear-info {
  padding-left: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}
.gear-title {
  text-align: center;
  color: #ffd37a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.gear-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin: 6px auto 0;
  background: linear-gradient(to right, transparent, rgba(247,200,115,.5), transparent);
}
.gear-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbb37a;
  padding: 2px 0;
}
.gear-line span { color: #fff3c1; font-weight: 600; }
.gear-line .empty { color: #777; }
.gear-winner {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(247,200,115,0.25);
  text-align: center;
  font-size: 12.5px;
  color: #cbb37a;
  letter-spacing: 0.5px;
}
.gear-winner .winner-name {
  display: block;
  margin-top: 2px;
  color: #ffd37a;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(247,200,115,.5), 0 0 12px rgba(247,200,115,.3);
}
.gear-winner .empty { display: block; color: #777; margin-top: 2px; }
.weapon-image {
  width: 143px;
  height: 122px;
  position: relative;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(247,200,115,.25);
  background: #111;
  box-shadow: 0 0 12px rgba(247,200,115,.15);
  overflow: hidden;
}
.weapon-image img {
  position: absolute;
  inset: 0;
  width: 143px;
  height: 122px;
  object-fit: contain;
}
.gear-version-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
}
.gear-version-tab {
  background: rgba(15,15,15,0.8);
  border: 1px solid rgba(247,200,115,0.15);
  color: #b9954f;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}
.gear-version-tab:hover { background: rgba(25,25,25,0.9); color: #c7b88f; }
.gear-version-tab.active {
  background: linear-gradient(180deg, rgba(247,200,115,0.15) 0%, rgba(247,200,115,0.05) 100%);
  border-color: rgba(247,200,115,0.3);
  color: #f7c873;
  box-shadow: 0 0 8px rgba(247,200,115,0.2);
}
.gear-version-content { display: none; }
.gear-version-content.active { display: block; }
@media (max-width: 900px) { .gear-top-box { width: 100%; } }

/* =========================================
   SPIN WHEEL PAGE
========================================= */
#wheel-wrapper{
    position:relative;
    width:340px;
    height:340px;
    margin:25px auto 15px;
}

#wheel-arrow{
    position:absolute;
    top:-10px;
    left:50%;
    transform:translateX(-50%) rotate(180deg);
    width:0;height:0;
    border-left:16px solid transparent;
    border-right:16px solid transparent;
    border-bottom:26px solid #f7c873;
    filter:drop-shadow(0 0 6px rgba(0,0,0,.9));
    z-index:20;
    pointer-events:none;
}

#wheel{
    border-radius:50%;
    border:4px solid rgba(247,200,115,.4);
    background: radial-gradient(circle,#1a1a1a,#0c0c0c);
    box-shadow:
        0 0 22px rgba(247,200,115,.35),
        0 0 50px rgba(247,200,115,.18) inset,
        0 0 12px rgba(0,0,0,.9) inset;
}

/* =========================================
   NEWCOMER SUPPORT PAGE
========================================= */
/* Rating stars styling */
.rating-stars {
  display: inline-flex;
  gap: 8px;
  padding: 10px 0;
}

.rating-star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
  color: #666;
}

.rating-star i {
  font-size: 28px;
  transition: all 0.2s ease;
}

.rating-star:hover {
  transform: scale(1.15);
}

.rating-star:hover i {
  color: #f7c873;
}

/* =========================================
   SHOP PAGE IMPROVEMENTS
========================================= */
/* Package table rows — hover glow */
.coven-table tbody tr {
  transition: background 0.2s, box-shadow 0.2s;
}
.coven-table tbody tr:hover {
  background: rgba(247,200,115,0.07) !important;
  box-shadow: inset 0 0 0 1px rgba(247,200,115,0.15);
}
/* Price column gold */
.coven-table tbody tr td:last-child strong {
  color: var(--color-primary);
  font-size: 15px;
}
/* Total column bold white */
.coven-table tbody tr td:nth-last-child(2) b {
  color: #fff;
  font-size: 14px;
}
/* PayPal section */
.paypal-section {
  margin: 20px 0;
  text-align: center;
}
.paypal-section img {
  height: 55px;
  margin-bottom: 10px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.paypal-section img:hover { opacity: 1; }
.paypal-section p {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

/* countdown + news → original definitions already above */

/* =========================================
   HOME PAGE — TOP RANKING TABLES
========================================= */
.home-ranking-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  padding: 8px 10px;
}
.home-ranking-table td { padding: 7px 10px; font-size: 13px; }
.home-ranking-table tbody tr:nth-child(1) td { color: #ffd700; font-weight: 700; }
.home-ranking-table tbody tr:nth-child(2) td { color: #c0c0c0; }
.home-ranking-table tbody tr:nth-child(3) td { color: #cd7f32; }

/* =========================================
   REGISTER / LOGIN FORM IMPROVEMENTS
========================================= */
.coven-form .form-group label {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}
.coven-form .form-control,
.panel-dark .coven-form input[type="text"],
.panel-dark .coven-form input[type="password"],
.panel-dark .coven-form input[type="email"] {
  background: rgba(10,10,10,0.8) !important;
  border: 1px solid rgba(247,200,115,0.2) !important;
  color: #eee !important;
  border-radius: 5px !important;
  padding: 9px 12px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.coven-form .form-control:focus,
.panel-dark .coven-form input:focus {
  border-color: rgba(247,200,115,0.6) !important;
  box-shadow: 0 0 8px rgba(247,200,115,0.15) !important;
  background: rgba(15,12,5,0.9) !important;
}
.coven-form .btn-gold {
  padding: 10px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* =========================================
   VOTE PAGE IMPROVEMENTS
========================================= */
.vote-info-box {
  background: linear-gradient(135deg, rgba(20,16,8,0.95), rgba(12,10,5,0.95));
  border: 1px solid rgba(247,200,115,0.2);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}
.vote-info-box .text-gold { font-size: 15px; }

/* =========================================
   1. SERVER INFO LIST — ICON ROWS
========================================= */
.panel-dark .list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  transition: background 0.2s;
}
.panel-dark .list-group-item:hover {
  background: rgba(247,200,115,0.04);
}

/* =========================================
   2. STATUS ONLINE PULSE
========================================= */
.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6dff6d;
  font-weight: 600;
}
.status-online::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50;
  animation: statusPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.status-offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff8080;
  font-weight: 600;
}
.status-offline::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cc3333;
  flex-shrink: 0;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #4caf50; }
  50%       { opacity: 0.5; box-shadow: 0 0 2px #4caf50; }
}

/* =========================================
   3. DASHBOARD BUTTONS — MOBILE FIX
========================================= */
@media (max-width: 480px) {
  .btn-dashboard {
    width: calc(50% - 5px) !important;
    font-size: 12px;
    padding: 8px 8px;
  }
}
@media (max-width: 320px) {
  .btn-dashboard {
    width: 100% !important;
  }
}

/* Medal colors removed */

/* =========================================
   5. CUSTOM SCROLLBAR
========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: rgba(247,200,115,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(247,200,115,0.6);
}
* { scrollbar-width: thin; scrollbar-color: rgba(247,200,115,0.3) #0a0a0a; }

/* =========================================
   ACCORDION — OPEN/CLOSE INDICATOR
========================================= */
.panel-group .panel-title a::after {
  content: '\f107'; /* fa-angle-down */
  font-family: 'FontAwesome';
  float: right;
  transition: transform 0.3s ease;
  color: rgba(247,200,115,0.6);
}
.panel-group .panel-title a.collapsed::after {
  transform: rotate(-90deg);
}

/* =========================================
   ACCORDION — SLIDE ANIMATION
========================================= */
.panel-group .panel-collapse {
  transition: height 0.3s ease;
}

/* =========================================
   ACCORDION — ACTIVE PANEL HIGHLIGHT
========================================= */
.panel-group .panel:has(.panel-collapse.in) > .panel-heading {
  background: linear-gradient(135deg, #3d2d12, #1e1508) !important;
  border-left: 3px solid var(--color-primary);
}

/* =========================================
   SCHEDULE — TODAY CARD GLOW
========================================= */
.schedule-card.today {
  border-color: rgba(247,200,115,0.35);
  box-shadow: 0 0 20px rgba(247,200,115,0.1);
}


/* =========================================
   DOWNLOAD — SECTION HEADERS
========================================= */
.text-gold.mt-3.mb-3 {
  position: relative;
  padding-bottom: 10px;
}
.text-gold.mt-3.mb-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,200,115,0.5), transparent);
}

/* =========================================
   FAQ — QUESTION CURSOR
========================================= */
.panel-group .panel-heading[data-toggle="collapse"] {
  cursor: pointer;
  user-select: none;
}

/* =========================================
   SCHEDULE NAV — ACTIVE DAY
========================================= */
.schedule-nav a:target,
.schedule-nav a.active {
  background: rgba(247,200,115,0.15);
  border-color: rgba(247,200,115,0.5);
  box-shadow: 0 0 10px rgba(247,200,115,0.2);
}

/* =========================================
   DOWNLOAD BUTTONS — SIZE CONSISTENCY
========================================= */
.download-links .btn {
  min-width: 100px;
  text-align: center;
}
@media (max-width: 600px) {
  .download-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .download-links {
    justify-content: flex-start;
    min-width: unset;
    width: 100%;
    flex-wrap: wrap;
  }
  .download-links .btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
}

/* =========================================
   GLOBAL BUTTON FIX — no black on click
========================================= */
.btn:focus,
.btn:active,
.btn.active,
.btn:active:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* btn-default (move up/down arrows in sitemanager) */
.btn-default {
  background: #1e1e1e;
  border: 1px solid #444;
  color: #ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background: #2a2a2a !important;
  border-color: #666 !important;
  color: #eee !important;
}
/* btn-warning */
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  color: #111 !important;
  outline: none !important;
}
/* btn-danger */
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  color: #fff !important;
  outline: none !important;
}

/* charinfo view button — full width is correct */

/* =========================================
   SITEMANAGER — submit buttons sizing
========================================= */
.sitemanager-wrap .btn-gold:not(.btn-xs):not(.btn-sm) {
  padding: 7px 18px;
  font-size: 13px;
}

/* =========================================
   BTN-GOLD & BTN-GRAY — ALL STATES
   (single source of truth, overrides Bootstrap)
========================================= */
.btn-gold:hover,
.btn-gold:focus,
.btn-gold.focus {
  color: #111 !important;
  background: linear-gradient(135deg, #ffd37a, #e8b84a) !important;
  outline: none !important;
  box-shadow: 0 0 8px rgba(247,200,115,0.4) !important;
  text-decoration: none !important;
}
.btn-gold:active,
.btn-gold.active,
.btn-gold:active:focus {
  color: #111 !important;
  background: linear-gradient(135deg, #d49a20, #b87c10) !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(0.97);
}

.btn-gray:hover,
.btn-gray:focus,
.btn-gray.focus {
  color: #fff !important;
  background: #3a3a3a !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.btn-gray:active,
.btn-gray.active,
.btn-gray:active:focus {
  color: #fff !important;
  background: #1a1a1a !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(0.97);
}

/* Fix: btn-gold.btn-block goes black on click — Bootstrap conflict */
.btn-gold.btn-block:hover,
.btn-gold.btn-block:focus,
.btn-gold.btn-block:active,
.btn-gold.btn-block:active:focus,
.btn-gold.btn-block.active {
  background: linear-gradient(135deg, #ffd37a, #e8b84a) !important;
  color: #111 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Fix: input[type=submit] browser default overrides btn-gold on click */
input[type="submit"].btn-gold,
input[type="submit"].btn-gold.btn-block {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: linear-gradient(135deg, var(--color-primary), #e1b758) !important;
  color: var(--color-dark-bg) !important;
  outline: none !important;
}
input[type="submit"].btn-gold:hover,
input[type="submit"].btn-gold:focus,
input[type="submit"].btn-gold:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: linear-gradient(135deg, #ffd37a, #e8b84a) !important;
  color: #111 !important;
  outline: none !important;
  box-shadow: none !important;
}
