/* ============================================================
   AppleUI - Unified Apple-Style CSS Framework
   融合: CleanUI, GlassKit, Puppertino, apple-liquid-glass-ui, CiderUI
   
   命名规范:
   - 基础: .au-{component}
   - 变体: .au-{component}-{variant}
   - 尺寸: .au-{component}-{size}
   - 状态: .au-{component}-{state}
   - 工具类: .au-{utility}
   ============================================================ */

/* ============================================================
   1. CSS Variables / Design Tokens
   ============================================================ */

/* 
   四种主题模式:
   - light: 白天模式
   - dark: 黑夜模式
   - liquid-glass: 液体玻璃模式
   - frosted-glass: 磨砂玻璃模式
*/

/* 基础变量 */
:root {
  /* Colors - Apple System Colors */
  --au-blue: #007aff;
  --au-blue-dark: #0051d5;
  --au-blue-light: #5ac8fa;
  --au-green: #34c759;
  --au-green-dark: #248a3d;
  --au-red: #ff3b30;
  --au-red-dark: #d70015;
  --au-orange: #ff9500;
  --au-yellow: #ffcc00;
  --au-pink: #ff2d55;
  --au-purple: #af52de;
  --au-teal: #5ac8fa;
  --au-indigo: #5856d6;
  
  /* Radius */
  --au-radius-xs: 4px;
  --au-radius-sm: 6px;
  --au-radius: 10px;
  --au-radius-md: 14px;
  --au-radius-lg: 20px;
  --au-radius-xl: 28px;
  --au-radius-full: 9999px;
  
  /* Spacing */
  --au-space-1: 4px;
  --au-space-2: 8px;
  --au-space-3: 12px;
  --au-space-4: 16px;
  --au-space-5: 20px;
  --au-space-6: 24px;
  --au-space-8: 32px;
  --au-space-10: 40px;
  --au-space-12: 48px;
  
  /* Typography */
  --au-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --au-font-mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  
  --au-text-xs: 11px;
  --au-text-sm: 13px;
  --au-text-base: 15px;
  --au-text-lg: 17px;
  --au-text-xl: 21px;
  --au-text-2xl: 28px;
  --au-text-3xl: 34px;
  
  --au-font-normal: 400;
  --au-font-medium: 500;
  --au-font-semibold: 600;
  --au-font-bold: 700;
  
  /* Line Height */
  --au-leading-none: 1;
  --au-leading-tight: 1.25;
  --au-leading-snug: 1.375;
  --au-leading-normal: 1.5;
  --au-leading-relaxed: 1.625;
  
  /* Transition */
  --au-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --au-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --au-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --au-transition-spring: 500ms cubic-bezier(0.23, 1, 0.32, 1);
  
  /* Z-Index */
  --au-z-dropdown: 1000;
  --au-z-sticky: 1020;
  --au-z-fixed: 1030;
  --au-z-modal-backdrop: 1040;
  --au-z-modal: 1050;
  --au-z-popover: 1060;
  --au-z-tooltip: 1070;
  --au-z-toast: 1080;
}

/* ============================================================
   主题模式定义
   ============================================================ */

/* 1. 白天模式 (Light) - 默认 */
[data-theme="light"],
:root:not([data-theme]) {
  /* Semantic Colors */
  --au-primary: var(--au-blue);
  --au-primary-hover: var(--au-blue-dark);
  --au-success: var(--au-green);
  --au-warning: var(--au-orange);
  --au-danger: var(--au-red);
  --au-info: var(--au-teal);
  
  /* Text Colors */
  --au-text: #1d1d1f;
  --au-text-secondary: #6e6e73;
  --au-text-tertiary: #86868b;
  --au-text-placeholder: #a1a1a6;
  --au-text-inverse: #ffffff;
  
  /* Background Colors */
  --au-bg: #f5f5f7;
  --au-bg-secondary: #ffffff;
  --au-bg-tertiary: #f2f2f7;
  --au-bg-elevated: #ffffff;
  
  /* Glass Effect - Enhanced */
  --au-glass-bg: rgba(255, 255, 255, 0.65);
  --au-glass-border: rgba(255, 255, 255, 0.5);
  --au-glass-blur: blur(20px) saturate(180%);
  --au-glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  
  /* Border */
  --au-border: rgba(0, 0, 0, 0.08);
  --au-border-light: rgba(0, 0, 0, 0.04);
  --au-border-strong: rgba(0, 0, 0, 0.15);
  
  /* Shadow - Enhanced with depth */
  --au-shadow-xs: 0 1px 2px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.02);
  --au-shadow-sm: 0 2px 8px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.04);
  --au-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.04);
  --au-shadow-md: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  --au-shadow-lg: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.04);
  --au-shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.06);
  --au-shadow-glow: 0 0 20px rgba(0, 122, 255, 0.15);
}

/* 2. 黑夜模式 (Dark) */
[data-theme="dark"] {
  --au-primary: #0a84ff;
  --au-primary-hover: #409cff;
  --au-success: #30d158;
  --au-warning: #ff9f0a;
  --au-danger: #ff453a;
  --au-info: #64d2ff;
  
  --au-text: #f5f5f7;
  --au-text-secondary: #98989d;
  --au-text-tertiary: #636366;
  --au-text-placeholder: #8e8e93;
  
  --au-bg: #000000;
  --au-bg-secondary: #1c1c1e;
  --au-bg-tertiary: #2c2c2e;
  --au-bg-elevated: #2c2c2e;
  
  --au-glass-bg: rgba(30, 30, 30, 0.65);
  --au-glass-border: rgba(255, 255, 255, 0.12);
  --au-glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  
  --au-border: rgba(255, 255, 255, 0.08);
  --au-border-light: rgba(255, 255, 255, 0.04);
  --au-border-strong: rgba(255, 255, 255, 0.15);
  
  --au-shadow-xs: 0 1px 2px rgba(0,0,0,0.3), 0 0 1px rgba(0,0,0,0.2);
  --au-shadow-sm: 0 2px 8px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.2);
  --au-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.2);
  --au-shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  --au-shadow-lg: 0 16px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --au-shadow-xl: 0 24px 60px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.4);
  --au-shadow-glow: 0 0 20px rgba(10, 132, 255, 0.2);
}

