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

body {
  font-family: "nta", Arial, sans-serif;
  background: #f3f2f1;
  color: #0b0c0c;
  min-height: 100vh;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.disclaimer-text {
  text-align: left;
  color: #d4351c;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
  opacity: 0.9;
  font-family: "nta", Arial, sans-serif;
  background: #fef7f5;
  border-left: 5px solid #d4351c;
  padding: 15px;
}

/* ==========================================
   SESSION SELECTOR (integrated in service header)
   ========================================== */

.govuk-service-header__session-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.govuk-service-header__session-label {
  color: #FCD34D;
  font-weight: 700;
  font-size: 0.95rem;
}

.govuk-select--inline {
  padding: 3px 24px 3px 8px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  font-size: 0.875rem;
  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='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: all 0.2s ease;
  font-family: "nta", Arial, sans-serif;
  -webkit-appearance: none;
}

.govuk-select--inline:hover {
  border-color: #D97706;
}

.govuk-select--inline:focus {
  outline: 3px solid #ffdd00;
  border-color: #0b0c0c;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  outline-offset: 0;
}

.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: #FCD34D;
  border: 1px solid #FCD34D;
}

.archived-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(252, 211, 77, 0.12);
  border-left: 4px solid #FCD34D;
  color: #b8860b;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
}

.archived-notice-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

@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: 960px;
  margin: 0 auto;
  padding: 30px 15px;
  background: #ffffff;
  min-height: 50vh;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: none;
}

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

.section-title {
  text-align: left;
  font-size: 1.5rem;
  color: #0b0c0c;
  margin-bottom: 20px;
  font-family: "nta", Arial, sans-serif;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #b1b4b6;
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */

.add-btn {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  right: 30px;
  height: auto;
  padding: 10px 16px 8px 12px;
  border-radius: 0;
  background: #00703c;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 0 #002d18;
  transition: none;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "nta", Arial, sans-serif;
}

.add-btn:hover {
  transform: none;
  box-shadow: 0 2px 0 #002d18;
  background: #005a30;
}

.add-btn:active {
  transform: none;
  box-shadow: none;
  position: fixed;
  top: auto;
}

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

.add-btn-label {
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  font-family: "nta", Arial, sans-serif;
}

@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: 8px 10px 7px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  border-radius: 0;
  background: #f3f2f1;
  color: #0b0c0c;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: none;
  font-family: "nta", Arial, sans-serif;
  box-shadow: 0 2px 0 #929191;
  text-align: center;
}

.view-logs-btn:hover {
  background: #dbdad9;
  transform: none;
  box-shadow: 0 2px 0 #929191;
}

.back-btn {
  padding: 0;
  margin-bottom: 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0b0c0c;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: "nta", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.back-btn:hover {
  background: #D97706;
  transform: none;
  color: #003078;
}

/* ==========================================
   LOSERBOARD
   ========================================== */

.loserboard-container {
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 40px;
}

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

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

.loserboard-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  overflow: hidden;
}

.loserboard-toggle-btn {
  background: transparent;
  border: none;
  color: #0b0c0c;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: "nta", Arial, sans-serif;
}

.loserboard-toggle-btn.active {
  background: #0b0c0c;
  color: #ffffff;
}

.loserboard-toggle-btn:hover:not(.active) {
  background: #f3f2f1;
}

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

/* Logs Filter */

.logs-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px 0;
  background: #ffffff;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #b1b4b6;
}

.logs-filter label {
  color: #0b0c0c;
  font-weight: 700;
  font-size: 1.1875rem;
  font-family: "nta", Arial, sans-serif;
}

.person-filter-select {
  padding: 5px 10px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "nta", Arial, sans-serif;
}

.person-filter-select:hover {
  border-color: #0b0c0c;
  background: #ffffff;
}

.person-filter-select:focus {
  outline: 3px solid #ffdd00;
  border-color: #FCD34D;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  outline-offset: 0;
}

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

.loserboard-item {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: none;
}

.loserboard-item:hover {
  transform: none;
  border-color: #0b0c0c;
}

.loserboard-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
  min-width: 35px;
  text-align: center;
  font-family: "nta", Arial, sans-serif;
  text-shadow: none;
}

.loserboard-rank.first {
  color: #0b0c0c;
  text-shadow: none;
}

