/**
 * BlockStar Space Custom Styles
 * Apple-inspired Design System
 */

:root {
  --blockstar-primary: #007aff;
  --blockstar-primary-rgb: 0, 122, 255;
  --blockstar-secondary: #5856d6;
  --blockstar-success: #34c759;
  --blockstar-warning: #ff9500;
  --blockstar-danger: #ff3b30;
  --blockstar-bg-primary: #04050a;
  --blockstar-bg-secondary: #0c1224;
  --blockstar-surface: #111834;
  --blockstar-border: rgba(255, 255, 255, 0.14);
  --blockstar-border-strong: rgba(255, 255, 255, 0.25);
  --blockstar-text-primary: #f2f6ff;
  --blockstar-text-secondary: #d3dcff;
  --blockstar-accent: #00d9ff;
  --blockstar-accent-alt: #ff3ec5;
  --blockstar-card-border-radius: 12px;
  --blockstar-card-shadow: 0 20px 50px rgba(4, 5, 10, 0.45);
  --blockstar-card-shadow-hover: 0 30px 60px rgba(4, 5, 10, 0.65);
  --blockstar-glow-shadow: 0 0 65px rgba(0, 217, 255, 0.4);
  --blockstar-tabbar-height: 60px;
  --blockstar-dock-height: 64px;
  --blockstar-dock-icon-size: 36px;
  --blockstar-dock-gap: 12px;
  --blockstar-dock-radius: 18px;
  --blockstar-wallpaper-image: none;
  --blockstar-font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --blockstar-contrast-text: var(--blockstar-text-primary);
  --blockstar-contrast-muted: var(--blockstar-text-secondary);
  --blockstar-contrast-surface: var(--blockstar-surface);
  --blockstar-contrast-link: var(--blockstar-accent);
  /* Apple-style spacing */
  --blockstar-spacing-xs: 4px;
  --blockstar-spacing-sm: 8px;
  --blockstar-spacing-md: 16px;
  --blockstar-spacing-lg: 24px;
}

:root[data-blockstar-contrast="light"] {
  color-scheme: light;
}

:root[data-blockstar-contrast="dark"] {
  color-scheme: dark;
}

