/* Reset */
:root {
  --brand: #141e2d;
  --brand-hover: #1a2a42;
  --brand-border: rgba(77, 166, 255, 0.28);
  --brand-text: #babdbf;

  /* Layout – index / link-in-bio page */
  --content-max: 37.5rem; /* 600px – link-in-bio column */
  --page-gutter: clamp(0.75rem, 4vw, 1.25rem);
  --section-gap: clamp(0.875rem, 2.5vw, 1.25rem);
  --topbar-h: clamp(3rem, 8vw, 3.25rem);
  --link-icon: clamp(2.5rem, 10vw, 2.8125rem);
  --link-pad-y: clamp(0.75rem, 2.5vw, 1rem);
  --link-pad-left: calc(var(--link-icon) + 1.75rem);
  --link-radius: clamp(1rem, 4vw, 1.875rem);
  --font-link-title: clamp(0.875rem, 2.8vw, 1rem);
  --font-link-sub: clamp(0.6875rem, 2.2vw, 0.75rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Unified UI tokens */
  --text-main: #babdbf;
  --text-sub: #9fa3a6;
  --text-size-main: clamp(0.8125rem, 2.8vw, 1rem);
  --text-size-sub: clamp(0.6875rem, 2.2vw, 0.75rem);
  --verified-size: 1.0625rem;
  --top-btn-h: 2.25rem;
  --top-btn-icon: 0.9375rem;
  --top-btn-bg: #e0e0e0;
  --top-btn-bg-hover: #d4d4d4;
  --top-btn-bg-subscribed: #cccccc;
  --top-btn-fg: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  
}

/* Body and Container */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--brand);
  color: var(--brand-text);
  overflow-x: hidden;
}


.container {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 87.5rem;
  margin-inline: auto;
  padding-bottom: calc(5.5rem + var(--safe-bottom));
}


.verified-icon {
  width: var(--verified-size);
  height: var(--verified-size);
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 50%;
  object-fit: cover;
}


/* Background Image – HD, full viewport, sharp fit */
.background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--brand);
}

.background-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* iOS: fixed backgrounds blur less with img than background-attachment */
@supports (-webkit-touch-callout: none) {
  .background {
    position: fixed;
  }
}

/* Top action bar – all viewports */
.profile-buttons {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--topbar-h);
  padding:
    calc(0.5rem + var(--safe-top))
    calc(var(--page-gutter) + var(--safe-right))
    0.5rem
    calc(var(--page-gutter) + var(--safe-left));
  pointer-events: none;
}

/* Common – YouTube-style flat buttons */
.profile-buttons .subscribe-btn,
.profile-buttons .share-btn {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  transition: background-color 0.2s ease;
  pointer-events: auto;
  flex-shrink: 0;
}

.profile-buttons .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-buttons .btn-icon-wrap i {
  color: var(--top-btn-fg);
  transition: transform 0.25s ease;
}

/* Subscribe – Beacons-style light gray pill */
.profile-buttons .subscribe-btn {
  gap: 7px;
  padding: 0 clamp(12px, 2.8vw, 16px);
  border-radius: 999px;
  background: var(--top-btn-bg);
  color: var(--top-btn-fg);
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: var(--top-btn-h);
  min-height: var(--top-btn-h);
  max-height: var(--top-btn-h);
  max-width: min(52vw, 12rem);
  box-sizing: border-box;
  border: none;
  box-shadow: none;
}

.profile-buttons .subscribe-btn .btn-label {
  color: var(--top-btn-fg);
}

.profile-buttons .subscribe-btn .btn-icon-wrap {
  width: var(--top-btn-icon);
  height: var(--top-btn-icon);
  font-size: var(--top-btn-icon);
}

.profile-buttons .subscribe-btn .btn-icon-wrap i {
  color: var(--top-btn-fg);
  font-weight: 400;
}

.profile-buttons .subscribe-btn.is-subscribed {
  background: var(--top-btn-bg-subscribed);
  color: var(--top-btn-fg);
}

.profile-buttons .subscribe-btn.is-subscribed .btn-icon-wrap i,
.profile-buttons .subscribe-btn.is-subscribed .btn-label {
  color: var(--top-btn-fg);
}

/* Share – same gray circle, same height as subscribe */
.profile-buttons .share-btn {
  width: var(--top-btn-h);
  height: var(--top-btn-h);
  min-width: var(--top-btn-h);
  min-height: var(--top-btn-h);
  max-width: var(--top-btn-h);
  max-height: var(--top-btn-h);
  padding: 0;
  border-radius: 50%;
  background: var(--top-btn-bg);
  color: var(--top-btn-fg);
  box-sizing: border-box;
  border: none;
  box-shadow: none;
}

