/* ==========================================
   PUB THEME - Amber & Brown Color Palette
   ========================================== */
:root {
  --amber: #D97706;
  --amber-light: #F59E0B;
  --amber-dark: #B45309;
  --brown: #78350F;
  --brown-dark: #451A03;
  --cream: #FEF3C7;
  --gold: #FCD34D;
  --foam: #FFFBEB;
  --shadow: rgba(120, 53, 15, 0.2);
}

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

body {
  font-family: 'Aptos', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
  color: var(--cream);
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 80px;
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--brown-dark);
  border-bottom: 2px solid var(--amber-dark);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.total-drinks-count {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: var(--brown);
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid var(--amber-dark);
}

.version-number {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.refresh-btn {
  background: var(--amber-dark);
  border: none;
  color: var(--foam);
  font-size: 1.1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.refresh-btn:hover {
  background: var(--amber);
  transform: rotate(180deg);
}

.admin-auth {
  display: flex;
  gap: 10px;
}

.auth-btn {
  padding: 8px 16px;
  border: 2px solid var(--amber);
  border-radius: 6px;
  background: var(--amber-dark);
  color: var(--foam);
  font-family: 'Aptos', system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background: var(--amber);
  transform: translateY(-2px);
}

.auth-btn.logout {
  display: none;
  background: var(--brown);
  border-color: var(--brown-dark);
}

.auth-btn.logout.active {
  display: block;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 8px 15px;
  }

  .top-bar-center {
    gap: 6px;
  }

  .total-drinks-count {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .version-number {
    font-size: 0.75rem;
  }

  .refresh-btn {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .auth-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================
   ADMIN BANNER
   ========================================== */
.admin-banner {
  position: sticky;
  top: 52px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--amber-dark) 0%, var(--brown-dark) 100%);
  color: var(--gold);
  padding: 6px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
}

.admin-banner.active {
  display: block;
}

/* ==========================================
   NOTICE BANNER
   ========================================== */
.notice-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  color: white;
  padding: 12px 50px 12px 20px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
}

.notice-banner.active {
  display: block;
}

.notice-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.notice-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  text-align: center;
  padding: 15px 20px 10px;
  max-width: 600px;
  margin: 0 auto;
}

.disclaimer-text {
  text-align: center;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.beer-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.header h1 {
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 2px 2px 4px var(--brown-dark);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.9;
}

/* ==========================================
   SESSION SELECTOR (integrated in service header)
   ========================================== */
.govuk-service-header__session-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.govuk-service-header__session-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.govuk-select--inline {
  padding: 8px 36px 8px 14px;
  border: 2px solid var(--amber-dark);
  border-radius: 6px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FCD34D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s ease;
}

.govuk-select--inline:hover {
  border-color: var(--amber);
}

.govuk-select--inline:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.2);
}

.session-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-badge.active {
  background: rgba(74, 222, 128, 0.2);
  color: #4ADE80;
  border: 1px solid #4ADE80;
}

.session-badge.archived {
  background: rgba(252, 211, 77, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

@media (max-width: 768px) {
  .govuk-service-header__session-row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .govuk-service-header__session-label {
    font-size: 0.85rem;
  }

  .govuk-select--inline {
    font-size: 0.85rem;
    padding: 6px 30px 6px 10px;
  }

  .session-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

/* ==========================================
   VIEW SWITCHING
   ========================================== */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.add-btn {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  right: 30px;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  transition: all 0.3s ease;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.6);
}

.add-btn:active {
  transform: translateY(0);
}

.add-btn-plus {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.add-btn-label {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .add-btn {
    height: 50px;
    padding: 0 18px 0 12px;
    bottom: 20px;
    right: 20px;
    border-radius: 25px;
  }

  .add-btn-plus {
    font-size: 1.5rem;
  }

  .add-btn-label {
    font-size: 0.9rem;
  }
}

/* ==========================================
   VIEW LOGS & BACK BUTTONS
   ========================================== */
.view-logs-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  background: rgba(120, 53, 15, 0.3);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-logs-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.back-btn {
  padding: 10px 20px;
  margin-bottom: 20px;
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  background: var(--amber-dark);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.back-btn:hover {
  background: var(--amber);
  transform: translateX(-3px);
}

/* ==========================================
   LOSERBOARD
   ========================================== */
.loserboard-container {
  max-width: 650px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.loserboard-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.loserboard-controls .view-logs-btn {
  margin-bottom: 0;
  width: auto;
  flex-shrink: 0;
}

.loserboard-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--amber-dark);
  border-radius: 6px;
  overflow: hidden;
}

.loserboard-toggle-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.loserboard-toggle-btn.active {
  background: var(--amber-dark);
  color: var(--foam);
}

.loserboard-toggle-btn:hover:not(.active) {
  background: rgba(217, 119, 6, 0.15);
}

.logs-container {
  max-width: 650px;
  margin: 0 auto;
}

/* Logs Filter */
.logs-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(120, 53, 15, 0.3);
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
}

.logs-filter label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.person-filter-select {
  padding: 8px 12px;
  border: 2px solid var(--amber-dark);
  border-radius: 6px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.person-filter-select:hover {
  border-color: var(--amber);
  background: rgba(120, 53, 15, 0.5);
}

.person-filter-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.2);
}

.loserboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loserboard-item {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(180, 83, 9, 0.2) 100%);
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.loserboard-item:hover {
  transform: translateX(5px);
  border-color: var(--amber);
}

.loserboard-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 35px;
  text-align: center;
}

