/* ==========================================================================
   CSS CUSTOM VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-color: #0c0d12;
  --card-bg: rgba(20, 29, 18, 0.65);
  --card-border: #9b677c;
  --card-border-focus: #E62272;

  --gold-color: #E62272;
  --gold-hover: #E62272;
  --crimson-color: #d8a0b7;
  --crimson-hover: #E62272;
  --text-primary: #f5f6fa;
  --text-secondary: #a0a5c0;

  --glass-glow: #E62272;
  --red-glow: rgba(201, 26, 50, 0.3);

  --btn-gradient: linear-gradient(135deg, #E62272 0%, #de5890 100%);
  --btn-gradient-hover: linear-gradient(135deg, #d45188 0%, #d96b99 100%);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ==========================================================================
   BACKGROUND PATTERNS
   ========================================================================== */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.04;
  pointer-events: none;
  /* Repeating SVG outline pattern of a bottle and a can */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='220' viewBox='0 0 160 220'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1.5'%3E%3Cpath d='M30,55 L30,45 A 5,5 0 0,1 35,40 L45,40 A 5,5 0 0,1 50,45 L50,55 L58,68 A 12,12 0 0,1 62,75 L62,150 A 8,8 0 0,1 54,158 L26,158 A 8,8 0 0,1 18,150 L18,75 A 12,12 0 0,1 22,68 Z' /%3E%3Ccircle cx='40' cy='115' r='10' /%3E%3Cline x1='30' y1='48' x2='50' y2='48' /%3E%3Crect x='98' y='50' width='44' height='100' rx='6' /%3E%3Ccircle cx='120' cy='100' r='12' /%3E%3Cline x1='106' y1='58' x2='134' y2='58' /%3E%3Cline x1='106' y1='142' x2='134' y2='142' /%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

.bg-radial-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(201, 26, 50, 0.12) 0%, rgba(212, 175, 55, 0.04) 50%, rgba(12, 13, 18, 0) 100%);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  width: 100%;
  background-color: rgba(12, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-image {
  height: 70px;
  width: auto;
  display: block;
  margin-right: 20rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--gold-color) 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav .nav-link {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding-bottom: 0.3rem;
  position: relative;
}

nav .nav-link:hover {
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

nav .nav-link.active {
  color: var(--gold-color);
}

nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--btn-gradient);
  box-shadow: 0 0 8px var(--gold-color);
}

/* ==========================================================================
   GLOBAL CONTAINER & LAYOUTS
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem 2rem;
  min-height: calc(100vh - 180px);
}

/* Tab Switching Logic */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Warning Banner */
.warning-banner {
  background: rgba(201, 26, 50, 0.15);
  border: 1px solid var(--crimson-color);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(201, 26, 50, 0.1);
}

.warning-banner.hidden {
  display: none !important;
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.warning-icon {
  font-size: 1.5rem;
}

.warning-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.warning-text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Cards System */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  border-color: var(--card-border-focus);
  box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.08);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1.2px;
  color: var(--gold-color);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

/* Section Layouts */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.card-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

/* ==========================================================================
   TAB 1: SCOREBOARD HERO COMPONENTS
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 2.5px;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

/* 3D Wireframe Glass Showcase Case */
.glass-showcase-container {
  position: relative;
  width: 200px;
  height: 380px;
  margin-bottom: 2.5rem;
}

.showcase-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--glass-glow) 0%, var(--red-glow) 50%, rgba(0, 0, 0, 0) 80%);
  filter: blur(25px);
  z-index: 1;
}

.glass-showcase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 2;
  overflow: hidden;
}

/* 3D Isometric Wireframe lines representing depth */
.glass-showcase-container::before,
.glass-showcase-container::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 3;
}

/* Diagonal corner lines for 3D box effect */
.glass-showcase-container::before {
  top: -10px;
  left: -10px;
  width: 220px;
  height: 400px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.showcase-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  transform: translateX(-50%);
  pointer-events: none;
}

.showcase-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 1.5rem 0;
}

