/* ============================================================
   PAGES PREMIUM — sepet, müşteri paneli, blog, status, yasal sayfalar,
   giriş/ticket pencereleri. Tüm sayfalarda yüklenir; seçiciler
   <body class="tpl-..."> ile sayfaya göre sınırlandırılmıştır.
   ============================================================ */

:root {
  --pg-accent: #00d4ff;
  --pg-accent-2: #8b9dff;
  --pg-text: #f4f7fb;
  --pg-muted: rgba(200, 212, 232, 0.68);
  --pg-faint: rgba(200, 212, 232, 0.42);
  --pg-line: rgba(255, 255, 255, 0.08);
  --pg-line-strong: rgba(255, 255, 255, 0.16);
  --pg-surface: rgba(255, 255, 255, 0.035);
  --pg-card: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  --pg-panel: rgba(10, 17, 36, 0.92);
  --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pg-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   ORTAK PARÇALAR
   ============================================================ */
.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--pg-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pg-eyebrow-line { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-accent)); }

.pg-title {
  margin: 0;
  color: var(--pg-text);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--pg-ease), box-shadow 0.25s ease, background 0.2s ease;
}
.pg-btn--primary { background: #fff; color: #05101f; box-shadow: 0 10px 30px -8px rgba(0, 212, 255, 0.45); }
.pg-btn--primary:hover { color: #05101f; transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(0, 212, 255, 0.6); }

/* İç sayfalardaki eski başlıklar (ana sayfa hariç) */
body:not(.tpl-shop) .py-5-nav { padding-top: clamp(1.75rem, 4vw, 3rem) !important; padding-bottom: 4rem !important; }
body:not(.tpl-shop) .py-5-nav > .section-title { margin-bottom: 1.75rem; animation: pg-rise 0.7s var(--pg-ease) backwards; }
body:not(.tpl-shop) .py-5-nav > .section-title h1,
body:not(.tpl-shop) .py-5-nav > .section-title h2 {
  margin: 0;
  color: var(--pg-text);
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}
body:not(.tpl-shop) .py-5-nav > .section-title h1::before,
body:not(.tpl-shop) .py-5-nav > .section-title h2::before { display: none !important; }

/* Genel kart / form / buton dili (iç sayfalar) */
body:not(.tpl-shop):not(.tpl-product):not(.tpl-products) .card,
body:not(.tpl-shop) .bg-gray {
  border: 1px solid var(--pg-line) !important;
  border-radius: 20px !important;
  background: var(--pg-card) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

.tpl-cart .form-control,
.tpl-customer .form-control,
.tpl-customer .form-select,
.modal .form-control {
  min-height: 44px;
  border: 1px solid var(--pg-line-strong) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tpl-cart .form-control:focus,
.tpl-customer .form-control:focus,
.tpl-customer .form-select:focus,
.modal .form-control:focus {
  border-color: var(--pg-accent) !important;
  background: rgba(0, 212, 255, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12) !important;
}

.tpl-customer .btn-primary,
.modal .btn-primary {
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #05101f !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 8px 24px -8px rgba(0, 212, 255, 0.45) !important;
  transition: transform 0.25s var(--pg-ease), box-shadow 0.25s ease !important;
}
.tpl-customer .btn-primary:hover:not(:disabled),
.modal .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(0, 212, 255, 0.6) !important; }
.tpl-customer .btn-primary.btn-sm { height: 36px; padding: 0 0.95rem !important; font-size: 0.8rem !important; }

.tpl-customer .btn-outline-primary,
.tpl-customer .btn-outline-secondary,
.modal .btn-outline-primary {
  border: 1px solid var(--pg-line-strong) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.tpl-customer .btn-outline-primary:hover,
.tpl-customer .btn-outline-secondary:hover,
.modal .btn-outline-primary:hover { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.tpl-customer .btn-outline-danger { border-radius: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.tpl-customer .btn-link { color: var(--pg-accent) !important; font-weight: 600; text-decoration: none; text-transform: none !important; letter-spacing: 0 !important; }
.tpl-customer .btn-link:hover { color: #fff !important; }

/* Sayfalama (iç sayfalar) */
body:not(.tpl-shop) .pagination { gap: 0.3rem; }
body:not(.tpl-shop) .page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem !important;
  border: 1px solid var(--pg-line-strong) !important;
  border-radius: 10px !important;
  background: var(--pg-surface) !important;
  color: var(--pg-muted) !important;
  box-shadow: none !important;
}
body:not(.tpl-shop) a.page-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.08) !important; }
body:not(.tpl-shop) .page-item.active .page-link { border-color: transparent !important; background: #fff !important; color: #05101f !important; font-weight: 700; }

/* ============================================================
   PENCERELER (giriş, ticket, şifre, 2FA) — tüm sayfalar
   ============================================================ */
.modal-backdrop.show { opacity: 0.7 !important; backdrop-filter: blur(4px); }

.modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--pg-line-strong) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(14, 22, 44, 0.98), rgba(8, 13, 28, 0.98)) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 255, 0.04) !important;
}
.modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pg-accent), var(--pg-accent-2), transparent);
}
.modal.fade .modal-dialog { transform: translateY(16px) scale(0.97); transition: transform 0.4s var(--pg-ease) !important; }
.modal.show .modal-dialog { transform: none; }