.loserboard-rank.first {
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700;
}

.loserboard-rank.second {
  color: #C0C0C0;
}

.loserboard-rank.third {
  color: #CD7F32;
}

.loserboard-info {
  flex: 1;
}

.loserboard-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.loserboard-stats {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.85;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-block;
  background: var(--amber-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ==========================================
   GRAPHS SECTION
   ========================================== */
.graphs-container {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 3px solid var(--amber-dark);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-header .section-title {
  margin: 0;
}

.chart-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--amber-dark);
  border-radius: 6px;
  overflow: hidden;
}

.chart-toggle-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.chart-toggle-btn.active {
  background: var(--amber-dark);
  color: var(--foam);
}

.chart-toggle-btn:hover:not(.active) {
  background: rgba(217, 119, 6, 0.15);
}

.chart-container {
  background: rgba(120, 53, 15, 0.3);
  border: 2px solid var(--amber-dark);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  height: 500px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================
   DRINKS LIST
   ========================================== */
.drinks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--cream);
  opacity: 0.7;
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--cream);
  opacity: 0.6;
}

.empty-state p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.drink-item {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(180, 83, 9, 0.2) 100%);
  border: 2px solid var(--amber-dark);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drink-item:hover {
  transform: translateX(5px);
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.3) 0%, rgba(180, 83, 9, 0.3) 100%);
}

.drink-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.drink-info {
  flex: 1;
}

.drink-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.drink-details {
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.85;
}