.loserboard-rank.second {
  color: #0b0c0c;
}

.loserboard-rank.third {
  color: #0b0c0c;
}

.loserboard-info {
  flex: 1;
}

.loserboard-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b0c0c;
  margin-bottom: 4px;
  font-family: "nta", Arial, sans-serif;
}

.loserboard-stats {
  font-size: 0.85rem;
  color: #505a5f;
  opacity: 0.85;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-block;
  background: #f3f2f1;
  padding: 2px 8px;
  border-radius: 0;
  font-size: 0.875rem;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   GRAPHS SECTION
   ========================================== */

.graphs-container {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid #b1b4b6;
  margin-top: 30px;
}

.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 #b1b4b6;
  border-radius: 0;
  overflow: hidden;
}

.chart-toggle-btn {
  background: transparent;
  border: none;
  color: #0b0c0c;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: "nta", Arial, sans-serif;
}

.chart-toggle-btn.active {
  background: #0b0c0c;
  color: #ffffff;
}

.chart-toggle-btn:hover:not(.active) {
  background: #f3f2f1;
}

.chart-container {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  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: 0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #505a5f;
  opacity: 0.7;
  font-style: normal;
  font-family: "nta", Arial, sans-serif;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #505a5f;
  opacity: 0.6;
  font-family: "nta", Arial, sans-serif;
}

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

.drink-item {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: none;
  animation: none;
  border-bottom: 1px solid #b1b4b6;
}

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

.drink-item:hover {
  transform: none;
  border-color: #b1b4b6;
  background: #f3f2f1;
}

.drink-info {
  flex: 1;
}

.drink-name {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0b0c0c;
  margin-bottom: 4px;
  font-family: "nta", Arial, sans-serif;
}

.drink-details {
  font-size: 1rem;
  color: #505a5f;
  opacity: 0.85;
  font-family: "nta", Arial, sans-serif;
}

.drink-type {
  display: inline-block;
  background: #f3f2f1;
  padding: 2px 8px;
  border-radius: 0;
  font-size: 0.85rem;
  margin-left: 8px;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
  font-weight: 700;
}

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

.edit-btn,
.delete-btn {
  display: none;
  cursor: pointer;
  flex-shrink: 0;
}

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

.delete-btn:hover {
  background: #d4351c;
  color: #ffffff;
}

/* ==========================================
   LOGIN PROVIDER MODAL
   ========================================== */

.login-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.provider-btn {
  width: 100%;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 0;
  background: #00703c;
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-family: "nta", Arial, sans-serif;
  box-shadow: 0 2px 0 #002d18;
}

.provider-btn:hover {
  background: #005a30;
  transform: none;
  box-shadow: 0 2px 0 #002d18;
  border-color: transparent;
}

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

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #505a5f;
  font-size: 0.875rem;
  font-family: "nta", Arial, sans-serif;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #b1b4b6;
}

.email-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-auth-form .govuk-input {
  font-size: 1rem;
  padding: 8px 10px;
  border: 2px solid #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

.email-btn {
  background: #1d70b8;
  box-shadow: 0 2px 0 #003078;
}

.email-btn:hover {
  background: #003078;
}

.email-auth-toggle {
  background: none;
  border: none;
  color: #1d70b8;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  text-align: center;
  font-family: "nta", Arial, sans-serif;
}

.email-auth-toggle:hover {
  color: #003078;
}

.email-auth-error {
  color: #d4351c;
  font-size: 0.875rem;
  padding: 8px 10px;
  border-left: 4px solid #d4351c;
  background: #fef7f5;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   MODAL
   ========================================== */

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

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

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: none;
  border-radius: 0;
  max-width: 90%;
  width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  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: 1px solid #b1b4b6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #0b0c0c;
  margin: 0;
  font-family: "nta", Arial, sans-serif;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: #0b0c0c;
  font-size: 2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: none;
  line-height: 1;
}

.modal-close:hover {
  background: #f3f2f1;
  transform: none;
}

.modal-body {
  padding: 24px;
}

.join-code-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
}

.join-code-input-row .govuk-input {
  flex: 1;
  max-width: 200px;
}

.join-code-input-row .govuk-button {
  flex-shrink: 0;
  margin: 0;
}

