:root {
  /* Earthy Dark Theme Color Palette - Matching Background Images */
  --bg-primary: #100608;
  --bg-secondary: #1e191a;
  --bg-tertiary: #27140f;
  --bg-btn-primary: #731414;
  --bg-btn-primary-hover: #a81d1d;
  --bg-panel: #1e191a;
  --bg-panel-header: #311f18;
  --border-color: #311f18;
  --border-light: #3a2a2a;

  /* Input and select specific colors */
  --input-bg: #1e191a;
  --input-border: #311f18;
  --input-hover-bg: #311f18;

  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --text-accent: #e0e0e0;

  --accent-primary: #8b4513;
  /* Earthy brown instead of blue */
  --accent-secondary: #a0522d;
  --accent-success: #28a745;
  --accent-danger: #dc3545;
  --accent-danger-hover: #c82333;
  --accent-danger-active: #bd2130;
  --accent-danger-focus: #c82333;
  --accent-danger-disabled: #6c757d;
  --accent-warning: #ffc107;
  --accent-info: #17a2b8;
  
  /* Button specific colors */
  --bg-btn-secondary: #6c757d;
  --bg-btn-secondary-hover: #5a6268;
  --bg-btn-secondary-active: #545b62;
  --bg-btn-secondary-focus: #5a6268;
  --bg-btn-secondary-disabled: #6c757d;

  /* Dimensions */
  --container-max-width: 1200px;
  --header-height: 80px;
  --sidebar-width: 250px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 8px;
  --space-lg: 16px;
  --space-xl: 16px;

  /* Typography */
  --font-family: Tahoma, sans-serif;
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;

  --font-size-xxl: 20px;
}


/* Simple Hero Section */
.hero-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.hero-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-size-xxl);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
}

.hero-actions {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hall of Fame Toggle Button */
.toggle-container {
  text-align: right;
  margin: 5px 0;
}


.toggle-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 4px;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.toggle-btn-small {
  font-size: 12px;
}


.toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.toggle-icon {
  font-size: 16px;
}

.toggle-icon12px {
  font-size: 12px;
}

/* Tab Navigation Styles */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-nav {
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-nav:hover {
  background-color: var(--bg-tertiary);
}

.tab-nav.active {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Page Pills Navigation */
.page-pills {
  margin-bottom: 20px;
}

.nav-pills {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.nav-pills .nav-item {
  margin: 0;
}

.nav-pills .nav-link {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: var(--font-size-md);
}

.nav-pills .nav-link:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.nav-pills .nav-link.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}


/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* Responsive HTML */
html {
  overflow-x: auto;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  background: var(--bg-primary);
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
  overflow-x: auto;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  cursor: url('/assets/normal.cur'), auto;
}

a:hover,
button:hover {
  cursor: url('/assets/pointer.cur'), auto;
}

/* Subtle texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.02) 0%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header Section */
.site-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}

.site-title {

  color: var(--text-primary);
}

.site-title h1 {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-title .subtitle {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 2px;
  letter-spacing: 1px;
}

.server-status {
  text-align: right;
  font-size: var(--font-size-sm);
}

.server-status .status {
  color: var(--accent-success);
  font-weight: bold;
  font-size: var(--font-size-md);
}

.server-status .players {
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Main Layout */
#content {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  grid-gap: var(--space-sm);
  min-height: calc(100vh - 120px);
  position: relative;
  padding: 0 var(--space-md);
}

.clear {
  clear: both;
}

.big-panel-content {
  background: url('/assets/images/some-bg.jpg');
  padding: 20px;
}

/* Panel Styling */
.panel {
  /* background-image: url('/assets/images/srodek_04.gif'); */
  background: url('/assets/images/top-sideblock.png') no-repeat top center, url('/assets/images/some-bg.jpg');
  /* background-size: 100% auto, cover; */
  margin: 0px 0px 20px 0px;

  border: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.panel-header {
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--text-primary);
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid var(--border-color);

  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 44px;

}

/* First spam or div in panel-header */

.panel-header i {
  margin-right: var(--space-sm);
  font-size: var(--font-size-md);
}

.panel-content {
  padding: var(--space-lg);
}

/* Big panels for center content */
.big-panel {
  background: var(--bg-panel);
  margin-bottom: var(--space-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.big-panel-header {
  background: var(--bg-panel-header);
  color: var(--text-primary);
  padding: var(--space-md);
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel variant with simplified background */
.panel-bg-v2 {
  background: url('/assets/images/some-bg.jpg');
  background-size: cover;
}

.panel-bg-v2 .panel-content {
  background: transparent;
}


#center .panel, .modal__overlay .panel {
  background: transparent;
  border: none;

}

#center .panel-header, .modal__overlay .panel-header {
  background: url('/assets/images/left-02.png') no-repeat top left, url('/assets/images/h1.png') no-repeat top right;
  height: 40px;
  min-width: 135px;
}

#center .panel-header .panel-title, .modal__overlay .panel-header .panel-title {
    color: var(--text-primary);
    font-family: var(--font-family);
    text-transform: uppercase;
    height: 40px;
    padding: 0px 55px 0px 56px;
    font-weight: 400;
}

.page-title{
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--font-size-md);
}

#center .panel-content, .modal__overlay .panel-content{
  padding: 10px;
  background: url('/assets/images/first-03.jpg') no-repeat top right;
  border-left: 1px solid var(--border-color);

}


/* Hall of Fame Header - Simplified */
.hallofFameTable {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}

/* Simple Select Style */
.select {
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.9em;
  min-width: 160px;
  cursor: pointer;
  font-family: inherit;
  width: 80%;
}

.select:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 3px rgba(139, 69, 19, 0.3);
}

.select option {
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 5px;
}

.select option:hover,
.select option:focus,
.select option:checked {
  background: var(--input-hover-bg);
  color: var(--text-primary);
}

/* Header Row with Title and Date Selector */
.hof-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
}

.hof-title-right {
  text-align: right;
}

.hof-title-right h2 {
  font-size: 1.4em;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff0000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(255, 107, 107, 0.5));
  }
}

.title-subtitle {
  color: #888;
  font-size: 0.7em;
  font-style: italic;
  margin-top: 2px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: right;
}

.hof-date-selector {
  display: flex;
  align-items: center;
}

/* Champions Row */
.champions-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-start;
}

.hofwiners {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid #333;
  min-width: 85px;
  flex: 1;
  transition: transform 0.2s ease;
}

.hofwiners:hover {
  transform: translateY(-2px);
}

