/* Reino Lunaris – Static version – Theme and base (mirrors original globals) */
:root {
  --imperium-dark: #012736;
  --imperium-blue: #2A7FA9;
  --imperium-teal: #356173;
  --imperium-light-blue: #5CA9C8;
  --imperium-gold: #FFBA01;
  --imperium-light-gray: #D4D4D4;
  --imperium-off-white: #E2E2E1;
  --background: var(--imperium-dark);
  --foreground: var(--imperium-off-white);
  --card: var(--imperium-dark);
  --card-foreground: var(--imperium-off-white);
  --primary: var(--imperium-gold);
  --primary-foreground: var(--imperium-dark);
  --secondary: var(--imperium-teal);
  --secondary-foreground: var(--imperium-off-white);
  --muted: var(--imperium-teal);
  --muted-foreground: var(--imperium-light-gray);
  --accent: var(--imperium-light-blue);
  --accent-foreground: var(--imperium-dark);
  --border: var(--imperium-teal);
  --input: var(--imperium-teal);
  --ring: var(--imperium-gold);
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.app-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  z-index: 10;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .main-content {
    padding: 1.5rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .main-content {
    padding: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(1, 39, 54, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .header-logo img {
    width: 3rem;
    height: 3rem;
  }
}

.header-title {
  font-family: 'CampanaScript', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--foreground);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .header-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .header-title {
    font-size: 4.5rem;
  }
}

.header-title-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}

@media (min-width: 640px) {
  .header-title-center {
    display: block;
  }

  .header-title-mobile {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  color: var(--foreground);
  background: var(--background);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Nav bar under header */
.nav-bar {
  border-top: 1px solid var(--border);
  background: var(--imperium-teal);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.45rem 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  /* slightly smaller font */
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--foreground);
  background: #012736;
  text-decoration: none;
}

/* User menu */
.user-menu-wrap {
  position: relative;
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--imperium-gold);
  background-size: cover;
  background-position: center;
  background-color: rgba(1, 39, 54, 0.95);
  cursor: pointer;
}

@media (min-width: 640px) {
  .user-avatar {
    width: 3rem;
    height: 3rem;
  }
}

@media (min-width: 768px) {
  .user-avatar {
    width: 4rem;
    height: 4rem;
  }
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 14rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  color: var(--foreground);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.dropdown-item.logout {
  color: #FF574F;
  margin-top: 0.5rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: var(--imperium-teal);
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Footer Discord link – white button style */
.footer-grid .center a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-grid .center a:hover {
  color: #ffffff;
  opacity: 0.85;
  text-decoration: none;
}

/* Footer developer link – white, bold, always underlined */
.footer-grid .end a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

.footer-grid .end a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: left;
  }

  .footer-grid .center {
    text-align: center;
  }

  .footer-grid .end {
    text-align: right;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links button {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: underline;
}

.footer-links button:hover {
  color: var(--foreground);
}

/* Cards */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.card-content {
  padding: 1.25rem;
}

/* Home hero */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd96f 0%, #5CA9C8 50%, #2A7FA9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero h2 {
    font-size: 3rem;
  }
}

.hero p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .hero p {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.125rem;
  }
}

/* Home Section Spacing - Add top and bottom spacing */
.home-section {
  margin-bottom: 3rem;
  margin-top: 2rem;
}

/* Section Container with Border (includes title + content) */
.home-section {
  border: 2px solid var(--imperium-gold);
  border-radius: var(--radius);
  background: #011E29;
  overflow: hidden;
}

/* Centered Section Headers */
.section-header-centered {
  background: var(--imperium-teal);
  padding: 1.5rem 1rem;
  text-align: center;
  margin: 0.5rem 0.5rem 0 0.5rem;
  border-radius: var(--radius-sm);
}

.section-title-centered {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 640px) {
  .section-title-centered {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .section-title-centered {
    font-size: 2rem;
  }
}

/* Adjust card styling when inside home-section */
.home-section .card {
  border: none;
  border-radius: 0;
  background: transparent;
}


.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #2A7FA9;
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.discord-btn:hover {
  background: #1E5F8A;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Modal - Redesigned to match site UI/UX */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  background: #011E29;
  border: 2px solid var(--imperium-gold);
  border-radius: var(--radius);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--imperium-teal);
  padding: 1.5rem;
  text-align: center;
  margin: 0.5rem 0.5rem 0 0.5rem;
  border-radius: var(--radius-sm);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 640px) {
  .modal-title {
    font-size: 1.75rem;
  }
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--imperium-light-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background: rgba(1, 39, 54, 0.6);
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--imperium-gold);
  background: rgba(1, 39, 54, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 186, 1, 0.1);
}