.modal .modal-header { padding: 1.25rem 1.4rem 1rem !important; border-bottom: 1px solid var(--pg-line) !important; }
.modal .modal-title { color: #fff !important; font-size: 1.1rem !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
.modal .modal-body { padding: 1.25rem 1.4rem 1.4rem !important; }
.modal .modal-footer { border-top: 1px solid var(--pg-line) !important; }
.modal .form-label { color: var(--pg-faint) !important; font-size: 0.72rem !important; font-weight: 600 !important; letter-spacing: 0.08em; text-transform: uppercase; }
.modal .form-text { color: var(--pg-faint); }
.modal .btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  background-size: 11px;
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 1;
  filter: invert(1) !important;
  transition: background-color 0.2s ease;
}
.modal .btn-close:hover { background-color: rgba(255, 255, 255, 0.14); }

/* Giriş penceresi OTP kutuları */
#customer-login-modal .d-flex.gap-2 .form-control.text-center {
  height: 52px;
  padding: 0 !important;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#customer-login-modal .btn-primary { height: 48px; }
#customer-login-modal .btn-link { color: var(--pg-muted) !important; }
#customer-login-modal .text-uppercase { color: var(--pg-faint) !important; font-size: 0.7rem; letter-spacing: 0.1em; }
#customer-login-modal hr { border-color: var(--pg-line); opacity: 1; }

/* ============================================================
   SEPET (components/cart-page.njk)
   ============================================================ */
.ct-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: pg-rise 0.7s var(--pg-ease) backwards;
}

