/* ==========================================
   WAYAVE - PANEL CSS (Admin + Müşteri)
   ========================================== */

:root {
  --bg: #050510;
  --bg-secondary: #0a0a1f;
  --bg-card: #0f0f28;
  --bg-card2: #141435;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);

  --blue: #4361ee;
  --blue-light: #60a5fa;
  --purple: #7209b7;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --gradient: linear-gradient(135deg, #4361ee, #7209b7);
  --gradient-customer: linear-gradient(135deg, #06b6d4, #4361ee);

  --sidebar-width: 260px;
  --topbar-height: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ==========================================
   AUTH PAGE
   ========================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67, 97, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 238, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
  top: -200px; right: 0;
}

.auth-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(114, 9, 183, 0.12) 0%, transparent 70%);
  bottom: -100px; left: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 32px;
  width: auto;
}

.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: var(--gradient);
  color: white;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.admin-icon {
  background: rgba(67, 97, 238, 0.15);
  border: 1px solid rgba(67, 97, 238, 0.3);
  color: var(--blue-light);
}

.customer-icon {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  font-size: 11px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-password {
  position: relative;
}

.input-password input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.toggle-password:hover { color: var(--text-secondary); }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
  background: var(--gradient);
  border-color: transparent;
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 10px;
}

.forgot-link {
  font-size: 13px;
  color: var(--blue-light);
  transition: var(--transition);
}
.forgot-link:hover { opacity: 0.8; }

.terms-link {
  color: var(--blue-light);
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert i { font-size: 14px; }

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  width: 100%;
}

.btn-auth:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-auth:disabled { opacity: 0.7; cursor: default; transform: none; }

.customer-btn {
  background: var(--gradient-customer);
}

.customer-btn:hover:not(:disabled) {
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auth-footer a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.auth-footer a:hover { color: var(--text-secondary); }

.demo-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.demo-info i { color: var(--blue-light); }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  background: var(--blue);
  transition: all 0.3s ease;
  width: 0%;
}

.password-strength span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================
   PANEL LAYOUT
   ========================================== */
