:root {
  --bg-dark: #0a0c10;
  --bg-card: #12161f;
  --bg-hover: #1e2634;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --border-color: rgba(212, 175, 55, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header & Navigation */
.header {
  background: rgba(18, 22, 31, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-img-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-subtitle {
  color: var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 2px;
  text-transform: uppercase;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-btn:hover, .nav-btn.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.container {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* PlatinMarket Style CMS Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #333333;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  background: #ffffff;
  color: #333333;
}

.cms-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
}

.cms-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f8fafc;
  color: #1e293b;
  vertical-align: middle;
}

.cms-table tr:hover td {
  background: #f1f5f9;
}

.link-code {
  color: #2563eb;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-decoration: none;
}

.link-code:hover {
  text-decoration: underline;
}

.link-customer {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.link-customer:hover {
  text-decoration: underline;
}

.badge-kargo {
  background: #0d9488;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 6px;
}

.badge-payment {
  color: #475569;
  font-size: 0.82rem;
}

/* CMS Status Dropdown with Colored Underline */
.cms-status-select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.status-underline-Kargo-Bekleniyor { border-bottom: 3px solid #f59e0b !important; }
.status-underline-Kargo-Teslim-Alındı { border-bottom: 3px solid #3b82f6 !important; }
.status-underline-İnceleme--Teşhis { border-bottom: 3px solid #8b5cf6 !important; }
.status-underline-Müşteri-Onayı-Bekliyor { border-bottom: 3px solid #f59e0b !important; }
.status-underline-Tamir--Bakım-Aşamasında { border-bottom: 3px solid #0284c7 !important; }
.status-underline-Kalite-Kontrol--Hazır { border-bottom: 3px solid #10b981 !important; }
.status-underline-Kargolandı--Teslim-Edildi { border-bottom: 3px solid #10b981 !important; }

.btn-ellipsis {
  background: #334155;
  color: #ffffff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.btn-ellipsis:hover {
  background: #0f172a;
}

/* Screenshot 2 Style "Üye Düzenle" Modal Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cms-modal-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 8px;
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.cms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.cms-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.cms-modal-body {
  display: flex;
  padding: 1.5rem;
  gap: 1.5rem;
}

.cms-sidebar-menu {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.cms-sidebar-item {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.cms-sidebar-item:hover, .cms-sidebar-item.active {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.cms-main-content-area {
  flex: 1;
}

.cms-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cms-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cms-form-group.span-2 { grid-column: span 2; }
.cms-form-group.span-3 { grid-column: span 3; }

.cms-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.cms-input, .cms-select, .cms-textarea {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.cms-input:focus, .cms-select:focus, .cms-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-cms-save {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-cms-save:hover {
  background: #059669;
}

.btn-cms-dark {
  background: #334155;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.cms-accordion-box {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 1rem;
  background: #ffffff;
}

.cms-accordion-header {
  padding: 12px 16px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #0f172a;
}

/* Glass & Hero styles for Customer Portal */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
