﻿/* ============================================================
   PERCENT PRIVÉ — Loyalty Design System v2.0
   Deep black + Champagne gold + Ivory
   ============================================================ */

:root {
  /* ── Primary palette ── */
  --prive-black:        #0a0a0a;
  --prive-black-2:      #16161a;
  --prive-black-deep:   #050505;

  --prive-champagne:    #c9a961;
  --prive-champagne-lt: #e8d4a2;
  --prive-champagne-dk: #a8874a;

  --prive-ivory:        #f5f1e8;
  --prive-ivory-2:      #faf8f3;
  --prive-cream:        #ebe5d6;

  --prive-text-dark:    #1a1a1a;
  --prive-text-muted:   #6b6459;
  --prive-border:       rgba(201,169,97,.22);
  --prive-border-hover: rgba(201,169,97,.55);

  /* ── Tier colors ── */
  --tier-essential: #8b7355;
  --tier-noir:      #2c2c2c;
  --tier-or:        #c9a961;
  --tier-prive:     #4a3560;

  /* ── System ── */
  --prive-ease: cubic-bezier(.22,1,.36,1);
  --prive-shadow-sm: 0 4px 16px rgba(10,10,10,.08);
  --prive-shadow-md: 0 12px 40px rgba(10,10,10,.14);
  --prive-shadow-lg: 0 30px 80px rgba(10,10,10,.24);
}

/* ══════════════════════════════════════════════════════════
   HERO — PRIVÉ STYLE
   ══════════════════════════════════════════════════════════ */
.prive-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, #1a1a1a 0%, var(--prive-black) 45%, var(--prive-black-deep) 100%);
  color: #fff;
}

.prive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,169,97,.18), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(201,169,97,.10), transparent 40%);
}

.prive-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(201,169,97,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,.04) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}

.prive-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.prive-orb.o1 {
  width: 560px; height: 560px;
  background: rgba(201,169,97,.20);
  top: -180px; inset-inline-end: -180px;
  animation: prive-drift 16s ease-in-out infinite;
}
.prive-orb.o2 {
  width: 460px; height: 460px;
  background: rgba(201,169,97,.08);
  bottom: -180px; inset-inline-start: -160px;
  animation: prive-drift 22s ease-in-out infinite reverse;
}
@keyframes prive-drift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px,-40px); }
}

.prive-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.prive-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 40px;
  background: rgba(201,169,97,.12);
  border: 1px solid rgba(201,169,97,.42);
  color: var(--prive-champagne);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: 4px;
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
}

.prive-badge i {
  color: var(--prive-champagne);
  font-size: .7rem;
}

.prive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 700;
}

.prive-hero h1 .accent {
  background: linear-gradient(100deg, #a8874a 0%, #c9a961 22%, #e8d4a2 45%, #c9a961 68%, #a8874a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: prive-shine 6s linear infinite;
}
@keyframes prive-shine {
  to { background-position: 220% center; }
}

.prive-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--prive-champagne-lt);
  margin-bottom: 22px;
  letter-spacing: 1.5px;
}

.prive-desc {
  font-size: 1.05rem;
  color: #a8a29b;
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.9;
}

.prive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.prive-stat {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,169,97,.18);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all .45s var(--prive-ease);
}
.prive-stat:hover {
  background: rgba(201,169,97,.08);
  transform: translateY(-4px);
  border-color: rgba(201,169,97,.45);
}
.prive-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--prive-champagne);
  font-weight: 800;
  line-height: 1;
}
.prive-stat small {
  display: block;
  font-size: .68rem;
  color: #8a8478;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   LOGIN CARD — PRIVÉ STYLE
   ══════════════════════════════════════════════════════════ */
.prive-login-wrap {
  position: relative;
  perspective: 1200px;
}

.prive-login {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid rgba(201,169,97,.32);
  border-radius: 26px;
  padding: 40px 34px 34px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 40px 90px rgba(0,0,0,.55),
    0 0 70px rgba(201,169,97,.08);
  animation: prive-float 7s ease-in-out infinite;
}
@keyframes prive-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.prive-login::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, transparent, var(--prive-champagne), transparent);
}

