:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #0A0F0D;
    color: #00FF41;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Background */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 65, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Landing Page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.glitch-title {
    font-size: 4rem;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 
        0 0 10px #00FF00,
        0 0 20px #00FF00,
        0 0 30px #00FF00;
    animation: glitch 2s infinite;
    margin-bottom: 1rem;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translateX(0);
        color: #00FF00;
    }
    10% {
        transform: translateX(-2px);
        color: #39FF14;
    }
    20% {
        transform: translateX(2px);
        color: #00FF41;
    }
    30% {
        transform: translateX(-1px);
        color: #00FF00;
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #FF0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #0000FF;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(2px); }
    40% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    80% { transform: translateX(-2px); }
}

.subtitle {
    font-size: 1.5rem;
    color: #39FF14;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #39FF14;
}

.description {
    font-size: 1.2rem;
    color: #00FF41;
    margin-bottom: 2rem;
    max-width: 600px;
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #FF0000;
    padding: 1rem 2rem;
    margin: 2rem 0;
    border-radius: 5px;
    animation: pulse-red 2s infinite;
}

.warning-text {
    color: #FF0000;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #FF0000;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
}

.landing-buttons {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
}

.feature-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: #00FF41;
    font-weight: bold;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    padding: 12px 24px;
    border: 2px solid #00FF00;
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-secondary:hover, .btn-small:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px #00FF00;
}

.btn-secondary {
    border-color: #39FF14;
    color: #39FF14;
    background: rgba(57, 255, 20, 0.1);
}

.btn-secondary:hover {
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    text-shadow: 0 0 10px #39FF14;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

/* Auth Pages */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2.5rem;
    color: #00FF00;
    text-shadow: 0 0 20px #00FF00;
    margin-bottom: 1rem;
    position: relative;
}

