/* ===================================================================
   فارم أكاونت — Premium v3
   WhatsApp mockup · Comparison table · Dashboard preview · Quick actions
   =================================================================== */

/* ===== WHATSAPP CHAT MOCKUP ===== */
.pl-wa-section {
  background: linear-gradient(135deg, #FAF6EC 0%, #F5F0E3 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.pl-wa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 1024px) {
  .pl-wa-grid { grid-template-columns: 1fr; gap: 40px; }
}
.pl-wa-copy h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: #3A4A2B;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.pl-wa-copy h2 .gold { color: #B8862F; }
.pl-wa-copy p {
  color: rgba(26,26,26,0.75);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 20px;
}
.pl-wa-copy ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.pl-wa-copy li {
  padding: 8px 0;
  font-family: 'Cairo', sans-serif;
  color: rgba(26,26,26,0.8);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pl-wa-copy li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  margin-top: 2px;
}

/* WhatsApp phone mockup */
.pl-wa-phone {
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.1);
  position: relative;
}
.pl-wa-phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  z-index: 2;
}
.pl-wa-screen {
  background: #e5ddd5;
  border-radius: 26px;
  overflow: hidden;
  height: 580px;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(229, 221, 213, 0.92), rgba(229, 221, 213, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23999'/%3E%3C/svg%3E");
}
.pl-wa-header {
  background: #075e54;
  color: white;
  padding: 36px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cairo', sans-serif;
  flex-shrink: 0;
}
.pl-wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B8862F, #D4A248);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.pl-wa-info {
  flex: 1;
  min-width: 0;
}
.pl-wa-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pl-wa-name::after {
  content: '✓';
  width: 16px;
  height: 16px;
  background: #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}
.pl-wa-status {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.pl-wa-status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
  margin-left: 4px;
}
.pl-wa-actions {
  display: flex;
  gap: 16px;
  color: rgba(255,255,255,0.85);
}
.pl-wa-actions svg { width: 20px; height: 20px; }
.pl-wa-messages {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-wa-date {
  text-align: center;
  background: rgba(225,245,254,0.92);
  color: rgba(0,0,0,0.55);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: center;
  margin: 4px 0;
}
.pl-wa-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1a1a1a;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: pl-wa-msg 0.4s forwards;
  word-wrap: break-word;
}
.pl-wa-bubble strong { color: #075e54; font-weight: 700; }
.pl-wa-bubble.in {
  background: white;
  align-self: flex-start;
  border-top-right-radius: 2px;
}
.pl-wa-bubble.out {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-left-radius: 2px;
}
.pl-wa-time {
  display: block;
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  text-align: end;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.pl-wa-time .checks { color: #34b7f1; }
.pl-wa-bubble:nth-child(1) { animation-delay: 0.2s; }
.pl-wa-bubble:nth-child(2) { animation-delay: 0.6s; }
.pl-wa-bubble:nth-child(3) { animation-delay: 1.0s; }
.pl-wa-bubble:nth-child(4) { animation-delay: 1.4s; }
.pl-wa-bubble:nth-child(5) { animation-delay: 1.8s; }
.pl-wa-bubble:nth-child(6) { animation-delay: 2.2s; }
.pl-wa-bubble:nth-child(7) { animation-delay: 2.6s; }
@keyframes pl-wa-msg {
  to { opacity: 1; transform: translateY(0); }
}
.pl-wa-typing {
  align-self: flex-start;
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  border-top-right-radius: 2px;
  display: inline-flex;
  gap: 4px;
  opacity: 0;
  animation: pl-wa-msg 0.4s 3.0s forwards;
}
.pl-wa-typing span {
  width: 7px;
  height: 7px;
  background: #999;
  border-radius: 50%;
  animation: pl-wa-blink 1.4s infinite;
}
.pl-wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.pl-wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pl-wa-blink {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.pl-wa-input {
  background: #f0f0f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pl-wa-input-box {
  flex: 1;
  background: white;
  border-radius: 24px;
  padding: 9px 14px;
  color: rgba(0,0,0,0.4);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}
.pl-wa-send {
  background: #075e54;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* ===== COMPARISON TABLE ===== */
.pl-compare {
  padding: 80px 0;
  background: white;
}
.pl-compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.pl-compare h2 {
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: #3A4A2B;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
  line-height: 1.2;
}
.pl-compare h2 .gold { color: #B8862F; }
.pl-compare-sub {
  text-align: center;
  color: rgba(26,26,26,0.7);
  font-family: 'Cairo', sans-serif;
  margin-bottom: 48px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.pl-compare-table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(184,134,47,0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(58,74,43,0.08);
  font-family: 'Cairo', sans-serif;
}
@media (max-width: 768px) {
  .pl-compare-table { grid-template-columns: 1fr; gap: 0; }
  .pl-compare-table > * { border-bottom: 1px solid rgba(184,134,47,0.15); }
}
.pl-cmp-cell { background: white; padding: 16px 18px; display: flex; align-items: center; }
.pl-cmp-header {
  background: linear-gradient(135deg, #FAF6EC, #F5F0E3) !important;
  padding: 24px 18px !important;
  font-weight: 800;
  font-size: 15px;
  color: #3A4A2B;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: right;
}
.pl-cmp-header.us {
  background: linear-gradient(135deg, #3A4A2B, #2A3621) !important;
  color: #D4A248;
  position: relative;
}
.pl-cmp-header.us::before {
  content: 'الأفضل';
  position: absolute;
  top: -1px;
  right: 12px;
  background: #B8862F;
  color: white;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}
.pl-cmp-header .price {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}
.pl-cmp-feature {
  font-weight: 700;
  color: #3A4A2B;
  font-size: 14px;
  text-align: right;
}
.pl-cmp-yes, .pl-cmp-no, .pl-cmp-mid {
  justify-content: center;
  font-size: 13px;
  color: rgba(26,26,26,0.75);
  text-align: center;
  flex-direction: column;
  gap: 2px;
}
.pl-cmp-yes::before, .pl-cmp-no::before, .pl-cmp-mid::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 4px;
}
.pl-cmp-yes::before { content: '✓'; background: #25D366; color: white; }
.pl-cmp-no::before { content: '✕'; background: #fee2e2; color: #dc2626; }
.pl-cmp-mid::before { content: '~'; background: #fef3c7; color: #d97706; }
.pl-cmp-us {
  background: rgba(184,134,47,0.06) !important;
}
.pl-cmp-us.pl-cmp-yes::before {
  background: linear-gradient(135deg, #B8862F, #D4A248);
  box-shadow: 0 2px 8px rgba(184,134,47,0.4);
}

/* ===== DASHBOARD PREVIEW ===== */
.pl-dash {
  padding: 80px 0;
  background: linear-gradient(180deg, #FAF6EC 0%, #F5F0E3 100%);
}
.pl-dash-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.pl-dash-header { text-align: center; margin-bottom: 48px; }
.pl-dash-header h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: #3A4A2B;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.pl-dash-header h2 .gold { color: #B8862F; }
.pl-dash-header p {
  color: rgba(26,26,26,0.7);
  font-family: 'Cairo', sans-serif;
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.pl-dashboard {
  background: white;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(58,74,43,0.15), 0 8px 24px rgba(58,74,43,0.05);
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  border: 1px solid rgba(184,134,47,0.15);
}
.pl-dash-bar {
  background: linear-gradient(90deg, #2A3621, #3A4A2B);
  color: #D4A248;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}
.pl-dash-bar-left { display: flex; align-items: center; gap: 10px; }
.pl-dash-bar-dot { width: 10px; height: 10px; border-radius: 50%; }
.pl-dash-content {
  padding: 28px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .pl-dash-content { grid-template-columns: 1fr; }
  .pl-dash-bar { font-size: 11px; }
}
.pl-dash-title {
  font-weight: 900;
  color: #3A4A2B;
  font-size: 22px;
  margin-bottom: 4px;
}
.pl-dash-sub {
  color: rgba(26,26,26,0.55);
  font-size: 13px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.pl-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pl-dash-kpi {
  background: linear-gradient(135deg, #FAF6EC, white);
  border-radius: 10px;
  padding: 14px;
  border-right: 3px solid #B8862F;
}
.pl-dash-kpi-label {
  font-size: 11px;
  color: rgba(26,26,26,0.55);
  margin-bottom: 4px;
  font-weight: 600;
}
.pl-dash-kpi-value {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  color: #3A4A2B;
  font-size: 22px;
  line-height: 1;
}
.pl-dash-kpi-change {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.pl-dash-kpi-change.up { color: #16a34a; }
.pl-dash-kpi-change.down { color: #dc2626; }
.pl-dash-chart {
  height: 180px;
  background: #FAF6EC;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}
.pl-dash-bar-chart {
  flex: 1;
  background: linear-gradient(180deg, #B8862F, #D4A248);
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: pl-dash-grow 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}
.pl-dash-bar-chart:nth-child(1) { --h: 38%; animation-delay: 0.1s; }
.pl-dash-bar-chart:nth-child(2) { --h: 52%; animation-delay: 0.2s; }
.pl-dash-bar-chart:nth-child(3) { --h: 48%; animation-delay: 0.3s; }
.pl-dash-bar-chart:nth-child(4) { --h: 65%; animation-delay: 0.4s; }
.pl-dash-bar-chart:nth-child(5) { --h: 72%; animation-delay: 0.5s; }
.pl-dash-bar-chart:nth-child(6) { --h: 88%; animation-delay: 0.6s; background: linear-gradient(180deg, #16a34a, #22c55e); }
@keyframes pl-dash-grow {
  to { transform: scaleY(1); }
}
.pl-dash-bar-chart::after {
  content: attr(data-month);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(26,26,26,0.6);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.pl-dash-bar-chart::before {
  content: attr(data-value);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #3A4A2B;
  font-family: 'Inter', sans-serif;
}

.pl-dash-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-dash-side-card {
  background: linear-gradient(135deg, #FAF6EC, white);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(184,134,47,0.15);
}
.pl-dash-side-card h4 {
  font-size: 12px;
  color: rgba(26,26,26,0.6);
  margin-bottom: 8px;
  font-weight: 600;
}
.pl-dash-side-list { font-size: 13px; }
.pl-dash-side-list > div {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(184,134,47,0.2);
  display: flex;
  justify-content: space-between;
}
.pl-dash-side-list > div:last-child { border-bottom: none; }
.pl-dash-side-list b {
  font-family: 'Inter', sans-serif;
  color: #3A4A2B;
}

.pl-dash-cta {
  text-align: center;
  margin-top: 32px;
}
.pl-dash-cta-text {
  color: rgba(26,26,26,0.65);
  font-family: 'Cairo', sans-serif;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ===== FLOATING QUICK ACTIONS (desktop sidebar) ===== */
.pl-quick {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pl-quick.pl-visible {
  opacity: 1;
  visibility: visible;
}
.pl-quick-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: #3A4A2B;
  border: 1px solid rgba(184,134,47,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(58,74,43,0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}
.pl-quick-btn:hover {
  background: #3A4A2B;
  color: #D4A248;
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(58,74,43,0.25);
}
.pl-quick-btn.wa { background: #25D366; color: white; border-color: #25D366; }
.pl-quick-btn.wa:hover { background: #1ea952; color: white; }
.pl-quick-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pl-quick-btn:hover .pl-quick-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 1024px) { .pl-quick { display: none; } }

/* ===== LIVE STATS BANNER ===== */
.pl-stats-band {
  background: linear-gradient(90deg, #3A4A2B, #2A3621, #3A4A2B);
  color: #EFE7D6;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.pl-stats-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184,134,47,0.15), transparent);
  animation: pl-stats-shimmer 8s linear infinite;
}
@keyframes pl-stats-shimmer {
  to { left: 100%; }
}
.pl-stats-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Cairo', sans-serif;
  position: relative;
  z-index: 1;
}
.pl-stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pl-stats-item b {
  color: #D4A248;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
}
.pl-stats-divider {
  width: 1px;
  height: 16px;
  background: rgba(212,162,72,0.3);
}
@media (max-width: 768px) {
  .pl-stats-band { padding: 10px 12px; }
  .pl-stats-divider { display: none; }
  .pl-stats-item { font-size: 12px; }
  .pl-stats-item b { font-size: 14px; }
}