.join-code-modal-error {
  color: #d4351c;
  font-size: 0.875rem;
  margin-top: 8px;
  font-weight: 700;
}

/* ==========================================
   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: 5px;
  color: #0b0c0c;
  font-weight: 700;
  font-size: 1.1875rem;
  font-family: "nta", Arial, sans-serif;
}

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='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  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.875rem;
  font-weight: 500;
  color: #0b0c0c;
  margin-bottom: 0 !important;
  font-family: "nta", Arial, sans-serif;
}

.multi-add-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d70b8;
  cursor: pointer;
}

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

.multi-add-people {
  border: 2px solid #b1b4b6;
  border-radius: 0;
  background: #ffffff;
  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 #B45309;
  color: #FCD34D;
  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: #B45309;
  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: 0;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.multi-add-person:hover {
  background: rgba(29, 112, 184, 0.1);
}

.multi-add-person input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d70b8;
  cursor: pointer;
  flex-shrink: 0;
}

.multi-add-person label {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #FEF3C7;
  cursor: pointer;
}

.multi-add-count {
  text-align: center;
  font-size: 0.8rem;
  color: #505a5f;
  margin-top: 6px;
  opacity: 0.8;
  font-family: "nta", Arial, sans-serif;
}

.submit-btn {
  width: 100%;
  padding: 8px 10px 7px;
  border: none;
  border-radius: 0;
  background: #00703c;
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 400;
  cursor: pointer;
  transition: none;
  box-shadow: 0 2px 0 #002d18;
  margin-top: 15px;
  font-family: "nta", Arial, sans-serif;
}

.submit-btn:hover {
  transform: none;
  box-shadow: 0 2px 0 #002d18;
  background: #005a30;
}

.submit-btn:active {
  transform: none;
  box-shadow: none;
}

/* ==========================================
   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: #0b0c0c;
  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;
  }

  .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 #b1b4b6;
  border-radius: 0;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f3f2f1;
  position: relative;
}

.photo-upload-area:hover {
  border-color: #0b0c0c;
  background: #e8e6e3;
}

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

.photo-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: #0b0c0c;
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.photo-upload-text {
  color: #505a5f;
  font-size: 0.95rem;
  opacity: 0.85;
  font-family: "nta", Arial, sans-serif;
}

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

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

.photo-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: #FC0000;
  border: 2px solid #0b0c0c;
  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: 0;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #b1b4b6;
  transition: border-color 0.2s ease;
}

.drink-photo-thumb:hover {
  border-color: #0b0c0c;
}

.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;
  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.liked {
  color: #d4351c;
  border-color: #d4351c;
}

.like-btn.liked:hover:not(:disabled) {
  background: #fef7f5;
}

.dislike-btn.disliked {
  color: #1d70b8;
  border-color: #1d70b8;
}

.dislike-btn.disliked:hover:not(:disabled) {
  background: #f0f6fb;
}

.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;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #b1b4b6;
}

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

.latest-photo-container {
  max-width: 100%;
  margin: 0 auto 30px;
  padding-top: 0;
  border-top: none;
  margin-bottom: 0;
}

/* 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;
  border-bottom: none;
  padding-bottom: 0;
}

.latest-photo-card {
  border: 1px solid #b1b4b6;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
}

.latest-photo-card:hover {
  border-color: #0b0c0c;
  transform: none;
  box-shadow: none;
}

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

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

.latest-photo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

.latest-photo-detail {
  font-size: 0.9rem;
  color: #505a5f;
  opacity: 0.85;
  font-family: "nta", Arial, sans-serif;
}

@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: 0;
}

.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  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: #0b0c0c;
  margin: 0;
  font-family: "nta", Arial, sans-serif;
}

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

.ig-filter-select {
  padding: 8px 16px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  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='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  font-family: "nta", Arial, sans-serif;
}

.ig-empty {
  text-align: center;
  padding: 60px 20px;
  color: #FEF3C7;
  opacity: 0.6;
}

/* 3-column grid */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border: 1px solid #b1b4b6;
}

.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;
  font-family: "nta", Arial, sans-serif;
}

.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;
  border-radius: 0;
}

.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: 0;
  width: 100%;
  max-width: 500px;
  border: 1px solid #dbdbdb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Drink-of-the-day counter in caption */

