* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  background: #f4f6fb;
  color: #1f2937;
}

/* ================= HEADER ================= */

.top-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  text-align: center;
  padding: 32px 16px;
}

.top-header h1 {
  font-size: 26px;
  font-weight: 700;
}

.top-header h2 {
  font-family: 'Berkshire Swash', cursive;
  font-size: 22px;
  font-weight: 500;
  margin-top: 2px;
}

.top-header p {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
}

/* ================= CONTAINER ================= */

.container {
  max-width: 420px;
  margin: auto;
  padding: 22px 16px;
}

/* ================= CARD ================= */

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ================= TOOL LIST ================= */

.tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.tool-icon {
  font-size: 28px;
}

.tool-title {
  font-size: 18px;
  font-weight: 600;
}

.tool-desc {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}

/* ================= UPLOAD AREA ================= */

.upload-box {
  border: 2px dashed #b6c6ff;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  background: #f0f4ff;
  margin-bottom: 18px;
}

.upload-box input {
  display: none;
}

.upload-label {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================= BUTTON ================= */

.btn {
  width: 100%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

/* ================= HELPER TEXT ================= */

.helper {
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 8px;
}

/* ================= CANVAS ================= */

canvas {
  border: 2px dashed #b6c6ff;
  border-radius: 14px;
  width: 100%;
  height: 180px;
  background: #fff;
}

/* ================= FOOTER ================= */

.footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 18px 10px;
}

/* ======================================================
   FEATURED REAL ESTATE PORTAL (INDEX PAGE ONLY)
   ====================================================== */

.featured-box {
  margin: 30px 16px;
  padding: 26px 22px;
  background: linear-gradient(135deg, #0f1f3a, #1c3b6f);
  border-radius: 18px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.featured-tag {
  display: inline-block;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.featured-box h2 {
  font-size: 24px;
  margin: 10px 0 6px;
  color: #ffffff;
}

.featured-sub {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.featured-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 18px;
}

.featured-btn {
  display: inline-block;
  background: #ffffff;
  color: #0f1f3a;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.featured-btn:hover {
  background: #e8efff;
  transform: translateY(-2px);
}

/* ================= TRUSTED BADGE ================= */

.trusted-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  animation: pulseGlow 2s infinite;
  box-shadow: 0 0 0 rgba(255, 152, 0, 0.6);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

/* ===== TOOLS HIGHLIGHT CARD ===== */
.tools-highlight-card {
  position: relative;
  display: block;
  margin-bottom: 16px;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(120deg, #2563eb, #0f172a, #2563eb);
  background-size: 200% 200%;
  animation: gradientMove 6s linear infinite;
  text-decoration: none;
}

/* Glow animation layer */
.tools-glow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.35), transparent 60%);
  animation: glowPulse 2.8s ease-in-out infinite;
}

/* Inner content */
.tools-inner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #020617, #0f172a);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease;
}

.tools-highlight-card:active .tools-inner {
  transform: scale(0.96);
}

/* Icon */
.tools-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(37,99,235,0.45);
  animation: bounceSoft 2.5s infinite;
}

/* Text */
.tools-text h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.tools-text p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #c7d2fe;
  line-height: 1.4;
}

.tools-text span {
  color: #93c5fd;
  font-weight: 600;
}

/* Arrow */
.tools-arrow {
  margin-left: auto;
  color: #93c5fd;
  font-size: 18px;
  animation: slideArrow 1.4s ease-in-out infinite;
}

/* Animations */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes glowPulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes bounceSoft {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes slideArrow {
  0%,100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}
