/* ============================================
   SentryDog CyberSystems — Design System v2
   Enhanced with premium UI/UX polish
   ============================================ */

:root {
  --sdc-primary: #0A1A2F;
  --sdc-primary-light: #152B46;
  --sdc-accent: #F5A625;
  --sdc-accent-hover: #D98D1C;
  --sdc-accent-glow: rgba(245, 166, 37, 0.15);
  --sdc-bg: #f8f9fb;
  --sdc-card-border: rgba(0, 0, 0, 0.06);
  --sdc-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --sdc-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.07), 0 3px 10px rgba(0, 0, 0, 0.04);
  --sdc-transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sdc-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Figtree', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--sdc-bg);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* --- Custom Select Arrow --- */
select.sdc-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}

@keyframes skeletonPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.45s ease-out both;
}

.animate-slide-in-right {
  animation: slideInRight 0.4s ease-out both;
}

.animate-scale-in {
  animation: scaleIn 0.35s var(--sdc-transition-bounce) both;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out both;
}

/* Staggered children — smooth cascade */
.stagger-children > * {
  animation: fadeIn 0.4s ease-out both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 70ms; }
.stagger-children > *:nth-child(3) { animation-delay: 140ms; }
.stagger-children > *:nth-child(4) { animation-delay: 210ms; }
.stagger-children > *:nth-child(5) { animation-delay: 280ms; }
.stagger-children > *:nth-child(6) { animation-delay: 350ms; }

/* Page transition wrapper */
.page-transition {
  animation: slideUp 0.4s ease-out both;
}

/* ============================================
   SKELETON LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 10px;
  width: 40%;
}

.skeleton-card {
  background: white;
  border: 1px solid var(--sdc-card-border);
  border-radius: 12px;
  padding: 20px;
  min-height: 100px;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-metric {
  height: 32px;
  width: 80px;
  margin-bottom: 4px;
}

/* Loading overlay */
.sdc-loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--sdc-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sdc-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sdc-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--sdc-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   MODAL / OVERLAY
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-panel {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.03);
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.35s var(--sdc-transition-bounce);
}

/* ============================================
   TOOLTIPS
   ============================================ */

.sdc-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--sdc-primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(10, 26, 47, 0.35);
  pointer-events: none;
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  max-width: 280px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.sdc-tooltip.show {
  opacity: 1;
  transform: translateY(-6px) scale(1);
}
.sdc-tooltip .arrow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--sdc-primary);
  transform: rotate(45deg);
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  box-shadow: 0 6px 18px rgba(10, 26, 47, 0.35);
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .sdc-tooltip { transition: none; }
  .animate-fade-in,
  .animate-fade-in-up,
  .animate-slide-in-right,
  .animate-scale-in,
  .animate-slide-up,
  .stagger-children > *,
  .page-transition { animation: none !important; }
}

/* ============================================
   NOTIFICATION PANEL
   ============================================ */

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: white;
  border-left: 1px solid #e5e7eb;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
  z-index: 45;
  transform: translateX(100%);
  transition: transform 0.35s var(--sdc-transition-smooth);
  overflow-y: auto;
}

.notification-panel.open {
  transform: translateX(0);
}

.notification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.15);
  z-index: 44;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.notification-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Notification badge pulse */
.notif-badge-pulse {
  position: relative;
}
.notif-badge-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sdc-accent);
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */

.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.35);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-mobile {
  transition: transform 0.35s var(--sdc-transition-smooth);
}

.sidebar-mobile.closed {
  transform: translateX(-100%);
}

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

/* ============================================
   SIDEBAR NAVY THEME — Enhanced
   ============================================ */

.sidebar-navy {
  background: linear-gradient(180deg, var(--sdc-primary) 0%, #071525 100%);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: visible;
}

.sidebar-navy a {
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-navy a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: white;
  transform: translateX(2px);
}

.sidebar-navy a.active {
  background: linear-gradient(135deg, var(--sdc-accent) 0%, #e8961e 100%) !important;
  color: var(--sdc-primary) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 166, 37, 0.3);
  transform: none;
}

.sidebar-navy a.active iconify-icon {
  transform: scale(1.1);
}

.sidebar-navy-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-navy-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-navy-footer button:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-collapse-handle {
  position: absolute;
  top: 10px;
  right: -26px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease;
}

#sidebar-toggle-btn {
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#sidebar-toggle-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.sidebar-collapsed {
  width: 76px !important;
}

.sidebar-collapsed .sidebar-navy-header {
  justify-content: center;
}

.sidebar-collapsed #sidebar-logo {
  height: 32px !important;
  width: 32px !important;
}

.sidebar-collapsed .user-info-name,
.sidebar-collapsed .user-info-email,
.sidebar-collapsed .user-role-label,
.sidebar-collapsed #desktop-sidebar-nav p,
.sidebar-collapsed #desktop-sidebar-nav span {
  display: none;
}

.sidebar-collapsed #desktop-sidebar-nav nav a {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar-collapsed .sidebar-navy-footer {
  padding: 0.75rem;
}