.ig-drink-number {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

/* 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;
  border-color: #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: 0;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "nta", Arial, sans-serif;
}

.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: #0b0c0c;
}

.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: #505a5f;
  font-size: 0.9rem;
}

/* ==========================================
   FEEDBACK PANEL
   ========================================== */

.feedback-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f3f2f1;
  border-bottom: 1px solid #b1b4b6;
}

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

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

.feedback-label {
  display: block;
  color: #0b0c0c;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "nta", Arial, sans-serif;
}

.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  color: #0b0c0c;
  padding: 10px;
  font-size: 1rem;
  font-family: "nta", Arial, sans-serif;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: 3px solid #ffdd00;
  border-color: #0b0c0c;
  outline-offset: 0;
}

.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: #00703c;
  color: #ffffff;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
}

.feedback-send:hover {
  background: #005a30;
}

.feedback-cancel {
  background: transparent;
  color: #0b0c0c;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
}

.feedback-cancel:hover {
  border-color: #0b0c0c;
}

.feedback-response {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f3f2f1;
  border-left: 4px solid #1d70b8;
  border-radius: 0 4px 4px 0;
  color: #0b0c0c;
  font-size: 0.9rem;
  font-style: italic;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   TIP JAR PANEL
   ========================================== */
.tip-jar-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f3f2f1;
  border-bottom: 1px solid #b1b4b6;
}

.tip-jar-panel.open {
  max-height: 500px;
}

.tip-jar-panel-inner {
  margin: 0 auto;
  padding: 20px 20px;
  text-align: center;
}

.tip-jar-panel-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 6px;
}

.tip-jar-panel-subtitle {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
  margin: 0 0 16px;
}

.tip-jar-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.tip-jar-options stripe-buy-button {
  display: inline-block;
}

.tip-jar-close {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 16px;
  background: transparent;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #0b0c0c;
  cursor: pointer;
}

.tip-jar-close:hover {
  border-color: #0b0c0c;
}


/* ==========================================
   LOSERBOARD % INLINE
   ========================================== */

.govuk-pct-inline {
  color: #505a5f;
  font-weight: 400;
  font-size: 0.85em;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   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: #0b0c0c;
  margin-bottom: 16px;
  font-family: "nta", Arial, sans-serif;
}

.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: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

.ig-profile-stat-label {
  font-size: 0.85rem;
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

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

.ig-profile-display-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b0c0c;
  margin-bottom: 2px;
  font-family: "nta", Arial, sans-serif;
}

.ig-profile-bio {
  font-size: 0.9rem;
  color: #0b0c0c;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 12px;
  font-family: "nta", Arial, sans-serif;
}

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

.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;
  border-top-color: #b1b4b6;
}

.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: #0b0c0c;
  border-top-color: #0b0c0c;
}

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

.bio-char-count {
  text-align: right;
  font-size: 0.8rem;
  color: #505a5f;
  opacity: 0.6;
  margin-top: 4px;
  font-family: "nta", Arial, sans-serif;
}

@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;
  border-bottom-color: #b1b4b6;
}

.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: #0b0c0c;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   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;
}

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: #0b0c0c !important;
  cursor: pointer;
}

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

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

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

/* ==========================================================
   GOV.UK-ONLY COMPONENTS
   (Elements that only exist in GOV.UK theme, no base equivalent)
   ========================================================== */

.govuk-service-header {
  display: block;
  background: #ffffff;
  padding: 18px 0 16px;
  border-top: 8px solid #1d70b8;
  border-bottom: 1px solid #b1b4b6;
}


.govuk-width-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.govuk-heading-l {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0c0c;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 4px 7px;
  line-height: 1;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.service-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin-bottom: 0;
  padding-bottom: 10px;
}

.service-header-version {
  color: #505a5f;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.service-header-meta {
  border-bottom: 1px solid #b1b4b6;
  justify-content: space-between;
}

.service-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.service-header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #505a5f;
  cursor: pointer;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1;
}

.service-header-action-btn:hover {
  background: #f3f2f1;
  color: #0b0c0c;
}

.service-header-action-btn svg {
  flex-shrink: 0;
}

.service-header-loading-bar {
  height: 3px;
  width: 100%;
  background: #f3f2f1;
  overflow: hidden;
}

.service-header-loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #1d70b8;
  transition: width 0.3s ease;
}


