/* ==========================================================================
   FriendsBook — Components Styles
   ========================================================================== */

/* Material Symbols Outlined Key Setup */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* --------------------------------------------------------------------------
   Platform Icons via CDN URLs (.icon-url)
   -------------------------------------------------------------------------- */
.icon-url {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-url-fb {
  filter: invert(36%) sepia(85%) saturate(1915%) hue-rotate(205deg) brightness(96%) contrast(97%);
}
.icon-url-wa {
  filter: invert(61%) sepia(57%) saturate(1335%) hue-rotate(95deg) brightness(96%) contrast(89%);
}
.icon-url-ig {
  filter: invert(47%) sepia(88%) saturate(1478%) hue-rotate(300deg) brightness(95%) contrast(95%);
}
.icon-url-x {
  filter: invert(100%);
}
.icon-url-call {
  filter: invert(74%) sepia(61%) saturate(1067%) hue-rotate(167deg) brightness(99%) contrast(98%);
}

/* --------------------------------------------------------------------------
   Personal Accounts Grid & Cards (Masonry Columns - No Empty Vertical Gaps)
   -------------------------------------------------------------------------- */
.accounts-grid {
  display: block;
  columns: 260px;
  column-gap: 1.15rem;
  margin-top: 0.75rem;
  width: 100%;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--backdrop-blur);
  cursor: pointer;
  width: 100%;
  height: auto;
  margin-bottom: 1.15rem; /* Snug gap to card below in masonry */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.account-card:hover, .account-card:focus-visible, .account-card.selected-card {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  outline: none;
}

.account-card:hover::before, .account-card.selected-card::before {
  opacity: 1;
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.account-dp-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.account-dp {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-highlight);
  background: var(--bg-secondary);
}

.account-dp-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  border: 2px solid var(--border-highlight);
}

.account-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-username {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.account-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.15rem;
  width: fit-content;
  max-width: 100%;
}

.account-platform-badge .icon-url {
  width: 12px;
  height: 12px;
}

.account-platform-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-platform-badge-fb {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.32);
  color: #93c5fd;
}

.account-platform-badge-ig {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.32);
  color: #f472b6;
}

.account-platform-badge-x {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.account-corner-platform {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.account-corner-platform .icon-url {
  width: 11px;
  height: 11px;
}

/* Vault Note Badge: key_vertical icon + Google */
.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.vault-badge .material-symbols-outlined {
  font-size: 15px;
  color: #fbbf24;
}

.account-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
}

.account-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem; /* Snug spacing instead of stretching card */
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-secondary);
}

.friends-count-pill {
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.account-card-arrow {
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.account-card:hover .account-card-arrow {
  color: var(--accent-primary);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Search & Filter Toolbar
   -------------------------------------------------------------------------- */
.toolbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.6rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.search-input-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 6.5rem 0.8rem 2.75rem;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  backdrop-filter: var(--backdrop-blur);
}

.search-input:focus {
  outline: none;
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-shortcut-hint {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tag Filter Chips */
.tag-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.tag-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.2));
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.tag-chip-star {
  border-color: rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.tag-chip-star.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.25));
  color: #fff;
  border-color: var(--accent-pink);
}

.tag-chip-count {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Friends Directory Cards (Masonry Columns - Auto-Fill Without Vertical Gaps)
   -------------------------------------------------------------------------- */
.friends-grid {
  display: block;
  columns: 310px;
  column-gap: 1.15rem;
  margin-top: 0.85rem;
  width: 100%;
}

.friend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: var(--backdrop-blur);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 1.15rem; /* Snug distance between up and down card */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.friend-card:hover, .friend-card.selected-card {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.18);
  outline: none;
}

.friend-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.friend-dp-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.friend-dp-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--border-highlight);
}

.friend-dp-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  border: 2px solid var(--border-highlight);
}

.friend-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow: hidden;
}

.friend-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.friend-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.friend-nickname {
  font-size: 0.72rem;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Mutual on multiple accounts indicator */
.multi-account-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* Connected on formatted string with background pills */
.connected-on-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.connected-on-label {
  font-weight: 600;
  color: var(--text-accent);
  font-size: 0.72rem;
  margin-right: 0.15rem;
}

.connected-on-pills-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.connected-on-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.connected-on-pill:hover {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(99, 102, 241, 0.45);
}

/* --------------------------------------------------------------------------
   Compact Social Handles & Contacts Stream
   Format: FB @abc1, FB @abc2, ..., IG @abc1, ..., Whatsapp ..., Call_icon Number
   -------------------------------------------------------------------------- */
.compact-contacts-stream {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem; /* Snug natural spacing instead of matching tallest height */
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.compact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-badge:hover {
  transform: translateY(-1px);
}

.compact-badge-fb {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.3);
  color: #93c5fd;
}
.compact-badge-fb:hover {
  background: rgba(24, 119, 242, 0.22);
  color: #fff;
}

.compact-badge-ig {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f472b6;
}
.compact-badge-ig:hover {
  background: rgba(236, 72, 153, 0.22);
  color: #fff;
}

.compact-badge-x {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
.compact-badge-x:hover {
  background: rgba(255, 255, 255, 0.15);
}

.compact-badge-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
}
.compact-badge-wa:hover {
  background: rgba(37, 211, 102, 0.22);
  color: #fff;
}

.compact-badge-call {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}
.compact-badge-call:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
}

/* Tag Pills */
.friend-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.friend-tag-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Slide-Over Friend Profile Drawer & Modals
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.friend-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-backdrop.active .friend-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-content {
  padding: 1.3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.drawer-hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer-dp {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--accent-secondary);
  box-shadow: var(--shadow-glow-cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.drawer-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-hero-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.drawer-notes-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.drawer-memories-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
}

.memory-thumb-wrap {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.memory-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.memory-thumb-wrap:hover .memory-thumb-img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Dedicated Account Page Banner (account.html)
   -------------------------------------------------------------------------- */
.account-hero-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  backdrop-filter: var(--backdrop-blur);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.account-hero-dp {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.account-hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.account-hero-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-hero-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.account-hero-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Settings & Add Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 75px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* Shortcuts Cheat Sheet Modal Table */
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.shortcuts-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

/* Empty State */
.empty-state {
  column-span: all;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Breakpoints (Phones & Small Tablets)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .accounts-grid {
    columns: 1;
    display: block;
  }
  .friends-grid {
    columns: 1;
    display: block;
  }
  .search-shortcut-hint {
    display: none;
  }
  .search-input {
    padding-right: 1rem;
    font-size: 0.85rem;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .account-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
  }
  .account-hero-details-grid {
    grid-template-columns: 1fr;
  }
  .friend-drawer {
    max-width: 100vw;
  }
  .modal-card {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }
  .friend-card {
    padding: 1rem;
  }
  .compact-badge {
    font-size: 0.7rem;
    padding: 0.18rem 0.45rem;
  }
}
