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

[hidden] {
  display: none !important;
}

:root {
  --bg: #FFF8EE;
  --surface: #FFF0DE;
  --primary: #D45B20;
  --primary-dark: #B84A18;
  --primary-light: #FFF0DE;
  --text: #2C1810;
  --text-muted: #B07050;
  --text-light: #C8A088;
  --border: #F0D5C4;
  --card: #FFFFFF;
  --badge-new: #D45B20;
  --badge-adopted: #7B8F6B;
  --error: #C0392B;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-hover: 4px 4px 0 var(--border);
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#content-wrapper {
  transition: filter 0.4s ease;
}

body.offline #content-wrapper {
  filter: grayscale(0.5) brightness(0.95);
}

.page-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  background: var(--primary);
  color: var(--bg);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--bg);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.header-tagline {
  font-size: 0.62rem;
  color: rgba(255, 248, 238, 0.7);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

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

.site-footer {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-footer .status-pill {
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 4px 12px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.site-footer .status-pill--paused:hover {
  background: var(--border);
}

.site-footer .status-indicator {
  background: #5DBF61;
}

@keyframes pulse-dot-footer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 191, 97, 0.45); }
  50%       { box-shadow: 0 0 0 4px rgba(93, 191, 97, 0); }
}

.site-footer .status-indicator:not(.inactive) {
  animation: pulse-dot-footer 2.2s ease-in-out infinite;
}

.site-footer .last-checked {
  font-size: 0.68rem;
  color: var(--text-light);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bg);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #88E88B;
  flex-shrink: 0;
}

.status-indicator:not(.inactive) {
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(136, 232, 139, 0.45); }
  50%       { box-shadow: 0 0 0 4px rgba(136, 232, 139, 0); }
}

.status-indicator.inactive {
  background: rgba(255, 248, 238, 0.45);
  animation: none;
}

.status-pill--paused {
  cursor: pointer;
}

.status-pill--paused:hover {
  background: rgba(255, 255, 255, 0.25);
}

.status-indicator.error {
  background: #FF6B6B;
  animation: none;
}

.last-checked {
  font-size: 0.68rem;
  color: rgba(255, 248, 238, 0.6);
  font-weight: 500;
}

.notif-group {
  position: relative;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.subscribe-btn:hover {
  background: #fff;
}

.subscribe-btn .bell-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
}

.subscribe-btn.subscribed {
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg);
}

.subscribe-btn.subscribed:hover {
  background: rgba(255, 255, 255, 0.3);
}

.subscribe-btn.subscribed .bell-icon path {
  fill: currentColor;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--border);
  padding: 16px;
  min-width: 240px;
  z-index: 60;
  animation: panel-in 0.18s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-section-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.notif-shelter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-shelter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: left;
}

.notif-shelter-btn:hover {
  background: var(--surface);
}

.notif-shelter-btn::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.notif-shelter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.notif-shelter-btn.active::before {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.unsubscribe-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: none;
  border-top: 1.5px solid var(--border);
  padding-top: 12px;
  background: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
  text-align: center;
}

.unsubscribe-btn:hover {
  color: var(--error);
}

.notif-panel-confirm {
  padding: 4px 0;
}

