/**
 * Rajshahi To-Let • Fixed ৳20 bKash Unlock System Stylesheet
 * 
 * Mobile-first, responsive, clean CSS for:
 * - Masked and Locked property details cards
 * - bKash payment CTA and checkout confirmation
 * - Unlocked verified contact badges and direct actions
 * - My Unlocked Properties user portal
 */

:root {
  --bkash-pink: #E2136E;
  --bkash-pink-hover: #C70F60;
  --bkash-pink-light: #FDF2F7;
  --bkash-pink-border: #F8B4D2;
  --rajshahi-green: #0D9488;
  --rajshahi-green-dark: #0F766E;
  --rajshahi-green-light: #F0FDFA;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --border-color: #E2E8F0;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --gold: #D97706;
}

/* -----------------------------------------------------------------------------
 * 1. LOCKED PROPERTY SECTION & CTA
 * ----------------------------------------------------------------------------- */
.unlock-gate-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF2F7 100%);
  border: 2px solid var(--bkash-pink-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(226, 19, 110, 0.08), 0 8px 10px -6px rgba(226, 19, 110, 0.04);
  margin: 24px 0;
}

.unlock-gate-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(226, 19, 110, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.unlock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.unlock-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unlock-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bkash-pink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(226, 19, 110, 0.3);
}

.unlock-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px 0;
}

.unlock-subtitle {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin: 0;
}

.unlock-price-pill {
  background: var(--bkash-pink);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(226, 19, 110, 0.25);
}

/* Masked info preview box */
.masked-preview-box {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.masked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
}

.masked-item:last-child {
  border-bottom: none;
}

.masked-label {
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.masked-value {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.masked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--bkash-pink);
  background: var(--bkash-pink-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* Benefits list */
.unlock-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.unlock-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 10px;
}

.unlock-check-icon {
  width: 18px;
  height: 18px;
  color: #10B981;
  flex-shrink: 0;
}

/* Official bKash Action Button */
.btn-bkash-unlock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background-color: var(--bkash-pink);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 14px rgba(226, 19, 110, 0.35);
}

.btn-bkash-unlock:hover {
  background-color: var(--bkash-pink-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 19, 110, 0.45);
}

.bkash-logo-badge {
  background: #FFFFFF;
  color: var(--bkash-pink);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------------------
 * 2. UNLOCKED SUCCESS CARD & ACTIONS
 * ----------------------------------------------------------------------------- */
.unlocked-success-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border: 2px solid #86EFAC;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.08);
}

.unlocked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #DCFCE7;
}

.unlocked-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #15803D;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
}

.unlocked-meta {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.unlocked-meta strong {
  color: var(--slate-800);
}

.unlocked-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .unlocked-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.unlocked-info-cell {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
}

.unlocked-info-label {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.unlocked-info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
}

/* Action button group */
.unlocked-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .unlocked-action-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-call-owner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #059669;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-call-owner:hover {
  background: #047857;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-whatsapp-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-chat:hover {
  background: var(--whatsapp-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-map-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.2s ease;
}

.btn-map-location:hover {
  background: #2563EB;
  color: #FFFFFF;
}

/* -----------------------------------------------------------------------------
 * 3. CHECKOUT CONFIRMATION SCREEN (unlock.php)
 * ----------------------------------------------------------------------------- */
.checkout-wrapper {
  max-width: 620px;
  margin: 40px auto;
  padding: 0 16px;
}

.checkout-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.checkout-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.checkout-step-badge {
  display: inline-block;
  background: var(--bkash-pink-light);
  color: var(--bkash-pink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-property-summary {
  display: flex;
  gap: 16px;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.checkout-prop-thumb {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #CBD5E1;
}

.checkout-prop-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.checkout-prop-info p {
  font-size: 0.825rem;
  color: var(--slate-600);
  margin: 0;
}

.checkout-amount-table {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.amount-row.total {
  border-top: 2px dashed #E2E8F0;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bkash-pink);
}

.checkout-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--slate-500);
  margin-top: 20px;
  justify-content: center;
}

/* -----------------------------------------------------------------------------
 * 4. MY UNLOCKED PROPERTIES LIST (my-unlocks.php)
 * ----------------------------------------------------------------------------- */
.unlocks-dashboard-container {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 16px;
}

.unlocks-page-header {
  margin-bottom: 28px;
}

.unlocks-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 6px 0;
}

.unlocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .unlocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.unlocked-listing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unlocked-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.unlocked-card-header {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.unlocked-card-thumb {
  width: 80px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E2E8F0;
}

.unlocked-card-body {
  padding: 0 16px 16px 16px;
  flex: 1;
}

.unlocked-card-contact-row {
  background: var(--slate-50);
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}

.contact-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rajshahi-green-dark);
  text-decoration: none;
}

.unlocked-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.unlocked-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}