.drink-type {
  display: inline-block;
  background: var(--amber-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-left: 8px;
  color: var(--foam);
}

.drink-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit-btn,
.delete-btn {
  display: none;
  background: var(--brown-dark);
  border: 2px solid var(--amber-dark);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.edit-btn.active,
.delete-btn.active {
  display: block;
}

.edit-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: scale(1.05);
}

.delete-btn:hover {
  background: #FC0000;
  border-color: #FC0000;
  transform: scale(1.05);
}

/* ==========================================
   LOGIN PROVIDER MODAL
   ========================================== */
.login-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.provider-btn {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  background: var(--brown);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.provider-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.provider-icon {
  font-size: 1.3rem;
}

.google-btn:hover {
  border-color: #4285F4;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}

.modal-overlay.active {
  display: block;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  border: 3px solid var(--amber);
  border-radius: 16px;
  max-width: 90%;
  width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.modal.active {
  display: block;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--amber-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--amber-dark);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

/* ==========================================
   FORM
   ========================================== */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row .form-group {
  min-width: 0;
}

.form-row input[type="date"],
.form-row input[type="time"] {
  max-width: 100%;
  box-sizing: border-box;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

select,
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 1rem;
  font-family: 'Aptos', system-ui, -apple-system, sans-serif;
  transition: all 0.2s ease;
}

select:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FCD34D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(5) hue-rotate(10deg);
  cursor: pointer;
}

/* Multi-add toggle and people grid */
.multi-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.multi-add-header label:first-child {
  margin-bottom: 0;
}

.multi-add-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0 !important;
}

.multi-add-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
}

.multi-add-toggle-label {
  opacity: 0.8;
}

.multi-add-people {
  border: 2px solid var(--amber-dark);
  border-radius: 8px;
  background: var(--brown-dark);
  padding: 10px;
}

.multi-add-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.multi-add-select-all,
.multi-add-select-none {
  background: none;
  border: 1px solid var(--amber-dark);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.multi-add-select-all:hover,
.multi-add-select-none:hover {
  background: var(--amber-dark);
  color: white;
}

.multi-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.multi-add-person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.multi-add-person:hover {
  background: rgba(217, 119, 6, 0.15);
}

.multi-add-person input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}

.multi-add-person label {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  cursor: pointer;
}

.multi-add-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 6px;
  opacity: 0.8;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ==========================================
   COLLAPSIBLE SECTIONS (details/summary)
   ========================================== */
details.forecasts-container {
  list-style: none;
}

.section-toggle {
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.section-toggle::-webkit-details-marker {
  display: none;
}

.section-toggle::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  transition: transform 0.2s ease;
}

details[open] > .section-toggle::after {
  content: '-';
}

details > .section-toggle {
  margin-bottom: 0;
}

details[open] > .section-toggle {
  margin-bottom: 12px;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  body {
    padding: 10px;
    padding-bottom: 80px;
  }

  .header {
    padding: 50px 15px 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .beer-icon {
    font-size: 3rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .modal {
    width: 95%;
  }

  .drink-item {
    padding: 12px 14px;
  }

  .drink-name {
    font-size: 1.1rem;
  }

  .drink-details {
    font-size: 0.85rem;
  }

  .chart-container {
    height: 380px;
    padding: 12px;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .graphs-container {
    margin-top: 25px;
    padding-top: 20px;
  }

  .loserboard-container {
    margin-bottom: 25px;
  }

  .content-container {
    padding: 0 10px;
  }

  .loserboard-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .loserboard-rank {
    font-size: 1.3rem;
    min-width: 28px;
  }

  .loserboard-name {
    font-size: 1.05rem;
  }
}

/* ==========================================
   PHOTO UPLOAD AREA (Modal)
   ========================================== */
.photo-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.photo-upload-area {
  border: 2px dashed var(--amber-dark);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(217, 119, 6, 0.05);
  position: relative;
}

.photo-upload-area:hover {
  border-color: var(--amber);
  background: rgba(217, 119, 6, 0.1);
}

.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.photo-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-dark);
  color: var(--foam);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.photo-upload-text {
  color: var(--cream);
  font-size: 0.95rem;
  opacity: 0.85;
}

.photo-preview-container {
  position: relative;
  display: inline-block;
}

.photo-preview-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FC0000;
  border: 2px solid white;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================
   DRINK PHOTO THUMBNAIL (Logs)
   ========================================== */
.drink-photo-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--amber-dark);
  transition: border-color 0.2s ease;
}

.drink-photo-thumb:hover {
  border-color: var(--amber);
}

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

/* ==========================================
   LIKE & DISLIKE BUTTONS
   ========================================== */
.reaction-buttons {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.like-btn,
.dislike-btn {
  background: none;
  border: 1px solid var(--amber-dark);
  border-radius: 16px;
  color: var(--cream);
  font-size: 0.85rem;
  padding: 6px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.like-btn:hover:not(:disabled),
.dislike-btn:hover:not(:disabled) {
  border-color: var(--amber);
  background: rgba(217, 119, 6, 0.15);
}

.like-btn.liked {
  color: #e74c3c;
  border-color: #e74c3c;
}

.like-btn.liked:hover:not(:disabled) {
  background: rgba(231, 76, 60, 0.15);
}

.dislike-btn.disliked {
  color: #3498db;
  border-color: #3498db;
}

.dislike-btn.disliked:hover:not(:disabled) {
  background: rgba(52, 152, 219, 0.15);
}

.like-btn:disabled,
.dislike-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.latest-photo-info .reaction-buttons {
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================
   LATEST PHOTO (Main View)
   ========================================== */
/* Photo grid: side by side on wider screens */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

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

.latest-photo-container {
  max-width: 650px;
  margin: 0 auto 30px;
  padding-top: 20px;
  border-top: 3px solid var(--amber-dark);
}

/* Photos at top don't need border-top or excess margin */
.latest-photo-container.photo-top {
  border-top: none;
  padding-top: 0;
  margin: 0;
  max-width: none;
}

.photo-top .section-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.latest-photo-card {
  border: 2px solid var(--amber-dark);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(217, 119, 6, 0.1);
}

.latest-photo-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.latest-photo-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  display: block;
}

.latest-photo-info {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-photo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.latest-photo-detail {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .latest-photo-img {
    max-height: 250px;
  }

  .latest-photo-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================
   PHOTO LIGHTBOX
   ========================================== */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-lightbox.active {
  display: flex;
}

.photo-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   INSTAGRAM-STYLE PHOTOS GALLERY
   ========================================== */
.ig-container {
  max-width: 935px;
  margin: 0 auto;
}

.ig-header {
  text-align: center;
  margin-bottom: 16px;
}

.ig-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0;
}

.ig-filter-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ig-filter-select {
  padding: 8px 16px;
  border: 1px solid var(--amber-dark);
  border-radius: 8px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FCD34D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.ig-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--cream);
  opacity: 0.6;
}

/* 3-column grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.ig-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}

.ig-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.ig-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.ig-grid-item:hover .ig-grid-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .ig-grid {
    gap: 2px;
  }
  .ig-grid-overlay {
    font-size: 0.8rem;
    gap: 10px;
  }
}

/* ==========================================
   INSTAGRAM TIMELINE FEED
   ========================================== */
.ig-post-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  flex-direction: column;
  background: #fafafa;
}

.ig-post-overlay.active {
  display: flex;
}

/* Sticky feed header with back button */
.ig-feed-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
  flex-shrink: 0;
  gap: 12px;
  z-index: 10;
}

.ig-feed-back {
  background: none;
  border: none;
  font-size: 1rem;
  color: #262626;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ig-feed-back:hover {
  color: #3897f0;
}

.ig-feed-title {
  font-weight: 700;
  font-size: 1rem;
  color: #262626;
}

/* Scrollable feed container */
.ig-feed-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 40px;
  gap: 12px;
}

