/* ============================================================
   LUCKMATE — Global Design System
   assets/css/main.css
   Mobile-first. Tested: 320px → 1440px
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --pink:        #E91E8C;
  --pink-light:  #FF6BB5;
  --pink-pale:   #FFE8F5;
  --dark:        #1A0A2E;
  --dark2:       #2D1052;
  --coral:       #FF6B6B;
  --gold:        #FFD166;
  --cream:       #FFF8F5;
  --white:       #FFFFFF;
  --border:      rgba(233,30,140,0.15);
  --border-light:rgba(255,255,255,0.08);
  --text-muted:  rgba(255,255,255,0.45);
  --text-dim:    rgba(255,255,255,0.65);
  --input-bg:    rgba(255,255,255,0.05);
  --card-bg:     rgba(45,16,82,0.5);
  --nav-h:       64px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-pink: 0 8px 32px rgba(233,30,140,0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --transition:  all 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(36px, 8vw, 80px); font-weight: 900; }
h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 700; }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; font-family: var(--font-body); }
p  { color: var(--text-dim); line-height: 1.75; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1400px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,10,46,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(26,10,46,0.98); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}
.nav__logo span { color: var(--pink); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--white); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(26,10,46,0.98);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 20px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  z-index: 999;
}
.nav__drawer.open { transform: translateY(0); }
.nav__drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav__drawer a:last-child { border: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--pink);
  color: white;
  box-shadow: var(--shadow-pink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(233,30,140,0.5);
}
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  background: rgba(255,255,255,0.07);
  color: white;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover { background: rgba(255,255,255,0.12); }
.btn--outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--outline:hover { background: rgba(255,255,255,0.05); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Section Tag ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233,30,140,0.1);
  border: 1px solid rgba(233,30,140,0.2);
  color: var(--pink-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.form-group label .req { color: var(--pink); margin-left: 2px; }
.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.input:focus {
  border-color: var(--pink);
  background: rgba(233,30,140,0.05);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
}
.input::placeholder { color: rgba(255,255,255,0.2); }
.input--error { border-color: #ef4444; }
select.input option { background: var(--dark2); }
textarea.input { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 13px; color: #fca5a5; margin-top: 6px; }

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
  cursor: pointer;
}
.checkbox span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox span a { color: var(--pink-light); }

/* ── Alert / Flash messages ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert--error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert--success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #86efac; }
.alert--info    { background: rgba(233,30,140,0.1); border: 1px solid rgba(233,30,140,0.2); color: var(--pink-light); }
.alert--warning { background: rgba(234,179,8,0.1);  border: 1px solid rgba(234,179,8,0.3);  color: #fde68a; }

/* ── Badge / Chip ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.badge--pink    { background: rgba(233,30,140,0.15); color: var(--pink-light); }
.badge--gold    { background: rgba(255,209,102,0.15); color: var(--gold); }
.badge--green   { background: rgba(34,197,94,0.15);  color: #86efac; }
.badge--verified { background: var(--pink); color: white; }

/* ── Grid utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border-light); margin: 32px 0; }

/* ── Footer ── */
.footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0;
  transition: var(--transition);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.footer__socials a:hover { background: rgba(233,30,140,0.15); }

/* ── Page header (inner pages) ── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p  { font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ── Pricing cards ── */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}
.pricing-card--featured {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(233,30,140,0.12), rgba(45,16,82,0.8));
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(233,30,140,0.15);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: white;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card__name  { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.pricing-card__price { font-family: var(--font-display); font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.pricing-card__price small { font-size: 15px; font-family: var(--font-body); color: var(--text-muted); }
.pricing-card__period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card__features { list-style: none; margin-bottom: 28px; }
.pricing-card__features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card__features li::before { content: '✓'; color: var(--pink); font-weight: 700; flex-shrink: 0; }
.pricing-card__features li.off { color: var(--text-muted); }
.pricing-card__features li.off::before { content: '×'; color: rgba(255,255,255,0.2); }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Floating WhatsApp button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Auth pages layout ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  padding-top: calc(var(--nav-h) + 24px);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}
.auth-card__logo { text-align: center; margin-bottom: 32px; }
.auth-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 8px; }
.auth-card__sub   { font-size: 15px; text-align: center; color: var(--text-muted); margin-bottom: 32px; }

/* ── Blog ── */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--border); transform: translateY(-4px); }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; background: var(--dark2); }
.blog-card__body { padding: 24px; }
.blog-card__cat  { font-size: 11px; font-weight: 700; color: var(--pink-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.blog-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; color: white; line-height: 1.3; }
.blog-card__excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.blog-card__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }

/* ── Success story card ── */
.story-card {
  background: linear-gradient(135deg, rgba(45,16,82,0.6), rgba(26,10,46,0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}
.story-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  color: rgba(233,30,140,0.12);
  position: absolute;
  top: 8px; left: 20px;
  line-height: 1;
}
.story-card__text { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; position: relative; z-index: 1; }
.story-card__author { display: flex; align-items: center; gap: 12px; }
.story-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--coral)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.story-card__name   { font-size: 15px; font-weight: 700; }
.story-card__meta   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── PWA install banner ── */
.pwa-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 800;
  align-items: center;
  gap: 16px;
}
.pwa-banner.show { display: flex; }
.pwa-banner__text { flex: 1; font-size: 14px; }
.pwa-banner__text strong { display: block; margin-bottom: 2px; }
.pwa-banner__text span   { font-size: 12px; color: var(--text-muted); }
.pwa-banner__close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; }

/* ── Legal pages ── */
.legal-content h2 { font-size: 22px; margin: 40px 0 12px; color: white; font-family: var(--font-body); }
.legal-content h3 { font-size: 17px; margin: 24px 0 10px; color: var(--pink-light); font-family: var(--font-body); }
.legal-content p  { margin-bottom: 14px; font-size: 15px; color: var(--text-dim); }
.legal-content ul { margin: 12px 0 20px 24px; }
.legal-content ul li { font-size: 15px; color: var(--text-dim); margin-bottom: 8px; list-style: disc; }
.legal-content a  { color: var(--pink-light); }
.legal-content .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

/* ── Utility classes ── */
.text-pink    { color: var(--pink); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================================ */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .nav__links   { display: none; }
  .nav__burger  { display: flex; }
  .section      { padding: 60px 0; }
  .section--lg  { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .pricing-card--featured { transform: scale(1); }
  .auth-card { padding: 32px 24px; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  h1 { font-size: clamp(32px, 10vw, 52px); }
  h2 { font-size: clamp(24px, 7vw, 38px); }
  .container   { padding: 0 16px; }
  .section     { padding: 48px 0; }
  .card        { padding: 24px 20px; }
  .btn--lg     { padding: 16px 28px; font-size: 15px; }
  .footer__grid{ grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .auth-card   { padding: 28px 20px; border-radius: var(--radius-lg); }
  .blog-card__img { height: 160px; }
  .whatsapp-float { bottom: 80px; }
}

/* Small phones: ≤ 380px */
@media (max-width: 380px) {
  h1 { font-size: 30px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .nav__logo { font-size: 20px; }
}

/* ── Dark mode respects system preference ── */
/* Already dark — no changes needed */

/* ── Safe area for iPhone notch/home indicator ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .nav         { padding-top: env(safe-area-inset-top); }
  .pwa-banner  { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