.showcase-item {
  width: 100%;
  height: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img {
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
}

/* Float Animations */
.floating-item-1 {
  animation: floatCan 4s ease-in-out infinite;
}

.floating-item-2 {
  animation: floatBottle 4s ease-in-out infinite;
  animation-delay: 2s;
}

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

  50% {
    transform: translateY(-8px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

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

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Button & CTAs */
.cta-button {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  padding: 0.8rem 2.5rem;
  background: var(--btn-gradient);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 26, 50, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 3.5rem;
}

.cta-button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.5);
  background: var(--btn-gradient-hover);
}

.cta-button:active {
  transform: scale(0.98);
}

/* Unopened Debt Section */
.debt-card {
  width: 100%;
  max-width: 840px;
  margin-bottom: 3rem;
  text-align: center;
}

.debt-value-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.currency-symbol {
  font-size: 2rem;
  color: var(--gold-color);
  margin-right: 0.2rem;
}

.debt-amount {
  font-size: 4rem;
  letter-spacing: 1px;
}

.anytimers-unit {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-left: 0.5rem;
  letter-spacing: 1px;
}

.debt-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.anytimer-summary-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.anytimers-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .anytimers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .anytimers-grid {
    grid-template-columns: 1fr;
  }
}

.anytimer-card {
  text-align: left;
  padding: 1.4rem;
  border-color: rgba(212, 175, 55, 0.18);
}

.anytimer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.anytimer-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  min-width: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

.anytimer-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--gold-color);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(201, 26, 50, 0.12));
}

.anytimer-avatar-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anytimer-info {
  flex: 1;
  min-width: 0;
}

.anytimer-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-color);
  margin-top: 0.15rem;
}

.anytimer-funfact {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
  font-style: italic;
}

.anytimer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.anytimer-name-role-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.anytimer-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.anytimer-status {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.anytimer-status.has-outstanding {
  color: var(--gold-hover);
  background: rgba(212, 175, 55, 0.12);
}

.anytimer-status.is-cleared {
  color: #81c784;
  background: rgba(129, 199, 132, 0.12);
}

.anytimer-count-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.anytimer-count {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-color);
}

.anytimer-count-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.anytimer-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* SVGArea Chart for Debt */
.chart-container {
  width: 100%;
  margin-top: 1.5rem;
}

#debt-chart {
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Grid Stats counters */
.grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 2.2rem;
  overflow: hidden;
}

.stat-bg-blur {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
}

.kanon-theme .stat-bg-blur {
  background: var(--gold-color);
}

.ketel-theme .stat-bg-blur {
  background: var(--crimson-color);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.stat-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-color);
}

/* ==========================================================================
   TAB 2: HISTORY (LEDGER TABLE)
   ========================================================================== */
.ledger-card {
  padding: 1.5rem;
}

.ledger-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ledger-header-row h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--gold-color);
}

.ledger-summary-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.ledger-table th,
.ledger-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ledger-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.ledger-table tbody tr {
  transition: background-color 0.2s ease;
}

.ledger-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.type-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-badge.consumption {
  background: rgba(201, 26, 50, 0.15);
  color: var(--crimson-hover);
  border: 1px solid rgba(201, 26, 50, 0.3);
}

