/* ===== CSS VARIABLES - FUCHSIA • SOFT PINK • WHITE ===== */
:root {
  /* Colors - New Theme */
  --profile-bg: #FFB6C1;        /* Soft Pink background for container */
  --button-bg: #FFFFFF;          /* White buttons with pink tint */
  --button-bg-hover: #FFE4F1;    /* Soft Pink hover */
  --button-text: #2D1B3E;        /* Dark purple text for contrast */
  --button-border: #C71585;      /* Fuchsia border */
  --button-shadow: #E91E6D;      /* Soft fuchsia shadow */
  --text-primary: #2D1B3E;       /* Dark purple primary text */
  --text-secondary: rgba(45, 27, 62, 0.7); /* Softer secondary text */
  --accent-fuchsia: #C71585;     /* Main fuchsia accent */
  --accent-fuchsia-light: #E91E6D; /* Lighter fuchsia */
  --accent-pink: #FFB6C1;        /* Soft pink accent */
  --layer-fuchsia: #C71585;      /* Layer 1 - Fuchsia background */
  --layer-pink: #FFB6C1;         /* Layer 2 - Pink container */
  --layer-white-pink: #FFF5F8;   /* Layer 3 - White with pink tint for buttons */
  
  /* Spacing & Layout */
  --border-radius: 28px;
  --inner-radius: 20px;
  --link-gap: 14px;
  --container-max: 580px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 500;
  --font-weight-bold: 700;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background-color: #f161c1;
  font-family: var(--font-family);
  color: var(--text-primary);
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f7cbea;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
  width: 100%;
  padding: 0;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 100%;
  max-width: 580px;
  height: 650px;
  margin: 0 auto 0;
  position: relative;
  overflow: visible;
  background: transparent;
  transition: filter 0.1s linear, opacity 0.1s linear;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent 0%, #f7cbea 100%);
  pointer-events: none;
  z-index: 5;
}

.profile-avatar-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  mask: radial-gradient(ellipse 120% 100% at 50% 0%, #000 0%, #000 30%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: radial-gradient(ellipse 120% 100% at 50% 0%, #000 0%, #000 30%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 85%, rgba(0, 0, 0, 0) 100%);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.profile-avatar-blur {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  mask: radial-gradient(110.26% 96% at 50% 0%, rgba(0, 0, 0, 0.00) 60%, rgba(0, 0, 0, 0.01) 64.72%, rgba(0, 0, 0, 0.03) 68.55%, rgba(0, 0, 0, 0.07) 71.65%, rgba(0, 0, 0, 0.12) 74.13%, rgba(0, 0, 0, 0.18) 76.15%, rgba(0, 0, 0, 0.25) 77.82%, rgba(0, 0, 0, 0.33) 79.3%, rgba(0, 0, 0, 0.41) 80.7%, rgba(0, 0, 0, 0.50) 82.18%, rgba(0, 0, 0, 0.59) 83.85%, rgba(0, 0, 0, 0.67) 85.87%, rgba(0, 0, 0, 0.76) 88.35%, rgba(0, 0, 0, 0.85) 91.45%, rgba(0, 0, 0, 0.93) 95.28%, #000 100%);
  -webkit-mask: radial-gradient(110.26% 96% at 50% 0%, rgba(0, 0, 0, 0.00) 60%, rgba(0, 0, 0, 0.01) 64.72%, rgba(0, 0, 0, 0.03) 68.55%, rgba(0, 0, 0, 0.07) 71.65%, rgba(0, 0, 0, 0.12) 74.13%, rgba(0, 0, 0, 0.18) 76.15%, rgba(0, 0, 0, 0.25) 77.82%, rgba(0, 0, 0, 0.33) 79.3%, rgba(0, 0, 0, 0.41) 80.7%, rgba(0, 0, 0, 0.50) 82.18%, rgba(0, 0, 0, 0.59) 83.85%, rgba(0, 0, 0, 0.67) 85.87%, rgba(0, 0, 0, 0.76) 88.35%, rgba(0, 0, 0, 0.85) 91.45%, rgba(0, 0, 0, 0.93) 95.28%, #000 100%);
}

.profile-avatar-blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
}

/* Desktop tick badge position */
.verified-badge {
  position: absolute;
  bottom: -35px;
  right: 10px;
  width: 24px;
  height: 24px;
  z-index: 25;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: transform 0.2s ease;
}

.verified-badge:hover {
  transform: scale(1.1);
}

.verified-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.verified-popup.active {
  display: flex;
}

.verified-popup-content {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  padding: 32px 24px 40px;
  text-align: center;
}

.verified-popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
}

.verified-popup-close:hover {
  color: #000;
}

.verified-popup-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
}

.verified-popup-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.verified-popup-badge {
  position: absolute;
  bottom: -50;
  right: 0;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.verified-popup h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
  color: var(--text-primary);
}