.form-group input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  min-width: 120px;
}

/* Forgot Password Modal Specific Styles */
#forgot-code-display {
  background: rgba(1, 39, 54, 0.8);
  border: 2px solid var(--imperium-gold);
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--imperium-gold);
  letter-spacing: 4px;
  flex: 1;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(255, 186, 1, 0.1);
}

#forgot-refresh-code {
  padding: 1rem;
  min-width: auto;
}

/* Modal content text styling */
.modal-body p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.modal-body p strong {
  color: var(--imperium-gold);
  font-weight: 700;
}

/* Forgot password link in auth modal */
#btn-forgot-password {
  background: none;
  border: none;
  padding: 0;
  color: var(--imperium-light-blue);
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

#btn-forgot-password:hover {
  color: var(--imperium-gold);
}


/* Starfield - Pure solid background (no stars) */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--background);
}

.starfield .stars {
  display: none;
  /* Removed star effect */
}

/* Removed star twinkle animation */

/* Page content above starfield */
.main-content {
  position: relative;
  z-index: 10;
}

/* Utility */
.hidden {
  display: none !important;
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Members Page Sections */
.members-section {
  border: 2px solid var(--imperium-gold);
  border-radius: var(--radius);
  background: #011E29;
  overflow: hidden;
  margin-bottom: 2rem;
}

.members-section-header {
  background: var(--imperium-teal);
  padding: 1.5rem 1rem;
  text-align: center;
  margin: 0.5rem 0.5rem 0 0.5rem;
  border-radius: var(--radius-sm);
}

.members-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 640px) {
  .members-section-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .members-section-title {
    font-size: 2rem;
  }
}

.members-section-content {
  padding: 1.5rem;
}

/* Member Detail Actions */
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-destructive {
  background: #DC2626;
  color: white;
  border: 1px solid #B91C1C;
}

.btn-destructive:hover {
  background: #B91C1C;
}

/* Member Detail Modal Styles */
.member-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.member-modal-box {
  background: var(--imperium-dark);
  border: 2px solid var(--imperium-gold);
  border-radius: var(--radius);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-modal-header {
  background: var(--imperium-teal);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--imperium-gold);
}

.member-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.member-modal-body {
  padding: 1.5rem;
}

.member-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* CampanaScript font */
@font-face {
  font-family: 'CampanaScript';
  src: url('../fonts/CampanaScript_PERSONAL_USE_ONLY.otf') format('opentype');
  font-display: swap;
}

/* Emperors Section */
.emperors-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .emperors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .emperors-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.emperors-card {
  background: linear-gradient(135deg, rgba(255, 216, 111, 0.25) 0%, rgba(92, 169, 200, 0.25) 50%, rgba(42, 127, 169, 0.2) 100%);
  border: 1px solid var(--imperium-gold);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.emperors-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.emperors-avatar-wrap {
  position: relative;
  /* Removed fixed dimensions to allow original size */
  min-height: 6rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1rem;
}

.emperors-avatar-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #9CA3AF;
  border: 2px solid var(--card);
  transition: background-color 0.3s ease;
}

/* Online status - green indicator */
.emperors-avatar-wrap.status-online::after {
  background-color: #10B981;
}

/* Offline status - gray indicator (default) */
.emperors-avatar-wrap.status-offline::after {
  background-color: #9CA3AF;
}

.emperors-avatar {
  /* Remove transform or scaling */
  transform: none;
  max-width: none;
  height: auto;
}

