

    .account-layout {

      display: grid;

      grid-template-columns: 180px minmax(0, 1fr);

      gap: 1.5rem;

      align-items: start;

    }



    .account-tabs {

      display: flex;

      flex-direction: column;

      gap: 0.55rem;

      position: sticky;

      top: 92px;

    }



    .account-tab {

      text-decoration: none;

      color: var(--text);

      border: 1px solid var(--border-soft);

      border-radius: 0.85rem;

      padding: 0.6rem 0.85rem;

      font-weight: 600;

      background: #ffffff;

    }



    .account-tab.is-active {

      background: var(--primary);

      border-color: var(--primary);

      color: #ffffff;

    }

    .account-tab.is-locked {
      opacity: 0.5;
      color: #64748b;
      background: #f8fafc;
      cursor: not-allowed;
    }

    .account-completion-banner {
      margin-bottom: 1rem;
      padding: 0.95rem 1rem;
      border-radius: 1rem;
      border: 1px solid rgba(14, 165, 233, 0.18);
      background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 48%),
        linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(248, 250, 252, 0.98));
      color: #0f172a;
      box-shadow: 0 14px 34px rgba(14, 165, 233, 0.08);
      display: grid;
      gap: 0.35rem;
    }

    .account-completion-banner strong {
      font-size: 0.98rem;
    }

    .account-completion-banner small {
      color: #475569;
      line-height: 1.5;
    }



    .account-panel {

      display: none;

    }



    .account-panel.is-active {

      display: block;

    }

    @media (max-width: 900px) {
      body.has-mobile-tabs .account-layout {
        grid-template-columns: 1fr;
      }

      body.has-mobile-tabs .account-tabs {
        display: none;
      }
    }



    .buddy-message-list {

      display: flex;

      flex-direction: column;

      gap: 0.55rem;

    }



    .buddy-message {

      padding: 0.65rem 0.85rem;

      border-radius: 1rem;

      border: 1px solid rgba(148, 163, 184, 0.2);

      background: #ffffff;

      max-width: min(420px, 78%);

      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);

      align-self: flex-start;

    }



    .buddy-message.is-me {

      background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));

      border-color: rgba(14, 165, 233, 0.25);

      align-self: flex-end;

    }



    .buddy-message.is-system {

      background: #f1f5f9;

      border-style: dashed;

      color: var(--text-muted);

      box-shadow: none;

      align-self: center;

      max-width: 90%;

      text-align: center;

    }



    .buddy-message-meta {

      font-size: 0.7rem;

      color: var(--text-muted);

      margin-bottom: 0.25rem;

    }

    .buddy-chat-actions {

      border: 1px solid var(--border-soft);

      border-radius: 0.85rem;

      background: #ffffff;

      box-shadow: var(--shadow-soft);

      padding: 0.75rem 0.85rem;

      margin-bottom: 0.75rem;

    }

    .buddy-chat-consent {

      font-size: 0.85rem;

      color: var(--text-muted);

      margin-bottom: 0.5rem;

    }

    .buddy-chat-action-buttons {

      display: flex;

      flex-wrap: wrap;

      gap: 0.65rem;

      align-items: center;

    }

    .buddy-action-link {

      background: none;

      border: none;

      padding: 0;

      color: var(--brand, #0ea5e9);

      text-decoration: underline;

      cursor: pointer;

      font-weight: 600;

      font-size: 0.85rem;

    }

    .buddy-action-link.is-danger {

      color: #b91c1c;

    }



    .buddy-message-compose {

      display: flex;

      flex-direction: column;

      gap: 0.5rem;

      margin-top: 0.8rem;

    }



    .buddy-thread-card {

      display: flex;

      flex-direction: column;

      gap: 0.5rem;

      cursor: pointer;

    }



    .buddy-thread-summary {

      display: flex;

      justify-content: space-between;

      gap: 0.75rem;

      align-items: center;

    }



    .buddy-thread-title {

      display: flex;

      align-items: center;

      gap: 0.5rem;

      flex-wrap: wrap;

    }



    .buddy-thread-meta {

      font-size: 0.78rem;

      color: var(--text-muted);

    }



    .buddy-thread-snippet {

      font-size: 0.85rem;

      color: var(--text-main);

      opacity: 0.85;

      margin-top: 0.2rem;

    }



    .buddy-unread-dot {

      width: 8px;

      height: 8px;

      border-radius: 999px;

      background: #22c55e;

      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);

      display: inline-block;

    }



    

    .messages-section-label {

      display: inline-flex;

      align-items: center;

      justify-content: center;

      width: 1.5rem;

      height: 1.5rem;

      border-radius: 999px;

      background: #eef2ff;

      color: #1d4ed8;

      font-size: 0.8rem;

      font-weight: 700;

      margin-right: 0.45rem;

    }

    .messages-section-summary {

      display: inline-flex;

      align-items: center;

      gap: 0.3rem;

    }

    .messages-toolbar {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 0.55rem;
      margin-bottom: 0.85rem;
    }

    .messages-toolbar .form-label {
      margin: 0;
      font-size: 0.82rem;
      color: #64748b;
    }

    .messages-view-select {
      width: auto;
      min-width: 150px;
      padding-right: 2rem;
    }

    .messages-recent-card {
      position: relative;
    }

    .messages-recent-type {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      margin-bottom: 0.2rem;
      color: #64748b;
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .messages-recent-time {
      margin-left: auto;
      white-space: nowrap;
      color: #64748b;
      font-size: 0.76rem;
      font-weight: 500;
    }

    .assist-message-group {
      display: grid;
      gap: 0.7rem;
    }

    .assist-message-category {
      font-weight: 700;
      color: var(--text);
      margin-top: 0.35rem;
    }

    .assist-message-card {
      border: 1px solid var(--border-soft);
      border-radius: 0.9rem;
      background: #ffffff;
      padding: 0.75rem 0.85rem;
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 0.45rem;
    }

    .assist-message-meta {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .assist-message-badge {
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      background: #e0f2fe;
      color: #0369a1;
      font-weight: 700;
      font-size: 0.7rem;
      letter-spacing: 0.02em;
    }

    .assist-message-title {
      font-weight: 700;
      color: var(--text);
    }

    .assist-message-question {
      color: var(--text-muted);
      font-style: italic;
    }

    .assist-message-response {
      color: var(--text);
    }

    .assist-message-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .assist-feedback-row {
      display: flex;
      gap: 0.7rem;
      align-items: center;
      justify-content: flex-end;
      margin-top: 0.55rem;
    }

    .assist-feedback-emoji {
      border: none;
      background: transparent;
      padding: 0.15rem 0.2rem;
      line-height: 1;
      cursor: pointer;
      opacity: 0.62;
      transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .assist-feedback-emoji svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: currentColor;
    }

    .assist-feedback-emoji:hover {
      opacity: 0.9;
      transform: scale(1.08);
    }

    .assist-feedback-emoji.is-selected {
      opacity: 1;
      transform: scale(1.06);
    }

    .assist-feedback-emoji[data-assist-feedback="up"] {
      color: #15803d;
    }

    .assist-feedback-emoji[data-assist-feedback="down"] {
      color: #d97706;
    }

    .assist-feedback-emoji[data-assist-feedback="up"].is-selected {
      filter: drop-shadow(0 0 8px rgba(22, 163, 74, 0.16));
    }

    .assist-feedback-emoji[data-assist-feedback="down"].is-selected {
      filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.16));
    }

    .assist-rich-text {
      display: grid;
      gap: 0.45rem;
    }

    .assist-rich-line {
      padding: 0.12rem 0;
      border-radius: 0;
      font-size: 0.98rem;
      line-height: 1.55;
      text-align: left;
      background: transparent;
      border: none;
    }

    .assist-rich-line.is-title {
      color: #475569;
      font-weight: 700;
    }

    .assist-rich-line.is-window {
      color: #64748b;
    }

    .assist-rich-line.is-trend {
      color: #0f766e;
      font-weight: 600;
    }

    .assist-rich-line.is-metric {
      color: #6d28d9;
    }

    .assist-rich-line.is-warning {
      color: #c2410c;
    }

    .assist-rich-line.is-danger {
      color: #b91c1c;
      font-weight: 600;
    }

    .assist-rich-line.is-positive {
      color: #166534;
    }

    .assist-rich-line.is-help {
      color: #7c3f00;
    }

    .assist-status-word {
      font-weight: 700;
    }

    .assist-status-word.is-cancelled {
      color: #b91c1c;
    }

    .assist-status-word.is-diverted {
      color: #9f1239;
    }

    .assist-status-word.is-landed {
      color: #15803d;
    }

    .assist-status-word.is-scheduled {
      color: #d97706;
    }

    .assist-status-word.is-delayed {
      color: #0f766e;
    }

    .assist-status-word.is-unknown {
      color: #64748b;
    }

    .assist-compact-action {
      padding: 0.34rem 0.72rem;
      min-height: 30px;
      font-size: 0.82rem;
      border-radius: 999px;
    }

    .assist-compact-action.is-insight {
      border-color: rgba(14, 165, 233, 0.3);
      color: #0369a1;
      background: rgba(14, 165, 233, 0.08);
    }

    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.9rem;
      color: var(--text);
    }

    .assist-flow {
      display: grid;
      gap: 0.8rem;
    }

    .assist-flow-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.6rem;
    }

    .assist-breadcrumb {
      font-weight: 600;
      color: var(--text);
    }

    .assist-list {
      display: grid;
      gap: 0.6rem;
    }

    .assist-list-item {
      border: 1px solid var(--border-soft);
      border-radius: 0.8rem;
      padding: 0.75rem 0.85rem;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.6rem;
      cursor: pointer;
    }

    .assist-list-item:hover {
      border-color: rgba(14, 165, 233, 0.4);
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    }

    .assist-list-meta {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .assist-list-title {
      font-weight: 600;
      color: var(--text);
    }

    .assist-tag {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .assist-flight-details {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.6rem;
      margin-top: 0.4rem;
    }

    .assist-status-block {
      display: grid;
      gap: 0.7rem;
      margin-bottom: 0.9rem;
    }

    .assist-status-card {
      border: 1px solid var(--border-soft);
      border-radius: 0.9rem;
      background: #f8fafc;
      padding: 0.85rem 0.95rem;
      display: grid;
      gap: 0.45rem;
    }

    .assist-status-line {
      font-weight: 600;
      color: var(--text);
    }

    .assist-status-meta {
      color: var(--text-muted);
      font-size: 0.85rem;
    }
.buddy-chat-modal {

      position: fixed;

      inset: 0;

      background: rgba(15, 23, 42, 0.45);

      z-index: 120;

      display: none;

      align-items: center;

      justify-content: center;

      padding: 1rem;

    }



    .buddy-chat-modal.is-open {

      display: flex;

    }



    .buddy-chat-card {

      width: min(760px, 100%);

      height: min(92vh, 820px);

      background: #ffffff;

      border-radius: 1.1rem;

      border: 1px solid var(--border-soft);

      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);

      display: flex;

      flex-direction: column;

      overflow: hidden;

    }



    .buddy-chat-head {

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 1rem;

      padding: 0.85rem 1rem;

      border-bottom: 1px solid var(--border-soft);

      background: #f8fafc;

    }



    .buddy-chat-title {

      font-weight: 700;

      font-size: 1rem;

    }



    .buddy-chat-subtitle {

      font-size: 0.78rem;

      color: var(--text-muted);

      margin-top: 0.2rem;

    }



    .buddy-chat-menu {

      position: relative;

    }



    .buddy-chat-menu-btn {

      width: 32px;

      height: 32px;

      padding: 0;

      border-radius: 999px;

      font-size: 1.1rem;

      line-height: 1;

    }



    .buddy-chat-menu-panel {

      position: absolute;

      right: 0;

      top: calc(100% + 0.4rem);

      background: #ffffff;

      border: 1px solid var(--border-soft);

      border-radius: 0.75rem;

      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);

      padding: 0.35rem;

      display: none;

      min-width: 140px;

      z-index: 5;

    }



    .buddy-chat-menu-panel.is-open {

      display: grid;

      gap: 0.25rem;

    }



    .buddy-chat-menu-panel button {

      border: none;

      background: transparent;

      padding: 0.45rem 0.6rem;

      text-align: left;

      border-radius: 0.55rem;

      cursor: pointer;

      font-weight: 600;

      color: var(--text-main);

    }



    .buddy-chat-menu-panel button:hover {

      background: rgba(14, 165, 233, 0.12);

    }



    .buddy-chat-menu-panel button.is-danger {

      color: #b91c1c;

    }



    .buddy-chat-body {

      flex: 1;

      padding: 1rem;

      overflow-y: auto;

      background: #f8fafc;

      display: flex;

      flex-direction: column;

      gap: 0.6rem;

    }



    .buddy-chat-compose {

      border-top: 1px solid var(--border-soft);

      padding: 0.85rem 1rem 1rem;

      background: #ffffff;

    }



    .buddy-chat-compose .form-actions {

      justify-content: flex-end;

    }



    .buddy-chat-input-row {

      display: flex;

      gap: 0.5rem;

      align-items: stretch;

    }



    .buddy-chat-tools {

      display: flex;

      flex-direction: column;

      gap: 0.45rem;

      align-items: center;

    }



    .buddy-chat-tool-btn {

      width: 38px;

      height: 38px;

      padding: 0;

      border-radius: 0.85rem;

      font-size: 1rem;

      line-height: 1;

      justify-content: center;

    }

    #supportIssueList {

      display: flex;

      flex-direction: column;

      gap: 0.4rem;

    }



    #supportIssueList .option-item {

      display: flex;

      align-items: center;

      gap: 0.6rem;

      padding: 0.65rem 0.75rem;

      border: 1px solid var(--border-soft);

      border-radius: 0.75rem;

      background: #ffffff;

    }



    #supportIssueList .option-item:nth-child(even) {

      background: #f8fafc;

    }



    #supportIssueList .option-item input[type="radio"] {

      margin: 0;

    }



    .buddy-chat-emoji-panel {

      display: none;

      gap: 0.35rem;

      flex-wrap: wrap;

      padding: 0.45rem;

      border: 1px solid var(--border-soft);

      border-radius: 0.75rem;

      background: #f8fafc;

      margin-bottom: 0.6rem;

      max-height: 140px;

      overflow-y: auto;

    }



    .buddy-chat-emoji-panel.is-open {

      display: flex;

    }



    .buddy-chat-emoji-panel button {

      border: none;

      background: #ffffff;

      border-radius: 0.55rem;

      padding: 0.3rem 0.4rem;

      cursor: pointer;

      font-size: 1rem;

    }



    .buddy-chat-preview {

      display: flex;

      align-items: center;

      gap: 0.5rem;

      margin-bottom: 0.6rem;

    }



    .buddy-chat-preview img {

      width: 96px;

      height: 96px;

      border-radius: 0.75rem;

      border: 1px solid var(--border-soft);

      object-fit: cover;

    }



    .buddy-message-media {

      display: block;

      margin-top: 0.4rem;

      max-width: 180px;

      max-height: 140px;

      border-radius: 0.8rem;

      border: 1px solid var(--border-soft);

      object-fit: cover;

      cursor: pointer;

    }



    .buddy-media-modal {

      position: fixed;

      inset: 0;

      background: rgba(15, 23, 42, 0.45);

      display: none;

      align-items: center;

      justify-content: center;

      padding: 1rem;

      z-index: 130;

    }



    .buddy-media-modal.is-open {

      display: flex;

    }



    .buddy-media-card {

      background: #ffffff;

      border-radius: 1rem;

      padding: 0.6rem;

      border: 1px solid var(--border-soft);

      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);

      max-width: min(70vw, 520px);

      max-height: min(70vh, 520px);

      display: flex;

      flex-direction: column;

      gap: 0.5rem;

    }



    .buddy-media-card img {

      width: 100%;

      height: auto;

      max-height: 60vh;

      object-fit: contain;

      border-radius: 0.8rem;

    }



    .buddy-chat-compose textarea.form-input {

      width: 100%;

      min-height: 120px;

      box-sizing: border-box;

    }



    .buddy-consent-text {

      font-size: 0.85rem;

      color: var(--text-muted);

      margin-top: 0.35rem;

    }

    .buddy-consent-text .doc-font-sans {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .buddy-consent-text .doc-font-serif {
      font-family: Georgia, "Times New Roman", Times, serif;
    }

    .buddy-consent-text .doc-font-formal {
      font-family: Cambria, Georgia, "Times New Roman", serif;
    }

    .payment-badge {

      display: inline-flex;

      align-items: center;

      gap: 0.35rem;

      margin-left: 0.5rem;

      padding: 0.15rem 0.6rem;

      border-radius: 999px;

      border: 1px solid #67e8f9;

      background: #ecfeff;

      color: #0e7490;

      font-size: 0.7rem;

      font-weight: 600;

    }



    .buddy-qr-modal {

      position: fixed;

      inset: 0;

      background: rgba(15, 23, 42, 0.55);

      z-index: 140;

      display: none;

      align-items: center;

      justify-content: center;

      padding: 1rem;

    }



    .buddy-qr-modal.is-open {

      display: flex;

    }



    .buddy-qr-card {

      width: min(560px, 100%);

      height: min(92vh, 760px);

      background: #ffffff;

      border-radius: 1.1rem;

      border: 1px solid var(--border-soft);

      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);

      display: flex;

      flex-direction: column;

      overflow: hidden;

    }



    .buddy-qr-head {

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 1rem;

      padding: 0.85rem 1rem;

      border-bottom: 1px solid var(--border-soft);

      background: #f8fafc;

    }



    .buddy-qr-title {

      font-weight: 700;

      font-size: 1rem;

    }



    .buddy-qr-subtitle {

      font-size: 0.78rem;

      color: var(--text-muted);

      margin-top: 0.2rem;

    }



    .buddy-qr-body {

      flex: 1;

      display: flex;

      flex-direction: column;

      align-items: center;

      justify-content: center;

      gap: 0.75rem;

      padding: 1rem;

      text-align: center;

    }



    .buddy-qr-image canvas {

      width: min(360px, 78vw);

      height: min(360px, 78vw);

      max-width: 360px;

      max-height: 360px;

      border-radius: 1rem;

      border: 1px solid var(--border-soft);

      background: #ffffff;

      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);

    }



    .buddy-qr-image canvas.is-empty {

      display: none;

    }



    .buddy-qr-actions {

      display: flex;

      gap: 0.5rem;

      flex-wrap: wrap;

      justify-content: center;

    }



    .buddy-qr-meta {

      font-size: 0.82rem;

      color: var(--text-muted);

    }



    .buddy-qr-code-wrap {

      display: grid;

      gap: 0.5rem;

      justify-items: center;

      margin-top: 0.25rem;

    }



    .buddy-qr-code-row {

      display: flex;

      flex-wrap: wrap;

      gap: 0.5rem;

      align-items: center;

      justify-content: center;

    }



    .buddy-qr-code {

      font-size: 1.2rem;

      font-weight: 700;

      letter-spacing: 0.35rem;

      padding: 0.35rem 0.8rem;

      border-radius: 0.75rem;

      background: #f1f5f9;

      border: 1px dashed #94a3b8;

      color: #0f172a;

      min-width: 150px;

      text-align: center;

    }



    .buddy-qr-code-hint {

      font-size: 0.78rem;

      color: var(--text-muted);

    }



    .buddy-qr-manual {

      display: grid;

      gap: 0.5rem;

    }



    .buddy-qr-manual-row {

      display: flex;

      gap: 0.5rem;

      flex-wrap: wrap;

      align-items: center;

      justify-content: center;

    }



    .buddy-qr-manual-row input {

      width: min(180px, 60vw);

      text-align: center;

      letter-spacing: 0.25rem;

      font-weight: 600;

    }



    .buddy-qr-scan-body {

      flex: 1;

      position: relative;

      background: #0f172a;

      padding: 1rem;

      display: flex;

      align-items: center;

      justify-content: center;

    }



    .buddy-qr-video {

      width: 100%;

      height: 100%;

      border-radius: 1rem;

      object-fit: cover;

      background: #0f172a;

    }



    .buddy-qr-scan-frame {

      position: absolute;

      width: min(70%, 280px);

      height: min(70%, 280px);

      border: 2px dashed rgba(255, 255, 255, 0.85);

      border-radius: 1rem;

      box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.35) inset;

      pointer-events: none;

    }



    .buddy-qr-scan-line {

      position: absolute;

      width: min(70%, 280px);

      height: 2px;

      background: linear-gradient(90deg, transparent, #38bdf8, transparent);

      top: 50%;

      left: 50%;

      transform: translate(-50%, -50%);

      opacity: 0.9;

      animation: buddy-qr-scan-line 2.2s ease-in-out infinite;

      pointer-events: none;

    }

    .account-crop-modal {
      z-index: 145;
    }

    .account-crop-card {
      width: min(620px, 100%);
      height: auto;
      max-height: min(92vh, 840px);
    }

    .account-crop-body {
      display: grid;
      gap: 1rem;
      padding: 1rem;
      overflow: auto;
    }

    .account-crop-stage {
      display: grid;
      justify-items: center;
      gap: 0.8rem;
    }

    .account-crop-viewport {
      position: relative;
      width: min(100%, 320px);
      aspect-ratio: 4 / 5;
      border-radius: 1.2rem;
      overflow: hidden;
      background: #0f172a;
      box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
      touch-action: none;
      cursor: grab;
    }

    .account-crop-viewport.is-dragging {
      cursor: grabbing;
    }

    .account-crop-image {
      position: absolute;
      left: 50%;
      top: 50%;
      user-select: none;
      -webkit-user-drag: none;
      transform-origin: center center;
      pointer-events: none;
    }

    .account-crop-frame {
      position: absolute;
      inset: 0;
      border: 2px solid rgba(255, 255, 255, 0.92);
      border-radius: 1.2rem;
      box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.36) inset;
      pointer-events: none;
    }

    .account-crop-controls {
      display: grid;
      gap: 0.8rem;
    }

    .account-crop-presets {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
    }

    .account-crop-preset {
      border: 1px solid var(--border-soft);
      background: #ffffff;
      color: var(--text);
      border-radius: 999px;
      padding: 0.45rem 0.8rem;
      font: inherit;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .account-crop-preset:hover {
      transform: translateY(-1px);
      border-color: rgba(14, 165, 233, 0.28);
      box-shadow: 0 12px 24px rgba(14, 165, 233, 0.08);
    }

    .account-crop-preset.is-active {
      border-color: rgba(14, 165, 233, 0.34);
      background: rgba(14, 165, 233, 0.08);
      color: #0369a1;
      box-shadow: 0 12px 24px rgba(14, 165, 233, 0.1);
    }

    .account-crop-slider-row {
      display: grid;
      gap: 0.35rem;
    }

    .account-crop-slider-row label {
      font-size: 0.84rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    .account-crop-slider-row input[type="range"] {
      width: 100%;
    }

    .account-crop-hint {
      text-align: center;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .account-inline-grid {
      display: grid;
      grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
      gap: 0.85rem;
      align-items: end;
    }

    .account-avatar-rail {
      display: flex;
      gap: 0.7rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0.1rem 0.05rem 0.2rem;
      scrollbar-width: none;
      -ms-overflow-style: none;
      cursor: grab;
      touch-action: pan-x;
    }

    .account-avatar-rail::-webkit-scrollbar {
      display: none;
    }

    .account-avatar-rail.is-dragging {
      cursor: grabbing;
    }

    .account-avatar-option {
      display: block;
      cursor: pointer;
      flex: 0 0 108px;
    }

    .account-avatar-card {
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 1rem;
      background: #fff;
      padding: 0.72rem 0.55rem;
      display: grid;
      justify-items: center;
      gap: 0.38rem;
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
    }

    .account-avatar-option:hover .account-avatar-card {
      transform: translateY(-1px);
      box-shadow: 0 16px 30px rgba(14, 165, 233, 0.08);
    }

    .account-avatar-card.is-active {
      box-shadow: 0 16px 30px rgba(14, 165, 233, 0.12);
      border-color: rgba(14, 165, 233, 0.28);
      background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
    }

    .account-avatar-label {
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 700;
      text-align: center;
    }

    .account-photo-actions {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      align-items: flex-start;
    }

    .account-photo-action {
      border: 0;
      background: transparent;
      padding: 0;
      display: grid;
      justify-items: center;
      gap: 0.45rem;
      color: var(--text);
      font: inherit;
      cursor: pointer;
      min-width: 76px;
    }

    .account-photo-action[hidden] {
      display: none;
    }

    .account-photo-action-circle {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.22);
      background: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
    }

    .account-photo-action:hover .account-photo-action-circle {
      transform: translateY(-1px);
      box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
      border-color: rgba(14, 165, 233, 0.25);
    }

    .account-photo-action--camera .account-photo-action-circle,
    .account-photo-action--gallery .account-photo-action-circle {
      background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.96));
    }

    .account-photo-action--remove .account-photo-action-circle {
      color: #b91c1c;
      background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.98));
      border-color: rgba(248, 113, 113, 0.2);
    }

    .account-photo-action svg {
      width: 22px;
      height: 22px;
      fill: currentColor;
    }

    .account-photo-action-label {
      font-size: 0.77rem;
      font-weight: 700;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.2;
    }

    @media (max-width: 640px) {
      .account-inline-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
      }

      .account-photo-actions {
        justify-content: space-between;
      }

      .account-photo-action {
        min-width: 68px;
      }
    }



    @keyframes buddy-qr-scan-line {

      0% {

        transform: translate(-50%, -45%) scaleX(0.6);

        opacity: 0.4;

      }

      50% {

        transform: translate(-50%, 0%) scaleX(1);

        opacity: 1;

      }

      100% {

        transform: translate(-50%, 45%) scaleX(0.6);

        opacity: 0.4;

      }

    }



    .buddy-qr-scan-footer {

      padding: 0.75rem 1rem;

      border-top: 1px solid var(--border-soft);

      background: #f8fafc;

      text-align: center;

    }



    .buddy-confetti {

      position: fixed;

      inset: 0;

      pointer-events: none;

      z-index: 200;

      overflow: hidden;

    }



    .buddy-confetti-piece {

      position: absolute;

      width: 8px;

      height: 12px;

      opacity: 0;

      animation: buddy-confetti-fall 1.8s ease-out forwards;

    }



    @keyframes buddy-confetti-fall {

      0% {

        transform: translateY(-10vh) rotate(0deg);

        opacity: 1;

      }

      100% {

        transform: translateY(100vh) rotate(360deg);

        opacity: 0;

      }

    }



    @media (max-width: 900px) {

      .account-layout {

        display: block;

      }



      .account-tabs {

        display: none;

      }



      .buddy-chat-card {

        width: 100%;

        height: 100%;

        border-radius: 0;

      }



      .buddy-message {

        max-width: 88%;

      }



      .buddy-chat-compose textarea.form-input {

        min-height: 140px;

      }



      .buddy-chat-preview img {

        width: 84px;

        height: 84px;

      }



      .buddy-message-media {

        max-width: 70vw;

        max-height: 120px;

      }



      .buddy-chat-tool-btn {

        width: 34px;

        height: 34px;

        border-radius: 0.75rem;

      }



      .buddy-qr-card {

        width: 100%;

        height: 100%;

        border-radius: 0;

      }

    }