body,
.app-wrapper,
.app-main,
.app-content,
.content-wrapper {
  background-color: var(--blockstar-bg-primary, #04050a);
  color: var(--blockstar-contrast-text, var(--blockstar-text-primary, #f2f6ff));
}

.blockstar-surface,
.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.toast,
.list-group-item,
.table {
  background-color: var(
    --blockstar-contrast-surface,
    var(--blockstar-surface, #111834)
  );
  color: var(--blockstar-contrast-text, var(--blockstar-text-primary, #f2f6ff));
}

.text-muted,
small,
.form-text {
  color: var(
    --blockstar-contrast-muted,
    var(--blockstar-text-secondary, #d3dcff)
  ) !important;
}

a {
  color: var(--blockstar-contrast-link, var(--blockstar-accent, #00d9ff));
}

a:hover,
a:focus-visible {
  color: color-mix(
    in srgb,
    var(--blockstar-contrast-link, #00d9ff) 82%,
    #ffffff 18%
  );
}

.bg-body,
.bg-body-secondary,
.bg-body-tertiary,
.app-header.navbar {
  background-color: color-mix(
    in srgb,
    var(--blockstar-contrast-surface, #111834) 92%,
    transparent
  );
  color: var(--blockstar-contrast-text, var(--blockstar-text-primary, #f2f6ff)) !important;
}

input,
textarea,
select,
button {
  color: var(--blockstar-contrast-text, #f2f6ff);
}

body.no-tabbar {
  --blockstar-tabbar-height: 0px;
}

[data-bs-theme="dark"] {
  --blockstar-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --blockstar-card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* TabBar Styles - Apple UX Design */
.blockstar-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--blockstar-tabbar-height) + env(safe-area-inset-bottom, 0px));
  background-color: rgba(255, 255, 255, 0.8);
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 1030;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 -4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  /* Apple-style rounded top corners */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

[data-bs-theme="dark"] .blockstar-tabbar {
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05), 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.blockstar-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 8px 8px 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  border: none;
  background: none;
  min-width: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

[data-bs-theme="dark"] .blockstar-tabbar-item {
  color: rgba(255, 255, 255, 0.6);
}

.blockstar-tabbar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgba(0, 122, 255, 0.1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

[data-bs-theme="dark"] .blockstar-tabbar-item::before {
  background-color: rgba(0, 122, 255, 0.2);
}

.blockstar-tabbar-item:active::before {
  transform: translateX(-50%) scale(1);
}

.blockstar-tabbar-item:hover {
  color: var(--blockstar-primary);
}

.blockstar-tabbar-item:hover::before {
  transform: translateX(-50%) scale(1);
}

.blockstar-tabbar-item.active {
  color: var(--blockstar-primary);
}

.blockstar-tabbar-item.active::before {
  transform: translateX(-50%) scale(1);
  background-color: rgba(0, 122, 255, 0.15);
}

[data-bs-theme="dark"] .blockstar-tabbar-item.active::before {
  background-color: rgba(0, 122, 255, 0.25);
}

.blockstar-tabbar-item i {
  font-size: 26px;
  margin-bottom: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.blockstar-tabbar-item.active i {
  transform: scale(1.05);
  font-weight: 600;
}

.blockstar-tabbar-item:active i {
  transform: scale(0.95);
}

.blockstar-tabbar-item-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2px;
}

.blockstar-tabbar-item.active .blockstar-tabbar-item-label {
  font-weight: 600;
  color: var(--blockstar-primary);
}

/* Badge für Notifications (optional) */
.blockstar-tabbar-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  background-color: var(--blockstar-danger);
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animation für Tab-Wechsel */
@keyframes tabBarItemPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.blockstar-tabbar-item.active i {
  animation: tabBarItemPulse 0.3s ease;
}

/* Sidebar Rainbow Icons */
.dashboard-icon-rainbow {
  --dashboard-rainbow-color: #6ec1ff;
  color: #ffffff;
  animation: rainbowPulse 3s ease-in-out infinite;
  animation-fill-mode: both;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 6px var(--dashboard-rainbow-color)) drop-shadow(0 0 10px var(--dashboard-rainbow-color));
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5), 0 0 10px var(--dashboard-rainbow-color);
  opacity: 0.95;
}

.nav-link.active .dashboard-icon-rainbow,
.dashboard-menu-item:hover .dashboard-icon-rainbow {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px var(--dashboard-rainbow-color)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
  opacity: 1;
  transform: scale(1.08);
}

@keyframes rainbowPulse {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    filter: drop-shadow(0 0 2px var(--dashboard-rainbow-color)) drop-shadow(0 0 4px var(--dashboard-rainbow-color));
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 4px var(--dashboard-rainbow-color)) drop-shadow(0 0 8px var(--dashboard-rainbow-color)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  }
}

/* Adjust app-wrapper for TabBar */
.app-wrapper {
  padding-bottom: calc(
    var(--blockstar-tabbar-height) +
    var(--blockstar-dock-height) +
    48px +
    env(safe-area-inset-bottom, 0px)
  );
}

.app-main {
  margin-bottom: calc(
    var(--blockstar-tabbar-height) +
    var(--blockstar-dock-height) +
    48px +
    env(safe-area-inset-bottom, 0px)
  );
  padding-bottom: 0;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Prevent overscroll bounce on iOS */
body {
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  background-color: var(--blockstar-bg-primary, #04050a);
  color: var(--blockstar-text-primary, #f2f6ff);
  font-family: var(--blockstar-font-family, 'Inter', system-ui, -apple-system, sans-serif);
  min-height: 100vh;
  position: relative;
}

body.blockstar-wallpaper-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--blockstar-wallpaper-image);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  filter: saturate(0.8);
}

/* High-contrast content surfaces */
.app-content,
.app-main {
  color: var(--blockstar-text-primary, #f2f6ff);
}

.app-content-header,
.app-content .card,
.blockstar-card,
.whiteboard-toolbar,
.whiteboard-container {
  background-color: rgba(10, 14, 32, 0.92);
  border: 1px solid var(--blockstar-border, rgba(255, 255, 255, 0.14));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  color: var(--blockstar-text-primary, #f2f6ff);
}

.app-content .card-title,
.blockstar-card-title,
.whiteboard-toolbar button {
  color: var(--blockstar-text-primary, #f2f6ff);
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
  color: var(--blockstar-text-secondary, #d3dcff);
}

.breadcrumb .breadcrumb-item.active {
  color: var(--blockstar-text-primary, #f2f6ff);
}

/* Card Styles */
.blockstar-card {
  background: var(--bs-body-bg);
  border-radius: var(--blockstar-card-border-radius);
  box-shadow: var(--blockstar-card-shadow);
  border: 1px solid var(--bs-border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  cursor: move;
  position: relative;
}

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

.blockstar-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  z-index: 1000;
}

.blockstar-card.drag-over {
  border-color: var(--blockstar-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.blockstar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.blockstar-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--bs-body-color);
}

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

.blockstar-card-action-btn {
  background: none;
  border: none;
  color: var(--bs-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.blockstar-card-action-btn:hover {
  background-color: var(--bs-tertiary-bg);
  color: var(--blockstar-primary);
}

/* Grid/List View Toggle */
.blockstar-view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blockstar-view-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blockstar-view-btn.active {
  background: var(--blockstar-primary);
  color: white;
  border-color: var(--blockstar-primary);
}

/* Add Card Button */
.blockstar-add-card-btn {
  position: fixed;
  bottom: calc(var(--blockstar-tabbar-height) + var(--blockstar-dock-height) + 20px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blockstar-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1020;
  transition: all 0.3s ease;
}

.blockstar-add-card-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.5);
}

.blockstar-add-card-btn:active {
  transform: scale(0.95);
}

/* Card Grid */
.blockstar-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.blockstar-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.blockstar-card-list .blockstar-card {
  margin-bottom: 0;
}

/* Navigation Bar */
.blockstar-navbar {
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.blockstar-navbar-back {
  background: none;
  border: none;
  color: var(--blockstar-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.blockstar-navbar-back:hover {
  background-color: var(--bs-tertiary-bg);
}

.blockstar-navbar-title {
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
  margin: 0;
}

/* Search Bar */
.blockstar-search-bar {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.blockstar-search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 0.9375rem;
}

.blockstar-search-input:focus {
  outline: none;
  border-color: var(--blockstar-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.blockstar-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary);
}

/* Empty State */
.blockstar-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary);
}

.blockstar-empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .blockstar-card-grid {
    grid-template-columns: 1fr;
  }
  
  .blockstar-tabbar-item-label {
    font-size: 10px;
  }
  
  .blockstar-tabbar-item i {
    font-size: 24px;
  }
  
  .blockstar-tabbar {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}

/* iPhone Safe Area Support */
@supports (padding: max(0px)) {
  .blockstar-tabbar {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

/* iPad Optimierung */
@media (min-width: 768px) and (max-width: 1024px) {
  .blockstar-tabbar {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
  }
}

/* Animation */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.blockstar-card {
  animation: slideInUp 0.3s ease;
}

/* Drag Handle */
.blockstar-card-drag-handle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--bs-secondary);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.blockstar-card:hover .blockstar-card-drag-handle {
  opacity: 1;
}

.blockstar-card-drag-handle:active {
  cursor: grabbing;
}


/* Dock Slider Showcase */
.blockstar-dock-showcase {
  position: relative;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  margin-bottom: 2.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(90, 170, 255, 0.2), rgba(3, 6, 14, 0)) ,
    linear-gradient(145deg, rgba(6, 12, 26, 0.98), rgba(11, 16, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 25px 80px rgba(1, 4, 10, 0.65);
  color: #e9f1ff;
  isolation: isolate;
}

.blockstar-dock-showcase::before,
.blockstar-dock-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.blockstar-dock-showcase::before {
  background: radial-gradient(circle at 75% 10%, rgba(120, 190, 255, 0.3), transparent 45%);
}

.blockstar-dock-showcase::after {
  background: radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.15), transparent 50%);
}

.blockstar-dock-showcase > * {
  position: relative;
  z-index: 2;
}

.blockstar-dock-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: rgba(233, 241, 255, 0.65);
  margin-bottom: 1rem;
}

.blockstar-dock-showcase h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.blockstar-dock-showcase p {
  max-width: 780px;
  margin: 0;
  color: rgba(233, 241, 255, 0.78);
  line-height: 1.7;
}

.blockstar-dock-showcase .blockstar-dock-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(233, 241, 255, 0.75);
}

.blockstar-dock-showcase .blockstar-dock-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


/* Floating Dock Slider */
.blockstar-dock-footer {
  position: fixed;
  left: 0;
  right: 0;
  transform: none;
  bottom: calc(var(--blockstar-tabbar-height) + 16px);
  width: 100%;
  pointer-events: none;
  z-index: 1230;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.blockstar-dock-panel {
  pointer-events: auto;
  position: relative;
  width: 100%;
  height: var(--blockstar-dock-height);
  border-radius: var(--blockstar-dock-radius);
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  padding: 8px 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  animation: blockstarDockFloat 11s ease-in-out infinite;
}

.blockstar-dock-panel::before,
.blockstar-dock-panel::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--blockstar-dock-radius) + 6px);
  pointer-events: none;
}

.blockstar-dock-panel::before {
  background: linear-gradient(120deg, rgba(90, 170, 255, 0.3), rgba(140, 200, 255, 0.08));
  filter: blur(18px);
  opacity: 0.9;
  animation: blockstarDockGlow 2.8s ease-in-out infinite;
}

.blockstar-dock-panel::after {
  border: 1px solid rgba(255, 255, 255, 0.05);
  mix-blend-mode: screen;
}

.blockstar-dock-depth {
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--blockstar-dock-radius) - 8px);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.blockstar-dock-depth::before,
.blockstar-dock-depth::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 220%;
  filter: blur(26px);
  opacity: 0.4;
}

.blockstar-dock-depth::before {
  left: -80%;
  background: linear-gradient(120deg, rgba(70, 160, 255, 0.35), transparent 55%);
}

.blockstar-dock-depth::after {
  left: -60%;
  background: linear-gradient(300deg, rgba(255, 255, 255, 0.18), transparent 35%);
}

.blockstar-dock-scroll {
  position: relative;
  width: 100%;
  display: flex;
  gap: var(--blockstar-dock-gap);
  overflow-x: auto;
  padding: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 2;
}

.blockstar-dock-scroll::-webkit-scrollbar {
  display: none;
}

.blockstar-dock-item {
  flex: 0 0 auto;
  width: calc(var(--blockstar-dock-icon-size) + 18px);
  height: calc(var(--blockstar-dock-icon-size) + 20px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blockstar-dock-item::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 14px;
  background: var(--blockstar-dock-item-soft, rgba(125, 176, 255, 0.28));
  filter: blur(18px);
  opacity: 0.7;
}

.blockstar-dock-item .icon {
  width: var(--blockstar-dock-icon-size);
  height: var(--blockstar-dock-icon-size);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 55%),
    var(--blockstar-dock-item-soft, rgba(125, 176, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  font-size: 1.35rem;
  color: var(--blockstar-dock-item-color, #9ecaff);
}

.blockstar-dock-item .label {
  position: absolute;
  bottom: -18px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.blockstar-dock-item.center {
  filter: drop-shadow(0 14px 30px rgba(90, 170, 255, 0.55));
}

.blockstar-dock-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 8, 16, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.blockstar-dock-nav:hover {
  background: rgba(4, 8, 16, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.blockstar-dock-nav:focus-visible {
  outline: 2px solid rgba(111, 181, 255, 0.9);
  outline-offset: 2px;
}

.blockstar-dock-nav.left {
  left: 16px;
}

.blockstar-dock-nav.right {
  right: 16px;
}

.blockstar-dock-reflection {
  position: absolute;
  width: 82%;
  height: 28px;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.18;
  pointer-events: none;
}

@keyframes blockstarDockGlow {
  0% {
    opacity: 0.85;
    transform: scale(0.99);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.85;
    transform: scale(0.99);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .blockstar-dock-panel {
    animation: none;
  }

  .blockstar-dock-panel::before {
    animation: none;
  }
}

@media (min-width: 992px) {
  body {
    --blockstar-dock-height: 0px;
  }

  .blockstar-dock-footer {
    display: none;
  }
}

@media (max-width: 767px) {
  .blockstar-dock-footer {
    padding: 0 10px;
  }

  .blockstar-dock-panel {
    padding: 8px 20px;
  }

  .blockstar-dock-nav {
    display: none;
  }

  .blockstar-dock-showcase {
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 575px) {
  .blockstar-dock-panel {
    border-radius: 16px;
    padding: 8px 16px;
  }

  .blockstar-dock-showcase {
    padding: 24px;
  }
}

/* BlockStar Neon Logo mit Glitch-Effekt */
.blockstar-logo-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: #00d9ff;
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(0, 217, 255, 0.6),
    0 0 30px rgba(0, 217, 255, 0.4),
    0 0 40px rgba(0, 217, 255, 0.3);
  position: relative;
  display: inline-block;
  animation: blockstarGlitch 3s infinite;
  text-transform: uppercase;
}

@keyframes blockstarGlitch {
  0%, 90%, 100% {
    transform: translate(0);
    text-shadow: 
      0 0 10px rgba(0, 217, 255, 0.8),
      0 0 20px rgba(0, 217, 255, 0.6),
      0 0 30px rgba(0, 217, 255, 0.4),
      0 0 40px rgba(0, 217, 255, 0.3);
  }
  92% {
    transform: translate(-2px, 1px);
    text-shadow: 
      -2px 1px 10px rgba(255, 140, 0, 0.8),
      2px -1px 10px rgba(0, 217, 255, 0.8),
      0 0 20px rgba(255, 140, 0, 0.6);
  }
  94% {
    transform: translate(2px, -1px);
    text-shadow: 
      2px -1px 10px rgba(255, 140, 0, 0.8),
      -2px 1px 10px rgba(0, 217, 255, 0.8),
      0 0 20px rgba(0, 217, 255, 0.6);
  }
  96% {
    transform: translate(-1px, 2px);
    text-shadow: 
      -1px 2px 10px rgba(255, 140, 0, 0.8),
      1px -2px 10px rgba(0, 217, 255, 0.8);
  }
  98% {
    transform: translate(0);
  }
}

.sidebar-brand .blockstar-logo-text {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

/* Entferne margin-left von brand-text wenn nur Logo-Text vorhanden */
.sidebar-brand .brand-link:has(.blockstar-logo-text) .brand-text,
.sidebar-brand .brand-link .blockstar-logo-text {
  margin-left: 0;
}

/* Zentriere das Logo in der Sidebar-Brand */
.sidebar-brand .brand-link {
  width: 100%;
  justify-content: center;
}

/* Sidebar Positioning for Add Button */
.app-sidebar {
  position: relative;
  background: linear-gradient(180deg, var(--blockstar-bg-secondary, #0d1324) 0%, rgba(13, 19, 36, 0.92) 65%, rgba(13, 19, 36, 0.75) 100%);
  color: var(--blockstar-text-secondary, #b3c1e5);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 12px 0 45px rgba(0, 0, 0, 0.45);
}

/* Sidebar Rainbow Layout */
#dashboard-menu-list {
  padding-bottom: 140px;
}

.sidebar-link-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.35rem;
  border-radius: 14px;
  background-color: var(--sidebar-glass, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.sidebar-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sidebar-gradient-start, #00d9ff), var(--sidebar-gradient-end, #ff3ec5));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  color: #fff;
}

.sidebar-link-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sidebar-link-title {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--blockstar-text-primary, #f2f6ff);
}

.sidebar-link-index {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blockstar-text-secondary, #b3c1e5);
}

.nav-link {
  border-radius: 16px;
  margin-bottom: 4px;
  color: var(--blockstar-text-primary, #f2f6ff);
  padding: 2px 4px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.resource-panel {
  background: rgba(15, 20, 42, 0.95);
  border: 1px solid var(--blockstar-border, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-panel-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--blockstar-text-secondary);
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.resource-panel--crt {
  background: #020c02;
  border: 1px solid rgba(0, 255, 127, 0.35);
  color: #41ff9b;
  text-shadow: 0 0 8px rgba(65, 255, 155, 0.6);
  box-shadow: inset 0 0 25px rgba(0, 255, 85, 0.15), 0 20px 40px rgba(0, 0, 0, 0.55);
}

.resource-panel--editor {
  background: #080b1a;
  border: 1px dashed rgba(91, 143, 255, 0.5);
}

.resource-panel--locksreen {
  background: radial-gradient(circle at top, rgba(0, 217, 255, 0.12), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.resource-panel--status {
  background: rgba(30, 12, 44, 0.95);
  border: 1px solid rgba(214, 95, 255, 0.35);
}

.resource-panel--api {
  background: rgba(7, 12, 30, 0.95);
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.resource-panel--backup {
  background: rgba(29, 8, 19, 0.95);
  border: 1px solid rgba(255, 99, 132, 0.35);
}

.resource-panel--storage {
  background: rgba(12, 18, 36, 0.95);
  border: 1px solid rgba(0, 255, 200, 0.25);
}

.resource-panel--tasks {
  background: rgba(24, 10, 26, 0.95);
  border: 1px solid rgba(255, 196, 0, 0.35);
}

.resource-panel--links {
  background: rgba(10, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.resource-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blockstar-text-primary);
}

.resource-panel-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--blockstar-text-secondary);
}

.resource-panel-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.65rem;
  color: var(--blockstar-text-secondary);
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.resource-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-terminal {
  min-height: 220px;
  background: rgba(8, 24, 8, 0.95);
  border: 1px solid rgba(65, 255, 155, 0.45);
  border-radius: 10px;
  color: #41ff9b;
  font-family: 'VT323', 'Fira Code', monospace;
  font-size: 1rem;
  padding: 1rem;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
  line-height: 1.4;
  overflow: auto;
}

.resource-mindmap {
  border: 1px dashed rgba(0, 217, 255, 0.4);
  border-radius: 12px;
  padding: 1rem;
  min-height: 220px;
}

.resource-mindmap-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.resource-mindmap-node {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--blockstar-text-primary);
}

.resource-mindmap-node.root {
  background: rgba(255, 0, 128, 0.2);
  border-color: rgba(255, 0, 128, 0.4);
}

.resource-mindmap-node.level-1 {
  background: rgba(0, 255, 149, 0.15);
  border-color: rgba(0, 255, 149, 0.4);
}

.resource-mindmap-node.level-2 {
  background: rgba(91, 143, 255, 0.15);
  border-color: rgba(91, 143, 255, 0.4);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.timeline-badge {
  position: absolute;
  left: 2px;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.timeline-item--success .timeline-badge {
  background: rgba(76, 201, 91, 0.35);
  border-color: rgba(76, 201, 91, 0.9);
}

.timeline-item--pending .timeline-badge {
  background: rgba(255, 193, 7, 0.35);
  border-color: rgba(255, 193, 7, 0.9);
}

.timeline-item--info .timeline-badge {
  background: rgba(0, 123, 255, 0.35);
  border-color: rgba(0, 123, 255, 0.9);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.timeline-time {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--blockstar-text-secondary);
  text-transform: uppercase;
}

.timeline-title {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: var(--blockstar-text-primary);
}

.timeline-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--blockstar-text-secondary);
}

.resource-code-editor {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
  background: #050816;
  border: 1px solid rgba(91, 143, 255, 0.4);
  color: var(--blockstar-text-primary);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 1rem;
  resize: vertical;
}

.resource-status-list .badge {
  min-width: 70px;
}

.resource-panel--crt .resource-panel-header .resource-panel-title {
  color: #41ff9b;
}

.resource-storage-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
}

.resource-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.resource-storage-name {
  font-weight: 600;
}

.resource-storage-meta,
.resource-storage-info {
  margin: 0;
  font-size: 0.85rem;
  color: var(--blockstar-text-secondary);
}

.resource-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.resource-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.4);
}

.resource-link-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blockstar-text-secondary);
}

.resource-link-label {
  font-size: 1rem;
  font-weight: 600;
}

.resource-task-item .badge {
  min-width: 60px;
  text-transform: capitalize;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(0, 0, 0, 0.25);
  color: var(--blockstar-text-primary, #f2f6ff);
}

.nav-link.active .sidebar-link-shell,
.nav-link:hover .sidebar-link-shell {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.04);
}

.nav-link.active .sidebar-link-index,
.nav-link:hover .sidebar-link-index {
  color: var(--blockstar-accent, #00d9ff);
}

/* Widget Karussell */
/* Widget Carousel Neon Container */
.widget-carousel-neon-container {
  position: relative;
  width: 100%;
  background: #2d2d2d;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

[data-bs-theme="light"] .widget-carousel-neon-container {
  background: #3a3a3a;
}

/* Neon Rainbow Wave Border Animation */
.widget-carousel-neon-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    #ff006e 0%,
    #fb5607 14.28%,
    #ffbe0b 28.56%,
    #8338ec 42.84%,
    #3a86ff 57.12%,
    #06ffa5 71.4%,
    #ff006e 85.68%,
    #fb5607 100%
  );
  background-size: 300% 100%;
  animation: rainbow-wave 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  will-change: background-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes rainbow-wave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Glowing inner border */
.widget-carousel-neon-container::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 0 40px rgba(58, 134, 255, 0.2);
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

.widget-carousel-neon-container .widgets-scroll-container {
  position: relative;
  z-index: 2;
}

.widgets-scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  margin: 0;
}

.widgets-scroll-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 20%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overflow: visible;
}

.widget-item {
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 400px;
  width: 320px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  position: relative;
  transform-origin: center;
  opacity: 0.4;
  transform: scale(0.85);
  z-index: 1;
  margin-right: -60px;
}

.widget-item:active {
  cursor: grabbing;
}

.widget-item.carousel-center {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-right: -40px;
}

.widget-item.carousel-center-left,
.widget-item.carousel-center-right {
  opacity: 0.85;
  transform: scale(0.95);
  z-index: 5;
  margin-right: -50px;
}

.widget-item.carousel-far-left,
.widget-item.carousel-far-right {
  opacity: 0.3;
  transform: scale(0.75);
  z-index: 1;
}

.widget-item.carousel-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin: 0;
  opacity: 0.8;
}

.widget-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bs-body-color);
}

.widget-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.widget-item:hover .widget-actions,
.widget-item.carousel-center .widget-actions {
  opacity: 1;
}

.widget-actions .btn-link {
  padding: 0.25rem 0.5rem;
  color: var(--bs-secondary);
  text-decoration: none;
  border: none;
  background: none;
}

.widget-actions .btn-link:hover {
  color: var(--blockstar-primary);
}

/* Karussell Navigation */
.widget-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--bs-body-color);
}

.widget-carousel-nav:hover {
  background: var(--bs-body-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.widget-carousel-nav.prev {
  left: 1rem;
}

.widget-carousel-nav.next {
  right: 1rem;
}

.widget-carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Add Widget Button im Karussell */
.widget-add-placeholder {
  min-width: 320px;
  max-width: 400px;
  width: 320px;
  background: transparent;
  border: 2px dashed var(--bs-border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-right: -60px;
}

.widget-add-placeholder:hover {
  border-color: var(--blockstar-primary);
  background: rgba(var(--blockstar-primary-rgb, 0, 122, 255), 0.05);
}

.widget-add-placeholder .btn {
  border: none;
  background: transparent;
  color: var(--bs-secondary);
  font-weight: 500;
}

.widget-add-placeholder:hover .btn {
  color: var(--blockstar-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .widgets-scroll-wrapper {
    padding: 0 5%;
    gap: 1rem;
  }
  
  .widget-item {
    min-width: 280px;
    max-width: 320px;
  }
  
  .widget-carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .widget-carousel-nav.prev {
    left: 0.5rem;
  }
  
  .widget-carousel-nav.next {
    right: 0.5rem;
  }
}

/* Moderner Kalender */
.calendar-month-view {
  padding: 1rem;
}

.calendar-weeks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.calendar-week {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--bs-border-color);
}

.calendar-week:last-child {
  border-bottom: none;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(var(--bs-primary-rgb, 0, 122, 255), 0.05);
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.week-label {
  opacity: 0.9;
}

.week-dates {
  opacity: 0.7;
  font-weight: 400;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  min-height: 120px;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--bs-border-color);
  min-height: 120px;
  position: relative;
  transition: all 0.3s ease;
  background: var(--bs-body-bg);
}

.calendar-day:last-child {
  border-right: none;
}

.calendar-day.today {
  background: linear-gradient(135deg, 
    rgba(0, 217, 255, 0.1) 0%, 
    rgba(91, 143, 255, 0.1) 100%);
  box-shadow: 
    0 0 20px rgba(0, 217, 255, 0.3),
    inset 0 0 30px rgba(0, 217, 255, 0.1);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, 
    rgba(0, 217, 255, 0.8),
    rgba(91, 143, 255, 0.8)) 1;
  animation: calendarTodayGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes calendarTodayGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 217, 255, 0.3),
      inset 0 0 30px rgba(0, 217, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 217, 255, 0.5),
      inset 0 0 40px rgba(0, 217, 255, 0.15);
  }
}

.calendar-day.today .day-number {
  color: #00d9ff;
  font-weight: 800;
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(0, 217, 255, 0.5);
}

.day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.day-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-body-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.day-number {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--bs-body-color);
  line-height: 1.2;
}

.day-todos {
  flex: 1;
  min-height: 40px;
  margin-bottom: 0.5rem;
}

.day-todo-item {
  background: rgba(var(--bs-warning-rgb, 255, 193, 7), 0.1);
  border-left: 3px solid var(--bs-warning);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  border-radius: 0 4px 4px 0;
  cursor: move;
  transition: all 0.2s ease;
}

.day-todo-item:hover {
  background: rgba(var(--bs-warning-rgb, 255, 193, 7), 0.2);
  transform: translateX(2px);
}

.day-appointments {
  flex: 1;
  min-height: 40px;
}

.day-appointment-item {
  background: rgba(var(--bs-info-rgb, 13, 202, 240), 0.1);
  border-left: 3px solid var(--bs-info);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.day-appointment-item:hover {
  background: rgba(var(--bs-info-rgb, 13, 202, 240), 0.2);
}

.day-appointment-item.completed {
  opacity: 0.5;
  text-decoration: line-through;
}

.appointment-time-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--bs-info);
  white-space: nowrap;
  flex-shrink: 0;
}

.appointment-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.appointment-checkbox {
  flex-shrink: 0;
  cursor: pointer;
}

.appointment-text {
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.4;
}

.day-add-appointment {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bs-border-color);
  display: flex;
  justify-content: center;
}

.add-appointment-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-body-color);
  opacity: 0.5;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.add-appointment-btn:hover {
  opacity: 0.8;
  color: var(--blockstar-primary);
}

.add-appointment-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  min-width: auto;
}

.add-appointment-btn i,
.add-appointment-btn span {
  display: none;
}

/* Responsive Kalender */
@media (max-width: 768px) {
  .week-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .day-name {
    font-size: 0.65rem;
  }
  
  .day-number {
    font-size: clamp(0.875rem, 3vw, 1.25rem);
  }
  
  .day-todos,
  .day-appointments {
    min-height: 30px;
  }
  
  .day-todo-item,
  .day-appointment-item {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  
  .calendar-day {
    padding: 0.5rem 0.25rem;
    min-height: 100px;
  }
}

/* Whiteboard System */
#whiteboard-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 200px);
  background: var(--bs-body-bg);
  overflow: auto;
  padding: 2rem;
}

.whiteboard-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.whiteboard-widget,
.whiteboard-note {
  position: absolute;
  cursor: move;
  z-index: 10;
}

.whiteboard-widget .card-header,
.whiteboard-note .card-header {
  cursor: move;
  user-select: none;
}

.whiteboard-widget:hover,
.whiteboard-note:hover {
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whiteboard-widget .widget-actions,
.whiteboard-note .note-delete {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.whiteboard-widget:hover .widget-actions,
.whiteboard-note:hover .note-delete {
  opacity: 1;
}

.whiteboard-note textarea.note-content {
  resize: vertical;
  border: none;
  background: transparent;
  font-size: 0.875rem;
}

.whiteboard-note textarea.note-content:focus {
  outline: 1px solid var(--blockstar-primary);
  border-radius: 0.25rem;
}

/* Whiteboard Toolbar */
.whiteboard-toolbar {
  position: sticky;
  top: 0;
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.75rem 1rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.whiteboard-toolbar .btn {
  white-space: nowrap;
}

/* Sortable Drag Feedback */
.sortable-ghost {
  opacity: 0.4;
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(2deg);
}

/* Drawing Canvas / NOTIZEN Dashboard - Responsive Styles */
.drawing-canvas-container {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 500px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: auto;
  position: relative;
  touch-action: none;
}

[data-bs-theme="dark"] .drawing-canvas-container {
  background: #1a1a1a;
}

.drawing-canvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
}

/* OneNote Toolbar - Responsive */
.onenote-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-bs-theme="dark"] .onenote-toolbar {
  background: #2d2d2d;
  border-bottom-color: #404040;
}

.onenote-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.onenote-toolbar-separator {
  width: 1px;
  height: 24px;
  background: #e0e0e0;
  margin: 0 8px;
}

[data-bs-theme="dark"] .onenote-toolbar-separator {
  background: #404040;
}

.onenote-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.onenote-toolbar-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.onenote-toolbar-btn.active {
  background: #007AFF;
  color: #fff;
}

[data-bs-theme="dark"] .onenote-toolbar-btn {
  color: #aaa;
}

[data-bs-theme="dark"] .onenote-toolbar-btn:hover {
  background: #404040;
  color: #fff;
}

.onenote-brush-size {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.onenote-brush-size label {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

[data-bs-theme="dark"] .onenote-brush-size label {
  color: #aaa;
}

.onenote-brush-size input[type="range"] {
  width: 80px;
}

.onenote-brush-size-label {
  font-size: 0.875rem;
  color: #666;
  min-width: 35px;
}

[data-bs-theme="dark"] .onenote-brush-size-label {
  color: #aaa;
}

.onenote-color-picker {
  position: relative;
}

.onenote-color-picker-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background: currentColor;
}

[data-bs-theme="dark"] .onenote-color-picker-btn {
  border-color: #555;
}

.onenote-color-palette {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 1000;
  min-width: 200px;
}

[data-bs-theme="dark"] .onenote-color-palette {
  background: #2d2d2d;
  border-color: #404040;
}

.onenote-color-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.onenote-color-swatch:hover {
  transform: scale(1.1);
}

[data-bs-theme="dark"] .onenote-color-swatch {
  border-color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .onenote-toolbar {
    padding: 8px 12px;
    gap: 4px;
  }
  
  .onenote-toolbar-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .onenote-brush-size {
    gap: 4px;
  }
  
  .onenote-brush-size input[type="range"] {
    width: 60px;
  }
  
  .drawing-canvas-container {
    height: calc(100vh - 180px);
    min-height: 400px;
  }
  
  .onenote-color-palette {
    grid-template-columns: repeat(6, 1fr);
    min-width: 160px;
  }
}

@media (max-width: 576px) {
  .onenote-toolbar {
    padding: 6px 8px;
  }
  
  .onenote-toolbar-group {
    gap: 2px;
  }
  
  .onenote-toolbar-separator {
    margin: 0 4px;
  }
  
  .drawing-canvas-container {
    height: calc(100vh - 160px);
    min-height: 350px;
  }
}

/* Dashboard Delete Button */
.dashboard-menu-item {
  position: relative;
}

.dashboard-delete-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--bs-danger) !important;
  cursor: pointer;
}

.dashboard-menu-item:hover .dashboard-delete-btn {
  opacity: 1;
}

.dashboard-delete-btn:hover {
  color: var(--bs-danger) !important;
  background: rgba(var(--bs-danger-rgb), 0.1);
  border-radius: 4px;
}

/* OneKey Wallet Widget Styles */
.onekey-wallet-card {
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(65, 255, 155, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(65, 255, 155, 0.1);
}

.onekey-wallet-card .card-header {
  background: rgba(65, 255, 155, 0.1);
  border-bottom: 1px solid rgba(65, 255, 155, 0.2);
  color: #41ff9b;
}

.onekey-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(65, 255, 155, 0.2);
}

.onekey-connection-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.onekey-connection-status.status-disconnected {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
}

.onekey-connection-status.status-connecting {
  background: rgba(255, 149, 0, 0.2);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

.onekey-connection-status.status-connected {
  background: rgba(52, 199, 89, 0.2);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.4);
}

.onekey-connection-status.status-error {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.onekey-connect-btn {
  background: rgba(65, 255, 155, 0.2);
  border: 1px solid rgba(65, 255, 155, 0.4);
  color: #41ff9b;
  transition: all 0.3s ease;
}

.onekey-connect-btn:hover {
  background: rgba(65, 255, 155, 0.3);
  border-color: rgba(65, 255, 155, 0.6);
  box-shadow: 0 0 15px rgba(65, 255, 155, 0.3);
}

.onekey-connect-btn.connected {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  color: #ff3b30;
}

.onekey-connect-btn.connected:hover {
  background: rgba(255, 59, 48, 0.3);
  border-color: rgba(255, 59, 48, 0.6);
}

.onekey-privatekey-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(65, 255, 155, 0.3);
  color: #e5fff2;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
}

.onekey-privatekey-input:focus {
  border-color: rgba(65, 255, 155, 0.6);
  box-shadow: 0 0 10px rgba(65, 255, 155, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.onekey-privatekey-login-btn {
  background: rgba(65, 255, 155, 0.15);
  border: 1px solid rgba(65, 255, 155, 0.3);
  color: #41ff9b;
}

.onekey-privatekey-login-btn:hover {
  background: rgba(65, 255, 155, 0.25);
  border-color: rgba(65, 255, 155, 0.5);
}

.onekey-chain-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(65, 255, 155, 0.3);
  color: #e5fff2;
}

.onekey-chain-select:focus {
  border-color: rgba(65, 255, 155, 0.6);
  box-shadow: 0 0 10px rgba(65, 255, 155, 0.3);
}

.onekey-wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #41ff9b;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(65, 255, 155, 0.2);
  word-break: break-all;
}

.onekey-balance-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(65, 255, 155, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
}

.onekey-balance-section .balance-usdt,
.onekey-balance-section .balance-eth {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #41ff9b;
  font-size: 0.875rem;
}

.onekey-copy-address-btn {
  background: rgba(65, 255, 155, 0.15);
  border: 1px solid rgba(65, 255, 155, 0.3);
  color: #41ff9b;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.onekey-copy-address-btn:hover {
  background: rgba(65, 255, 155, 0.25);
  border-color: rgba(65, 255, 155, 0.5);
}

/* OneKey Info Widget Styles */
.onekey-info-card {
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 217, 255, 0.1);
}

.onekey-info-card .card-header {
  background: rgba(0, 217, 255, 0.1);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  color: #00d9ff;
}

.onekey-info-content {
  font-size: 0.875rem;
  line-height: 1.6;
}

.onekey-info-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.onekey-info-content li {
  margin-bottom: 0.5rem;
}

.onekey-info-content a {
  color: #00d9ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
  transition: all 0.2s ease;
}

.onekey-info-content a:hover {
  color: #41ff9b;
  border-bottom-color: rgba(65, 255, 155, 0.6);
}

/* OneKey Full Interface Styles */
.onekey-full-card {
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 217, 255, 0.1);
}

.onekey-full-card .card-header {
  background: rgba(0, 217, 255, 0.1);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  color: #00d9ff;
}

.onekey-connection-buttons .btn-group {
  display: flex;
  gap: 0.5rem;
}

.onekey-connection-buttons .btn {
  flex: 1;
}

.onekey-device-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
}

.onekey-device-info .device-name {
  font-weight: 600;
  color: #00d9ff;
  margin-bottom: 0.25rem;
}

.onekey-device-info .device-id {
  font-family: 'Courier New', monospace;
  color: rgba(0, 217, 255, 0.6);
}

.onekey-connection-types .badge {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.onekey-connection-types .badge.active {
  background: rgba(65, 255, 155, 0.3) !important;
  border: 1px solid rgba(65, 255, 155, 0.6);
  color: #41ff9b;
  box-shadow: 0 0 10px rgba(65, 255, 155, 0.3);
}

.onekey-balance-display {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(65, 255, 155, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.onekey-balance-value {
  font-family: 'Courier New', monospace;
  color: #41ff9b;
  text-shadow: 0 0 10px rgba(65, 255, 155, 0.5);
}

.onekey-error-message {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.onekey-device-notification {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.onekey-actions .onekey-disconnect {
  margin-top: 0.5rem;
}

.onekey-refresh-devices {
  padding: 0.25rem 0.5rem;
}

.onekey-refresh-devices:hover {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* OneKey Full Interface Container - Verbessertes Design */
.onekey-full-interface-container {
  background: linear-gradient(135deg, rgba(10, 14, 32, 0.98) 0%, rgba(15, 20, 42, 0.95) 100%);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 217, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.onekey-full-interface-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: onekeyGlow 8s ease-in-out infinite;
}

@keyframes onekeyGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Header */
.onekey-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.onekey-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(65, 255, 155, 0.2));
  border: 2px solid rgba(0, 217, 255, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #00d9ff;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
  animation: onekeyLogoPulse 3s ease-in-out infinite;
}

@keyframes onekeyLogoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5); }
}

.onekey-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d9ff 0%, #41ff9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.onekey-subtitle {
  color: rgba(229, 255, 242, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* Status Card */
.onekey-status-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onekey-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.onekey-status-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(229, 255, 242, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.onekey-status-content {
  display: flex;
  align-items: center;
}

.onekey-connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.onekey-connection-status i {
  font-size: 0.75rem;
  animation: onekeyStatusPulse 2s ease-in-out infinite;
}

.onekey-connection-status.status-disconnected {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.onekey-connection-status.status-connected {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.onekey-connection-status.status-connecting {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.3);
}

@keyframes onekeyStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Device Card */
.onekey-device-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onekey-device-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #00d9ff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.onekey-device-content .device-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d9ff;
  margin-bottom: 0.25rem;
}

.onekey-device-content .device-id {
  font-family: 'Courier New', monospace;
  color: rgba(0, 217, 255, 0.6);
  font-size: 0.85rem;
}

/* Connection Grid */
.onekey-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.onekey-connect-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: #e5fff2;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

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

.onekey-connect-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 217, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.onekey-connect-btn.onekey-connect-extension:hover {
  border-color: rgba(0, 122, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}

.onekey-connect-btn.onekey-connect-hardware:hover {
  border-color: rgba(52, 199, 89, 0.6);
  box-shadow: 0 10px 30px rgba(52, 199, 89, 0.2);
}

.onekey-btn-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(65, 255, 155, 0.2));
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00d9ff;
  flex-shrink: 0;
}

.onekey-connect-btn.onekey-connect-extension .onekey-btn-icon {
  color: #007aff;
  border-color: rgba(0, 122, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.1));
}

.onekey-connect-btn.onekey-connect-hardware .onekey-btn-icon {
  color: #34c759;
  border-color: rgba(52, 199, 89, 0.3);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(52, 199, 89, 0.1));
}

.onekey-btn-content {
  flex: 1;
}

.onekey-btn-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5fff2;
  margin-bottom: 0.25rem;
}

.onekey-btn-subtitle {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
}

.onekey-btn-arrow {
  font-size: 1.25rem;
  color: rgba(229, 255, 242, 0.4);
  transition: all 0.3s ease;
}

.onekey-connect-btn:hover .onekey-btn-arrow {
  color: #00d9ff;
  transform: translateX(4px);
}

/* Chain Card */
.onekey-chain-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onekey-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #e5fff2;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.onekey-label i {
  color: #00d9ff;
}

.onekey-chain-card .form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: #e5fff2;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.onekey-chain-card .form-select:focus {
  border-color: rgba(0, 217, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  outline: none;
}

/* Wallet Card */
.onekey-wallet-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(65, 255, 155, 0.3);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onekey-wallet-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #41ff9b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.onekey-wallet-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.onekey-address-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(65, 255, 155, 0.1);
}

.onekey-label-small {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(229, 255, 242, 0.7);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.onekey-address-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.onekey-address-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #41ff9b;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(65, 255, 155, 0.2);
  word-break: break-all;
}

.onekey-balance-item {
  padding-top: 0.5rem;
}

.onekey-balance-value-large {
  font-size: 2rem;
  font-weight: 800;
  color: #41ff9b;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px rgba(65, 255, 155, 0.5);
  letter-spacing: 0.05em;
}

/* Connection Dots */
.onekey-connection-dots {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.connection-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 80px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.connection-dot:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 217, 255, 0.4);
  transform: translateY(-2px);
}

.connection-dot.active {
  background: rgba(65, 255, 155, 0.15);
  border-color: rgba(65, 255, 155, 0.5);
  box-shadow: 0 0 20px rgba(65, 255, 155, 0.3);
}

.connection-dot i {
  font-size: 1.5rem;
  color: rgba(229, 255, 242, 0.6);
}

.connection-dot.active i {
  color: #41ff9b;
}

.connection-dot span {
  font-size: 0.75rem;
  color: rgba(229, 255, 242, 0.7);
  font-weight: 600;
}

.connection-dot.active span {
  color: #41ff9b;
}

/* Template Preview Modal */
.onekey-template-modal-content {
  background: rgba(10, 14, 32, 0.98);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: #e5fff2;
}

.onekey-template-modal-content .modal-header {
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  background: rgba(0, 217, 255, 0.1);
}

.onekey-template-modal-content .modal-title {
  color: #00d9ff;
  font-weight: 700;
}

.onekey-template-modal-content .btn-close {
  filter: invert(1);
}

.onekey-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.onekey-template-item {
  cursor: pointer;
}

.onekey-template-preview-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.onekey-template-preview-card:hover {
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.onekey-template-preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.onekey-template-preview-header i {
  font-size: 1.5rem;
  color: #00d9ff;
}

.onekey-template-preview-header h6 {
  margin: 0;
  color: #e5fff2;
  font-weight: 700;
  font-size: 1.1rem;
}

.onekey-template-preview-body {
  flex: 1;
  margin-bottom: 1rem;
}

.onekey-template-description {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.onekey-template-preview-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

/* Template Preview Miniatures */
.template-preview-mini {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  min-height: 200px;
  font-size: 0.7rem;
}

.preview-header {
  font-weight: 700;
  color: #00d9ff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.preview-status {
  color: #34c759;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.preview-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.preview-btn {
  flex: 1;
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.7rem;
  color: #00d9ff;
}

.preview-chain,
.preview-address,
.preview-balance {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: rgba(229, 255, 242, 0.7);
}

.preview-balance {
  color: #41ff9b;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* Compact Template Preview */
.template-preview-mini.compact {
  padding: 0.75rem;
  min-height: 150px;
}

.preview-header-small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00d9ff;
  margin-bottom: 0.5rem;
}

.preview-status-small {
  color: #34c759;
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
}

.preview-buttons-small {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.preview-btn-small {
  flex: 1;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 4px;
  padding: 0.25rem;
  text-align: center;
  font-size: 0.6rem;
  color: #00d9ff;
}

.preview-info-small {
  font-size: 0.65rem;
  color: #41ff9b;
  margin-top: 0.5rem;
}

/* Modern Template Preview */
.template-preview-mini.modern {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-glass {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  color: #00d9ff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.preview-glow {
  color: #41ff9b;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(65, 255, 155, 0.5);
}

.preview-buttons-glass {
  margin-bottom: 0.75rem;
}

.preview-btn-glass {
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
  color: #00d9ff;
  font-size: 0.7rem;
}

.preview-balance-glow {
  color: #41ff9b;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(65, 255, 155, 0.5);
}

/* Minimal Template Preview */
.template-preview-mini.minimal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-minimal-title {
  font-weight: 700;
  color: #e5fff2;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.preview-minimal-btn {
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  color: #00d9ff;
  margin-bottom: 1rem;
  font-size: 0.7rem;
}

.preview-minimal-info {
  color: rgba(229, 255, 242, 0.5);
  font-size: 0.65rem;
  text-align: center;
}

/* Dashboard Template Preview */
.template-preview-mini.dashboard {
  background: rgba(0, 0, 0, 0.4);
}

.preview-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.preview-grid-item {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(229, 255, 242, 0.7);
}

/* Wallet Template Management */
.onekey-template-management {
  margin-top: 2rem;
}

.onekey-template-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onekey-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.onekey-template-header > span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d9ff;
  display: flex;
  align-items: center;
}

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

.onekey-template-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.onekey-template-list::-webkit-scrollbar {
  width: 6px;
}

.onekey-template-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.onekey-template-list::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.3);
  border-radius: 3px;
}

.onekey-template-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 217, 255, 0.5);
}

.onekey-template-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(229, 255, 242, 0.5);
}

.onekey-template-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.onekey-template-empty p {
  margin: 0.5rem 0;
  font-weight: 600;
}

.onekey-template-empty small {
  font-size: 0.85rem;
  opacity: 0.7;
}

.onekey-template-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.onekey-template-item:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 217, 255, 0.4);
  transform: translateX(4px);
}

