/* ══════════════════════════════════════════
   ElektroGH.wien – Account Page Styles
   ══════════════════════════════════════════ */

.account-hero {
  background: var(--black);
  padding: 48px 0;
}
.account-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.account-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-hero h1 .lucide { width: 28px; height: 28px; }
.account-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ──────────── AUTH FORMS ──────────── */
.auth-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.auth-panel {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.auth-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-panel-title .lucide { width: 22px; height: 22px; color: var(--yellow-dark); }
.auth-panel-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

.auth-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-light);
  margin: 4px 0;
  position: relative;
}
.forgot-link {
  font-size: 0.82rem;
  color: var(--yellow-dark);
  font-weight: 600;
  text-align: right;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--black); }

/* ──────────── DASHBOARD ──────────── */
.dashboard-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.dash-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: var(--nav-offset);
}
.dash-user {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.dash-avatar {
  width: 56px; height: 56px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.dash-avatar .lucide { width: 28px; height: 28px; color: var(--yellow-dark); }
.dash-name { font-size: 0.95rem; font-weight: 700; color: var(--black); }
.dash-email { font-size: 0.78rem; color: var(--muted); }
.dash-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-customer { background: #e5e7eb; color: #374151; }
.role-b2b { background: #dbeafe; color: #1d4ed8; }
.role-reseller { background: #ede9fe; color: #6d28d9; }
.role-staff { background: var(--yellow-light); color: var(--yellow-dark); }
.role-admin { background: #fee2e2; color: #dc2626; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 6px; cursor: pointer; border: 1px solid var(--border-light); background: var(--surface); display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.btn-sm:hover { background: var(--border-light); }
.btn-sm .lucide { width: 14px; height: 14px; }
.btn-danger { color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-light); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dash-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.dash-nav a .lucide { width: 18px; height: 18px; }
.dash-nav a:hover { background: var(--surface); color: var(--black); }
.dash-nav a.active { background: var(--yellow-light); color: var(--black); }

.dash-logout {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.dash-logout a { color: var(--red); }
.dash-logout a:hover { background: var(--red-light); }

.dash-content {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.dash-content-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

/* ──────────── ORDER HISTORY TABLE ──────────── */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}
.orders-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-light);
}
.orders-table td {
  padding: 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.order-status.delivered { background: var(--green-light); color: var(--green); }
.order-status.processing { background: var(--yellow-light); color: var(--yellow-dark); }
.order-status.shipped { background: var(--blue-light); color: var(--blue); }
.order-status.confirmed { background: #e0f2e9; color: #1a7a3a; }

.btn-reorder {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--yellow); color: var(--black); border: none;
  padding: 6px 12px; border-radius: 6px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-reorder:hover { background: var(--yellow-dark); }
.btn-reorder .lucide { width: 14px; height: 14px; }
.btn-cancel-order {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: #dc2626; border: 1px solid #dc2626;
  padding: 5px 10px; border-radius: 6px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; white-space: nowrap; margin-left: 4px;
}
.btn-cancel-order:hover { background: #dc2626; color: #fff; }
.btn-cancel-order .lucide { width: 14px; height: 14px; }

/* ──────────── ORDER DETAIL + RETURN MODALS ──────────── */
.konto-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.konto-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.konto-modal-content {
  position: relative; background: var(--white); border-radius: var(--radius-lg, 16px);
  width: 92%; max-width: 680px; max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.konto-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border-light, #e5e5e5);
}
.konto-modal-header h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.konto-modal-close { background: none; border: none; cursor: pointer; padding: 4px; color: var(--muted); }
.konto-modal-close:hover { color: var(--black); }
.konto-modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.odm-section { margin-bottom: 20px; }
.odm-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.odm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.odm-card { background: var(--bg-light, #f8f8f6); border-radius: 10px; padding: 14px 16px; }
.odm-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.odm-value { font-size: 0.88rem; color: var(--black); line-height: 1.4; }
.odm-items-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.odm-items-table th { text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border-light, #e5e5e5); }
.odm-items-table td { padding: 8px; border-bottom: 1px solid var(--border-light, #e5e5e5); }
.odm-totals { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.odm-totals-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.odm-totals-row.total { font-weight: 800; font-size: 1rem; padding-top: 8px; border-top: 2px solid var(--black); }
.odm-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.odm-tracking { font-family: 'DM Mono', monospace; font-size: 0.85rem; font-weight: 600; color: var(--yellow-dark, #d4930b); }
.odm-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.returns-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.returns-table th { text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border-light, #e5e5e5); }
.returns-table td { padding: 10px 8px; border-bottom: 1px solid var(--border-light, #e5e5e5); }
.return-status { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.return-status.pending { background: #fef3c7; color: #92400e; }
.return-status.approved { background: #dbeafe; color: #1e40af; }
.return-status.rejected { background: #fee2e2; color: #991b1b; }
.return-status.completed { background: #dcfce7; color: #166534; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; padding: 20px 16px 40px; gap: 16px; }
  .auth-panel { padding: 24px; }
  .auth-panel-title { font-size: 1.05rem; }
  .dashboard-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .dash-sidebar { position: static; }
  .dash-sidebar .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .dash-nav a { padding: 8px 12px; font-size: 0.82rem; }
  .dash-nav a .lucide { width: 16px; height: 16px; }
  .dash-content { padding: 24px; }
  .dash-content-title { font-size: 1rem; margin-bottom: 18px; }
  .orders-table { font-size: 0.78rem; }
  .orders-table th, .orders-table td { padding: 10px 8px; }
  .odm-grid { grid-template-columns: 1fr; }
  .konto-modal-content { width: 96%; max-height: 90vh; }
  .konto-modal-body { padding: 16px; }
  .odm-actions { flex-direction: column; }
  .account-hero { padding: 28px 0; }
  .account-hero-inner { padding: 0 16px; }
  .account-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .auth-layout { padding: 16px 12px 32px; }
  .auth-panel { padding: 20px; }
  .dashboard-layout { padding: 12px; }
  .dash-content { padding: 18px; }
  .dash-sidebar { padding: 16px; }
  .account-hero h1 { font-size: 1.3rem; }
}