/* 3. 液体玻璃模式 (Liquid Glass) - iOS 26 风格 */
[data-theme="liquid-glass"] {
  /* 使用更鲜艳的强调色 */
  --au-primary: #007aff;
  --au-primary-hover: #0051d5;
  --au-success: #30d158;
  --au-warning: #ff9f0a;
  --au-danger: #ff453a;
  --au-info: #64d2ff;
  
  /* 文本颜色 */
  --au-text: #1d1d1f;
  --au-text-secondary: #6e6e73;
  --au-text-tertiary: #86868b;
  --au-text-placeholder: #a1a1a6;
  --au-text-inverse: #ffffff;
  
  /* 背景 - 更丰富的渐变效果 */
  --au-bg: linear-gradient(135deg, #e0e7ff 0%, #d1e0ff 25%, #e8d5ff 50%, #ffe0f0 75%, #fff0e8 100%);
  --au-bg-secondary: rgba(255, 255, 255, 0.45);
  --au-bg-tertiary: rgba(255, 255, 255, 0.3);
  --au-bg-elevated: rgba(255, 255, 255, 0.7);
  
  /* 液体玻璃效果 - 极致透明和光泽 */
  --au-glass-bg: rgba(255, 255, 255, 0.15);
  --au-glass-border: rgba(255, 255, 255, 0.5);
  --au-glass-blur: blur(40px) saturate(200%);
  --au-glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0.4) 100%
  );
  
  /* 边框 - 更亮的边缘 */
  --au-border: rgba(255, 255, 255, 0.35);
  --au-border-light: rgba(255, 255, 255, 0.2);
  --au-border-strong: rgba(255, 255, 255, 0.55);
  
  /* 阴影 - 柔和的彩色阴影 */
  --au-shadow-xs: 0 2px 8px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255,255,255,0.4);
  --au-shadow-sm: 0 4px 12px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  --au-shadow: 0 8px 24px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255,255,255,0.5);
  --au-shadow-md: 0 12px 32px rgba(99, 102, 241, 0.25), 0 4px 12px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.5);
  --au-shadow-lg: 0 20px 48px rgba(99, 102, 241, 0.3), 0 8px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255,255,255,0.6);
  --au-shadow-xl: 0 30px 60px rgba(99, 102, 241, 0.35), 0 12px 24px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255,255,255,0.6);
  --au-shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(255,255,255,0.2);
}

/* 液体玻璃模式背景 */
[data-theme="liquid-glass"] body {
  background: var(--au-bg);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: liquid-gradient 15s ease infinite;
}

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

/* 4. 磨砂玻璃模式 (Frosted Glass) - 更强的磨砂效果 */
[data-theme="frosted-glass"] {
  /* 使用冷色调 */
  --au-primary: #0a84ff;
  --au-primary-hover: #409cff;
  --au-success: #30d158;
  --au-warning: #ff9f0a;
  --au-danger: #ff453a;
  --au-info: #64d2ff;
  
  /* 文本颜色 - 深色模式为基础 */
  --au-text: #f5f5f7;
  --au-text-secondary: #98989d;
  --au-text-tertiary: #636366;
  --au-text-placeholder: #8e8e93;
  --au-text-inverse: #1d1d1f;
  
  /* 背景 - 更丰富的深色渐变 */
  --au-bg: linear-gradient(160deg, #0d1117 0%, #1a1a2e 25%, #16213e 50%, #1e3a5f 75%, #0f3460 100%);
  --au-bg-secondary: rgba(30, 30, 46, 0.55);
  --au-bg-tertiary: rgba(22, 33, 62, 0.45);
  --au-bg-elevated: rgba(30, 30, 46, 0.75);
  
  /* 磨砂玻璃效果 - 极强的模糊和霜感 */
  --au-glass-bg: rgba(20, 25, 40, 0.35);
  --au-glass-border: rgba(255, 255, 255, 0.15);
  --au-glass-blur: blur(60px) saturate(180%);
  --au-glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.15) 100%
  );
  
  /* 边框 */
  --au-border: rgba(255, 255, 255, 0.1);
  --au-border-light: rgba(255, 255, 255, 0.05);
  --au-border-strong: rgba(255, 255, 255, 0.2);
  
  /* 阴影 - 蓝色调 */
  --au-shadow-xs: 0 2px 8px rgba(10, 132, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.1);
  --au-shadow-sm: 0 4px 12px rgba(10, 132, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  --au-shadow: 0 8px 24px rgba(10, 132, 255, 0.2), 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  --au-shadow-md: 0 12px 32px rgba(10, 132, 255, 0.25), 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  --au-shadow-lg: 0 20px 48px rgba(10, 132, 255, 0.3), 0 8px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  --au-shadow-xl: 0 30px 60px rgba(10, 132, 255, 0.35), 0 12px 24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
  --au-shadow-glow: 0 0 30px rgba(10, 132, 255, 0.25), inset 0 0 20px rgba(255,255,255,0.1);
}

/* 磨砂玻璃模式背景 */
[data-theme="frosted-glass"] body {
  background: var(--au-bg);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: frost-gradient 20s ease infinite;
}

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

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--au-font);
  font-size: var(--au-text-base);
  line-height: var(--au-leading-normal);
  color: var(--au-text);
  background-color: var(--au-bg);
  transition: background-color var(--au-transition), color var(--au-transition);
}

/* ============================================================
   3. Layout
   ============================================================ */

/* Container */
.au-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--au-space-4);
}

.au-container-sm { max-width: 640px; }
.au-container-md { max-width: 768px; }
.au-container-lg { max-width: 1024px; }
.au-container-xl { max-width: 1280px; }
.au-container-full { max-width: 100%; }

/* Grid */
.au-grid {
  display: grid;
  gap: var(--au-space-4);
}

.au-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.au-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.au-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.au-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.au-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.au-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
  .au-grid-cols-2,
  .au-grid-cols-3,
  .au-grid-cols-4,
  .au-grid-cols-5,
  .au-grid-cols-6 { grid-template-columns: 1fr; }
}

/* Flex */
.au-flex { display: flex; }
.au-inline-flex { display: inline-flex; }

