/* ==========================================================================
   Cricket League Registration System - Core Design System & CSS
   Mobile-First, Hindi Unicode, High Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary-green: #1b5e20;
  --dark-green: #0d3b13;
  --light-green: #e8f5e9;
  --accent-gold: #d4af37;
  --accent-orange: #f57c00;
  --bg-color: #f4f7f5;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --success-color: #2e7d32;
  --danger-color: #d32f2f;
  --warning-color: #ed6c02;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Devanagari', 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 12px;
  flex: 1;
}

.admin-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

/* Header Component */
.header-card {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.header-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.league-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.league-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.league-subtitle {
  font-size: 0.9rem;
  color: #c8e6c9;
  font-weight: 500;
}

/* Announcement Header Banner */
.announcement-banner {
  background: linear-gradient(135deg, #fffdf0 0%, #fef9c3 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.announcement-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-text {
  font-size: 0.94rem;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 12px;
}

.announcement-highlight {
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 10px;
  background: rgba(245, 158, 11, 0.15);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid #f59e0b;
}

.announcement-footer {
  text-align: right;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
  margin-top: 8px;
}

/* Step Progress Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 8px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
  transform: translateY(-50%);
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #bdbdbd;
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-number {
  background: var(--primary-green);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.15);
}

.step-item.active .step-label {
  color: var(--primary-green);
  font-weight: 700;
}

.step-item.completed .step-number {
  background: var(--dark-green);
  border-color: var(--primary-green);
  color: #ffffff;
}

/* Cards & Sections */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--light-green);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Metadata Bar (S.No & Entry Fee) */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-box {
  background: var(--light-green);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.meta-label {
  font-size: 0.82rem;
  color: #2e7d32;
  font-weight: 600;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-green);
}

/* Rules List Component */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #374151;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-green);
}