.auth-form {
    width: 100%;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00FF41;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00FF41;
    color: #00FF00;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

.status-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.status-text.success {
    color: #00FF00;
}

.status-text.error {
    color: #FF0000;
}

.error-message {
    color: #FF0000;
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #00FF41;
}

.auth-footer a {
    color: #00FF00;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-shadow: 0 0 10px #00FF00;
}

/* Dashboard */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #00FF41;
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agnos-balance {
    color: #39FF14;
    font-weight: bold;
    background: rgba(57, 255, 20, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #39FF14;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    border-right: 2px solid #00FF41;
    padding: 2rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-left-color: #00FF41;
}

.sidebar-item.active {
    background: rgba(0, 255, 65, 0.2);
    border-left-color: #00FF00;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}

.sidebar-item .icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    color: #00FF00;
    font-size: 2rem;
    text-shadow: 0 0 10px #00FF00;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}

.stat-label {
    color: #00FF41;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #00FF41;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: #00FF41;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00FF00;
}

.tab-btn.active {
    color: #00FF00;
    border-bottom-color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}

.tab-content {
    display: none;
}

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

/* Grids */
.communities-grid, .files-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card, .file-card, .service-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.community-card:hover, .file-card:hover, .service-card:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.card-title {
    color: #00FF00;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #00FF00;
}

.card-description {
    color: #00FF41;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #39FF14;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.card-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.price-tag {
    background: rgba(57, 255, 20, 0.2);
    color: #39FF14;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #39FF14;
    font-weight: bold;
}

.free-tag {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #00FF00;
    font-weight: bold;
}

/* Browse Controls */
.browse-controls {
    margin-bottom: 2rem;
}

.browse-controls select {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00FF41;
    color: #00FF00;
    font-family: inherit;
    border-radius: 5px;
}

/* Chat */
.chat-container {
    display: flex;
    height: 70vh;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    border-radius: 10px;
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    border-right: 1px solid #00FF41;
    display: flex;
    flex-direction: column;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid #00FF41;
}

.chat-tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: #00FF41;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-tab-btn:hover {
    background: rgba(0, 255, 65, 0.1);
}

.chat-tab-btn.active {
    background: rgba(0, 255, 65, 0.2);
    color: #00FF00;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-item {
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.chat-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.chat-item.active {
    background: rgba(0, 255, 65, 0.2);
    color: #00FF00;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #00FF41;
    font-size: 1.2rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00FF00;
}

.message.received {
    align-self: flex-start;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00FF41;
}

.message-header {
    font-size: 0.8rem;
    color: #39FF14;
    margin-bottom: 0.3rem;
}

.message-content {
    color: #00FF41;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #00FF41;
    gap: 1rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00FF41;
    color: #00FF00;
    font-family: inherit;
    border-radius: 5px;
}

/* Wallet */
.wallet-balance {
    text-align: center;
    margin: 2rem 0;
}

.balance-display {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00FF00;
    padding: 2rem;
    border-radius: 20px;
    display: inline-block;
}

.balance-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 0 0 20px #00FF00;
}

.balance-currency {
    font-size: 1.5rem;
    color: #39FF14;
    margin-left: 1rem;
}

.wallet-actions {
    text-align: center;
    margin: 2rem 0;
}

.transaction-history h4 {
    color: #00FF00;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00FF00;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00FF41;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-details {
    color: #00FF41;
}

.transaction-amount {
    color: #00FF00;
    font-weight: bold;
}

.transaction-amount.negative {
    color: #FF4444;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00FF41;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #00FF41;
    padding-bottom: 1rem;
}

.modal-header h3 {
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}

.close {
    color: #FF4444;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #FF0000;
    text-shadow: 0 0 10px #FF0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 1rem 0;
    }
    
    .sidebar-item {
        min-width: 150px;
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-item.active {
        border-left: none;
        border-bottom-color: #00FF00;
    }
    
    .chat-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
    }
    
    .communities-grid, .files-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .glitch-title {
        font-size: 2.5rem;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container, .landing-container {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
        width: 95%;
    }
    
    .glitch-title {
        font-size: 2rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #00FF41;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00FF00;
}

/* Selection */
::selection {
    background: rgba(0, 255, 0, 0.3);
    color: #00FF00;
}

/* Form validation states */
.form-group input.valid {
    border-color: #00FF00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.form-group input.invalid {
    border-color: #FF0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00FF00;
    animation: spin 1s ease-in-out infinite;
}

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







/* new1 */


.request-card {
    background: rgba(10, 15, 13, 0.9);
    border: 2px solid #00FF41;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 80px;
    transition: all 0.3s ease;
}

.request-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

#community-page h2, #community-page h3 {
    color: #39FF14;
    text-shadow: 0 0 5px #00FF41;
    margin-bottom: 20px;
}

#community-back-btn {
    margin-bottom: 20px;
}



/* new2 */


/* Add to your style.css */
.requests-list {
    margin-top: 15px;
}

.request-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

.community-tabs {
    display: flex;
    margin: 20px 0;
    border-bottom: 1px solid #00ff41;
}

.community-tab-btn {
    background: none;
    border: none;
    color: #00ff41;
    padding: 10px 20px;
    cursor: pointer;
}

.community-tab-btn.active {
    border-bottom: 2px solid #00ff41;
}

.community-tab-content {
    display: none;
}

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


/* #community-requests-section { display: block !important; opacity: 1 !important; visibility: visible !important; }

.requests-list { display: block !important; min-height: 100px; overflow: visible !important; }
 */



 #community-requests-section, 
#join-requests-section, 
#admin-requests-section { 
    display: block !important; 
}






#community-requests-section {
  padding: 20px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid #00FF41;
  border-radius: 10px;
  margin-top: 20px;
  display: none; /* Hidden by default */
}

#community-requests-section.active {
  display: block; /* Only show when active */
}

.request-card {
  background: rgba(10, 15, 13, 0.9);
  border: 2px solid #00FF41;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.request-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}






/* Requests Section Styling */
#requests-container {
  display: none;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid #00FF41;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  animation: fadeIn 0.3s ease;
}

#requests-container.active {
  display: contents;
}

.request-tabs {
  display: flex;
  border-bottom: 2px solid #00FF41;
  margin-bottom: 20px;
}