/* Post card — no longer a modal, now an inline feed item */
.ig-post-card {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  border: 1px solid #dbdbdb;
}

/* Drink-of-the-day counter in caption */
.ig-drink-number {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8e8e8e;
}

/* Post header */
.ig-post-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
}

/* Round-mode stacked avatars */
.ig-round-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ig-round-avatars .ig-avatar {
  margin-left: -8px;
  border: 2px solid #000;
  box-sizing: content-box;
}

.ig-round-avatars .ig-avatar:first-child {
  margin-left: 0;
}

.ig-round-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: -8px;
  border: 2px solid #000;
  box-sizing: content-box;
}

/* Header avatar (clickable profile photo in service header) */
.header-avatar-wrap {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-avatar-wrap:hover {
  opacity: 0.8;
}

.header-avatar-wrap .ig-avatar {
  border: 2px solid #1d70b8;
}

.ig-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  object-fit: cover;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-post-user-info {
  flex: 1;
  min-width: 0;
}

.ig-username {
  font-weight: 700;
  font-size: 0.9rem;
  color: #262626;
  display: block;
}

.ig-post-location {
  font-size: 0.75rem;
  color: #8e8e8e;
}

.ig-post-time {
  font-size: 0.75rem;
  color: #8e8e8e;
  flex-shrink: 0;
}

/* Post image */
.ig-post-image {
  background: #000;
}

.ig-post-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Action buttons */
.ig-post-actions {
  display: flex;
  gap: 12px;
  padding: 10px 14px 4px;
}

.ig-action-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #262626;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ig-action-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

.ig-action-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.ig-heart-btn.ig-liked {
  color: #ed4956;
  animation: igHeartPop 0.3s ease;
}

@keyframes igHeartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Likes count */
.ig-post-likes {
  padding: 0 14px 4px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #262626;
}

/* Caption */
.ig-post-caption {
  padding: 2px 14px 8px;
  font-size: 0.85rem;
  color: #262626;
  line-height: 1.4;
}

.ig-caption-user {
  font-weight: 700;
}

/* Comments */
.ig-comments-section {
  padding: 0 14px 8px;
}

.ig-comment {
  padding: 4px 0;
  font-size: 0.85rem;
  color: #262626;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ig-comment .ig-avatar {
  flex-shrink: 0;
}

.ig-comment-body {
  flex: 1;
  min-width: 0;
}

.ig-comment-user {
  font-weight: 700;
  margin-right: 4px;
}

.ig-comment-text {
  word-break: break-word;
}

.ig-comment-time {
  color: #8e8e8e;
  font-size: 0.75rem;
  margin-left: 6px;
}

.ig-no-comments {
  color: #8e8e8e;
  font-size: 0.85rem;
  font-style: italic;
  padding: 4px 0;
}

/* Comment input */
.ig-comment-input-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #efefef;
  gap: 10px;
}