/* Combined league selector + action buttons row */
.service-header-league-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  flex-wrap: nowrap;
}

.service-header-league-row .govuk-select--inline {
  max-width: 220px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-header-league-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.service-header-league-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.875rem;
  font-family: "nta", Arial, sans-serif;
  font-weight: 600;
  color: #0b0c0c;
  background: #f3f2f1;
  border: 2px solid #0b0c0c;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.service-header-league-btn:hover {
  background: #e0e0e0;
}

.service-header-league-btn--primary {
  color: #ffffff;
  background: #00703c;
  border-color: #00703c;
}

.service-header-league-btn--primary:hover {
  background: #005a30;
  border-color: #005a30;
}

.govuk-input {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  color: #0b0c0c;
  background: #ffffff;
}

.govuk-input:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
}

.service-header-drinks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "nta", Arial, sans-serif;
  margin-top: 4px;
  margin-bottom: 4px;
}

.service-header-drinks-count {
  font-size: 2rem;
  font-weight: 700;
  color: #0b0c0c;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.service-header-drinks-label {
  font-size: 0.875rem;
  color: #505a5f;
  font-weight: 400;
}

.service-header-offline {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d4351c;
  margin-left: 4px;
}

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

.service-header-offline--syncing {
  color: #505a5f;
  font-weight: 400;
}

.service-header-offline--syncing::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid #505a5f;
  border-top-color: transparent;
  border-radius: 50%;
  animation: bsc-spin 0.75s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.govuk-select--compact {
  font-size: 0.8125rem;
  padding: 2px 22px 2px 6px;
  border-width: 1px;
  font-weight: 400;
}

.service-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: -16px;
  border-top: 1px solid #b1b4b6;
}

.service-header-user .header-avatar-wrap {
  flex-shrink: 0;
  cursor: pointer;
}

.service-header-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.service-header-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.service-header-user-name-row > span:first-child {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b0c0c;
}

.service-header-user-email {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-header-admin-badge {
  display: inline-block;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: #1d70b8;
  padding: 2px 6px;
  flex-shrink: 0;
}

.service-header-user .members-trigger {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #1d70b8;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.service-header-user .members-trigger:hover {
  color: #003078;
}

.service-header-signout {
  flex-shrink: 0;
  margin-left: auto;
}

.service-header-signin {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: -16px;
  border-top: 1px solid #b1b4b6;
}

.govuk-body-l {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  color: #505a5f;
  margin: 0 0 15px;
  line-height: 1.3;
}

.govuk-body-s {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
}

.govuk-\!-margin-bottom-0 {
  margin-bottom: 0 !important;
}

.govuk-hidden {
  display: none !important;
}

.govuk-button {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 400;
  padding: 8px 10px 7px;
  border: 2px solid transparent;
  border-radius: 0;
  color: #ffffff;
  background-color: #00703c;
  box-shadow: 0 2px 0 #002d18;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  -webkit-appearance: none;
}

.govuk-button:hover {
  background-color: #005a30;
}

.govuk-button:active {
  top: 2px;
  box-shadow: none;
}

.govuk-button:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background-color: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

.govuk-button--secondary {
  background-color: #f3f2f1;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #929191;
}

.govuk-button--secondary:hover {
  background-color: #dbdad9;
  color: #0b0c0c;
}

.govuk-button--secondary:focus {
  color: #0b0c0c;
}

.govuk-button--warning {
  background-color: #d4351c;
  box-shadow: 0 2px 0 #55150b;
}

.govuk-button--warning:hover {
  background-color: #aa2a16;
}

.govuk-btn-sm {
  font-size: 0.875rem;
  padding: 5px 14px 4px;
}

.view-logs-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

.back-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

.govuk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  margin-bottom: 20px;
}

.govuk-table__head {
  border-bottom: none;
}

.govuk-table__header {
  font-weight: 700;
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid #b1b4b6;
  text-align: left;
  color: #0b0c0c;
  font-size: 1rem;
}

.govuk-table__cell {
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid #b1b4b6;
  color: #0b0c0c;
  vertical-align: top;
  font-size: 1rem;
}

.govuk-table__header--numeric,
.govuk-table__cell--numeric {
  text-align: right;
  padding-right: 0;
}

.govuk-\!-font-weight-bold {
  font-weight: 700;
}

