/* ═══════════════════════════════════════════════════════════════
   hafriyatcim.com — Industrial Futurism Design System v5.0
   Construction Yellow · Light Theme · Futuristic · Premium
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* ── BRAND: Construction Yellow ── */
  --yellow:        #F5C518;
  --yellow-dark:   #D4A017;
  --yellow-deep:   #A67C00;
  --yellow-light:  #FEF3C7;
  --yellow-pale:   #FFFBEB;
  --yellow-glow:   rgba(245, 197, 24, 0.22);
  --yellow-subtle: rgba(245, 197, 24, 0.08);

  /* ── Compat aliases ── */
  --orange:        #F5C518;
  --orange-d:      #D4A017;
  --orange-light:  #FEF3C7;
  --orange-glow:   rgba(245, 197, 24, 0.22);
  --orange-subtle: rgba(245, 197, 24, 0.08);
  --primary:       #F5C518;
  --primary-hover: #D4A017;
  --primary-dark:  #A67C00;
  --primary-light: #FEF3C7;
  --primary-glow:  rgba(245, 197, 24, 0.22);
  --secondary:     #1A1A1A;

  /* ── Surfaces (LIGHT) ── */
  --bg:         #FAFAF5;
  --bg-dark:    #F3F2EA;
  --bg-darker:  #ECEAE0;
  --surface:    #FFFFFF;
  --surface-2:  #F8F7F0;
  --surface-3:  #F0EEE6;
  --surface-4:  #E8E6DC;
  --card:       #FFFFFF;
  --card-hover: #F8F7F0;

  /* ── Dark surface (hero / accent sections) ── */
  --dark:        #111111;
  --dark-2:      #1A1A1A;
  --dark-3:      #242424;

  /* ── Borders ── */
  --border:        #E5E3D8;
  --border-hover:  #D0CEC2;
  --border-color:  #E5E3D8;
  --border-orange: rgba(245, 197, 24, 0.4);

  /* ── Text ── */
  --text:       #0D0C08;
  --text-main:  #0D0C08;
  --text-muted: #6B6952;
  --text-dim:   #9B9A88;

  /* ── Status ── */
  --success: #15803D;
  --warning: #D97706;
  --error:   #DC2626;
  --info:    #2563EB;

  /* ── Border Radius ── */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* ── Shadows ── */
  --shadow:        0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg:     0 6px 28px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:     0 12px 48px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-orange: 0 4px 20px rgba(245, 197, 24, 0.35);
  --shadow-yellow: 0 4px 20px rgba(245, 197, 24, 0.35);

  /* ── Transitions ── */
  --transition:      all 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.38s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.12s ease;

  /* ── Typography ── */
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Touch ── */
  --touch-target: 44px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 14px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: var(--font-heading);
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { line-height: 1.68; }

a {
  color: inherit;
  text-decoration: none;
}

.highlight { color: var(--yellow); }
.text-muted { color: var(--text-muted); }

/* ─── Logo ───────────────────────────────────────────────────── */
.logo-img {
  height: 28px;
  width: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ─── Buttons ────────────────────────────────────────────────── */
button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font);
  font-size: 13px;
  transition: var(--transition);
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--yellow);
  color: #111111;
  padding: 0 22px;
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.28);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--yellow-deep);
  box-shadow: none;
}

.btn-secondary {
  background: rgba(245, 197, 24, 0.08);
  color: #7A5C00;
  border: 1.5px solid rgba(245, 197, 24, 0.35);
  padding: 0 22px;
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0 26px;
  font-size: 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
}

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

.btn-outline {
  padding: 0 18px;
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-hover);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--surface-3);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-danger {
  padding: 0 18px;
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  color: #DC2626;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.45);
}

