:root {
  --brown: #4D2301;
  --bg: #FDFBF7;
  --gold: #D4A24C;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--brown);
  font-family: "Tajawal", "Cairo", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 40px) 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(24px, 6vw, 36px);
}

.logo {
  width: clamp(272px, 71vw, 374px);
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.logo-tagline {
  margin: 4px 0 0;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 500;
  color: var(--brown);
  text-align: center;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(32px, 8vw, 48px);
}

.share-section {
  margin-bottom: 0;
}

.heading {
  font-weight: 800;
  font-size: clamp(20px, 5.4vw, 26px);
  color: var(--brown);
  text-align: center;
  margin: 0 0 clamp(22px, 5vw, 32px);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.heading-underline-wrap {
  position: relative;
  display: inline-block;
}

.brush-underline {
  position: absolute;
  right: -2%;
  left: -2%;
  bottom: -6px;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  border-radius: 50%;
  transform: rotate(-1deg) scaleY(0.9);
  opacity: 0.85;
}

.subheading {
  font-size: clamp(13px, 3.4vw, 15px);
  color: var(--brown);
  text-align: center;
  margin: -14px 0 26px;
  opacity: 0.85;
}

.social-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 4vw, 22px) clamp(10px, 3vw, 18px);
  justify-content: center;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brown);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.social-card:hover,
.social-card:active {
  transform: scale(1.05);
}

.icon-square {
  position: relative;
  width: clamp(58px, 17vw, 76px);
  height: clamp(58px, 17vw, 76px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(77, 35, 1, 0.18);
}

.icon-svg {
  width: 55%;
  height: 55%;
  color: #fff;
  position: relative;
  z-index: 1;
}

.icon-square.tiktok { background: #1c2733; }
.icon-square.instagram { background: linear-gradient(135deg, #f5576c, #d6249f); }
.icon-square.youtube { background: #ff0000; }
.icon-square.facebook { background: #1877f2; }
.icon-square.xapp { background: #16202b; }
.icon-square.telegram { background: #29a9eb; }

/* Shimmer sweep effect */
.icon-square::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmer-sweep 3.2s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0% { left: -150%; }
  45% { left: 150%; }
  100% { left: 150%; }
}

.social-label {
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 600;
}

.pill-row {
  width: 100%;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pill-btn {
  flex: 1;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  border-radius: 999px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(13px, 3.4vw, 15px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 10px rgba(77, 35, 1, 0.08);
}

.pill-btn:hover,
.pill-btn:active {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(77, 35, 1, 0.15);
}

.pill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-svg-sm {
  width: 100%;
  height: 100%;
}

.whatsapp-icon { color: #25D366; }
.telegram-icon { color: #29a9eb; }

.pill-arrow {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 360px) {
  .social-grid {
    gap: 12px 8px;
  }
}