.onekey-template-item.active {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.onekey-template-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.onekey-template-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.onekey-template-item-info {
  flex: 1;
}

.onekey-template-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e5fff2;
  margin-bottom: 0.25rem;
}

.onekey-template-item-type {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
}

.onekey-template-item-body {
  margin-bottom: 0.75rem;
}

.onekey-template-item-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(229, 255, 242, 0.5);
}

.onekey-template-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.onekey-template-item-meta i {
  font-size: 0.75rem;
}

.onekey-template-item-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.onekey-template-item-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

/* Template Form Styles */
.onekey-template-modal-content .form-label {
  color: #e5fff2;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.onekey-template-modal-content .form-control,
.onekey-template-modal-content .form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: #e5fff2;
  border-radius: 8px;
}

.onekey-template-modal-content .form-control:focus,
.onekey-template-modal-content .form-select:focus {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 217, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
  color: #e5fff2;
}

.onekey-template-modal-content .form-control::placeholder {
  color: rgba(229, 255, 242, 0.4);
}

.onekey-template-modal-content .form-text {
  color: rgba(229, 255, 242, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .onekey-full-interface-container {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .onekey-connection-grid {
    grid-template-columns: 1fr;
  }
  
  .onekey-template-grid {
    grid-template-columns: 1fr;
  }
  
  .onekey-template-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .onekey-template-actions {
    width: 100%;
  }
  
  .onekey-template-actions .btn {
    flex: 1;
  }
  
  .onekey-template-item-header {
    flex-wrap: wrap;
  }
}

/* Advanced Wallet Interface */
.onekey-advanced-wallet {
  margin-top: 2rem;
}

.onekey-view-switcher {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.onekey-view-switcher .btn-group .btn {
  border-color: rgba(0, 217, 255, 0.3);
  color: rgba(229, 255, 242, 0.7);
}

.onekey-view-switcher .btn-group .btn.active {
  background: rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.6);
  color: #00d9ff;
}

/* Portfolio Summary */
.onekey-portfolio-summary {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(65, 255, 155, 0.1) 100%);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.portfolio-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #00d9ff;
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-total {
  text-align: center;
}

.portfolio-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #41ff9b;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px rgba(65, 255, 155, 0.5);
  margin-bottom: 0.5rem;
}

.portfolio-change {
  font-size: 1rem;
  color: rgba(229, 255, 242, 0.7);
}

.portfolio-chains {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-chain-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Wallet Grid View */
.onekey-wallet-grid-view {
  margin-top: 2rem;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wallet-grid-item {
  cursor: pointer;
}

.wallet-grid-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wallet-grid-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-grid-card:hover::before {
  opacity: 1;
}

.wallet-grid-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.wallet-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid;
}

.wallet-card-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.wallet-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5fff2;
  margin-bottom: 0.5rem;
}

.wallet-address {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
}

.wallet-balance {
  margin-top: 1rem;
}

.balance-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #41ff9b;
  margin-bottom: 0.25rem;
}