/* Sidebar logo enhancement */
.sidebar-logo {
  background: linear-gradient(135deg, var(--sdc-accent) 0%, #e8961e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* ============================================
   PRICING TOGGLE
   ============================================ */

.pricing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
}

.pricing-toggle button {
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  transition: all 0.25s ease;
}

.pricing-toggle button.active {
  background: white;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: none;
}

.save-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.website-type-combobox {
  position: relative;
}

.website-type-input-wrap {
  position: relative;
}

.website-type-input {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.625rem 2.25rem 0.625rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.website-type-input:focus {
  outline: none;
  border-color: #c5cad0;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.website-type-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.website-type-toggle:hover {
  background: #f1f5f9;
  color: #334155;
}

.website-type-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
  max-height: 210px;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 70;
}

.website-type-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.website-type-options {
  display: grid;
  gap: 0.2rem;
}

.website-type-option {
  width: 100%;
  border: none;
  border-radius: 0.55rem;
  text-align: left;
  background: transparent;
  color: #1f2937;
  font-size: 0.825rem;
  padding: 0.52rem 0.62rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.website-type-option:hover,
.website-type-option.is-active {
  background: #f1f5f9;
  color: #0f172a;
}

.website-type-option.is-selected {
  background: #eef2ff;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.website-type-option-empty {
  color: #6b7280;
  font-size: 0.79rem;
  padding: 0.55rem 0.62rem;
}

.maintenance-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.maintenance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.22rem 0.45rem 0.22rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.2;
}

.maintenance-chip-remove {
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.maintenance-chip-remove:hover {
  color: #334155;
  background: #e2e8f0;
}

.quill-editor {
  min-height: 160px;
  font-family: 'Figtree', system-ui, sans-serif;
}

.file-input {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 0.65rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: #0f172a;
}

.file-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(10, 26, 47, 0.12);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #0f172a;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-input:hover::file-selector-button {
  background: linear-gradient(180deg, #eef2f7 0%, #e3e8ef 100%);
  border-color: rgba(10, 26, 47, 0.2);
}

.ticket-attachments {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ticket-attachment-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.8);
  font-size: 0.75rem;
}

.ticket-attachment-chip a {
  color: #0f172a;
}

.quill-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.quill-wrapper .ql-toolbar {
  border: none !important;
  background: #fff;
  padding: 8px 10px;
}

.quill-wrapper .ql-container {
  border: none !important;
  min-height: 140px;
  background: #f8fafc;
  font-size: 14px;
}

.quill-wrapper .ql-editor {
  min-height: 120px;
  padding: 12px 14px;
}

.quill-fallback {
  width: 100%;
  min-height: 140px;
  border: none;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  resize: vertical;
  outline: none;
  padding: 12px 14px;
  line-height: 1.45;
  font-family: 'Figtree', system-ui, sans-serif;
}

/* ============================================
   TAB FILTERS
   ============================================ */

.tab-filters {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
}

.tab-filter {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.tab-filter:hover {
  color: var(--sdc-primary);
}

.tab-filter.active {
  color: var(--sdc-primary);
  border-bottom-color: var(--sdc-accent);
}

.tab-filter .count {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.tab-filter.active .count {
  background: var(--sdc-accent);
  color: var(--sdc-primary);
}

/* ============================================
   STATUS BADGES — Enhanced
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.badge-solo {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.badge-pro {
  background: var(--sdc-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(10, 26, 47, 0.2);
}

.badge-enterprise {
  background: linear-gradient(135deg, var(--sdc-primary), #1e1b4b);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(10, 26, 47, 0.25);
}

.badge-open {
  background: #dbeafe;
  color: #1e40af;
}

.badge-in-progress {
  background: #fef3c7;
  color: #92400e;
}

.badge-resolved {
  background: #d1fae5;
  color: #065f46;
}

/* ============================================
   CARDS — Enhanced with accent borders
   ============================================ */

.sdc-card {
  background: white;
  border: 1px solid var(--sdc-card-border);
  border-radius: 14px;
  box-shadow: var(--sdc-card-shadow);
  transition: all 0.3s var(--sdc-transition-smooth);
  position: relative;
  overflow: hidden;
}

.sdc-card:hover {
  box-shadow: var(--sdc-card-shadow-hover);
  transform: translateY(-2px);
}

/* Metric card with subtle top accent */
.sdc-metric-card {
  position: relative;
  overflow: hidden;
}

.sdc-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sdc-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sdc-metric-card:hover::before {
  opacity: 1;
}

/* Interactive card with hover lift*/
.sdc-card-interactive {
  cursor: pointer;
  transition: all 0.25s var(--sdc-transition-smooth);
}

.sdc-card-interactive:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--sdc-card-shadow-hover);
  transform: translateY(-3px);
}

.sdc-card-interactive:active {
  transform: translateY(-1px);
  box-shadow: var(--sdc-card-shadow);
}

/* ============================================
   PRICING CARDS — Enhanced
   ============================================ */

.pricing-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.35s var(--sdc-transition-smooth);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, var(--sdc-accent-glow), transparent);
  transition: height 0.4s ease;
}