.govuk-rank--1 {
  font-weight: 700;
}

.govuk-rank-tag {
  display: inline-block;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.875rem;
}

.govuk-rank-tag--gold {
  background: #ffdd00;
  color: #0b0c0c;
}

.govuk-rank-tag--silver {
  background: #b1b4b6;
  color: #0b0c0c;
}

.govuk-rank-tag--bronze {
  background: #cd7f32;
  color: #ffffff;
}

.edit-btn,
.delete-btn {
  font-family: "nta", Arial, sans-serif;
  background: #f3f2f1;
  border: none;
  border-radius: 0;
  color: #0b0c0c;
  font-size: 0.875rem;
  padding: 5px 10px;
  box-shadow: 0 2px 0 #929191;
}

.delete-btn:focus,
.edit-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

.add-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

.modal-close:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
}

select,
input[type="date"],
input[type="time"] {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 8px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  width: 100%;
  max-width: 100%;
  height: 40px;
  box-sizing: border-box;
}

select:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  border-color: #0b0c0c;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
}

.submit-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

.multi-add-select-all,
.multi-add-select-none {
  border: 1px solid #b1b4b6;
  color: #1d70b8;
  font-family: "nta", Arial, sans-serif;
  border-radius: 0;
}

.multi-add-select-all:hover,
.multi-add-select-none:hover {
  background: #1d70b8;
  color: #ffffff;
}

.multi-add-person label,
.multi-add-person span {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

.provider-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

.govuk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus,
button:focus,
select:focus,
input:focus,
textarea:focus,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

a {
  color: #1d70b8;
  text-decoration: underline;
}

a:hover {
  color: #003078;
}

a:visited {
  color: #4c2c92;
}

a:focus {
  color: #0b0c0c;
  background: #ffdd00;
  text-decoration: none;
}

.govuk-summary-list {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

.govuk-summary-list__row {
  display: flex;
  border-bottom: 1px solid #b1b4b6;
  padding: 10px 0;
}

.govuk-summary-list__key {
  font-weight: 700;
  width: 50%;
  padding-right: 20px;
  color: #0b0c0c;
}

.govuk-summary-list__value {
  width: 50%;
  color: #0b0c0c;
}

.govuk-body {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  color: #0b0c0c;
  margin: 0 0 15px;
}

.forecasts-container {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #b1b4b6;
}

.photo-top {
  border-top: none;
}

.like-btn,
.dislike-btn {
  border: 1px solid #b1b4b6;
  border-radius: 0;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

.like-btn:hover:not(:disabled),
.dislike-btn:hover:not(:disabled) {
  border-color: #0b0c0c;
  background: #f3f2f1;
}

body.ig-fullscreen .back-btn:focus {
  outline: none;
  background: transparent;
}

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;
  text-align: center;
}

body.ig-fullscreen .ig-filter-select:focus {
  outline: none;
  border-color: #3897f0;
  box-shadow: none;
}

body.ig-fullscreen .ig-stories-bar {
  border-bottom-color: #dbdbdb;
}

body.ig-fullscreen .ig-story-circle-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

body.ig-fullscreen .ig-profile-username,
body.ig-fullscreen .ig-profile-display-name,
body.ig-fullscreen .ig-profile-bio,
body.ig-fullscreen .ig-profile-stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

body.ig-fullscreen .ig-profile-stat-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

body.ig-fullscreen .ig-profile-edit-bio-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border-radius: 8px;
  border-color: #dbdbdb;
}

body.ig-fullscreen .ig-profile-tabs {
  border-top-color: #dbdbdb;
}

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

body.ig-fullscreen .ig-empty {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

body.ig-fullscreen .loading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

.members-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}

.members-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 12px 0 4px;
}

.members-subtitle {
  margin-bottom: 20px;
}

.members-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.members-invite-section {
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 16px;
  margin-bottom: 20px;
}

.members-invite-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.members-invite-row .govuk-input {
  flex: 1;
  font-size: 0.8125rem;
}

.members-link-copied {
  color: #00703c;
  font-weight: 700;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.members-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 12px 16px;
  gap: 12px;
}

.members-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.members-row-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b0c0c;
}

.members-row-email {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
}

.members-row-nickname {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
  font-style: italic;
}

.members-row-unclaimed {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #d4351c;
}