.au-flex-row { flex-direction: row; }
.au-flex-col { flex-direction: column; }

.au-flex-wrap { flex-wrap: wrap; }
.au-flex-nowrap { flex-wrap: nowrap; }

.au-items-start { align-items: flex-start; }
.au-items-center { align-items: center; }
.au-items-end { align-items: flex-end; }
.au-items-stretch { align-items: stretch; }

.au-justify-start { justify-content: flex-start; }
.au-justify-center { justify-content: center; }
.au-justify-end { justify-content: flex-end; }
.au-justify-between { justify-content: space-between; }
.au-justify-around { justify-content: space-around; }
.au-justify-evenly { justify-content: space-evenly; }

.au-flex-1 { flex: 1 1 0%; }
.au-flex-auto { flex: 1 1 auto; }
.au-flex-none { flex: none; }

.au-gap-1 { gap: var(--au-space-1); }
.au-gap-2 { gap: var(--au-space-2); }
.au-gap-3 { gap: var(--au-space-3); }
.au-gap-4 { gap: var(--au-space-4); }
.au-gap-5 { gap: var(--au-space-5); }
.au-gap-6 { gap: var(--au-space-6); }

/* ============================================================
   4. Components
   ============================================================ */

/* Button */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--au-space-2);
  height: 36px;
  padding: 0 var(--au-space-4);
  font-family: var(--au-font);
  font-size: var(--au-text-base);
  font-weight: var(--au-font-medium);
  line-height: var(--au-leading-none);
  text-decoration: none;
  border: none;
  border-radius: var(--au-radius);
  background-color: var(--au-primary);
  color: var(--au-text-inverse);
  cursor: pointer;
  transition: all var(--au-transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.au-btn:hover {
  background-color: var(--au-primary-hover);
  transform: translateY(-1px);
}

.au-btn:active {
  transform: scale(0.98);
}

.au-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Button Variants */
.au-btn-secondary {
  background-color: var(--au-bg-tertiary);
  color: var(--au-primary);
}

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

.au-btn-outline {
  background-color: transparent;
  color: var(--au-primary);
  box-shadow: inset 0 0 0 1px var(--au-border);
}

.au-btn-outline:hover {
  background-color: var(--au-bg-tertiary);
}

.au-btn-ghost {
  background-color: transparent;
  color: var(--au-primary);
}

.au-btn-ghost:hover {
  background-color: var(--au-bg-tertiary);
}

.au-btn-glass {
  background: var(--au-glass-bg);
  background-image: var(--au-glass-shine);
  backdrop-filter: var(--au-glass-blur);
  -webkit-backdrop-filter: var(--au-glass-blur);
  color: var(--au-text);
  border: 1px solid var(--au-glass-border);
  box-shadow: var(--au-shadow-sm);
  position: relative;
  overflow: hidden;
}

.au-btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 40%
  );
  pointer-events: none;
}

.au-btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--au-shadow-md);
  transform: translateY(-1px);
}

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

.au-btn-danger:hover {
  background-color: var(--au-red-dark);
}

/* Button Sizes */
.au-btn-xs {
  height: 28px;
  padding: 0 var(--au-space-3);
  font-size: var(--au-text-xs);
  border-radius: var(--au-radius-sm);
}

.au-btn-sm {
  height: 32px;
  padding: 0 var(--au-space-3);
  font-size: var(--au-text-sm);
  border-radius: var(--au-radius-sm);
}

.au-btn-lg {
  height: 44px;
  padding: 0 var(--au-space-6);
  font-size: var(--au-text-lg);
  border-radius: var(--au-radius-md);
}

.au-btn-xl {
  height: 52px;
  padding: 0 var(--au-space-8);
  font-size: var(--au-text-xl);
  border-radius: var(--au-radius-lg);
}

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

.au-btn-round {
  border-radius: var(--au-radius-full);
}

.au-btn-icon {
  width: 36px;
  padding: 0;
}

.au-btn-icon.au-btn-xs { width: 28px; }
.au-btn-icon.au-btn-sm { width: 32px; }
.au-btn-icon.au-btn-lg { width: 44px; }
.au-btn-icon.au-btn-xl { width: 52px; }

/* Card */
.au-card {
  background-color: var(--au-bg-secondary);
  border-radius: var(--au-radius-lg);
  padding: var(--au-space-5);
  box-shadow: var(--au-shadow);
  transition: box-shadow var(--au-transition), transform var(--au-transition);
}

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

.au-card-glass {
  background: var(--au-glass-bg);
  background-image: var(--au-glass-shine);
  backdrop-filter: var(--au-glass-blur);
  -webkit-backdrop-filter: var(--au-glass-blur);
  border: 1px solid var(--au-glass-border);
  box-shadow: var(--au-shadow);
  position: relative;
  overflow: hidden;
}

.au-card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  pointer-events: none;
  border-radius: inherit;
}

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

.au-card-flat {
  box-shadow: none;
  border: 1px solid var(--au-border);
}

.au-card-interactive {
  cursor: pointer;
}

.au-card-interactive:hover {
  transform: translateY(-2px);
}

.au-card-interactive:active {
  transform: scale(0.99);
}

/* Input */
.au-input {
  width: 100%;
  height: 36px;
  padding: 0 var(--au-space-4);
  font-family: var(--au-font);
  font-size: var(--au-text-base);
  color: var(--au-text);
  background-color: var(--au-bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--au-radius);
  outline: none;
  transition: all var(--au-transition-fast);
}

.au-input::placeholder {
  color: var(--au-text-placeholder);
}

.au-input:hover {
  background-color: var(--au-bg-secondary);
  border-color: var(--au-border);
}

.au-input:focus {
  background-color: var(--au-bg-secondary);
  border-color: var(--au-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

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

.au-input-error {
  border-color: var(--au-danger);
}

.au-input-error:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.au-input-success {
  border-color: var(--au-success);
}

/* Textarea */
.au-textarea {
  min-height: 100px;
  padding: var(--au-space-3) var(--au-space-4);
  resize: vertical;
  line-height: var(--au-leading-normal);
}

/* Select */
.au-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--au-space-8);
}