.ct-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  background: var(--pg-surface);
  list-style: none;
}
.ct-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border-radius: 999px;
  color: var(--pg-faint);
  font-size: 0.78rem;
  font-weight: 500;
}
.ct-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  font-weight: 700;
}
.ct-steps li.is-on { background: rgba(0, 212, 255, 0.1); color: #fff; }
.ct-steps li.is-on span { background: var(--pg-accent); color: #05101f; }

/* Ürün satırları */
.ct .cart-item-bg {
  overflow: hidden;
  border: 1px solid var(--pg-line) !important;
  border-radius: 18px !important;
  background: var(--pg-card) !important;
  animation: pg-rise 0.6s var(--pg-ease) backwards;
  transition: border-color 0.25s ease, transform 0.35s var(--pg-ease), box-shadow 0.35s ease;
}
.ct .cart-item-bg:nth-child(2) { animation-delay: 0.05s; }
.ct .cart-item-bg:nth-child(3) { animation-delay: 0.1s; }
.ct .cart-item-bg:nth-child(n+4) { animation-delay: 0.15s; }
.ct .cart-item-bg:hover {
  border-color: rgba(0, 212, 255, 0.28) !important;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.6);
}

.ct .cart-image-container { width: 150px; flex-shrink: 0; }
.ct .cart-image-container img { border-radius: 12px !important; }
.ct .cart-product-link { color: #fff !important; font-size: 0.95rem; font-weight: 600 !important; letter-spacing: -0.01em; }
.ct .cart-product-link:hover { color: var(--pg-accent) !important; }
.ct .cart-variant-text { color: var(--pg-faint) !important; font-size: 0.8rem; }
.ct .cart-discount-text { color: #fcd34d !important; font-size: 0.76rem; }
.ct .cart-addon-badge {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--pg-line-strong);
  border-radius: 999px;
  background: var(--pg-surface);
  color: var(--pg-muted);
  font-size: 0.7rem;
}

.ct .cart-quantity-controls {
  gap: 0 !important;
  height: 40px;
  border: 1px solid var(--pg-line-strong);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.025);
}
.ct .cart-qty-btn {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
}
.ct .cart-qty-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07) !important; }
.ct .cart-qty-btn:disabled { opacity: 0.3; }
.ct .cart-qty-input {
  width: 44px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-left: 1px solid var(--pg-line) !important;
  border-right: 1px solid var(--pg-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: 700;
  -moz-appearance: textfield;
}
.ct .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ct .cart-price-text { min-width: 80px; color: #fff; font-size: 1rem; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
.ct .cart-remove-desktop,
.ct .cart-remove-mobile {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--pg-faint) !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.ct .cart-remove-mobile { display: none !important; }
.ct .cart-remove-desktop:hover,
.ct .cart-remove-mobile:hover { background: rgba(248, 113, 113, 0.12); color: #fca5a5 !important; }
.ct .cart-remove-icon, .ct .cart-remove-icon-sm { width: 16px; height: 16px; }

/* Yükleniyor / boş */
.ct .border.rounded.text-center { border: 1px solid var(--pg-line) !important; border-radius: 18px !important; background: var(--pg-surface); }
.ct-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--pg-line-strong);
  border-radius: 20px;
  text-align: center;
  animation: pg-rise 0.6s var(--pg-ease) backwards;
}
.ct-empty-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 0.6rem;
  border-radius: 18px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--pg-accent);
  font-size: 1.3rem;
  animation: pg-bob 4s ease-in-out infinite;
}
@keyframes pg-bob { 50% { transform: translateY(-5px); } }
.ct-empty-title { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 700; }
.ct-empty-text { max-width: 340px; margin: 0 0 1rem; color: var(--pg-muted); font-size: 0.88rem; }

/* Sipariş özeti */
.ct .form {
  position: sticky;
  top: calc(var(--hp-header-h, 76px) + 1rem);
  padding: 1.4rem !important;
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(14, 22, 44, 0.97), rgba(8, 14, 30, 0.97)) padding-box,
    conic-gradient(from var(--pg-angle, 0deg), rgba(0, 212, 255, 0.12), rgba(0, 212, 255, 0.75), rgba(139, 157, 255, 0.75), rgba(0, 212, 255, 0.12) 40%, rgba(0, 212, 255, 0.12)) border-box !important;
  box-shadow: 0 30px 70px -30px rgba(0, 212, 255, 0.35);
  animation: pg-rise 0.7s var(--pg-ease) 0.1s backwards, pg-spin 9s linear infinite;
}
@property --pg-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes pg-spin { to { --pg-angle: 360deg; } }