.members-row-actions {
  flex-shrink: 0;
}

.members-row-status {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
}

.members-row-status--claimed {
  color: #00703c;
  background: #e6f3ec;
}

.members-copy-link {
  white-space: nowrap;
}

.service-header-user .settings-trigger {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #1d70b8;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.service-header-user .settings-trigger:hover {
  color: #003078;
}

.settings-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}

.settings-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 12px 0 4px;
}

.settings-subtitle {
  margin-bottom: 20px;
}

.settings-section {
  border-bottom: 1px solid #b1b4b6;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.settings-section:last-of-type {
  border-bottom: none;
}

.settings-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.settings-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  white-space: nowrap;
  flex-shrink: 0;
}

.settings-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-container .govuk-input--compact {
  width: auto;
  flex: 1;
  min-width: 0;
}

.settings-container .govuk-input--narrow {
  width: 80px;
  flex: none;
}

.settings-units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.settings-unit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-unit-item label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  min-width: 50px;
}

.settings-unit-item input {
  width: 70px;
  flex: none;
  box-sizing: border-box;
}

.settings-unit-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.settings-unit-remove:hover {
  color: #942514;
}

.settings-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.settings-add-row input[type="text"] {
  width: 120px;
  flex: none;
}

.settings-add-row input[type="number"] {
  width: 70px;
  flex: none;
}

.settings-people-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.settings-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 6px 12px;
}

.settings-person-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
}

.settings-person-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.settings-person-remove:hover {
  color: #942514;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.settings-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.settings-save-status {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #00703c;
}

/* Settings: member rows with weights */
.settings-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 8px 12px;
}

.settings-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.settings-member-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
}

.settings-member-edit-name {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #1d70b8;
  padding: 0 2px;
  vertical-align: middle;
}

.settings-member-edit-name:hover {
  color: #003078;
}

.settings-member-email {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
}

.settings-member-unclaimed {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #b1b4b6;
  font-style: italic;
}

.settings-member-weight {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.settings-member-weight .govuk-input--narrow {
  width: 60px;
}

.settings-member-weight-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
}

/* Settings: member "you" highlight */
.settings-member-row--you {
  border-color: #1d70b8;
  background: #f0f4f8;
}

.settings-member-you {
  font-weight: 400;
  color: #1d70b8;
  font-size: 0.75rem;
}

/* Settings: admin badges */
.settings-member-badge {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
  border: none;
  line-height: 1.4;
}

.settings-member-badge--creator {
  background: #f3f2f1;
  color: #505a5f;
  border: 1px solid #b1b4b6;
}

.settings-member-badge--admin {
  background: #e6f3ec;
  color: #00703c;
}

.settings-member-badge--member {
  background: #f3f2f1;
  color: #505a5f;
}

.settings-member-badge--left {
  background: #f3f2f1;
  color: #505a5f;
  border: 1px solid #b1b4b6;
}

.settings-member-row--left {
  opacity: 0.6;
}

button.settings-admin-toggle {
  cursor: pointer;
}

button.settings-admin-toggle:hover {
  opacity: 0.7;
}

/* Settings: share/join code row */
.settings-share-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #b1b4b6;
}

.settings-join-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-join-code {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #0b0c0c;
  background: #f3f2f1;
  padding: 6px 16px;
  border: 2px solid #0b0c0c;
}

.settings-link-copied {
  color: #00703c;
  font-weight: 700;
}

/* Settings: danger zone */
.settings-danger-zone {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #d4351c;
}

/* (league-actions styles moved to .service-header-league-row) */

/* Delete league modal */
#deleteLeagueModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #0b0c0c;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#deleteLeagueModal .modal-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

#deleteLeagueModal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

#deleteLeagueOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.landing-page {
  font-family: "nta", Arial, sans-serif;
}