/* Checkbox & Radio */
.au-checkbox,
.au-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
  cursor: pointer;
  font-size: var(--au-text-base);
}

.au-checkbox input,
.au-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.au-checkbox-box,
.au-radio-circle {
  width: 20px;
  height: 20px;
  background-color: var(--au-bg-tertiary);
  border: 1px solid var(--au-border-strong);
  transition: all var(--au-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-checkbox-box {
  border-radius: var(--au-radius-sm);
}

.au-radio-circle {
  border-radius: 50%;
}

.au-checkbox input:checked + .au-checkbox-box,
.au-radio input:checked + .au-radio-circle {
  background-color: var(--au-primary);
  border-color: var(--au-primary);
}

.au-checkbox input:checked + .au-checkbox-box::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.au-radio input:checked + .au-radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Switch */
.au-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
  cursor: pointer;
  font-size: var(--au-text-base);
}

.au-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.au-switch-track {
  width: 44px;
  height: 26px;
  background-color: var(--au-bg-tertiary);
  border-radius: var(--au-radius-full);
  position: relative;
  transition: background-color var(--au-transition-fast);
  border: 1px solid var(--au-border);
}

.au-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  box-shadow: var(--au-shadow-sm);
  transition: transform var(--au-transition-fast);
}

.au-switch input:checked + .au-switch-track {
  background-color: var(--au-success);
  border-color: var(--au-success);
}

.au-switch input:checked + .au-switch-track .au-switch-thumb {
  transform: translateX(18px);
}

/* Badge */
.au-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: var(--au-text-xs);
  font-weight: var(--au-font-semibold);
  color: var(--au-text-inverse);
  background-color: var(--au-primary);
  border-radius: var(--au-radius-full);
}

.au-badge-success { background-color: var(--au-success); }
.au-badge-warning { background-color: var(--au-warning); color: var(--au-text); }
.au-badge-danger { background-color: var(--au-danger); }
.au-badge-secondary { background-color: var(--au-text-secondary); }

/* Avatar */
.au-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--au-primary);
  color: var(--au-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--au-font-semibold);
  font-size: var(--au-text-base);
  overflow: hidden;
}

.au-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.au-avatar-xs { width: 24px; height: 24px; font-size: var(--au-text-xs); }
.au-avatar-sm { width: 32px; height: 32px; font-size: var(--au-text-sm); }
.au-avatar-lg { width: 48px; height: 48px; font-size: var(--au-text-lg); }
.au-avatar-xl { width: 64px; height: 64px; font-size: var(--au-text-xl); }

/* Tag */
.au-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-1);
  height: 24px;
  padding: 0 var(--au-space-3);
  font-size: var(--au-text-sm);
  font-weight: var(--au-font-medium);
  color: var(--au-primary);
  background-color: rgba(0, 122, 255, 0.1);
  border-radius: var(--au-radius-sm);
}

.au-tag-success { color: var(--au-success); background-color: rgba(52, 199, 89, 0.1); }
.au-tag-warning { color: var(--au-warning); background-color: rgba(255, 149, 0, 0.1); }
.au-tag-danger { color: var(--au-danger); background-color: rgba(255, 59, 48, 0.1); }

/* Alert */
.au-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--au-space-3);
  padding: var(--au-space-4);
  border-radius: var(--au-radius);
  font-size: var(--au-text-sm);
}

.au-alert-info {
  background-color: rgba(90, 200, 250, 0.15);
  color: var(--au-info);
}

.au-alert-success {
  background-color: rgba(52, 199, 89, 0.15);
  color: var(--au-success);
}

.au-alert-warning {
  background-color: rgba(255, 149, 0, 0.15);
  color: var(--au-warning);
}

.au-alert-danger {
  background-color: rgba(255, 59, 48, 0.15);
  color: var(--au-danger);
}

/* Progress */
.au-progress {
  width: 100%;
  height: 6px;
  background-color: var(--au-bg-tertiary);
  border-radius: var(--au-radius-full);
  overflow: hidden;
}

.au-progress-bar {
  height: 100%;
  background-color: var(--au-primary);
  border-radius: var(--au-radius-full);
  transition: width var(--au-transition-slow);
}

.au-progress-success .au-progress-bar { background-color: var(--au-success); }
.au-progress-warning .au-progress-bar { background-color: var(--au-warning); }
.au-progress-danger .au-progress-bar { background-color: var(--au-danger); }

/* Spinner */
.au-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--au-bg-tertiary);
  border-top-color: var(--au-primary);
  border-radius: 50%;
  animation: au-spin 1s linear infinite;
}

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

/* Skeleton */
.au-skeleton {
  background: linear-gradient(90deg, var(--au-bg-tertiary) 25%, var(--au-border-light) 50%, var(--au-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: au-skeleton 1.5s ease-in-out infinite;
  border-radius: var(--au-radius-sm);
}

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

/* Divider */
.au-divider {
  height: 1px;
  background-color: var(--au-border);
  margin: var(--au-space-4) 0;
}

.au-divider-vertical {
  width: 1px;
  height: 100%;
  margin: 0 var(--au-space-4);
}

/* ============================================================
   5. Navigation
   ============================================================ */

/* Navbar */
.au-navbar {
  position: sticky;
  top: 0;
  z-index: var(--au-z-fixed);
  height: 52px;
  background: var(--au-glass-bg);
  background-image: var(--au-glass-shine);
  backdrop-filter: var(--au-glass-blur);
  -webkit-backdrop-filter: var(--au-glass-blur);
  border-bottom: 1px solid var(--au-glass-border);
  display: flex;
  align-items: center;
  padding: 0 var(--au-space-5);
  box-shadow: var(--au-shadow-xs);
}

.au-navbar-brand {
  font-size: var(--au-text-xl);
  font-weight: var(--au-font-semibold);
  color: var(--au-text);
  text-decoration: none;
}

.au-navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--au-space-6);
  margin-left: auto;
  list-style: none;
}

.au-navbar-link {
  color: var(--au-text-secondary);
  text-decoration: none;
  font-size: var(--au-text-sm);
  font-weight: var(--au-font-medium);
  transition: color var(--au-transition-fast);
}

.au-navbar-link:hover,
.au-navbar-link-active {
  color: var(--au-primary);
}

