/* =============================================
   TICKETFLOW - Professional Ticket System
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;

  /* Accent Colors */
  --accent-teal: #14b8a6;
  --accent-teal-dark: #0d9488;
  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --accent-pink: #ec4899;
  --accent-pink-dark: #db2777;
  --accent-yellow: #eab308;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;

  /* Status Colors */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; border: none; transition: all 0.2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-teal { background: var(--accent-teal); color: #fff; }
.btn-teal:hover { background: var(--accent-teal-dark); }
.btn-orange { background: var(--accent-orange); color: #fff; }
.btn-orange:hover { background: var(--accent-orange-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--gray-800); border: 1px solid var(--gray-200); }
.btn-white:hover { background: var(--gray-50); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: #fff; border: none;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #9333ea 100%);
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 16px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

/* Stat Cards */
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.stat-card.purple::before { background: linear-gradient(90deg, var(--primary), var(--accent-purple)); }
.stat-card.teal::before { background: linear-gradient(90deg, var(--accent-teal), #06b6d4); }
.stat-card.orange::before { background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow)); }
.stat-card.pink::before { background: linear-gradient(90deg, var(--accent-pink), #f43f5e); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--accent-blue), #6366f1); }
.stat-card.green::before { background: linear-gradient(90deg, var(--success), var(--accent-teal)); }

.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.stat-card.purple .stat-icon { background: var(--primary-50); color: var(--primary); }
.stat-card.teal .stat-icon { background: #f0fdfa; color: var(--accent-teal); }
.stat-card.orange .stat-icon { background: #fff7ed; color: var(--accent-orange); }
.stat-card.pink .stat-icon { background: #fdf2f8; color: var(--accent-pink); }
.stat-card.blue .stat-icon { background: #eff6ff; color: var(--accent-blue); }
.stat-card.green .stat-icon { background: #f0fdf4; color: var(--success); }

.stat-card .stat-value { font-size: 28px; font-weight: 800; font-family: 'Poppins'; }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.stat-card .stat-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; margin-top: 8px; padding: 2px 8px;
  border-radius: 20px;
}
.stat-card .stat-change.up { background: var(--success-bg); color: var(--success); }
.stat-card .stat-change.down { background: var(--danger-bg); color: var(--danger); }

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-bg); color: #16a34a; }
.badge-warning { background: var(--warning-bg); color: #d97706; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--accent-blue); }
.badge-purple { background: #f5f3ff; color: var(--accent-purple); }
.badge-teal { background: #f0fdfa; color: var(--accent-teal); }
.badge-orange { background: #fff7ed; color: var(--accent-orange); }

.priority-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.priority-dot.high { background: var(--danger); }
.priority-dot.medium { background: var(--warning); }
.priority-dot.low { background: var(--success); }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14px; transition: all 0.2s;
  background: #fff; color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* =============================================
   TABLES
   ============================================= */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
.table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:hover td { background: var(--gray-50); }
.table .user-cell { display: flex; align-items: center; gap: 10px; }
.table .user-cell .avatar { width: 32px; height: 32px; border-radius: 50%; }

/* =============================================
   AVATARS
   ============================================= */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; color: #fff; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-md { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.avatar-purple { background: linear-gradient(135deg, var(--primary), var(--accent-purple)); }
.avatar-teal { background: linear-gradient(135deg, var(--accent-teal), #06b6d4); }
.avatar-orange { background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)); }
.avatar-pink { background: linear-gradient(135deg, var(--accent-pink), #f43f5e); }
.avatar-blue { background: linear-gradient(135deg, var(--accent-blue), var(--primary)); }
.avatar-green { background: linear-gradient(135deg, var(--success), var(--accent-teal)); }

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* =============================================
   LAYOUT - SIDEBAR
   ============================================= */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width); background: var(--gray-900); color: #fff;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: column; transition: all 0.3s;
}
.sidebar-brand {
  padding: 20px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand .logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.sidebar-brand h2 { font-size: 18px; font-weight: 700; }
.sidebar-brand span { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-title {
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 1px; padding: 0 12px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--gray-400); font-size: 14px;
  font-weight: 500; transition: all 0.2s; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-footer .user-info { flex: 1; }
.sidebar-footer .user-name { font-size: 14px; font-weight: 600; }
.sidebar-footer .user-role { font-size: 12px; color: var(--gray-400); }

/* =============================================
   LAYOUT - MAIN CONTENT
   ============================================= */
.main-content { flex: 1; margin-left: var(--sidebar-width); }

.topbar {
  height: var(--header-height); background: #fff; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h1 { font-size: 20px; font-weight: 700; }
.topbar-left .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.topbar-left .breadcrumb a:hover { color: var(--primary); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; background: var(--gray-100);
  border-radius: var(--radius-sm); padding: 8px 14px; min-width: 240px;
}
.topbar-search input { border: none; background: none; outline: none; font-size: 14px; width: 100%; }
.topbar-search i { color: var(--gray-400); }

.notification-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: #fff; display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--gray-600); transition: all 0.2s;
}
.notification-btn:hover { background: var(--gray-50); }
.notification-btn .notif-dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid #fff;
}

.page-content { padding: 24px; }

/* =============================================
   DASHBOARD GRID
   ============================================= */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 24px;
}

.dashboard-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
.dashboard-grid.equal { grid-template-columns: 1fr 1fr; }
.dashboard-grid.triple { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 1024px) {
  .dashboard-grid, .dashboard-grid.equal, .dashboard-grid.triple {
    grid-template-columns: 1fr;
  }
}

/* Chart Container */
.chart-container { position: relative; height: 300px; }

/* =============================================
   TICKET STYLES
   ============================================= */
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-item {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  transition: all 0.2s; cursor: pointer;
}
.ticket-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.ticket-item .ticket-id { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 80px; }
.ticket-item .ticket-info { flex: 1; }
.ticket-item .ticket-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ticket-item .ticket-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 16px; }

/* =============================================
   TASK BOARD (KANBAN)
   ============================================= */
.kanban-board { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; }
.kanban-column { min-width: 300px; flex: 1; }
.kanban-column-header {
  padding: 12px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 700; font-size: 14px; display: flex; align-items: center;
  justify-content: space-between; color: #fff;
}
.kanban-column-header.todo { background: var(--gray-600); }
.kanban-column-header.in-progress { background: var(--accent-blue); }
.kanban-column-header.review { background: var(--accent-orange); }
.kanban-column-header.done { background: var(--success); }

.kanban-column-body {
  background: var(--gray-100); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px; min-height: 400px; display: flex; flex-direction: column; gap: 12px;
}
.kanban-card {
  background: #fff; border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  cursor: grab; transition: all 0.2s;
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kanban-card .card-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.kanban-card .card-meta { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; justify-content: space-between; }

/* =============================================
   TIMELINE / ACTIVITY
   ============================================= */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.activity-item .activity-text { font-size: 14px; }
.activity-item .activity-time { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 90%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
  transform: translateY(20px); transition: all 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 18px; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; color: var(--gray-500); transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-200); }

/* =============================================
   LANDING PAGE SPECIFIC
   ============================================= */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all 0.3s;
}
.landing-nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.landing-nav .nav-container { display: flex; align-items: center; justify-content: space-between; }
.landing-nav .nav-links { display: flex; gap: 32px; }
.landing-nav .nav-links a { font-weight: 500; font-size: 15px; color: #fff; transition: color 0.2s; }
.landing-nav.scrolled .nav-links a { color: var(--gray-700); }
.landing-nav.scrolled .nav-links a:hover { color: var(--primary); }
.landing-nav .nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.landing-nav.scrolled .nav-brand { color: var(--gray-900); }

.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.05'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='200' cy='200' r='300' fill='url(%23a)'/%3E%3Ccircle cx='1200' cy='600' r='400' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='100' r='200' fill='url(%23a)'/%3E%3C/svg%3E") no-repeat center/cover;
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 span { background: linear-gradient(135deg, #c084fc, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; }
.hero-image { position: relative; z-index: 2; flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-width: 560px; border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.3); }

.hero-mockup {
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3); width: 520px;
}
.hero-mockup .mockup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-mockup .mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-mockup .mockup-bar { height: 10px; border-radius: 5px; background: var(--gray-200); }
.hero-mockup .mockup-card { background: var(--gray-50); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }

.features-section { padding: 100px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.feature-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.feature-card .feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

.pricing-section { padding: 100px 0; background: var(--gray-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 960px; margin-left: auto; margin-right: auto; }
.pricing-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 2px solid var(--gray-200); text-align: center; transition: all 0.3s; }
.pricing-card.popular { border-color: var(--primary); position: relative; }
.pricing-card.popular::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pricing-card .price { font-size: 40px; font-weight: 800; font-family: 'Poppins'; margin: 16px 0; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--gray-500); }
.pricing-card ul { list-style: none; text-align: left; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.pricing-card ul li i { color: var(--success); }

.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: #fff;
}
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

.landing-footer {
  padding: 48px 0 24px; background: var(--gray-900); color: var(--gray-400);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* =============================================
   LOGIN / REGISTER
   ============================================= */
.auth-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; color: #fff; position: relative;
}
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Ccircle cx='400' cy='400' r='300' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='200' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='100' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") no-repeat center/cover;
}
.auth-left-content { position: relative; z-index: 2; max-width: 400px; }
.auth-left-content h1 { font-size: 36px; margin-bottom: 16px; }
.auth-left-content p { font-size: 16px; opacity: 0.8; line-height: 1.7; }

.auth-right {
  width: 520px; background: #fff; display: flex; align-items: center;
  justify-content: center; padding: 40px;
}
.auth-form { width: 100%; max-width: 400px; }
.auth-form h2 { font-size: 28px; margin-bottom: 8px; }
.auth-form .subtitle { color: var(--gray-500); margin-bottom: 32px; }

.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--gray-400); font-size: 13px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

.social-login { display: flex; gap: 12px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.social-btn:hover { background: var(--gray-50); }

/* =============================================
   HAMBURGER MENU BUTTON
   ============================================= */
.hamburger-btn {
  display: none;
  width: 40px; height: 40px; border: none; background: none;
  font-size: 20px; color: var(--gray-700); cursor: pointer;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.hamburger-btn:hover { background: var(--gray-100); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* =============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .dashboard-grid, .dashboard-grid.equal, .dashboard-grid.triple {
    grid-template-columns: 1fr;
  }
  .topbar-search { min-width: 180px; }
  .page-content { padding: 16px; }
}

/* =============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Sidebar: off-screen by default, slide in when .open */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }

  /* Main content full width */
  .main-content { margin-left: 0; }

  /* Show hamburger */
  .hamburger-btn { display: flex; }

  /* Topbar adjustments */
  .topbar {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }
  .topbar-left h1 { font-size: 16px; }
  .topbar-left .breadcrumb { display: none; }
  .topbar-search { min-width: 0; flex: 1; padding: 6px 10px; }
  .topbar-right { gap: 8px; }
  .topbar-right .btn { padding: 6px 10px; font-size: 12px; }

  /* Page content */
  .page-content { padding: 12px; }

  /* Stat cards grid */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 22px; }

  /* Summary strip (taskboard) */
  .page-content > div:first-child {
    flex-wrap: wrap !important;
  }
  .page-content > div:first-child > div {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: calc(50% - 8px);
  }

  /* Tables: horizontal scroll */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 700px; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }

  /* Cards */
  .card-body { padding: 16px; }
  .card-header { padding: 12px 16px; }
  .card-footer { padding: 12px 16px; }

  /* Filter bar */
  .card-body > div[style*="display:flex"] { flex-wrap: wrap !important; gap: 8px !important; }

  /* Kanban board */
  .kanban-board { flex-direction: column; gap: 16px; }
  .kanban-column { min-width: 100%; }
  .kanban-column-body { min-height: 200px; }

  /* Modals */
  .modal { width: 95%; max-width: 95%; margin: 10px; border-radius: var(--radius); }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }

  /* Ticket detail modal status buttons */
  .modal div[style*="gap:12px"] { gap: 6px !important; }
  .status-btn { padding: 4px 8px !important; font-size: 11px !important; }

  /* Forms */
  .form-group { margin-bottom: 14px; }
  .form-control { padding: 8px 12px; font-size: 14px; }
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 5px 10px; font-size: 12px; }

  /* Actions column: stack vertically */
  td .d-flex, td div[style*="display:flex"][style*="gap:4px"] {
    flex-wrap: wrap;
  }

  /* Badges */
  .badge { font-size: 11px; padding: 3px 8px; }

  /* Bulk action bar */
  #bulkActionBar {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
  }

  /* Landing page */
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content h1 { font-size: 32px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-mockup { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .landing-nav .nav-links { display: none; }

  /* Auth pages */
  .auth-page { flex-direction: column; }
  .auth-left { display: none; }
  .auth-right { width: 100%; min-height: 100vh; }

  /* Chart containers */
  .chart-container { height: 250px; }
}

/* =============================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card .stat-value { font-size: 20px; }

  .topbar-left h1 { font-size: 14px; }
  .topbar-search { display: none; }

  .page-content > div:first-child > div {
    flex: 1 1 100% !important;
    min-width: 100%;
  }

  .table { min-width: 600px; }

  .footer-grid { grid-template-columns: 1fr; }

  .modal { width: 100%; max-width: 100%; margin: 0; border-radius: 0; max-height: 100vh; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-in { animation: fadeIn 0.5s ease-out; }
.animate-slide { animation: slideIn 0.3s ease-out; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width 0.3s; }
.progress-bar.purple { background: linear-gradient(90deg, var(--primary), var(--accent-purple)); }
.progress-bar.teal { background: linear-gradient(90deg, var(--accent-teal), #06b6d4); }
.progress-bar.orange { background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow)); }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--gray-400); }

/* Ticket detail */
.ticket-detail-header { padding: 24px; background: linear-gradient(135deg, var(--primary-50), #f5f3ff); border-radius: var(--radius) var(--radius) 0 0; }
.ticket-conversation { padding: 24px; }
.message-bubble { padding: 16px; border-radius: var(--radius); margin-bottom: 16px; }
.message-bubble.staff { background: var(--primary-50); border-left: 4px solid var(--primary); }
.message-bubble.client { background: var(--gray-100); border-left: 4px solid var(--gray-400); }
.message-bubble .msg-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.message-bubble .msg-author { font-weight: 600; }
.message-bubble .msg-time { color: var(--gray-400); }
.message-bubble .msg-body { font-size: 14px; line-height: 1.7; }

/* Notification dropdown */
.notification-panel {
  position: absolute; top: 100%; right: 0; width: 380px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200); display: none; z-index: 200;
}
.notification-panel.show { display: block; }