.panel-page {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  height: 28px;
  width: auto;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-avatar {
  background: var(--gradient);
  color: white;
}

.customer-avatar {
  background: var(--gradient-customer);
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 2px;
  display: inline-block;
}

.admin-role {
  background: rgba(67, 97, 238, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.customer-role {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 8px;
  padding: 0 12px;
}

.nav-group-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(67, 97, 238, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(67, 97, 238, 0.15);
}

.nav-item i {
  width: 18px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-item span:first-of-type {
  flex: 1;
}

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(67, 97, 238, 0.2);
  color: var(--blue-light);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.nav-badge.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.2);
}

.nav-badge.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.nav-item.logout {
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  backdrop-filter: blur(4px);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  display: none;
  padding: 4px;
}

.page-title h1 {
  font-size: 18px;
  font-weight: 700;
}

.page-title span {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

.topbar-search i {
  color: var(--text-muted);
  font-size: 13px;
}

.topbar-search input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  width: 180px;
  font-family: 'Inter', sans-serif;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.topbar-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}

.topbar-user:hover { background: rgba(255,255,255,0.05); }

.topbar-user i { color: var(--text-muted); font-size: 11px; }

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.admin-avatar { background: var(--gradient); color: white; }
.customer-avatar-sm { background: var(--gradient-customer); color: white; }

/* PAGE CONTENT */
.page-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================
   STATS GRID
   ========================================== */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card-panel:hover {
  border-color: rgba(67, 97, 238, 0.2);
  transform: translateY(-2px);
}

.scp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.scp-icon.blue { background: rgba(67, 97, 238, 0.15); color: var(--blue-light); }
.scp-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.scp-icon.purple { background: rgba(114, 9, 183, 0.15); color: #c084fc; }
.scp-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.scp-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.scp-icon.gray { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

.scp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scp-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.scp-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.scp-change {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scp-change.positive { color: var(--green); }
.scp-change.negative { color: #fca5a5; }
.scp-change.neutral { color: var(--text-muted); }

/* ==========================================
   PANEL CARDS
   ========================================== */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.panel-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-card-header h3 i {
  color: var(--blue-light);
  font-size: 14px;
}

.link-all {
  font-size: 12px;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: var(--transition);
}
.link-all:hover { opacity: 0.8; }

.card-actions {
  display: flex;
  gap: 4px;
}

.btn-tab {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.btn-tab.active {
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.3);
  color: var(--blue-light);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.btn-primary-sm:hover { opacity: 0.85; transform: translateY(-1px); }

/* ==========================================
   CHARTS
   ========================================== */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-container {
  padding: 8px 0;
}

.simple-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
}

.chart-cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-v {
  width: 100%;
  background: rgba(67, 97, 238, 0.2);
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.chart-bar-v.active {
  background: var(--gradient);
}

.chart-bar-v:hover {
  background: var(--blue);
}

.chart-bar-v:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-primary);
}

.chart-col span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Donut Chart */
.donut-chart-wrapper {
  position: relative;
  width: 160px;
  margin: 0 auto 16px;
}

.donut-svg {
  width: 100%;
  height: auto;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-total {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #4361ee, #7209b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donut-label {
  font-size: 12px;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================
   TABLES
   ========================================== */
.table-wrapper {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
}

.panel-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.panel-table td {
  padding: 12px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.panel-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.panel-table tbody tr:last-child td {
  border-bottom: none;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-user small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.avatar-xs {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-info { background: rgba(67, 97, 238, 0.15); color: var(--blue-light); border: 1px solid rgba(67, 97, 238, 0.2); }

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.action-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.action-btn {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn:hover {
  background: rgba(67, 97, 238, 0.1);
  border-color: rgba(67, 97, 238, 0.3);
  color: var(--blue-light);
}

.action-btn.primary {
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.3);
  color: var(--blue-light);
}

.btn-renew {
  width: auto;
  padding: 0 10px;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--orange);
}

/* ==========================================
   TICKET LIST
   ========================================== */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ticket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ticket-item:last-child { border-bottom: none; }

.ticket-item.closed { opacity: 0.6; }

.ticket-priority {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ticket-priority.high { background: var(--red); }
.ticket-priority.medium { background: var(--orange); }
.ticket-priority.low { background: var(--green); }

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================
   WELCOME BANNER
   ========================================== */
.welcome-banner {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wb-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.wb-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-banner:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ==========================================
   SERVICES LIST (Customer)
   ========================================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-item:last-child { border-bottom: none; }

.service-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.service-item-icon.blue { background: rgba(67, 97, 238, 0.15); color: var(--blue-light); }
.service-item-icon.purple { background: rgba(114, 9, 183, 0.15); color: #c084fc; }
.service-item-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.service-item-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.service-item-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }

.service-item-info {
  flex: 1;
  min-width: 0;
}

.service-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.service-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.service-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.service-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.service-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-light);
  white-space: nowrap;
}

/* ==========================================
   INVOICE LIST
   ========================================== */
.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.invoice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.invoice-item:last-child { border-bottom: none; }

.invoice-info {
  flex: 1;
  min-width: 0;
}

.invoice-id {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.invoice-date {
  font-size: 11px;
  color: var(--text-muted);
}

.invoice-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================
   QUICK LINKS
   ========================================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

.quick-link:hover {
  background: rgba(67, 97, 238, 0.08);
  border-color: rgba(67, 97, 238, 0.2);
  transform: translateY(-3px);
}

.ql-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quick-link span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .topbar-search { display: none; }
}

@media (max-width: 1024px) {
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close { display: block; }

  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; }

  .sidebar-toggle { display: block; }

  .page-content { padding: 16px; }

  .stats-grid-4 { grid-template-columns: 1fr 1fr; }

  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item {
    flex-wrap: wrap;
  }

  .service-item-meta, .service-item-price {
    order: 3;
  }

  .quick-links { grid-template-columns: repeat(3, 1fr); }

  .auth-card { padding: 28px 20px; }

  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid-4 { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