/* Tabs */
.au-tabs {
  display: flex;
  border-bottom: 1px solid var(--au-border);
}

.au-tab {
  padding: var(--au-space-3) var(--au-space-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--au-text-secondary);
  font-family: var(--au-font);
  font-size: var(--au-text-base);
  font-weight: var(--au-font-medium);
  cursor: pointer;
  transition: all var(--au-transition-fast);
}

.au-tab:hover {
  color: var(--au-text);
}

.au-tab-active {
  color: var(--au-primary);
  border-bottom-color: var(--au-primary);
}

/* Breadcrumb */
.au-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--au-space-2);
  font-size: var(--au-text-sm);
  color: var(--au-text-secondary);
}

.au-breadcrumb a {
  color: var(--au-text-secondary);
  text-decoration: none;
}

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

.au-breadcrumb-separator {
  color: var(--au-text-tertiary);
}

.au-breadcrumb-current {
  color: var(--au-text);
  font-weight: var(--au-font-medium);
}

/* Pagination */
.au-pagination {
  display: flex;
  align-items: center;
  gap: var(--au-space-1);
}

.au-page {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--au-space-3);
  font-size: var(--au-text-sm);
  font-weight: var(--au-font-medium);
  color: var(--au-text);
  background-color: var(--au-bg-secondary);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-sm);
  cursor: pointer;
  transition: all var(--au-transition-fast);
}

.au-page:hover {
  background-color: var(--au-bg-tertiary);
  border-color: var(--au-border-strong);
}

.au-page-active {
  background-color: var(--au-primary);
  color: var(--au-text-inverse);
  border-color: var(--au-primary);
}

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

/* ============================================================
   6. Overlay Components
   ============================================================ */

/* Modal */
.au-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--au-z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--au-transition);
}

.au-modal-overlay-active {
  opacity: 1;
  visibility: visible;
}

.au-modal {
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  background-color: var(--au-bg-secondary);
  border-radius: var(--au-radius-xl);
  box-shadow: var(--au-shadow-xl);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--au-transition-spring);
}

.au-modal-overlay-active .au-modal {
  transform: scale(1) translateY(0);
}

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

.au-modal-title {
  font-size: var(--au-text-xl);
  font-weight: var(--au-font-semibold);
}

.au-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--au-bg-tertiary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--au-text-secondary);
  transition: all var(--au-transition-fast);
}

.au-modal-close:hover {
  background: var(--au-border);
}

.au-modal-body {
  padding: var(--au-space-5);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.au-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--au-space-3);
  padding: var(--au-space-4) var(--au-space-5);
  border-top: 1px solid var(--au-border);
}

/* Toast */
.au-toast-container {
  position: fixed;
  top: var(--au-space-5);
  right: var(--au-space-5);
  z-index: var(--au-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--au-space-3);
}

.au-toast {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  padding: var(--au-space-4) var(--au-space-5);
  background: var(--au-bg-secondary);
  border-radius: var(--au-radius);
  box-shadow: var(--au-shadow-lg);
  min-width: 300px;
  max-width: 400px;
  animation: au-toast-in var(--au-transition-spring);
}

@keyframes au-toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.au-toast-success { border-left: 4px solid var(--au-success); }
.au-toast-error { border-left: 4px solid var(--au-danger); }
.au-toast-warning { border-left: 4px solid var(--au-warning); }
.au-toast-info { border-left: 4px solid var(--au-info); }

.au-toast-icon { font-size: 20px; }
.au-toast-content { flex: 1; }
.au-toast-title { font-weight: 600; margin-bottom: 2px; }
.au-toast-message { font-size: 13px; opacity: 0.8; }
.au-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  color: inherit;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--au-transition-fast);
}
.au-toast-close:hover { opacity: 1; }

/* Tooltip */
.au-tooltip {
  position: relative;
  display: inline-block;
}

.au-tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--au-space-2) var(--au-space-3);
  background-color: var(--au-text);
  color: var(--au-text-inverse);
  font-size: var(--au-text-xs);
  white-space: nowrap;
  border-radius: var(--au-radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--au-transition-fast);
  z-index: var(--au-z-tooltip);
}

.au-tooltip:hover .au-tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Dropdown */
.au-dropdown {
  position: relative;
  display: inline-block;
}

.au-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin-top: var(--au-space-2);
  background: var(--au-bg-secondary);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius);
  box-shadow: var(--au-shadow-lg);
  z-index: var(--au-z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--au-transition-fast);
}

.au-dropdown-open .au-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.au-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  padding: var(--au-space-3) var(--au-space-4);
  font-size: var(--au-text-sm);
  color: var(--au-text);
  cursor: pointer;
  transition: background var(--au-transition-fast);
}

.au-dropdown-item:hover {
  background: var(--au-bg-tertiary);
}

.au-dropdown-item-danger {
  color: var(--au-danger);
}

.au-dropdown-divider {
  height: 1px;
  background: var(--au-border);
  margin: var(--au-space-2) 0;
}

/* ============================================================
   7. Data Display
   ============================================================ */

/* Table */
.au-table-wrapper {
  overflow-x: auto;
  border-radius: var(--au-radius);
  border: 1px solid var(--au-border);
}

.au-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--au-text-sm);
}

.au-table th,
.au-table td {
  padding: var(--au-space-3) var(--au-space-4);
  text-align: left;
  border-bottom: 1px solid var(--au-border);
}

.au-table th {
  background-color: var(--au-bg-tertiary);
  font-weight: var(--au-font-semibold);
  color: var(--au-text-secondary);
  font-size: var(--au-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.au-table tr:last-child td {
  border-bottom: none;
}

.au-table tbody tr:hover {
  background-color: var(--au-bg-tertiary);
}

/* List */
.au-list {
  list-style: none;
}

.au-list-item {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  padding: var(--au-space-3) var(--au-space-4);
  border-bottom: 1px solid var(--au-border);
}

.au-list-item:last-child {
  border-bottom: none;
}

.au-list-item-interactive {
  cursor: pointer;
  transition: background var(--au-transition-fast);
}

.au-list-item-interactive:hover {
  background: var(--au-bg-tertiary);
}

/* Accordion */
.au-accordion {
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius);
  overflow: hidden;
}

.au-accordion-item {
  border-bottom: 1px solid var(--au-border);
}

.au-accordion-item:last-child {
  border-bottom: none;
}

.au-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--au-space-4);
  background: none;
  border: none;
  font-family: var(--au-font);
  font-size: var(--au-text-base);
  font-weight: var(--au-font-medium);
  color: var(--au-text);
  cursor: pointer;
  transition: background var(--au-transition-fast);
}

