/**
 * Müşteri portalı — Bootstrap 5 üzerine 2026 görsel dil
 * Kapsayıcı: .fidhe-musteri-app
 */

.fidhe-musteri-app {
  --fh-accent: #6366f1;
  --fh-accent-2: #22d3ee;
  --fh-accent-soft: rgba(99, 102, 241, 0.14);
  --fh-surface: rgba(255, 255, 255, 0.72);
  --fh-surface-solid: #ffffff;
  --fh-border: rgba(15, 23, 42, 0.08);
  --fh-text: #0f172a;
  --fh-muted: #64748b;
  --fh-radius-xl: 1.25rem;
  --fh-radius-lg: 1rem;
  --fh-shadow: 0 24px 80px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
  --fh-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --fh-blur: 18px;
  position: relative;
  isolation: isolate;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fh-text);
  overflow-x: clip;
}

.fidhe-musteri-app .fidhe-musteri-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(34, 211, 238, 0.28), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(244, 114, 182, 0.12), transparent 45%),
    linear-gradient(165deg, #f8fafc 0%, #eef2ff 38%, #f1f5f9 100%);
}

.fidhe-musteri-app .fidhe-musteri-shell {
  position: relative;
}

.fidhe-musteri-app .fidhe-musteri-hero {
  position: relative;
  border-radius: var(--fh-radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.92) 42%, rgba(14, 165, 233, 0.88));
  color: #fff;
  box-shadow: var(--fh-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.fidhe-musteri-app .fidhe-musteri-hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.45;
  transform: rotate(-12deg);
  pointer-events: none;
}

.fidhe-musteri-app .fidhe-musteri-hero .fidhe-musteri-hero-inner {
  position: relative;
  z-index: 1;
}

.fidhe-musteri-app .fidhe-musteri-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.75rem;
}

.fidhe-musteri-app .fidhe-musteri-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.fidhe-musteri-app .fidhe-musteri-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* Hero üzerinde tema/Bootstrap gövde rengi p'yi ezmesin — okunabilir beyaz */
.fidhe-musteri-app .fidhe-musteri-hero .fidhe-musteri-lead {
  color: #ffffff;
  opacity: 0.96;
}

.fidhe-musteri-app .fidhe-musteri-glass {
  background: var(--fh-surface);
  -webkit-backdrop-filter: blur(var(--fh-blur));
  backdrop-filter: blur(var(--fh-blur));
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-xl);
  box-shadow: var(--fh-shadow-sm);
}

.fidhe-musteri-app .fidhe-musteri-card {
  border-radius: var(--fh-radius-lg);
  border: 1px solid var(--fh-border);
  background: var(--fh-surface-solid);
  box-shadow: var(--fh-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

.fidhe-musteri-app .fidhe-musteri-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.22);
}

.fidhe-musteri-app .fidhe-musteri-card .card-body {
  padding: 1.35rem 1.4rem 1.45rem;
}

.fidhe-musteri-app .fidhe-musteri-card .card-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.fidhe-musteri-app .fidhe-musteri-stat {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--fh-accent), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.fidhe-musteri-app .fidhe-musteri-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--fh-accent-soft);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.fidhe-musteri-app .form-control,
.fidhe-musteri-app .form-select {
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fidhe-musteri-app .form-control:focus,
.fidhe-musteri-app .form-select:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.fidhe-musteri-app .input-group .form-control {
  border-radius: 0.75rem;
}

.fidhe-musteri-app .btn {
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 1.15rem;
}

.fidhe-musteri-app .btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--fh-accent), #4f46e5);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.fidhe-musteri-app .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.fidhe-musteri-app .btn-outline-secondary {
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--fh-text);
}

.fidhe-musteri-app .btn-outline-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.22);
}

.fidhe-musteri-app .table {
  --bs-table-bg: transparent;
  border-color: var(--fh-border);
}

.fidhe-musteri-app .table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--fh-muted);
  border-bottom-width: 1px;
}

.fidhe-musteri-app .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(248, 250, 252, 0.85);
}

.fidhe-musteri-app .alert {
  border-radius: var(--fh-radius-lg);
  border: 1px solid transparent;
}

.fidhe-musteri-app .alert-danger {
  background: rgba(254, 226, 226, 0.85);
  border-color: rgba(248, 113, 113, 0.35);
  color: #7f1d1d;
}

.fidhe-musteri-app .alert-success {
  background: rgba(220, 252, 231, 0.85);
  border-color: rgba(74, 222, 128, 0.35);
  color: #14532d;
}

.fidhe-musteri-app .fidhe-musteri-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.fidhe-musteri-app .fidhe-musteri-toolbar h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fidhe-musteri-app .fidhe-musteri-breadcrumb {
  font-size: 0.875rem;
  color: var(--fh-muted);
  margin-bottom: 0.35rem;
}

.fidhe-musteri-app .fidhe-musteri-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fidhe-musteri-app .fidhe-musteri-breadcrumb a:hover {
  border-bottom-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
}

.fidhe-musteri-app .fh-label-caps {
  letter-spacing: 0.08em;
}

.fidhe-musteri-app .fidhe-musteri-msg {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--fh-border);
  background: rgba(255, 255, 255, 0.65);
}

.fidhe-musteri-app .fidhe-musteri-msg--admin {
  border-left: 4px solid var(--fh-accent);
  background: linear-gradient(90deg, var(--fh-accent-soft), rgba(255, 255, 255, 0.65));
}

.fidhe-musteri-app .fidhe-musteri-msg-meta {
  font-size: 0.8rem;
  color: var(--fh-muted);
  margin-bottom: 0.35rem;
}

.fidhe-musteri-app .fidhe-destek-ekler img {
  border: 1px solid var(--fh-border);
}

.fidhe-musteri-app .fidhe-destek-ek-thumb:focus {
  outline: 2px solid var(--fh-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .fidhe-musteri-app .fidhe-musteri-card,
  .fidhe-musteri-app .btn-primary:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .fidhe-musteri-app .fidhe-musteri-hero {
    border-radius: var(--fh-radius-lg);
  }
}

/* Banka modalı: main dışında; tema katmanları (yüksek z-index) üstünde */
.fidhe-musteri-banka-modal.modal {
  z-index: 100002 !important;
}

body:has(#fidheBankaModal.show) > .modal-backdrop {
  z-index: 100001 !important;
}

/* Banka modalı kapat (X) — açık header üzerinde siyah, görünür */
#fidheBankaModal .modal-header .btn-close {
  filter: none !important;
  -webkit-filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  opacity: 0.65;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat !important;
}

#fidheBankaModal .modal-header .btn-close:hover {
  opacity: 0.95;
}