.hofwiners.dark-lord {
  border: 2px solid #ff0000;
  background: rgba(139, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.hofwiners img {
  width: 35px;
  height: 40px;
  display: block;
  margin: 0 auto 8px;
  border: 1px solid #444;
  border-radius: 4px;
}

.hof-name {
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
  margin-bottom: 4px;
}

.dark-lord-name {
  color: #ff0000 !important;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.hof-wins {
  color: #888;
  font-size: 0.65em;
}

.dark-lord-wins {
  color: #ff6b6b !important;
  font-weight: bold;
}

/* Note: Hall of Fame responsive styling moved to main responsive section */


.link {
  text-decoration: none;
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

.button-container .link {
  display: block;
  font-size: var(--font-size-xs);
  text-align: center;
  ;
}

.link:hover {
  color: var(--accent-primary);
}

.link-hover:hover {
  color: var(--text-primary);
}

.user-navigation .link::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 12px;
  height: 12px;
  background-image: url('/assets/images/arrow2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Add styles for the user navigation links to ensure proper alignment */
.user-navigation .link {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.online-players {
  text-align: center;
  margin: var(--space-md) 0;
  font-size: var(--font-size-sm);
  font-weight: bold;
}

.online-players a {
  color: var(--text-primary);
  text-decoration: none;
}

.online-count {
  color: var(--accent-success);
  font-weight: bold;
  font-size: var(--font-size-md);
}

.lang-switcher {
  text-align: center;
  font-size: var(--font-size-xs);
  margin-top: var(--space-md);
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 3px;
}

.lang-switcher a:hover {
  color: var(--text-primary);
}

.lang-switcher img {
  vertical-align: middle;
  margin-left: 3px;
}

/* Menu Styling */
.menu {
  list-style: none;
}

.menu a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.menu a:hover {
  color: var(--text-primary);
  background: rgba(139, 69, 19, 0.1);
  padding-left: calc(var(--space-md) + 5px);
  border-left: 3px solid var(--accent-primary);
}

.menu a.hof {
  color: #ff0000;
  font-weight: bold;
  border-left: 3px solid #ff0000;
}

.menu a.hof:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
}



.menu a i {
  width: 16px;
  margin-right: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}


/* Right sidebar styling */
.game-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.currency-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
}

.currency-item:last-child {
  border-bottom: none;
}

.currency-item i {
  margin-right: var(--space-sm);
  font-size: var(--font-size-sm);
}

.currency-value {
  color: var(--accent-primary);
  font-weight: bold;
  font-size: var(--font-size-sm);
}



/* Content area styling */
.news-section {

  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--box-shadow);
}

.news-header {
  background: var(--bg-panel-header);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: bold;
  margin-bottom: var(--space-lg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-color);
}

.news-item {
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.news-item:last-child {
  border-bottom: none;
}

.achievement-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  box-shadow: var(--box-shadow);
}

.achievement-title {
  color: var(--text-primary);
  text-align: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

.achievement-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
}

.achievement-icon {
  color: var(--accent-primary);
  margin-right: var(--space-md);
  font-size: var(--font-size-lg);
}

/* Footer styling */
#footer {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

#footer a {
  color: var(--text-muted);
  text-decoration: none;
}

#footer a:hover {
  color: var(--text-primary);
}

/* Vote buttons */
.vote-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.vote-btn {
  width: 70px;
  height: 35px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

.vote-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
  transform: scale(1.05);
}

.vote-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Simple event timer styling */
.events-table tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

.events-table td {
  transition: background 0.2s ease;
}

.events-status {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  padding: var(--space-xs);
}

.events-status i {
  margin-right: var(--space-xs);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Event type specific styling */
.event-bc {
  color: var(--accent-danger) !important;
}

.event-ds {
  color: var(--accent-warning) !important;
}

.event-sky {
  color: var(--accent-info) !important;
}

.event-worm {
  color: var(--accent-success) !important;
}

.event-general {
  color: var(--accent-primary) !important;
}

/* Simple urgent events styling */
.event-urgent {
  color: var(--accent-warning) !important;
  font-weight: bold;
}

.event-started {
  color: var(--accent-success) !important;
  font-weight: bold;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Note: All media queries moved to bottom of file for better specificity */

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--accent-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Server Status */
.status-online {
  color: var(--accent-success);
  font-weight: bold;
}

.status-offline {
  color: var(--accent-danger);
  font-weight: bold;
}

/* Forms */
.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: var(--space-sm);
  margin-bottom: 3px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-input-group .form-input {
  width: 100%;
}

/* Horizontal Form Layout */
.form-group-inline {
  display: flex;
  align-items: center;
}

.form-group-inline .form-input {
  flex: 1;
  margin-bottom: 0;
}

.form-group-inline .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Form with title and search group */
.form-with-title {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.form-with-title.form-title-left {
  justify-content: flex-start;
}

.form-with-title.form-title-right {
  justify-content: space-between;
}

.form-title {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
  flex-shrink: 0;
}

.form-search-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.form-search-group .form-input {
  flex: 1;
  margin-bottom: 0;
}

.form-search-group .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 2 inputs per row: place inputs in rows of 2 */
.form-input-rows-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-sm);
  align-items: start;
}

.form-input-rows-2>label:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.form-input-rows-2>input:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.form-input-rows-2>label:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.form-input-rows-2>input:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

/* Note: Form responsive styling moved to main responsive section */


.recaptcha-error {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-sm);
}

.btn {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-md);
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-primary {
  background-color: var(--bg-btn-primary);
  color: var(--text-primary);
  border: 0;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-danger {
  background-color: var(--accent-danger);
  color: var(--text-white);
  border: 0;
}
.btn-danger:active {
  background-color: var(--accent-danger-active);
}
.btn-danger:hover {
  opacity: 0.8;
}
.btn-danger:focus {
  background-color: var(--accent-danger-focus);
}
.btn-danger:disabled {
  background-color: var(--accent-danger-disabled);
  color: var(--text-muted);
}

.btn-secondary {
  background-color: #6c757d;
  color: var(--text-primary);
  border: 0;
}

.btn-secondary:hover {
  opacity: 0.8;
}

.btn-secondary:active {
  background-color: var(--bg-secondary-active);
}

.btn-secondary:focus {
  background-color: var(--bg-secondary-focus);
}

.btn-secondary:disabled {
  background-color: var(--bg-secondary-disabled);
  color: var(--text-muted);
}

.btn-info {
  background-color: var(--accent-info);
  color: var(--text-primary);
  border: 0;
}

.btn-info:hover {
  opacity: 0.8;
}

.btn-info:active {
  background-color: var(--accent-info-active);
}

.btn-info:focus {
  background-color: var(--accent-info-focus);
}

.btn-info:disabled {
  background-color: var(--accent-info-disabled);
  color: var(--text-muted);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 3px;
}

.btn-sm i {
  font-size: 11px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}



/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th,
.table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: var(--bg-tertiary);
  color: var(--accent-primary);
}

/* Bordered table styling */
.table-bordered {
  border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border-color);
}

/* Table row hover effect */
.table tbody tr:hover {
  background-color: rgba(139, 69, 19, 0.05);
  transition: background-color 0.2s ease;
}

/* Striped table rows for better readability */
.table tbody tr:nth-child(even) {
  background-color: #241b1e !important;
}

.table tbody tr:nth-child(odd) {
  background-color: #231E20 !important
}

/* Table header styling */
.table thead th {
  background-color: var(--bg-panel-header);
  color: var(--text-primary);
  font-weight: bold;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  position: sticky;
  top: 0;
}

/* Note: Responsive tables styling moved to main responsive section */

/* Status text colors */
.text-success {
  color: var(--accent-success);
}

.text-warning {
  color: var(--accent-warning);
}

.text-danger {
  color: var(--accent-danger);
}

.text-info {
  color: var(--accent-info);
}

.text-secondary {
  color: var(--text-secondary);
}

/* Alerts */
.alert {
  padding: var(--space-md);
  border-radius: 0;
  position: relative;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid var(--accent-success);
  color: var(--accent-success);
}

.alert-error,
.alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid var(--accent-danger);
  color: var(--text-primary);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.2);
  border: 1px solid var(--accent-warning);
  color: var(--accent-warning);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.2);
  border: 1px solid var(--accent-info);
  color: var(--accent-info);
}

.alert-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  color: inherit;
  font-size: var(--font-size-lg);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.info-warning {
  padding: var(--space-md);
  color: var(--accent-warning);
}

.info-danger {
  padding: var(--space-md);
  color: var(--accent-danger);
}

.error-container {
  font-size: 20px;
}

.text-white {
  color: white;
}

.text-danger {
  color: var(--accent-danger);
}