.request-tab {
  padding: 10px 20px;
  cursor: pointer;
  color: #00FF41;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.request-tab.active {
  color: #00FF00;
  border-bottom-color: #00FF00;
  text-shadow: 0 0 10px #00FF00;
}

.request-content {
  display: none;
}

.request-content.active {
  display: block;
}

.request-card {
  background: rgba(10, 15, 13, 0.9);
  border: 2px solid #00FF41;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.request-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.request-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.no-requests {
  color: #39FF14;
  text-align: center;
  padding: 20px;
}


.btn-success {
    background: #3fdf64;
    border: 2px solid #00FF00;
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;

}


/* Requests Container Styling22 */
#requests-container {
    position: absolute;
    bottom: 0;
    /* left: 280px; 
    right: 0; */
    background: rgba(10, 15, 13, 0.95);
    border-top: 2px solid #00FF41;
    padding: 20px;
    z-index: 800;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

#requests-container.active {
    transform: translateY(0);
}

/* Adjust main content padding when requests are active */
#dashboard-page.has-requests .main-content {
    padding-bottom: 300px; /* Make space for the requests container */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #requests-container {
        left: 0;
    }
    
    .sidebar.active + #requests-container {
        left: 280px;
    }
}

@media (max-width: 768px) {
    #requests-container {
        left: 0;
    }
    
    #dashboard-page.has-requests .main-content {
        padding-bottom: 250px;
    }
}



/* .communitiesssssssssssssssssssssss */





/* Community Page Styles */
.community-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #00FF41;
    background-color: rgba(10, 15, 13, 0.8);
    border: 1px solid #00FF41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.community-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #00FF41;
    padding-bottom: 20px;
}

.community-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.community-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.community-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #00FF41;
}

.community-tab-btn {
    background: none;
    border: none;
    color: #00FF41;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s;
}

.community-tab-btn.active {
    background: rgba(0, 255, 65, 0.2);
    border-bottom: 2px solid #00FF41;
}

.community-tab-btn:hover:not(.active) {
    background: rgba(0, 255, 65, 0.1);
}

.community-tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #00FF41;
    margin-bottom: 20px;
    background-color: rgba(10, 15, 13, 0.6);
}

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

/* Community Chat Styles */
#community-chat .chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #00FF41;
    padding: 15px;
}

#community-chat .chat-input-area {
    display: flex;
    gap: 10px;
}

#community-chat .chat-input-area input {
    flex: 1;
    background: rgba(10, 15, 13, 0.8);
    border: 1px solid #00FF41;
    color: #00FF41;
    padding: 10px;
}

/* Community Files/Services Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.community-item {
    border: 1px solid #00FF41;
    padding: 15px;
    transition: all 0.3s;
}

.community-item:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Members List */
.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.member-card {
    border: 1px solid #00FF41;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-role {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.member-role.Admin {
    display: inline-block;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #FF0000;
}

.member-role.Moderator {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #FFA500;
}

.member-role.Member {
    display: inline-block;
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00FF41;
}

/* Community Actions */
.community-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}










































/* CSSSSSSSSSSS11111111111 */












/* Base Styles & Variables */
:root {
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #f8f9fa;
  --gray: #2a2a2a;
  --danger: #ff4444;
  --warning: #ffbb33;
  --info: #33b5e5;
  --matrix: #00ff41;
  --card-bg: rgba(26, 26, 26, 0.8);
  --glass: rgba(18, 18, 18, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Matrix Background */
.matrix-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
}

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 95%,
    rgba(0, 255, 136, 0.05) 96%
  );
  background-size: 100% 8px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.3;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}

/* Glitch Effect */
.glitch-title {
  position: relative;
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-title::before {
  color: #ff00c1;
  animation: glitch-effect 3s infinite;
  z-index: -2;
}

.glitch-title::after {
  color: #3498db;
  animation: glitch-effect 2s infinite reverse;
  z-index: -1;
}

@keyframes glitch-effect {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

/* Page Transitions */
.page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  overflow-y: auto;
  z-index: 10;
}

.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Landing Page */
/* .landing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
} */

.subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 300;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.warning-box {
  border: 1px solid var(--primary);
  padding: 1rem 2rem;
  margin: 2rem 0;
  border-radius: 50px;
  animation: pulse 2s infinite;
}

.warning-text {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.landing-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
}

.feature-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 1rem;
  text-align: center;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--darker);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.full-width {
  width: 100%;
}