.emperors-name {
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.emperors-role {
  color: var(--imperium-gold);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

.emperors-motto {
  color: var(--muted-foreground);
  font-style: italic;
  font-size: 0.75rem;
  margin-top: auto;
  opacity: 0.8;
}

/* Membership Carousel */
/* Membership Layouts */
.memberships-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

/* Static Mode (<= 3 items) - HORIZONTAL LAYOUT */
.memberships-static {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Carousel/Animated Mode (> 3 items) */
/* (existing styles...) */

/* ... (rest of the file is truncated in view_file, but I will append to valid end) */
/* ACTUALLY, I should append to the end. The view_file was truncated. I will write to end of file using `replace_file_content` targeting the end? No, I will use `read_resource` or `view_file` to find the end or just append if I can? 
   The tool `replace_file_content` requires StartLine/EndLine. 
   I need to know the end content. 
   I'll view the end of the file first. */
.memberships-animated {
  overflow: hidden;
  /* Gradient mask for smooth fade on edges */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.memberships-carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  /* Keyframe animation duration will be set or can be fixed. 
     Using a generic slow speed, e.g. 40s. 
     We can adjust speed based on item count if we want, but CSS-only is static. */
  animation: scroll 40s linear infinite;
}

/* Maintain gap via margin for seamless looping */
.memberships-carousel-track .membership-card {
  margin-right: 1.5rem;
}

.memberships-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Scrollbar styles removed as we are using keyframe animation for >3 items. */

.membership-card {
  flex: 0 0 auto;
  width: 320px;
  max-width: 320px;
  min-width: 320px;
  scroll-snap-align: center;
  background: linear-gradient(135deg, rgba(1, 39, 54, 0.9) 0%, rgba(42, 127, 169, 0.2) 100%);
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  height: 500px;
  /* Fixed height for consistency - increased for better spacing */
}

.membership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--imperium-gold);
}

.membership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--imperium-gold), var(--imperium-light-blue));
}

.membership-image-container {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 10px;
  border: 1px solid var(--imperium-teal);
}

.membership-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.membership-name {
  font-family: 'CampanaScript', cursive;
  font-size: 2.25rem;
  font-weight: normal;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.membership-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--imperium-gold);
  margin-bottom: 1.25rem;
  background: rgba(255, 186, 1, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.membership-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  overflow-y: auto;
  flex: 1;
  min-height: 150px;
  /* Ensure adequate space for features */
}

.membership-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.membership-features li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--imperium-gold);
  font-size: 0.75rem;
  top: 2px;
}

/* Important Info Section - Gold Theme */
.important-info-section {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(255, 186, 1, 0.05) 0%, rgba(1, 39, 54, 0.2) 100%);
  border: 1px solid rgba(255, 186, 1, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.important-info-title {
  color: var(--imperium-gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.important-info-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.important-info-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--card-foreground);
  font-size: 0.9rem;
}

.important-info-list li {
  margin-bottom: 0.5rem;
}

/* Opening Hours Section */
.opening-hours-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .opening-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .opening-hours-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.country-card {
  background: linear-gradient(180deg, rgba(92, 169, 200, 0.1) 0%, rgba(1, 39, 54, 0.3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, background 0.2s;
}

.country-card:hover {
  background: linear-gradient(180deg, rgba(92, 169, 200, 0.2) 0%, rgba(1, 39, 54, 0.5) 100%);
  transform: translateY(-2px);
}

.country-flag {
  width: 3rem;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.country-info {
  display: flex;
  flex-direction: column;
}

.country-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--foreground);
}

.country-time {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.country-time svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.8;
}

/* Navigation Icons */
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a i,
.nav-links a svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Discord Button Icon */
.discord-btn-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Footer Icons */
.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer-icon-dev {
  width: 1.25rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* =========================
   Ranks Page Styles
   ========================= */

.ranks-page-layout {
  padding-top: 1rem;
}

/* Ranks Table */
.ranks-table {
  width: 100%;
}

.ranks-table-header {
  display: none;
}

@media (min-width: 768px) {
  .ranks-table-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(53, 97, 115, 0.4);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .ranks-table-header .ranks-col {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--imperium-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .ranks-table-header .ranks-col-payments {
    text-align: center;
  }
}

.ranks-table-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(53, 97, 115, 0.3);
}

/* Alternating row backgrounds for visual distinction */
.ranks-row-even {
  background: rgba(1, 39, 54, 0.3);
}

.ranks-row-odd {
  background: rgba(42, 127, 169, 0.08);
}

.ranks-table-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .ranks-table-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 1rem;
    align-items: center;
    flex-direction: unset;
  }
}

/* Column: Badge + Name */
.ranks-col-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ranks-badge-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(92, 169, 200, 0.3);
  border-radius: var(--radius);
  padding: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gold border hover effect only on badge */
.ranks-badge-wrap:hover {
  border-color: var(--imperium-gold);
  box-shadow: 0 0 12px rgba(255, 186, 1, 0.15);
}

.ranks-badge-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ranks-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--foreground);
  letter-spacing: 0.01em;
}

