/* ===== DESIGN SYSTEM ===== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-hover: #243044;
  --bg-input: #1e293b;
  --bg-modal: rgba(0, 0, 0, 0.7);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --info: #06b6d4;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-width: 260px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e17 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow-y: auto;
  padding: 20px 0;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: float 2s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.login-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.login-card {
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Tabs */
.tab-buttons {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== LOGIN / REGISTER MOBILE ===== */
@media (max-width: 520px) {
  .login-page {
    align-items: flex-start;
    padding: 16px 0 40px;
  }

  .login-card {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* iOS auto-zoom engellemek icin 16px */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== LAYOUT ===== */
.app-layout {
  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;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header .logo-sm {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-header small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details .name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
}

.logout-btn:hover {
  color: var(--danger);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 28px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--accent-light);
  color: var(--accent);
}

.stat-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.yellow {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== TABLES ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 12px 20px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
}

tr:hover td {
  background: var(--bg-hover);
}

tr:last-child td {
  border-bottom: none;
}

/* ===== BADGES ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.active,
.badge-status.completed,
.badge-status.open {
  background: var(--success-light);
  color: var(--success);
}

.badge-status.inactive,
.badge-status.closed,
.badge-status.failed {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-status.pending,
.badge-status.in_progress {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-status.resolved {
  background: var(--accent-light);
  color: var(--accent);
}

.priority-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-badge.low {
  background: var(--success-light);
  color: var(--success);
}

.priority-badge.medium {
  background: var(--warning-light);
  color: var(--warning);
}

.priority-badge.high {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.priority-badge.critical {
  background: var(--danger-light);
  color: var(--danger);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== CHAT ===== */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.chat-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.chat-sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.chat-item:hover {
  background: var(--bg-hover);
}

.chat-item.active {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.chat-item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
}

.online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-info .preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-meta {
  text-align: right;
  flex-shrink: 0;
}

.chat-item-meta .time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-item-meta .unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  /* Vibrant Red-Orange */
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: pulse-badge 1.5s infinite;
  position: relative;
  overflow: hidden;
  /* For ripple if needed, but pulse is better */
}

/* Radiating effect */
.chat-item-meta .unread::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 1.5s infinite;
}

@keyframes ripple {
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.chat-item.new-message {
  animation: highlight-message-flash 2s ease-out;
  z-index: 10;
  position: relative;
}

@keyframes highlight-message-flash {
  0% {
    background-color: rgba(250, 204, 21, 0.8);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
  }

  /* Bright Yellow */
  20% {
    background-color: rgba(250, 204, 21, 0.4);
  }

  100% {
    background-color: transparent;
  }
}

/* Chat Main Area */
.chat-main {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
}

.chat-header-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-header-info .status {
  font-size: 0.8rem;
  color: var(--success);
}

.chat-header-info .typing {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: fadeIn 0.2s ease;
}

.message-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d4ed8, var(--accent));
  color: white;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-bubble .sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.message-bubble.sent .sender {
  color: rgba(255, 255, 255, 0.7);
}

.message-bubble .msg-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.message-bubble.received .msg-time {
  color: var(--text-muted);
}

.read-ticks {
  font-size: 0.85rem;
}

.read-ticks.read {
  color: #34d399;
}

.read-ticks.unread {
  color: rgba(255, 255, 255, 0.4);
}

.message-bubble img {
  max-width: 280px;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  object-fit: cover;
  display: block;
}

/* Chat Input */
.chat-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-card);
}

.chat-input-area .input-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
}

.chat-input-area textarea {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  resize: none;
  outline: none;
  padding: 8px 0;
  max-height: 100px;
}