.rule-badge {
  background: var(--primary-green);
  color: #ffffff;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Checkbox & Terms */
.checkbox-card {
  background: #fffde7;
  border: 1px solid #fff59d;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5d4037;
}

.checkbox-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-green);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.form-label .required-star {
  color: var(--danger-color);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.form-control[readonly] {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%201b5e20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* Photo Upload Box */
.photo-upload-box {
  border: 2px dashed #a5d6a7;
  background: var(--light-green);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.photo-upload-box:hover {
  border-color: var(--primary-green);
  background: #dcedd8;
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.upload-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.photo-preview-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.photo-preview-img {
  width: 130px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.file-input-hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.btn-primary:disabled {
  background: #9e9e9e;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
  width: auto;
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

.btn-outline-danger:hover {
  background: #ffebee;
}

.btn-success-sm {
  background: var(--success-color);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Validation Messages */
.error-msg {
  color: var(--danger-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

/* Invalid Input Highlight & Pulse Animation */
.is-invalid {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.error-banner {
  background: #ffebee;
  color: var(--danger-color);
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

/* Step 3 - Success Screen */
.success-card {
  text-align: center;
  padding: 30px 20px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-green);
  margin-bottom: 6px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.reg-number-display {
  background: var(--light-green);
  border: 2px dashed var(--primary-green);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0 24px 0;
}

.reg-number-label {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 2px;
}

.reg-number-code {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-green);
  letter-spacing: 1px;
}

.player-name-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
}

/* ==========================================================================
   Admin Dashboard Layout & Styling
   ========================================================================== */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-green);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  gap: 16px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  width: 44px;
  height: 44px;
}

.admin-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-sub {
  font-size: 0.8rem;
  color: #a5d6a7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-green);
  margin-top: 4px;
}

/* Search & Filter Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  min-width: 220px;
}

.filter-box {
  width: 180px;
}

/* Admin Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.admin-table th {
  background: var(--light-green);
  color: var(--dark-green);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #c8e6c9;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #f9fbf9;
}

.player-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-green);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending,
.badge-unpaid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-verified,
.badge-paid {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.badge-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Modal / Card View */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #757575;
}

/* Loading Overlay */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .app-container {
    padding: 8px;
  }
  
  .header-card {
    padding: 16px 12px;
  }
  
  .league-title {
    font-size: 1.2rem;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box, .filter-box {
    width: 100%;
  }

  .meta-grid {
    gap: 8px;
  }

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

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}

/* ==========================================================================
   Auction Mode Carousel & Broadcast Stage Styles
   ========================================================================== */

.btn-warning-auction {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-warning-auction:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
  filter: brightness(1.08);
}

.auction-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: auctionFadeIn 0.25s ease-out;
}

@keyframes auctionFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auction-container {
  width: 100%;
  max-width: 940px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101c13 0%, #08110b 100%);
  border: 2px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  position: relative;
}

.auction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  gap: 12px;
  flex-wrap: wrap;
}

.auction-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auction-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.auction-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.auction-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.auction-controls-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auction-counter-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fef08a;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.92rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.auction-jump-select {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.82rem;
  cursor: pointer;
  max-width: 170px;
}

.btn-auction-top-action {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-auction-top-action:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-auction-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}

.btn-auction-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.auction-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
}

.auction-nav-btn {
  width: 58px;
  min-width: 58px;
  height: 80px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(22, 101, 52, 0.35) 100%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  color: #fef08a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.auction-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4af37 0%, #15803d 100%);
  color: #0d3b13;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.auction-nav-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.auction-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
}

.auction-nav-btn .nav-arrow {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.auction-nav-btn .nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.auction-card-wrapper {
  flex: 1;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

.auction-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.25);
  border-top: 6px solid #d4af37;
  border-bottom: 3px solid #15803d;
  animation: auctionCardSlide 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes auctionCardSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-reg-tag {
  background: linear-gradient(135deg, #0d3b13 0%, #1b5e20 100%);
  color: #fef08a;
  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: 'Outfit', sans-serif;
}

.auction-status-tag {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auction-card-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.auction-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auction-photo-frame {
  width: 100%;
  max-width: 220px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #d4af37;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  background: #f8fafc;
  position: relative;
}

.auction-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auction-category-pill {
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Category Gradient Badges */
.cat-allrounder {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}
.cat-batsman {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.cat-bowler {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.cat-keeper {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.cat-default {
  background: linear-gradient(135deg, #1b5e20 0%, #0d3b13 100%);
}

.auction-info-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auction-player-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0d3b13;
  line-height: 1.25;
}

.auction-father-name {
  font-size: 1rem;
  color: #475569;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 4px;
}

.auction-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.auction-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
}

.auction-detail-label {
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auction-detail-val {
  font-weight: 800;
  color: #1e293b;
}

.auction-bidding-strip {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border: 2px dashed #eab308;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auction-bidding-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #854d0e;
  text-transform: uppercase;
}

.auction-bidding-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #713f12;
  font-family: 'Outfit', sans-serif;
}

.auction-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}

.auction-shortcuts {
  display: flex;
  gap: 8px;
}

.btn-auction-tool {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-auction-tool:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-auction-tool-random {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
  border-color: #f59e0b;
  color: #fef08a;
}

.btn-auction-tool-random:hover {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
}

.auction-doc-actions {
  display: flex;
  gap: 8px;
}

.auction-keyboard-help {
  color: #94a3b8;
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .auction-stage {
    padding: 16px 10px;
    gap: 8px;
  }

  .auction-nav-btn {
    width: 44px;
    min-width: 44px;
    height: 64px;
  }

  .auction-nav-btn .nav-arrow {
    font-size: 1.8rem;
  }

  .auction-card {
    padding: 16px;
  }

  .auction-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auction-photo-frame {
    height: 220px;
    max-width: 180px;
    margin: 0 auto;
  }

  .auction-player-name {
    font-size: 1.35rem;
    text-align: center;
  }

  .auction-father-name {
    text-align: center;
  }

  .auction-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .auction-shortcuts, .auction-doc-actions {
    justify-content: center;
  }
}