.notif-confirm-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.notif-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unsubscribe-confirm-btn {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: var(--radius);
  background: var(--error);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.unsubscribe-confirm-btn:hover {
  background: #a93226;
}

.unsubscribe-cancel-btn {
  width: 100%;
  padding: 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.unsubscribe-cancel-btn:hover {
  background: var(--surface);
}

.header-stripe {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 20px, #E8782E 20px, #E8782E 40px);
}

.offline-banner {
  display: none;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 500;
}

.offline-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offline-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

body.offline .offline-banner {
  display: block;
}

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

.tab-bar {
  display: inline-flex;
  margin-bottom: 24px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.tab-btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.tab-btn:hover:not(.active) {
  background: var(--primary-light);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--bg);
}

.count-badge {
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
}

.tab-btn:not(.active) .count-badge {
  background: var(--primary-light);
  color: var(--primary);
}

.adopted-count {
  background: var(--border);
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  gap: 4px;
}

.filter-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover {
  background: var(--card);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.dog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  animation: card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.dog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.dog-card-info {
  padding: 12px 14px 14px;
  border-top: 2px solid var(--border);
}

.dog-card-info h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.dog-card-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.dog-card-breed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.dog-card-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.adopted-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}

.page-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.page-arrow svg {
  width: 16px;
  height: 16px;
}

.page-arrow:hover:not(:disabled) {
  background: var(--card);
  box-shadow: 2px 2px 0 var(--border);
}

.page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 4px;
}

.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-num:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.page-num.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.page-dots {
  width: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  user-select: none;
}

.page-info {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.adopted-panel {
  filter: grayscale(1) brightness(0.92);
}

.empty-state {
  text-align: center;
  padding: 80px 16px;
}

.empty-paw {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: var(--border);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.empty-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 6px 6px 0 var(--border);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 639px) {
  .modal-overlay.active {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: none;
    border-bottom: none;
    animation: modal-in-mobile 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
  }

  @keyframes modal-in-mobile {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

.modal-image-wrapper {
  position: relative;
}

.modal-image-wrapper img {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  background: var(--surface);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(44, 24, 16, 0.45);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(44, 24, 16, 0.65);
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal-details {
  margin-bottom: 20px;
}

.modal-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1.5px solid var(--border);
  font-size: 0.8rem;
}

.modal-detail:last-child {
  border-bottom: none;
}

.modal-detail .label {
  color: var(--text-muted);
  font-weight: 500;
}

.modal-detail span:last-child {
  font-weight: 700;
  color: var(--text);
}

.modal-link {
  display: block;
  padding: 13px 24px;
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s;
}

.modal-link:hover {
  background: var(--primary-dark);
  box-shadow: 3px 3px 0 var(--border);
}

.notif-setup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.notif-setup-overlay.active {
  display: flex;
}

.notif-setup-modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  max-width: 360px;
  width: 100%;
  box-shadow: 6px 6px 0 var(--border);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: hidden;
}

.notif-setup-header {
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1.5px solid var(--border);
}

.notif-setup-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.notif-setup-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.notif-setup-header h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.notif-setup-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.notif-setup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background 0.1s;
  position: relative;
}

.notif-setup-row:last-child {
  border-bottom: none;
}

.notif-setup-row:hover {
  background: var(--surface);
}

.notif-setup-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.notif-setup-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.notif-setup-check:checked + .notif-setup-box {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.notif-setup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
}

.notif-setup-confirm-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-setup-confirm-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.notif-setup-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notif-setup-cancel-btn {
  width: 100%;
  padding: 9px;
  border: none;
  background: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.notif-setup-cancel-btn:hover {
  color: var(--text-muted);
}

.ios-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--bg);
  z-index: 150;
  padding: 16px 20px max(20px, env(safe-area-inset-bottom));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 24px rgba(44, 24, 16, 0.18);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.ios-install-banner.visible {
  transform: translateY(0);
}

.ios-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ios-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ios-banner-text strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.ios-banner-text span {
  font-size: 0.78rem;
  opacity: 0.8;
}

.ios-banner-dismiss {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  transition: background 0.15s;
}

.ios-banner-dismiss svg {
  width: 13px;
  height: 13px;
}

.ios-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.35);
}

.ios-banner-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.ios-share-icon {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 2px 5px;
}

.ios-share-icon svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 639px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-tagline {
    display: none;
  }


  .tab-bar {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.62rem;
  }

  .filter-bar {
    gap: 12px;
    padding: 10px 12px;
  }

  .filter-group {
    flex-wrap: wrap;
  }

  .filter-options {
    flex-wrap: wrap;
  }

  .dog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .dog-card-info {
    padding: 10px 10px 12px;
  }

  .dog-card-info h3 {
    font-size: 0.75rem;
  }

  .container {
    padding: 16px 12px 80px;
  }

  .page-num {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .page-arrow {
    width: 32px;
    height: 32px;
  }

  .notif-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 20px rgba(44, 24, 16, 0.15);
    padding: 20px;
    min-width: auto;
  }

  .notif-setup-overlay.active {
    align-items: flex-end;
    padding: 0;
  }

  .notif-setup-modal {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: none;
    border-bottom: none;
    animation: modal-in-mobile 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
  }
}
