@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Manrope:wght@600;700;800&display=swap');

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

/* ===== BASE ===== */
body {
  font-family: 'Tajawal', sans-serif;
  background: #070a14;
  color: #f5f2ea;
  overflow-x: hidden;
}

/* ===== AMBIENT BLOBS ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 650px;
  height: 650px;
  top: -260px;
  right: -200px;
  background: radial-gradient(circle, rgba(232,196,104,0.09) 0%, transparent 70%);
  filter: blur(70px);
  animation: driftA 18s ease-in-out infinite alternate;
}

body::after {
  width: 550px;
  height: 550px;
  bottom: -220px;
  left: -200px;
  background: radial-gradient(circle, rgba(201,152,46,0.07) 0%, transparent 70%);
  filter: blur(70px);
  animation: driftB 18s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.1); }
}

@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -30px) scale(1.08); }
}

header, main, section, footer,
.login-screen, .dashboard, .auth-section, .profile-main,
.transactions-main, .transaction-main {
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
header {
  padding: 1.2rem 6%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,10,20,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f3d791, #c9982e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(245,242,234,0.55);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #f5f2ea;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(245,242,234,0.65);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  border-color: #e8c468;
  color: #e8c468;
}

.btn-primary {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #f3d791, #c9982e);
  color: #070a14;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,152,46,0.3);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(245,242,234,0.75);
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(232,196,104,0.45);
  color: #e8c468;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 6%;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-text h1 {
  font-family: 'Manrope', 'Tajawal', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f5f2ea 40%, #e8c468);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(245,242,234,0.58);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SCORE CARD ===== */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.score-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,196,104,0.2);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 60px rgba(232,196,104,0.07);
  position: relative;
}

.score-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8c468, transparent);
}

.score-label {
  font-size: 0.85rem;
  color: rgba(245,242,234,0.42);
  margin-bottom: 0.75rem;
}

.score-number {
  font-family: 'Manrope', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f3d791, #c9982e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.score-bar {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  height: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #f3d791, #c9982e);
  border-radius: 10px;
}

.score-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.score-tags span {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(245,242,234,0.5);
}

/* ===== FEATURES ===== */
.features {
  display: flex;
  gap: 1.5rem;
  padding: 5rem 6%;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.feature-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(232,196,104,0.22);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(232,196,104,0.06);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: 'Manrope', 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f5f2ea;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(245,242,234,0.48);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: rgba(245,242,234,0.2);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== SEARCH BAR ===== */
.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-box input {
  width: 220px;
  padding: 8px 36px 8px 14px;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(232,196,104,0.28);
  border-radius: 25px;
  color: #f5f2ea;
  outline: none;
  direction: rtl;
  transition: all 0.3s ease;
}

.nav-search-box input::placeholder {
  color: rgba(245,242,234,0.3);
}

.nav-search-box input:focus {
  width: 280px;
  border-color: #e8c468;
  background: rgba(255,255,255,0.09);
}

.nav-search-icon {
  position: absolute;
  left: 10px;
  font-size: 15px;
  opacity: 0.45;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #0d1224;
  border: 1px solid rgba(232,196,104,0.18);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  z-index: 9999;
  text-align: right;
}

.hidden {
  display: none;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer;
}

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

.result-item:hover {
  background: rgba(232,196,104,0.07);
}

.result-info .result-name {
  font-weight: 700;
  color: #f5f2ea;
  font-size: 14px;
}

.result-info .result-email {
  color: rgba(245,242,234,0.38);
  font-size: 12px;
  margin-top: 2px;
}

.trust-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.trust-high   { background: #27ae60; color: #fff; }
.trust-medium { background: #e8c468; color: #070a14; }
.trust-low    { background: #e74c3c; color: #fff; }

.no-results {
  padding: 18px;
  color: rgba(245,242,234,0.32);
  text-align: center;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .features { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 4rem 6%;
    text-align: center;
  }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-btns { justify-content: center; }
  .nav-search-box input { width: 140px; }
  .nav-search-box input:focus { width: 180px; }
  .search-results { width: 250px; right: -50px; }
}