.verified-popup-text {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.5;
}

.verified-popup-text a {
  color: var(--accent-fuchsia);
  text-decoration: underline;
}

.profile-logo {
  width: 500px;
  height: 200px;
  margin: -120px auto 12px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(199, 21, 133, 0.2));
  position: relative;
  z-index: 10;
}

.profile-bio {
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 var(--link-gap);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: var(--text-primary);
}

.social-icons a:hover {
  transform: scale(1.075);
}

.social-icons svg {
  pointer-events: none;
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  background: rgba(199, 21, 133, 0.15);
  border: 2px solid var(--accent-fuchsia);
  border-radius: 16px;
  padding: 2px;
  margin: 16px var(--link-gap) 20px;
  width: 192px;
}

.tab-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
  background: var(--layer-white-pink);
  color: var(--accent-fuchsia);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(243, 80, 202, 0.2);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 182, 193, 0.3);
}

/* ===== TAB CONTENT WRAPPER ===== */
.tab-content-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background: #f7cbea;
}

.tab-panel {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0.8s;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateX(100%) translateZ(0);
  -webkit-transform: translateX(100%) translateZ(0);
  background: #f7cbea;
  opacity: 0;
  visibility: hidden;
}

.tab-panel.active {
  position: relative;
  transform: translateX(0) translateZ(0);
  opacity: 1;
  z-index: 2;
  visibility: visible;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0s;
}

.tab-panel.slide-out-left {
  transform: translateX(-100%) translateZ(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0.8s;
}

.tab-panel.slide-in-left {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  z-index: 2;
  visibility: visible;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0s;
}

.tab-panel.slide-out-right {
  transform: translateX(100%) translateZ(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0.8s;
}

.tab-panel.slide-in-right {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  z-index: 2;
  visibility: visible;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s 0s;
}

.tab-panel:not(.active) {
  position: absolute;
  pointer-events: none;
}

/* ===== LINKS CONTAINER ===== */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--link-gap);
  margin-bottom: 24px;
  padding: 0 var(--link-gap);
}

.link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--layer-white-pink);
  border: 2px solid var(--button-border);
  border-radius: var(--border-radius);
  box-shadow: 3px 4px 0 var(--button-shadow);
  text-decoration: none;
  color: var(--button-text);
  transition: all 0.2s ease;
  min-height: 72px;
  overflow: hidden;
  position: relative;
  padding: 12px;
  gap: 12px;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-fuchsia), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-card:hover {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--button-shadow);
}

.link-card:hover::before {
  opacity: 1;
}

.link-thumbnail {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-fuchsia-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(199, 21, 133, 0.2);
}

.link-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.link-title {
  font-size: 14px;
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== FEATURED INSTAGRAM LINK ===== */
.link-card.featured {
  flex-direction: column;
  padding: 0;
}

.featured-media-wrapper {
  position: relative;
  width: 100%;
  min-height: 332px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: var(--inner-radius);
}

.snapwidget-widget {
  width: 304px !important;
  height: 304px !important;
  min-height: 304px !important;
  border-radius: var(--inner-radius) !important;
  transform: none;
}

.featured-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}

.featured-media img {
  width: calc(50% - 0.5px);
  height: calc(50% - 0.5px);
  object-fit: cover;
  background: var(--button-bg-hover);
}

.featured-media img:first-child {
  border-radius: var(--inner-radius) 0 0 0;
}

.featured-media img:nth-child(2) {
  border-radius: 0 var(--inner-radius) 0 0;
}

.featured-media img:nth-child(3) {
  border-radius: 0 0 0 var(--inner-radius);
}

.featured-media img:last-child {
  border-radius: 0 0 var(--inner-radius) 0;
}

.featured-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px 12px;
  gap: 4px;
  min-height: 64px;
  margin-top: -30px;
}

.featured-title {
  font-size: 14px;
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  text-align: center;
  color: var(--button-text);
}

.featured-subtitle {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  gap: 4px;
}

.featured-subtitle svg {
  width: 18px;
  height: 18px;
  margin-left: -4px;
}

/* ===== SHOP GRID ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
  padding: 0 var(--link-gap);
}

.product-card {
  background: var(--layer-white-pink);
  border: 2px solid var(--button-border);
  border-radius: 20px;
  box-shadow: 2px 3px 0 var(--button-shadow);
  text-decoration: none;
  color: var(--button-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 5px 0 var(--button-shadow);
}

.product-card:hover::after {
  opacity: 1;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-fuchsia-light));
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  line-height: 1.3;
  color: var(--button-text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--accent-fuchsia);
  margin-top: auto;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  padding: 24px var(--link-gap);
  text-align: center;
  margin-top: auto;
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.profile-header {
  animation: fadeInUp 0.6s ease-out forwards;
}

.tab-nav {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

.tab-content-wrapper {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.social-section {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.footer {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.profile-logo {
  animation: float 2.5s ease-in-out infinite;
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 480px) {
  body {
    border-radius: 0;
  }

  .profile-logo {
    width: 350px;
    height: 140px;
    margin: -145px auto 12px;
  }

  .profile-bio {
    font-size: 14px;
    padding: 0 20px;
    margin-top: 8px;
    color: var(--text-primary);
    opacity: 1;
    z-index: 20;
    position: relative;
  }
}

/* ===== CSS WATERMARK (invisible but detectable) ===== */
body::before {
  content: 'FREESIA-ORIGINAL-A7B3C9D2';
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0.001;
  pointer-events: none;
  font-size: 1px;
}