.prive-login-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201,169,97,.22), rgba(201,169,97,.04));
  border: 1px solid rgba(201,169,97,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prive-champagne);
  font-size: 1.75rem;
  box-shadow: 0 0 0 12px rgba(201,169,97,.05);
  position: relative;
}
.prive-login-icon::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(201,169,97,.25);
  animation: prive-spin 22s linear infinite;
}
@keyframes prive-spin {
  to { transform: rotate(360deg); }
}

.prive-login h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.prive-login .sub {
  font-size: .82rem;
  color: #8a8478;
  text-align: center;
  margin-bottom: 26px;
  font-weight: 700;
}

.prive-field {
  position: relative;
  margin-bottom: 14px;
}
.prive-field .flag {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  font-size: .95rem;
  color: var(--prive-champagne);
  font-weight: 800;
  pointer-events: none;
  direction: ltr;
}
.prive-field input {
  width: 100%;
  padding: 16px 22px 16px 78px;
  border-radius: 14px;
  border: 1.5px solid rgba(201,169,97,.28);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  outline: none;
  transition: all .3s ease;
  direction: ltr;
  text-align: start;
  font-family: inherit;
}
.prive-field input::placeholder {
  color: #5c5648;
  letter-spacing: 1px;
  font-weight: 400;
}
.prive-field input:focus {
  border-color: var(--prive-champagne);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 4px rgba(201,169,97,.14);
}

.prive-error {
  display: none;
  font-size: .76rem;
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 12px;
  padding-inline-start: 4px;
}
.prive-error.show {
  display: block;
  animation: prive-shake .4s ease;
}
@keyframes prive-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.prive-submit {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--prive-champagne), var(--prive-champagne-lt), var(--prive-champagne));
  background-size: 200% auto;
  color: var(--prive-black);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .3s ease;
  box-shadow: 0 8px 24px rgba(201,169,97,.28);
  animation: prive-shine 4s linear infinite;
  margin-bottom: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.prive-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201,169,97,.42);
}
.prive-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.prive-hint {
  text-align: center;
  font-size: .72rem;
  color: #8a8478;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201,169,97,.18);
  margin-top: 10px;
  letter-spacing: .5px;
}
.prive-hint i {
  color: var(--prive-champagne);
}

/* ══════════════════════════════════════════════════════════
   MEMBER CARD — PRIVÉ BLACK EDITION
   ══════════════════════════════════════════════════════════ */
.prive-member-section {
  padding: 100px 0 60px;
  background: var(--prive-ivory-2);
  display: none;
}
.prive-member-section.show {
  display: block;
}

.prive-member-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto 38px;
  border-radius: 28px;
  padding: 42px 40px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--prive-black-2) 0%, var(--prive-black) 55%, var(--prive-black-deep) 100%);
  box-shadow: 0 40px 90px rgba(10,10,10,.35), 0 0 60px rgba(201,169,97,.10);
  border: 1px solid rgba(201,169,97,.35);
}
.prive-member-card::before {
  content: '';
  position: absolute;
  top: -120px;
  inset-inline-end: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.20), transparent 68%);
  pointer-events: none;
}
.prive-member-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(201,169,97,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
}

.prive-member-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.prive-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.prive-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--prive-champagne), var(--prive-champagne-dk));
  color: var(--prive-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 30px rgba(201,169,97,.28);
}

.prive-member-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 4px;
}

.prive-member-phone {
  font-size: .82rem;
  color: #8a8478;
  font-weight: 700;
  direction: ltr;
  letter-spacing: 1.5px;
}

.prive-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: 2px;
  background: rgba(201,169,97,.10);
  border: 1px solid rgba(201,169,97,.5);
  color: var(--prive-champagne-lt);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.prive-tier-badge i {
  font-size: .9rem;
}

.prive-tier-progress {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(201,169,97,.22);
}

.prive-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .76rem;
  font-weight: 800;
  color: #8a8478;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.prive-tier-head strong {
  color: var(--prive-champagne-lt);
  font-size: .82rem;
}

.prive-tier-bar {
  height: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.prive-tier-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--prive-champagne-dk), var(--prive-champagne), var(--prive-champagne-lt));
  transition: width 1.2s var(--prive-ease);
  box-shadow: 0 0 20px rgba(201,169,97,.55);
}

.prive-tier-foot {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: #6b6459;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: .5px;
}