.profile-buttons .share-btn .btn-icon-wrap {
  width: var(--top-btn-icon);
  height: var(--top-btn-icon);
  font-size: var(--top-btn-icon);
}

.profile-buttons .share-btn .share-icon-svg {
  width: var(--top-btn-icon);
  height: var(--top-btn-icon);
  display: block;
  color: var(--top-btn-fg);
}

/* Hover – subtle only */
.profile-buttons .subscribe-btn:hover {
  background: var(--top-btn-bg-hover);
}

.profile-buttons .subscribe-btn.is-subscribed:hover {
  background: #bdbdbd;
}

.profile-buttons .share-btn:hover {
  background: var(--top-btn-bg-hover);
}

.profile-buttons .share-btn.is-open {
  background: var(--top-btn-bg-hover);
  color: var(--top-btn-fg);
}

.profile-buttons .share-btn.is-open .share-icon-svg {
  color: var(--top-btn-fg);
}

/* Share popup – center of screen */
.share-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: max(1rem, var(--safe-top)) max(1rem, var(--safe-right)) max(1rem, var(--safe-bottom)) max(1rem, var(--safe-left));
}

.share-popup-overlay.is-visible {
  display: flex;
}

.share-popup {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 24px 22px 18px;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: sharePopupIn 0.25s ease;
}

@keyframes sharePopupIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.share-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.share-popup-close:hover {
  color: #fff;
}

.share-popup h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  font-family: Arial, Helvetica, sans-serif;
}

.share-popup-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

.share-popup-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: var(--brand-hover);
  color: #e8eaed;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.share-menu-item:hover {
  background: rgba(77, 166, 255, 0.15);
}

.share-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.share-menu-item[data-share="whatsapp"] i { color: #25d366; }
.share-menu-item[data-share="facebook"] i { color: #1877f2; }
.share-menu-item[data-share="twitter"] i { color: #e7e9ea; }
.share-menu-item[data-share="copy"] i { color: #4da6ff; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10002;
  max-width: 90vw;
  text-align: center;
}

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

/* Bell icon */
#bellIcon {
  transition: transform 0.3s ease;
}

.vibrate {
  animation: vibrate 0.4s linear;
}

@keyframes vibrate {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-15deg); }
  80% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

.vibrate {
  animation: vibrate 0.4s ease;
}




/* Profile Section */
.profile {
  margin-top: calc(var(--topbar-h) + var(--safe-top) + clamp(3.5rem, 12vw, 5rem));
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile pic + name – centered stack */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 6px;
}

/* Subscribe notification – above profile image */
.subscribe-notice {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 24px);
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 11px 16px;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  color: #e8eaed;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: noticeSlideDown 0.35s ease;
}

.subscribe-notice.is-visible {
  display: flex;
}

.subscribe-notice.is-success i {
  color: #4da6ff;
}

.subscribe-notice.is-info i {
  color: #9ca3af;
}

@keyframes noticeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-pic {
  display: block;
  width: clamp(5.5rem, 22vw, 7.5rem);
  height: clamp(5.5rem, 22vw, 7.5rem);
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
}