.landing-hero {
  background: linear-gradient(135deg, #0b0c0c 0%, #1d1d1d 100%);
  color: #ffffff;
  padding: 60px 20px 50px;
  text-align: center;
}

.landing-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.landing-hero-badge {
  display: inline-block;
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: #ffffff;
  color: #0b0c0c;
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.landing-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
}

.landing-hero-subtitle {
  font-size: 1.125rem;
  color: #b1b4b6;
  margin: 0 0 32px;
  line-height: 1.5;
}

.landing-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-cta-btn {
  min-width: 160px;
  text-align: center;
  text-decoration: none;
}

.landing-features {
  padding: 40px 0 60px;
}

.landing-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
  text-align: center;
  margin: 0 0 28px;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.landing-step-card {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 24px 20px;
  text-align: center;
}

.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d70b8;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-step-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.landing-step-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin: 0;
  line-height: 1.5;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.landing-feature-card {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s;
}

.landing-feature-card:hover {
  border-color: #0b0c0c;
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.landing-feature-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 6px;
}

.landing-feature-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
  margin: 0;
  line-height: 1.5;
}

.landing-pricing {
  text-align: center;
  margin-bottom: 40px;
}

.landing-pricing-card {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #0b0c0c;
  padding: 32px 40px;
  max-width: 420px;
}

.landing-pricing-amount {
  font-family: "nta", Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #0b0c0c;
  line-height: 1;
}

.landing-pricing-unit {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #505a5f;
  margin-bottom: 12px;
}

.landing-pricing-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  line-height: 1.5;
  margin-bottom: 20px;
}

.landing-footer {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid #b1b4b6;
}

.landing-footer p {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  color: #505a5f;
}

.landing-signin-link {
  background: none;
  border: none;
  color: #1d70b8;
  text-decoration: underline;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0;
}

.landing-signin-link:hover {
  color: #003078;
}

.landing-auth-state {
  margin-top: 8px;
}

.landing-hero-hint {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #b1b4b6;
  margin-top: 16px;
}

.landing-noleagues-msg {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 8px;
}

.landing-noleagues-msg strong {
  color: #ffffff;
}

.landing-noleagues-detail {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #b1b4b6;
  margin: 0 0 24px;
  line-height: 1.5;
}

.landing-join-code {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.landing-join-code-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.landing-join-code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.landing-join-code-input {
  flex: 1;
  text-align: center;
  font-family: monospace, "nta", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 12px;
}

.landing-join-code-error {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #d4351c;
  margin: 8px 0 0;
  background: rgba(255,255,255,0.9);
  display: inline-block;
  padding: 2px 8px;
}

.access-denied-banner {
  background: #ffffff;
  border: 2px solid #d4351c;
  padding: 24px;
  margin: 24px auto;
  max-width: 600px;
  text-align: center;
}

.access-denied-banner h2 {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d4351c;
  margin: 0 0 8px;
}

.access-denied-banner p {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin: 0 0 16px;
}

@media (min-width: 641px) {
  .govuk-width-container {
    padding: 0 30px;
  }
}

@media (max-width: 640px) {
  .govuk-heading-l {
    font-size: 1.25rem;
  }

  .service-header-league-row .govuk-select--inline {
    max-width: 160px;
  }

  .govuk-service-header__heading-row {
    flex-direction: column;
  gap: 10px;
  }

  .govuk-service-header__session-row {
    flex-wrap: wrap;
  gap: 8px;
  }

  .govuk-body-l {
    font-size: 1rem;
  }
}

@media (min-width: 641px) {
  .content-container {
    padding: 30px 30px;
  }
}

@media (min-width: 641px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .content-container {
    padding: 10px 10px;
  }

  .chart-container {
    height: 380px;
  }

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

  .govuk-table {
    font-size: 1rem;
  }

  .govuk-table__header,
  .govuk-table__cell {
    padding: 10px 16px 10px 0;
  font-size: 0.875rem;
  }

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

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

  .modal {
    width: 95%;
  }

  .govuk-summary-list__row {
    flex-direction: column;
  gap: 5px;
  }

  .govuk-summary-list__key,
  .govuk-summary-list__value {
    width: 100%;
  padding-right: 0;
  }

  .govuk-summary-list__key {
    font-size: 0.875rem;
  }

  .govuk-summary-list__value {
    font-size: 0.875rem;
  }
}

@media (min-width: 641px) {
  .members-container {
    padding: 15px 30px;
  }
}

@media (min-width: 641px) {
  .settings-container {
    padding: 15px 30px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 40px 16px 36px;
  }

  .landing-hero-title {
    font-size: 2rem;
  }

  .landing-steps-grid,
  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-pricing-card {
    padding: 24px 20px;
  }

  .landing-hero-cta {
    flex-direction: column;
  align-items: center;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