.au-accordion-header:hover {
  background: var(--au-bg-tertiary);
}

.au-accordion-icon {
  transition: transform var(--au-transition-fast);
}

.au-accordion-item-active .au-accordion-icon {
  transform: rotate(180deg);
}

.au-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--au-transition-slow);
}

.au-accordion-item-active .au-accordion-body {
  max-height: 500px;
}

.au-accordion-content {
  padding: 0 var(--au-space-4) var(--au-space-4);
  color: var(--au-text-secondary);
}

/* ============================================================
   8. Utilities
   ============================================================ */

/* Display */
.au-block { display: block; }
.au-inline { display: inline; }
.au-inline-block { display: inline-block; }
.au-hidden { display: none; }

/* Spacing */
.au-m-0 { margin: 0; }
.au-m-1 { margin: var(--au-space-1); }
.au-m-2 { margin: var(--au-space-2); }
.au-m-3 { margin: var(--au-space-3); }
.au-m-4 { margin: var(--au-space-4); }
.au-m-5 { margin: var(--au-space-5); }
.au-m-6 { margin: var(--au-space-6); }

.au-mt-1 { margin-top: var(--au-space-1); }
.au-mt-2 { margin-top: var(--au-space-2); }
.au-mt-3 { margin-top: var(--au-space-3); }
.au-mt-4 { margin-top: var(--au-space-4); }
.au-mt-5 { margin-top: var(--au-space-5); }
.au-mt-6 { margin-top: var(--au-space-6); }

.au-mb-1 { margin-bottom: var(--au-space-1); }
.au-mb-2 { margin-bottom: var(--au-space-2); }
.au-mb-3 { margin-bottom: var(--au-space-3); }
.au-mb-4 { margin-bottom: var(--au-space-4); }
.au-mb-5 { margin-bottom: var(--au-space-5); }
.au-mb-6 { margin-bottom: var(--au-space-6); }

.au-p-0 { padding: 0; }
.au-p-1 { padding: var(--au-space-1); }
.au-p-2 { padding: var(--au-space-2); }
.au-p-3 { padding: var(--au-space-3); }
.au-p-4 { padding: var(--au-space-4); }
.au-p-5 { padding: var(--au-space-5); }
.au-p-6 { padding: var(--au-space-6); }

/* Text */
.au-text-left { text-align: left; }
.au-text-center { text-align: center; }
.au-text-right { text-align: right; }

.au-font-normal { font-weight: var(--au-font-normal); }
.au-font-medium { font-weight: var(--au-font-medium); }
.au-font-semibold { font-weight: var(--au-font-semibold); }
.au-font-bold { font-weight: var(--au-font-bold); }

.au-text-xs { font-size: var(--au-text-xs); }
.au-text-sm { font-size: var(--au-text-sm); }
.au-text-base { font-size: var(--au-text-base); }
.au-text-lg { font-size: var(--au-text-lg); }
.au-text-xl { font-size: var(--au-text-xl); }

.au-text-primary { color: var(--au-primary); }
.au-text-success { color: var(--au-success); }
.au-text-warning { color: var(--au-warning); }
.au-text-danger { color: var(--au-danger); }
.au-text-secondary { color: var(--au-text-secondary); }
.au-text-tertiary { color: var(--au-text-tertiary); }

/* Background */
.au-bg-primary { background-color: var(--au-primary); }
.au-bg-success { background-color: var(--au-success); }
.au-bg-warning { background-color: var(--au-warning); }
.au-bg-danger { background-color: var(--au-danger); }
.au-bg-secondary { background-color: var(--au-bg-secondary); }
.au-bg-tertiary { background-color: var(--au-bg-tertiary); }

/* Border Radius */
.au-rounded-none { border-radius: 0; }
.au-rounded-sm { border-radius: var(--au-radius-sm); }
.au-rounded { border-radius: var(--au-radius); }
.au-rounded-md { border-radius: var(--au-radius-md); }
.au-rounded-lg { border-radius: var(--au-radius-lg); }
.au-rounded-xl { border-radius: var(--au-radius-xl); }
.au-rounded-full { border-radius: var(--au-radius-full); }

/* Shadow */
.au-shadow-none { box-shadow: none; }
.au-shadow-xs { box-shadow: var(--au-shadow-xs); }
.au-shadow-sm { box-shadow: var(--au-shadow-sm); }
.au-shadow { box-shadow: var(--au-shadow); }
.au-shadow-md { box-shadow: var(--au-shadow-md); }
.au-shadow-lg { box-shadow: var(--au-shadow-lg); }

/* Cursor */
.au-cursor-pointer { cursor: pointer; }
.au-cursor-not-allowed { cursor: not-allowed; }

/* Overflow */
.au-overflow-hidden { overflow: hidden; }
.au-overflow-auto { overflow: auto; }
.au-overflow-scroll { overflow: scroll; }

/* Position */
.au-relative { position: relative; }
.au-absolute { position: absolute; }
.au-fixed { position: fixed; }
.au-sticky { position: sticky; }

/* Width / Height */
.au-w-full { width: 100%; }
.au-h-full { height: 100%; }
.au-min-h-screen { min-height: 100vh; }

/* ============================================================
   9. Responsive
   ============================================================ */
@media (max-width: 640px) {
  .au-sm\:hidden { display: none !important; }
  .au-sm\:block { display: block !important; }
  .au-sm\:flex { display: flex !important; }
}

@media (min-width: 641px) {
  .au-md\:hidden { display: none !important; }
  .au-md\:block { display: block !important; }
  .au-md\:flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .au-lg\:hidden { display: none !important; }
  .au-lg\:block { display: block !important; }
  .au-lg\:flex { display: flex !important; }
}