.balance-native {
  font-size: 0.9rem;
  color: rgba(229, 255, 242, 0.7);
}

.wallet-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  position: relative;
  z-index: 1;
}

.wallet-tokens {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.token-badge {
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #00d9ff;
  font-weight: 600;
}

.wallet-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(229, 255, 242, 0.5);
}

.wallet-empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Wallet List View */
.onekey-wallet-list-view {
  margin-top: 2rem;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wallet-list-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wallet-list-item:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 217, 255, 0.4);
  transform: translateX(4px);
}

.wallet-list-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid;
  flex-shrink: 0;
}

.wallet-list-info {
  flex: 1;
}

.wallet-list-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e5fff2;
  margin-bottom: 0.25rem;
}

.wallet-list-address {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
  font-family: 'Courier New', monospace;
}

.wallet-list-balance {
  text-align: right;
}

.balance-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #41ff9b;
  margin-bottom: 0.25rem;
}

.balance-sub {
  font-size: 0.8rem;
  color: rgba(229, 255, 242, 0.6);
}

/* 3D View */
.onekey-wallet-3d-view {
  margin-top: 2rem;
}

.wallet-3d-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wallet-3d-canvas {
  max-width: 100%;
  border-radius: 12px;
}

.wallet-3d-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* Portfolio Analytics View */
.onekey-portfolio-view {
  margin-top: 2rem;
}