a.btn-primary,
a.btn-secondary,
a.btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-login {
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 18px;
  min-height: var(--touch-target);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.btn-login:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-3);
  transform: translateY(-1px);
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: rgba(250, 250, 245, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  height: 56px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled,
.navbar-scrolled {
  background: rgba(250, 250, 245, 0.97);
  box-shadow: var(--shadow);
}

.logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-links a.active-link { color: var(--text); background: var(--surface-3); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ─── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-default  { background: var(--surface-3); color: var(--text-muted); border-color: var(--border); }
.badge-green    { background: rgba(21,128,61,0.08); color: #15803D; border-color: rgba(21,128,61,0.2); }
.badge-blue     { background: rgba(37,99,235,0.08); color: #1D4ED8; border-color: rgba(37,99,235,0.2); }
.badge-red      { background: rgba(220,38,38,0.08); color: #DC2626; border-color: rgba(220,38,38,0.2); }
.badge-yellow   { background: rgba(245,197,24,0.10); color: #7A5C00; border-color: rgba(245,197,24,0.3); }
.badge-orange   { background: rgba(245,197,24,0.10); color: #7A5C00; border-color: rgba(245,197,24,0.3); }
.badge-zinc     { background: var(--surface-3); color: var(--text-muted); border-color: var(--border); }
.badge-amber    { background: rgba(245,197,24,0.10); color: #7A5C00; border-color: rgba(245,197,24,0.3); }

/* ─── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  font-family: var(--font);
}
.theme-toggle:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82vh;
  padding: 5rem 5% 6rem;
  position: relative;
  gap: 3rem;
  background: var(--dark);
  color: #FFFFFF;
  overflow: hidden;
}

/* dot grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 55%, rgba(245,197,24,0.09) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(245,197,24,0.06) 0%, transparent 45%),
    radial-gradient(circle 1px at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: auto, auto, 28px 28px;
  pointer-events: none;
}

/* diagonal clip bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 10;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  line-height: 1.03;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 2.2rem;
  line-height: 1.80;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* dark-hero buttons */
.hero .btn-outline {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.20);
  color: #FFFFFF;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.40);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ─── Stats (dark hero) ─────────────────────────────────────── */
.stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.75rem;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 1.9rem;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-item p {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  margin-top: 3px;
}

/* ─── Glass Card (hero visual) ───────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05) inset;
  width: 360px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mockup-card {
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
}
.floating { animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(0px); }
  50%       { transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(-14px); }
}

.card-header {
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  display: flex;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot:nth-child(1) { background: #EF4444; }
.dot:nth-child(2) { background: var(--yellow); }
.dot:nth-child(3) { background: #22C55E; }

.card-body { padding: 16px; }

.match-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.match-item {
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--yellow);
}

.match-info h4 { font-size: 12px; margin-bottom: 2px; font-weight: 600; color: #fff; }
.match-info p  { font-size: 11px; color: rgba(255,255,255,0.45); }
.match-score   { color: #4ADE80; font-weight: 700; font-size: 13px; }

/* ─── Sections ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.padding-section { padding: 5rem 5%; }

.features-section { background: var(--surface); }
.features-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 2.5rem;
  font-family: var(--font-heading);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(245,197,24,0.12);
}

.feature-card h3 { color: var(--text); margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.feature-card p  { color: var(--text-muted); font-size: 13px; line-height: 1.72; }

.feature-icon {
  width: 46px; height: 46px;
  background: var(--yellow-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
  border: 1.5px solid rgba(245,197,24,0.22);
}

/* ─── How it Works ───────────────────────────────────────────── */
.how-it-works {
  padding: 5rem 5%;
  background: var(--bg-darker);
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 3rem;
  font-family: var(--font-heading);
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  background: var(--surface);
  padding: 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-pale);
  border: 1.5px solid rgba(245,197,24,0.22);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 20px;
}

.step-card h3 { font-size: 15px; margin-bottom: 8px; font-weight: 700; }
.step-card p  { color: var(--text-muted); font-size: 13px; line-height: 1.72; }
.step-connector { display: none; }

/* ─── Benefits ───────────────────────────────────────────────── */
.benefits-section {
  display: flex;
  justify-content: center;
  padding: 5rem 5%;
  background: var(--surface);
}

.benefits-content {
  max-width: 740px;
  width: 100%;
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
}

.benefits-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-heading);
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.benefit-item:hover { background: var(--surface-3); }

.benefit-item .icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-pale);
  border: 1.5px solid rgba(245,197,24,0.22);
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 18px;
}
.benefit-item h4 { font-size: 14px; margin-bottom: 3px; font-weight: 700; }
.benefit-item p  { color: var(--text-muted); font-size: 13px; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 36px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

footer p   { font-size: 12px; line-height: 2.0; }
footer a   { transition: var(--transition); }
footer a:hover { color: var(--yellow-dark); }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(13, 12, 8, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.modal.show, .modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-xl);
  width: calc(100% - 32px);
  max-width: 440px;
  position: relative;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
  color: var(--text-muted);
  position: absolute;
  top: 14px; right: 14px;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  min-height: auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.close-btn:hover { background: var(--surface-3); color: var(--text); }

.modal-icon { font-size: 2.5rem; margin-bottom: 14px; }
.modal-content h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-family: var(--font-heading);
}
.modal-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

/* ─── Form Elements ──────────────────────────────────────────── */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  min-height: var(--touch-target);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.input-group select { cursor: pointer; }
.input-group textarea { min-height: 90px; resize: vertical; }

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.14);
  outline: none;
  background: var(--surface);
}

.input-group input::placeholder,
.input-group textarea::placeholder { color: var(--text-dim); }

.input-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  pointer-events: none;
}

.input-row { display: flex; gap: 10px; }
.input-row .input-wrapper { flex: 1; }

/* ─── Toast ──────────────────────────────────────────────────── */
#toast, .toast-container {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: calc(100vw - 32px);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}

#toast.show { transform: translateX(-50%) translateY(0); }
#toast.success { background: var(--success); color: #fff; }
#toast.error   { background: var(--error); color: #fff; }
#toast.info    { background: var(--info); color: #fff; }
#toast.warning { background: var(--yellow-dark); color: #111; }

/* ─── Data Table ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  background: var(--surface-3);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ─── Loading / Empty ────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  color: var(--text-muted);
  gap: 12px;
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 2.8rem; margin-bottom: 12px; opacity: 0.35; }
.empty-state h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.empty-state p  { font-size: 13px; line-height: 1.72; }

/* ─── Form Card ──────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-card h2 { font-size: 16px; margin-bottom: 4px; font-weight: 700; font-family: var(--font-heading); }
.form-card .subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* ─── İlan Cards ─────────────────────────────────────────────── */
.ilan-card-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative;
}

