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

/* =========================================
   COLOR VARIABLES (Shared Palette)
========================================= */
:root {
  --gold: #f7c873;
  --gold-dark: #b9954f;
  --dark-bg: #1a1a1a;
  --panel-bg: rgba(22,22,22,0.95);
  --shadow-gold: 0 0 12px rgba(247,200,115,0.25);
}

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

/* ===== Hyperlinks ===== */
a {
  color: #f7c873;                /* 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: #f7c873;
  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: #e5e5e5;
  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: #f7c873;
}
.navbar-inverse .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #f7c873, #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 #f7c873;
  box-shadow: 0 0 20px rgba(247, 200, 115, 0.4);
  transition: transform .3s, box-shadow .3s;
}
.navbar-center-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(247, 200, 115, 0.7);
}


//* =========================================
   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: #e5e5e5 !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: #f7c873 !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: #f7c873 !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: #f7c873 !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: #111;
  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: #f7c873;
  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: #111;
  border: 1px solid #333;
  color: #eee;
  border-radius: 3px;
  font-size: 13px;
  transition: 0.3s;
}
.panel-dark input.form-control:focus {
  border-color: #f7c873;
  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: #f7c873;
  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, #f7c873, #e1b758);
  color: #111;
  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
=============================== */
.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: #f7c873;
  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, #f7c873, #b9954f);
  color: #111;
  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, #f7c873, #b9954f);
  box-shadow: 0 0 8px rgba(247,200,115,0.4);
}
.trailer-dots button:hover {
  background: #f7c873;
}

/* ===============================
   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;
}

.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: #f7c873;
  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: 14x;
  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;
}

/* Smooth fade-in animation (optional) */
.news-item {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInNews 0.45s ease forwards;
}
@keyframes fadeInNews {
  to { opacity: 1; transform: translateY(0); }
}
/* ===============================
   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: #f7c873;
  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: fixed;
}
.table th {
  background: linear-gradient(180deg, #232323 0%, #161616 100%);
  color: #f7c873;
  border: none;
  border-bottom: 1px solid rgba(70, 55, 40, 0.3) !important;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 0;
}
.table td {
  color: #d7d7d7;
  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: #111;
}
.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: #f7c873;
  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: #f7c873;
  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, #f7c873, #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, #f7c873, #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: #f7c873;
  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: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 6px;
  flex-wrap: wrap;
  transition: all 0.25s ease-in-out;
}

.download-row:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(247, 200, 115, 0.15);
}

.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(255, 255, 255, 0.07);
  margin: 25px 0;
}

/* === 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: #f7c873;
  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: #f7c873;
  font-size: 15px;
}

.panel-group .panel-collapse .panel-body {
  background: rgba(25, 25, 25, 0.95);
  border-top: 1px solid rgba(247, 200, 115, 0.2);
  color: #ddd;
}

.panel-group .panel-body ul {
  margin-left: 20px;
  list-style-type: disc;
}

.panel-group .panel-body li {
  margin-bottom: 5px;
}

.panel-group .panel-body p {
  margin-bottom: 0;
}

/* =========================================
   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: #f7c873;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dashboard-info .info-label {
  color: #f7c873;
  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, #1a1a1a);
  border: 1px solid rgba(247, 200, 115, 0.25);
  color: #f7c873;
  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, #f7c873, #e1b758);
  color: #111 !important;
  border-color: #f7c873;
  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: #111;
}

/* 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: #111;
  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: #f7c873;
  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, #f7c873, #b9954f);
  color: #111;
  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: #f7c873;
  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: #111;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #111;
  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: #f7c873;
  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: #f7c873;
  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: #f7c873;
  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: #f7c873 !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: #f7c873 !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: #f7c873;
  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: #f7c873;
  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: #e5e5e5;
}

#equipModal .modal-header {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: #f7c873;
  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: #f7c873;
  letter-spacing: 0.3px;
}

#equipModal .close {
  color: #f7c873;
  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: #f7c873;
  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: #f7c873;
  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: #e5e5e5;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

.coven-modal .modal-header {
  background: linear-gradient(135deg, #2c241a, #15110a);
  color: #f7c873;
  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: #f7c873;
}

.coven-modal .close {
  color: #f7c873;
  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: #f7c873; /* 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: #f7c873;
  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%, #1a1a1a 100%);
  color: #f7c873;
  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: #f7c873 !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: #f7c873;
  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: #f7c873;
  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, #f7c873, #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: #f7c873;
  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: #f7c873;
  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: #f7c873;
  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: #f7c873;
  font-weight: 600;
  font-size: 14px;
}

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

.schedule-timer {
  color: #f7c873;
  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: #f7c873;
}

/* =========================================
   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: #f7c873;
  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;
}
.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: #f7c873 !important;
}

/* Table */
.droplist-scope .coven-droplist thead th {
  text-align: center !important;
  vertical-align: middle !important;
  background: rgba(247,200,115,.05);
  color: #f7c873;
  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:#f7c873;
  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;
}


/* === purchase Steps === */
.purchase-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 25px;
  gap: 20px;
}
.purchase-steps .step {
  padding: 8px 14px;
  border: 1px solid rgba(247,200,115,.25);
  border-radius: 20px;
  font-weight: 600;
  color: #bfae7a;
  background: rgba(20,20,20,.9);
  transition: all .25s ease;
}
.purchase-steps .step.active {
  background: linear-gradient(135deg, #f7c873, #b9954f);
  color: #111;
  box-shadow: 0 0 12px rgba(247,200,115,.3);
}

/* =========================================
   TEXT UTILITIES (Global Coven Theme)
========================================= */
.text-gold { color: #f7c873 !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: #f7c873 !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%, #f7c873 50%),
    linear-gradient(135deg, #f7c873 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: #f7c873 !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: #f7c873;
  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, #f7c873, #b9954f);
  color: #111;
  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;
  }
}


/* =========================================
   RESPONSIVE MENU (Hide Logo + Center Toggle)
========================================= */

.menu-toggle {
  display: none;
}

@media (max-width: 991px) {
  .navbar-wrapper {
    flex-direction: column;
    padding: 0 2%;
  }

  /* Hide logo on mobile */
  .navbar-center-logo {
    display: none;
  }

  /* Center menu toggle vertically */
  .menu-toggle {
    display: block;
    color: #f7c873;
    font-size: 28px;
    cursor: pointer;
    text-align: center;
    line-height: 80px; /* perfectly centered */
  }

  /* Mobile menu */
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: rgba(15, 15, 15, 0.95);
    border-top: 1px solid rgba(247, 200, 115, 0.15);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 9999; /* ensure mobile menu stays above slider */

  }

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

  .navbar-nav li a,
  .fantasy-dropdown > li > a {
    height: auto;
    padding: 14px 0;
    color: #e5e5e5 !important;
    border-bottom: 1px solid rgba(247, 200, 115, 0.08);
    background: transparent;
  }

}