/* Column: Price */
.ranks-col-price {
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .ranks-col-price::before {
    content: 'Precio: ';
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
}

.ranks-price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--imperium-gold);
  background: rgba(255, 186, 1, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ranks-credits-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ranks-free-label {
  color: #4ade80;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Column: Payment Breakdown */
.ranks-col-payments {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 767px) {
  .ranks-col-payments::before {
    content: 'Ganancias:';
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}

.ranks-payment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(1, 39, 54, 0.5);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--imperium-teal);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ranks-payment-row:hover {
  border-left-color: var(--imperium-gold);
  background: rgba(1, 39, 54, 0.7);
}

.ranks-payment-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--imperium-light-blue);
  background: rgba(92, 169, 200, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}

.ranks-payment-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Membership requirement note */
.ranks-membership-note {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--muted-foreground);
  opacity: 0.85;
  margin-left: 0.25rem;
}

/* =========================
   News Page Styles
   ========================= */

.news-page-layout {
  padding-top: 1rem;
}

/* News Grid - 2 columns, up to 6 rows (12 items per page) */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* News Card - Compact horizontal layout with icon on left */
.news-card {
  background: linear-gradient(135deg, rgba(1, 39, 54, 0.9) 0%, rgba(42, 127, 169, 0.15) 100%);
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--imperium-gold), var(--imperium-light-blue));
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--imperium-gold);
}

/* News Card Icon - Small icon on the left */
.news-card-icon-wrap {
  width: 50px;
  height: 50px;
  min-width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 169, 200, 0.1);
  border: 2px solid var(--imperium-teal);
  border-radius: var(--radius);
  padding: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover .news-card-icon-wrap {
  border-color: var(--imperium-gold);
  box-shadow: 0 0 12px rgba(255, 186, 1, 0.2);
}

.news-card-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* News Card Content */
.news-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
  /* Allows text truncation if needed */
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
  margin: 0;
}

/* Read More Button */
.news-read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--imperium-gold);
  color: var(--imperium-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.news-read-more-btn:hover {
  background: color-mix(in srgb, var(--imperium-gold) 85%, black);
  transform: translateX(4px);
}

/* Pagination Controls */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(53, 97, 115, 0.3);
}

.news-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--imperium-teal);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--imperium-light-blue);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-pagination-btn:not(:disabled):hover {
  background: var(--imperium-light-blue);
  border-color: var(--imperium-gold);
  transform: scale(1.05);
}

.news-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.news-pagination-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  background: rgba(53, 97, 115, 0.2);
  border-radius: var(--radius);
}

/* News Detail View */
.news-detail-view {
  margin-top: 1.5rem;
}

/* Back Button */
.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--imperium-light-blue);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-bottom: 1.5rem;
}

.news-back-btn:hover {
  background: var(--imperium-teal);
  border-color: var(--imperium-light-blue);
}

.news-back-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Detail Header */
.news-detail-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(92, 169, 200, 0.08) 0%, rgba(1, 39, 54, 0.2) 100%);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid rgba(92, 169, 200, 0.2);
}

.news-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .news-detail-title {
    font-size: 2.5rem;
  }
}

.news-detail-description {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Detail Meta */
.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.news-detail-author,
.news-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--imperium-light-blue);
  font-weight: 500;
}

.news-detail-author svg,
.news-detail-date svg {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.8;
}

/* Tags */
.news-detail-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.news-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 186, 1, 0.1);
  color: var(--imperium-gold);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 1rem;
  border: 1px solid rgba(255, 186, 1, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Detail Content */
.news-detail-content {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .news-detail-content {
    padding: 2.5rem 2rem;
  }
}

.news-detail-message {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--card-foreground);
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-message br {
  margin-bottom: 0.5rem;
}

/* ========================================
   FAQ Section Styles
   ======================================== */

/* FAQ Category Container */
.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category:last-child {
  margin-bottom: 0;
}

/* FAQ Category Title */
.faq-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--imperium-gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--imperium-teal);
}