.text-danger:hover {
  color: var(--text-primary);
  opacity: 0.8;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.arrow-navigation {
  margin-right: 10px;

}

.w-100 {
  width: 100% !important;
}

.w-50 {
  width: 50% !important;
}

.w-25 {
  width: 25% !important;
}

.w-20 {
  width: 20% !important;
}

.w-75 {
  width: 75% !important;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

tr.text-center td,
tr.text-center th {
  text-align: center;
}

/* Grid System */
.grid-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.grid-row+.grid-row {
  margin-top: 10px;
}

.grid-col {
  flex: 1;
  padding: 5px;
  min-width: 0;
}

.grid-col-1 {
  flex: 0 0 8.333%;
  max-width: 8.333%;
}

.grid-col-2 {
  flex: 0 0 16.666%;
  max-width: 16.666%;
}

.grid-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.grid-col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.grid-col-5 {
  flex: 0 0 41.666%;
  max-width: 41.666%;
}

.grid-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.grid-col-7 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
}

.grid-col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.grid-col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.grid-col-10 {
  flex: 0 0 83.333%;
  max-width: 83.333%;
}

.grid-col-11 {
  flex: 0 0 91.666%;
  max-width: 91.666%;
}

.grid-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Note: Grid responsive styling moved to main responsive section */

/* Panel margin utility */


/* Info styling */
.info-value {
  font-weight: bold;
  color: var(--accent-primary);
}

.panel-header small {
  font-weight: normal;
  font-size: 80%;
  color: var(--text-secondary);
  margin-left: 8px;
}

.exp-category {
  font-weight: bold;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--border-color);
}

/* Reset info */
.class-points {
  justify-content: space-between;
}

.class-points .grid-col {
  flex: 0 0 auto;
}

.class-points small {
  color: var(--accent-success);
  font-size: 85%;
}

/* Experience rate colors */
.exp-rate-highlight {
  color: var(--accent-success);
  font-weight: bold;
}

.exp-rate-normal {
  color: var(--accent-primary);
}

.exp-rate-reduced {
  color: var(--text-muted);
}

/* Experience rate custom section */
.exp-rate-section {
  margin-top: var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.exp-rate-section h3 {
  color: var(--accent-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
}

.exp-rate-section h3 small {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: normal;
  margin-left: var(--space-sm);
}

.exp-rate-container {
  display: flex;
  gap: var(--space-xl);
}

.exp-rate-group {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.exp-rate-title {
  font-weight: bold;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px dotted var(--border-color);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.exp-rate-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.exp-rate-value {
  font-weight: bold;
}

/* Note: Exp rate responsive styling moved to main responsive section */

/* .content-container first h1 */

#content-container h1:first-of-type {
  margin-bottom: var(--space-md);
}

/* Reset table-mobile-stack behavior */
.table-mobile-stack thead {
  display: table-header-group !important;
}

.table-mobile-stack tr {
  display: table-row !important;
}

.table-mobile-stack td {
  display: table-cell !important;
  text-align: left !important;
  padding: var(--space-sm) !important;
  position: static !important;
}

.table-mobile-stack td:before {
  content: none !important;
}

/* ======================================
   HEADER BUTTONS STYLES
   ====================================== */
.header-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.header-btn {
  position: relative;
  overflow: hidden;
  /* border-radius: 12px; */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.header-btn:hover::before {
  left: 100%;
}

.header-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--font-size-md);
  letter-spacing: 0.5px;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.header-btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-text {
  font-family: 'Orbitron', 'Cinzel', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Download Button - Dark Blue Theme */
.download-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
  border: 2px solid #1e3a8a;
}

.download-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1e3a8a 100%);
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.download-btn .header-link:hover {
  color: var(--text-primary);
}

.download-btn .btn-icon {
  color: #ffffff;
}

/* Discord Button - Discord Brand Colors */
.discord-btn {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 50%, #4752c4 100%);
  border: 2px solid #7289da;
}

.discord-btn:hover {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #7289da 100%);
  border-color: #5865f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 137, 218, 0.4);
}

.discord-btn .header-link:hover {
  color: var(--text-primary);
}

.discord-btn .btn-icon {
  color: #ffffff;
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2 0%, #1877f2 50%, #1877f2 100%);
  border: 2px solid #1877f2;
}

.facebook-btn:hover {
  background: linear-gradient(135deg, #1877f2 0%, #1877f2 50%, #1877f2 100%);
  border-color: #1877f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.facebook-btn .header-link:hover {
  color: var(--text-primary);
}

.facebook-btn .btn-icon {
  color: #ffffff;
}

.online-btn {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
  position: relative;
  overflow: hidden;
}

.online-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.online-btn .header-link {
  position: relative;
  z-index: 2;
}

.online-btn .header-link:hover {
  color: var(--text-primary);
}

.online-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.players-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 2px;
  padding: 2px;
  box-sizing: border-box;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #fbbf24 100%);
  border-radius: 1px;
  transition: width 0.3s ease;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  display: flex;
  gap: 1px;
}

.progress-segment {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.progress-segment.filled {
  background: linear-gradient(90deg, #ffffff 0%, #fbbf24 100%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* Progress bar color states - Green to red progression */
.progress-segment.filled.low {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
}

.progress-segment.filled.medium-low {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  box-shadow: 0 0 4px rgba(5, 150, 105, 0.6);
}

.progress-segment.filled.medium {
  background: linear-gradient(90deg, #047857 0%, #059669 100%);
  box-shadow: 0 0 4px rgba(4, 120, 87, 0.6);
}

.progress-segment.filled.high {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 0 4px rgba(220, 38, 38, 0.6);
}

.progress-segment.filled.critical {
  background: linear-gradient(90deg, #7c2d12 0%, #dc2626 100%);
  box-shadow: 0 0 4px rgba(124, 45, 18, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Button Animation on Load */
.header-btn {
  animation: buttonSlideIn 0.6s ease-out;
}

@keyframes buttonSlideIn {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Note: Header buttons responsive styling moved to main responsive section */

/* Remove old discord-invite styles */
.discord-invite {
  display: none;
}

/* 2nd td from tr to be lightblue */

.text-td2-primary tr td:nth-child(2) {
  color: var(--text-primary);
}

.text-td2-success tr td:nth-child(2) {
  color: var(--accent-success);
}

.text-td2-warning tr td:nth-child(2) {
  color: var(--accent-warning);
}

.text-td1-arrow tr td:nth-child(1) {
  background-image: url('/assets/images/arrow.png');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 12px;
  padding-left: 30px;
}

.itemblock {
  border-right: 1px solid #38373b;
  border-bottom: 1px solid #38373b;
  border-left: 1px solid #38373b;
  border-top: 1px solid #38373b;
  padding: 0px;
  text-align: center;
}

.fw-11px {
  font-size: 11px;
}

.hover-underline:hover {
  text-decoration: underline;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}


/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.ml-1 {
  margin-left: var(--space-xs);
}

.ml-2 {
  margin-left: var(--space-sm);
}

.ml-3 {
  margin-left: var(--space-md);
}

.ml-4 {
  margin-left: var(--space-lg);
}

.ml-5 {
  margin-left: var(--space-xl);
}

.ml-0 {
  margin-left: 0;
}

.mr-1 {
  margin-right: var(--space-xs);
}

.mr-2 {
  margin-right: var(--space-sm);
}

.mr-3 {
  margin-right: var(--space-md);
}

.mr-4 {
  margin-right: var(--space-lg);
}

.mr-5 {
  margin-right: var(--space-xl);
}

.mr-0 {
  margin-right: 0;
}

.m-1 {
  margin: var(--space-xs);
}

.m-2 {
  margin: var(--space-sm);
}

.m-3 {
  margin: var(--space-md);
}

.m-4 {
  margin: var(--space-lg);
}

.m-5 {
  margin: var(--space-xl);
}

.m-0 {
  margin: 0;
}


.pt-1 {
  padding-top: var(--space-xs);
}

.pt-2 {
  padding-top: var(--space-sm);
}

.pt-3 {
  padding-top: var(--space-md);
}

.pt-4 {
  padding-top: var(--space-lg);
}

.pt-5 {
  padding-top: var(--space-xl);
}

.pb-1 {
  padding-bottom: var(--space-xs);
}

.pb-2 {
  padding-bottom: var(--space-sm);
}

.pb-3 {
  padding-bottom: var(--space-md);
}

.pb-4 {
  padding-bottom: var(--space-lg);
}

.pb-5 {
  padding-bottom: var(--space-xl);
}

.p-1 {
  padding: var(--space-xs);
}

.p-2 {
  padding: var(--space-sm);
}

.p-3 {
  padding: var(--space-md);
}

.p-4 {
  padding: var(--space-lg);
}

.p-5 {
  padding: var(--space-xl);
}

.p-0 {
  padding: 0 !important;
}


.badge {
  padding: 0.25em 0.5em;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  color: var(--text-primary);
}

.bg-info {
  background-color: var(--accent-info);
}
.bg-dark{
  background-color: var(--bg-secondary);
}

/* ======================================
   MODAL STYLES - Global for all modals
   ====================================== */
/* MicroModal styles */
.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.micromodal-slide .modal__container {
  background-color: var(--bg-panel);
  padding: 0;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--border-radius);
  overflow-y: auto;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  width: 90%;
}

.micromodal-slide .modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-panel-header);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.micromodal-slide .modal__title {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.micromodal-slide .modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 24px;
  padding: 4px;
}

.micromodal-slide .modal__close:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.micromodal-slide .modal__close::before {
  content: "\2715";
}

.micromodal-slide .modal__content {
  padding: var(--space-lg);
  color: var(--text-primary);
}

.micromodal-slide .modal__footer {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

/* ======================================
   COMMON FORM AND CONTAINER STYLES
   ====================================== */
.selected-items-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  min-height: 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.selected-items-container:hover {
  border-color: var(--accent-primary);
}

.selected-item-display {
  position: relative;
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 8px;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.selected-item-display:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-tertiary);
}

.selected-item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.selected-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.remove-item-btn {
  background: var(--accent-danger);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.remove-item-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.prices-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  transition: border-color 0.2s ease;
}

.prices-container:hover {
  border-color: var(--accent-primary);
}

/* ======================================
   MARKET SPECIFIC STYLES
   ====================================== */
/* Market Grid Layout */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Shop Grid and Discount Styles */
.shop-grid {
  margin: var(--space-lg) 0;
}

.shop-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* VIP Discount Styling */
.vip-discount-price {
  position: relative;
  display: inline-block;
}

.vip-discount-price::before {
  content: "✨";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateY(-50%) scale(1.2); }
}

/* Discount Price Styling */
.discount-price {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #16a085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
  position: relative;
}

.discount-price::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #27ae60, #2ecc71, #16a085);
  border-radius: 1px;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Original Price with Strike-through */
.original-price {
  color: var(--text-secondary);
  text-decoration: line-through;
  font-size: 0.9em;
  opacity: 0.7;
  position: relative;
}

.original-price::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-danger);
  transform: rotate(-5deg);
}


/* Market Item Cards */
.market-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.market-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 69, 19, 0.2);
  border-color: var(--accent-primary);
}

.market-item-header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.market-item-image {
  flex-shrink: 0;
}

.item-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.item-icon:hover {
  border-color: var(--accent-primary);
}

.market-item-info {
  flex: 1;
}

.item-name {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--font-size-md);
  font-weight: bold;
}

/* Group Items Styling */
.group-items-container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow-x: auto;
}

.group-item-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.group-item-icon:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

/* Price Section */
.price-section h5 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--accent-primary);
}