/* Slim pill – aligned with links below */
.profile-name-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 12px;
  padding: 5px 14px 5px 16px;
  max-width: 100%;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-name {
  font-size: var(--text-size-main);
  font-weight: normal;
  color: var(--text-main);
  letter-spacing: 0.15px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-name-card .verified-icon {
  width: var(--verified-size);
  height: var(--verified-size);
  margin-right: 0;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.verified {
  color: #4da6ff;
  


}

.title {
  font-size: 1rem;
  margin-top: 5px;
}
/* Links section */
.links {
  display: flex;
  flex-direction: column;
  margin-top: var(--section-gap);
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--page-gutter);
  padding-bottom: clamp(2rem, 6vw, 2.5rem);
  font-family: Arial, sans-serif;
}

/* Link cards */
body.index-page .links a {
  min-height: 0;
}

.links a {
  position: relative;
  display: flex;
  min-height: clamp(3.25rem, 12vw, 3.75rem);
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  padding: var(--link-pad-y) 1rem var(--link-pad-y) var(--link-pad-left);
  margin: clamp(0.375rem, 1.5vw, 0.5rem) 0;
  border-radius: var(--link-radius);
  color: #babdbf;
  font-weight: normal;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Icon – direct child or inside .link-text (legacy markup) */
.links a > img,
.links a .link-text > img {
  position: absolute;
  left: clamp(0.75rem, 3vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: var(--link-icon);
  height: var(--link-icon);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.links a .link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-width: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  text-align: left;
}

.links a .link-text span {
  font-size: var(--font-link-title);
  font-weight: normal;
  line-height: 1.35;
  color: var(--text-main);
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
}

.links a .link-text small {
  font-size: var(--font-link-sub);
  color: var(--text-sub);
  font-weight: normal;
  line-height: 1.35;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.links a:last-of-type {
  margin-bottom: 0.5rem;
}

@media (hover: hover) {
  .links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    border-color: rgba(77, 166, 255, 0.45);
  }
}

@media (hover: none) {
  .links a:active {
    transform: scale(0.99);
    opacity: 0.95;
  }
}

  /* Cookie bar container */
  .cookie-bar {
    position: fixed;
    bottom: calc(0.75rem + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    background-color: var(--brand);
    border: 1px solid var(--brand-border);
    color: white;
    padding: 0.75rem 1rem;
    width: min(calc(100% - var(--page-gutter) * 2), 56rem);
    max-width: calc(100% - var(--page-gutter) * 2);
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    font-family: Arial, sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    z-index: 1000;
  }

  /* Text inside bar */
  .cookie-bar p {
    margin: 0;
    flex: 1;
    line-height: 1.4;
  }

  .cookie-bar a {
    color: #b8d4ff; /* link color */
    text-decoration: underline;
  }

  .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: 0;
  flex-shrink: 0;
}

/* Shared styles for both buttons */
.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reject button */
#reject-btn {
  background-color: var(--brand-hover);
  color: #fff;
  border: 1px solid var(--brand-border);
}

#reject-btn:hover {
  background-color: #243a5c;
}

/* Accept button */
#accept-btn {
  background-color: var(--brand);
  color: #fff;
  border: 1px solid var(--brand-border);
}

#accept-btn:hover {
  background-color: var(--brand-hover);
}


/* Cards layout */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.25rem);
  width: 100%;
  max-width: 37.5rem;
  margin-bottom: clamp(3rem, 10vw, 4.5rem);
}