/* ============================================================
   10. Animations
   ============================================================ */
@keyframes au-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes au-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes au-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes au-slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes au-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes au-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes au-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes au-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.au-animate-fade { animation: au-fade-in var(--au-transition); }
.au-animate-fade-out { animation: au-fade-out var(--au-transition); }
.au-animate-slide-up { animation: au-slide-up var(--au-transition-spring); }
.au-animate-slide-down { animation: au-slide-down var(--au-transition-spring); }
.au-animate-scale { animation: au-scale-in var(--au-transition-spring); }
.au-animate-bounce { animation: au-bounce 2s ease-in-out infinite; }
.au-animate-pulse { animation: au-pulse 2s ease-in-out infinite; }
.au-animate-shake { animation: au-shake 0.5s ease-in-out; }

/* Animation Delays */
.au-delay-100 { animation-delay: 100ms; }
.au-delay-200 { animation-delay: 200ms; }
.au-delay-300 { animation-delay: 300ms; }
.au-delay-400 { animation-delay: 400ms; }
.au-delay-500 { animation-delay: 500ms; }

/* ============================================================
   11. Icons
   ============================================================ */

/* Icon Base */
.au-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: currentColor;
  transition: color var(--au-transition-fast);
}

.au-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
}

/* Icon Sizes */
.au-icon-xs { width: 16px; height: 16px; }
.au-icon-sm { width: 20px; height: 20px; }
.au-icon-md { width: 24px; height: 24px; }
.au-icon-lg { width: 32px; height: 32px; }
.au-icon-xl { width: 48px; height: 48px; }
.au-icon-2xl { width: 64px; height: 64px; }

/* Icon Colors */
.au-icon-primary { color: var(--au-primary); }
.au-icon-success { color: var(--au-success); }
.au-icon-warning { color: var(--au-warning); }
.au-icon-danger { color: var(--au-danger); }
.au-icon-secondary { color: var(--au-text-secondary); }
.au-icon-tertiary { color: var(--au-text-tertiary); }

/* Icon with Button */
.au-btn .au-icon {
  width: 20px;
  height: 20px;
}

.au-btn-xs .au-icon { width: 16px; height: 16px; }
.au-btn-sm .au-icon { width: 18px; height: 18px; }
.au-btn-lg .au-icon { width: 24px; height: 24px; }
.au-btn-xl .au-icon { width: 28px; height: 28px; }

/* Icon Button (Square) */
.au-btn-icon-only {
  width: 36px;
  padding: 0;
}

.au-btn-icon-only.au-btn-xs { width: 28px; }
.au-btn-icon-only.au-btn-sm { width: 32px; }
.au-btn-icon-only.au-btn-lg { width: 44px; }
.au-btn-icon-only.au-btn-xl { width: 52px; }

/* Icon Library - CSS-only icons using background SVG */
.au-icon-arrow-left::before,
.au-icon-arrow-right::before,
.au-icon-arrow-up::before,
.au-icon-arrow-down::before,
.au-icon-close::before,
.au-icon-check::before,
.au-icon-plus::before,
.au-icon-minus::before,
.au-icon-menu::before,
.au-icon-search::before,
.au-icon-home::before,
.au-icon-user::before,
.au-icon-settings::before,
.au-icon-heart::before,
.au-icon-star::before,
.au-icon-trash::before,
.au-icon-edit::before,
.au-icon-copy::before,
.au-icon-share::before,
.au-icon-download::before,
.au-icon-upload::before,
.au-icon-refresh::before,
.au-icon-more::before,
.au-icon-info::before,
.au-icon-warning::before,
.au-icon-error::before,
.au-icon-success::before,
.au-icon-chevron-left::before,
.au-icon-chevron-right::before,
.au-icon-chevron-up::before,
.au-icon-chevron-down::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Arrow Icons */
.au-icon-arrow-left::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-arrow-right::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-arrow-up::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'%3E%3C/line%3E%3Cpolyline points='5 12 12 5 19 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'%3E%3C/line%3E%3Cpolyline points='5 12 12 5 19 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-arrow-down::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Chevron Icons */
.au-icon-chevron-left::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-chevron-right::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-chevron-up::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-chevron-down::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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");
}

/* Action Icons */
.au-icon-close::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-check::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-plus::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-minus::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-menu::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-search::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-more::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
}

/* Content Icons */
.au-icon-home::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}

.au-icon-user::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

.au-icon-settings::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
}

.au-icon-heart::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.au-icon-star::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

.au-icon-trash::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3C/svg%3E");
}

.au-icon-edit::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
}

.au-icon-copy::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
}

.au-icon-share::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'%3E%3C/circle%3E%3Ccircle cx='6' cy='12' r='3'%3E%3C/circle%3E%3Ccircle cx='18' cy='19' r='3'%3E%3C/circle%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'%3E%3C/line%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'%3E%3C/circle%3E%3Ccircle cx='6' cy='12' r='3'%3E%3C/circle%3E%3Ccircle cx='18' cy='19' r='3'%3E%3C/circle%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'%3E%3C/line%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-download::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-upload::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='17 8 12 3 7 8'%3E%3C/polyline%3E%3Cline x1='12' y1='3' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='17 8 12 3 7 8'%3E%3C/polyline%3E%3Cline x1='12' y1='3' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-refresh::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpolyline points='1 20 1 14 7 14'%3E%3C/polyline%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpolyline points='1 20 1 14 7 14'%3E%3C/polyline%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'%3E%3C/path%3E%3C/svg%3E");
}

/* Status Icons */
.au-icon-info::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-warning::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-error::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.au-icon-success::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Icon Library Container */
.au-icon-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.au-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--au-bg-secondary);
  border-radius: var(--au-radius);
  border: 1px solid var(--au-border);
  transition: all var(--au-transition-fast);
  cursor: pointer;
}

.au-icon-item:hover {
  background: var(--au-bg-tertiary);
  border-color: var(--au-primary);
  transform: translateY(-2px);
}

.au-icon-item .au-icon {
  width: 32px;
  height: 32px;
}

.au-icon-item span {
  font-size: var(--au-text-xs);
  color: var(--au-text-secondary);
  text-align: center;
}

