/* =============================================================
   Lineage 2 - Memories  |  Theme Styles
   ============================================================= */
/* Google Fonts loaded via <link> in header.ejs for better LCP */

:root {
  --l2-gold:        #c9a84c;
  --l2-gold-light:  #e8d48b;
  --l2-gold-dark:   #8b6914;
  --l2-crimson:     #8b1a1a;
  --l2-crimson-glow:#c0392b;
  --l2-blue:        #1a3a5c;
  --l2-blue-light:  #2980b9;
  --l2-dark:        #0a0c10;
  --l2-darker:      #050608;
  --l2-panel:       rgba(10, 14, 20, 0.88);
  --l2-panel-border:rgba(201, 168, 76, 0.25);
  --l2-text:        #d4cfc4;
  --l2-text-muted:  #8a8578;
  --l2-font-title:  'Cinzel', serif;
  --l2-font-body:   'Philosopher', sans-serif;
}

/* ===== GLOBAL ===== */
body {
  font-family: var(--l2-font-body);
  background: var(--l2-darker);
  color: var(--l2-text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,58,92,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,26,26,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--l2-font-title); color: var(--l2-gold); }

a { color: var(--l2-gold); transition: color .3s; }
a:hover { color: var(--l2-gold-light); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--l2-darker); }
::-webkit-scrollbar-thumb { background: var(--l2-gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--l2-gold); }

/* ===== NAVBAR ===== */
.navbar-l2 {
  background: linear-gradient(180deg, rgba(10,12,16,.98), rgba(10,12,16,.95));
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, transparent, var(--l2-gold), transparent) 1;
  padding: .5rem 0;
  z-index: 100;
  position: relative;
}
.navbar-l2 .navbar-brand {
  font-family: var(--l2-font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--l2-gold) !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(201,168,76,.3);
}
.navbar-l2 .nav-link {
  font-family: var(--l2-font-title);
  color: var(--l2-text) !important;
  font-size: .78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .5rem .55rem !important;
  position: relative;
  transition: color .3s;
  white-space: nowrap;
}
.navbar-l2 .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--l2-gold);
  transition: width .3s;
}
.navbar-l2 .navbar-nav { flex-wrap: wrap; justify-content: flex-end; gap: 0; }
.navbar-l2 .nav-link:hover { color: var(--l2-gold) !important; }
.navbar-l2 .nav-link:hover::after { width: 80%; }
@media (min-width: 1200px) and (max-width: 1500px) {
  .navbar-l2 .nav-link { font-size: .72rem; padding: .5rem .4rem !important; letter-spacing: 0; }
  .navbar-l2 .navbar-brand { font-size: 1.1rem; }
}

.btn-nav-register {
  background: linear-gradient(135deg, var(--l2-gold-dark), var(--l2-gold));
  color: #0a0c10 !important;
  border: none;
  font-family: var(--l2-font-title);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .4rem 1.2rem !important;
  border-radius: 2px;
  transition: all .3s;
}
.btn-nav-register:hover {
  background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,.25);
  color: #0a0c10 !important;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  padding: 5rem 0 3rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.06) 0%, transparent 70%);
  z-index: -1;
}
.hero-title {
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--l2-gold);
  text-shadow: 0 0 40px rgba(201,168,76,.4), 0 2px 10px rgba(0,0,0,.8);
  margin-bottom: .3rem;
  letter-spacing: 3px;
}
.hero-subtitle {
  font-family: var(--l2-font-title);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--l2-text-muted);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-desc {
  color: var(--l2-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ===== LAUNCH BANNER ===== */
.launch-banner-wrap {
  position: relative;
  z-index: 1;
}

.launch-banner-card {
  width: 66%;
  margin: 0 auto;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0c10;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), inset 0 0 80px rgba(201,168,76,.04);
}

.launch-banner-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  background: linear-gradient(160deg, rgba(5,9,16,.58) 0%, rgba(20,7,10,.68) 100%);
  transition: background .3s;
}