.ig-comment-input-row .ig-avatar {
  flex-shrink: 0;
}

.ig-comment-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: #262626;
  padding: 6px 0;
  background: transparent;
  font-family: inherit;
}

.ig-comment-input::placeholder {
  color: #8e8e8e;
}

.ig-comment-post-btn {
  background: none;
  border: none;
  color: #3897f0;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.ig-comment-post-btn:hover {
  color: #00376b;
}

.ig-login-prompt {
  text-align: center;
  padding: 12px 14px;
  border-top: 1px solid #efefef;
  color: #8e8e8e;
  font-size: 0.85rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ig-post-card {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .ig-feed-scroll {
    gap: 4px;
    padding: 4px 0 40px;
  }

  .ig-post-image img {
    max-height: 400px;
  }
}

/* ==========================================
   PROFILE PHOTO PICKER
   ========================================== */
.profile-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}

.profile-picker-overlay.active {
  display: flex;
}

.profile-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.profile-picker-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #efefef;
}

.profile-picker-title {
  font-weight: 600;
  font-size: 1rem;
  color: #262626;
}

.profile-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  overflow-y: auto;
}

.profile-picker-item {
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
}

.profile-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.profile-picker-item:hover img {
  opacity: 0.7;
}

.profile-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #8e8e8e;
  font-size: 0.9rem;
}

/* ==========================================
   FEEDBACK PANEL
   ========================================== */
.feedback-trigger {
  background: none;
  border: none;
  color: var(--amber);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.feedback-trigger:hover {
  color: var(--gold);
}

.feedback-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(120, 53, 15, 0.4);
  border-bottom: 2px solid var(--amber-dark);
}

.feedback-panel.open {
  max-height: 400px;
}

.feedback-panel-inner {
  max-width: 650px;
  margin: 0 auto;
  padding: 16px 20px;
}

.feedback-label {
  display: block;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--amber-dark);
  border-radius: 4px;
  color: var(--cream);
  padding: 10px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.feedback-send,
.feedback-cancel {
  padding: 6px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.feedback-send {
  background: var(--amber-dark);
  color: var(--foam);
}

.feedback-send:hover {
  background: var(--amber);
}

.feedback-cancel {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--amber-dark);
}

.feedback-cancel:hover {
  border-color: var(--amber);
}

.feedback-response {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(217, 119, 6, 0.15);
  border-left: 4px solid var(--amber);
  border-radius: 0 4px 4px 0;
  color: var(--cream);
  font-size: 0.9rem;
  font-style: italic;
}

/* ==========================================
   FEEDBACK VIEWER (admin)
   ========================================== */
.feedback-viewer-trigger {
  background: none;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 2px 10px;
  margin-left: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: middle;
}

.feedback-viewer-trigger:hover {
  background: var(--amber);
  color: var(--brown-dark);
}

.feedback-viewer-modal {
  width: 520px;
}

.feedback-viewer-modal .modal-body {
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.feedback-viewer-list {
  display: flex;
  flex-direction: column;
}

.feedback-viewer-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

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

.feedback-viewer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.feedback-viewer-meta strong {
  color: var(--gold);
}

.feedback-viewer-session {
  background: rgba(217, 119, 6, 0.2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}

.feedback-viewer-text {
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.feedback-viewer-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--amber-dark);
  font-size: 0.9rem;
}

/* ==========================================
   LOSERBOARD % INLINE
   ========================================== */
.govuk-pct-inline {
  color: #8e8e8e;
  font-weight: 400;
  font-size: 0.85em;
}

/* ==========================================
   INSTAGRAM PROFILE VIEW
   ========================================== */
.ig-profile-container {
  max-width: 935px;
  margin: 0 auto;
}

.ig-profile-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 16px;
}

.ig-profile-pic-wrap {
  flex-shrink: 0;
}