/* Card styling – Ask Me / 1:1 (shahidanwarllc.com MuiCard) */
.card {
  background: #504c4f;
  border: none;
  border-radius: clamp(1rem, 4vw, 2.25rem);
  padding: clamp(1rem, 4vw, 1.25rem);
  color: #bbbebf;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

.card h3 {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: bold;
  color: #bbbebf;
}

.card p {
  margin: 0;
  font-size: clamp(0.875rem, 3vw, 1rem);
  color: #bbbebf;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
  color: #bbbebf;
}

.card .info-row .icon-text i {
  color: inherit;
}

.action-btn {
  width: min(100%, 20rem);
  max-width: 100%;
  background: #bbbebf;
  color: #141e2d;
  border: none;
  border-radius: 999px;
  padding: clamp(0.625rem, 2.5vw, 0.75rem) 1rem;
  font-size: clamp(0.875rem, 3vw, 1rem);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
  margin: 0 auto;
}

@media (hover: hover) {
  .action-btn:hover {
    transform: scale(1.03);
  }
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 400px;
  border-radius: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Form elements */
form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

textarea {
  resize: none;
  height: 70px;
}

.upload-btn {
  background: #000;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Payment buttons */
.paypal-btn {
  background: #ffcc00;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.later-btn {
  background: #0070ba;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.link-btn {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Welcome video – ArtPlayer (see art-player.css) */

.open-btn {
  background: #8e8e8e;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 18px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  background: white;
  width: 400px;
  margin: 50px auto;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 90vh;
  position: relative;
}

.secure-bar {
  background: #f2f2f2;
  padding: 12px;
  text-align: center;
  color: #333;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.close {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
}

h2 {
  text-align: center;
  padding: 10px;
}

form {
  padding: 20px;
  text-align: left;
}

label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: none;
  height: 70px;
}

.upload-btn,
.paypal-btn,
.later-btn,
.link-btn {
  width: 100%;
  padding: 10px;
  border: none;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.upload-btn { background: black; color: white; }
.paypal-btn { background: #FFC439; color: black; }
.later-btn { background: #0070ba; color: white; }
.link-btn { background: #30d158; color: white; }

.or-text {
  text-align: center;
  margin: 15px 0;
  font-size: 14px;
  color: #777;
}

.security-text {
  font-size: 12px;
  text-align: center;
  color: #777;
  margin-top: 10px;
}

.card-icons {
  text-align: center;
  margin-top: 10px;
}

.card-icons img {
  height: 28px;
  margin-right: 10px;
}




/* start popup code */




/* Popup overlay – Ask Me / 1:1 Call */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#popup1.popup-box,
#popup2.popup-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: min(92vh, 640px);
  overflow: hidden;
  padding: 0;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  color: #e8eaed;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  font-family: Arial, Helvetica, sans-serif;
}

#popup1.popup-show,
#popup2.popup-show {
  display: flex !important;
  flex-direction: column;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.popup-close i {
  font-size: 18px;
}

.share-popup-close i {
  font-size: 18px;
}

.popup-header {
  padding: 22px 48px 14px 24px;
  text-align: center;
  border-bottom: 1px solid var(--brand-border);
  flex-shrink: 0;
}

.popup-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.popup-subtitle {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.45;
}

.popup-subtitle--meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.popup-subtitle--meta i {
  color: #4da6ff;
  font-size: 13px;
}

.popup-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.popup-footer {
  padding: 4px 20px 20px;
  flex-shrink: 0;
  border-top: 1px solid rgba(77, 166, 255, 0.12);
}

.popup-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #babdbf;
  cursor: pointer;
}

.popup-label i {
  color: #4da6ff;
  font-size: 14px;
}

.file-upload-area {
  background: var(--brand-hover);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.popup-file-input {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #9ca3af;
  background: transparent;
  border: none;
}

.popup-file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand);
  color: #e8eaed;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.popup-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.popup-input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  background: var(--brand-hover);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-input::placeholder {
  color: #6b7280;
}

.popup-input:focus {
  outline: none;
  border-color: rgba(77, 166, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.12);
}

.error-msg {
  color: #f87171;
  font-size: 12px;
  margin: 0;
}

.popup-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #0b1220;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.popup-btn i {
  font-size: 14px;
}

.popup-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.42);
}

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

.popup-alert {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 480px) {
  #popup1.popup-box,
  #popup2.popup-box {
    width: calc(100% - 20px);
    max-height: 94vh;
  }

  .popup-header {
    padding: 20px 44px 12px 18px;
  }

  .popup-title {
    font-size: 18px;
  }

  .popup-body {
    padding: 14px 16px;
  }

  .popup-footer {
    padding: 4px 16px 16px;
  }
}


/* ========== Index page – responsive breakpoints ========== */

@media (min-width: 1400px) {
  :root {
    --content-max: 36rem;
  }
}