.prive-points-wrap {
  text-align: end;
}
.prive-points-label {
  font-size: .7rem;
  color: #8a8478;
  letter-spacing: 4px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.prive-points-value {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--prive-champagne);
  line-height: 1;
  letter-spacing: 1px;
}
.prive-points-value small {
  font-size: 1rem;
  color: var(--prive-champagne-lt);
  margin-inline-start: 8px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.prive-member-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  justify-content: flex-end;
}

.prive-action-btn {
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,169,97,.28);
  color: var(--prive-champagne-lt);
  font-weight: 800;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s var(--prive-ease);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: inherit;
}
.prive-action-btn:hover {
  background: rgba(201,169,97,.15);
  border-color: var(--prive-champagne);
  transform: translateY(-2px);
  color: #fff;
}

/* Mini stats */
.prive-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}
.prive-mini-stat {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,169,97,.18);
  text-align: center;
}
.prive-mini-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--prive-champagne);
  font-weight: 800;
  line-height: 1;
}
.prive-mini-stat small {
  display: block;
  font-size: .68rem;
  color: #8a8478;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   TIERS — PRIVÉ SECTION
   ══════════════════════════════════════════════════════════ */
.prive-tiers-section {
  padding: 110px 0;
  background: var(--prive-ivory);
  position: relative;
  overflow: hidden;
}

.prive-section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-inline: auto;
}

.prive-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--prive-champagne-dk);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.prive-eyebrow::before,
.prive-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--prive-champagne-dk));
}
.prive-eyebrow::after {
  background: linear-gradient(90deg, var(--prive-champagne-dk), transparent);
}

.prive-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--prive-black);
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: 1px;
}
.prive-section-header h2 .accent {
  color: var(--prive-champagne-dk);
  font-style: italic;
}
.prive-section-header p {
  color: var(--prive-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.prive-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prive-tier-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(10,10,10,.08);
  padding: 30px 24px 26px;
  transition: all .45s var(--prive-ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prive-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: var(--tier-color, var(--prive-champagne));
}
.prive-tier-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(10,10,10,.14);
  border-color: var(--prive-champagne);
}

.prive-tier-card.current {
  box-shadow: 0 30px 80px rgba(201,169,97,.25);
  border-color: var(--prive-champagne);
}
.prive-tier-card.current::after {
  content: 'مستواك الحالي';
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--prive-champagne);
  color: var(--prive-black);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.prive-tier-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--tier-bg, var(--prive-champagne));
  color: #fff;
  box-shadow: 0 10px 28px rgba(10,10,10,.18);
  border: 2px solid rgba(255,255,255,.4);
  position: relative;
  z-index: 2;
}

.prive-tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--prive-black);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.prive-tier-min {
  font-size: .76rem;
  color: var(--prive-text-muted);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}
.prive-tier-min strong {
  color: var(--prive-champagne-dk);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: .5px;
}

.prive-tier-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.prive-tier-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--prive-text-muted);
  font-weight: 700;
  line-height: 1.55;
}
.prive-tier-benefit i {
  color: var(--prive-champagne-dk);
  font-size: .7rem;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .prive-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .prive-hero {
    padding: 140px 0 70px;
    min-height: auto;
  }
  .prive-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .prive-desc {
    margin-inline: auto;
  }
  .prive-stats {
    max-width: 480px;
    margin-inline: auto;
  }
  .prive-member-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .prive-points-wrap {
    text-align: center;
  }
  .prive-member-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .prive-hero h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }
  .prive-login {
    padding: 30px 22px 26px;
  }
  .prive-member-card {
    padding: 28px 22px;
    border-radius: 22px;
  }
  .prive-points-value {
    font-size: 2.4rem;
  }
  .prive-mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .prive-tiers-grid {
    grid-template-columns: 1fr;
  }
  .prive-member-actions {
    flex-direction: column;
  }
  .prive-action-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .prive-hero h1 {
    font-size: 2rem;
  }
  .prive-stats {
    grid-template-columns: 1fr;
  }
  .prive-mini-stats {
    grid-template-columns: 1fr;
  }
  .prive-avatar-row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .prive-member-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prive-hero *,
  .prive-hero *::before,
  .prive-hero *::after,
  .prive-login,
  .prive-login-icon::before {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}