/* Auth Pages */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray);
  background-color: rgba(30, 30, 30, 0.8);
  color: var(--light);
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.status-text {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.status-text.success {
  color: var(--primary);
}

.status-text.error {
  color: var(--danger);
}

.error-message {
  color: var(--danger);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.agnos-balance {
  background: rgba(0, 255, 136, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1rem;
  height: calc(100vh - 60px);
  position: fixed;
  top: 60px;
  left: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 255, 136, 0.1);
  transition: transform 0.3s ease;
  z-index: 90;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--light);
  text-decoration: none;
}

.sidebar-item:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
}

.sidebar-item.active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-item .icon {
  font-size: 1.2rem;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 2rem;
  width: calc(100% - 250px);
  margin-top: 60px;
  transition: margin 0.3s ease;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Profile Section */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cards Grid Layout */
.communities-grid,
.files-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.price-tag {
  color: var(--primary);
  font-weight: 600;
}

.free-tag {
  color: var(--info);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

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

/* Chat Interface */
.chat-container {
  display: flex;
  height: calc(100vh - 180px);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.chat-sidebar {
  width: 300px;
  border-right: 1px solid var(--gray);
  display: flex;
  flex-direction: column;
}

.chat-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray);
}

.chat-tab-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.chat-tab-btn.active {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.1);
}

.chat-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.chat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-item:hover {
  background: rgba(0, 255, 136, 0.1);
}

.chat-item.active {
  background: rgba(0, 255, 136, 0.2);
}

.chat-info {
  flex-grow: 1;
}