.faq-category-title svg {
  color: var(--imperium-gold);
  flex-shrink: 0;
}

/* FAQ Questions Container */
.faq-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* FAQ Item (Question + Answer) */
.faq-item {
  background: rgba(53, 97, 115, 0.15);
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--imperium-gold);
  box-shadow: 0 4px 12px rgba(255, 186, 1, 0.1);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-question:hover {
  background: rgba(92, 169, 200, 0.1);
  color: var(--imperium-light-blue);
}

.faq-question[aria-expanded="true"] {
  background: rgba(42, 127, 169, 0.15);
  color: var(--imperium-gold);
  border-bottom: 1px solid var(--imperium-teal);
}

.faq-question-text {
  flex: 1;
  line-height: 1.5;
}

/* FAQ Chevron Icon */
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--imperium-light-blue);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--imperium-gold);
}

/* FAQ Answer Container */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* FAQ Answer Content */
.faq-answer-content {
  padding-top: 0.75rem;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .faq-category-title {
    font-size: 1.15rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-answer-open {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .faq-answer-content {
    font-size: 0.9rem;
  }
}

/* Smooth scrolling for FAQ navigation */
.faq-item {
  scroll-margin-top: 100px;
}

/* =========================
   Top Employees Page Styles - PREMIUM REDESIGN
   ========================= */

.top-employees-page-layout {
  padding-top: 1rem;
}

/* ========================================
   EMPLOYEE OF THE MONTH - PREMIUM SECTION
   ======================================== */

.employees-of-month-section {
  margin-bottom: 3rem;
}

.employees-of-month-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .employees-of-month-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.employee-of-month-card {
  background: linear-gradient(135deg, rgba(192, 219, 255, 0.08) 0%, rgba(1, 39, 54, 0.95) 100%);
  border: 3px solid #A8D8EA;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.employee-of-month-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #A8D8EA 0%, #E0F7FA 50%, #A8D8EA 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.employee-of-month-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(168, 216, 234, 0.3), 0 0 80px rgba(168, 216, 234, 0.15);
}

/* Category Badge */
.employee-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #A8D8EA, #80DEEA);
  color: var(--imperium-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(168, 216, 234, 0.4);
}

/* Large Circular Avatar */
.employee-avatar-circle {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8D8EA, #80DEEA);
  padding: 6px;
  box-shadow:
    0 0 0 4px rgba(1, 39, 54, 0.5),
    0 0 30px rgba(168, 216, 234, 0.6),
    0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employee-of-month-card:hover .employee-avatar-circle {
  transform: scale(1.05);
  box-shadow:
    0 0 0 4px rgba(1, 39, 54, 0.5),
    0 0 50px rgba(168, 216, 234, 0.8),
    0 15px 50px rgba(0, 0, 0, 0.7);
}

.employee-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--imperium-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.employee-avatar-head {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Trophy Icon Overlay */
.employee-trophy-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #E0F7FA, #80DEEA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(168, 216, 234, 0.6);
  border: 3px solid var(--imperium-dark);
}

.employee-trophy-icon svg {
  width: 28px;
  height: 28px;
  color: var(--imperium-dark);
}

/* Employee Info */
.employee-username {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.employee-hours-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: #A8D8EA;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.employee-hours-display svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Empty State for Winners */
.employee-empty-state {
  padding: 3rem 1.5rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* ========================================
   RANKINGS SECTIONS - ORGANIZED BY CATEGORY
   ======================================== */

.rankings-category-section {
  margin-bottom: 3rem;
}

.rankings-category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--imperium-gold);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.rankings-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--imperium-gold), transparent);
}

.rankings-tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .rankings-tables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ranking Table Card - Enhanced */
.ranking-table-card {
  background: linear-gradient(135deg, rgba(1, 39, 54, 0.8) 0%, rgba(42, 127, 169, 0.15) 100%);
  border: 2px solid var(--imperium-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ranking-table-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: var(--imperium-gold);
}

.ranking-table-header {
  background: linear-gradient(135deg, var(--imperium-teal), rgba(42, 127, 169, 0.8));
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--imperium-gold);
  position: relative;
}

.ranking-table-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--imperium-gold), transparent);
}

