/* =========================================================
   BakaLink Smart Card — Personal Profile Landing Page
   Mobile-first
   ========================================================= */

:root{
  --navy: #071C2C;
  --navy-soft: #0B2A42;
  --blue: #0066FF;
  --cyan: #00B8D9;
  --teal: #00D4B8;
  --light: #F7FAFC;
  --white: #FFFFFF;
  --gray-500: #64748B;
  --gray-100: #EEF3F7;

  --gradient-brand: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 60%, var(--teal) 100%);
  --gradient-dark: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);

  --shadow-md: 0 12px 32px rgba(7, 28, 44, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 28, 44, 0.18);
  --radius-lg: 28px;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  min-height: 100%;
}

body{
  font-family: 'Cairo', Arial, sans-serif;
  background: var(--gradient-dark);
  color: var(--navy);
  direction: rtl;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 40px;
  position: relative;
  overflow-x: hidden;
}

.bg-decor{
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(480px 320px at 15% 0%, rgba(0,102,255,.35), transparent 60%),
    radial-gradient(420px 320px at 85% 100%, rgba(0,212,184,.28), transparent 60%);
  pointer-events: none;
}

.card{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 34px 24px 28px;
  box-shadow: var(--shadow-lg);
  animation: rise .6s ease both;
}

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

.brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(7,28,44,.08);
  margin-bottom: 22px;
}
.brand-dot{
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px;
}

.photo-wrap{
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md), 0 0 0 5px rgba(0,102,255,.12);
  background: var(--gray-100);
}
.photo-circle{ border-radius: 50%; }
.photo-square{ border-radius: 32px; }
.photo-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name{
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.4;
}
.tagline{
  font-size: 14.5px;
  color: var(--gray-500);
  font-weight: 600;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tagline svg{ flex-shrink: 0; }

.actions{
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
}

.action-btn{
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: right;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--navy);
  text-decoration: none;
}
.action-btn:active{ transform: scale(0.98); }
.action-btn:hover{ box-shadow: var(--shadow-md); border-color: transparent; }

.action-btn .icon{
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.action-btn.wa .icon{ background: #25D366; }
.action-btn.call .icon{ background: var(--gradient-brand); }
.action-btn.ig .icon{ background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.action-btn.fb .icon{ background: #1877F2; }

.action-btn .text{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.action-btn .text b{ font-size: 16px; font-weight: 800; }
.action-btn .text small{ font-size: 13px; color: var(--gray-500); }

.action-btn .arrow{ flex-shrink: 0; }

.share-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0,102,255,.08);
  text-decoration: none;
  border: none;
}

.powered{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--gray-500);
}
.powered b{ color: var(--navy); font-size: 15px; }
.powered-tagline{ font-size: 11.5px; color: var(--gray-500); margin-bottom: 6px; }
.powered-contact{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.powered-contact a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.powered-contact a:hover{ color: var(--blue); }

@media (min-width: 480px){
  body{ align-items: center; }
  .card{ padding: 40px 32px 32px; }
  .photo-wrap{ width: 180px; height: 180px; }
}

@media (max-width: 360px){
  .photo-wrap{ width: 136px; height: 136px; }
  .name{ font-size: 22px; }
}