.ilan-card-item:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ilan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ilan-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ilan-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.ilan-meta-row .label { font-size: 11px; color: var(--text-muted); }
.ilan-meta-row .value { font-size: 13px; font-weight: 600; color: var(--text); }
.ilan-meta-row .price-value { color: #7A5C00; font-weight: 700; }

.ilan-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ─── Teklif Cards ───────────────────────────────────────────── */
.teklif-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition);
}

.teklif-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.teklif-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--yellow-pale);
  border: 1.5px solid rgba(245,197,24,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  color: #7A5C00;
  font-family: var(--font-heading);
}

.teklif-info { flex: 1; min-width: 0; }
.teklif-name   { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.teklif-rating { font-size: 11px; color: #7A5C00; }
.teklif-mesaj  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.teklif-price  { font-size: 17px; font-weight: 800; color: #7A5C00; font-family: var(--font-heading); }
.teklif-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(245, 197, 24, 0.28); color: var(--text); }

/* ─── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Pulse dot ──────────────────────────────────────────────── */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s infinite;
  display: inline-block;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(21,128,61,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(21,128,61,0); }
}

/* ─── Pulse Ring ─────────────────────────────────────────────── */
.pulse-ring {
  width: 14px; height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.9;
  animation: pulseDot 2s infinite;
}

/* ─── AI Match ───────────────────────────────────────────────── */
.ai-match-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* ─── Reveal Animations ─────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

/* ─── Yellow accent line ─────────────────────────────────────── */
.accent-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.accent-line::before {
  content: '';
  display: block;
  width: 30px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── Section labels ─────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label-yellow { color: #7A5C00; }

.yellow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-pale);
  border: 1.5px solid rgba(245,197,24,0.30);
  color: #7A5C00;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Dot grid utility ───────────────────────────────────────── */
.dot-grid-bg {
  background-image: radial-gradient(circle 1px at 1px 1px, rgba(0,0,0,0.07) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .navbar { padding: 0 16px; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 4% 4rem;
    min-height: auto;
    gap: 2rem;
  }

  .hero::after { display: none; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .stats { justify-content: center; }
  .hero-visual { max-width: 300px; width: 100%; }
  .glass-card { width: 100%; }
  .steps-container { flex-direction: column; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }

  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero p   { font-size: 14px; }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .features-grid { grid-template-columns: 1fr; }
  .benefits-content { padding: 24px 20px; }
  .ilan-card-meta { grid-template-columns: 1fr; }
  footer { padding: 20px 4%; }
  .padding-section { padding: 3rem 4%; }
  .how-it-works    { padding: 3rem 4%; }
  .benefits-section { padding: 3rem 4%; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 4% 3rem; }
  .navbar .nav-actions .btn-login { display: none; }
  .badge { font-size: 10px; }
  .btn-large { font-size: 13px; }
  .stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-item { min-width: 40%; }
}