.chat-name {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.chat-preview {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.unread-badge {
  background: var(--primary);
  color: var(--darker);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.3rem;
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-chat-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

.message {
  max-width: 70%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  position: relative;
}

.message.sent {
  align-self: flex-end;
  background: rgba(0, 255, 136, 0.2);
  border-bottom-right-radius: 0;
}

.message.received {
  align-self: flex-start;
  background: rgba(42, 42, 42, 0.8);
  border-bottom-left-radius: 0;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sender {
  font-weight: 500;
  color: var(--primary);
}

.time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.message-content {
  line-height: 1.4;
}

.message-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 0.3rem;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--gray);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--gray);
  background: rgba(30, 30, 30, 0.8);
  color: var(--light);
  font-size: 1rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Wallet Section */
.wallet-balance {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.balance-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.balance-currency {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.wallet-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.transaction-history {
  margin-top: 2rem;
}

.transaction-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transaction-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.transaction-item:hover {
  background: rgba(42, 42, 42, 0.8);
}

.transaction-icon {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
}

.transaction-details {
  flex-grow: 1;
}

.transaction-purpose {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.transaction-party {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.transaction-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.transaction-amount {
  font-weight: 600;
}

.transaction-amount.incoming {
  color: var(--primary);
}

.transaction-amount.outgoing {
  color: var(--danger);
}

/* Community Page */
.community-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.community-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.community-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.community-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.5rem;
}

.community-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.community-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.community-tab-btn.active {
  color: var(--primary);
}

.community-tab-btn.active::after {
  transform: scaleX(1);
}

.community-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.community-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
}

.community-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
}

.community-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.community-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.file-meta,
.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.file-actions,
.service-actions {
  display: flex;
  gap: 0.5rem;
}

.members-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.member-card:hover {
  background: rgba(42, 42, 42, 0.8);
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.member-info {
  flex-grow: 1;
}

.member-name {
  font-weight: 500;
}

.member-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.member-role.Admin {
  color: var(--primary);
}

.member-role.Moderator {
  color: var(--info);
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

.close {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--primary);
}

/* Requests */
.requests-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.request-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray);
}

.request-tab {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.request-tab.active {
  color: var(--primary);
}

.request-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.request-content {
  display: none;
  padding: 1rem 0;
}

.request-content.active {
  display: block;
}

.request-card {
  background: rgba(42, 42, 42, 0.5);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.request-card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.request-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.request-actions {
  display: flex;
  gap: 0.5rem;
}

.no-requests {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 95;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .hamburger {
    display: block;
  }
  
  .chat-container {
    flex-direction: column;
    height: auto;
  }
  
  .chat-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray);
  }
}

@media (max-width: 768px) {
  /* .landing-container {
    padding: 1rem;
  }
   */
  .glitch-title {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .communities-grid,
  .files-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .landing-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .nav-user {
    gap: 0.5rem;
  }
  
  .agnos-balance {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 6px;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 12px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 12px;
}

/* Utility Classes */
.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.no-items {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.error-message {
  color: var(--danger);
  text-align: center;
  padding: 1rem;
}









/* CSSSSSSSSSSSSSSSSSSS222 */




/* Ultra Modern Navbar */
.top-nav {
  background: linear-gradient(135deg, rgba(10, 25, 20, 0.98) 0%, rgba(5, 15, 12, 0.98) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  height: 70px;
  padding: 0 3rem;
}

.nav-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #00ff88, #00ffcc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  position: relative;
}

.nav-brand::after {
  content: 'β';
  position: absolute;
  top: -10px;
  right: -15px;
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.8;
}

.nav-user {
  gap: 2rem;
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88 0%, #00aaff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--darker);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Nano Animation */
@keyframes nanoPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.agnos-balance {
  background: rgba(0, 20, 15, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.agnos-balance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 136, 0.1) 50%, 
    transparent 100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mobile Nav Toggle */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
  transform-origin: left center;
}

.hamburger span:nth-child(2) {
  top: 10px;
  transform-origin: left center;
}

.hamburger span:nth-child(3) {
  top: 20px;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: -1px;
  left: 4px;
}

.hamburger.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
  left: 4px;
}




/* Holographic Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, rgba(10, 25, 20, 0.95) 0%, rgba(5, 15, 12, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  height: calc(100vh - 70px);
  position: fixed;
  top: 70px;
  left: 0;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
}

.sidebar-item {
  padding: 0.9rem 1.5rem;
  margin: 0 1rem 0.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 136, 0.1), 
    transparent);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item:hover::before {
  left: 100%;
}

.sidebar-item .icon {
  font-size: 1.3rem;
  min-width: 24px;
  text-align: center;
}

.sidebar-item.active {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.15) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
}

.sidebar-item.active::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}



/* Adaptive Grid System */
.grid-system {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Ultra-Responsive Breakpoints */
@media (max-width: 1200px) {
  .top-nav {
    padding: 0 2rem;
  }
  
  .sidebar {
    width: 250px;
  }
}

@media (max-width: 992px) {
  .main-content {
    padding: 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0 1.5rem;
    height: 60px;
  }
  
  .nav-brand {
    font-size: 1.5rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .chat-container {
    flex-direction: column;
    height: auto;
  }
  
  .chat-sidebar {
    width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--gray);
  }
}

@media (max-width: 576px) {
  .top-nav {
    padding: 0 1rem;
  }
  
  .nav-user {
    gap: 1rem;
  }
  
  .agnos-balance {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* .landing-container {
    padding: 1rem;
  } */
  
  .glitch-title {
    font-size: 2.5rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .landing-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .community-tabs {
    flex-wrap: wrap;
  }
  
  .community-tab-btn {
    flex: 1 0 45%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}




/* Holographic Card Effect */
.card {
  background: linear-gradient(145deg, rgba(20, 25, 23, 0.9) 0%, rgba(10, 15, 13, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(0, 255, 136, 0) 0%,
    rgba(0, 255, 136, 0.05) 50%,
    rgba(0, 255, 136, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 255, 136, 0.3);
}

.card:hover::before {
  animation: holographic 6s linear infinite;
}

@keyframes holographic {
  0% { transform: rotate(30deg) translate(-10%, -10%); }
  100% { transform: rotate(30deg) translate(10%, 10%); }
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.card-actions .btn {
  flex: 1;
  text-align: center;
}


/* Cyberpunk Chat */
.chat-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
  background: linear-gradient(145deg, rgba(15, 20, 18, 0.95) 0%, rgba(8, 12, 10, 0.95) 100%);
}

.chat-messages {
  padding: 1.5rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(0,255,136,0.03)" stroke-width="1"/></svg>');
}

.message {
  max-width: 80%;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  position: relative;
  border-radius: 12px;
  animation: messageAppear 0.3s ease-out;
}

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

.message.sent {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
  border-bottom-right-radius: 0;
  margin-left: auto;
}

.message.received {
  background: rgba(40, 40, 40, 0.7);
  border-bottom-left-radius: 0;
  margin-right: auto;
}

.message.sent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at top left, transparent 70%, rgba(0, 255, 136, 0.2) 70%);
}

.message.received::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at top right, transparent 70%, rgba(40, 40, 40, 0.7) 70%);
}

.chat-input-area {
  background: rgba(10, 15, 13, 0.8);
  padding: 1rem;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.chat-input {
  background: rgba(20, 25, 23, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--light);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}



/* cssssssssss333 */



/* Ultra-Responsive Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, rgba(10, 25, 20, 0.98) 0%, rgba(5, 15, 12, 0.98) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #00ff88, #00ffcc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Side Navigation - Works on ALL devices */
.sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 280px;
  height: calc(100vh - 70px);
  background: linear-gradient(180deg, rgba(10, 25, 20, 0.95) 0%, rgba(5, 15, 12, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Content Area */
.main-content {
  margin-left: 280px;
  padding: 2rem;
  margin-top: 70px;
  transition: margin 0.3s ease;
  min-height: calc(100vh - 70px);
}

/* Mobile Overlay for Sidebar */
.mobile-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0;
  transform-origin: left center;
}

.hamburger span:nth-child(2) {
  top: 10px;
  transform-origin: left center;
}

.hamburger span:nth-child(3) {
  top: 20px;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: -1px;
  left: 4px;
}

.hamburger.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
  left: 4px;
}

/* Responsive Behavior */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  /* .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  } */
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .top-nav {
    padding: 0 1rem;
    height: 60px;
  }
  
  .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .mobile-overlay {
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .nav-brand {
    font-size: 1.5rem;
  }
}


/* Ultra-Responsive Chat Container */
.chat-container {
  display: flex;
  height: calc(100vh - 180px);
  background: linear-gradient(145deg, rgba(15, 20, 18, 0.95) 0%, rgba(8, 12, 10, 0.95) 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

/* Chat Sidebar - Responsive Behavior */
.chat-sidebar {
  width: 300px;
  border-right: 1px solid rgba(0, 255, 136, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Chat Main Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive Chat Layout */
@media (max-width: 768px) {
  .chat-container {
    flex-direction: column;
    height: auto;
    max-height: calc(100vh - 140px);
  }
  
  .chat-sidebar {
    width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  }
  
  .chat-messages {
    min-height: 300px;
    max-height: calc(100vh - 440px);
  }
}

@media (max-width: 576px) {
  .chat-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .chat-messages {
    padding: 1rem;
  }
  
  .message {
    max-width: 90%;
    padding: 0.8rem;
  }
  
  .chat-input-area {
    padding: 0.8rem;
  }
  
  .chat-input {
    padding: 0.8rem;
  }
}


/* Global Responsive Adjustments */
@media (max-width: 1200px) {
  .main-content {
    padding: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .grid-system {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-container {
    padding: 1.5rem;
  }
  
  .glitch-title {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1 0 50%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .top-nav {
    padding: 0 1rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
  
  .landing-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .nav-user {
    gap: 0.8rem;
  }
  
  .agnos-balance {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .community-tab-btn {
    flex: 1 0 100%;
  }
}






/* upload bar */




.upload-progress {
    margin-top: 15px;
}
.progress-bar {
    height: 5px;
    background: #00FF41;
    width: 0%;
    transition: width 0.3s;
}
.progress-text {
    text-align: center;
    margin-top: 5px;
    color: #00FF41;
}






/* delete file */



.btn-danger {
    background-color: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #cc0000;
}