.pricing-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
}

.pricing-card:hover::before {
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--sdc-accent);
  box-shadow: 0 8px 30px rgba(245, 166, 37, 0.12);
}

.pricing-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sdc-accent), #e8961e);
  color: var(--sdc-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.03em;
}

.pricing-amount {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--sdc-primary);
  transition: all 0.3s ease;
}

.pricing-period {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

/* ============================================
   AUTH PAGES — Enhanced with split layout
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sdc-bg);
  padding: 24px;
  position: relative;
}

/* Subtle background pattern removed per user request */

.auth-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  animation: slideUp 0.5s ease-out;
  position: relative;
  z-index: 1;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  color: #111827;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.auth-input:focus {
  border-color: #c5cad0;
  box-shadow: none;
  outline: none;
}

.auth-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--sdc-primary) 0%, var(--sdc-primary-light) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Figtree', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(10, 26, 47, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 26, 47, 0.3);
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.2);
}

.auth-btn:disabled,
.auth-social-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   TOAST SYSTEM — Enhanced
   ============================================ */

.sdc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sdc-primary);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 26, 47, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  font-size: 14px;
  font-weight: 500;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s var(--sdc-transition-bounce);
  max-width: 400px;
  backdrop-filter: blur(10px);
}

.sdc-toast.toast-exit {
  animation: toastOut 0.3s ease-out forwards;
}

.sdc-toast.toast-success {
  background: linear-gradient(135deg, #059669, #047857);
}

.sdc-toast.toast-error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.sdc-toast.toast-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-balance {
  text-wrap: balance;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth price transition */
.price-transition {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-transition.changing {
  opacity: 0;
  transform: translateY(-4px);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--sdc-primary), var(--sdc-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect for header */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   TICKET CONVERSATION
   ============================================ */

.ticket-message {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 80%;
  transition: all 0.2s ease;
}

.ticket-message.user {
  background: linear-gradient(135deg, var(--sdc-primary), var(--sdc-primary-light));
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.15);
}

.ticket-message.support {
  background: #f3f4f6;
  color: var(--sdc-primary);
  border-bottom-left-radius: 4px;
}

.ticket-message.system {
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  max-width: 100%;
  text-align: center;
  font-weight: 600;
}

.ticket-message:hover {
  transform: scale(1.01);
}

/* ============================================
   DANGER ZONE
   ============================================ */

.danger-zone {
  border: 1px solid #fca5a5;
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  position: relative;
  overflow: hidden;
}

.danger-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ============================================
   EMPTY STATES — Enhanced
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state iconify-icon {
  font-size: 52px;
  color: #d1d5db;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   TABLES — Enhanced hover states
   ============================================ */

tbody tr {
  transition: background-color 0.15s ease;
}

/* Interactive row with a left accent applied to the first cell only.
   Using a pseudo-element on <tr> can distort table layout in some browsers. */
.sdc-table-row {
  transition: background-color 0.2s ease;
}

.sdc-table-row > td:first-child {
  box-shadow: inset 0 0 0 0 var(--sdc-accent);
  transition: box-shadow 0.2s ease;
}

.sdc-table-row:hover > td:first-child {
  box-shadow: inset 3px 0 0 0 var(--sdc-accent);
}

/* ============================================
   ICON CONTAINERS — Micro-interactions
   ============================================ */

.sdc-icon-box {
  transition: all 0.25s var(--sdc-transition-smooth);
}

.sdc-icon-box:hover {
  transform: scale(1.05);
}

/* Action buttons with micro-interactions */
.sdc-action-btn {
  transition: all 0.2s ease;
  position: relative;
}

.sdc-action-btn:hover {
  transform: translateY(-1px);
}

.sdc-action-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ============================================
   UPTIME BAR — Visual indicator
   ============================================ */

.sdc-uptime-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  width: 60px;
}

.sdc-uptime-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.sdc-uptime-bar-fill.excellent {
  background: linear-gradient(90deg, #10b981, #059669);
}

.sdc-uptime-bar-fill.good {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.sdc-uptime-bar-fill.poor {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.sdc-uptime-bar-fill.none {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

/* ============================================
   HOVER GLOW EFFECTS
   ============================================ */

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--sdc-accent-glow), var(--sdc-card-shadow-hover);
}

/* ============================================
   STATUS DOT WITH PULSE
   ============================================ */

.status-dot-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.sdc-progress {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.sdc-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sdc-accent), #e8961e);
  transition: width 0.8s var(--sdc-transition-smooth);
}

/* ============================================
   FOCUS VISIBLE STYLES
   ============================================ */

:focus-visible {
  outline: 2px solid #c5cad0;
  outline-offset: 2px;
}

input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
  outline: none;
}

/* Reply button hover */
.sdc-reply-btn {
  transition: all 0.25s ease;
}
.sdc-reply-btn:hover {
  background-color: #ED9B20 !important;
  color: #08172A !important;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  .auth-card {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .modal-panel {
    width: 95%;
    border-radius: 14px;
  }

  .sdc-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