.portfolio-analytics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.analytics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.analytics-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.analytics-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.analytics-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.analytics-content {
  flex: 1;
}

.analytics-label {
  font-size: 0.85rem;
  color: rgba(229, 255, 242, 0.6);
  margin-bottom: 0.5rem;
}

.analytics-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e5fff2;
}

.portfolio-chart-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

#portfolio-chart {
  width: 100%;
  height: 200px;
}

.portfolio-tokens {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.portfolio-tokens h5 {
  color: #00d9ff;
  margin-bottom: 1rem;
}

#portfolio-tokens-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-token-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.1);
}

.token-symbol {
  font-weight: 700;
  color: #00d9ff;
  font-size: 1rem;
}

.token-amount {
  color: rgba(229, 255, 242, 0.7);
  font-family: 'Courier New', monospace;
}

.token-value {
  font-weight: 700;
  color: #41ff9b;
}

/* Quick Actions */
.onekey-quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #e5fff2;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.quick-action-icon.send {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-icon.receive {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-action-icon.swap {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-action-icon.stake {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.quick-action-icon.defi {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.quick-action-btn span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Transaction History */
.onekey-transaction-history {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.transaction-header h5 {
  color: #00d9ff;
  margin: 0;
  display: flex;
  align-items: center;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.transaction-list::-webkit-scrollbar {
  width: 6px;
}

.transaction-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.3);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-row {
    grid-template-columns: 1fr;
  }
  
  .onekey-quick-actions {
    flex-direction: column;
  }
  
  .quick-action-btn {
    width: 100%;
  }
}