.ranking-table-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-table-body {
  padding: 0;
}

/* Ranking Row - Enhanced */
.ranking-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid rgba(53, 97, 115, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-row:hover {
  background: linear-gradient(90deg, rgba(92, 169, 200, 0.15), rgba(255, 186, 1, 0.05));
  transform: translateX(4px);
}

/* Position Badge - Enhanced */
.ranking-position {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--imperium-teal);
  border: 2px solid var(--imperium-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ranking-position-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Remove old position number styles - keeping for backwards compatibility if needed */
.ranking-position-1,
.ranking-position-2,
.ranking-position-3,
.ranking-position-other {
  /* These classes are now only used for potential fallback */
  background: var(--imperium-teal);
  border: 2px solid var(--imperium-gold);
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.6),
      0 4px 12px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.8),
      0 6px 16px rgba(255, 215, 0, 0.5);
  }
}

/* User Info */
.ranking-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ranking-username {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-rank {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Hours Display - Enhanced */
.ranking-hours {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--imperium-gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ranking-hours svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Empty State */
.ranking-empty {
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.ranking-empty svg {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.ranking-empty p {
  font-size: 1rem;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .employee-avatar-circle {
    width: 150px;
    height: 150px;
  }

  .employee-username {
    font-size: 1.5rem;
  }

  .employee-hours-display {
    font-size: 1.25rem;
  }

  .rankings-category-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .employee-of-month-card {
    padding: 2rem 1.5rem;
  }

  .employee-avatar-circle {
    width: 130px;
    height: 130px;
  }

  .employee-trophy-icon {
    width: 40px;
    height: 40px;
  }

  .employee-trophy-icon svg {
    width: 22px;
    height: 22px;
  }

  .employee-username {
    font-size: 1.25rem;
  }

  .employee-hours-display {
    font-size: 1.125rem;
  }

  .ranking-row {
    grid-template-columns: 2.75rem 1fr auto;
    gap: 0.75rem;
    padding: 1rem;
  }

  .ranking-position {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
  }

  .ranking-username {
    font-size: 0.95rem;
  }

  .ranking-hours {
    font-size: 1.125rem;
  }

  .rankings-category-title {
    font-size: 1.25rem;
  }
}

/* ========================================
   PROFILE PAGE - MODERN REDESIGN
   ======================================== */

/* Main Profile Layout */
.profile-modern-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .profile-modern-layout {
    flex-direction: row;
    gap: 3rem;
    padding: 1rem;
  }
}

/* Avatar Section */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.profile-avatar-container {
  position: relative;
  background: linear-gradient(135deg, rgba(42, 127, 169, 0.15) 0%, rgba(53, 97, 115, 0.15) 100%);
  border: 3px solid var(--imperium-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 186, 1, 0.2);
}

.profile-avatar-fullbody {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.profile-username-display {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--imperium-gold);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .profile-username-display {
    font-size: 2rem;
  }
}

/* Information Section Wrapper */
.profile-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Informational Text */
.profile-info-text {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(42, 127, 169, 0.08) 0%, rgba(53, 97, 115, 0.08) 100%);
  border-left: 3px solid var(--imperium-gold);
  border-radius: var(--radius);
}

/* Information Grid */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: start;
}

/* Full-width card for Member Since */
.profile-info-card-full {
  grid-column: 1 / -1;
}

/* Information Cards */
.profile-info-card {
  background: linear-gradient(135deg, rgba(42, 127, 169, 0.08) 0%, rgba(53, 97, 115, 0.08) 100%);
  border: 1px solid rgba(92, 169, 200, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--imperium-gold) 0%, var(--imperium-light-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-info-card:hover {
  background: linear-gradient(135deg, rgba(42, 127, 169, 0.15) 0%, rgba(53, 97, 115, 0.15) 100%);
  border-color: rgba(92, 169, 200, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-info-card:hover::before {
  opacity: 1;
}

.profile-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.profile-info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  word-break: break-word;
}

/* Status Indicators */
.profile-info-value.status-active {
  color: #4ade80;
}

.profile-info-value.status-inactive {
  color: #f87171;
}

/* Password Section */
.profile-password-section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(42, 127, 169, 0.05) 0%, rgba(53, 97, 115, 0.05) 100%);
  border: 1px solid rgba(92, 169, 200, 0.2);
  border-radius: var(--radius);
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--imperium-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 186, 1, 0.2);
}

.profile-password-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .profile-password-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-password-form .form-group {
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .profile-avatar-container {
    padding: 1rem;
  }

  .profile-username-display {
    font-size: 1.5rem;
  }

  .profile-info-card {
    padding: 1rem;
  }

  .profile-password-section {
    padding: 1.5rem;
  }

  .profile-section-title {
    font-size: 1.25rem;
  }
}

/* Payments Page */
.payments-page-container {
  width: 100%;
}

/* Saved Payment Cards - Container */
.saved-payment-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(1, 30, 41, 0.6);
  border: 2px solid #C0C0C0;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.saved-payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Avatar Box */
.saved-payment-avatar-box {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 2px solid var(--imperium-gold);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.saved-payment-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content Area */
.saved-payment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  /* Prevent grid blowout */
}

.saved-payment-username {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-left: 0.25rem;
}

/* Data Grid (4 columns) */
.saved-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.info-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  min-height: 80px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value-lg {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.info-value-md {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}

.info-value-sm {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.info-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--foreground);
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Actions Column */
.saved-payment-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 180px;
  flex-shrink: 0;
}

.btn-action-lg {
  width: 100%;
  padding: 0.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  height: auto;
  white-space: normal;
  text-align: center;
}

.btn-action-sm {
  font-size: 0.85rem;
  padding: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .saved-payment-card {
    flex-direction: column;
    align-items: stretch;
  }

  .saved-payment-avatar-box {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .saved-payment-username {
    text-align: center;
    margin-left: 0;
  }

  .saved-payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .saved-payment-actions {
    width: 100%;
    flex-direction: row;
  }

  .saved-payment-actions>button,
  .saved-payment-actions>div {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .saved-payment-grid {
    grid-template-columns: 1fr;
  }

  .saved-payment-actions {
    flex-direction: column;
  }
}

/* Membership Expiry Page */
.members-expiry-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .members-expiry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .members-expiry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .members-expiry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.member-expiry-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  overflow: hidden;
  padding: 1.5rem;
}

.member-expiry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--imperium-gold);
}

.member-expiry-card.expired {
  border-color: rgba(239, 68, 68, 0.4);
}

.member-expiry-card.expired:hover {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.15);
}