.ig-profile-pic {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.ig-profile-pic.has-story {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 3px;
  cursor: pointer;
}

.ig-profile-pic.has-story .ig-avatar {
  border: 3px solid #fff;
}

.ig-profile-info {
  flex: 1;
}

.ig-profile-username {
  font-size: 1.25rem;
  font-weight: 400;
  color: #262626;
  margin-bottom: 16px;
}

.ig-profile-stats {
  display: flex;
  gap: 28px;
}

.ig-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ig-profile-stat-num {
  font-weight: 700;
  font-size: 1rem;
  color: #262626;
}

.ig-profile-stat-label {
  font-size: 0.85rem;
  color: #8e8e8e;
}

.ig-profile-bio-section {
  padding: 0 16px 16px;
}

.ig-profile-display-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #262626;
  margin-bottom: 2px;
}

.ig-profile-bio {
  font-size: 0.9rem;
  color: #262626;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.ig-profile-edit-bio-btn {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  color: #262626;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.ig-profile-edit-bio-btn:hover {
  background: #fafafa;
}

.ig-profile-stories {
  padding: 0 16px 12px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.ig-profile-tabs {
  display: flex;
  justify-content: center;
  border-top: 1px solid #dbdbdb;
  margin-bottom: 0;
}

.ig-profile-tab {
  background: none;
  border: none;
  border-top: 1px solid transparent;
  margin-top: -1px;
  padding: 12px 20px;
  cursor: pointer;
  color: #8e8e8e;
  transition: color 0.2s ease;
}

.ig-profile-tab.active {
  color: #262626;
  border-top-color: #262626;
}

.ig-profile-grid {
  margin-bottom: 40px;
}

.bio-char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.6;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .ig-profile-header {
    gap: 20px;
    padding: 20px 16px;
  }

  .ig-profile-pic {
    width: 70px;
    height: 70px;
  }

  .ig-profile-stats {
    gap: 16px;
  }
}

/* ==========================================
   INSTAGRAM STORIES BAR
   ========================================== */
.ig-stories-bar {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #dbdbdb;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.ig-stories-bar::-webkit-scrollbar {
  display: none;
}

.ig-story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.ig-story-ring {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 50%;
  padding: 3px;
}

.ig-story-ring .ig-avatar {
  border: 3px solid #fff;
}

.ig-story-circle-name {
  font-size: 0.7rem;
  color: #262626;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ==========================================
   INSTAGRAM STORY VIEWER (Full-screen)
   ========================================== */
.ig-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #000;
  display: none;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.ig-story-viewer.active {
  display: flex;
}

.ig-story-progress {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.ig-story-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  overflow: hidden;
}

.ig-story-bar-fill {
  height: 100%;
  background: #fff;
  width: 0;
  border-radius: 1px;
}

.ig-story-bar.complete .ig-story-bar-fill {
  width: 100%;
}

.ig-story-bar.active .ig-story-bar-fill {
  animation: storyProgress 5s linear forwards;
}

@keyframes storyProgress {
  from { width: 0; }
  to { width: 100%; }
}

.ig-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 8px;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 10;
}

.ig-story-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-story-username {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.ig-story-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.ig-story-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.ig-story-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ig-story-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ig-story-nav {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 5;
}

.ig-story-nav-prev,
.ig-story-nav-next {
  flex: 1;
  cursor: pointer;
}

/* ==========================================
   INSTAGRAM FULLSCREEN MODE
   ========================================== */
body.ig-fullscreen {
  background: #fafafa !important;
}

body.ig-fullscreen .govuk-service-header,
body.ig-fullscreen .feedback-panel,
body.ig-fullscreen .add-btn {
  display: none !important;
}

body.ig-fullscreen .content-container {
  max-width: 935px;
  margin: 0 auto;
  padding: 0;
  background: #fafafa;
  min-height: 100vh;
}

body.ig-fullscreen .back-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: none;
  border: none;
  color: #262626;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
}

body.ig-fullscreen .back-btn:hover {
  color: #3897f0;
  transform: none;
}

body.ig-fullscreen .section-title,
body.ig-fullscreen .ig-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
  border-bottom: none;
  padding-bottom: 0;
}

body.ig-fullscreen .ig-filter-select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  color: #262626;
}

body.ig-fullscreen .ig-grid {
  border: none;
}

/* Loserboard profile link styling */
.loserboard-profile-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.loserboard-profile-link:visited {
  color: inherit !important;
}

body.theme-govuk .loserboard-profile-link {
  color: #0b0c0c !important;
  text-decoration: none !important;
}

body.theme-govuk .loserboard-profile-link:visited {
  color: #0b0c0c !important;
}

body.theme-govuk .loserboard-profile-link:hover {
  color: #0b0c0c !important;
}