.price-inline {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Market Item Footer */
.market-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.seller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-link {
  transition: color 0.2s ease;
}

.seller-link:hover {
  color: var(--accent-primary);
}

.btn-buy {
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Owner Actions */
.owner-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.btn-edit,
.btn-remove {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

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

.btn-remove:hover {
  color: var(--accent-danger);
  border-color: var(--accent-danger);
}

/* Market Filter Styles */
.market-filters input[type="checkbox"]:hover+span {
  color: var(--accent-primary);
}

.market-filters input[type="text"]:hover,
.market-filters input[type="number"]:hover,
.market-filters select:hover {
  border-color: var(--accent-primary);
}

.market-filters input[type="text"]:focus,
.market-filters input[type="number"]:focus,
.market-filters select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
}

.pagination {
  display: flex;
  gap: var(--space-xs);
}

.page-link {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.page-link.active {
  background: var(--accent-primary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.page-link.disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.pagination-info {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ======================================
   NAVIGATION PILLS STYLES - GLOBAL
   ====================================== */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: 0;
  list-style: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-xs);
}

.nav-pills .nav-item {
  margin: 0;
}

.nav-pills .nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.nav-pills .nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

/* Active state - use .active class for current page */
.nav-pills .nav-link.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

/* Alternative styling variants */
.nav-pills.nav-pills-outline .nav-link {
  border: 1px solid var(--border-color);
  background: transparent;
}

.nav-pills.nav-pills-outline .nav-link:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.nav-pills.nav-pills-outline .nav-link.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.nav-pills.nav-pills-minimal {
  background: transparent;
  border: none;
  padding: 0;
}

.nav-pills.nav-pills-minimal .nav-link {
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.nav-pills.nav-pills-minimal .nav-link:hover {
  background: transparent;
  border-bottom-color: var(--border-light);
}

.nav-pills.nav-pills-minimal .nav-link.active {
  background: transparent;
  border-bottom-color: var(--accent-primary);
  box-shadow: none;
}

/* Size variants */
.nav-pills.nav-pills-sm .nav-link {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
}

.nav-pills.nav-pills-lg .nav-link {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-md);
}

/* Centered nav-pills */
.nav-pills.nav-pills-center {
  justify-content: center;
}




/* ======================================
   REWARDS LIST STYLES
   ====================================== */
/* .rewards-container - background removed since panel already has one */

.reward-group {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: border-color 0.2s ease;
  height: 100%;
  /* Ensure equal height in grid */
}

.reward-title {
  font-size: var(--font-size-md);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-xs);
}

.reward-title i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.reward-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: var(--space-sm);
}

.reward-list li {
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  position: relative;
  padding-left: 5px;
}

.reward-list li:before {
  content: "";
}


.reward-list li:last-child {
  margin-bottom: 0;
}

/* ======================================
   TRIVIA EVENT SPECIFIC STYLES
   ====================================== */
.command-usage {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.command-usage h3 {
  color: var(--accent-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.command-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.command-item:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.command-item code {
  background: var(--bg-primary);
  color: var(--accent-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  font-weight: bold;
  border: 1px solid var(--border-color);
}

.command-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-style: italic;
}

.event-details {
  margin: var(--space-lg) 0;
}

.event-details h3 {
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rewards-section {
  margin-top: var(--space-xl);
}

.rewards-section h3 {
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ======================================
   WAREHOUSE SPECIFIC STYLES
   ====================================== */
/* Warehouse item styles */
.warehouse-item {
  cursor: pointer;
  position: relative;
}

.warehouse-item:hover {
  opacity: 0.8;
}

.warehouse-item.selected-for-sale::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.selected-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-primary);
}

/* Note: Market responsive styling moved to main responsive section */


.border-0 {
  border: 0 !important;
}

.border-bottom-0 {
  border-bottom: 0 !important;
}

/* ======================================
   KUNDUN PAGE SPECIFIC STYLES
   ====================================== */

/* Kundun Item Icon - 60px size with styling */
.kundun-item-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #f2f2f242;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.kundun-item-icon:hover {
  border-color: var(--accent-primary);
}

.kundun-item-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ======================================
   ACCORDION STYLES
   ====================================== */
.accordion-container {
  margin-bottom: var(--space-lg);
}

.accordion-item {
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  padding: var(--space-md);
  background: var(--bg-panel-header);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--bg-tertiary);
}

.accordion-header h3 {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-primary);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  padding: var(--space-lg);
  display: none;
  background: var(--bg-secondary);
}

.accordion-content p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}


/* Basic styles for lists using specific classes */
.ul-basic {
  margin: 1em 0 1em 1.5em;
  padding: 0;
  list-style-type: disc;
}

.ol-basic {
  margin: 1em 0 1em 1.5em;
  padding: 0;
  list-style-type: decimal;
}

.li-basic {
  margin-bottom: 0.25em;
  font-size: 1em;
  line-height: 1.5;
}

/* Arrow list variant - uses arrow.jpg from left-sidebar */
.ul-arrow {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}

.ul-arrow li {
  margin-bottom: 0.5em;
  padding-left: 20px;
  background-image: url('/assets/images/arrow.jpg');
  background-repeat: no-repeat;
  background-position: 0 5px;
  background-size: 12px;
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-primary);
}