/* Elements inside card (if not using inline styles) */
.expiry-username {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.expiry-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--imperium-gold);
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.expiry-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.member-expiry-card.expired .expiry-avatar-wrap {
  border-color: #ef4444;
}

.expiry-membership {
  font-family: 'CampanaScript', cursive;
  font-size: 2.5rem;
  color: var(--imperium-gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.expiry-date-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.1rem;
}

.expiry-date-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.member-expiry-card.expired .expiry-date-val {
  color: #fca5a5;
}

.expiry-timer {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.expiry-timer.soon {
  background: rgba(92, 169, 200, 0.15);
  color: var(--imperium-light-blue);
  border: 1px solid rgba(92, 169, 200, 0.3);
}

.expiry-timer.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* News Creation & Detail Views */
.news-creation-view,
.news-detail-view {
  padding: 1rem 0;
}

.news-creation-header,
.news-detail-header {
  margin-bottom: 1.5rem;
}

.news-back-btn,
.news-create-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.news-back-btn:hover,
.news-create-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border-color: var(--imperium-gold);
}

.news-back-btn svg,
.news-create-back-btn svg {
  width: 1rem;
  height: 1rem;
}

.news-detail-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

#news-creation-form .form-group {
  margin-bottom: 1.5rem;
}

#news-creation-form label {
  display: block;
  font-weight: 600;
  color: var(--imperium-light-blue);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#news-creation-form input[type="text"],
#news-creation-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(1, 30, 41, 0.6);
  border: 1px solid var(--imperium-teal);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#news-creation-form input[type="text"]:focus,
#news-creation-form textarea:focus {
  outline: none;
  border-color: var(--imperium-gold);
  background: rgba(1, 30, 41, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 186, 1, 0.1);
}

#news-creation-form textarea {
  resize: vertical;
  min-height: 200px;
  font-family: inherit;
  line-height: 1.6;
}

#news-creation-form input::placeholder,
#news-creation-form textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert.hidden {
  display: none;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}