.type-badge.payment {
  background: rgba(46, 125, 50, 0.15);
  color: #81c784;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.type-badge.any_received {
  background: rgba(212, 55, 199, 0.16);
  color: var(--gold-hover);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.type-badge.any_taken {
  background: rgba(33, 150, 243, 0.14);
  color: #8fffba;
  border: 1px solid rgba(37, 243, 33, 0.28);
}

.tx-value-col {
  font-family: var(--font-body);
  font-weight: 600;
}

.tx-value-col.pos {
  color: var(--crimson-hover);
}

.tx-value-col.neg {
  color: #81c784;
}

.delete-tx-btn {
  background: none;
  border: none;
  color: var(--crimson-color);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.delete-tx-btn:hover {
  background: rgba(201, 26, 50, 0.15);
  color: #ff334b;
}

/* ==========================================================================
   TAB 3: LOG CONSUMPTION & ADMIN PANEL
   ========================================================================== */
.admin-section {
  max-width: 900px;
}

.auth-card {
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}

.auth-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.form-group input[type="file"] {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

/* Themed dropdowns: black background with magenta/crimson accents.
   The arrow icon lives on a wrapper's ::after, NOT on the <select> itself —
   putting it on the select causes some browsers to stretch/duplicate the
   background image across the open dropdown popup. */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c91a32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.select-wrapper:focus-within::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background-color: #0a0a0f;
  background-image: none;
  border: 1px solid var(--crimson-color);
  color: var(--text-primary);
  padding-right: 2.6rem;
  cursor: pointer;
}

.form-group select:hover {
  border-color: var(--crimson-hover);
  box-shadow: 0 0 10px var(--red-glow);
}

.form-group select:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
  outline: none;
  background-color: #0a0a0f;
}

.form-group select:focus-visible {
  outline: none;
}

.form-group select option {
  background-color: #0a0a0f;
  color: var(--text-primary);
  border: 1px solid var(--crimson-color);
  padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
  background: linear-gradient(rgba(201, 26, 50, 0.35), rgba(201, 26, 50, 0.35)), #0a0a0f;
  color: var(--text-primary);
}

.form-group select option:disabled {
  color: var(--text-secondary);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.upload-status {
  font-size: 0.78rem;
  color: var(--gold-color);
  margin-top: 0.5rem;
}

.profile-image-preview-wrap {
  margin-top: 0.75rem;
}

.profile-image-preview-wrap img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.error-msg {
  color: #ff334b;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.success-msg {
  color: #81c784;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.hidden {
  display: none !important;
}

/* Admin Dashboard Panel */
.admin-dashboard {
  animation: fadeIn 0.4s ease forwards;
}

.admin-welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: white;
}

.grid-admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 768px) {
  .grid-admin-cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Make the configuration/settings card span full width in 2-col layout */
  .grid-admin-cards>.settings-card {
    grid-column: span 2;
  }
}

.admin-control-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--gold-color);
  margin-bottom: 0.5rem;
}

.admin-control-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.quick-log-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quick-log-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: white;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.quick-log-btn span {
  font-weight: 600;
  font-size: 0.9rem;
}

.quick-log-btn small {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.quick-log-btn:hover {
  transform: translateY(-2px);
}

.quick-log-btn.kanon-theme:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.quick-log-btn.ketel-theme:hover {
  background: rgba(201, 26, 50, 0.1);
  border-color: var(--crimson-color);
  box-shadow: 0 0 15px rgba(201, 26, 50, 0.15);
}

/* Custom CTA variants */
.primary-btn {
  width: 100%;
  margin-bottom: 0;
}

.payment-btn {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
}

.payment-btn:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 4px 25px rgba(46, 125, 50, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: none;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.danger-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  padding: 0.6rem 1.5rem;
  background: rgba(201, 26, 50, 0.1);
  border: 1px solid var(--crimson-color);
  border-radius: 4px;
  color: #ff334b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.danger-btn:hover {
  background: var(--crimson-color);
  color: white;
  box-shadow: 0 0 15px rgba(201, 26, 50, 0.3);
}

/* ==========================================================================
   TAB 4: RULES
   ========================================================================== */
.definition-card {
  margin-bottom: 3rem;
  text-align: left;
}

.definition-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  list-style-type: square;
}

.definition-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.definition-list li strong {
  color: var(--gold-color);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rule-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
}

.rule-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-color);
  line-height: 1;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.rule-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   TAB 5: ABOUT
   ========================================================================== */
.about-section {
  max-width: 800px;
}

.about-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1.2px;
  color: var(--gold-color);
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.brand-showcase-logos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media(min-width: 576px) {
  .brand-showcase-logos {
    grid-template-columns: 1fr 1fr;
  }
}

.brand-logo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1.2rem;
  text-align: center;
}

.brand-logo-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.8px;
}

.brand-logo-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  width: 100%;
  background-color: rgba(8, 9, 13, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.partner-logos {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   UTILITY & MEDIA QUERIES
   ========================================================================== */
.text-center {
  text-align: center;
}

@media(max-width: 767px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  nav .nav-link {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .grid-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-value {
    font-size: 3.5rem;
  }

  .main-content {
    padding: 1.5rem 1rem 4rem 1rem;
  }
}

.showcase-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* Centers them vertically relative to each other */
  justify-content: center;
  gap: 3rem;
  /* Adds breathing room between the image and the card */
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2rem;
}

/* Adjust the debt card so it shares the space nicely */
.debt-card {
  width: 100%;
  flex: 1;
  /* Allows the card to fill the remaining horizontal space */
  max-width: 840px;
  margin-bottom: 0;
  /* Removed the bottom margin since the wrapper handles spacing */
  text-align: center;
}