/* ==========================================================
   NIXT Biolink - Compact Bento Grid (بطاقات صغيرة شبكية للجوال)
   - Font: خط ثمانية الأصلي (Thmanyah Sans & Display)
   - Colors: nixt.sa Official Palette (#083e6a, #052442, #f6a315)
   - Compact 2-Column Bento Grid: No Clipping, Fits Small Screens
   - Anti-Flash on load
   ========================================================== */

/* ---------------- خط ثمانية الأصلي (Thmanyah Fonts) ---------------- */
@font-face {
  font-family: 'Thmanyah';
  src: url('fonts/thmanyah-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah';
  src: url('fonts/thmanyah-sans-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah';
  src: url('fonts/thmanyah-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah-display-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah-display-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------- خط روبيك (Rubik) — واضح وأنيق ---------------- */
@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-arabic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-latin-ext.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------- Color Tokens & Variables ---------------- */
:root {
  --bg-petrol-deep: #052442;
  --bg-petrol-mid: #083e6a;
  --bg-petrol-light: #0d4e83;
  --bg-dark: #03172c;
  
  --brand-orange: #f6a315;
  --brand-orange-hover: #ffb733;
  --brand-orange-soft: rgba(246, 163, 21, 0.15);
  --brand-blue: #0175c2;
  
  --surface-card: rgba(8, 62, 106, 0.62);
  --surface-card-hover: rgba(13, 78, 131, 0.92);
  --border-card: rgba(255, 255, 255, 0.14);
  --border-card-hover: rgba(246, 163, 21, 0.65);
  --surface-glass: rgba(255, 255, 255, 0.08);
  
  --text-main: #ffffff;
  --text-secondary: #c8daf0;
  --text-muted: #89a8c7;
  
  --font-body: 'Rubik', 'Thmanyah', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Rubik', 'Thmanyah Display', 'Thmanyah', sans-serif;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(3, 23, 44, 0.2);
  --shadow-md: 0 6px 18px rgba(3, 23, 44, 0.35);
  
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Support */
[data-theme="light"] {
  --bg-petrol-deep: #e8f2fa;
  --bg-petrol-mid: #f0f7fc;
  --bg-petrol-light: #dbeafe;
  --bg-dark: #ffffff;
  
  --surface-card: #ffffff;
  --surface-card-hover: #ffffff;
  --border-card: rgba(8, 62, 106, 0.12);
  --border-card-hover: rgba(246, 163, 21, 0.7);
  --surface-glass: rgba(8, 62, 106, 0.05);
  
  --text-main: #062644;
  --text-secondary: #2f567a;
  --text-muted: #5e84a6;
  
  --shadow-sm: 0 2px 6px rgba(8, 62, 106, 0.06);
  --shadow-md: 0 6px 16px rgba(8, 62, 106, 0.1);
}

/* ---------------- Reset & Anti-Flash Base ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-petrol-deep);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  background-color: var(--bg-petrol-deep);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-petrol-light) 0%, var(--bg-petrol-mid) 40%, var(--bg-petrol-deep) 85%, var(--bg-dark) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 10px 10px 36px;
}

/* Ambient glow */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 280px;
  background: radial-gradient(ellipse at 50% 10%, rgba(13, 78, 131, 0.45) 0%, rgba(246, 163, 21, 0.08) 60%, transparent 100%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Main Wrapper ---------------- */
.biolink-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------- Top Bar ---------------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.brand-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.top-bar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.ctrl-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.ctrl-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lang-switch {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  width: auto;
  padding: 0 10px;
  border-radius: var(--radius-full);
}

/* ---------------- Profile Header ---------------- */
.profile-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
}

.avatar-container {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 2px;
}

.avatar-border {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
  opacity: 0.85;
}

.avatar-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: #ffffff;
  padding: 2.5px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.verified-icon {
  position: absolute;
  bottom: -3px;
  left: -3px;
  background: var(--brand-orange);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-petrol-deep);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

[dir="ltr"] .verified-icon {
  left: auto;
  right: -3px;
}

.verified-icon svg {
  width: 11px;
  height: 11px;
}

.profile-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.25;
}

.profile-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 350px;
  padding: 0 4px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.tag-item.live {
  color: var(--brand-orange);
  border-color: rgba(246, 163, 21, 0.35);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 5px var(--brand-orange);
}

/* ---------------- Section Divider ---------------- */
.grid-section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 4px 2px -4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grid-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

/* ---------------- Compact Bento Grid (شبكة بطاقات صغيرة) ---------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 Compact Columns */
  gap: 8px;
  width: 100%;
}

.col-span-2 {
  grid-column: span 2;
}

/* ---------------- Compact Bento Card ---------------- */
.bento-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  min-height: 48px;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-card:active {
  transform: scale(0.975);
}

/* ---------------- Highlight Card (الموقع الرسمي) ---------------- */
.bento-card.highlight {
  border: 1.5px solid var(--brand-orange) !important;
  background: linear-gradient(135deg, #0a4674 0%, #062b4e 100%) !important;
  box-shadow: 0 4px 14px rgba(246, 163, 21, 0.22);
  padding: 10px 12px;
}

.bento-card.highlight:hover {
  background: linear-gradient(135deg, #0d5389 0%, #08345e 100%) !important;
  box-shadow: 0 5px 18px rgba(246, 163, 21, 0.35);
}

.bento-card.highlight .card-heading {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.bento-card.highlight .card-sub {
  color: var(--brand-orange) !important;
  font-weight: 700;
  opacity: 1 !important;
}

.bento-card.highlight .card-arrow-icon {
  color: var(--brand-orange) !important;
}

[data-theme="light"] .bento-card.highlight {
  background: linear-gradient(135deg, #083e6a 0%, #052442 100%) !important;
  border: 1.5px solid var(--brand-orange) !important;
  box-shadow: 0 4px 16px rgba(8, 62, 106, 0.18);
}

[data-theme="light"] .bento-card.highlight .card-heading {
  color: #ffffff !important;
}

[data-theme="light"] .bento-card.highlight .card-sub {
  color: var(--brand-orange) !important;
}

[data-theme="light"] .bento-card.highlight .card-arrow-icon {
  color: var(--brand-orange) !important;
}

/* Badge on Hero Highlight Card */
.card-badge-pill {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(246, 163, 21, 0.25);
  border: 1px solid rgba(246, 163, 21, 0.65);
  border-radius: var(--radius-full);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  margin-inline-end: 4px;
  transition: all var(--transition);
}

.bento-card.highlight:hover .card-badge-pill {
  background: var(--brand-orange);
  color: #052442;
}

/* ---------------- Card Content Structure ---------------- */
.bento-card-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  flex: 1;
  overflow: hidden;
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  color: var(--brand-orange);
  transition: transform var(--transition);
}

.bento-card:hover .card-icon {
  transform: scale(1.08);
}

.card-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Distinct Icon Colors */
.card-icon.whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.25);
}

.card-icon.instagram {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.25);
}

.card-icon.tiktok {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.25);
}

.card-icon.alsalem {
  color: #f6a315;
  background: rgba(246, 163, 21, 0.15);
  border-color: rgba(246, 163, 21, 0.35);
}

.card-icon.phone {
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
  border-color: rgba(246, 163, 21, 0.3);
}

.card-icon.email {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.card-icon.x-twitter {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .card-icon.x-twitter {
  color: #052442;
}

.card-icon.snapchat {
  color: #fffc00;
  background: rgba(255, 252, 0, 0.12);
  border-color: rgba(255, 252, 0, 0.25);
}

.card-icon.apple {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .card-icon.apple {
  color: #052442;
}

.card-icon.google-play {
  color: #34a853;
  background: rgba(52, 168, 83, 0.12);
  border-color: rgba(52, 168, 83, 0.25);
}

.card-icon.web {
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
}

/* Card Text Details (Compact & Safe) */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
  flex: 1;
  overflow: hidden;
}

.card-heading {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
  text-align: right;
}

[dir="ltr"] .card-sub {
  text-align: left;
}

/* On 2-column compact cards: hide chevron arrow to give maximum space to text */
.bento-card:not(.col-span-2) .card-arrow-icon {
  display: none !important;
}

/* On full-width cards: show chevron arrow */
.bento-card.col-span-2 .card-arrow-icon {
  display: block;
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-inline-start: 4px;
  transition: transform var(--transition), color var(--transition);
}

.bento-card.col-span-2:hover .card-arrow-icon {
  color: var(--brand-orange);
  transform: translateX(-2px);
}

[dir="ltr"] .bento-card.col-span-2:hover .card-arrow-icon {
  transform: translateX(2px);
}

/* ---------------- Dedicated Dual QR Code Bento Card ---------------- */
.qr-bento-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--surface-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(246, 163, 21, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.qr-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Single smart QR badge */
.qr-smart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: rgba(246, 163, 21, 0.12);
  border: 1px solid rgba(246, 163, 21, 0.3);
  border-radius: 999px;
}

.qr-smart-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* QR Content Body */
.qr-content-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 340px) {
  .qr-content-body {
    flex-direction: column;
    text-align: center;
  }
}

.qr-frame {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 5px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--brand-orange);
  margin: 0 auto;
}

#qr-canvas-holder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-canvas-holder img, #qr-canvas-holder canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-badge-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--brand-orange);
  pointer-events: none;
}

.qr-badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.qr-app-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-target-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.qr-target-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

.qr-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-qr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--brand-orange);
  color: #ffffff;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(246, 163, 21, 0.3);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-qr-link:hover {
  filter: brightness(1.1);
}

.btn-qr-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-qr-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-qr-save:hover {
  background: var(--surface-card-hover);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.btn-qr-save svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ---------------- Footer ---------------- */
.biolink-footer {
  text-align: center;
  padding: 14px 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---------------- Toast Notification ---------------- */
.toast-msg {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(5, 36, 66, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--brand-orange);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-msg svg {
  color: var(--brand-orange);
  width: 15px;
  height: 15px;
}

/* ---------------- Large Screens: bigger, clearer typography ---------------- */
@media (min-width: 600px) {
  html {
    font-size: 17px;
  }

  .biolink-wrapper {
    max-width: 470px;
  }

  .bg-ambient {
    max-width: 520px;
  }

  .bento-card {
    padding: 10px 12px;
    min-height: 52px;
  }

  .card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .card-icon svg {
    width: 18px;
    height: 18px;
  }

  .qr-frame {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 17.5px;
  }

  .biolink-wrapper {
    max-width: 500px;
  }

  .bg-ambient {
    max-width: 560px;
  }
}