.ct .form .form-label { margin-bottom: 0.9rem; color: #fff !important; font-size: 1rem !important; font-weight: 700 !important; letter-spacing: -0.015em; text-transform: none; }
.ct .form .border-bottom { border-color: var(--pg-line) !important; padding-bottom: 0.9rem !important; }
.ct .form .border-top { border-color: var(--pg-line) !important; margin-top: 0.4rem; padding-top: 0.6rem !important; }
.ct .form .d-flex.justify-content-between { font-size: 0.9rem; }
.ct .form .text-muted { color: var(--pg-muted) !important; }
.ct .form .fw-bold { color: #fff; font-size: 1.2rem; }
.ct .form .text-accent-500 { color: #6ee7b7 !important; }

.ct .ct-checkout {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 54px;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #fff, #dff7ff) !important;
  color: #05101f !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 14px 40px -10px rgba(0, 212, 255, 0.55) !important;
  transition: transform 0.25s var(--pg-ease), box-shadow 0.25s ease !important;
}
.ct .ct-checkout .size-5 { width: 18px; height: 18px; }
.ct .ct-checkout::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: pg-sweep 4s ease-in-out 1s infinite;
}
@keyframes pg-sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ct .ct-checkout:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 50px -10px rgba(0, 212, 255, 0.7) !important; }
.ct .ct-checkout:disabled { opacity: 0.45; box-shadow: none !important; }
.ct .ct-checkout:disabled::after { display: none; }

.ct-assure {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--pg-line);
  list-style: none;
  color: var(--pg-muted);
  font-size: 0.8rem;
}
.ct-assure i { width: 1.1rem; margin-right: 0.35rem; color: #34d399; text-align: center; }

/* Paket teklifleri */
.ct .col-lg-4 .p-3.border.rounded {
  border: 1px solid var(--pg-line) !important;
  border-radius: 18px !important;
  background: var(--pg-card);
}
.ct .badge.bg-primary { border-radius: 7px; background: linear-gradient(90deg, var(--pg-accent), var(--pg-accent-2)) !important; color: #05101f !important; }

.ct .alert { border-radius: 14px !important; }

/* ============================================================
   MÜŞTERİ PANELİ (tpl-customer)
   ============================================================ */
.tpl-customer .py-5-nav > .row { --bs-gutter-x: 1.5rem; }

/* Yan menü */
.tpl-customer .ng-customer-sidebar {
  position: sticky;
  top: calc(var(--hp-header-h, 76px) + 1rem);
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--pg-line) !important;
  border-radius: 22px !important;
  background: var(--pg-card) !important;
  backdrop-filter: blur(12px);
  animation: pg-rise 0.7s var(--pg-ease) backwards;
}
.tpl-customer .ng-customer-sidebar-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem !important;
  border-bottom: 1px solid var(--pg-line) !important;
  background: radial-gradient(120% 120% at 0% 0%, rgba(0, 212, 255, 0.12), transparent 60%) !important;
}
.tpl-customer .ng-customer-avatar {
  display: grid !important;
  place-items: center;
  flex-shrink: 0;
  width: 46px !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--pg-accent), var(--pg-accent-2)) !important;
  color: #05101f !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 26px -8px rgba(0, 212, 255, 0.6) !important;
}
.tpl-customer .ng-customer-sidebar-info { min-width: 0; }
.tpl-customer .ng-customer-sidebar-name { display: block; overflow: hidden; color: #fff !important; font-size: 0.88rem !important; font-weight: 600 !important; text-overflow: ellipsis; white-space: nowrap; }
.tpl-customer .ng-customer-sidebar-badge { color: var(--pg-faint) !important; font-size: 0.72rem !important; }
.tpl-customer .ng-customer-sidebar-badge i { color: #34d399 !important; }

.tpl-customer .ng-customer-nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem !important; }
.tpl-customer .ng-customer-nav-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.75rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--pg-muted) !important;
  font-size: 0.87rem !important;
  font-weight: 500 !important;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--pg-ease) !important;
}
.tpl-customer .ng-customer-nav-link i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-faint);
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.tpl-customer .ng-customer-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.04) !important; transform: translateX(2px); }
.tpl-customer .ng-customer-nav-link.active { color: #fff !important; background: rgba(0, 212, 255, 0.1) !important; }
.tpl-customer .ng-customer-nav-link.active i { background: var(--pg-accent); color: #05101f; }
.tpl-customer .ng-customer-nav-link.active::before {
  content: '';
  position: absolute;
  left: -0.6rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pg-accent);
  box-shadow: 0 0 12px var(--pg-accent);
}
.tpl-customer .ng-customer-nav-logout { margin-top: 0.35rem; border-top: 1px solid var(--pg-line) !important; border-radius: 0 0 12px 12px !important; padding-top: 0.85rem !important; }
.tpl-customer .ng-customer-nav-logout:hover { color: #fca5a5 !important; background: rgba(248, 113, 113, 0.08) !important; }
.tpl-customer .ng-customer-nav-logout:hover i { color: #fca5a5; }

/* İçerik sütunu giriş animasyonu */
.tpl-customer .py-5-nav .col-lg-9 { animation: pg-rise 0.7s var(--pg-ease) 0.08s backwards; }

/* İstatistik kartları */
.tpl-customer .ng-dash-stat-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.15rem !important;
  border: 1px solid var(--pg-line) !important;
  border-radius: 18px !important;
  background: var(--pg-card) !important;
  box-shadow: none !important;
  transition: transform 0.35s var(--pg-ease), border-color 0.25s ease !important;
}
.tpl-customer .ng-dash-stat-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 255, 0.3) !important; }
.tpl-customer .ng-dash-stat-icon {
  display: grid !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 0.85rem !important;
  border: 1px solid rgba(0, 212, 255, 0.22) !important;
  border-radius: 11px !important;
  background: rgba(0, 212, 255, 0.08) !important;
  color: var(--pg-accent) !important;
  font-size: 0.85rem !important;
}
.tpl-customer .ng-dash-stat-value { color: #fff !important; font-size: 1.35rem !important; font-weight: 800 !important; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tpl-customer .ng-dash-stat-label { color: var(--pg-faint) !important; font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }

/* Panel kartları */
.tpl-customer .ng-dash-card {
  height: 100%;
  padding: 1.2rem !important;
  border: 1px solid var(--pg-line) !important;
  border-radius: 18px !important;
  background: var(--pg-card) !important;
  box-shadow: none !important;
}
.tpl-customer .ng-dash-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}
.tpl-customer .ng-dash-card-header i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pg-accent) !important;
  font-size: 0.75rem !important;
}
.tpl-customer .ng-dash-latest-order-name { color: #fff !important; font-weight: 600; }
.tpl-customer .ng-dash-invoice-link { color: var(--pg-muted) !important; font-size: 0.8rem; text-decoration: none; }
.tpl-customer .ng-dash-invoice-link span { color: var(--pg-accent); }
.tpl-customer .ng-dash-invoice-link:hover { color: #fff !important; }
.tpl-customer .ng-dash-balance-card { background: radial-gradient(120% 120% at 100% 0%, rgba(52, 211, 153, 0.12), transparent 60%), var(--pg-card) !important; }
.tpl-customer .ng-dash-balance-value { color: #fff !important; font-size: 1.8rem !important; font-weight: 800 !important; letter-spacing: -0.04em; }
.tpl-customer .ng-dash-topup-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  margin-top: 0.75rem;
  padding: 0 0.95rem !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #05101f !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.tpl-customer .text-muted { color: var(--pg-muted) !important; }

/* Tablolar */
.tpl-customer .card:has(> .table),
.tpl-customer .card:has(> .table-responsive) { padding: 0.5rem !important; }
.tpl-customer .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--pg-text);
  --bs-table-border-color: var(--pg-line);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  margin: 0;
  color: var(--pg-text);
}
.tpl-customer .table thead th {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--pg-line) !important;
  color: var(--pg-faint) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tpl-customer .table tbody td {
  padding: 0.95rem 1rem !important;
  border-bottom: 1px solid var(--pg-line) !important;
  vertical-align: middle;
  font-size: 0.86rem;
}
.tpl-customer .table tbody tr:last-child td { border-bottom: 0 !important; }
.tpl-customer .table tbody tr { transition: background 0.2s ease; }
.tpl-customer .table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.tpl-customer .table a.text-accent-500 { color: var(--pg-accent) !important; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }

/* Sipariş durumu rozetleri */
.tpl-customer .ng-order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}
.tpl-customer .ng-order-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tpl-customer .badge { padding: 0.3rem 0.6rem; border-radius: 999px; font-weight: 600; letter-spacing: 0; }

