/* 
================================================================================
🇦🇪 DUBAI AI PROPERTY ANALYTICS — HIGH-DENSITY OBJECT STREAM TERMINAL
================================================================================
*/

:root {
  --bg-dark: #070a12;
  --bg-card: #0e1626;
  --bg-card-hover: #16223b;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-telegram: #229ed9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(7, 10, 18, 0.95);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo span {
  color: var(--accent-gold);
}

.btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-telegram {
  background: var(--accent-telegram);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
  background: #1c8cb4;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* Hero Compact Header */
.hero-compact {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(14, 22, 38, 0.3);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-compact h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}

.hero-compact p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.live-status-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--accent-green);
  text-align: right;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 1.5s infinite;
  margin-right: 6px;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Stream Section */
.stream-section {
  padding: 24px 0 50px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.f-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.f-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.f-btn:hover, .f-btn.active {
  background: rgba(34, 158, 217, 0.15);
  border-color: var(--accent-telegram);
  color: #fff;
}

/* Dense Deals Grid (2 Columns on Desktop) */
.deals-dense-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Compact High Density Deal Card */
.deal-card-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.deal-card-compact:hover {
  border-color: var(--accent-telegram);
  transform: translateY(-3px);
}

.card-media {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-card-compact:hover .card-media img {
  transform: scale(1.04);
}

.card-freshness {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 10, 18, 0.85);
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-disc-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-green);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.c-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.source-tag { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.auction-tag { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.trophy-tag { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.dev-tag { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.prime-tag { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.extreme-tag { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}

.card-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #070a12;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.n-item {
  display: flex;
  flex-direction: column;
}

.n-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.price-bold {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.price-fair {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-metrics-strip {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }

.btn-card-action {
  margin-top: auto;
  font-size: 0.85rem;
}

/* DLD Valuation Section */
.calc-section {
  padding: 50px 0;
  background: rgba(14, 22, 38, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calc-grid-box {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: center;
}

.calc-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.calc-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.calc-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: #070a12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.calc-results {
  background: #070a12;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
}

.res-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.res-row:last-child {
  margin-bottom: 0;
}

/* Telegram Community Banner */
.telegram-banner-section {
  padding: 50px 0;
}

.tg-banner {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15), rgba(14, 22, 38, 0.9));
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tg-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tg-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0d1322;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pay-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-opt-btn {
  background: #121a2d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.pay-opt-btn:hover, .pay-opt-btn.active {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
}

.burn-link-box {
  background: #070a12;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-top: 15px;
}

.burn-link-url {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--gold);
  word-break: break-all;
  margin: 10px 0;
  display: block;
}

@media (max-width: 850px) {
  .deals-dense-grid, .calc-grid-box {
    grid-template-columns: 1fr;
  }
}