.ul-arrow li:last-child {
  margin-bottom: 0;
}

/* ======================================
   NEWS CARD STYLES
   ====================================== */
.news-card {
  background: var(--bg-panel);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.news-card-author {
  color: var(--accent-primary);
  font-weight: bold;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.news-card-author i {
  font-size: var(--font-size-xs);
}

.news-card-date {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.news-card-date i {
  font-size: var(--font-size-xs);
}

.news-card-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card-content {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

.news-card-content p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.news-card-content p:last-child {
  margin-bottom: 0;
}

.news-card-content ul {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}

.news-card-content ul li {
  margin-bottom: 0.5em;
  padding-left: 20px;
  background-image: url('/assets/images/arrow.png');
  background-repeat: no-repeat;
  background-position: 0 5px;
  background-size: 12px;
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-primary);
}

.news-card-content ul li:last-child {
  margin-bottom: 0;
}

.news-card-content strong,
.news-card-content code {
  color: var(--text-primary);
}

/* Responsive news cards */
@media (max-width: 768px) {
  .news-card {
    padding: var(--space-md);
  }

  .news-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card-title {
    font-size: var(--font-size-md);
  }
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

/* Status and Avatar Images Styling */
.status-image {
  width: 10px;
  height: 10px;
  display: inline-block;
  vertical-align: middle;
}

.class-avatar-image {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* Character cell layout for rankings and online players */
.character-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.character-name {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.status-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 2px 4px;

}

/* Single image styling (for online players) */
.status-icon.single-image {
  padding: 2px 6px;

}

/* Dual image styling (for rankings) */
.status-icon.dual-image {
  padding: 2px 4px;

}

/* ======================================
   RULES PAGE SPECIFIC STYLES
   ====================================== */
.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.rule-category {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rule-category:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.1);
}

.rule-category-title {
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.rule-category-title i {
  color: var(--accent-primary);
  font-size: var(--font-size-md);
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules-list li {
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-size: var(--font-size-md);
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-lg);
  transition: color 0.2s ease;
}

.rules-list li small {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
  margin-top: var(--space-xs);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--border-light);
  line-height: 1.4;
}

.rules-list li:before {
  content: "•";
  color: var(--accent-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: var(--space-sm);
  font-size: var(--font-size-lg);
}

.rules-list li:hover {
  color: var(--text-accent);
}

.rules-list li:last-child {
  margin-bottom: 0;
}

.sub-rules-list {
  list-style: none;
  margin: var(--space-sm) 0 0 var(--space-lg);
  padding: 0;
}

.sub-rules-list li {
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  padding-left: var(--space-md);
  position: relative;
}

.sub-rules-list li:before {
  content: "◦";
  color: var(--text-muted);
  position: absolute;
  left: 0;
  top: var(--space-xs);
  font-size: var(--font-size-md);
}

.rule-notice {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 2px solid var(--accent-warning);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

.rule-notice:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.notice-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #856404;
  font-size: var(--font-size-lg);
  font-weight: bold;
}

.notice-content h4 {
  color: var(--accent-warning);
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin: 0 0 var(--space-sm) 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notice-content p {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  line-height: 1.6;
  margin: 0;
}

/* Note: Rules responsive styling moved to main responsive section */

/* ======================================
   VOTE PAGE STYLES
   ====================================== */
.vote-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.vote-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.vote-header h1 {
  color: var(--accent-primary);
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.vote-header h1 i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.vote-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  margin: 0;
}

.vote-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.vote-stat-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

.vote-stat-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.stat-number {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-rewards-section {
  margin-bottom: var(--space-xl);
}

.vote-rewards-section h2 {
  color: var(--accent-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-rewards-section h2 i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.rewards-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-md);
}



/* Panel states for vote rewards */
.panel.unlocked {
  border-color: var(--accent-success);
}

.panel.current {
  border-color: var(--accent-primary);
}

.panel.locked {
  opacity: 0.6;
}

.reward-item {
  display: inline-block;
  padding: 2px 3px;

  background: var(--bg-secondary);

  border: 1px solid var(--border-light);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

.vote-sites-section {
  margin-bottom: var(--space-xl);
}

.vote-sites-section h2 {
  color: var(--accent-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-sites-section h2 i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.vote-instructions {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-md);
}

.vote-sites-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  justify-items: center;
}

.vote-site-item {
  text-align: center;
}

.vote-site-item h3 {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-site-wrapper {
  display: inline-block;
}

.vote-link-simple {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.vote-link-simple:hover {
  transform: scale(1.05);
}



.vote-link-simple img {
  display: block;
  border-radius: var(--border-radius);
}

.vote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
}

.vote-link-simple.voted .vote-overlay {
  opacity: 1;
}

.vote-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    2px 2px 0px #000000,
    0px 0px 20px rgba(255, 255, 255, 0.9),
    0px 0px 40px rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #ffffff;
}

.vote-link-simple.voted {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(50%);
  pointer-events: none;
}

.vote-link-simple.voted:hover {
  transform: none;
}


.vote-info {
  margin-top: var(--space-xl);
}

.info-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.info-box h3 {
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-box h3 i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.info-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-box li {
  padding: var(--space-sm) 0;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-lg);
}

.info-box li:before {
  content: "✓";
  color: var(--accent-success);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: var(--space-sm);
}

/* ======================================
   AUTO PICKUP COMMANDS STYLES
   ====================================== */
.command-section {
  margin-bottom: var(--space-xl);
}

.section-title {
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title i {
  font-size: var(--font-size-md);
}

.default-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.item-category {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: border-color 0.2s ease;
}

.item-category:hover {
  border-color: var(--accent-primary);
}

.item-category h5 {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: var(--space-lg);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-list li:before {
  content: "•";
  color: var(--accent-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.command-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.command-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.command-item code {
  background: var(--bg-primary);
  color: var(--accent-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  font-weight: bold;
  border: 1px solid var(--border-color);
  display: block;
  margin-bottom: var(--space-sm);
}

.command-item p {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.command-item small {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-style: italic;
}

.category-explanation p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.category-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  text-align: center;
  transition: all 0.2s ease;
}

.category-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.category-number {
  display: block;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.category-name {
  display: block;
  color: var(--text-primary);
  font-weight: bold;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.category-desc {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.example-usage {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.example-usage h5 {
  color: var(--accent-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
}

.alert-content h5 {
  color: var(--accent-warning);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-list li {
  padding: var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
  position: relative;
  padding-left: var(--space-lg);
}

.alert-list li:last-child {
  border-bottom: none;
}

.alert-list li:before {
  content: "⚠";
  color: var(--accent-warning);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.error-troubleshooting {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--accent-danger);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.error-troubleshooting h5 {
  color: var(--accent-danger);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.error-troubleshooting p {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.duration-info {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.duration-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  flex: 1;
  min-width: 200px;
  transition: all 0.2s ease;
}

.duration-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.duration-item i {
  font-size: var(--font-size-lg);
}

.duration-item span {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

/* Note: Auto Pickup responsive styling moved to main responsive section */

/* ======================================
   SERVER LAUNCH COUNTDOWN STYLES
   ====================================== */
.restart-countdown-section {
  background: var(--bg-panel);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.restart-countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: countdown-sweep 3s infinite;
}

@keyframes countdown-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.countdown-header {
  text-align: center;
  color: var(--accent-primary);
  font-size: var(--font-size-lg);
  font-weight: bold;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.countdown-header i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
}

.countdown-container {
  text-align: center;
}

.countdown-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: var(--space-md);
  min-width: 80px;
  position: relative;
  transition: all 0.3s ease;
}

.time-unit:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.time-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.time-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.time-separator {
  font-size: 2rem;
  color: var(--accent-primary);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
  animation: separator-blink 2s infinite;
}

@keyframes separator-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.countdown-status {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.countdown-status i {
  margin-right: var(--space-sm);
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Status color variants */
.countdown-status.normal {
  color: var(--text-primary);
}

.countdown-status.launching-month {
  color: var(--accent-info);
}

.countdown-status.launching-soon {
  color: var(--accent-warning);
}

.countdown-status.launching-today {
  color: var(--accent-success);
  animation: urgent-pulse 1s infinite;
}

.countdown-status.launched {
  color: var(--accent-success);
  font-size: var(--font-size-lg);
}

@keyframes urgent-pulse {
  0%, 100% { 
    transform: scale(1);
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
  }
  50% { 
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
  }
}

/* Note: Countdown and Vote responsive styling moved to main responsive section */

.w-500px {
  width: 500px !important;
}

/* ======================================
   RESPONSIVE DESIGN - ALL MEDIA QUERIES
   Placed at bottom for maximum specificity
   ====================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  #content {
    grid-template-columns: 200px 1fr 200px;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }

  .header-content {
    padding: var(--space-sm) var(--space-md);
  }

  .header-buttons {
    gap: var(--space-sm);
  }

  .header-link {
    padding: 6px;
    font-size: var(--font-size-sm);
  }

  .btn-text {
    font-size: var(--font-size-xs);
  }

  .market-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Main Layout - User Panel First on Mobile! */
  #content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
    gap: var(--space-md);
    padding: var(--space-sm);
    margin: 10px auto;
  }

  #left {
    grid-area: left;
    order: 1;
  }

  #center {
    grid-area: center;
    order: 2;
  }

  #right {
    grid-area: right;
    order: 3;
  }

  /* Common Information Responsive */
  .panel-bg-v2 .grid-col-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .panel-bg-v2 .grid-col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Header */
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .logo-section {
    justify-content: center;
  }

  .header-buttons {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .header-btn {
    flex: 1;
    min-width: 120px;
  }

  /* Grid System */
  .grid-col-3,
  .grid-col-4,
  .grid-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Forms */
  .form-input-rows-2 {
    grid-template-columns: 1fr;
  }

  .form-input-rows-2>label:nth-child(1),
  .form-input-rows-2>input:nth-child(2),
  .form-input-rows-2>label:nth-child(3),
  .form-input-rows-2>input:nth-child(4) {
    grid-column: 1;
  }

  .form-input-rows-2>label:nth-child(1) { grid-row: 1; }
  .form-input-rows-2>input:nth-child(2) { grid-row: 2; }
  .form-input-rows-2>label:nth-child(3) { grid-row: 3; }
  .form-input-rows-2>input:nth-child(4) { grid-row: 4; }

  .form-with-title {
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-search-group {
    width: 100%;
  }

  /* Market */
  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-item-header {
    flex-direction: row;
  }

  .market-item-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }

  .owner-actions {
    justify-content: center;
  }

  /* Tables */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hall of Fame */
  .hof-header-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hof-title-right {
    text-align: center;
  }

  .champions-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hofwiners {
    min-width: 70px;
  }

  /* Vote Sites - 2 per row on tablet/mobile */
  .vote-sites-simple {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .vote-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Buttons */
  .button-container {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
  }

  /* Navigation Pills */
  .nav-pills {
    flex-wrap: wrap;
  }

  .nav-pills .nav-link {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  /* Panels */
  .panel,
  .big-panel {
    margin-bottom: var(--space-md);
  }

  /* Experience Rate */
  .exp-rate-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Command Grid */
  .command-grid {
    grid-template-columns: 1fr;
  }

  .default-items-grid {
    grid-template-columns: 1fr;
  }

  /* Pagination */
  .pagination-wrapper {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  /* Countdown */
  .countdown-display {
    gap: var(--space-sm);
  }

  .time-unit {
    min-width: 60px;
    padding: var(--space-sm);
  }

  .time-value {
    font-size: 1.8rem;
  }

  .time-separator {
    font-size: 1.5rem;
  }

  .countdown-header {
    font-size: var(--font-size-md);
  }

  /* Vote Container */
  .vote-container {
    padding: var(--space-md);
  }

  .vote-header h1 {
    font-size: var(--font-size-xl);
  }

  .rewards-grid {
    grid-template-columns: 1fr;
  }

  .vote-sites-grid {
    grid-template-columns: 1fr;
  }
}

/* Common Mobile Devices (540px and below) */
@media (max-width: 540px) {
  /* Ensure single column layout is maintained */
  #content {
    grid-template-columns: 1fr;
  }

  /* Adjust header for smaller screens */
  .header-btn {
    min-width: 110px;
  }

  .btn-text {
    font-size: 11px;
  }

  /* Tables - ensure no overflow */
  .table {
    font-size: var(--font-size-xs);
  }

  /* Forms full width */
  .form-input,
  .select {
    width: 100%;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: var(--font-size-xs);
  }

  /* Header */
  .site-title h1 {
    font-size: var(--font-size-lg);
  }

  .site-title .subtitle {
    font-size: var(--font-size-xs);
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .header-buttons {
    gap: var(--space-xs);
  }

  .header-btn {
    min-width: 100px;
  }

  .btn-text {
    font-size: 10px;
  }

  .btn-icon {
    font-size: 14px;
    margin-right: 4px;
  }

  /* Content */
  #content {
    padding: var(--space-xs);
    margin: 5px auto;
  }

  /* Grid System - Full width on mobile */
  .grid-col-3,
  .grid-col-4,
  .grid-col-6,
  .grid-col-1,
  .grid-col-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Common Information - Full width on mobile */
  .panel-bg-v2 .grid-col-3,
  .panel-bg-v2 .grid-col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Experience Rate - Stack vertically */
  .exp-category {
    font-size: var(--font-size-sm);
  }

  .grid-row {
    margin: 0;
  }

  .grid-row + .grid-row {
    margin-top: 8px;
  }

  /* Panels */
  .panel-content {
    padding: var(--space-sm);
  }

  .panel-header {
    font-size: var(--font-size-sm);
    padding: var(--space-sm);
  }

  /* Forms */
  .form-input,
  .select,
  .btn {
    font-size: var(--font-size-sm);
  }

  /* Tables */
  .table {
    font-size: var(--font-size-xs);
  }

  .table th,
  .table td {
    padding: var(--space-xs);
  }

  /* Market Items */
  .item-icon,
  .group-item-icon {
    width: 48px;
    height: 48px;
  }

  .item-name {
    font-size: var(--font-size-sm);
  }

  /* Vote Stats */
  .vote-stats {
    grid-template-columns: 1fr;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  /* Hall of Fame */
  .hofwiners {
    min-width: 60px;
    padding: var(--space-sm) var(--space-xs);
  }

  .hofwiners img {
    width: 28px;
    height: 32px;
  }

  .hof-name {
    font-size: 10px;
  }

  .hof-wins {
    font-size: 9px;
  }

  /* Navigation */
  .nav-pills .nav-link {
    padding: var(--space-xs);
    font-size: 10px;
  }

  /* Countdown */
  .time-unit {
    min-width: 50px;
    padding: var(--space-xs);
  }

  .time-value {
    font-size: 1.5rem;
  }

  .time-label {
    font-size: 9px;
  }

  .time-separator {
    font-size: 1.2rem;
  }

  /* Command Grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Rules */
  .rule-category {
    padding: var(--space-sm);
  }

  .rule-notice {
    flex-direction: column;
    padding: var(--space-sm);
  }

  /* Footer */
  #footer {
    padding: var(--space-md);
    font-size: var(--font-size-xs);
  }

  /* Utility Classes */
  .w-500px {
    width: 100% !important;
  }

  /* Menu */
  .menu a {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  /* Currency Items */
  .currency-item {
    font-size: var(--font-size-xs);
    padding: 5px 0;
  }

  /* Modals */
  .micromodal-slide .modal__container {
    width: 95%;
    max-height: 85vh;
  }

  .micromodal-slide .modal__header {
    padding: var(--space-sm);
  }

  .micromodal-slide .modal__content {
    padding: var(--space-sm);
  }

  .micromodal-slide .modal__title {
    font-size: var(--font-size-md);
  }

  /* Hero Section */
  .hero-section {
    padding: var(--space-sm);
  }

  .hero-title {
    font-size: var(--font-size-md);
  }

  /* Rewards */
  .reward-group {
    padding: var(--space-sm);
  }

  .reward-title {
    font-size: var(--font-size-sm);
  }

  .reward-list li {
    font-size: var(--font-size-xs);
    padding: var(--space-xs);
  }

  /* Auto Pickup */
  .item-category h5 {
    font-size: var(--font-size-sm);
  }

  .item-list li {
    font-size: 10px;
  }
}

/* iPhone 12 Pro / Pixel 5 (425px) */
@media (max-width: 425px) {
  /* Ensure grid layout is maintained */
  #content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "left"
      "center"
      "right" !important;
    display: grid !important;
    gap: var(--space-md);
    padding: var(--space-xs);
    margin: 5px auto;
  }

  #left {
    grid-area: left !important;
    order: 1 !important;
  }

  #center {
    grid-area: center !important;
    order: 2 !important;
  }

  #right {
    grid-area: right !important;
    order: 3 !important;
  }

  /* Header - Override 768px styles */
  .header-content {
    flex-direction: column !important;
    gap: var(--space-sm) !important;
    text-align: center !important;
    padding: var(--space-xs) var(--space-sm);
  }

  .logo-section {
    justify-content: center !important;
  }

  .header-buttons {
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: var(--space-xs);
  }

  /* Fine-tune header buttons */
  .header-btn {
    min-width: 95px !important;
    flex: 0 1 auto;
  }

  .btn-text {
    font-size: 10px !important;
  }

  .btn-icon {
    font-size: 14px;
    margin-right: 4px;
  }

  /* Ensure content fits */
  .panel-content {
    padding: var(--space-sm) !important;
  }

  .panel-header {
    padding: var(--space-sm) !important;
    font-size: var(--font-size-sm);
  }

  /* Compact tables */
  .table th,
  .table td {
    padding: var(--space-xs) !important;
    font-size: 11px !important;
  }

  /* Smaller icons */
  .item-icon,
  .group-item-icon {
    width: 45px !important;
    height: 45px !important;
  }

  /* Market grid single column */
  .market-grid {
    grid-template-columns: 1fr !important;
  }

  /* Full width buttons */
  .btn {
    width: 100% !important;
  }

  /* Grid columns full width */
  .grid-col-3,
  .grid-col-4,
  .grid-col-6,
  .grid-col-1,
  .grid-col-2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Forms */
  .form-input-rows-2 {
    grid-template-columns: 1fr !important;
  }

  .form-with-title {
    flex-direction: column !important;
    gap: var(--space-sm);
  }

  /* Navigation Pills */
  .nav-pills {
    flex-wrap: wrap !important;
  }

  .nav-pills .nav-link {
    font-size: 10px !important;
    padding: var(--space-xs) var(--space-sm) !important;
  }

  /* Button Container */
  .button-container {
    flex-direction: column !important;
    gap: var(--space-xs);
  }

  /* Pagination */
  .pagination-wrapper {
    flex-direction: column !important;
    gap: var(--space-sm);
    align-items: center;
  }

  /* Vote Sites */
  .vote-sites-simple {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm);
  }

  .vote-stats {
    grid-template-columns: 1fr !important;
  }

  /* Experience Rate */
  .exp-rate-container {
    flex-direction: column !important;
    gap: var(--space-sm);
  }

  /* Hall of Fame */
  .hof-header-row {
    flex-direction: column !important;
    gap: var(--space-sm);
  }

  .champions-row {
    flex-wrap: wrap !important;
    justify-content: center;
  }

  .hofwiners {
    min-width: 65px;
    padding: var(--space-sm) var(--space-xs);
  }
}

/* iPhone X / 12 Mini (375px) */
@media (max-width: 375px) {
  /* Further reduce header */
  .header-btn {
    min-width: 90px;
  }

  .btn-text {
    font-size: 9px;
  }

  .btn-icon {
    font-size: 12px;
  }

  /* More compact spacing */
  #content {
    padding: var(--space-xs);
  }

  .panel-header {
    padding: var(--space-xs);
    font-size: 11px;
  }

  /* Navigation */
  .nav-pills .nav-link {
    font-size: 9px;
    padding: 3px 6px;
  }

  /* Countdown */
  .time-value {
    font-size: 1.3rem;
  }

  .time-unit {
    min-width: 45px;
  }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
  .header-btn {
    min-width: 85px;
  }

  .btn-text {
    font-size: 8px;
  }

  .players-text {
    font-size: 9px;
  }

  .time-value {
    font-size: 1.2rem;
  }

  .time-label {
    font-size: 8px;
  }

  .nav-pills .nav-link {
    font-size: 8px;
    padding: 2px 4px;
  }

  /* Ultra-compact panels */
  .panel-content {
    padding: 6px;
  }

  .panel-header {
    padding: 6px;
    font-size: 10px;
  }

  /* Keep vote sites at 2 per row even on very small screens */
  .vote-sites-simple {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .vote-site-item h3 {
    font-size: 11px;
  }
}

/* Landscape Mode Optimizations - Only for tablets/larger devices */
@media (min-width: 568px) and (max-width: 1024px) and (orientation: landscape) {
  #content {
    grid-template-columns: 180px 1fr 180px;
    grid-template-areas: "left center right";
  }

  #left {
    grid-area: left;
  }

  #center {
    grid-area: center;
  }

  #right {
    grid-area: right;
  }

  .header-content {
    flex-direction: row;
    text-align: left;
  }

  .logo-section {
    justify-content: flex-start;
  }

  /* Ensure panels fit in narrower sidebars */
  .panel-content {
    padding: var(--space-sm);
  }
}

/* Small devices in landscape should stay single column */
@media (max-width: 567px) and (orientation: landscape) {
  #content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
  }

  #left {
    grid-area: left;
    order: 1;
  }

  #center {
    grid-area: center;
    order: 2;
  }

  #right {
    grid-area: right;
    order: 3;
  }
}

/* ======================================
   RESPONSIVE UTILITY CLASSES
   Show/Hide elements at different breakpoints
   ====================================== */

/* Desktop Only (≥1025px) - Hide on tablet/mobile */
@media (max-width: 1024px) {
  .lg-none {
    display: none !important;
  }
}

/* Tablet and Below (≤1024px) - Show only on tablet/mobile */
.lg-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .lg-only {
    display: block !important;
  }
}

/* Tablet Only (768px-1024px) - Hide on desktop and mobile */
@media (min-width: 1025px) {
  .md-none {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .md-none {
    display: none !important;
  }
}

/* Mobile Only (≤768px) - Hide on tablet/desktop */
@media (min-width: 769px) {
  .sm-none {
    display: none !important;
  }
}

/* Mobile and Below (≤768px) - Show only on mobile */
.sm-only {
  display: none !important;
}

@media (max-width: 768px) {
  .sm-only {
    display: block !important;
  }
}

/* Small Mobile Only (≤425px) */
@media (min-width: 426px) {
  .xs-none {
    display: none !important;
  }
}

.xs-only {
  display: none !important;
}

@media (max-width: 425px) {
  .xs-only {
    display: block !important;
  }
}

/* Flex variants for inline elements */
.lg-only-flex {
  display: none !important;
}

@media (max-width: 1024px) {
  .lg-only-flex {
    display: flex !important;
  }
}

.sm-only-flex {
  display: none !important;
}

@media (max-width: 768px) {
  .sm-only-flex {
    display: flex !important;
  }
}

.xs-only-flex {
  display: none !important;
}

@media (max-width: 425px) {
  .xs-only-flex {
    display: flex !important;
  }
}

/* Inline variants */
.lg-only-inline {
  display: none !important;
}

@media (max-width: 1024px) {
  .lg-only-inline {
    display: inline !important;
  }
}

.sm-only-inline {
  display: none !important;
}

@media (max-width: 768px) {
  .sm-only-inline {
    display: inline !important;
  }
}

/* Desktop/Tablet Show (Hide on mobile) */
@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
}

/* Mobile Show (Hide on desktop/tablet) */
.mobile-show {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-show {
    display: block !important;
  }
}

.mobile-show-flex {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-show-flex {
    display: flex !important;
  }
}

/* Desktop Show (Hide on mobile/tablet) */
.desktop-show {
  display: none !important;
}

@media (min-width: 1025px) {
  .desktop-show {
    display: block !important;
  }
}

.desktop-show-flex {
  display: none !important;
}

@media (min-width: 1025px) {
  .desktop-show-flex {
    display: flex !important;
  }
}

/* Print Styles */
@media print {
  .site-header,
  #left,
  #right,
  #footer,
  .header-buttons,
  .button-container,
  .btn {
    display: none !important;
  }

  #content {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  #center {
    grid-area: auto;
  }

  body {
    background: white;
    color: black;
  }

  .panel,
  .big-panel {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

/* add underline css */

.text-underline {
  text-decoration: underline;
}

/* Select2 Custom Styling - Match Theme */
.select2-container--default .select2-selection--single {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0;
  height: auto;
  padding: var(--space-sm);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  line-height: normal;
  padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 3px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  outline: none;
  border-color: var(--accent-primary);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--text-muted);
  margin-right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--accent-danger);
}

/* Select2 Dropdown */
.select2-dropdown {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0;
}

.select2-container--default .select2-search--dropdown {
  padding: var(--space-sm);
  background: var(--bg-secondary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: var(--space-sm);
  outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--accent-primary);
}

/* Select2 Results */
.select2-container--default .select2-results__option {
  padding: var(--space-sm);
  color: var(--text-primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--accent-primary);
  color: var(--text-primary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--accent-primary);
  color: var(--text-accent);
}

.select2-container--default .select2-results__option--disabled {
  color: var(--text-muted);
}

.select2-results__option .text-muted {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Select2 Loading */
.select2-container--default .select2-results__option--loading {
  color: var(--text-muted);
}

/* Select2 No Results */
.select2-container--default .select2-results__message {
  color: var(--text-muted);
}

/* Select2 in Modals */
.modal__content .select2-container {
  width: 100% !important;
}

.modal__content .select2-dropdown {
  z-index: 10001;
}

.justify-content-center{
  justify-content: center;
}

/* Scrap System Styles */
.scrapable-item {
    position: relative;
}

.scrapable-item.selected-for-scrap::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.non-scrapable-item {
    opacity: 0.5;
    cursor: not-allowed !important;
    filter: grayscale(50%);
}

.non-scrapable-item:hover {
    opacity: 0.7;
}

/* Scrap button styles */
#scrap-items-trigger {
    background: linear-gradient(135deg, #dc3545, #a71e2a);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

#scrap-items-trigger:hover {
    background: linear-gradient(135deg, #c82333, #8b1a24);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#scrap-items-trigger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tooltip enhancement for scrap points */
.tippy-box[data-theme~='scrap'] {
    background-color: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #34495e;
}

.tippy-box[data-theme~='scrap'] .tippy-arrow {
    color: #2c3e50;
}

/* Animation for items being scrapped */
@keyframes scrapDisintegrate {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(10deg);
    }
}

.item-being-scrapped {
    animation: scrapDisintegrate 0.8s ease-in-out forwards;
}

/* Drop Calculator specific styles */
.drop-calculator-search {
    position: relative;
}

.drop-calculator-search .select2-container {
    width: 100% !important;
}

.drop-calculator-search .select2-container--default .select2-selection--single {
  
    border: 2px solid var(--input-border);
    border-radius: 0;
    background-color: var(--input-bg);
    transition: border-color 0.3s ease;
}

.drop-calculator-search .select2-container--default .select2-selection--single:hover {
    border-color: var(--accent-primary);
}

.drop-calculator-search .select2-container--default .select2-selection--single:focus,
.drop-calculator-search .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--accent-primary);
    outline: none;
}

.drop-calculator-search .select2-container--default .select2-selection--single .select2-selection__rendered {

    font-size: var(--font-size-md);
    color: var(--text-primary);
    padding-left: 12px;
}

.drop-calculator-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.drop-calculator-search .select2-dropdown {
    background-color: var(--bg-panel);
    border: 2px solid var(--border-color);
    border-radius: 0;
    box-shadow: var(--box-shadow);
}

.drop-calculator-search .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 0;
    padding: 8px 12px;
}

.drop-calculator-search .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.drop-calculator-search .select2-container--default .select2-results__option {
    background-color: var(--bg-panel);
    color: var(--text-primary);
    padding: 8px 12px;
}

.drop-calculator-search .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--accent-primary);
    color: white;
}

.drop-calculator-search .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--accent-primary);
    color: white;
}

.drop-calculator-results {
    margin-top: var(--space-lg);
}

.drop-calculator-item-info {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius);
}

.drop-calculator-item-info h4 {
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
}

.drop-calculator-item-info .grid-row {
    margin-bottom: var(--space-sm);
}

.drop-calculator-item-info .grid-row:last-child {
    margin-bottom: 0;
}

.drop-calculator-table {
    margin-top: var(--space-lg);
}

.drop-calculator-table .table th {
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
}

.drop-calculator-table .table td {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.drop-calculator-table .table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* Improved search behavior - focus immediately on dropdown open */
.select2-container--open .select2-search--dropdown .select2-search__field {
    animation: searchFieldFocus 0.2s ease-in-out;
}

@keyframes searchFieldFocus {
    from {
        opacity: 0.7;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsiveness for drop calculator */
@media (max-width: 768px) {
    .drop-calculator-search .select2-container--default .select2-selection--single {
        height: 45px;
    }
    
    .drop-calculator-search .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 41px;
        font-size: var(--font-size-sm);
    }
    
    .drop-calculator-search .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 41px;
    }
    
    .drop-calculator-item-info {
        padding: var(--space-md);
    }
    
    .drop-calculator-item-info h4 {
        font-size: var(--font-size-lg);
    }
}


.select2-container--default .select2-results__option--selected{
  background-color: #352b25;
}


.notiflix-confirm-content{
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-color) !important;
}

.nx-confirm-button-ok{
  border-radius: 0 !important;
  background: var(--bg-btn-primary) !important;
  color: var(--text-primary) !important;
  border: none !important;
}

.nx-confirm-button-ok:hover{
  background: var(--bg-btn-primary-hover) !important;
}

.nx-confirm-button-cancel{
  border-radius: 0 !important;
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.nx-confirm-button-cancel:hover{
  background: var(--bg-tertiary) !important;
  border-color: var(--accent-primary) !important;
}

.notiflix-confirm-head h5{
  color: var(--text-primary) !important;
}

.notiflix-confirm-head div{
  color: var(--text-primary) !important;
}

.notiflix-confirm-content {
  border-radius: 0 !important;
}