/* Ticket sohbeti */
.tpl-customer .ticket-messages-container,
.tpl-customer .ticket-messages-scroll { scrollbar-width: thin; }
.tpl-customer .ticket-message-content {
  border: 1px solid var(--pg-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--pg-text) !important;
}
.tpl-customer .ticket-sender-name { color: #fff !important; font-weight: 600; }
.tpl-customer .ticket-time-ago { color: var(--pg-faint) !important; }
.tpl-customer .ticket-avatar,
.tpl-customer .ticket-avatar-placeholder { border-radius: 12px !important; }
.tpl-customer .ticket-avatar-placeholder { background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(139, 157, 255, 0.25)) !important; }
.tpl-customer .ticket-input-area { border-top: 1px solid var(--pg-line) !important; }
.tpl-customer .ticket-send-btn { border-radius: 12px !important; background: #fff !important; color: #05101f !important; border: 0 !important; }

.tpl-customer .alert { border-radius: 14px !important; }

/* ============================================================
   BLOG
   ============================================================ */
.tpl-blog .row.products > [class*="col-"] { animation: pg-rise 0.6s var(--pg-ease) backwards; }
.tpl-blog .row.products > [class*="col-"]:nth-child(2) { animation-delay: 0.05s; }
.tpl-blog .row.products > [class*="col-"]:nth-child(3) { animation-delay: 0.1s; }
.tpl-blog .row.products > [class*="col-"]:nth-child(n+4) { animation-delay: 0.15s; }

.tpl-blog .card {
  height: 100%;
  overflow: hidden;
  transition: transform 0.4s var(--pg-ease), border-color 0.3s ease, box-shadow 0.4s ease !important;
}
.tpl-blog .card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.35) !important;
  box-shadow: 0 26px 50px -16px rgba(0, 0, 0, 0.6) !important;
}
.tpl-blog .card .card-img-top { margin: 0.55rem 0.55rem 0; overflow: hidden; border-radius: 13px !important; }
.tpl-blog .card .card-img-top img { transition: transform 0.8s var(--pg-ease); }
.tpl-blog .card:hover .card-img-top img { transform: scale(1.06); }
.tpl-blog .card .card-img-top .overlay { display: none !important; }
.tpl-blog .card .card-body { padding: 1rem 1.1rem 1.1rem !important; }
.tpl-blog .card .card-title { color: #fff !important; font-size: 1rem !important; font-weight: 700 !important; letter-spacing: -0.015em; line-height: 1.3; }
.tpl-blog .card .text-muted { color: var(--pg-faint) !important; }
.tpl-blog .alert-info { border: 1px dashed var(--pg-line-strong) !important; border-radius: 18px !important; background: transparent !important; color: var(--pg-muted) !important; text-align: center; padding: 3rem 1rem !important; }

/* Blog yazısı */
.bp-head {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  text-align: center;
  animation: pg-rise 0.7s var(--pg-ease) backwards;
}
.bp-back { display: inline-block; margin-bottom: 0.9rem; color: var(--pg-faint); font-size: 0.82rem; text-decoration: none; }
.bp-back:hover { color: #fff; }
.bp-meta { margin: 0.75rem 0 0; color: var(--pg-faint); font-size: 0.82rem; }
.bp-meta i { margin-right: 0.3rem; color: var(--pg-accent); }
.tpl-blog-post .bg-gray { padding: clamp(1.25rem, 3vw, 2.25rem) !important; animation: pg-rise 0.7s var(--pg-ease) 0.08s backwards; }
.tpl-blog-post .bg-gray img { border-radius: 16px !important; }
.tpl-blog-post .bg-gray > p.mb-4 { color: var(--pg-muted); font-size: 1.05rem; line-height: 1.7; border-bottom: 1px solid var(--pg-line); }
.tpl-blog-post .bg-gray > p.text-muted { display: none; }

/* ============================================================
   EDITÖR METNİ (blog, yasal sayfalar)
   ============================================================ */
body:not(.tpl-shop):not(.tpl-product) .editor {
  color: rgba(225, 232, 245, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
}
body:not(.tpl-shop):not(.tpl-product) .editor h1,
body:not(.tpl-shop):not(.tpl-product) .editor h2,
body:not(.tpl-shop):not(.tpl-product) .editor h3,
body:not(.tpl-shop):not(.tpl-product) .editor h4 {
  margin: 1.8rem 0 0.7rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
body:not(.tpl-shop):not(.tpl-product) .editor > :first-child { margin-top: 0; }
body:not(.tpl-shop):not(.tpl-product) .editor p { margin-bottom: 0.9rem; }
body:not(.tpl-shop):not(.tpl-product) .editor strong { color: #fff; }
body:not(.tpl-shop):not(.tpl-product) .editor a { color: var(--pg-accent); }
body:not(.tpl-shop):not(.tpl-product) .editor ul,
body:not(.tpl-shop):not(.tpl-product) .editor ol { padding-left: 1.2rem; margin-bottom: 1rem; }
body:not(.tpl-shop):not(.tpl-product) .editor li { margin-bottom: 0.35rem; }
body:not(.tpl-shop):not(.tpl-product) .editor li::marker { color: var(--pg-accent); }
body:not(.tpl-shop):not(.tpl-product) .editor hr { border-color: var(--pg-line); opacity: 1; }

/* Yasal sayfalar */
.tpl-terms .py-5-nav > .section-title,
.tpl-privacy-policy .py-5-nav > .section-title,
.tpl-refund-policy .py-5-nav > .section-title { justify-content: center; text-align: center; }
.tpl-terms .bg-gray,
.tpl-privacy-policy .bg-gray,
.tpl-refund-policy .bg-gray {
  padding: clamp(1.4rem, 3.5vw, 2.5rem) !important;
  animation: pg-rise 0.7s var(--pg-ease) 0.08s backwards;
}

/* ============================================================
   STATUS
   ============================================================ */
.tpl-status .status-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem !important;
  width: 100%;
}
.tpl-status .status-group { grid-column: 1 / -1; margin-top: 1rem; }
.tpl-status .status-group h2 { margin: 0 0 0.75rem; color: var(--pg-faint); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tpl-status .status-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0.95rem 1.1rem !important;
  border: 1px solid var(--pg-line) !important;
  border-radius: 16px !important;
  background: var(--pg-card) !important;
  text-decoration: none;
  animation: pg-rise 0.6s var(--pg-ease) backwards;
  transition: transform 0.3s var(--pg-ease), border-color 0.25s ease !important;
}
.tpl-status .status-card:hover { transform: translateY(-2px); border-color: var(--pg-line-strong) !important; }
.tpl-status .status-card h3 { margin: 0 !important; overflow: hidden; color: #fff !important; font-size: 0.88rem !important; font-weight: 600 !important; text-overflow: ellipsis; white-space: nowrap; }
.tpl-status .status-card .status { flex-shrink: 0; margin: 0; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.tpl-status .status-card .label { font-size: 0.75rem; font-weight: 600; }

/* ============================================================
   Responsive & erişilebilirlik
   ============================================================ */
@media (max-width: 991.98px) {
  .ct .form, .tpl-customer .ng-customer-sidebar { position: static; }
  .tpl-customer .ng-customer-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tpl-customer .ng-customer-nav-link { flex-shrink: 0; width: auto; }
  .tpl-customer .ng-customer-nav-link.active::before { display: none; }
  .tpl-customer .ng-customer-nav-logout { margin-top: 0; border-top: 0 !important; border-radius: 12px !important; padding-top: 0.6rem !important; }
}
@media (max-width: 576px) {
  .ct-steps { display: none; }
  .ct .cart-image-container { width: 104px; }
  .ct .cart-remove-desktop { display: none !important; }
  .ct .cart-remove-mobile { display: grid !important; }
  .tpl-customer .table thead { display: none; }
  .tpl-customer .table tbody td { padding: 0.65rem 0.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ct .form, .ct .ct-checkout::after, .ct-empty-ico,
  [class*="tpl-"] .py-5-nav *, .bp-head { animation: none !important; }
}