body.theme-govuk .loserboard-profile-link:focus {
  color: #0b0c0c !important;
  background: transparent;
  outline: none;
}

/* ==========================================
   DAILY WRAPPED (Spotify Wrapped-style)
   ========================================== */

/* Wrapped highlight circles on profiles/gallery */
.wrapped-highlight-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.wrapped-highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #191414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
}

.wrapped-highlight-day {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1DB954;
  line-height: 1;
}

.wrapped-highlight-month {
  font-size: 0.55rem;
  font-weight: 600;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 1px;
}

/* Wrapped Viewer (full-screen overlay) */
.wrapped-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6000;
  background: #000;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.wrapped-viewer.active {
  display: flex;
  flex-direction: column;
}

/* Wrapped progress bars */
.wrapped-progress {
  display: flex;
  gap: 3px;
  padding: 12px 8px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6010;
}

.wrapped-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.wrapped-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0;
}

.wrapped-bar.complete .wrapped-bar-fill {
  width: 100%;
}

.wrapped-bar.active .wrapped-bar-fill {
  animation: wrappedProgress 6s linear forwards;
}

@keyframes wrappedProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Wrapped header */
.wrapped-header {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 6010;
}

.wrapped-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.wrapped-close:hover {
  opacity: 1;
}

/* Wrapped content */
.wrapped-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Navigation tap areas */
.wrapped-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 6005;
}

.wrapped-nav-prev,
.wrapped-nav-next {
  flex: 1;
  cursor: pointer;
}

/* ==========================================
   WRAPPED SLIDES
   ========================================== */
.wrapped-slide {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  box-sizing: border-box;
}

.wrapped-slide-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 6006;
  animation: wrappedFadeIn 0.4s ease-out;
}

