/* ==========================================================================
   MÜŞTERİ PORTALI (HESABIM) & GİRİŞ STİLLERİ
   ========================================================================== */

.ms-account-wrapper {
  padding: 3rem 1rem 5rem 1rem;
  min-height: 80vh;
  background-color: #f8fafc;
}

.ms-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   1. GİRİŞ KARTI (AUTH CARD & FORM)
   ========================================================================== */
.ms-auth-card {
  max-width: 460px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.ms-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ms-auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.ms-auth-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* Giriş Sekmeleri */
.ms-auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 1.75rem;
}

.ms-auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ms-auth-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Form Elemanları */
.ms-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.ms-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.ms-form-group input,
.ms-form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.ms-form-group input:focus,
.ms-form-group textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.ms-form-help {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}

.ms-btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.ms-btn-submit:hover {
  background: #000000;
}

.ms-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ms-resend-box {
  text-align: center;
  margin-top: 1rem;
}

.ms-btn-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: #64748b;
  cursor: pointer;
}

.ms-btn-link:not(:disabled) {
  color: #0f172a;
  text-decoration: underline;
}

.ms-form-alert {
  display: none;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: center;
}

.ms-form-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.ms-form-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   2. DASHBOARD ALANI (HERO & NAVİGASYON)
   ========================================================================== */
.ms-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}

.ms-dash-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.ms-dash-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.2rem 0;
  letter-spacing: -0.02em;
}

.ms-dash-sub {
  color: #94a3b8;
  font-size: 0.9rem;
}

.ms-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: #fee2e2;
  border-radius: 8px;
  transition: background 0.2s;
}

.ms-btn-logout:hover {
  background: #fecaca;
}

/* Sekme Menüsü */
.ms-dash-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2rem;
  padding-bottom: 2px;
}

.ms-nav-tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.ms-nav-tab.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.ms-tab-content {
  display: none;
}

.ms-tab-content.active {
  display: block;
}

/* ==========================================================================
   3. KARTLAR & GENEL BAKIŞ
   ========================================================================== */
.ms-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.ms-card-highlight {
  border-left: 4px solid #0f172a;
}

.ms-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.ms-card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.8rem 0;
  color: #0f172a;
}

.ms-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.ms-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.ms-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.ms-btn-action {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.ms-btn-action:hover {
  background: #000000;
}

.ms-btn-wa {
  background: #16a34a;
}

.ms-btn-wa:hover {
  background: #15803d;
}

.ms-overview-grid,
.ms-aftercare-grid,
.ms-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ms-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.ms-empty-state p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: #64748b;
}

.ms-guide-list {
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   4. SİPARİŞ LİSTE SATIRLARI (mali_sale)
   ========================================================================== */
.ms-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ms-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ms-item-row:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ms-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-item-num {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.ms-item-date {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ms-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ms-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   5. RANDEVU LİSTESİ (SADE, ŞIK & TAKVİM DESTEKLİ)
   ========================================================================== */
.ms-booking-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.ms-booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ms-booking-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.ms-bitem-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.ms-bitem-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-bitem-code {
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  font-family: monospace;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.ms-bitem-cat {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ms-bitem-service {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #475569;
}

.ms-bitem-dur {
  font-weight: 700;
  color: #0f172a;
}

.ms-bitem-datetime {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

/* Takvime Ekle Butonu */
.ms-bitem-calendar-wrap {
  margin-top: 0.45rem;
}

.ms-btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ms-btn-calendar:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.ms-bitem-status {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

/* ==========================================================================
   6. DURUM ROZETLERİ (STATUS PILL BADGES)
   ========================================================================== */
.ms-pill-badge,
.ms-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.status-pending,
.ms-status-bekliyor,
.ms-status-beklemede,
.ms-status-pending,
.ms-status-processing {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.status-confirmed,
.status-completed,
.ms-status-tamamlandi,
.ms-status-onaylandi,
.ms-status-completed,
.ms-status-publish {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

.status-cancelled,
.ms-status-iptal,
.ms-status-cancelled,
.ms-status-failed {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

/* ==========================================================================
   7. RESPONSIVE DÜZEN
   ========================================================================== */
@media (max-width: 640px) {
  .ms-overview-grid,
  .ms-aftercare-grid,
  .ms-form-row {
    grid-template-columns: 1fr;
  }
  
  .ms-dash-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ms-item-row,
  .ms-booking-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .ms-item-meta,
  .ms-bitem-status {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
  }
}