/* External SVG Icon Support */
.au-icon-external {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Icon with text */
.au-icon-text {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
}

.au-icon-text .au-icon {
  width: 20px;
  height: 20px;
}

/* Loading / Dots Icon */
.au-icon-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  height: auto;
  background: none;
  animation: none;
}

.au-icon-dots::before,
.au-icon-dots::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  animation: au-dots-bounce 1.4s ease-in-out infinite both;
}

.au-icon-dots {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  animation: au-dots-bounce 1.4s ease-in-out infinite both;
}

.au-icon-dots::before {
  animation-delay: -0.32s;
  margin-left: -7px;
}

.au-icon-dots::after {
  animation-delay: -0.16s;
  margin-right: -7px;
}

@keyframes au-dots-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Static three dots (no animation) */
.au-icon-ellipsis::before {
  content: '···';
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Horizontal three dots */
.au-icon-dots-h::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
}

/* Vertical three dots */
.au-icon-dots-v::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E");
}

/* ============================================================
   12. Theme Transition Enhancement
   ============================================================ */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================
   13. Landing Page Helpers
   ============================================================ */
.au-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.au-hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.au-hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--au-text-secondary);
  max-width: 560px;
}

.au-section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.au-section-desc {
  font-size: 17px;
  color: var(--au-text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.au-card-glass-highlight {
  background: var(--au-glass-bg);
  background-image: var(--au-glass-shine);
  backdrop-filter: var(--au-glass-blur);
  -webkit-backdrop-filter: var(--au-glass-blur);
  border: 1px solid var(--au-glass-border);
  box-shadow: var(--au-shadow-md), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.au-card-glass-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
   14. Scroll Reveal Animations
   ============================================================ */
.au-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.au-reveal.au-revealed {
  opacity: 1;
  transform: translateY(0);
}

.au-reveal-delay-1 { transition-delay: 0.1s; }
.au-reveal-delay-2 { transition-delay: 0.2s; }
.au-reveal-delay-3 { transition-delay: 0.3s; }
.au-reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   15. Code Block Enhancement
   ============================================================ */
.au-code {
  background: var(--au-bg-tertiary);
  border-radius: var(--au-radius-lg);
  padding: 24px;
  font-family: var(--au-font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--au-text-secondary);
  border: 1px solid var(--au-border);
}

.au-code .token-comment { color: var(--au-text-tertiary); }
.au-code .token-keyword { color: var(--au-primary); }
.au-code .token-string { color: var(--au-success); }
.au-code .token-tag { color: var(--au-danger); }
.au-code .token-attr { color: var(--au-warning); }

/* ============================================================
   16. Mobile Navbar
   ============================================================ */
.au-navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--au-text);
}

@media (max-width: 768px) {
  .au-navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .au-navbar-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--au-bg-secondary);
    backdrop-filter: var(--au-glass-blur);
    -webkit-backdrop-filter: var(--au-glass-blur);
    border-bottom: 1px solid var(--au-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 0;
    margin-left: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: var(--au-z-fixed);
  }

  .au-navbar-menu.au-navbar-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .au-navbar-menu li {
    border-bottom: 1px solid var(--au-border);
  }

  .au-navbar-menu li:last-child {
    border-bottom: none;
  }

  .au-navbar-link {
    display: block;
    padding: 12px 0;
    font-size: 17px;
  }
}

/* ============================================
   Liquid Glass - Advanced Glass Effect
   ============================================ */

.au-liquid-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--au-radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.25s ease;
  cursor: default;
  border: none;
  color: var(--au-text);
}

/* Dynamic highlight border - angle controlled by JS via --lg-angle */
.au-liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    var(--lg-angle, 135deg),
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.55) 65%,
    rgba(255, 255, 255, 0.0) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Top sheen highlight */
.au-liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

/* Content layer - stays sharp above filter */
.au-liquid-glass > .au-liquid-glass-content,
.au-liquid-glass > *:not(.au-liquid-glass-backdrop):not(.au-liquid-glass-border) {
  position: relative;
  z-index: 2;
}

/* Backdrop layer that gets the wiggly displacement effect */
.au-liquid-glass-backdrop {
  position: absolute;
  inset: -20%;
  z-index: 0;
  filter: var(--lg-filter, none);
  background: inherit;
  pointer-events: none;
}

/* Interactive states */
.au-liquid-glass.au-liquid-glass-interactive {
  cursor: pointer;
}

.au-liquid-glass.au-liquid-glass-interactive:hover {
  transform: scale(1.03);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.au-liquid-glass.au-liquid-glass-interactive:hover::before {
  opacity: 0.7;
}

.au-liquid-glass.au-liquid-glass-interactive:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* SVG filter target - applied to backdrop layer */
.au-liquid-glass[data-lg-filter] .au-liquid-glass-backdrop {
  filter: var(--lg-filter);
}

/* Size variants */
.au-liquid-glass-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--au-radius-lg);
}

.au-liquid-glass-md {
  padding: 16px 28px;
  font-size: 16px;
}

.au-liquid-glass-lg {
  padding: 24px 40px;
  font-size: 20px;
  border-radius: var(--au-radius-2xl);
}

/* Card variant */
.au-liquid-glass-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  max-width: 360px;
}

/* Over light background variant */
.au-liquid-glass-over-light {
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.au-liquid-glass-over-light::before {
  opacity: 0.35;
}

/* Dark theme adjustments */
[data-theme="dark"] .au-liquid-glass,
[data-theme="frosted-glass"] .au-liquid-glass {
  background: rgba(30, 30, 35, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .au-liquid-glass::before,
[data-theme="frosted-glass"] .au-liquid-glass::before {
  background: linear-gradient(
    var(--lg-angle, 135deg),
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.35) 65%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

[data-theme="dark"] .au-liquid-glass-over-light,
[data-theme="frosted-glass"] .au-liquid-glass-over-light {
  background: rgba(255, 255, 255, 0.08);
}

/* Liquid glass theme specific - more vibrant */
[data-theme="liquid-glass"] .au-liquid-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
}

/* Demo container for liquid glass */
.au-liquid-glass-demo-bg {
  position: relative;
  padding: 48px;
  border-radius: var(--au-radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.au-liquid-glass-demo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