/* ============================================================
   Ride Track Overlay — full-screen map + bottom sheet
   ============================================================ */
.ride-track-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
}
.ride-track-overlay.is-open {
  display: flex;
}

/* Map fills entire overlay */
.ride-track-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Top bar — floats over map */
.ride-track-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 2rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.52) 0%, transparent 100%);
}

.ride-track-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
  transition: background 0.15s;
}
.ride-track-back-btn:hover {
  background: #fff;
}

.ride-track-topbar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.55);
}

/* Bottom sheet */
.ride-track-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg-elevated, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.5rem 1.5rem 2rem;
  box-shadow: 0 -6px 36px rgba(15, 23, 42, 0.13);
}

/* Pull handle */
.ride-track-sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border-soft, #e2e8f0);
  border-radius: 999px;
  margin: 0.6rem auto 1rem;
}

/* ETA chip */
.ride-track-eta-chip {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

/* Status label */
.ride-track-status {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.85rem;
}

/* Progress stepper */
.ride-track-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.78rem;
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.ride-track-stepper .track-step {
  color: var(--border-soft, #e2e8f0);
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.3s, font-weight 0.25s;
}
.ride-track-stepper .track-step.is-active {
  color: var(--primary, #0ea5e9);
  font-weight: 700;
}
.ride-track-stepper .track-step.is-done {
  color: var(--primary-deep, #0369a1);
  font-weight: 500;
}
.ride-track-stepper .track-sep {
  color: var(--border-soft, #e2e8f0);
  padding: 0 0.3rem;
}

/* Detail / timestamp line */
.ride-track-detail {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  min-height: 1.1rem;
}

#bookingTrackBanner {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  line-height: 1.4;
}
#bookingTrackBanner.banner-arrived {
  background: #fef9c3;
  color: #713f12;
}
#bookingTrackBanner.banner-completed {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 480px) {
  .ride-track-sheet {
    padding: 0.5rem 1.25rem 1.5rem;
  }
  .ride-track-eta-chip {
    font-size: 1.7rem;
  }
}

/* ---- Driver + vehicle card ---- */
.ride-track-driver-card {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.ride-track-driver-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ride-track-driver-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
}
.ride-track-driver-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.3;
}
.ride-track-vehicle-line {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
}

/* OTP block — prominent at arrived state */
.ride-track-otp-block {
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.ride-track-otp-label {
  font-size: 0.78rem;
  color: #92400e;
  text-align: center;
  line-height: 1.4;
}
.ride-track-otp-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