@keyframes wrappedFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Title slide */
.wrapped-spotify-logo {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.wrapped-big-text {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.wrapped-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.wrapped-small-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Numbers slide */
.wrapped-stat-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.wrapped-hero-number {
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}

.wrapped-hero-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.wrapped-stat-row {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.wrapped-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapped-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.wrapped-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Leaderboard slide */
.wrapped-slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
}

.wrapped-leaderboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wrapped-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.wrapped-rank-icon {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.wrapped-rank-gold { color: #FFD700; font-size: 0.9rem; }
.wrapped-rank-silver { color: #C0C0C0; font-size: 0.85rem; }
.wrapped-rank-bronze { color: #CD7F32; font-size: 0.85rem; }

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

.wrapped-lb-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.wrapped-lb-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.wrapped-lb-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

.wrapped-lb-units {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  min-width: 42px;
  text-align: right;
}

/* Person slide */
.wrapped-person-avatar {
  margin-bottom: 12px;
}

.wrapped-person-avatar .ig-avatar {
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.wrapped-person-name {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
}

.wrapped-person-award {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-bottom: 4px;
}

.wrapped-person-rank {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.wrapped-person-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.wrapped-pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapped-pstat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.wrapped-pstat-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wrapped-fun-facts {
  width: 100%;
}

.wrapped-fact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wrapped-fact:first-child {
  border-top: none;
}

/* Photo slide */
.wrapped-photo-frame {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.wrapped-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrapped-photo-credit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.wrapped-photo-likes {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Group facts slide */
.wrapped-group-facts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.wrapped-group-fact {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: left;
  animation: wrappedFactSlide 0.5s ease-out backwards;
}

.wrapped-group-fact:nth-child(1) { animation-delay: 0s; }
.wrapped-group-fact:nth-child(2) { animation-delay: 0.15s; }
.wrapped-group-fact:nth-child(3) { animation-delay: 0.3s; }
.wrapped-group-fact:nth-child(4) { animation-delay: 0.45s; }

@keyframes wrappedFactSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Finale slide */
.wrapped-finale-logo {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.wrapped-finale-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}

.wrapped-finale-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.wrapped-finale-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .wrapped-big-text {
    font-size: 2.4rem;
  }

  .wrapped-hero-number {
    font-size: 4rem;
  }

  .wrapped-person-name {
    font-size: 1.6rem;
  }

  .wrapped-person-rank {
    font-size: 2rem;
  }

  .wrapped-slide {
    padding: 50px 16px 32px;
  }

  .wrapped-photo-frame {
    width: 180px;
    height: 180px;
  }
}

/* ==========================================
   CELEBRATION MODE (500+ Milestone)
   ========================================== */

/* Screen shake */
@keyframes celebShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-8px) rotate(-1deg); }
  20% { transform: translateX(8px) rotate(1deg); }
  30% { transform: translateX(-6px) rotate(-0.5deg); }
  40% { transform: translateX(6px) rotate(0.5deg); }
  50% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.celeb-shake {
  animation: celebShake 0.6s ease-out;
}

/* Full-screen overlay */
.celebration-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100000;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 30%, #16213e 60%, #0a0a0a 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.celebration-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Ambient glow behind content */
.celebration-overlay::before {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 106, 37, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(160, 100, 255, 0.06) 0%, transparent 50%);
  animation: celebBgPulse 4s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes celebBgPulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Confetti layer */
.celeb-confetti {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Confetti pieces are animated via JS Web Animations API for Chrome compatibility */
.confetti-piece {
  position: absolute;
  top: -20px;
  opacity: 0;
}

/* Fireworks layer */
.celeb-fireworks {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 2;
}

.firework-burst {
  position: absolute;
  width: 0;
  height: 0;
}

/* Firework particles are animated via JS Web Animations API for Chrome compatibility */
.firework-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* Content area */
.celeb-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 60px 24px 80px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  text-align: center;
}

/* Trophy */
.celeb-trophy {
  font-size: 4rem;
  line-height: 1;
  animation: celebBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s backwards;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes celebBounceIn {
  0% {
    opacity: 0;
    transform: scale(0) translateY(-80px);
  }
  60% {
    transform: scale(1.3) translateY(0);
  }
  80% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Big animated number */
.celeb-number {
  font-size: 8rem;
  font-weight: 900;
  color: #FFD700;
  line-height: 1;
  margin: 12px 0;
  text-shadow:
    0 0 40px rgba(255, 215, 0, 0.5),
    0 0 80px rgba(255, 215, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
  animation: celebNumberGlow 2s ease-in-out infinite, celebFadeScale 0.8s ease-out 0.8s backwards;
}

@keyframes celebNumberGlow {
  0%, 100% {
    text-shadow:
      0 0 40px rgba(255, 215, 0, 0.5),
      0 0 80px rgba(255, 215, 0, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow:
      0 0 60px rgba(255, 215, 0, 0.8),
      0 0 120px rgba(255, 215, 0, 0.5),
      0 0 180px rgba(255, 215, 0, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.5);
  }
}

@keyframes celebFadeScale {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Title */
.celeb-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 5px;
  text-transform: uppercase;
  animation: celebSlideUp 0.6s ease-out 2.5s backwards;
}

@keyframes celebSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.celeb-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  animation: celebSlideUp 0.6s ease-out 3s backwards;
}

/* Milestone fun fact */
.celeb-fact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  max-width: 340px;
  animation: celebSlideUp 0.6s ease-out 3.2s backwards;
}

/* Divider */
.celeb-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  margin: 24px 0;
  animation: celebSlideUp 0.5s ease-out 3.4s backwards;
}

/* Contributors section */
.celeb-contributors {
  width: 100%;
  max-width: 360px;
  animation: celebSlideUp 0.6s ease-out 3.5s backwards;
}

.celeb-contrib-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.celeb-contributor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.celeb-contributor-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  width: 80px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.celeb-contributor-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.celeb-contributor-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #F46A25);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.celeb-contributor-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  width: 32px;
  text-align: left;
  flex-shrink: 0;
}

/* Tagline */
.celeb-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-top: 24px;
  animation: celebSlideUp 0.6s ease-out 5s backwards;
}

/* Close button — no backwards fill so it's always tappable even if animations fail */
.celeb-close {
  margin-top: 28px;
  padding: 14px 44px;
  background: linear-gradient(135deg, #FFD700, #F46A25);
  color: #0a0a0a;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: celebSlideUp 0.6s ease-out 3.5s backwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.celeb-close:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.celeb-close:active {
  transform: scale(0.97);
}

/* Mobile celebration adjustments */
@media (max-width: 480px) {
  .celeb-number {
    font-size: 5.5rem;
  }

  .celeb-title {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .celeb-trophy {
    font-size: 3rem;
  }

  .celeb-content {
    padding: 40px 16px 60px;
  }

  .celeb-contributor-name {
    width: 65px;
    font-size: 0.8rem;
  }
}
