@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   ClipyDrop — Monochromatic Graphite & Pure White Design System
   ========================================================================== */

:root {
  /* Monochromatic Graphite Dark Palette */
  --color-neutral-950: #08080A; /* Deep Graphite Canvas Base */
  --color-neutral-900: #0F0F12; /* Studio Matte Graphite Surface */
  --color-neutral-850: #141418; /* High-End Graphite Glass Card Base */
  --color-neutral-800: #1A1A20; /* Elevated Input / Hover Surface */
  --color-neutral-700: #272730; /* Micro Frosted Glass Border */
  --color-neutral-600: #3F3F46;
  --color-neutral-400: #A1A1AA; /* Muted Zinc Secondary Text */
  --color-neutral-200: #E4E4E7; /* Soft Titanium Text */
  --color-neutral-50:  #F4F4F5; /* Soft Off-White Primary Text */

  /* Monochromatic Titanium & Soft White Accents */
  --color-brand-primary:   #E4E4E7; /* Soft Titanium White */
  --color-brand-hover:     #D4D4D8; /* Soft Titanium Silver */
  --color-brand-light:     #E4E4E7; /* Soft Titanium Accent Text */
  --color-brand-cyan:      #D4D4D8;
  --color-emerald:         #22C55E;
  --color-amber:           #F59E0B;
  --color-rose:            #EF4444;
  --color-sky:             #38BDF8;

  /* Semantic Theme Mapping (Monochromatic Graphite & Soft Titanium) */
  --color-bg-base:          #08080A;
  --color-bg-surface:       #0F0F12;
  --color-bg-surface-hover: #141418;
  --color-bg-card:          #141418;
  --color-bg-card-hover:    #1A1A20;

  --color-border-subtle:    rgba(255, 255, 255, 0.04);
  --color-border-default:   rgba(255, 255, 255, 0.08);
  --color-border-strong:    rgba(255, 255, 255, 0.16);
  --color-border-accent:    var(--color-brand-primary);

  --color-text-primary:     #F4F4F5;
  --color-text-secondary:   #A1A1AA;
  --color-text-tertiary:    #71717A;
  --color-text-accent:      #E4E4E7;

  --color-action-primary-bg:        var(--color-brand-primary);
  --color-action-primary-text:      #08080A;
  --color-action-primary-hover:     #D4D4D8;
  --color-action-secondary-bg:      #141418;
  --color-action-secondary-text:    #F4F4F5;
  --color-action-secondary-hover:   #1A1A20;
  --color-action-destructive-bg:    var(--color-rose);
  --color-action-destructive-text:  #FFFFFF;
  --color-action-destructive-hover: #DC2626;

  /* Monochromatic Stark Glass Shadows & Pure White Glows */
  --shadow-card:       0 8px 32px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --shadow-modal:      0 24px 64px rgba(0, 0, 0, 0.98), 0 0 40px rgba(255, 255, 255, 0.15);
  --shadow-focus-ring: 0 0 0 3px rgba(255, 255, 255, 0.30);
  --shadow-glow-green: 0 0 35px rgba(255, 255, 255, 0.15);
  --shadow-glow-cyan:  0 0 35px rgba(255, 255, 255, 0.15);

  /* Typography Scale */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Radii */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Custom Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #08080A;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

/* Universal SVG Icon Vector Styling */
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  pointer-events: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* PJAX Soft Hardware-Accelerated Page & Component Entrance */
body.pjax-leaving,
.pjax-leaving {
  opacity: 0.2;
  transition: opacity 0.12s ease-out;
}

body.pjax-entering,
.pjax-entering {
  animation: bodySoftEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes bodySoftEnter {
  0% {
    opacity: 0.25;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pjax-entering .card,
.pjax-entering .stats-card,
.pjax-entering table,
.pjax-entering .grid {
  animation: softCardFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

.pjax-entering .card:nth-child(1) { animation-delay: 0.02s; }
.pjax-entering .card:nth-child(2) { animation-delay: 0.06s; }
.pjax-entering .card:nth-child(3) { animation-delay: 0.10s; }
.pjax-entering .card:nth-child(4) { animation-delay: 0.14s; }

@keyframes softCardFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sidebar {
  width: 275px;
  background-color: #0B0B0E;
  border-right: 1px solid var(--color-border-default);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-content {
  flex: 1;
  margin-left: 275px;
  padding: 1.75rem 2.5rem 4rem 2.5rem;
  width: calc(100% - 275px);
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sleek Linear-style Navigation Links for Sidebar */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.835rem;
  font-weight: 600;
  color: #A1A1AA;
  text-decoration: none;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #F4F4F5;
  transform: translateX(2px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-link .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.nav-link:hover .icon,
.nav-link.active .icon {
  opacity: 1;
  color: #FFFFFF;
}

.guest-main {
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
}

/* Sidebar Collapsed State (Desktop & Mobile) */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100 !important;
  }
  .sidebar-overlay {
    z-index: 99 !important;
  }
  .sidebar.active, body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: var(--space-4) var(--space-3);
  }
}

/* Arc Browser Floating Pill Command Navbar */
.navbar-arc {
  max-width: 1020px;
  width: calc(100% - 2rem);
  margin: 1.25rem auto 0 auto;
  height: 60px;
  background: rgba(14, 15, 21, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.12);
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.875rem 0 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-arc:hover {
  border-color: rgba(248, 250, 252, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 35px rgba(248, 250, 252, 0.2);
}

.navbar-arc-main {
  position: sticky;
  top: 1rem;
  z-index: 50;
  background: rgba(14, 15, 21, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin-bottom: var(--space-8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-nav-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-nav-item {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #A1A1AA;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.arc-nav-item:not(.active):hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.arc-nav-item.active {
  background: #FFFFFF !important;
  color: #08080A !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

/* Fallback when JS is initializing or not present */
.arc-nav-segment:not(.js-animated) .arc-nav-item.active {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

/* Sidebar Backdrop Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 38;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  display: block;
  opacity: 1;
}

.arc-cmd-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.arc-cmd-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(248, 250, 252, 0.35);
  color: var(--color-text-primary);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08080A;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

/* Luxury Platinum Obsidian Cards */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 28px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.card-hero {
  background: linear-gradient(135deg, #141418 0%, #08080A 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  box-shadow: var(--shadow-glow-green);
}

.card-glass {
  background: rgba(20, 20, 24, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-default);
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* Luxury Platinum Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 42px;
  border: 1px solid transparent;
}

.btn-primary {
  background: #FFFFFF;
  color: #08080A;
  border: 1px solid #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: #E4E4E7;
  color: #08080A;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-bg-card);
  color: #FFFFFF;
  border: 1px solid var(--color-border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background-color: var(--color-bg-surface-hover);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--color-brand-light);
}

.btn-secondary:active {
  box-shadow: var(--neu-shadow-pressed);
}

.btn-destructive {
  background-color: var(--color-action-destructive-bg);
  color: var(--color-action-destructive-text);
}

.btn-destructive:hover {
  background-color: var(--color-action-destructive-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Elegant Emerald Detail Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap !important;
}

.badge-indigo {
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(20, 184, 166, 0.12);
  color: #5EEAD4;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-rose {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-violet {
  background: rgba(13, 148, 136, 0.12);
  color: #99F6E4;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: #121216;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
}

/* Typography & Stat Metrics */
.stat-hero {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text-primary);
}

.stat-hero-accent {
  color: var(--color-brand-light);
}

.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: var(--space-4);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 500px;
  background: var(--color-bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--neu-shadow-flat-lg), var(--shadow-glow-purple);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #F8FAFC;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  color: #F8FAFC;
  box-shadow: var(--neu-shadow-pressed);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-brand-primary);
  box-shadow: var(--neu-shadow-pressed), 0 0 0 2px rgba(16, 185, 129, 0.35);
}

/* Table */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  box-shadow: var(--neu-shadow-flat);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.table th {
  background-color: var(--color-bg-surface);
  color: var(--color-text-secondary);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.table tr:hover td {
  background-color: rgba(16, 185, 129, 0.04);
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .navbar-arc-main {
    top: 0 !important;
    margin: 0 0 1.25rem 0 !important;
    border-radius: 0 0 16px 16px !important;
    padding: 0.5rem 0.85rem !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
  }
  
  .navbar-arc-main .arc-nav-segment {
    display: none !important;
  }

  .navbar-user-actions {
    display: none !important;
  }

  .navbar-arc {
    height: auto !important;
    min-height: 52px;
    padding: 0.4rem 0.75rem !important;
  }

  .navbar-arc .arc-nav-segment {
    display: none !important;
  }

  .stat-hero {
    font-size: var(--text-2xl) !important;
  }
}

@media (max-width: 640px) {
  .user-profile-meta {
    display: none !important;
  }

  .card {
    padding: var(--space-4) !important;
  }

  .grid-cols-4, .grid-cols-3, .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th, .table td {
    padding: var(--space-2) var(--space-3) !important;
    font-size: var(--text-xs) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   ClipyDrop — Custom SweetAlert2 Style Modal (clipydrop_swal)
   ========================================================================== */
.clipydrop-swal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  padding: var(--space-4);
}

.clipydrop-swal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.clipydrop-swal-box {
  width: 100%;
  max-width: 440px;
  background: #0E0E12;
  background: linear-gradient(145deg, #14141A 0%, #09090C 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-2xl);
  padding: 1.85rem 1.6rem 1.6rem 1.6rem;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
  transform: scale(0.90) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clipydrop-swal-overlay.active .clipydrop-swal-box {
  transform: scale(1) translateY(0);
}

.clipydrop-swal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.clipydrop-swal-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.clipydrop-swal-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 380px;
  white-space: pre-line;
}

.clipydrop-swal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

/* ==========================================================================
   Quill.js Rich Text Editor Dark Mode Customizations
   ========================================================================== */
.ql-toolbar.ql-snow {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 12px !important;
}

.ql-container.ql-snow {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  min-height: 150px;
}

.ql-stroke {
  stroke: #A1A1AA !important;
}

.ql-fill {
  fill: #A1A1AA !important;
}

.ql-picker {
  color: #A1A1AA !important;
}

.ql-picker-options {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

.ql-editor strong {
  color: #FFFFFF !important;
}

.ql-editor {
  line-height: 1.6;
}

.ql-editor.ql-blank::before {
  color: #71717A !important;
  font-style: normal !important;
}