.launch-banner-link:hover {
  background: linear-gradient(160deg, rgba(5,9,16,.48) 0%, rgba(20,7,10,.58) 100%);
}

.launch-banner-content {
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
}

.launch-banner-title {
  color: var(--l2-gold);
  font-family: var(--l2-font-title);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 30px rgba(201,168,76,.3);
  margin-bottom: .4rem;
}

.launch-banner-subtitle {
  margin-top: .25rem;
  color: rgba(244,240,230,.8);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

.launch-countdown {
  margin: 2rem auto 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.launch-count-box {
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: rgba(6, 8, 12, 0.82);
  border-radius: 10px;
  padding: 1.1rem .75rem .9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}

.launch-count-box span {
  display: block;
  color: var(--l2-gold);
  font-family: var(--l2-font-title);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 20px rgba(201,168,76,.45);
}

.launch-count-box small {
  display: block;
  margin-top: .5rem;
  color: rgba(201,168,76,.75);
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn-l2-gold {
  background: linear-gradient(135deg, var(--l2-gold-dark), var(--l2-gold));
  color: #0a0c10 !important;
  border: 1px solid var(--l2-gold);
  font-family: var(--l2-font-title);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .7rem 2rem;
  border-radius: 2px;
  transition: all .3s;
}
.btn-l2-gold:hover {
  background: linear-gradient(135deg, var(--l2-gold), var(--l2-gold-light));
  color: #0a0c10 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}

.btn-l2-outline {
  background: transparent;
  color: var(--l2-gold) !important;
  border: 1px solid var(--l2-gold-dark);
  font-family: var(--l2-font-title);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .7rem 2rem;
  border-radius: 2px;
  transition: all .3s;
}
.btn-l2-outline:hover {
  background: rgba(201,168,76,.1);
  color: var(--l2-gold-light) !important;
  border-color: var(--l2-gold);
  transform: translateY(-2px);
}

.btn-l2-danger {
  background: transparent;
  color: var(--l2-crimson-glow);
  border: 1px solid var(--l2-crimson);
  font-family: var(--l2-font-title);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .5rem 1.5rem;
  border-radius: 2px;
  transition: all .3s;
}
.btn-l2-danger:hover {
  background: rgba(139,26,26,.2);
  color: #e74c3c;
  border-color: var(--l2-crimson-glow);
}

.btn-l2-sm {
  padding: .3rem .8rem;
  font-size: .75rem;
}

/* ===== CHRONICLES ===== */
.chronicles-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
}
.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: var(--l2-gold);
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(201,168,76,.2);
}
.section-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--l2-gold), transparent);
  margin: 0 auto 3rem;
}