/* ===== INSTAGRAM POPUP - DESKTOP ===== */
.instagram-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10010;
  align-items: flex-start;
  justify-content: center;
  padding: 350px var(--link-gap) 40px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.instagram-popup.active {
  display: flex;
}

.instagram-popup-content {
  position: relative;
  width: 95%;
  max-width: 500px;
  max-height: calc(100vh - 120px);
  min-height: 0;
  background: white;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  flex-shrink: 1;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  align-self: flex-start;
  cursor: default;
}

.instagram-profile {
  width: 100%;
  padding: 16px 56px 16px 24px;
  flex-shrink: 0;
}

.instagram-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.instagram-popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.instagram-popup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  font-family: Inter, sans-serif;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 0;
}

.snapwidget-widget-popup,
.instagram-feed-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  border: none !important;
  display: block !important;
  flex: 1;
  overflow: hidden !important;
}

.instagram-profile {
  width: 100%;
  padding: 16px 24px;
  flex-shrink: 0;
}

.instagram-profile-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 0;
}

.instagram-profile-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  flex-shrink: 0;
}

.instagram-profile-info {
  overflow: hidden;
  flex: 1;
}

.instagram-username {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.instagram-name {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-separator {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  flex-shrink: 0;
}

.instagram-followers {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.instagram-feed-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  font-family: Inter, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  margin-top: 8px;
}

.instagram-feed-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  border: none !important;
  display: block !important;
}

.instagram-popup-footer {
  position: relative;
  background: white;
  padding: 16px;
  z-index: 20;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.instagram-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #000;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 16px;
}

.instagram-follow-btn:hover {
  background: #333;
}

.instagram-footer-title {
  margin: -4px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.instagram-powered {
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff5f8, #ffe4f1);
  border: 1px solid rgba(199, 21, 133, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(199, 21, 133, 0.12);
}

.instagram-powered p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(45, 27, 62, 0.55);
  margin: 0;
}

.instagram-powered-icon {
  width: 25px;
  height: 25px;
  display: block;
}

.instagram-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 30;
}

.instagram-popup-close:hover {
  background: #f5f5f5;
}

.instagram-popup-close:active {
  transform: scale(0.95);
}

#instagramFeedBtn {
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#instagramFeedBtn:hover {
  transform: translateY(-2px);
}

#instagramFeedBtn:active {
  transform: translateY(0);
}

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 480px) {
  .verified-badge {
    bottom: 35px;
    right: 10px;
    width: 24px;
    height: 24px;
  }

  .instagram-popup {
    padding: 500px 16px 16px;
    align-items: flex-start;
  }

  .instagram-popup-content {
    width: 88%;
    max-width: 360px;
    max-height: 70vh;
    min-height: 0;
    border-radius: 16px;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: hidden;
  }

  .instagram-popup-header {
    height: 48px;
    padding: 0 12px;
  }

  .instagram-popup-header h2 {
    font-size: 14px;
  }

  .instagram-profile {
    padding: 12px 52px 12px 16px;
  }

  .instagram-popup-close-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .instagram-profile-img {
    width: 40px;
    height: 40px;
  }

  .instagram-popup-footer {
    padding: 12px;
  }

  .instagram-follow-btn {
    height: 42px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .snapwidget-widget-popup,
  .instagram-feed-container iframe {
    min-height: 240px !important;
    height: 100%;
    width: 100% !important;
  }
}

.featured-more-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hwb(0 98% 2% / 0.9);
  color: var(--accent-fuchsia);
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#instagramFeedBtn:hover .featured-more-icon {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snapwidget-widget-popup {
  width: 100%;
  min-height: 350px;
  height: auto;
  flex: 1;
  display: block;
}

.instagram-feed-container iframe {
  width: 100%;
  min-height: 350px;
  height: 100%;
  flex: 1;
  display: block;
}

.instagram-feed-single {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instagram-post-item {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.instagram-post-item img {
  width: 100%;
  height: auto;
  display: block;
}

.instagram-post-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.instagram-post-date {
  padding: 0 16px 12px;
  font-size: 12px;
  color: #999;
}
