:root {
  --primary: #0f141a;
  --secondary: #1a232e;
  --accent: #d4af37; /* Albion Gold */
  --accent-glow: rgba(212, 175, 55, 0.4);
  --gold-soft: #c5a059;
  --text: #e0e0e0;
  --muted: #8a96a3;
  --bg: #0a0d11;
  --card-bg: linear-gradient(145deg, #1e2733, #151c24);
  --green: #4caf50;
  --tier-4: #4a90e2;
  --tier-5: #f5a623;
  --tier-6: #bd10e0;
  --tier-7: #7ed321;
  --tier-8: #d0021b;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    url('https://www.transparenttextures.com/patterns/dark-leather.png');
  color: var(--text);
  font-family: 'Inter', sans-serif; /* Cleaner body text */
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-logo, .hero h1 {
  font-family: 'Cinzel', serif; /* Keep RPG font for headers */
}

/* Ambient Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  animation: pulse-bg 8s infinite alternate;
}

@keyframes pulse-bg {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Custom IP Badge */
.ip-badge {
  background: linear-gradient(135deg, #444, #222);
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ip-badge::before {
  content: '⚡';
  font-size: 0.6rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hero Section */
.hero {
  margin: 40px 0;
  padding: 60px 40px;
  border-radius: 30px;
  border: 1px solid rgba(215, 168, 74, 0.25);
  background: 
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 50%),
    linear-gradient(135deg, rgba(15, 20, 26, 0.9), rgba(10, 13, 17, 0.95)),
    url('https://www.transparenttextures.com/patterns/dark-matter.png');
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(212, 175, 55, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(212, 175, 55, 0.05) 0deg, transparent 60deg, transparent 300deg, rgba(212, 175, 55, 0.05) 360deg);
  animation: rotate-hero 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotate-hero {
  100% { transform: rotate(360deg); }
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 15px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(to bottom, #fff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.1rem;
}

.guild-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}

.guild-chip:hover {
  transform: scale(1.05);
}

.guild-chip img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.guild-chip span {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.6fr 0.6fr;
  gap: 16px;
  margin-bottom: 30px;
}

.toolbar-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease;
}

.toolbar-box:focus-within {
  border-color: var(--gold);
}

.toolbar label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.toolbar input,
.toolbar select {
  width: 100%;
  height: 44px;
  margin: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 14px;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.toolbar input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(215, 168, 74, 0.4);
}

/* Summary Cards */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  background: linear-gradient(180deg, rgba(24, 31, 43, 0.9), rgba(18, 24, 34, 0.9));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
}

.summary-card small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.summary-card strong {
  font-size: 1.5rem;
  color: var(--gold-soft);
  font-weight: 800;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Rank Card Improvements */
.rank-card {
  background: var(--card-bg);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 60%);
  pointer-events: none;
}

.rank-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-image-wrap {
  position: relative;
  padding: 16px 16px 0;
  height: 200px; /* Fixed height for image area */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.card-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Don't cut off the item images */
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.rank-card:hover .card-image-wrap img {
  transform: scale(1.1);
}

.rank-image {
  width: 100%;
  aspect-ratio: 10 / 14;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f141c;
  transition: transform 0.5s ease;
}

.rank-card:hover .rank-image {
  transform: scale(1.05);
}

.guild-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 20, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.tier-ribbon {
  padding: 4px 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Specific Tier Colors */
.tier-T4 { background: #3b5998; }
.tier-T5 { background: #e67e22; }
.tier-T6 { background: #8e44ad; }
.tier-T7 { background: #27ae60; }
.tier-T8 { background: #c0392b; }

.card-body {
  padding: 24px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title-row h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1.2;
}

.price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.9rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.desc {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 48px;
}

.kit-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.kit-list li {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.kit-list li::before {
  content: '◈';
  color: var(--gold-soft);
  margin-right: 8px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-box {
  background: rgba(0,0,0,0.3);
  border-left: 3px solid var(--gold-soft);
  padding: 10px 15px;
}

.meta-box:hover {
  background: rgba(255, 255, 255, 0.06);
}

.meta-box.full {
  grid-column: 1 / -1;
}

.meta-box small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.meta-box strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn-main,
.btn-alt {
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-main {
  background: linear-gradient(180deg, #d4af37, #aa8a2e) !important;
  color: #000 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  border: 1px solid #7a6324 !important;
  box-shadow: 0 4px 0 #7a6324;
  transition: all 0.1s ease;
}

.btn-main:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a6324;
}

.btn-main:hover {
  filter: brightness(1.1);
}

.btn-alt {
  flex: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-alt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Premium Glassmorphism & Visual Polish */
:root {
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f2d06b 50%, #d4af37 100%);
  --dark-gradient: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  --glass: rgba(20, 25, 33, 0.7);
  --glass-border: rgba(212, 175, 55, 0.15);
}

.info-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(212, 175, 55, 0.02);
  margin-bottom: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-panel:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.info-panel h2 {
  font-size: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 15px 0;
  line-height: 1.2;
}

.profile-date-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

.profile-date-container i {
  font-size: 1.2rem;
  color: var(--gold-soft);
}

.summary-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 15px; /* Reduced from 25px */
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.summary-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.05);
  border-color: var(--gold-soft);
}

.summary-card strong {
  display: block;
  font-size: 1.8rem; /* Reduced from 2.5rem */
  font-family: 'Cinzel', serif;
  margin-top: 5px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-main {
  background: linear-gradient(135deg, #d4af37, #f2d06b, #d4af37) !important;
  background-size: 200% auto;
  color: #0a0d11 !important;
  font-weight: 900 !important;
  border: 1px solid #ffdf73 !important;
  border-radius: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.5) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  width: auto !important;
  padding: 0 30px !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-main::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  z-index: -1;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.5) !important;
  background-position: right center !important;
}

.btn-main:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4) !important;
}

.custom-modal {
  background: linear-gradient(180deg, #161b22, #0d1117) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 0 20px rgba(212, 175, 55, 0.05) !important;
  padding: 0 !important;
  margin-top: 5vh !important;
  max-width: 500px !important;
  overflow: hidden;
}

.modal.custom-modal .modal-content {
  padding: 40px;
}

.modal.custom-modal .modal-content h4 {
  color: var(--gold-soft);
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.custom-tabs .tab a.active {
  color: var(--gold-soft) !important;
  background: rgba(212, 175, 55, 0.05) !important;
}

.custom-tabs .indicator {
  background-color: var(--gold-soft) !important;
}

/* Table dimension fixes */
table.highlight tbody tr:hover {
  background-color: rgba(255,255,255,0.02) !important;
}

.responsive-table {
  width: 100%;
  margin-top: 10px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

table thead th {
  color: var(--gold-soft) !important;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
}

table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 15px 5px !important;
}

@media only screen and (max-width: 992px) {
  .info-panel { padding: 20px; }
  .summary-card strong { font-size: 1.8rem; }
}


.info-panel p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.system-status .chip {
  width: 100%;
  height: 45px;
  line-height: 45px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.system-status .chip i {
  margin: 0;
  font-size: 1.4rem;
}

/* Modal Styling */
/* Forms & Inputs Fixes */
.custom-modal {
  background: #151c24 !important;
  border: 2px solid var(--gold-soft) !important;
  border-radius: 15px !important;
  box-shadow: 0 0 50px rgba(0,0,0,0.9) !important;
  padding: 30px !important;
  margin-top: 5vh !important;
  max-width: 450px !important;
}

.input-field {
  margin-bottom: 30px !important;
  position: relative;
}

.input-field input {
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.2) !important;
  margin-bottom: 0 !important;
  padding: 10px 0 !important;
  font-size: 1.1rem !important;
  font-family: 'Roboto', sans-serif !important; /* Fix for casing distinction */
}

.input-field label {
  color: var(--muted) !important;
  font-family: 'Roboto', sans-serif !important; /* Fix for casing distinction */
  font-size: 0.9rem !important;
  left: 0 !important;
  top: 10px !important;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Ensure label moves up correctly */
.input-field label.active {
  transform: translateY(-28px) scale(0.85) !important;
  color: var(--gold-soft) !important;
}

.input-field input:focus {
  border-bottom: 1px solid var(--gold-soft) !important;
  box-shadow: 0 1px 0 0 var(--gold-soft) !important;
}

.btn-main {
  width: 100%;
  margin-top: 10px;
  height: 50px !important;
  font-size: 1.1rem !important;
}

.modal.custom-modal .modal-content {
  padding: 40px;
}

.modal.custom-modal .modal-content h4 {
  color: var(--gold-soft);
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 15px;
}

.modal.custom-modal .modal-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 30px 30px;
  margin-top: 15px;
}

/* Cart Styles */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid #000;
  min-width: 20px;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-info img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn-small {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-btn-small:hover {
  background: var(--gold-soft);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border: 2px solid var(--bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-soft);
}

.toolbar-box input, .toolbar-box select {
  background: rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(197, 160, 89, 0.2) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0 15px !important;
  height: 45px !important;
  font-family: 'Roboto', sans-serif !important;
}

.toolbar-box label {
  color: var(--gold-soft) !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: none !important; /* Allow mixed case */
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.brand-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text) !important;
  display: flex;
  align-items: center;
}

.brand-logo span {
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.main-nav {
  background: rgba(10, 13, 17, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.main-nav:hover {
  background: rgba(10, 13, 17, 0.95) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
}

.nav-links a {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background: rgba(255,255,255,0.05) !important;
  color: var(--accent) !important;
}

.nav-links li a.btn-main {
  height: 40px !important;
  line-height: 1 !important;
  padding: 0 25px !important;
  margin-left: 15px;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #d4af37, #aa8a2e) !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 0 #7a6324 !important;
}

/* App Sections */
.app-section {
  display: none;
  padding: 40px 0;
  min-height: calc(100vh - 64px);
}

.app-section.active {
  display: block;
}

/* News & Timers */
.news-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
}

.news-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin-bottom: 5px;
}

.badge-new {
  background: var(--accent);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 10px;
}

.db-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}

.timer-box {
  background: rgba(0,0,0,0.5);
  padding: 25px 15px;
  border-radius: 15px;
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease;
}

.timer-box:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.timer-box small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.timer-clock {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-soft);
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Tabs Styling */
.custom-tabs .tab a {
  color: var(--muted) !important;
  font-family: 'Cinzel', serif;
}

.custom-tabs .tab a.active {
  color: var(--accent) !important;
}

.custom-tabs .indicator {
  background-color: var(--accent) !important;
}

/* Tables */
table.highlight tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.05) !important;
}

th {
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

td {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Profile */
.profile-img {
  box-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .summary {
    grid-template-columns: 1fr;
  }
  
  .toolbar {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 30px 20px;
    margin: 20px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .card-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
