/* BinsOut - Modern Clean Design */

:root {
  /* Primary colors - Teal/Green theme */
  --primary: #0d9488; /* Teal for a fresh, eco-friendly feel */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --primary-text: #115e59;

  /* Secondary accent - Warm amber for energy */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;

  /* UI colors */
  --text: #1e293b;
  --text-light: #475569;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-warm: #fafaf9; /* Warm white for sections */
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Accent - WCAG AA compliant */
  --link: #0891b2; /* Cyan for links */
  --link-hover: #0e7490;

  /* Shadows - softer and warmer */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg:
    0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 40px -10px rgb(0 0 0 / 0.12);

  /* Border radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

/* Accessibility utilities */
.skip-link {
  position: absolute;
  top: -70px;
  left: 0;
  background: var(--text);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

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

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo svg {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo .logo-bins {
  fill: var(--primary);
}

.site-logo .logo-out {
  fill: var(--text);
}

.header-partner {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.header-partner:hover {
  color: var(--text);
  background: var(--bg-gray);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-image {
  max-width: 380px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-mission {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

/* Form Card */
.form-section {
  padding: 0 0 80px;
  background: var(--bg);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--primary);
}

/* FAQ accordion */
.faq-section {
  margin-top: 32px;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 16px 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p + p {
  margin-top: 8px;
}

.form-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.form-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-intro {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

/* Fieldset styling to match form groups */
fieldset.form-group {
  border: none;
  padding: 0;
}

fieldset.form-group legend {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  padding: 0;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-hint {
  font-size: 1rem;
  color: var(--link);
  margin-top: 16px;
  font-weight: 500;
}

/* Inline "Did you mean …?" prompt shown under the email field on a likely typo. */
.email-suggestion {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.email-suggestion-fix {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

.email-suggestion-fix:hover {
  text-decoration: none;
}

/* Detected council notice (postcode-first flow) */
.detected-council {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--primary-text);
  line-height: 1.5;
}

.detected-council.unsupported {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.detected-council strong {
  font-weight: 600;
}

.detected-council .detected-wrong {
  color: var(--text-muted);
}

.detected-council a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detected-council a:hover {
  color: var(--primary-hover);
}

.unsupported-notify {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.unsupported-notify h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #9a3412;
}

.unsupported-notify p {
  margin: 0 0 12px;
  color: #9a3412;
  font-size: 0.9375rem;
}

.unsupported-notify-row {
  display: flex;
  gap: 10px;
}

.unsupported-notify-row input {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid #fed7aa;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.unsupported-notify-row input:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.2);
}

#unsupported-notify-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  display: none;
}

#unsupported-notify-message.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

#unsupported-notify-message.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Council searchable combobox */
.council-combobox {
  position: relative;
}

.council-combobox-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: text;
}

.council-combobox-input:hover {
  border-color: var(--text-muted);
}

.council-combobox-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.council-combobox-input::placeholder {
  color: var(--text-muted);
}

.council-combobox-input.has-value {
  font-weight: 500;
}

.council-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.council-dropdown.open {
  display: block;
}

.council-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-light);
}

.council-option:last-child {
  border-bottom: none;
}

.council-option:hover,
.council-option.highlighted {
  background: var(--primary-light);
  color: var(--primary-text);
}

.council-option-name {
  font-weight: 500;
}

.council-option-area {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.council-option:hover .council-option-area,
.council-option.highlighted .council-option-area {
  color: var(--primary-text);
  opacity: 0.8;
}

.council-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.form-hint a {
  color: var(--link);
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

/* Postcode lookup row */
.postcode-row {
  display: flex;
  gap: 10px;
}

.postcode-row input {
  flex: 1;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #115e59 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--link);
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Messages */
#form-message {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  display: none;
}

#form-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

#form-message.success {
  display: block;
  background: var(--primary-light);
  color: var(--primary-text);
  border: 2px solid rgba(13, 148, 136, 0.3);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg) 100%);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.how-it-works .form-card h2 {
  margin-bottom: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2f1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg);
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-list details {
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.faq-list details:last-child {
  border-bottom: none;
}

.faq-list details:first-child {
  border-top: none;
}

.faq-list summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 22px 24px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
  border-radius: 4px;
  margin: 2px;
}

.faq-list summary:hover {
  background: var(--bg-gray);
}

.faq-list details[open] summary {
  padding-bottom: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
  background: var(--primary);
  color: white;
}

.faq-list details p {
  margin: 0;
  padding: 8px 24px 24px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Privacy Section */
.privacy-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  position: relative;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.privacy-section .container {
  position: relative;
  z-index: 1;
}

.privacy-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.privacy-content {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  box-shadow: var(--shadow-xl);
}

.privacy-content p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1rem;
}

.privacy-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-content li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.privacy-content li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.privacy-content li:last-child {
  border-bottom: none;
}

.privacy-content li strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.privacy-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Footer */
footer {
  padding: 48px 0;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: var(--primary-hover);
}

.footer-links {
  text-align: center;
  margin: 8px 0;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-note {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: inline-block;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

#main-content .container {
  padding-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 50px;
    margin: 30px 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step {
    padding: 24px 20px;
  }

  .form-section {
    margin-top: -20px;
  }

  .form-card {
    padding: 28px 24px;
    margin: 0 16px;
    border-radius: var(--radius-lg);
  }

  .postcode-row {
    flex-direction: column;
  }

  .unsupported-notify-row {
    flex-direction: column;
  }

  .council-buttons {
    flex-direction: column;
  }

  .how-it-works,
  .faq-section,
  .privacy-section {
    padding: 60px 0;
  }

  .privacy-content {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-mission {
    padding: 12px 16px;
  }

  .how-it-works h2,
  .faq-section h2,
  .privacy-section h2 {
    font-size: 1.5rem;
  }
}

/* Dashboard specific */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.user-info {
  background: var(--bg-gray);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.user-info p {
  margin-bottom: 8px;
}

.user-info strong {
  color: var(--text);
}

.next-collections {
  margin-top: 20px;
}

.collection-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1fr);
  grid-template-areas:
    'details countdown date'
    'details countdown note';
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  padding: 16px 20px;
  margin: 12px 0;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--shadow);
}

.collection-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  grid-area: details;
}

.collection-countdown {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  grid-area: countdown;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 88px;
}

.collection-countdown .countdown-value {
  font-size: 1.9rem;
  line-height: 1;
}

.collection-countdown .countdown-label {
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.9;
}

.collection-note {
  grid-area: note;
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  justify-self: end;
  text-align: right;
}

.collection-date {
  grid-area: date;
  justify-self: end;
  text-align: right;
  min-width: 0;
}

.collection-item .bin-name {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.collection-estimated {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.collection-date .bin-date {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .collection-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'details countdown'
      'date date'
      'note note';
    column-gap: 12px;
    row-gap: 6px;
    padding: 14px 16px;
  }

  .collection-countdown {
    align-self: center;
    min-width: 72px;
    padding: 6px 10px;
  }

  .collection-countdown .countdown-value {
    font-size: calc(1.4rem + 2px);
  }

  .collection-details .bin-name {
    font-size: calc(1rem + 2px);
  }

  .collection-note {
    font-size: calc(0.8rem + 2px);
    justify-self: start;
    text-align: left;
  }

  .collection-date {
    justify-self: start;
    text-align: left;
  }

  .collection-date .bin-date {
    font-size: calc(0.95rem + 2px);
  }
}

/* Bin colors */
.bin-black {
  background: #333;
}
.bin-recycling {
  background: #2e7d32;
}
.bin-food {
  background: #8bc34a;
}
.bin-garden {
  background: #795548;
}
.bin-default {
  background: #757575;
}

/* Dashboard page styles */
.dashboard-hero {
  padding: 20px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.dashboard-hero h1 {
  margin: 0;
}

.dashboard-hero h1 a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.dashboard-header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--bg-gray);
  border-radius: 16px;
}

.dashboard-header-actions .dashboard-email {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
}

.dashboard-header-actions .btn-secondary.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.dashboard-email {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--bg-gray);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.dashboard-main {
  padding: 40px 16px;
}

.dashboard-main section {
  margin-bottom: 40px;
}

.dashboard-main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.status-active {
  color: var(--primary-text);
  font-weight: 600;
}

.status-paused {
  color: #dc2626;
  font-weight: 600;
}

.status-text {
  font-size: 1.1rem;
}

.council-info {
  color: var(--text-light);
  margin-top: 8px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 600;
}

.alert-success {
  background: var(--primary-light);
  color: var(--primary-text);
  border: 2px solid rgba(13, 148, 136, 0.3);
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.button-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.button-row form {
  margin: 0;
}

.reminder-time-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Unsubscribe/confirmation pages */
.page-message {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.page-message .icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.page-message h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.page-message p {
  color: var(--text-light);
  margin-bottom: 8px;
}

.page-message .btn-primary {
  margin-top: 20px;
  display: inline-block;
  width: auto;
  padding: 12px 32px;
}

.page-message .subtext {
  color: var(--text-muted);
  margin-top: 20px;
}

/* Already registered section */
.returning-user {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2f1 100%);
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.returning-user p {
  color: var(--primary-text);
  font-weight: 600;
  margin: 0;
}

.returning-user .btn-primary {
  width: auto;
  padding: 12px 24px;
}

.magic-link-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-gray);
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: -40px;
  padding: 28px 40px 32px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.magic-link-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.magic-link-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.magic-link-toggle-wrap {
  margin-top: 4px;
}

.text-link-subtle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link-subtle:hover {
  color: var(--link);
}

.magic-link-form {
  display: flex;
  gap: 10px;
}

.magic-link-form input {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
}

.magic-link-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.magic-link-form button {
  white-space: nowrap;
}

#magic-link-message {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  display: none;
}

#magic-link-message.success {
  background: var(--primary-light);
  color: var(--primary-text);
  border: 2px solid rgba(13, 148, 136, 0.3);
}

#magic-link-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

@media (max-width: 480px) {
  .magic-link-form {
    flex-direction: column;
  }

  .magic-link-section {
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -28px;
    padding: 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .returning-user {
    flex-direction: column;
    text-align: center;
  }
}

/* Location Pages Styles */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-muted);
}

.header-nav a {
  color: var(--link);
  text-decoration: none;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-nav span[aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}

.hero-location {
  padding: 48px 0 32px;
}

.hero-location h1 {
  font-size: 2.25rem;
}

@media (min-width: 769px) {
  .hero-location {
    padding-bottom: 72px;
  }

  .hero-location .hero-subtitle {
    max-width: 680px;
  }

  .hero-location .hero-mission {
    max-width: 620px;
  }

  .hero-location + main .form-card {
    max-width: 640px;
  }
}

/* Location Info Section */
.location-info {
  padding: 60px 0;
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.location-info h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.info-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.info-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.info-card strong {
  color: var(--text);
}

/* Other Areas Section */
.other-areas {
  padding: 64px 0;
  background: var(--bg-warm);
  text-align: center;
}

.other-areas h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.area-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.area-link {
  display: inline-block;
  padding: 14px 28px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.area-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Area tags (non-clickable) */
.area-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.area-tag {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.area-note {
  font-size: 1rem;
  color: var(--text-muted);
}

.area-note a {
  color: var(--link);
  text-decoration: none;
}

.area-note a:hover {
  text-decoration: underline;
}

/* FAQ section links */
.faq-list details p a {
  color: var(--link);
  text-decoration: none;
}

.faq-list details p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-location h1 {
    font-size: 1.75rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-nav {
    display: none;
  }

  .area-links {
    flex-direction: column;
    align-items: center;
  }

  .area-link {
    width: 100%;
    max-width: 200px;
  }
}

/* Sponsor banner (free-tier ad) */
.sponsor-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 24px;
}

.sponsor-banner:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.sponsor-banner-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sponsor-banner-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

/* Swap sponsor logo for dark mode */
.sponsor-logo-dark { display: none; }

[data-theme="dark"] .sponsor-logo-light { display: none; }
[data-theme="dark"] .sponsor-logo-dark { display: block; }

.sponsor-banner-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

@media (max-width: 480px) {
  .sponsor-banner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }

  .sponsor-banner-text {
    width: 100%;
    margin-left: 0;
  }
}

/* Support BinsOut section */
.support-card {
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.support-card p:not(.supporter-badge) {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.support-card.support-active {
  background: var(--primary-light);
  border-color: rgba(13, 148, 136, 0.3);
}

p.supporter-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Unstick header inside native app */
body.native-app .site-header {
  position: static;
}

/* JS-controlled visibility (initial hidden state, toggled by JavaScript) */
.js-hidden {
  display: none;
}

/* Extracted inline styles */

/* Page layouts - constrained containers */
.content-container-narrow {
  max-width: 840px;
  padding: 40px 20px;
}

.content-container-form {
  max-width: 520px;
  padding: 40px 20px;
}

/* Hero header used on login/verify pages */
.hero-header-compact {
  padding: 30px 20px;
}

.hero-header-compact a {
  color: var(--primary-text);
  text-decoration: none;
}

.hero-header-compact a:hover {
  color: var(--primary-hover);
}

/* Admin view alert (warning/amber) */
.alert-admin-view {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #fde68a;
}

/* Inline form utility */
.form-inline {
  display: inline;
}

/* Button margin utilities */
.btn-margin-left {
  margin-left: 10px;
}

.btn-width-auto {
  width: auto;
}

/* App Store badges */
.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.25rem 0;
  text-align: center;
  line-height: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-badge img {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

.store-badge:hover img {
  opacity: 0.8;
}

.android-beta-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}

.android-beta-note p {
  margin: 0;
}

/* IAP / subscription info text */
.subscription-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.subscription-meta-sm {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.subscription-meta-xs {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.subscription-meta-xs a,
.subscription-meta a {
  color: #6b7280;
}

/* IAP buy button (hidden by default, shown by JS) */
.iap-buy-btn {
  width: auto;
  display: none;
}

/* IAP restore paragraph (hidden by default, shown by JS) */
.iap-restore-wrap {
  margin-top: 0.75rem;
  display: none;
}

/* Support checkout form top spacing */
.support-checkout-form {
  margin-top: 1rem;
}

/* Manage subscription button (native, top spacing) */
.btn-manage-subscription {
  margin-top: 0.75rem;
}

/* Notification methods fieldset */
.notification-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.notification-fieldset legend {
  font-weight: 600;
  padding: 0 8px;
}

/* Checkbox group spacing variant */
.checkbox-group-spaced {
  margin-bottom: 8px;
}

/* Push notification hint variants */
.push-hint {
  margin-top: 4px;
}

.push-hint-warning {
  color: #b45309;
  margin-top: 4px;
}

/* Warning when both email and push notifications are disabled */
.notification-off-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.notification-off-warning strong {
  font-weight: 600;
}

.notification-off-warning[hidden] {
  display: none;
}

/* IAP restore subscription link */
.subscription-restore-link {
  font-size: 0.85rem;
}

/* Supporter notice (unsubscribe page - amber warning box) */
.supporter-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.supporter-notice-heading {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #92400e;
}

.supporter-notice-body {
  margin: 0 0 0.75rem;
  color: #78350f;
}

.supporter-notice-form {
  margin: 0;
}

.supporter-notice-text {
  margin: 0;
  font-size: 0.85rem;
  color: #92400e;
}

/* Unsubscribe confirm form spacing */
.unsubscribe-confirm-form {
  margin-top: 1.5rem;
}

/* Subtext paragraph spacing */
.subtext-spaced {
  margin-top: 1rem;
}

/* Delete account / magic link form spacing */
.form-spaced {
  margin-top: 20px;
}

/* Magic link message spacing */
.magic-link-message-spaced {
  margin-top: 12px;
}

/* Help text paragraph spacing */
.help-text-spaced {
  margin-top: 20px;
}

/* 404 area-links top margin */
.area-links-spaced {
  margin-top: 2rem;
}

/* Admin page styles */

/* Admin header actions row */
.admin-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Stat card links (remove underline) */
a.stat-card {
  text-decoration: none;
}

/* Admin section spacing */
.admin-section {
  margin-bottom: 30px;
}

/* Stats grid bottom spacing */
.admin-stats-spaced {
  margin-bottom: 20px;
}

/* Stat card - critical (API down, circuit breaker open) */
.stat-card-critical {
  background: #c62828;
  color: white;
}

/* Stat card - warning (circuit breaker half-open) */
.stat-card-warning {
  background: #f9a825;
  color: #333;
}

/* Muted text paragraph */
.admin-text-muted {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Scrollable table wrapper */
.table-scroll {
  overflow-x: auto;
}

.table-scroll-spaced {
  overflow-x: auto;
  margin-bottom: 16px;
}

/* Admin toolbar compact variant */
.admin-toolbar-compact {
  margin: 8px 0 12px;
}

/* Empty state table cell */
.table-empty-cell {
  text-align: center;
  color: var(--text-light);
}

/* Unsupported postcode section description */
.admin-section-desc {
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Button row with flex wrap */
.admin-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

/* Refresh result banners */
.admin-flash-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.admin-flash-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Inline form (no margin, used in table cells) */
.form-compact {
  margin: 0;
}

/* Search form display contents */
.form-contents {
  display: contents;
}

/* Pagination summary text */
.admin-pagination-summary {
  text-align: center;
  color: var(--text-light);
  margin-top: 15px;
}

/* Disabled input with background hint */
.input-disabled-bg {
  background: var(--bg);
}

/* Delete warning text */
.admin-delete-warning {
  color: var(--error);
  margin-top: 10px;
}

/* Unknown/fallback text in tables */
.text-light-inline {
  color: var(--text-light);
}

/* ==================== Social Auth ==================== */

.social-auth-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.social-auth-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-auth-compact .btn-social {
  width: 100%;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
  text-decoration: none;
  line-height: 1.25rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.btn-social:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
}

.btn-google:hover {
  background: #f2f2f2;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.btn-apple {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-apple:hover {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.btn-google:active {
  background: #e8e8e8;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.1);
}

.btn-apple:active {
  background: #333;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Next-collection preview — pre-signup value proof (see api/preview-collection.php) */
.schedule-preview {
  margin: 4px 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--primary-light);
  background: var(--primary-light);
  border-radius: var(--radius);
}

.schedule-preview-loading {
  color: var(--primary-text);
  font-size: 0.9375rem;
}

.schedule-preview-lead {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 0.875rem;
}

.schedule-preview-lead::before {
  content: '✓ ';
  font-weight: 700;
}

.schedule-preview-next {
  margin-top: 6px;
  color: var(--text);
  font-size: 1.0625rem;
}

.schedule-preview-next strong {
  font-weight: 700;
}

.schedule-preview-rel {
  color: var(--text-muted);
}

.schedule-preview-bins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.schedule-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
}

.schedule-preview-chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #757575;
  flex: none;
}

.schedule-preview-chip.bin-recycling::before {
  background: #2e7d32;
}

.schedule-preview-chip.bin-food::before {
  background: #8bc34a;
}

.schedule-preview-chip.bin-garden::before {
  background: #795548;
}

.schedule-preview-chip.bin-rubbish::before,
.schedule-preview-chip.bin-refuse::before,
.schedule-preview-chip.bin-black::before {
  background: #333;
}

.schedule-preview-cta {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Connected Accounts (Dashboard) */
.connected-accounts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connected-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.connected-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connected-account-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.connected-account-details {
  display: flex;
  flex-direction: column;
}

.connected-account-provider {
  font-weight: 600;
  font-size: 0.9375rem;
}

.connected-account-email {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-social-unlink,
.btn-social-link {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.btn-social-unlink:hover {
  border-color: var(--error);
  color: var(--error);
}

.btn-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 480px) {
  .social-auth-compact {
    gap: 8px;
  }

  .connected-account {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── Code entry (native app OTP login) ── */

.code-entry-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.code-entry-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.code-verify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-verify-form input {
  padding: 14px;
  font-size: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 700;
  font-family: monospace;
}

.code-verify-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

#code-verify-message {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  display: none;
}

#code-verify-message.success {
  display: block;
  background: var(--primary-light);
  color: var(--primary-text);
  border: 2px solid rgba(13, 148, 136, 0.3);
}

#code-verify-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

/* Address change */
.address-display {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.address-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.address-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.address-value {
  font-weight: 600;
  line-height: 1.4;
}

.address-postcode {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 2px;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==================== Dark Mode ====================
 * Applied via [data-theme="dark"] on <html>. The inline head script
 * (see theme_bootstrap() in config/config.php) resolves the user's
 * preference ('auto' | 'light' | 'dark') and sets the attribute
 * before first paint. Pages without that script default to light. */

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-warm: #1e293b;
  --bg-gray: #1e293b;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-light: #1e293b;
  --primary-light: #134e4a;
  --primary-text: #5eead4;
  --accent-light: #451a03;
  --link: #22d3ee;
  --link-hover: #67e8f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.35), 0 1px 2px -1px rgb(0 0 0 / 0.35);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.35), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.35);
  --shadow-xl: 0 20px 40px -10px rgb(0 0 0 / 0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .site-logo .logo-bins {
  fill: #2dd4bf;
}

[data-theme="dark"] .site-logo .logo-out {
  fill: #f1f5f9;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0d1f2d 0%, #0f2030 50%, #0d1a2e 100%);
}

[data-theme="dark"] .hero-mission {
  background: rgba(30, 41, 59, 0.7);
}

[data-theme="dark"] .form-card {
  background: #1e293b;
}

[data-theme="dark"] .form-group input[type='text'],
[data-theme="dark"] .form-group input[type='email'],
[data-theme="dark"] .form-group select,
[data-theme="dark"] .council-combobox-input,
[data-theme="dark"] .postcode-row input,
[data-theme="dark"] .magic-link-form input,
[data-theme="dark"] .code-verify-form input,
[data-theme="dark"] .unsupported-notify-row input {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #334155;
}

[data-theme="dark"] .form-group input[type='text']::placeholder,
[data-theme="dark"] .form-group input[type='email']::placeholder,
[data-theme="dark"] .council-combobox-input::placeholder,
[data-theme="dark"] .magic-link-form input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .council-dropdown {
  background: #1e293b;
}

[data-theme="dark"] .btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #334155;
  border-color: #475569;
}

[data-theme="dark"] .magic-link-section {
  background: #1a2740;
}

[data-theme="dark"] .faq-list {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .faq-list summary:hover {
  background: #263348;
}

[data-theme="dark"] .how-it-works {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .step {
  background: #1e293b;
}

[data-theme="dark"] .step-icon {
  background: linear-gradient(135deg, #134e4a 0%, #1e3a3a 100%);
}

[data-theme="dark"] .privacy-content {
  background: rgba(30, 41, 59, 0.97);
}

[data-theme="dark"] .alert-error,
[data-theme="dark"] #form-message.error,
[data-theme="dark"] #magic-link-message.error,
[data-theme="dark"] #code-verify-message.error,
[data-theme="dark"] #unsupported-notify-message.error {
  background: #3b0c0c;
  color: #fca5a5;
  border-color: #7f1d1d;
}

[data-theme="dark"] #unsupported-notify-message.success {
  background: #134e4a;
  color: #5eead4;
  border-color: #0f766e;
}

[data-theme="dark"] .detected-council.unsupported {
  background: #3b0c0c;
  border-color: #7f1d1d;
  color: #fca5a5;
}

[data-theme="dark"] .unsupported-notify {
  background: #1c1008;
  border-color: #92400e;
}

[data-theme="dark"] .unsupported-notify h3,
[data-theme="dark"] .unsupported-notify p {
  color: #fbbf24;
}

[data-theme="dark"] .unsupported-notify-row input {
  border-color: #92400e;
}

[data-theme="dark"] .returning-user {
  background: linear-gradient(135deg, #134e4a 0%, #1a3a38 100%);
  border-color: rgba(13, 148, 136, 0.4);
}

[data-theme="dark"] footer {
  background: #1e293b;
  border-top-color: #334155;
}

[data-theme="dark"] .info-card {
  background: #1e293b;
}

[data-theme="dark"] .area-link {
  background: #1e293b;
}

[data-theme="dark"] .area-tag {
  background: #1e293b;
}

[data-theme="dark"] .sponsor-banner {
  background: #1e293b;
}

[data-theme="dark"] .support-card {
  background: #1e293b;
}

[data-theme="dark"] .notification-fieldset {
  border-color: #334155;
}

[data-theme="dark"] .notification-off-warning {
  background: #451a03;
  color: #fcd34d;
  border-color: #78350f;
}

[data-theme="dark"] .admin-flash-success {
  background: #134e4a;
  border-color: #0f766e;
  color: #5eead4;
}

[data-theme="dark"] .admin-flash-error {
  background: #3b0c0c;
  border-color: #7f1d1d;
  color: #fca5a5;
}

[data-theme="dark"] .alert-admin-view {
  background: #451a03;
  color: #fcd34d;
  border-color: #78350f;
}

[data-theme="dark"] .supporter-notice {
  background: #1c1008;
  border-color: #78350f;
}

[data-theme="dark"] .supporter-notice-heading {
  color: #fbbf24;
}

[data-theme="dark"] .supporter-notice-body,
[data-theme="dark"] .supporter-notice-text {
  color: #fcd34d;
}

[data-theme="dark"] .push-hint-warning {
  color: #fbbf24;
}

[data-theme="dark"] .subscription-meta,
[data-theme="dark"] .subscription-meta-sm,
[data-theme="dark"] .subscription-meta-xs {
  color: #94a3b8;
}

[data-theme="dark"] .subscription-meta a,
[data-theme="dark"] .subscription-meta-xs a {
  color: #94a3b8;
}

[data-theme="dark"] .btn-google {
  background: #f8fafc;
  color: #1f1f1f;
  border-color: #94a3b8;
}

[data-theme="dark"] .btn-google:hover {
  background: #e2e8f0;
}

[data-theme="dark"] .dashboard-email {
  background: #334155;
}

[data-theme="dark"] .user-info {
  background: #1e293b;
}

[data-theme="dark"] .connected-account {
  background: #1e293b;
}

[data-theme="dark"] .btn-social-unlink,
[data-theme="dark"] .btn-social-link {
  background: #1e293b;
}

[data-theme="dark"] .hero-header-compact a {
  color: #5eead4;
}

[data-theme="dark"] .status-paused {
  color: #f87171;
}

/* ==================== Signup Step Indicator ==================== */

.signup-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0 8px;
}

.signup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.signup-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-step.active .signup-step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.signup-step.completed .signup-step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.signup-step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  transition: color 0.3s ease;
}

.signup-step.active .signup-step-label {
  color: var(--primary);
  font-weight: 600;
}

.signup-step.completed .signup-step-label {
  color: var(--primary-text);
}

.signup-step-line {
  height: 2px;
  flex: 1;
  min-width: 24px;
  max-width: 56px;
  background: var(--border);
  margin-top: 17px;
  transition: background 0.3s ease;
}

.signup-step-line.completed {
  background: var(--primary);
}

@media (min-width: 480px) {
  .signup-step-dot {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .signup-step-label {
    font-size: 0.75rem;
  }

  .signup-step-line {
    margin-top: 19px;
    min-width: 40px;
    max-width: 72px;
  }
}

/* Form group transition animations */
.form-group,
.checkbox-group,
#submit-group {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group.step-entering,
.checkbox-group.step-entering,
#submit-group.step-entering {
  animation: stepFadeIn 0.35s ease forwards;
}

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

/* ==================== Pull to Refresh ==================== */

.pull-to-refresh-indicator {
  text-align: center;
  overflow: hidden;
  height: 0;
  transition: height 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull-to-refresh-indicator.pulling {
  height: 48px;
}

.pull-to-refresh-indicator.refreshing {
  height: 48px;
}

.pull-to-refresh-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.pull-to-refresh-arrow {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.pull-to-refresh-indicator.threshold .pull-to-refresh-arrow {
  transform: rotate(180deg);
}

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

/* ==================== Theme Toggle ==================== */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-gray);
  border-color: var(--text-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Hide native-app toggle because the app's native controls handle it */
body.native-app .theme-toggle {
  display: none;
}
