    :root {
      --bg-slate-950: #0f172a;
      --bg-slate-900: #182235;
      --bg-slate-800: #202c44;
      --bg-slate-700: #334155;
      --accent: #f59e0b;
      --accent-hover: #fbbf24;
      --accent-shadow: rgba(245, 158, 11, 0.25);
      --accent-text: #111827;
      --teal: #14b8a6;
      --teal-bg: rgba(20, 184, 166, 0.08);
      --teal-border: rgba(20, 184, 166, 0.2);
      --emerald: #14b8a6;
      --emerald-bg: rgba(20, 184, 166, 0.08);
      --emerald-border: rgba(20, 184, 166, 0.2);
      --amber: #f59e0b;
      --amber-bg: rgba(245, 158, 11, 0.06);
      --amber-border: rgba(245, 158, 11, 0.2);
      --cream-highlight: #fff7ed;
      --cream-bg: rgba(254, 243, 199, 0.08);
      --text-main: #f8fafc;
      --text-muted: #cbd5e1;
      --border-soft: rgba(255, 255, 255, 0.08);
    }

    html {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

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

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: radial-gradient(circle at top, #0f172a 0%, #020617 100%);
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      overflow: hidden;
    }

    @media (max-width: 480px) {
      body {
        padding: 0;
        height: 100dvh;
        align-items: flex-start;
        overflow: hidden;
      }
    }

    /* Primary Phone Mockup Container */
    .app-container {
      position: relative;
      max-width: 460px;
      width: 100%;
      height: calc(100vh - 40px);
      display: flex;
      flex-direction: column;
      background: var(--bg-slate-900);
      border-radius: 32px;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      border: 1px solid var(--border-soft);
    }

    @media (max-width: 480px) {
      .app-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        border: none;
      }
    }

    /* Sticky Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(2, 6, 23, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-soft);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    /* Sticky Condensed Dog Card */
    .sticky-dog-bar {
      position: absolute;
      top: 73px;
      /* below header */
      left: 0;
      right: 0;
      z-index: 19;
      background: rgba(2, 6, 23, 0.95);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-soft);
      padding: 10px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      transform: translateY(-110%);
      opacity: 0;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
      pointer-events: none;
    }

    .sticky-dog-bar.visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .sticky-dog-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--teal);
      box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
      flex-shrink: 0;
      background: var(--bg-slate-800);
    }

    .sticky-dog-info {
      flex: 1;
      min-width: 0;
    }

    .sticky-dog-name {
      font-size: 0.95rem;
      font-weight: 900;
      letter-spacing: -0.01em;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sticky-dog-meta {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-weight: 600;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sticky-chat-btn {
      padding: 7px 14px;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      border-radius: 9999px;
      font-weight: 800;
      font-size: 0.78rem;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: 0 2px 8px var(--accent-shadow);
    }

    .sticky-chat-btn:hover {
      background: var(--accent-hover);
    }

    .brand-title {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--text-muted);
      font-weight: 800;
      line-height: 1;
      margin-bottom: 2px;
      flex-shrink: 0;
    }

    .brand-tagline {
      font-size: 1rem;
      font-weight: 900;
      line-height: 1.1;
      letter-spacing: -0.01em;
      white-space: nowrap;
    }

    .header-location-select {
      padding: 8px 30px 8px 12px;
      font-size: 0.85rem;
      font-weight: 800;
      appearance: none;
      background: rgba(255, 255, 255, 0.1) url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 4px center;
      color: var(--text-main);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 9999px;
      cursor: pointer;
      max-width: 200px;
      text-overflow: ellipsis;
    }

    .shuffle-btn {
      padding: 8px 14px;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      border-radius: 9999px;
      font-weight: 800;
      font-size: 0.82rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 5px;
      box-shadow: 0 4px 12px var(--accent-shadow);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .shuffle-btn:hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
    }

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

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

    /* Main Scrollable Area */
    .scroll-content {
      flex: 1;
      overflow-y: auto;
      padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
      /* space for float footer */
      scroll-behavior: smooth;
    }

    /* Hero Image Stack */
    .hero-section {
      position: relative;
      width: 100%;
      height: 288px;
      background-color: var(--bg-slate-800);
      overflow: hidden;
    }

    .profile-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg-slate-900) 0%, rgba(15, 23, 42, 0.7) 40%, transparent 100%);
      display: flex;
      align-items: flex-end;
      padding: 20px;
    }

    .hero-info-row {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      width: 100%;
      gap: 12px;
    }

    .match-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      background: rgba(20, 184, 166, 0.15);
      color: var(--teal);
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 900;
      letter-spacing: 0.02em;
      border: 1px solid rgba(20, 184, 166, 0.3);
      margin-bottom: 6px;
    }

    .match-badge.fallback {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border-color: rgba(251, 191, 36, 0.2);
    }

    .dog-name {
      font-size: 2.5rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1;
      margin-bottom: 2px;
    }

    .dog-id {
      font-size: 0.85rem;
      color: var(--text-muted);
      font-weight: 700;
    }

    .fav-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--cream-highlight);
      color: #64748b; /* slate outline for unhearted */
      border: 1px solid rgba(245, 158, 11, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.4);
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      flex-shrink: 0;
    }

    .fav-btn:hover {
      transform: scale(1.08);
      color: #334155;
    }

    .fav-btn:active {
      transform: scale(0.95);
    }

    .fav-btn.favorited {
      color: #f59e0b; /* warm amber fill */
      background: var(--cream-highlight);
      border-color: rgba(245, 158, 11, 0.45);
      box-shadow: 0 6px 22px -3px rgba(245, 158, 11, 0.35);
    }

    .fav-btn svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      transition: all 0.2s ease;
    }

    .fav-btn.favorited svg {
      fill: currentColor;
      stroke: currentColor;
      animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes heartBeat {
      0% { transform: scale(1); }
      30% { transform: scale(1.45); }
      60% { transform: scale(0.9); }
      80% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    /* Toast Notification */
    .toast-notification {
      position: fixed;
      bottom: calc(24px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: rgba(15, 23, 42, 0.96);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1.5px solid var(--accent);
      color: white;
      padding: 12px 24px;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 800;
      z-index: 9999;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
      opacity: 0;
      pointer-events: none;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .toast-notification.visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .share-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.55);
      color: var(--cream-highlight);
      border: 1px solid rgba(255, 255, 255, 0.18);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.4);
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      flex-shrink: 0;
    }

    .share-btn:hover {
      transform: scale(1.08);
      background: rgba(15, 23, 42, 0.72);
    }

    .share-btn:active {
      transform: scale(0.95);
    }

    .share-btn svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.25;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .share-btn.compact {
      width: 36px;
      height: 36px;
    }

    .share-btn.compact svg {
      width: 16px;
      height: 16px;
    }

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

    .chat-section-header .chat-section-title {
      margin-bottom: 0;
    }

    .share-fallback-menu {
      position: fixed;
      z-index: 12000;
      min-width: 200px;
      background: var(--bg-slate-800);
      border: 1px solid var(--border-soft);
      border-radius: 14px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
      padding: 6px;
      display: none;
    }

    .share-fallback-menu.open {
      display: block;
    }

    .share-fallback-menu button {
      width: 100%;
      text-align: left;
      border: none;
      background: transparent;
      color: var(--text-main);
      font-size: 0.88rem;
      font-weight: 700;
      padding: 10px 12px;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .share-fallback-menu button:hover,
    .share-fallback-menu button:focus-visible {
      background: rgba(255, 255, 255, 0.06);
      outline: none;
    }

    .share-toast {
      position: fixed;
      left: 50%;
      bottom: 88px;
      transform: translateX(-50%) translateY(12px);
      background: var(--bg-slate-800);
      color: var(--text-main);
      border: 1px solid var(--border-soft);
      border-radius: 9999px;
      padding: 10px 18px;
      font-size: 0.85rem;
      font-weight: 800;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
      z-index: 13000;
      max-width: calc(100% - 32px);
      text-align: center;
    }

    .share-toast.visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .dog-unavailable-card {
      display: none;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 32px 24px;
      gap: 12px;
    }

  /* Must beat .details-box { display: flex } — card uses both classes */
    .details-box.dog-unavailable-card:not(.visible) {
      display: none !important;
    }

    .details-box.dog-unavailable-card.visible {
      display: flex !important;
    }

    .dog-unavailable-card.visible {
      display: flex;
    }

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

    /* Content Styling */
    .profile-body {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Unified Condensed Details Box Styling */
    .details-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-soft);
      border-radius: 20px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      text-align: left;
    }

    .details-stats-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
    }

    .detail-chip {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 8px 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--text-main);
      text-align: center;
      min-height: 56px;
      transition: all 0.2s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }

    .detail-chip.matched {
      background: var(--emerald-bg);
      border-color: var(--emerald-border);
    }

    .detail-chip.mismatched {
      background: var(--amber-bg);
      border-color: var(--amber-border);
    }

    .details-fit-container {
      background: rgba(20, 184, 166, 0.04);
      border-left: 3.5px solid var(--teal);
      border-radius: 0 12px 12px 0;
      padding: 8px 12px;
    }

    .details-fit-container.warning {
      background: rgba(245, 158, 11, 0.04);
      border-left-color: var(--amber);
    }

    .details-fit-text {
      font-size: 0.82rem;
      line-height: 1.45;
      color: var(--text-muted);
      margin: 0;
    }

    .details-bio-section {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 10px;
      margin-top: 2px;
    }

    .details-bio-title {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      font-weight: 900;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .details-bio-text {
      font-size: 0.84rem;
      line-height: 1.5;
      color: var(--text-muted);
      margin: 0;
      white-space: pre-line;
    }

    .details-bio-text.collapsed {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: normal;
      /* Fix browser-specific rendering issue combining pre-line with line-clamp */
    }

    .trait-chips-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }

    .trait-chip {
      background: rgba(15, 23, 42, 0.5);
      border: 1px solid var(--border-soft);
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 700;
      color: #e2e8f0;
    }

    /* Primary CTA Buttons */
    .cta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .cta-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-soft);
      border-radius: 18px;
      padding: 12px 14px;
      text-align: left;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
    }

    .cta-card:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: var(--teal);
    }

    .cta-icon-box {
      margin-bottom: 8px;
      color: var(--teal);
      display: flex;
      align-items: center;
    }

    .cta-card.primary-cta {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--accent-text);
      box-shadow: 0 4px 14px var(--accent-shadow);
    }

    .cta-card.primary-cta:hover {
      background: var(--accent-hover);
    }

    .cta-card.primary-cta .cta-icon-box {
      color: var(--accent-text);
    }

    .cta-title {
      font-size: 0.85rem;
      font-weight: 900;
      margin-bottom: 2px;
    }

    .cta-sub {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    .cta-card.primary-cta .cta-sub {
      color: rgba(17, 24, 39, 0.75);
    }

    /* Chat Section styling */
    .chat-section {
      border-top: 1px solid var(--border-soft);
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .chat-section-title {
      font-size: 1.15rem;
      font-weight: 900;
      letter-spacing: -0.01em;
    }

    /* Custom tabs selector */
    .tab-bar {
      display: flex;
      background: rgba(255, 255, 255, 0.04);
      padding: 3px;
      border-radius: 9999px;
      border: 1px solid var(--border-soft);
    }

    .tab-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 9999px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .tab-btn.active {
      background: var(--cream-highlight);
      color: var(--bg-slate-950);
    }

    .tab-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Chat History and bubbles */
    .chat-history {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .msg-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      width: 100%;
    }

    .msg-row.user {
      justify-content: flex-end;
    }

    .avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
      color: var(--bg-slate-950);
      font-weight: 900;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .bubble {
      max-width: 80%;
      padding: 10px 14px;
      border-radius: 20px;
      font-size: 0.85rem;
      line-height: 1.45;
      word-break: break-word;
    }

    .bubble.bot {
      background: var(--bg-slate-800);
      color: #f1f5f9;
      border-top-left-radius: 4px;
      border: 1px solid var(--border-soft);
      text-align: left;
    }

    .bubble.bot p {
      margin-bottom: 8px;
    }

    .bubble.bot p:last-child {
      margin-bottom: 0;
    }

    .bubble.bot strong {
      font-weight: 800;
    }

    .bubble.user {
      background: var(--accent);
      color: var(--accent-text);
      font-weight: 600;
      border-top-right-radius: 4px;
      box-shadow: 0 4px 10px var(--accent-shadow);
      text-align: left;
    }

    /* Suggestions Prompt Container */
    .prompt-shortcuts-area {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;
    }

    .prompt-shortcut-btn {
      width: 100%;
      background: rgba(15, 23, 42, 0.4);
      border: 1px solid var(--border-soft);
      padding: 12px 16px;
      border-radius: 14px;
      text-align: left;
      font-size: 0.8rem;
      font-weight: 700;
      color: #e2e8f0;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .prompt-shortcut-btn:hover {
      background: rgba(15, 23, 42, 0.7);
      border-color: var(--teal);
    }

    .prompt-shortcut-btn:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    /* Floating Translucent Sticky Footer */
    .footer-input-bar {
      position: absolute;
      bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset, 0px));
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 32px);
      max-width: calc(100% - 32px);
      z-index: 30;
      background: rgba(2, 6, 23, 0.9);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 9999px;
      padding: 6px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-sizing: border-box;
    }

    .input-row {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .chat-input {
      flex: 1;
      min-width: 0;
      background: var(--bg-slate-800);
      border: none;
      outline: none;
      padding: 12px 18px;
      border-radius: 9999px;
      color: white;
      font-family: inherit;
      font-size: 16px;
      font-weight: 600;
    }

    .chat-input::placeholder {
      color: #64748b;
    }

    @keyframes radiate-sparkle {
      0% { box-shadow: 0 0 0 0 rgba(253, 172, 21, 0.4); border: 1px solid transparent; }
      50% { box-shadow: 0 0 20px 6px rgba(253, 172, 21, 0.35); border: 1px solid rgba(253, 172, 21, 0.6); }
      100% { box-shadow: 0 0 0 0 rgba(253, 172, 21, 0); border: 1px solid transparent; }
    }

    @keyframes sparkle-fade {
      0% { opacity: 0; transform: scale(0) rotate(0deg); }
      50% { opacity: 0.8; transform: scale(1) rotate(90deg); }
      100% { opacity: 0; transform: scale(0) rotate(180deg); }
    }

    .attention-pulse {
      animation: radiate-sparkle 2s infinite ease-in-out;
    }

    .attention-wrapper::before,
    .attention-wrapper::after {
      content: "✨";
      position: absolute;
      font-size: 1rem;
      pointer-events: none;
      z-index: 20;
    }
    
    .attention-wrapper::before {
      top: -12px;
      right: 15%;
      animation: sparkle-fade 1.5s infinite ease-in-out;
    }
    
    .attention-wrapper::after {
      bottom: -10px;
      left: 10%;
      animation: sparkle-fade 2s infinite ease-in-out 0.75s;
    }

    .send-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 10px var(--accent-shadow);
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .send-btn:hover {
      background: var(--accent-hover);
    }

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

    .send-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* Dynamic Typing Indicator bubble */
    .typing-row {
      display: flex;
      gap: 10px;
      align-items: center;
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 600;
    }

    .typing-bubble {
      background: var(--bg-slate-800);
      padding: 10px 14px;
      border-radius: 20px;
      border-top-left-radius: 4px;
      display: flex;
      gap: 4px;
      align-items: center;
      height: 36px;
      border: 1px solid var(--border-soft);
    }

    .dot {
      width: 5px;
      height: 5px;
      background: var(--text-muted);
      border-radius: 50%;
      animation: bounce 1.4s infinite ease-in-out both;
    }

    .dot:nth-child(1) {
      animation-delay: -0.32s;
    }

    .dot:nth-child(2) {
      animation-delay: -0.16s;
    }

    @keyframes bounce {

      0%,
      80%,
      100% {
        transform: scale(0);
      }

      40% {
        transform: scale(1);
      }
    }

    /* Modal Overlay styling */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      background: rgba(2, 6, 23, 0.6);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      padding: 16px;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-card {
      background: var(--bg-slate-900);
      border: 1px solid var(--border-soft);
      border-radius: 28px;
      width: 100%;
      max-width: 420px;
      max-height: 80vh;
      max-height: 80dvh;
      overflow-y: auto;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      position: relative;
      transform: scale(0.9) translateY(20px);
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: flex;
      flex-direction: column;
      padding: 24px;
    }

    .modal-overlay.active .modal-card {
      transform: scale(1) translateY(0);
    }

    .modal-close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(255, 255, 255, 0.05);
      border: none;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-main);
      transition: all 0.2s ease;
    }

    .modal-close-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: rotate(90deg);
    }

    .modal-header {
      text-align: left;
      margin-bottom: 16px;
    }

    .modal-badge {
      display: inline-block;
      padding: 4px 10px;
      background: rgba(245, 158, 11, 0.1);
      color: var(--accent-hover);
      border-radius: 9999px;
      font-size: 0.7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 8px;
    }

    .modal-title {
      font-size: 1.45rem;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .modal-subtitle {
      color: var(--text-muted);
      font-size: 0.85rem;
      line-height: 1.4;
      margin-top: 4px;
    }

    .modal-content p {
      font-size: 0.9rem;
      line-height: 1.5;
      color: #cbd5e1;
      margin-bottom: 12px;
    }

    .modal-footer {
      display: flex;
      justify-content: center;
      margin-top: 16px;
    }

    .modal-start-btn {
      padding: 12px 32px;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      border-radius: 9999px;
      font-size: 0.95rem;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 4px 14px var(--accent-shadow);
    }

    .modal-start-btn:hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
    }

    /* Loader */
    .loader {
      display: none;
      width: 40px;
      height: 40px;
      border: 4px solid rgba(255, 255, 255, 0.05);
      border-bottom-color: var(--accent);
      border-radius: 50%;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
      position: absolute;
      top: calc(50% - 20px);
      left: calc(50% - 20px);
      z-index: 40;
    }

    @keyframes rotation {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .loading .scroll-content {
      opacity: 0.25;
      pointer-events: none;
    }

    .loading .loader {
      display: block;
    }

    /* Indicator dots inside rows */
    .compat-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      display: inline-block;
    }

    .compat-dot.green {
      background: var(--teal);
      box-shadow: 0 0 6px rgba(20, 184, 166, 0.6);
    }

    .compat-dot.yellow {
      background: var(--amber);
      box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
    }

    .why-fit-desc.collapsed {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .see-more-toggle {
      background: transparent;
      border: none;
      color: var(--accent-hover);
      font-weight: 800;
      font-size: 0.8rem;
      cursor: pointer;
      padding: 0;
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      transition: color 0.2s;
    }

    .see-more-toggle:hover {
      color: var(--accent);
    }

    /* Preferences Selector Buttons styling */
    .pref-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: var(--text-main);
      padding: 8px 16px;
      border-radius: 12px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      outline: none;
    }

    .pref-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .pref-btn.active {
      background: var(--accent) !important;
      border-color: var(--accent-hover) !important;
      color: var(--accent-text) !important;
      transform: scale(1.05);
      box-shadow: 0 6px 16px var(--accent-shadow);
    }

    /* ── Mobile header: hide tagline to free space for tabs + shuffle ── */
    @media (max-width: 480px) {
      .header {
        padding: 12px 10px;
        gap: 6px;
      }

      .brand-tagline {
        display: none;
      }

      .brand-title {
        font-size: 0.65rem;
        margin-bottom: 0;
      }

      .tab-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 2px;
      }

      .tab-btn svg {
        width: 13px;
        height: 13px;
      }

      .header-location-select {
        color: transparent;
        width: 44px;
        padding: 8px 24px 8px 12px;
        background: rgba(255, 255, 255, 0.1) url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center center;
      }
      .header-location-select option {
        color: black;
      }

      .shuffle-btn {
        padding: 7px;
        font-size: 0;
        gap: 0;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .shuffle-btn svg {
        margin: 0;
        width: 18px;
        height: 18px;
      }

      .hide-mobile {
        display: none !important;
      }

      .sticky-dog-bar {
        top: 54px;
      }
    }

    /* ── Desktop View Split-pane layout ── */
    @media (min-width: 800px) {
      .app-container {
        max-width: 980px !important;
        height: calc(100vh - 60px) !important;
        max-height: 820px !important;
        border-radius: 28px !important;
      }

      #appView .scroll-content {
        display: grid !important;
        grid-template-columns: 52% 48% !important;
        height: calc(100% - 73px) !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
      }

      #landingView .scroll-content {
        display: block !important;
        height: 100% !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
      }

      .hero-section {
        height: 100% !important;
        max-height: 100% !important;
      }

      .profile-image {
        height: 100% !important;
      }

      .skeleton-image {
        height: 100% !important;
      }

      .profile-body {
        overflow-y: auto !important;
        height: 100% !important;
        padding: 24px !important;
        padding-bottom: 110px !important;
        box-sizing: border-box !important;
        scrollbar-width: thin;
      }

      .footer-input-bar {
        left: auto !important;
        right: 24px !important;
        transform: none !important;
        width: 422px !important;
        max-width: 422px !important;
        bottom: 24px !important;
      }

      .mobile-action-bar {
        display: none !important;
      }

      .sticky-dog-bar {
        display: none !important;
      }

      /* Desktop overrides for Landing Grid */
      .landing-grid-container {
        display: grid !important;
        grid-template-columns: 52% 48% !important;
        height: 100% !important;
        overflow: hidden !important;
      }

      .landing-left-pane {
        overflow-y: auto !important;
        height: 100% !important;
        scrollbar-width: thin;
      }

      .landing-right-pane {
        height: 100% !important;
        border-left: 1px solid var(--border-soft) !important;
        background: rgba(0, 0, 0, 0.15) !important;
        padding: 32px !important;
      }

      .landing-hero {
        padding: 60px 40px !important;
        gap: 24px !important;
      }

      .landing-title {
        font-size: 2.85rem !important;
        line-height: 1.15 !important;
      }

      .landing-sub {
        font-size: 1.05rem !important;
        max-width: 440px !important;
      }

      .landing-cta-group {
        max-width: 380px !important;
        flex-direction: row !important;
        gap: 14px !important;
      }

      .landing-cta-group button {
        flex: 1 !important;
      }
    }

    /* ── Desktop View Redesign overrides (min-width: 1024px) ── */
    @media (min-width: 1024px) {
      .app-container {
        max-width: 1280px !important;
        height: calc(100vh - 40px) !important;
        max-height: 860px !important;
        border-radius: 32px !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7) !important;
      }

      /* 50/50 dual-pane grid layout for main page */
      #appView .scroll-content {
        grid-template-columns: 50% 50% !important;
        height: calc(100% - 85px) !important; /* matches larger header height */
      }

      /* Cinematic hero overlay gradients */
      .hero-overlay {
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%) !important;
        padding: 32px !important;
      }

      .dog-name {
        font-size: 3rem !important;
        font-weight: 950 !important;
        letter-spacing: -0.04em !important;
      }

      .dog-meta-header {
        gap: 6px !important;
      }

      .dog-breed {
        font-size: 0.95rem !important;
      }

      .dog-location {
        font-size: 0.88rem !important;
      }

      .hero-actions {
        gap: 12px !important;
      }

      /* Larger buttons at bottom left */
      .fav-btn {
        width: 54px !important;
        height: 54px !important;
      }
      .fav-btn svg {
        width: 24px !important;
        height: 24px !important;
      }
      .share-btn {
        width: 54px !important;
        height: 54px !important;
      }
      .share-btn svg {
        width: 22px !important;
        height: 22px !important;
      }

      /* Desktop Right column spacing */
      .profile-body {
        padding: 36px !important;
        padding-bottom: 150px !important; /* space to scroll past input bar */
      }

      /* Beautiful details sections cards layout */
      .details-box {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 24px !important;
        padding: 24px !important;
        gap: 20px !important;
      }

      .details-stats-row {
        gap: 12px !important;
      }

      .detail-chip {
        min-height: 64px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 18px !important;
        padding: 12px 10px !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
      }

      .detail-chip:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
      }

      .detail-chip .chip-val {
        font-size: 0.9rem !important;
      }

      /* Match fit badges styling */
      #prefMatchBadgeContainer {
        gap: 8px !important;
        margin-bottom: 8px !important;
      }

      .fit-badge-tag {
        font-size: 0.85rem !important;
        padding: 6px 14px !important;
      }

      /* Ideal Fit container alignment */
      .details-fit-container {
        border-radius: 14px !important;
        padding: 12px 16px !important;
        border-left-width: 4px !important;
      }

      /* biography show more buttons */
      .see-more-toggle {
        display: inline-flex !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 6px 16px !important;
        border-radius: 9999px !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        color: var(--accent-hover) !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        outline: none !important;
      }

      .see-more-toggle:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: var(--accent) !important;
        color: var(--accent) !important;
        transform: translateY(-1px) !important;
      }

      /* Non-overlapping chat input bar */
      .footer-input-bar {
        right: 36px !important;
        bottom: 36px !important;
        width: calc(50% - 72px) !important; /* aligns with 50% split pane right column */
        max-width: calc(50% - 72px) !important;
        padding: 8px !important;
        background: rgba(2, 6, 23, 0.96) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
      }

      .chat-input {
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
      }

      /* Desktop navigation Header */
      .header {
        padding: 18px 32px !important;
      }

      .brand-tagline {
        display: block !important;
        font-size: 1.1rem !important;
      }

      .tab-bar {
        gap: 6px !important;
        padding: 4px !important;
      }

      .tab-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
      }

      .shuffle-btn {
        padding: 10px 20px !important;
        font-size: 0.88rem !important;
      }

      /* MODALS OVERHAULS ON DESKTOP */
      .modal-card {
        padding: 32px !important;
        border-radius: 32px !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
      }

      /* About Modal */
      #aboutModal .modal-card {
        max-width: 680px !important;
      }

      #aboutModal .modal-content p {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
      }

      /* Preferences Wizard Modal */
      #prefModal .modal-card {
        max-width: 800px !important;
        max-height: 85vh !important;
        width: 800px !important;
        display: flex !important;
        flex-direction: column !important;
      }

      #prefModal .modal-content {
        overflow-y: auto !important;
        flex: 1 !important;
        max-height: 52vh !important;
        padding-right: 8px !important;
        margin-bottom: 20px !important;
        scrollbar-width: thin;
      }

      #prefModal .modal-footer {
        margin-top: auto !important;
        padding-top: 18px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
      }

      #prefModal .pref-wizard-step {
        display: none;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }

      #prefModal .pref-wizard-step.active {
        display: grid !important;
      }

      /* My Dogs / Recent Chats Modal */
      #savedModal .modal-card {
        max-width: 860px !important;
        max-height: 85vh !important;
        width: 860px !important;
        display: flex !important;
        flex-direction: column !important;
      }

      #savedModalContent {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        max-height: 60vh !important;
        scrollbar-width: thin;
      }

      /* Widescreen Saved Dog cards */
      #savedModalContent .saved-dog-card {
        margin-bottom: 0 !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
      }

      #savedModalContent .saved-dog-card:hover {
        background: rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(20, 184, 166, 0.3) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;
      }

      /* Recent Chats dashboard full-width rows selector targeting via :has() */
      #savedModalContent .saved-dog-card:not(:has(.modal-chat-cta)) {
        grid-column: 1 / -1 !important; /* spans full width */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 16px 20px !important;
        background: rgba(255, 255, 255, 0.015) !important;
        border-radius: 16px !important;
      }

      #savedModalContent .saved-dog-card:not(:has(.modal-chat-cta)):hover {
        background: rgba(255, 255, 255, 0.035) !important;
        border-color: rgba(20, 184, 166, 0.25) !important;
        transform: translateX(4px) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
      }
    }

    /* ────────────────────────────────────────────────────────
       NEW TELEMETRY, SKELETONS, LANDING & ACCESSIBILITY STYLES
       ──────────────────────────────────────────────────────── */

    /* Accessible outline rings on keyboard focus */
    :focus-visible {
      outline: 3px solid var(--accent) !important;
      outline-offset: 2px !important;
    }

    /* Screen Views */
    .view-screen {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      opacity: 1;
      transition: opacity 0.3s ease-in-out;
    }

    .view-screen.hidden {
      display: none !important;
      opacity: 0;
    }

    /* Premium Landing Page */
    .landing-hero {
      padding: 32px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      background: radial-gradient(circle at bottom, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    }

    .landing-logo {
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: var(--accent-hover);
      font-weight: 900;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 8px;
    }

    .landing-title {
      font-size: 2.25rem;
      font-weight: 950;
      line-height: 1.1;
      letter-spacing: -0.03em;
      background: linear-gradient(135deg, var(--cream-highlight) 30%, var(--accent) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .landing-sub {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.5;
      font-weight: 500;
      max-width: 380px;
    }

    .landing-cta-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      max-width: 280px;
      margin-top: 8px;
    }

    @keyframes ctaBreathe {
      0%, 100% {
        box-shadow: 0 6px 20px var(--accent-shadow);
        transform: scale(1);
      }
      50% {
        box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
        transform: scale(1.025);
      }
    }

    .btn-primary {
      padding: 14px 28px;
      background: var(--accent);
      color: var(--accent-text);
      border: none;
      border-radius: 9999px;
      font-weight: 800;
      font-size: 0.95rem;
      cursor: pointer;
      box-shadow: 0 6px 20px var(--accent-shadow);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      animation: ctaBreathe 3s ease-in-out infinite;
    }

    .btn-primary:hover {
      background: var(--accent-hover);
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
      animation: none;
    }

    .btn-secondary {
      padding: 12px 24px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-main);
      border: 1px solid var(--border-soft);
      border-radius: 9999px;
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
    }

    /* ── Landing page Grid and Right Pane Showcase ── */
    .landing-grid-container {
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    .landing-right-pane {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 24px;
      box-sizing: border-box;
    }

    .landing-hero-card {
      position: relative;
      width: 100%;
      max-width: 380px;
      aspect-ratio: 1;
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
      background: var(--bg-slate-800);
      transition: transform 0.3s ease;
      margin-bottom: 60px;
      cursor: pointer;
    }

    .landing-hero-card:hover {
      transform: translateY(-4px) scale(1.02);
      border-color: var(--accent);
      box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15);
    }

    .landing-hero-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 24px;
    }

    .landing-mock-bubble {
      position: absolute;
      top: 80%;
      left: 14px;
      right: 14px;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 12px 14px;
      box-sizing: border-box;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
      animation: floatBubble 3s ease-in-out infinite;
    }

    .landing-mock-bubble p {
      font-size: 0.78rem;
      line-height: 1.45;
      color: var(--text-main);
      margin: 0;
      font-weight: 500;
    }

    .bubble-heart {
      position: absolute;
      top: -12px;
      right: 16px;
      font-size: 1.2rem;
      filter: drop-shadow(0 2px 5px rgba(239, 68, 68, 0.5));
      animation: heartPulse 1.5s ease-in-out infinite;
    }

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

    @keyframes heartPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.15); }
    }

    .gradient-text-accent {
      background: linear-gradient(135deg, var(--accent) 30%, #fcd34d 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline;
    }

    /* Landing explanation grid */
    .landing-explanation {
      padding: 24px;
      border-top: 1px solid var(--border-soft);
      background: rgba(255, 255, 255, 0.01);
    }

    .explanation-title {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--text-muted);
      font-weight: 900;
      text-align: center;
      margin-bottom: 20px;
    }

    .steps-vertical {
      display: flex;
      flex-direction: column;
      gap: 18px;
      position: relative;
    }

    .steps-vertical::before {
      content: '';
      position: absolute;
      left: 32px; /* 16px left-padding of step-item + 16px half-width of badge */
      top: 32px;
      bottom: 32px;
      width: 2px;
      background: linear-gradient(to bottom, var(--teal) 0%, rgba(20, 184, 166, 0.1) 100%);
      z-index: 1;
    }

    .step-item {
      display: flex;
      gap: 16px;
      background: rgba(255, 255, 255, 0.01);
      border: 1px solid rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 20px;
      padding: 16px 20px;
      text-align: left;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      z-index: 2;
    }

    .step-item:hover {
      transform: translateX(6px);
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(20, 184, 166, 0.35);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .step-badge {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #141f32; /* solid dark slate matching background */
      border: 1.5px solid rgba(20, 184, 166, 0.4);
      color: #2dd4bf;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 0.9rem;
      flex-shrink: 0;
      position: relative;
      z-index: 3;
      box-shadow: 0 0 12px rgba(20, 184, 166, 0.2);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .step-item:hover .step-badge {
      background: var(--teal);
      color: var(--bg-slate-950);
      border-color: var(--teal);
      box-shadow: 0 0 16px rgba(20, 184, 166, 0.6);
      transform: scale(1.08);
    }

    .step-body h4 {
      font-size: 0.9rem;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .step-body p {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* Landing bottom footer disclaimers */
    .landing-footer {
      padding: 24px;
      border-top: 1px solid var(--border-soft);
      text-align: center;
    }

    .disclaimer-card {
      background: rgba(255, 255, 255, 0.01);
      border: 1.5px dashed rgba(255, 255, 255, 0.06);
      border-radius: 16px;
      padding: 12px 14px;
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.45;
      text-align: center;
    }

    /* Skeleton loaders pulse animation */
    @keyframes skeleton-pulse {

      0%,
      100% {
        opacity: 0.07;
      }

      50% {
        opacity: 0.16;
      }
    }

    .skeleton-pulse {
      background: var(--text-main);
      animation: skeleton-pulse 1.4s infinite ease-in-out;
      border-radius: 6px;
      display: inline-block;
    }

    /* Skeleton structures */
    .skeleton-image {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }

    .skeleton-badge {
      width: 90px;
      height: 20px;
      border-radius: 9999px;
    }

    .skeleton-title {
      width: 160px;
      height: 32px;
      border-radius: 6px;
    }

    .skeleton-meta {
      width: 90px;
      height: 14px;
      border-radius: 4px;
      margin-top: 6px;
    }

    .skeleton-chip {
      width: 100%;
      height: 38px;
      border-radius: 12px;
    }

    .skeleton-fit-pill {
      width: 100%;
      height: 50px;
      border-radius: 12px;
    }

    .skeleton-text {
      width: 100%;
      height: 14px;
      border-radius: 4px;
      margin-bottom: 6px;
    }

    /* Telemetry View Toggles */
    .app-container.loading-skeleton .skeleton-el {
      display: inline-block !important;
    }

    .app-container.loading-skeleton .real-el {
      display: none !important;
    }

    .app-container:not(.loading-skeleton) .skeleton-el {
      display: none !important;
    }

    /* Multi-step Preference modal styles */
    .modal-tab-indicator {
      display: flex;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-soft);
      border-radius: 9999px;
      padding: 2px;
      margin-bottom: 16px;
    }

    .modal-tab-btn {
      flex: 1;
      padding: 6px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.72rem;
      font-weight: 800;
      border-radius: 9999px;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
    }

    .modal-tab-btn.active {
      background: white;
      color: var(--bg-slate-950);
    }

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

    .pref-wizard-step {
      display: none;
      flex-direction: column;
      gap: 12px;
    }

    .pref-wizard-step.active {
      display: flex;
      animation: quizStepFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Dynamic Match Fit Badge styles */
    .fit-badge-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: 0.8rem;
      font-weight: 800;
      border: 1px solid transparent;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      margin-bottom: 8px;
    }

    .fit-badge-tag.apartment {
      background: rgba(20, 184, 166, 0.15);
      color: var(--teal);
      border-color: rgba(20, 184, 166, 0.3);
    }

    .fit-badge-tag.adventure {
      background: rgba(20, 184, 166, 0.15);
      color: var(--teal);
      border-color: rgba(20, 184, 166, 0.3);
    }

    .fit-badge-tag.family {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border-color: rgba(251, 191, 36, 0.3);
    }

    .fit-badge-tag.cats {
      background: rgba(236, 72, 153, 0.15);
      color: #f472b6;
      border-color: rgba(244, 114, 182, 0.3);
    }

    .fit-badge-tag.cuddle {
      background: rgba(6, 182, 212, 0.15);
      color: #22d3ee;
      border-color: rgba(34, 211, 238, 0.3);
    }

    /* Empty state card */
    .empty-state-card {
      padding: 36px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      height: 100%;
      justify-content: center;
    }

    .empty-state-icon {
      font-size: 3rem;
      animation: skeleton-pulse 2s infinite ease-in-out;
    }

    .empty-state-title {
      font-size: 1.35rem;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .empty-state-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
      max-width: 320px;
    }

    /* Chat Intro welcome bubble inside chat */
    .chat-intro-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-soft);
      border-radius: 20px;
      padding: 16px;
      text-align: left;
      margin-bottom: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .chat-intro-title {
      font-size: 0.9rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--accent-hover);
      margin-bottom: 6px;
    }

    .chat-intro-text {
      font-size: 0.8rem;
      color: #cbd5e1;
      line-height: 1.45;
      margin-bottom: 8px;
    }

    .chat-intro-disclaimer {
      font-size: 0.68rem;
      color: var(--text-muted);
      line-height: 1.4;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 8px;
      font-style: italic;
    }

    /* Privacy text near email inputs */
    .email-privacy-note {
      font-size: 0.68rem;
      color: var(--text-muted);
      line-height: 1.3;
      margin-top: 6px;
      font-style: italic;
      text-align: center;
    }

    /* Mobile Sticky thumb bar controls overlay */
    .mobile-action-bar {
      display: flex;
      position: absolute;
      bottom: calc(74px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset, 0px));
      /* sits right above the text input bar */
      left: 12px;
      right: 12px;
      z-index: 29;
      background: rgba(2, 6, 23, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 9999px;
      padding: 4px;
      justify-content: space-between;
      align-items: center;
      gap: 4px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    }

    .mobile-action-btn {
      flex: 1;
      padding: 8px 6px;
      border: none;
      background: transparent;
      color: var(--text-main);
      font-weight: 800;
      font-size: 0.72rem;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      border-radius: 9999px;
      transition: background 0.2s;
      text-decoration: none;
      white-space: nowrap;
    }

    .mobile-action-btn:hover {
      background: rgba(255, 255, 255, 0.05);
    }

    .mobile-action-btn.primary {
      background: var(--accent);
      color: var(--accent-text);
      box-shadow: 0 4px 10px var(--accent-shadow);
    }

    .mobile-action-btn.primary:hover {
      background: var(--accent-hover);
    }

    .mobile-action-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Orientation rotate overlay screen */
    .orientation-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: radial-gradient(circle at center, #111827 0%, #030712 100%);
      color: white;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 24px;
      box-sizing: border-box;
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
    }

    .orientation-card {
      background: rgba(24, 34, 53, 0.65);
      border: 1.5px solid var(--border-soft);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      border-radius: 28px;
      padding: 32px 24px;
      max-width: 380px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      position: relative;
      overflow: hidden;
    }

    .orientation-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
      pointer-events: none;
    }

    .rotate-dog-img-container {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 3px solid var(--accent);
      box-shadow: 0 8px 24px var(--accent-shadow), 0 0 0 6px rgba(245, 158, 11, 0.1);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-slate-900);
      position: relative;
      transition: all 0.3s ease;
    }

    .rotate-dog-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .orientation-title {
      font-size: 1.25rem;
      font-weight: 900;
      letter-spacing: -0.01em;
      color: var(--accent-hover);
      line-height: 1.35;
      margin: 0;
    }

    .orientation-text {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin: 0;
    }

    .rotate-device-hint {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.2);
      padding: 6px 14px;
      border-radius: 9999px;
      color: var(--accent-hover);
      font-size: 0.75rem;
      font-weight: 800;
      margin-top: 4px;
      animation: hintPulse 2s ease-in-out infinite;
    }

    .rotate-phone-svg {
      width: 16px;
      height: 16px;
      animation: rotatePhone 2.5s ease-in-out infinite;
    }

    @keyframes rotatePhone {
      0% {
        transform: rotate(0deg);
      }
      35% {
        transform: rotate(-90deg);
      }
      65% {
        transform: rotate(-90deg);
      }
      100% {
        transform: rotate(0deg);
      }
    }

    @keyframes hintPulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.15);
      }
      50% {
        transform: scale(1.03);
        box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.25);
      }
    }

    /* Trigger only on mobile landscape mode with short heights */
    @media (max-height: 480px) and (orientation: landscape) {
      .orientation-overlay {
        display: flex;
      }
      body {
        overflow: hidden !important;
      }
    }
    
    /* Full-Screen Chat UX (Mobile Only) */
    @media (max-width: 800px) {
      body.chat-engaged .header {
        display: none !important;
      }
      body.chat-engaged .sticky-dog-bar {
        transform: translateY(0) !important;
        background: var(--bg-card);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: fixed;
        top: 0;
        z-index: 1000;
        box-shadow: none;
      }
      body.chat-engaged .sticky-dog-bar .sticky-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
      }
      body.chat-engaged .sticky-dog-bar #stickyChatBtn {
        display: none !important;
      }
      body.chat-engaged .sticky-dog-bar #stickyShelterBtn,
      body.chat-engaged .sticky-dog-bar #stickyNextBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        padding: 6px 12px;
        font-size: 0.8rem;
        font-weight: 800;
      }
      body.chat-engaged .sticky-dog-bar #stickyInfoBtn {
        display: flex !important;
      }
      body.chat-engaged .hero-section,
      body.chat-engaged .details-box,
      body.chat-engaged .cta-grid,
      body.chat-engaged .data-freshness-notice,
      body.chat-engaged .chat-section-header,
      body.chat-engaged #dogUnavailableCard,
      body.chat-engaged #emptyStateCard {
        display: none !important;
      }
      body.chat-engaged .scroll-content {
        padding-top: 60px !important;
        padding-bottom: 0px !important;
      }
      body.chat-engaged .chat-section {
        display: block !important;
        padding-bottom: 120px !important;
      }
      body.chat-engaged .chat-history {
        display: block;
      }
      body.chat-engaged .prompt-shortcuts-area {
        margin-top: 16px;
      }
      body.keyboard-active .prompt-shortcuts-area {
        display: none !important;
      }
    }