.chronicle-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.12);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
  height: 280px;
  will-change: transform;
}
.chronicle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,12,16,.95) 100%);
  z-index: 1;
  transition: all .4s;
}
.chronicle-card:hover {
  transform: translateY(-8px);
  border-color: var(--l2-gold);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.chronicle-card:hover::before {
  background: linear-gradient(180deg, transparent 10%, rgba(10,12,16,.85) 100%);
}
.chronicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.chronicle-card:hover .chronicle-img {
  transform: scale(1.05);
}
.chronicle-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem;
  z-index: 2;
}
.chronicle-name {
  font-family: var(--l2-font-title);
  font-weight: 700;
  font-size: .92rem;
  color: var(--l2-gold);
  margin-bottom: .15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.chronicle-year {
  font-size: .72rem;
  color: var(--l2-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PANELS ===== */
.l2-panel {
  background: var(--l2-panel);
  border: 1px solid var(--l2-panel-border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}
.l2-panel-header {
  background: linear-gradient(135deg, rgba(201,168,76,.1), transparent);
  border-bottom: 1px solid var(--l2-panel-border);
  padding: 1rem 1.5rem;
}
.l2-panel-header h3,
.l2-panel-header h4,
.l2-panel-header h5 {
  font-family: var(--l2-font-title);
  color: var(--l2-gold);
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.l2-panel-body { padding: 1.5rem; }

/* ===== FORMS ===== */
.form-label {
  font-family: var(--l2-font-title);
  color: var(--l2-text) !important;
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.l2-input {
  background: rgba(10,14,20,.6) !important;
  border: 1px solid rgba(201,168,76,.2) !important;
  color: var(--l2-text) !important;
  border-radius: 2px;
  font-family: var(--l2-font-body);
  transition: all .3s;
}
.l2-input::placeholder { color: var(--l2-text-muted) !important; opacity: .7; }
.l2-input:focus {
  border-color: var(--l2-gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.1) !important;
  background: rgba(10,14,20,.8) !important;
}
.l2-addon {
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  color: var(--l2-gold);
  border-radius: 2px 0 0 2px;
}

/* ===== DASHBOARD TABLE ===== */
.l2-table { color: var(--l2-text); }
.l2-table td {
  padding: .8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.l2-table .label-col {
  color: var(--l2-text-muted);
  font-family: var(--l2-font-title);
  font-size: .78rem;
  letter-spacing: .5px;
  width: 40%;
}
.l2-table .value-col { color: var(--l2-text); font-weight: 500; }

/* ===== BADGES ===== */
.badge-l2 {
  font-family: var(--l2-font-title);
  font-size: .73rem;
  padding: .4em .8em;
  letter-spacing: .5px;
  border-radius: 2px;
}
.badge-admin  { background: var(--l2-gold); color: #0a0c10; }
.badge-gm     { background: var(--l2-blue-light); color: #fff; }
.badge-player { background: rgba(201,168,76,.15); color: var(--l2-gold); border: 1px solid var(--l2-gold-dark); }
.badge-banned { background: var(--l2-crimson); color: #fff; }

/* ===== ALERTS ===== */
.alert-l2-success {
  background: rgba(39,174,96,.12);
  border: 1px solid rgba(39,174,96,.3);
  color: #6fda9c;
  border-radius: 2px;
}
.alert-l2-danger {
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.3);
  color: #e88;
  border-radius: 2px;
}
.alert { animation: fadeSlide .3s ease-out; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

code {
  color: var(--l2-gold-light);
  background: rgba(201,168,76,.1);
  padding: .15em .5em;
  border-radius: 2px;
}

/* ===== CHRONICLE MODALS ===== */
.l2-modal {
  background: linear-gradient(180deg, #0d1117 0%, #0a0c10 100%);
  border: 1px solid var(--l2-gold-dark);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  color: var(--l2-text);
}
.l2-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--l2-panel-border);
  background: linear-gradient(135deg, rgba(201,168,76,.08), transparent);
}
.l2-modal-title {
  font-family: var(--l2-font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--l2-gold);
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(201,168,76,.25);
}
.l2-modal-year {
  font-family: var(--l2-font-title);
  font-size: .75rem;
  color: var(--l2-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.l2-modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}
.l2-modal-body::-webkit-scrollbar { width: 6px; }
.l2-modal-body::-webkit-scrollbar-track { background: rgba(10,12,16,.5); }
.l2-modal-body::-webkit-scrollbar-thumb { background: var(--l2-gold-dark); border-radius: 3px; }
.l2-modal-body::-webkit-scrollbar-thumb:hover { background: var(--l2-gold); }

/* Video embed wrapper */
.l2-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,.15);
  margin-bottom: 1.5rem;
  background: #000;
}
.l2-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Lore / History block */
.l2-modal-lore {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: rgba(26,58,92,.08);
  border: 1px solid rgba(26,58,92,.2);
  border-left: 3px solid var(--l2-blue-light);
  border-radius: 4px;
}
.l2-modal-lore h5 {
  font-family: var(--l2-font-title);
  font-size: .95rem;
  color: var(--l2-gold);
  margin-bottom: .8rem;
}
.l2-modal-lore p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--l2-text);
  margin-bottom: .6rem;
}
.l2-modal-lore p:last-child { margin-bottom: 0; }

/* Features block */
.l2-modal-features {
  padding: 1.2rem;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 4px;
}
.l2-modal-features h5 {
  font-family: var(--l2-font-title);
  font-size: .95rem;
  color: var(--l2-gold);
  margin-bottom: 1rem;
}
.l2-feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  background: rgba(10,14,20,.5);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: 3px;
  font-size: .85rem;
  color: var(--l2-text);
  transition: all .3s;
}
.l2-feature-item:hover {
  border-color: var(--l2-gold-dark);
  background: rgba(201,168,76,.06);
}
.l2-feature-item i {
  color: var(--l2-gold);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Modal backdrop darkened */
.modal-backdrop.show { opacity: .85; }

/* No-video placeholder */
.l2-no-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: rgba(10,14,20,.6);
  border: 1px dashed rgba(201,168,76,.2);
  border-radius: 4px;
  color: var(--l2-text-muted);
}
.l2-no-video i {
  font-size: 2.5rem;
  color: var(--l2-gold-dark);
  margin-bottom: .5rem;
  opacity: .6;
}
.l2-no-video p {
  margin: 0;
  font-family: var(--l2-font-title);
  font-size: .85rem;
  letter-spacing: 1px;
}

/* Video.js container */
.l2-video-container {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.15);
}

/* Video.js L2 theme overrides */
.video-js {
  background-color: #000 !important;
  font-family: var(--l2-font-body) !important;
}
.video-js .vjs-big-play-button {
  background: rgba(201,168,76,.85) !important;
  border: 2px solid var(--l2-gold) !important;
  border-radius: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  line-height: 3rem !important;
  font-size: 1.4rem !important;
  transition: all .3s;
}
.video-js .vjs-big-play-button:hover {
  background: var(--l2-gold) !important;
  box-shadow: 0 0 30px rgba(201,168,76,.4);
}
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
  color: #0a0c10 !important;
}
.video-js .vjs-control-bar {
  background: rgba(10,12,16,.9) !important;
  border-top: 1px solid rgba(201,168,76,.15);
}
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background: var(--l2-gold) !important;
}
.video-js .vjs-slider {
  background: rgba(201,168,76,.15) !important;
}
.video-js .vjs-load-progress div {
  background: rgba(201,168,76,.1) !important;
}

/* Click hint on chronicle cards */
.chronicle-card::after {
  content: '\F52A'; /* bi-play-circle */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: var(--l2-gold);
  z-index: 3;
  transition: transform .3s ease, opacity .3s ease;
  text-shadow: 0 0 15px rgba(0,0,0,.7);
  opacity: 0;
}
.chronicle-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: .85;
}

/* ===== FOOTER ===== */
.footer-l2 {
  background: linear-gradient(180deg, rgba(10,12,16,.90), rgba(10,12,16,.98));
  border-top: 2px solid;
  border-image: linear-gradient(90deg, transparent, var(--l2-gold-dark), transparent) 1;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
.footer-l2 .footer-brand {
  font-family: var(--l2-font-title);
  color: var(--l2-gold);
  font-size: 1rem;
  letter-spacing: 2px;
}
.footer-l2 .footer-text {
  color: var(--l2-text-muted);
  font-size: .83rem;
}

/* ===== STATS ===== */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(201,168,76,.1);
  border-radius: 4px;
  background: rgba(10,14,20,.5);
  transition: all .3s;
}
.stat-item:hover {
  border-color: var(--l2-gold-dark);
  background: rgba(201,168,76,.05);
}
.stat-icon { font-size: 2.5rem; color: var(--l2-gold); margin-bottom: .8rem; }
.stat-label {
  font-family: var(--l2-font-title);
  color: var(--l2-gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .2rem;
}
.stat-desc { color: var(--l2-text-muted); font-size: .85rem; }

/* ===== AUTH PAGE ===== */
.auth-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .chronicle-card { height: 220px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; letter-spacing: 1px; }
  .hero-subtitle { font-size: .9rem; letter-spacing: 3px; }
  .chronicle-card { height: 200px; }
  .section-title { font-size: 1.5rem; }
  .l2-ranking-table th, .l2-ranking-table td { font-size: .78rem; padding: .5rem .4rem; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.6rem; }
  .chronicle-card { height: 180px; }
  .l2-modal-title { font-size: 1rem; }
  .l2-modal-body { padding: 1rem; }
  .l2-modal-lore, .l2-modal-features { padding: .8rem; }
  .l2-feature-item { font-size: .78rem; padding: .4rem .5rem; }
  .l2-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

/* ===== RANKING TABLES ===== */
.l2-ranking-table {
  color: var(--l2-text);
  margin: 0;
}
.l2-ranking-table thead th {
  font-family: var(--l2-font-title);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--l2-gold);
  background: rgba(201,168,76,.06);
  border-bottom: 2px solid var(--l2-panel-border);
  padding: .7rem .8rem;
  white-space: nowrap;
}
.l2-ranking-table tbody td {
  padding: .6rem .8rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(201,168,76,.06);
  font-size: .88rem;
}
.l2-ranking-table tbody tr:hover {
  background: rgba(201,168,76,.04);
}

/* Rank medals */
.rank-medal {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.rank-gold { color: #ffd700; text-shadow: 0 0 4px rgba(255,215,0,.4); }
.rank-silver { color: #c0c0c0; text-shadow: 0 0 4px rgba(192,192,192,.3); }
.rank-bronze { color: #cd7f32; text-shadow: 0 0 4px rgba(205,127,50,.3); }
.rank-number {
  font-family: var(--l2-font-title);
  font-weight: 700;
  color: var(--l2-text-muted);
  font-size: .9rem;
}

/* Character name in tables */
.char-name { color: var(--l2-gold-light); }
.class-name { color: var(--l2-text-muted); font-size: .82rem; }
.kills-pvp { color: #5dade2; font-weight: 700; }
.kills-pk { color: #e74c3c; font-weight: 700; }

/* ===== TABS (Rankings) ===== */
.l2-tabs {
  border-bottom: 2px solid var(--l2-panel-border);
}
.l2-tab {
  font-family: var(--l2-font-title) !important;
  color: var(--l2-text-muted) !important;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: .7rem 1.2rem !important;
  margin-bottom: -2px;
  transition: all .3s;
  white-space: nowrap;
}
.l2-tab:hover {
  color: var(--l2-gold) !important;
  border-bottom-color: var(--l2-gold-dark) !important;
  background: transparent !important;
}
.l2-tab.active {
  color: var(--l2-gold) !important;
  border-bottom-color: var(--l2-gold) !important;
  background: transparent !important;
  text-shadow: 0 0 10px rgba(201,168,76,.2);
}

/* ===== RAID BOSS STATUS ===== */
.rb-alive { }
.rb-dead { opacity: .75; }
.rb-name {
  display: flex;
  align-items: center;
  font-family: var(--l2-font-title);
  font-size: .88rem;
}
.rb-badge-alive {
  background: rgba(39,174,96,.2);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,.3);
  font-family: var(--l2-font-title);
  font-size: .7rem;
  letter-spacing: .5px;
  padding: .3em .7em;
}
.rb-badge-dead {
  background: rgba(192,57,43,.2);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,.3);
  font-family: var(--l2-font-title);
  font-size: .7rem;
  letter-spacing: .5px;
  padding: .3em .7em;
}
.rb-timer {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  color: #e67e22;
  font-weight: 600;
}
.rb-spawn-now {
  color: #2ecc71;
  font-family: var(--l2-font-title);
  font-size: .8rem;
}

/* ===== ADENA ===== */
.adena-amount {
  color: var(--l2-gold);
  font-family: var(--l2-font-title);
  font-weight: 700;
  font-size: .9rem;
}
.adena-amount .bi-coin {
  color: var(--l2-gold-light);
}
.adena-total {
  font-size: 1rem;
  color: var(--l2-gold-light);
  text-shadow: 0 0 8px rgba(201,168,76,.3);
}
.adena-total-row td {
  background: rgba(201,168,76,.06) !important;
  border-top: 2px solid var(--l2-panel-border) !important;
}

/* Transfer info */
.transfer-info-item {
  display: flex;
  align-items: flex-start;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--l2-text);
}
.transfer-info-item i {
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Form select (l2 themed) */
.form-select.l2-input {
  background-color: rgba(10,14,20,.6) !important;
  border: 1px solid rgba(201,168,76,.2) !important;
  color: var(--l2-text) !important;
  border-radius: 2px;
}
.form-select.l2-input:focus {
  border-color: var(--l2-gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.1) !important;
}
.form-select.l2-input option {
  background: #0a0c10;
  color: var(--l2-text);
}

/* ===== RAID BOSS ACCORDION ===== */
.rb-accordion {
  border: none;
}
.rb-accordion-item {
  background: transparent;
  border: 1px solid var(--l2-panel-border);
  border-radius: 4px !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.rb-accordion-btn {
  background: var(--l2-panel) !important;
  color: var(--l2-text) !important;
  border: none;
  padding: .9rem 1.2rem;
  box-shadow: none !important;
  transition: all .3s;
}
.rb-accordion-btn:not(.collapsed) {
  background: linear-gradient(135deg, rgba(201,168,76,.08), var(--l2-panel)) !important;
  border-bottom: 1px solid var(--l2-panel-border);
}
.rb-accordion-btn::after {
  filter: invert(0.7) sepia(1) hue-rotate(10deg) saturate(5);
}
.rb-accordion-btn .rb-group-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px currentColor);
}
.rb-group-label {
  font-family: var(--l2-font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--l2-gold);
  letter-spacing: 1px;
}
.rb-accordion-item .accordion-body {
  background: rgba(5,6,8,.6);
}
.rb-group-header {
  transition: all .3s;
}

/* Clickable boss rows */
.rb-clickable {
  cursor: pointer;
  transition: all .2s;
}
.rb-clickable:hover {
  background: rgba(201,168,76,.08) !important;
  transform: translateX(3px);
}
.rb-clickable:hover .rb-name strong {
  color: var(--l2-gold-light);
  text-shadow: 0 0 8px rgba(201,168,76,.3);
}

/* ===== BOSS DETAIL MODAL ===== */
.rb-info-section {
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: rgba(10,14,20,.5);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: 4px;
  border-left: 3px solid var(--l2-gold-dark);
}
.rb-info-section:last-child { margin-bottom: 0; }
.rb-info-section h5 {
  font-family: var(--l2-font-title);
  font-size: .9rem;
  color: var(--l2-gold);
  margin-bottom: .7rem;
  letter-spacing: .5px;
}
.rb-info-text {
  color: var(--l2-text);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: .3rem;
}
.rb-info-small {
  color: var(--l2-text-muted);
  font-size: .8rem;
  margin-bottom: 0;
}

/* Recommendation items */
.rb-rec-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .8rem;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: 3px;
}
.rb-rec-item i {
  font-size: 1.3rem;
  color: var(--l2-gold);
  flex-shrink: 0;
}
.rb-rec-item small {
  display: block;
  font-size: .7rem;
  color: var(--l2-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rb-rec-item strong {
  display: block;
  font-size: .85rem;
  color: var(--l2-text);
}

/* Tips list */
.rb-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rb-tips-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.5rem;
  font-size: .88rem;
  color: var(--l2-text);
  border-bottom: 1px solid rgba(201,168,76,.05);
  line-height: 1.5;
}
.rb-tips-list li:last-child { border-bottom: none; }
.rb-tips-list li::before {
  content: '⚔';
  position: absolute;
  left: 0;
  top: .5rem;
  font-size: .75rem;
}

/* Buffs grid */
.rb-buffs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.rb-buff-tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .7rem;
  background: rgba(167,139,250,.08);
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 3px;
  font-size: .78rem;
  color: #c4b5fd;
  font-family: var(--l2-font-body);
  transition: all .3s;
}
.rb-buff-tag:hover {
  background: rgba(167,139,250,.15);
  border-color: rgba(167,139,250,.4);
}
.rb-buff-tag .bi-star-fill {
  font-size: .6rem;
  color: #a78bfa;
}
.rb-buff-mandatory {
  background: rgba(231,76,60,.1) !important;
  border-color: rgba(231,76,60,.3) !important;
  color: #e88 !important;
  font-weight: 700;
}
.rb-buff-mandatory .bi-star-fill {
  color: #e74c3c !important;
}

/* Drops list */
.rb-drops-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.rb-drop-item {
  display: flex;
  align-items: center;
  padding: .5rem .7rem;
  background: rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 3px;
  font-size: .85rem;
  color: var(--l2-gold-light);
  font-weight: 600;
}

/* Difficulty badges */
.rb-badge-difficulty {
  font-family: var(--l2-font-title);
  font-size: .68rem;
  padding: .3em .6em;
  letter-spacing: .5px;
  border-radius: 2px;
}
.rb-diff-baja { background: rgba(46,204,113,.2); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.rb-diff-bajamedia { background: rgba(93,173,226,.2); color: #5dade2; border: 1px solid rgba(93,173,226,.3); }
.rb-diff-media { background: rgba(241,196,15,.2); color: #f1c40f; border: 1px solid rgba(241,196,15,.3); }
.rb-diff-mediaalta { background: rgba(230,126,34,.2); color: #e67e22; border: 1px solid rgba(230,126,34,.3); }
.rb-diff-alta { background: rgba(231,76,60,.2); color: #e74c3c; border: 1px solid rgba(231,76,60,.3); }
.rb-diff-muyalta { background: rgba(192,57,43,.2); color: #c0392b; border: 1px solid rgba(192,57,43,.3); }
.rb-diff-extrema { background: rgba(139,26,26,.3); color: #ff4444; border: 1px solid rgba(139,26,26,.5); text-shadow: 0 0 8px rgba(255,68,68,.3); }

/* Guide section */
.rb-guide-section {
  border-left-color: #e67e22;
  background: rgba(230,126,34,.05);
}

/* ===== SHOP - TIENDA ===== */
.coin-pack-card {
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
}
.coin-pack-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(201,168,76,.2);
}
.coin-pack-featured {
  border-color: var(--l2-gold) !important;
  box-shadow: 0 0 20px rgba(201,168,76,.15);
}
.coin-pack-badge {
  position: absolute;
}

/* =============================================================
   QUESTS
   ============================================================= */
.quest-section-title {
  font-family: var(--l2-font-title);
  color: var(--l2-gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Featured cards */
.quest-card {
  background: var(--l2-panel);
  border: 1px solid var(--l2-panel-border);
  border-radius: 8px;
  padding: 1.2rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(201,168,76,.15);
  border-color: var(--l2-gold);
}
.quest-featured {
  border-left: 3px solid var(--l2-gold);
}
.quest-card-badge {
  font-size: .72rem;
  color: var(--l2-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}
.quest-card-title {
  font-family: var(--l2-font-title);
  color: var(--l2-gold-light);
  font-size: .95rem;
  margin-bottom: .5rem;
}
.quest-card-desc {
  color: var(--l2-text);
  font-size: .82rem;
  flex: 1;
  margin-bottom: .7rem;
}
.quest-card-meta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--l2-text-muted);
}
.quest-level { color: var(--l2-gold); }
.quest-location { color: var(--l2-blue-light); }

/* Accordion */
.quest-accordion-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--l2-panel-border) !important;
}
.quest-accordion-btn {
  background: rgba(10, 14, 20, 0.6) !important;
  color: var(--l2-gold) !important;
  font-family: var(--l2-font-title);
  font-size: .9rem;
  padding: .8rem 1rem;
  border: none;
  box-shadow: none !important;
}
.quest-accordion-btn:not(.collapsed) {
  background: rgba(201,168,76,0.08) !important;
}
.quest-accordion-btn::after {
  filter: invert(1);
}

/* Table rows */
.quest-row:hover {
  background: rgba(201,168,76,0.06) !important;
}
.quest-row-featured {
  border-left: 3px solid var(--l2-gold);
}
.quest-level-badge {
  background: rgba(26, 58, 92, 0.6);
  color: var(--l2-gold-light);
  font-size: .75rem;
  padding: .2rem .5rem;
  border-radius: 4px;
}

/* Detail modal */
.quest-detail-box {
  background: rgba(10, 14, 20, 0.5);
  border: 1px solid var(--l2-panel-border);
  border-radius: 6px;
  padding: .7rem;
  font-size: .85rem;
  color: var(--l2-text);
}
.quest-class-badge {
  background: rgba(26, 58, 92, 0.5);
  color: var(--l2-text);
  font-size: .72rem;
  font-weight: 400;
}
.quest-rewards-list {
  list-style: none;
  padding-left: 0;
}
.quest-rewards-list li {
  padding: .25rem 0;
  font-size: .85rem;
  color: var(--l2-text);
}
.quest-rewards-list li::before {
  content: '🎁 ';
}
  top: -12px;
  right: 12px;
  background: linear-gradient(135deg, var(--l2-gold-dark), var(--l2-gold));
  color: #fff;
  font-family: var(--l2-font-title);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(201,168,76,.3);
}
.coin-pack-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,168,76,.1);
  border: 2px solid rgba(201,168,76,.3);
}
.coin-pack-price {
  padding: 8px 0;
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(201,168,76,.15);
}

/* ─── Download Cards ─────────────────────────────────────────── */
.download-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

@media (max-width: 991px) {
  .launch-banner-card {
    width: 100%;
    min-height: 260px;
  }
  .launch-banner-link {
    min-height: 260px;
  }
  .launch-banner-title {
    font-size: 1.5rem;
  }
  .launch-count-box span {
    font-size: 2.4rem;
  }
  .launch-countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
  }
}

@media (max-width: 560px) {
  .launch-banner-card {
    min-height: 220px;
  }
  .launch-banner-link {
    min-height: 220px;
  }
  .launch-banner-title {
    font-size: 1.2rem;
  }
  .launch-count-box span {
    font-size: 2rem;
  }
  .launch-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
}
.download-featured {
  border-color: var(--l2-gold) !important;
  box-shadow: 0 0 15px rgba(201,168,76,.15);
}
.download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,168,76,.08);
  border: 2px solid rgba(201,168,76,.2);
}

/* ═══ Footer Partners ═══ */
.footer-partners {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.footer-partners-label {
  display: block;
  font-family: var(--l2-font-title);
  color: var(--l2-gold-dark);
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-partner-logo {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  opacity: .6;
  transition: opacity .3s, transform .3s;
  filter: grayscale(30%);
}
.footer-partner-logo:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: grayscale(0);
}

/* ═══ Hopzone / Vote Widget (Hero) ═══ */
.hopzone-widget {
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.hopzone-widget * {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  float: none !important;
}
.hopzone-widget img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 200px;
}
.hopzone-widget iframe {
  max-width: 100% !important;
  border: none;
}
@media (max-width: 767.98px) {
  .hopzone-widget {
    margin-bottom: 1rem;
  }
}