.chat-input-area .attach-btn,
.chat-input-area .send-btn {
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-input-area .attach-btn {
  background: none;
  color: var(--text-muted);
}

.chat-input-area .attach-btn:hover {
  color: var(--accent);
}

.chat-input-area .send-btn {
  background: var(--accent);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-area .send-btn:hover {
  background: var(--accent-hover);
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.chat-empty .icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.chat-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.chat-empty p {
  font-size: 0.85rem;
}

/* ===== TICKET DETAIL ===== */
.ticket-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.ticket-messages-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 600px;
}

.ticket-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.ticket-msg {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.ticket-msg.admin {
  flex-direction: row-reverse;
}

.ticket-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ticket-msg:not(.admin) .ticket-msg-avatar {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

.ticket-msg.admin .ticket-msg-avatar {
  background: linear-gradient(135deg, var(--success), #059669);
}

.ticket-msg-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  max-width: 75%;
}

.ticket-msg.admin .ticket-msg-content {
  background: var(--accent-light);
  border-color: rgba(59, 130, 246, 0.2);
}

.ticket-msg-content .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.ticket-msg-content .text {
  font-size: 0.9rem;
  margin-top: 4px;
  line-height: 1.5;
}

.ticket-msg-content .time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.ticket-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ticket-info-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-row .value {
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== PACKAGE CARDS ===== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 12px 0;
}

.package-card .price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.package-card .feature-list {
  list-style: none;
  margin: 16px 0;
}

.package-card .feature-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-card .feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  background: linear-gradient(135deg, #059669, var(--success));
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, var(--danger));
}

.toast.info {
  background: linear-gradient(135deg, #2563eb, var(--accent));
}

.toast.warning {
  background: linear-gradient(135deg, #d97706, var(--warning));
}

/* ===== SEARCH ===== */
.search-box {
  position: relative;
}

.search-box input {
  padding: 9px 14px 9px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  width: 240px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--accent);
  width: 300px;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar select {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
}

/* ===== LOADING ===== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.85rem;
}

/* ===== IMAGE PREVIEW ===== */
.image-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-preview-overlay.active {
  display: flex;
}

.image-preview-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet & Mobile (max 768px) --- */
@media (max-width: 768px) {

  /* Hamburger visible */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.4rem;
    -webkit-tap-highlight-color: transparent;
  }

  /* Sidebar off-screen */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar-overlay.open {
    display: block;
  }

  /* Main content full width */
  .main-content {
    margin-left: 0;
    padding: 64px 12px 24px;
  }

  /* Page header stack */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }

  /* Stat cards 2-col */
  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
    gap: 10px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .stat-info h3 {
    font-size: 1.2rem;
  }

  .stat-info p {
    font-size: 0.75rem;
  }

  /* Premium stat cards */
  .stat-cards-new {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card-new {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Tables mobile */
  .table-container {
    border-radius: var(--radius-sm);
  }

  .table-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 0.78rem;
    min-width: 500px;
  }

  th {
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  td {
    padding: 10px 12px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  /* Buttons touch-friendly */
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-sm {
    padding: 10px 14px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  /* Modals full-screen on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    margin: 0;
    max-width: 100%;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    animation: slideUpMobile 0.3s ease;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-header {
    padding: 16px 18px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 5;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-footer {
    padding: 14px 18px;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
  }

  /* Chat layout mobile */
  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 64px);
    border-radius: 0;
    border: none;
  }

  .chat-sidebar {
    display: none;
  }

  .chat-sidebar.mobile-show {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 300;
    border-radius: 0;
  }

  .chat-input-area {
    padding: 10px 12px;
    gap: 8px;
  }

  .chat-input-area textarea {
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .chat-messages {
    padding: 14px;
  }

  .message-bubble {
    max-width: 85%;
    font-size: 0.88rem;
  }

  .message-bubble img {
    max-width: 200px;
    max-height: 200px;
  }

  /* Ticket detail */
  .ticket-detail {
    grid-template-columns: 1fr;
  }

  .ticket-info-panel {
    padding: 18px;
  }

  .ticket-messages-section {
    max-height: 500px;
  }

  /* Search */
  .search-box input {
    width: 100%;
    font-size: 16px;
  }

  .search-box input:focus {
    width: 100%;
  }

  /* Hero section */
  .hero-section {
    padding: 20px;
    border-radius: var(--radius);
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-bg-icon {
    font-size: 6rem;
  }

  /* Quick actions */
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-action-btn {
    padding: 12px;
    font-size: 0.78rem;
  }

  /* Activity feed */
  .activity-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .activity-title {
    font-size: 0.83rem;
  }

  .activity-desc {
    font-size: 0.75rem;
  }

  /* Packages */
  .package-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .package-card {
    padding: 20px;
  }

  .package-card .price {
    font-size: 1.6rem;
  }

  /* Cards */
  .card {
    padding: 18px;
    border-radius: var(--radius-sm);
  }

  /* Toast notification */
  .toast {
    left: 12px;
    right: 12px;
    max-width: none;
    font-size: 0.85rem;
  }

  /* Image preview modal */
  .image-preview-overlay img {
    max-width: 95%;
    max-height: 85%;
  }

  /* Nav items touch-friendly */
  .nav-item {
    padding: 13px 14px;
    font-size: 0.92rem;
    min-height: 44px;
  }

  /* Sidebar footer user info */
  .sidebar-footer {
    padding: 14px 16px;
  }

  /* Google Ads detail modal specifics */
  .detail-metric-card {
    padding: 12px 8px;
  }

  .dm-val {
    font-size: 1.1rem !important;
  }

  .dm-label {
    font-size: 0.65rem !important;
  }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {

  .main-content {
    padding: 60px 8px 20px;
  }

  /* Stat cards stack */
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .stat-cards-new {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  /* Login */
  .login-container {
    padding: 12px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-logo .logo-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .login-logo h1 {
    font-size: 1.2rem;
  }

  /* Page header */
  .page-header h1 {
    font-size: 1.15rem;
  }

  /* Quick actions 2-col */
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .quick-action-btn {
    padding: 10px 8px;
    font-size: 0.72rem;
  }

  .quick-action-icon {
    font-size: 1.2rem;
  }

  /* Smaller cards */
  .card {
    padding: 14px;
  }

  /* Hero section */
  .hero-section {
    padding: 16px;
  }

  /* Form group */
  .form-group label {
    font-size: 0.8rem;
  }

  /* Modal on smallest screens */
  .modal {
    max-height: 100vh;
    border-radius: 0;
  }

  /* Tab buttons */
  .tab-btn {
    padding: 8px;
    font-size: 0.82rem;
  }

  /* Chat - bigger touch targets */
  .chat-input-area .send-btn {
    width: 44px;
    height: 44px;
  }

  .chat-item {
    padding: 12px 14px;
  }

  /* Message bubble */
  .message-bubble {
    max-width: 90%;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Activity feed */
  .activity-list {
    max-height: 300px;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {

  /* Disable hover effects that feel 'sticky' on touch */
  .stat-card:hover,
  .stat-card-new:hover,
  .package-card:hover {
    transform: none;
    box-shadow: none;
  }

  .quick-action-btn:hover {
    transform: none;
  }

  /* Active feedback instead of hover */
  .btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }

  .nav-item:active {
    background: var(--bg-hover);
  }

  .chat-item:active {
    background: var(--bg-hover);
  }

  /* Ensure minimum tap targets */
  .btn,
  .nav-item,
  .chat-item,
  .tab-btn {
    min-height: 44px;
  }

  /* Scrollbar hidden on touch devices */
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* Live Indicator */
.live-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
  vertical-align: middle;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}


/* ===== PREMIUM DASHBOARD ===== */

.hero-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 10rem;
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
}

.stat-cards-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card-new {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--border-light);
}

.stat-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.stat-card-new:hover::before {
  opacity: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.stat-icon-bg {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 2.5rem;
  opacity: 0.1;
}

.activity-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}

.activity-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.activity-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-list {
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background-color: var(--bg-hover);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.activity-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.quick-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}


/* CHAT FIXES */
.message-bubble {
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.message-bubble img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.chat-messages {
  overflow-anchor: auto !important;
}

/* CLOSED CHAT STYLES */
.chat-item.closed {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.2) !important;
  filter: grayscale(0.8);
}

.chat-item.closed:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

.chat-closed-overlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(30, 41, 59, 0.9);
  padding: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  pointer-events: none;
}

.btn-reopen {
  background: var(--success) !important;
  color: white !important;
}

.btn-reopen:hover {
  background: var(--success-dark) !important;
}

.input-disabled {
  pointer-events: none;
  opacity: 0.5;
  background: var(--bg-secondary);
}

/* CHAT SCROLL FIX */
#chatActive {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--bg-card);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: var(--bg-body);
}

.chat-main {
  background: var(--bg-card);
  height: 100%;
  overflow: hidden;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {

  /* Disable heavy animations on login page */
  .login-page::before,
  .login-page::after {
    display: none;
    /* Remove the floating blobs entirely */
    animation: none;
  }

  /* Simplify background */
  .login-page {
    background: #0a0e17;
    /* Solid color fallback */
  }

  /* Remove backdrop-filter (glassmorphism) which is heavy on mobile GPU */
  .login-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #1a2332;
    /* Solid card background */
    box-shadow: none;
    border: none;
  }

  /* Disable smooth scroll which can cause lag on mobile */
  html {
    scroll-behavior: auto !important;
  }

  /* Disable transitions and animations for better performance */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}