@media (max-width: 768px) {
  body:not(.index-page) .cookie-bar,
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0.875rem 1rem;
  }

  .cookie-bar p {
    flex: none;
    width: 100%;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-buttons button {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 7rem;
  }

  .toast {
    bottom: calc(7.5rem + var(--safe-bottom));
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 480px) {
  .profile-name-card {
    padding: 0.35rem 0.75rem 0.35rem 0.875rem;
    gap: 0.375rem;
    border-radius: 999px;
  }

  .profile-name-card .verified-icon {
    width: var(--verified-size);
    height: var(--verified-size);
  }

  .profile-buttons .subscribe-btn .btn-label {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (min-width: 769px) {
  .cookie-bar {
    flex-wrap: nowrap;
  }

  .cookie-buttons {
    margin-left: auto;
  }
}

@media (min-width: 1025px) {
  body:not(.index-page) .cookie-bar {
    left: max(var(--page-gutter), 1.25rem);
    right: auto;
    transform: none;
    width: min(42rem, calc(100% - var(--page-gutter) * 2));
    max-width: 42rem;
  }
}
/* Official domain notice */
.official-topbar {
  width: 100%;
  background: var(--brand);
  padding: clamp(0.625rem, 2.5vw, 0.75rem) clamp(0.75rem, 3vw, 1.25rem);
  text-align: center;
  border-radius: clamp(0.75rem, 2vw, 0.9375rem);
  font-family: Arial, sans-serif;
  position: relative;
  margin-top: 0.75rem;
  z-index: 2;
  border: 1px solid var(--brand-border);
}

.official-topbar p {
  font-size: clamp(0.8125rem, 2.8vw, 1.125rem);
  font-weight: normal;
  color: #babdbf;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.official-topbar p strong {
  color: var(--text-main);
  font-weight: 600;
}


@media (max-width: 320px) {
  .contact-float-btn {
    right: 4px;
    bottom: 72px;
    padding: 6px 8px;
    font-size: 10px;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-float-btn span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Floating Contact Us – compact, site blue (#141e2d) */
.contact-float-btn {
  position: fixed;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: var(--brand);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  text-decoration: none;
  cursor: pointer;

  padding: 8px 12px;
  border-radius: 50px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 6px 18px rgba(20, 30, 45, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-float-btn i {
  font-size: 13px;
  color: #4da6ff;
}

.contact-float-btn:hover {
  transform: translateY(-50%) scale(1.03);
  background: var(--brand-hover);
  border-color: rgba(77, 166, 255, 0.55);
  color: #e8eaed;
}

.contact-float-btn:hover i {
  color: #60a5fa;
}

@media (max-width: 768px) {
  .contact-float-btn {
    right: max(0.4375rem, var(--safe-right));
    bottom: calc(6.5rem + var(--safe-bottom));
    top: auto;
    transform: none;
    padding: 7px 10px;
    font-size: 11px;
    gap: 5px;
    z-index: 9000;
  }

  .contact-float-btn i {
    font-size: 12px;
  }

  .contact-float-btn:hover {
    transform: scale(1.02);
  }
}

/* app css */
/* ===== App Download Section ===== */
.app-download-wrapper {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 0 14px;
}

.app-download-text {
  font-size: 14px;
  color: #000000;
  margin-bottom: 8px;
}

/* Applications button – links to app download page */
.app-download-btn.app-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  background: var(--brand);
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-top: 12px;
}

.app-download-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(77, 166, 255, 0.12);
  gap: 2px;
}

.app-icon-mobile {
  font-size: 18px;
  color: #4da6ff;
}

.app-icon-android {
  font-size: 16px;
  color: #3ddc84;
  margin-left: -4px;
}

.app-download-text-wrap {
  flex: 1;
  text-align: left;
  line-height: 1.2;
}

.app-download-label {
  display: block;
  font-size: var(--text-size-main);
  font-weight: normal;
  color: var(--text-main);
}

.app-download-sublabel {
  display: block;
  font-size: var(--text-size-sub);
  color: var(--text-sub);
  margin-top: 3px;
  font-weight: 400;
}

.app-download-arrow {
  font-size: 14px;
  color: #4da6ff;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Hover (desktop only) */
@media (hover: hover) {
  .app-download-btn.app-download-link:hover {
    background: var(--brand-hover);
    border-color: rgba(77, 166, 255, 0.55);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  }

  .app-download-btn.app-download-link:hover .app-download-arrow {
    transform: translateX(3px);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .app-download-text {
    font-size: 15px;
  }
  .app-download-btn {
    font-size: 16px;
  }
}


/* Mobile – app download */
@media (max-width: 480px) {
  .app-download-btn.app-download-link {
    width: 100%;
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }

  .app-download-icons {
    width: 2.5rem;
    height: 2.5rem;
  }

  .app-download-label {
    font-size: 0.9375rem;
  }
}

/* ========== Product promo popup (#productPopup) ========== */
#productPopup.popup-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  z-index: 10003;
  opacity: 1;
  transition: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#productPopup .popup-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 52rem);
  max-height: min(92vh, 40rem);
  overflow: hidden;
  padding: 0;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

#productPopup .popup-left {
  flex: 0 0 auto;
  max-height: 42vh;
  overflow: hidden;
  background: #0a0f18;
}

#productPopup .popup-left img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 42vh;
  object-fit: cover;
}

#productPopup .popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.625rem;
  z-index: 3;
  cursor: pointer;
  color: #9ca3af;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
}

#productPopup .popup-right {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  color: #e8eaed;
  overflow-y: auto;
}

#productPopup .popup-small {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #4da6ff;
  margin: 0 0 0.5rem;
}

#productPopup .popup-title {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

#productPopup .popup-sub {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  #productPopup .popup-box {
    flex-direction: row;
    max-height: min(88vh, 28rem);
  }

  #productPopup .popup-left {
    flex: 0 0 42%;
    max-height: none;
    min-height: 16rem;
  }

  #productPopup .popup-left img {
    max-height: none;
    min-height: 100%;
  }

  #productPopup .popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 1.5rem 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .links a:hover,
  .card:hover,
  .action-btn:hover {
    transform: none;
  }
}
