/* Atlas AI — Atlas 2100 Design System */
/* FOUC Prevention — onload handler on <link> reveals page; this is the fallback */
html { visibility: visible !important; }
/* Global Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-panel: rgba(18, 18, 18, 0.8);
  --bg-panel-solid: #111111;
  --bg-elevated: rgba(24, 24, 24, 0.9);
  --bg-input: rgba(28, 28, 28, 0.95);
  --bg-hover: rgba(40, 40, 40, 0.6);
  --bg-active: rgba(50, 50, 50, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(255, 255, 255, 0.25);
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-disabled: #444444;
  --accent-cyan: #00e5ff;
  --accent-rgb: 0, 229, 255;
  --accent-blue: #4d7cff;
  --accent-purple: #9c5cff;
  --accent-magenta: #ff2ecb;
  --accent-pink: #ff6b9d;
  --success: #00e676;
  --warning: #ffab40;
  --error: #ff5252;
  --info: #40c4ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-panel: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.7);
  --shadow-modal: 0 16px 48px rgba(0,0,0,0.8);
  --anim-fast: 120ms;
  --anim-normal: 200ms;
  --anim-slow: 350ms;
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 52px;
}

html, body {
  height: 100%;
  background: #000000;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(180,200,255,0.7), transparent),
    radial-gradient(2px 2px at 25% 35%, rgba(160,190,255,0.75), transparent),
    radial-gradient(2px 2px at 48% 55%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 55% 20%, rgba(160,200,255,0.6), transparent),
    radial-gradient(2px 2px at 70% 50%, rgba(180,220,255,0.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255,255,255,0.65), transparent),
    radial-gradient(2px 2px at 92% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 42% 18%, rgba(160,190,255,0.65), transparent),
    radial-gradient(1.5px 1.5px at 64% 28%, rgba(255,255,255,0.7), transparent);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color var(--anim-fast); }
a:hover { color: #33ecff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Hidden nav/footer - shell replaces them */
#main-nav, #app-footer { display: none !important; }

#app-content {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* ===== APP SHELL ===== */
.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.shell-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: #000000;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  transition: width var(--anim-slow) cubic-bezier(0.4,0,0.2,1),
              min-width var(--anim-slow) cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  z-index: 100;
  contain: layout style;
}

.sidebar-collapsed .shell-sidebar {
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
}

.shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.shell-topbar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.shell-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: transparent;
}
.shell-content.chat-shell-content {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-mobile-menu-btn {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35), 0 0 4px rgba(var(--accent-rgb), 0.2);
  animation: menu-btn-pulse 2s ease-in-out infinite;
}
@keyframes menu-btn-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35), 0 0 4px rgba(var(--accent-rgb), 0.2); border-color: var(--accent-cyan); }
  50% { box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.6), 0 0 8px rgba(var(--accent-rgb), 0.4); border-color: rgba(var(--accent-rgb), 0.8); }
}
.chat-mobile-menu-btn:hover {
  background: rgba(var(--accent-rgb), 0.22);
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.7), 0 0 10px rgba(var(--accent-rgb), 0.5);
  border-color: #fff;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 52px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
}
.logo-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 20px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  border-radius: var(--radius-sm);
  transition: all var(--anim-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.sidebar-collapse-btn:hover { color: var(--text-primary); }

.sidebar-collapsed .logo-text { display: none; }
.sidebar-collapsed .sidebar-profile-info { display: none; }
.sidebar-collapsed .nav-label { display: none; }
.sidebar-collapsed .connection-label { display: none; }
.sidebar-collapsed .sidebar-section { display: none; }
.sidebar-collapsed .sidebar-header {
  flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px;
}
.sidebar-collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}
.sidebar-collapsed .sidebar-logo { justify-content: center; }
.sidebar-collapsed .sidebar-collapsed-icons { display: flex; }
.sidebar-collapsed .sidebar-nav { padding: 4px 6px; gap: 2px; }
.sidebar-collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
}
.sidebar-collapsed .sidebar-nav-item .nav-icon {
  width: 20px;
  height: 20px;
}

.sidebar-collapsed-icons {
  display: none; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.collapsed-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.collapsed-icon-btn:hover {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
}

.collapsed-popup {
  width: 280px; max-height: 400px; z-index: 1000;
  background: rgba(10,10,14,0.95);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.12), 0 0 40px rgba(124,58,237,0.08), 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: popupFadeIn 0.2s ease-out;
}
@keyframes popupFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.collapsed-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(var(--accent-rgb),0.12);
}
.collapsed-popup-title {
  font-size: 13px; font-weight: 600; color: var(--accent-cyan);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.collapsed-popup-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1;
  transition: color 0.2s;
}
.collapsed-popup-close:hover { color: var(--text-primary); }
.collapsed-popup-body {
  padding: 8px; max-height: 340px; overflow-y: auto;
}
.collapsed-popup-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; color: var(--text-secondary);
  text-decoration: none; font-size: 13px; transition: all 0.15s;
  cursor: pointer;
}
.collapsed-popup-item:hover {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
}
.popup-item-icon {
  display: flex; align-items: center; color: var(--text-muted); flex-shrink: 0;
}
.collapsed-popup-empty, .collapsed-popup-loading {
  padding: 20px 12px; text-align: center; color: var(--text-muted); font-size: 13px;
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: background var(--anim-fast), color var(--anim-fast);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.sidebar-nav-item.active .nav-icon { color: #ffffff; }

.nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.sidebar-nav-item.active .nav-icon { color: #ffffff; }
.sidebar-nav-item:hover .nav-icon { color: var(--text-primary); }

/* Sidebar Collapsible Sections */
.sidebar-section {
  padding: 0 10px;
}
.sidebar-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--anim-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-section-toggle:hover { color: var(--text-secondary); }
.section-toggle-text { user-select: none; }
.section-chevron {
  transition: transform var(--anim-normal);
  opacity: 0.5;
}
.section-chevron.open { transform: rotate(0deg); }
.section-chevron:not(.open) { transform: rotate(-90deg); }
.sidebar-section-body {
  overflow: hidden;
  transition: max-height var(--anim-slow);
  max-height: 500px;
}
.sidebar-section-body.collapsed {
  max-height: 0;
  overflow: hidden;
}
.sidebar-section-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: background var(--anim-fast), color var(--anim-fast);
}
.sidebar-section-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.section-item-icon { color: var(--text-muted); font-size: 14px; }

.sidebar-connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: background var(--anim-fast), color var(--anim-fast);
  cursor: pointer;
  text-decoration: none;
}
.sidebar-connection-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.connection-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.connection-logo svg {
  width: 16px;
  height: 16px;
}
.connection-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coming-soon-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.coming-soon-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.coming-soon-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}
.coming-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.coming-soon-icon svg {
  width: 22px;
  height: 22px;
}
.coming-soon-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.coming-soon-text strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}
.coming-soon-text span {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.coming-soon-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
  transition: color var(--anim-fast);
}
.coming-soon-close:hover { color: var(--text-primary); }

/* Conversation List in Sidebar */
.conversation-list {
  padding: 0;
  overflow-y: auto;
  max-height: 300px;
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
  contain: layout style;
}
.conversation-list .empty-list {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-disabled);
}

.conversation-item {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background var(--anim-fast), color var(--anim-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.conversation-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.conversation-item.active { background: rgba(255,255,255,0.08); color: #ffffff; }

.conv-title-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.conv-title {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-menu-btn {
  background: none; border: none; color: var(--text-disabled); cursor: pointer;
  padding: 2px; border-radius: 4px; opacity: 0; transition: all var(--anim-fast);
  display: flex; align-items: center;
}
.conversation-item:hover .conv-menu-btn { opacity: 1; }
.conv-menu-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.conv-date { font-size: 11px; color: var(--text-disabled); display: none; }

.conv-swipe-wrapper {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
}
.conv-swipe-content {
  position: relative; z-index: 1; transition: transform 0.25s ease;
  background: #000;
}
.conv-swipe-actions {
  position: absolute; right: 0; top: 0; bottom: 0; display: none; align-items: stretch; z-index: 0;
}
.conv-swipe-wrapper.swiping .conv-swipe-actions,
.conv-swipe-wrapper.show-actions .conv-swipe-actions { display: flex; }
.conv-swipe-delete {
  display: flex; align-items: center; justify-content: center;
  width: 64px; background: rgba(239, 68, 68, 0.9); color: #fff; font-size: 11px; font-weight: 600;
  border: none; cursor: pointer; padding: 0; letter-spacing: 0.02em;
}
.conv-swipe-content.swiped { transform: translateX(-64px); }

.conv-context-menu {
  position: fixed; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 4px; z-index: 9999;
  box-shadow: var(--shadow-elevated);
}
.conv-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: none; border: none;
  color: var(--text-secondary); font-size: 13px; font-family: inherit;
  cursor: pointer; border-radius: var(--radius-sm); width: 100%;
  transition: all var(--anim-fast);
}
.conv-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.conv-menu-item.danger:hover { background: rgba(255,60,60,0.1); color: var(--error); }

/* Sidebar Footer / Profile */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  margin-top: auto;
}

.sidebar-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--anim-fast);
  text-align: left;
  overflow: hidden;
}
.sidebar-profile-btn:hover { background: var(--bg-hover); }

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-avatar.has-avatar { background: none; }
.sidebar-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.avatar-letter {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sidebar-profile-info {
  min-width: 0;
  overflow: hidden;
}

.sidebar-profile-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-plan {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== TOPBAR ===== */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35), 0 0 4px rgba(var(--accent-rgb), 0.2);
  animation: menu-btn-pulse 2s ease-in-out infinite;
}
.topbar-menu-btn:hover {
  background: rgba(var(--accent-rgb), 0.22);
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.7), 0 0 10px rgba(var(--accent-rgb), 0.5);
  border-color: #fff;
}
.topbar-menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-user-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
  flex-shrink: 0;
}
.topbar-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
}
.topbar-sep {
  color: rgba(232, 236, 244, 0.2);
  font-size: 12px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0,230,118,0.4);
}

.topbar-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,82,82,0.08);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-md);
  color: var(--error);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-fast);
  white-space: nowrap;
}
.topbar-logout-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-logout-btn:hover {
  background: rgba(255,82,82,0.15);
  border-color: rgba(255,82,82,0.4);
  box-shadow: 0 0 12px rgba(255,82,82,0.1);
}

/* ===== PROFILE MENU ===== */
.profile-menu {
  position: fixed;
  bottom: 64px;
  left: 12px;
  width: 260px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: all var(--anim-normal) cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.profile-menu.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.profile-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.profile-menu-info { min-width: 0; }
.profile-menu-name { font-weight: 600; font-size: 14px; }
.profile-menu-email { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

.profile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--anim-fast);
  text-align: left;
  font-family: inherit;
}
.profile-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.profile-menu-item-icon { flex-shrink: 0; display: flex; color: var(--text-muted); }
.profile-menu-item:hover .profile-menu-item-icon { color: var(--accent-cyan); }
.profile-menu-item-label { flex: 1; }
.profile-menu-item-arrow { color: var(--text-disabled); }
.profile-menu-logout { color: var(--error); }
.profile-menu-logout:hover { background: rgba(255,82,82,0.1); }
.profile-menu-logout .profile-menu-item-icon { color: var(--error); }

/* ===== SETTINGS MODAL ===== */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--anim-normal);
}
.settings-overlay.visible { opacity: 1; }

.settings-modal {
  width: 720px;
  max-width: 90vw;
  height: 520px;
  max-height: 80vh;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--anim-slow) cubic-bezier(0.34,1.56,0.64,1);
}
.settings-overlay.visible .settings-modal {
  transform: scale(1) translateY(0);
}

.settings-sidebar {
  width: 200px;
  min-width: 200px;
  background: #141414;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.settings-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
}
.settings-sidebar-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--anim-fast);
}
.settings-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.settings-nav {
  flex: 1;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--anim-fast);
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}
.settings-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.settings-nav-item.active { background: var(--bg-active); color: var(--accent-cyan); }
.settings-nav-icon { flex-shrink: 0; display: flex; color: var(--text-muted); }
.settings-nav-item.active .settings-nav-icon { color: var(--accent-cyan); }

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Settings Panel Internals */
.settings-panel-header { margin-bottom: 24px; }
.settings-panel-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.settings-panel-subtitle { font-size: 13px; color: var(--text-muted); }

.settings-section { margin-bottom: 24px; }
.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}
.settings-row:last-child { border-bottom: none; }

.settings-row-info { flex: 1; min-width: 0; }
.settings-row-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary); }
.settings-row-value { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.settings-muted { color: var(--text-muted); }

.settings-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-active);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.settings-row-action {
  padding: 6px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--anim-fast);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.settings-row-action:hover { background: var(--bg-active); color: var(--text-primary); border-color: var(--accent-cyan); }
.settings-row-action:disabled { opacity: 0.4; cursor: not-allowed; }
.settings-row-action.settings-danger { color: var(--error); border-color: rgba(255,82,82,0.3); }
.settings-row-action.settings-danger:hover { background: rgba(255,82,82,0.1); }

.dc-archived-list { max-height: 240px; overflow-y: auto; }
.dc-archived-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.dc-archived-row:last-child { border-bottom: none; }
.dc-archived-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc-archived-title { font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-archived-date { font-size: 11px; color: var(--text-tertiary); }
.dc-archived-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Toggle Switch */
.settings-toggle { cursor: pointer; flex-shrink: 0; }
.settings-toggle-track {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--bg-hover); border: 1px solid var(--border);
  position: relative; transition: all var(--anim-normal);
}
.settings-toggle-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-muted); position: absolute; top: 2px; left: 2px;
  transition: all var(--anim-normal) cubic-bezier(0.34,1.56,0.64,1);
}
.settings-toggle.active .settings-toggle-track { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.settings-toggle.active .settings-toggle-thumb { background: #fff; left: 20px; }

.settings-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; background: rgba(255,171,64,0.08);
  border: 1px solid rgba(255,171,64,0.2); border-radius: var(--radius-md);
  font-size: 12px; color: var(--warning); margin-bottom: 12px;
}
.settings-notice-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.settings-color-dots { display: flex; gap: 8px; }
.color-dot {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all var(--anim-fast);
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: var(--text-primary); box-shadow: 0 0 8px rgba(0,0,0,0.3); }

.settings-plan-card {
  padding: 16px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px;
}
.settings-plan-tier { font-size: 18px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 8px; }
.settings-plan-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
.settings-badge-active { color: var(--success); background: rgba(0,230,118,0.1); }

.settings-input {
  width: 100%; padding: 8px 12px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color var(--anim-fast); box-sizing: border-box;
}
.settings-input:focus { border-color: var(--accent-cyan); }
.settings-textarea {
  width: 100%; padding: 8px 12px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; resize: vertical; min-height: 60px; transition: border-color var(--anim-fast); box-sizing: border-box;
}
.settings-textarea:focus { border-color: var(--accent-cyan); }
.settings-select {
  padding: 6px 10px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; cursor: pointer; min-width: 100px;
}
.settings-select:focus { border-color: var(--accent-cyan); }
.settings-color-dots { display: flex; gap: 8px; align-items: center; }
.color-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent;
  transition: border-color var(--anim-fast), transform var(--anim-fast); cursor: pointer;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.3); }
.settings-row-action.settings-muted { color: var(--text-muted); border-color: var(--border); }

/* ===== COSMIC LOGIN PAGE ===== */

#login-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #060a14;
  overflow-x: hidden;
  overflow-y: auto;
}

#login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(1.2px 1.2px at 12% 8%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 15%, rgba(200,220,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 5%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 12%, rgba(180,210,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 82% 7%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 5% 22%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 35%, rgba(200,230,255,0.35) 0%, transparent 100%),
    radial-gradient(1.4px 1.4px at 35% 28%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 55% 32%, rgba(180,200,255,0.4) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 72% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(200,220,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 8% 48%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 22% 55%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 45%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 52%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 78% 48%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 93% 55%, rgba(180,200,255,0.3) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 15% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 72%, rgba(200,220,255,0.4) 0%, transparent 100%),
    radial-gradient(1.4px 1.4px at 50% 65%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 65% 70%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 85% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 3% 82%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 20% 88%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 38% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 58% 90%, rgba(180,200,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 88%, rgba(200,220,255,0.45) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 3% 6%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 10% 18%, rgba(200,220,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 20% 9%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 36% 16%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 44% 24%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 56% 10%, rgba(200,230,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 66% 20%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 78% 14%, rgba(180,200,255,0.3) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 90% 8%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 96% 22%, rgba(200,220,255,0.3) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 8% 44%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 24% 40%, rgba(180,210,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 50% 38%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 62% 44%, rgba(200,230,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 76% 36%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 88% 42%, rgba(180,200,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 4% 62%, rgba(200,220,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 16% 66%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 32% 58%, rgba(180,210,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 48% 66%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 60% 60%, rgba(200,230,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 74% 64%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 92% 58%, rgba(180,200,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 12% 78%, rgba(200,220,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 28% 82%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 40% 76%, rgba(180,210,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 58% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 70% 84%, rgba(200,230,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 84% 76%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 96% 80%, rgba(180,200,255,0.3) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 6% 94%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 22% 96%, rgba(200,220,255,0.3) 0%, transparent 100%),
    radial-gradient(0.6px 0.6px at 50% 94%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 68% 96%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 86% 92%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 22%, rgba(var(--accent-rgb),0.2) 0%, transparent 100%),
    radial-gradient(1.8px 1.8px at 85% 38%, rgba(124,58,237,0.18) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 70%, rgba(var(--accent-rgb),0.18) 0%, transparent 100%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(124,58,237,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 65%, rgba(0,200,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 85%, rgba(124,58,237,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 65% 15%, rgba(255,120,200,0.03) 0%, transparent 60%);
  background-color: #060a14;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.login-bg-img {
  width: 80%;
  min-width: 500px;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  opacity: 0.75;
  mask-image: linear-gradient(to bottom, black 30%, transparent 92%), linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 92%), linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.login-logo-frame {
  width: 100%;
  max-width: 648px;
  margin: 0 auto 24px;
  position: relative;
  display: inline-block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  animation: none;
}

.login-logo-frame::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 2px;
  border: 2px solid rgba(var(--accent-rgb),0.6);
  animation: neon-pulse-opacity 4s ease-in-out infinite;
  pointer-events: none;
}

.login-logo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.login-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  padding: 0 28px 48px;
  margin: 0 auto;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-error {
  padding: 10px 14px;
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 12px;
  color: #ff5252;
  font-size: 13px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cosmic-field {
  position: relative;
}

.cosmic-input {
  width: 100%;
  padding: 18px 16px 8px;
  background: rgba(6, 10, 22, 0.55);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 12px;
  color: #e8ecf4;
  font-size: 17px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cosmic-input:focus {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.06), 0 0 20px rgba(var(--accent-rgb), 0.05);
  background: rgba(6, 10, 22, 0.7);
}

.cosmic-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(160, 175, 210, 0.5);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  font-weight: 500;
}

.cosmic-input:focus ~ .cosmic-label,
.cosmic-input:not(:placeholder-shown) ~ .cosmic-label {
  top: 8px;
  transform: translateY(0);
  font-size: 9px;
  color: rgba(var(--accent-rgb), 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cosmic-field.focused .cosmic-input {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.login-submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.85) 0%, rgba(124,58,237,0.85) 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  margin-top: 4px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.login-submit-btn:hover {
  box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.3), 0 4px 20px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.login-submit-btn:active { transform: translateY(0); }

.login-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: rgba(210, 220, 245, 0.85);
}

.login-toggle a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.login-toggle a:hover { color: #7cf8ff; }

.login-sso-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.login-sso-row .sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 0;
  background: rgba(6, 10, 22, 0.5);
  border: 1px solid rgba(100, 120, 180, 0.15);
  border-radius: 50%;
  color: rgba(200, 210, 240, 0.8);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 12px rgba(var(--accent-rgb),0.08),
    0 0 24px rgba(var(--accent-rgb),0.04),
    inset 0 0 8px rgba(var(--accent-rgb),0.04);
  position: relative;
}

.login-sso-row .sso-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb),0.2), rgba(124,58,237,0.15), rgba(var(--accent-rgb),0.05), rgba(124,58,237,0.2), rgba(var(--accent-rgb),0.2));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  opacity: 0.6;
  transition: opacity 0.35s;
  animation: sso-ring-spin 6s linear infinite;
  pointer-events: none;
}

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

.login-sso-row .sso-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 0 18px rgba(var(--accent-rgb),0.2),
    0 0 40px rgba(var(--accent-rgb),0.1),
    0 0 60px rgba(124,58,237,0.06),
    inset 0 0 14px rgba(var(--accent-rgb),0.08);
  transform: translateY(-3px) scale(1.05);
}

.login-sso-row .sso-btn:hover::after {
  opacity: 1;
}

.login-sso-row .sso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.login-sso-row .sso-icon svg {
  width: 40px;
  height: 40px;
}

.login-sso-row .sso-label {
  display: none;
}

.login-footer-legal {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(210, 220, 245, 0.75);
}

.login-footer-legal a {
  color: rgba(var(--accent-rgb), 0.8);
  text-decoration: none;
  font-weight: 600;
}

.login-footer-legal a:hover { color: #7cf8ff; }

@media (max-width: 768px) {
  .login-layer { margin-top: 6vh; max-width: 100%; padding: 0 20px 32px; }
  .login-logo-frame { max-width: 504px; margin-bottom: 18px; padding: 20px 24px; }
  .login-form { gap: 10px; }
  .cosmic-input { padding: 12px 12px 5px; font-size: 14px; border-radius: 10px; }
  .cosmic-label { left: 12px; font-size: 13px; }
  .cosmic-input:focus ~ .cosmic-label,
  .cosmic-input:not(:placeholder-shown) ~ .cosmic-label { top: 6px; font-size: 8px; }
  .login-submit-btn { padding: 12px; font-size: 14px; border-radius: 10px; }
  .login-toggle { margin-top: 14px; font-size: 14px; }
  .login-sso-row .sso-btn { width: 72px; height: 72px; }
  .login-sso-row .sso-icon svg { width: 34px; height: 34px; }
  .login-footer-legal { font-size: 13px; }
}

@media (max-width: 390px) {
  .login-layer { margin-top: 4vh; padding: 0 16px 24px; }
  .login-logo-frame { max-width: 408px; margin-bottom: 14px; padding: 14px 18px; }
  .login-form { gap: 8px; }
  .cosmic-input { padding: 11px 11px 4px; font-size: 13px; }
  .cosmic-label { left: 11px; font-size: 12px; }
  .login-submit-btn { padding: 11px; font-size: 13px; }
  .login-toggle { margin-top: 12px; font-size: 13px; }
  .login-sso-row { gap: 12px; margin-top: 18px; }
  .login-sso-row .sso-btn { width: 64px; height: 64px; }
  .login-sso-row .sso-icon svg { width: 30px; height: 30px; }
  .login-footer-legal { margin-top: 14px; font-size: 12px; }
}

.legal-page {
  position: relative;
  min-height: 100vh;
  background: #060a14;
  color: #e8ecf4;
}

.legal-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 8%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 15%, rgba(200,220,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 5%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 12%, rgba(180,210,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 82% 7%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 5% 22%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 35%, rgba(200,230,255,0.35) 0%, transparent 100%),
    radial-gradient(1.4px 1.4px at 35% 28%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 55% 32%, rgba(180,200,255,0.4) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 72% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(200,220,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 8% 48%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 22% 55%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 45%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 52%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 78% 48%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 93% 55%, rgba(180,200,255,0.3) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 15% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 72%, rgba(200,220,255,0.4) 0%, transparent 100%),
    radial-gradient(1.4px 1.4px at 50% 65%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(0.8px 0.8px at 65% 70%, rgba(180,210,255,0.35) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 85% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 3% 82%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 20% 88%, rgba(200,230,255,0.4) 0%, transparent 100%),
    radial-gradient(0.9px 0.9px at 38% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.1px 1.1px at 58% 90%, rgba(180,200,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 88%, rgba(200,220,255,0.45) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 45% 18%, rgba(var(--accent-rgb),0.25) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 88% 42%, rgba(124,58,237,0.2) 0%, transparent 100%),
    radial-gradient(0.7px 0.7px at 10% 92%, rgba(var(--accent-rgb),0.2) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(124,58,237,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 65%, rgba(0,200,255,0.03) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(124,58,237,0.03) 0%, transparent 60%);
  background-color: #060a14;
}

.legal-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.legal-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e8ecf4 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-updated {
  font-size: 14px;
  color: rgba(var(--accent-rgb), 0.7);
  margin-bottom: 32px;
}

.legal-intro {
  font-size: 16px;
  color: rgba(220, 230, 250, 0.9);
  line-height: 1.8;
  margin-bottom: 36px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #e8ecf4;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: rgba(var(--accent-rgb), 0.85);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 15px;
  color: rgba(220, 230, 250, 0.88);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-content li strong {
  color: #e8ecf4;
}

.legal-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.legal-content a:hover {
  color: #7cf8ff;
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(100, 120, 180, 0.1);
}

.legal-back-link {
  font-size: 15px;
  color: rgba(var(--accent-rgb), 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-back-link:hover {
  color: #7cf8ff;
}

@media (max-width: 480px) {
  .legal-content { padding: 40px 20px 60px; }
  .legal-title { font-size: 28px; }
  .legal-content h2 { font-size: 19px; }
  .legal-content h3 { font-size: 16px; }
}

/* Legacy login compat */
.login-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.login-field input {
  width: 100%; padding: 12px 14px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  transition: all var(--anim-fast); outline: none;
}
.login-trust {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light);
}
.trust-item { font-size: 11px; color: var(--text-disabled); display: flex; align-items: center; gap: 4px; }

/* ===== SHARED WIDGET (billing, etc.) ===== */
.widget {
  background: var(--bg-panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; transition: border-color var(--anim-fast);
}
.widget:hover { border-color: rgba(60,68,140,0.4); }
.widget h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.widget h3 { font-size: 13px; font-weight: 600; margin: 12px 0 8px; color: var(--text-secondary); }
.widget p { font-size: 13px; color: var(--text-secondary); }

/* ===== DASHBOARD ===== */
#dashboard-page { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.dash-title {
  font-size: 28px; font-weight: 800; color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.dash-plan-badge {
  padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.dash-plan-badge.tier-trial { border-color: #50d050; color: #50d050; }
.dash-plan-badge.tier-starter { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.dash-plan-badge.tier-pro {
  border-color: var(--accent-cyan); color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.15);
}
.dash-plan-badge.tier-elite {
  border-color: var(--accent-magenta); color: var(--accent-magenta);
  background: linear-gradient(135deg, rgba(156,92,255,0.1), rgba(255,46,203,0.1));
  box-shadow: 0 0 16px rgba(255,46,203,0.2);
}

.dash-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.dash-stat-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  backdrop-filter: blur(12px);
}
.dash-stat-icon { color: var(--accent-cyan); flex-shrink: 0; }
.dash-stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.dash-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.dash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}

.dash-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; overflow: hidden;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
  transition: all var(--anim-normal); cursor: pointer;
  color: var(--text-primary); text-decoration: none;
  min-height: 160px;
}
.dash-card:hover {
  border-color: rgba(var(--accent-rgb),0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.dash-card-primary { border-color: rgba(var(--accent-rgb),0.2); }
.dash-card-primary:hover { border-color: var(--accent-cyan); box-shadow: 0 0 24px rgba(var(--accent-rgb),0.12); }

.dash-card-glow {
  position: absolute; top: -40px; right: -40px; width: 100px; height: 100px;
  border-radius: 50%; opacity: 0.08; filter: blur(30px);
  transition: opacity var(--anim-normal); pointer-events: none;
}
.dash-card:hover .dash-card-glow { opacity: 0.15; }
.dash-glow-cyan { background: var(--accent-cyan); }
.dash-glow-purple { background: var(--accent-purple); }
.dash-glow-magenta { background: var(--accent-magenta); }
.dash-glow-blue { background: var(--accent-blue); }
.dash-glow-pink { background: var(--accent-pink); }
.dash-glow-green { background: var(--success); }
.dash-glow-orange { background: var(--warning); }

.dash-card-icon {
  color: var(--accent-cyan); margin-bottom: 14px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.1);
}
.dash-card-primary .dash-card-icon { background: rgba(var(--accent-rgb),0.1); border-color: rgba(var(--accent-rgb),0.2); }

.dash-card-body h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary);
}
.dash-card-body p {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

.dash-card-arrow {
  position: absolute; bottom: 16px; right: 16px; color: var(--text-disabled);
  transition: all var(--anim-normal);
}
.dash-card:hover .dash-card-arrow { color: var(--accent-cyan); transform: translateX(3px); }

.dash-card-tier-lock {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--warning);
}

.dash-card-disabled {
  opacity: 0.5; cursor: default; pointer-events: none;
}
.dash-card-disabled .dash-card-tier-lock { color: var(--text-muted); }

.dash-card.dash-locked {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}
.dash-card.dash-locked:hover {
  transform: none; border-color: var(--border);
  box-shadow: none;
}
.dash-card.dash-locked .dash-card-arrow { display: none; }

.dash-panels {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 16px;
}

.dash-panel {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
  backdrop-filter: blur(12px); transition: border-color var(--anim-fast);
}
.dash-panel:hover { border-color: rgba(60,68,140,0.4); }

.dash-panel-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.dash-panel-header h2 {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
}

.dash-panel-body p { font-size: 13px; color: var(--text-secondary); }

.dash-footer-status {
  text-align: center; font-size: 12px; color: var(--text-muted);
  padding: 24px 0 8px; letter-spacing: 0.03em;
}
.dash-footer-status span { font-size: 10px; margin-right: 6px; }

.gallery-filters {
  display: flex;
  gap: 8px;
  padding: 0 32px 24px;
}
.gallery-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--anim-fast);
}
.gallery-filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.gallery-filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
  font-weight: 600;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 32px 32px;
}
.gallery-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.gallery-empty-state h3 {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 16px 0 6px;
  font-weight: 500;
}
.gallery-empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--anim-fast), box-shadow var(--anim-fast);
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 3px;
}
.gallery-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--anim-fast);
}
.gallery-view-btn:hover { color: var(--text-primary); }
.gallery-view-btn.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.gallery-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 80px 20px; color: var(--text-muted); font-size: 14px;
}
.gallery-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--accent-cyan); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gallery-thumb {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; background-repeat: no-repeat;
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-thumb { transform: scale(1.05); }
.gallery-thumb-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gallery-thumb-video video { width: 100%; height: 100%; object-fit: cover; }
.gallery-play-icon {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.6); display: flex; align-items: center;
  justify-content: center; pointer-events: none;
}
.gallery-item-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 24px 12px 10px; opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-delete-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,50,50,0.85); border: none;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, transform 0.15s;
  backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.gallery-item:hover .gallery-delete-btn { opacity: 1; }
.gallery-delete-btn:hover { background: rgba(255,30,30,1); transform: scale(1.1); }
.gallery-delete-btn svg { pointer-events: none; }
.gallery-list-view .gallery-delete-btn {
  position: relative; top: auto; right: auto;
  opacity: 1; margin-left: auto; flex-shrink: 0; align-self: center; margin-right: 12px;
}
.gallery-delete-confirm {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 10001; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.gallery-delete-confirm.visible { opacity: 1; pointer-events: auto; }
.gallery-delete-confirm-box {
  background: #1a1a24; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px; width: 360px; max-width: 90vw;
  text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.gallery-delete-confirm-box h3 {
  margin: 0 0 8px; font-size: 16px; color: var(--text-primary, #f0f0f5);
}
.gallery-delete-confirm-box p {
  margin: 0 0 20px; font-size: 13px; color: var(--text-muted, #888);
}
.gallery-delete-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.gallery-delete-confirm-actions button {
  padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.15s;
}
.gallery-delete-cancel {
  background: rgba(255,255,255,0.06); color: var(--text-primary, #f0f0f5);
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.gallery-delete-cancel:hover { background: rgba(255,255,255,0.1); }
.gallery-delete-do {
  background: #e53935; color: #fff;
}
.gallery-delete-do:hover { background: #c62828; }
.gallery-action-btn.gallery-action-danger {
  background: rgba(255,50,50,0.15); color: #ff4444; border: 1px solid rgba(255,50,50,0.2);
}
.gallery-action-btn.gallery-action-danger:hover { background: rgba(255,50,50,0.3); }
.gallery-item-prompt {
  font-size: 12px; color: rgba(255,255,255,0.85); margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gallery-item-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.5);
}
.gallery-list-view {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.gallery-list-view .gallery-item {
  aspect-ratio: auto; display: flex; height: 80px;
}
.gallery-list-view .gallery-thumb {
  position: relative; width: 80px; min-width: 80px; height: 80px;
}
.gallery-list-view .gallery-thumb-video {
  position: relative; width: 80px; min-width: 80px; height: 80px;
}
.gallery-list-view .gallery-item-overlay {
  position: relative; opacity: 1; background: none;
  padding: 12px; display: flex; flex-direction: column; justify-content: center; flex: 1;
}
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: flex;
  align-items: center; justify-content: center;
}
.gallery-lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.9);
}
.gallery-lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.gallery-lightbox-close {
  position: absolute; top: -40px; right: 0; background: none;
  border: none; color: white; font-size: 32px; cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; z-index: 1;
}
.gallery-lightbox-media img,
.gallery-lightbox-media video {
  max-width: 80vw; max-height: 70vh; border-radius: 8px;
  object-fit: contain;
}
.gallery-lightbox-info {
  text-align: center; color: white;
}
.gallery-lightbox-info h3 {
  font-size: 16px; margin: 0 0 4px; font-weight: 500;
}
.gallery-lightbox-prompt {
  font-size: 13px; color: rgba(255,255,255,0.6); margin: 4px 0;
}
.gallery-lightbox-date {
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.gallery-lightbox-actions {
  display: flex; gap: 12px;
}
.gallery-action-btn {
  padding: 8px 20px; border-radius: 8px; font-size: 13px;
  font-family: inherit; cursor: pointer; text-decoration: none;
  background: var(--accent-cyan); color: #000; border: none; font-weight: 600;
  transition: opacity 0.2s;
}
.gallery-action-btn:hover { opacity: 0.85; }
.gallery-action-secondary {
  background: rgba(255,255,255,0.1); color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.gallery-action-secondary:hover { background: rgba(255,255,255,0.15); }

.dash-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.dash-info-row:last-child { border-bottom: none; }
.dash-info-label { font-size: 13px; color: var(--text-muted); }
.dash-info-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.dash-panel-btn {
  display: inline-block; padding: 8px 16px; margin-top: 12px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--accent-cyan);
  font-size: 13px; font-family: inherit; cursor: pointer;
  transition: all var(--anim-fast); text-decoration: none;
}
.dash-panel-btn:hover { border-color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.06); }
.dash-panel-btn-secondary { color: var(--text-secondary); margin-left: 8px; }
.dash-panel-btn-secondary:hover { border-color: var(--text-secondary); }

.dash-empty-state { font-size: 13px; color: var(--text-disabled); font-style: italic; }

/* ===== SUBSCRIPTION STATUS WIDGET ===== */
.sub-status-rows .dash-info-row {
  padding: 10px 0;
}
.plan-tier-value {
  font-weight: 800;
}
.plan-tier-value.tier-starter { color: var(--text-secondary); }
.plan-tier-value.tier-pro {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(var(--accent-rgb),0.3);
}
.plan-tier-value.tier-elite {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.priority-value { color: var(--warning); }
.tokens-value { color: var(--accent-cyan); font-family: var(--font-mono); letter-spacing: -0.3px; }
.renewal-value { color: var(--text-secondary); font-size: 13px; }

/* ===== CREDIT BALANCE WIDGET ===== */
.credit-balance-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.credit-token-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.credit-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.5px;
}
.credit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.credit-usd-value {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== USAGE HISTORY TABLE ===== */
.usage-empty {
  font-size: 13px;
  color: var(--text-disabled);
  font-style: italic;
  padding: 8px 0;
}
.usage-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.usage-history-table thead th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.usage-history-table tbody td {
  padding: 8px 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.usage-history-table tbody tr:hover {
  background: var(--bg-hover);
}
.usage-timestamp { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.usage-type { }
.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.type-badge.type-text { background: rgba(var(--accent-rgb),0.1); color: var(--accent-cyan); }
.type-badge.type-image { background: rgba(156,92,255,0.1); color: var(--accent-purple); }
.type-badge.type-video { background: rgba(255,46,203,0.1); color: var(--accent-magenta); }
.usage-tokens { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }
.usage-model { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.usage-more {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
  margin-top: 4px;
}

/* ===== TOKEN PURCHASE PACKS (classes from component) ===== */
.pack-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pack-tokens {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}
.pack-price {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.pack-per-token {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.pack-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== PLAN SELECTOR CARDS (classes from component) ===== */
.plan-selector-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--anim-normal);
  text-align: center;
}
.plan-selector-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.08);
}
.plan-selector-card.selected,
.plan-selector-card.current-plan,
.plan-selector-card.current {
  border-color: var(--accent-cyan);
  background: rgba(var(--accent-rgb),0.05);
}
.plan-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-cyan);
  color: #000;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.plan-badge.plan-badge-trial {
  background: rgba(0,200,120,0.15);
  color: #00e68a;
}
.plan-card-btn {
  display: inline-block;
  padding: 8px 20px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-fast);
  font-family: inherit;
}
.plan-card-btn:hover {
  box-shadow: 0 0 16px rgba(var(--accent-rgb),0.25);
}

/* ===== PLAN COMPARISON TABLE (classes from component) ===== */
.current-plan-col {
  background: rgba(var(--accent-rgb),0.04);
  font-weight: 600;
  color: var(--accent-cyan);
}
.comparison-label {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== PAYMENT INVOICE (classes from component) ===== */
.payment-invoice-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 12px;
}
.invoice-details-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.invoice-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.invoice-detail-row:last-child { border-bottom: none; }
.invoice-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.invoice-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.invoice-wallet-section {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0;
}
.wallet-address {
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--accent-cyan);
  background: var(--bg-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
  line-height: 1.5;
}
.invoice-network {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-disabled);
  font-size: 11px;
  margin: 12px auto;
}
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 240px;
}
.qr-code-img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: contain;
}
.qr-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.invoice-expiry {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.invoice-expiry.warning {
  color: var(--warning);
  background: rgba(255,171,64,0.06);
  border: 1px solid rgba(255,171,64,0.15);
}
.invoice-expiry.expired {
  color: var(--error);
  background: rgba(255,82,82,0.06);
  border: 1px solid rgba(255,82,82,0.15);
}

/* ===== PAYMENT STATUS (classes from component) ===== */
.payment-status-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 12px;
  border: 1px solid var(--border);
}
.payment-status-panel.status-awaiting,
.payment-status-panel.status-awaiting_payment,
.payment-status-panel.status-pending {
  background: rgba(255,171,64,0.06);
  border-color: rgba(255,171,64,0.2);
}
.payment-status-panel.status-detected,
.payment-status-panel.status-payment_detected,
.payment-status-panel.status-confirming {
  background: rgba(var(--accent-rgb),0.06);
  border-color: rgba(var(--accent-rgb),0.2);
}
.payment-status-panel.status-completed,
.payment-status-panel.status-paid {
  background: rgba(0,230,118,0.06);
  border-color: rgba(0,230,118,0.2);
}
.payment-status-panel.status-failed {
  background: rgba(255,82,82,0.06);
  border-color: rgba(255,82,82,0.2);
}
.payment-status-panel.status-expired {
  background: rgba(255,82,82,0.04);
  border-color: rgba(255,82,82,0.15);
}
.status-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.status-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.status-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 8px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAYMENT SELECTOR (classes from component) ===== */
.crypto-pay-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.crypto-pay-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crypto-pay-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.crypto-type-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.crypto-type-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}
.crypto-type-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(var(--accent-rgb),0.03);
}
.crypto-type-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(var(--accent-rgb),0.06);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.08);
}
.crypto-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .crypto-asset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .crypto-asset-grid { grid-template-columns: 1fr; }
}
.crypto-asset-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  overflow: hidden;
  text-align: left;
}
.crypto-asset-card:hover:not(.disabled) {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
}
.crypto-asset-card.disabled {
  opacity: 0.35; cursor: not-allowed; pointer-events: none;
}
.crypto-pay-notice {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255,165,0,0.08); border: 1px solid rgba(255,165,0,0.2);
  color: #ffb347; font-size: 13px; line-height: 1.5; text-align: center;
}
.crypto-asset-card.selected {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  box-shadow:
    0 0 20px rgba(var(--glow-rgb, 0,229,255), 0.15),
    0 0 40px rgba(var(--glow-rgb, 0,229,255), 0.08),
    inset 0 0 20px rgba(var(--glow-rgb, 0,229,255), 0.04);
}
.crypto-asset-glow {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}
.crypto-asset-card.selected .crypto-asset-glow {
  opacity: 0.25;
}
.crypto-asset-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crypto-asset-icon svg {
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.crypto-asset-card:hover .crypto-asset-icon svg {
  transform: scale(1.08);
}
.crypto-asset-info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crypto-asset-ticker {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.crypto-asset-dash {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}
.crypto-asset-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== MANUAL VERIFICATION FORM ===== */
.manual-verification-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.manual-verification-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.manual-verification-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.verification-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color var(--anim-fast);
}
.verification-textarea:focus {
  border-color: var(--accent-cyan);
}
.verification-submit-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-fast);
  font-family: inherit;
  align-self: flex-start;
}
.verification-submit-btn:hover {
  box-shadow: 0 0 16px rgba(var(--accent-rgb),0.25);
}
.verification-file-input {
  font-size: 12px;
  color: var(--text-secondary);
}
.form-help-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.verification-success-icon {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.age-verification-wrapper {
  display: flex;
  flex-direction: column;
}
.age-verification-wrapper .dash-info-row {
  padding: 10px 0;
}
.verification-section-divider {
  height: 0;
  border-top: 1px solid var(--border-light);
  margin: 12px 0;
}
.verification-section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.verification-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.verification-option-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--anim-fast), box-shadow var(--anim-fast);
}
.verification-option-card:hover {
  border-color: rgba(var(--accent-rgb),0.3);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.05);
}
.verification-option-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.verification-option-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.verification-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin-top: 4px;
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--anim-fast);
  width: 100%;
}
.verification-option-btn:hover {
  background: rgba(var(--accent-rgb),0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(var(--accent-rgb),0.1);
}
.verification-pending-msg,
.verification-verified-msg {
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  border-radius: var(--radius-md);
}
.verification-pending-msg {
  color: var(--warning);
  background: rgba(255,183,77,0.06);
  border: 1px solid rgba(255,183,77,0.15);
}
.verification-verified-msg {
  color: var(--success);
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.15);
}
#dashboard-verification-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
#manual-verification-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 600px) {
  .verification-options-grid { grid-template-columns: 1fr; }
  #dashboard-verification-actions { flex-direction: column; }
}

.quick-buy-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.quick-buy-buttons button {
  padding: 6px 12px; background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px;
  cursor: pointer; transition: all var(--anim-fast); font-family: inherit;
}
.quick-buy-buttons button:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-stat-item { padding: 12px 10px; gap: 8px; }
  .dash-stat-value { font-size: 16px; }
  .dash-title { font-size: 22px; }
}

/* ===== BILLING PAGE ===== */
#billing-page { max-width: 960px; margin: 0 auto; }
#billing-page h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
#billing-page .widget { padding: 24px; }
#billing-page .widget h2 { margin-bottom: 16px; }

.purchase-amount-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 120px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color var(--anim-fast);
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent-cyan); }

.auth-btn {
  padding: 10px 20px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none; border-radius: var(--radius-md); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--anim-normal); font-family: inherit; white-space: nowrap;
}
.auth-btn:hover { box-shadow: 0 0 20px rgba(var(--accent-rgb),0.25); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.upgrade-info { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.credit-amount { font-size: 28px; font-weight: 800; color: var(--accent-cyan); }
.credit-usd { font-size: 14px; color: var(--text-muted); }
.credit-usage-bar { width: 100%; height: 6px; background: var(--bg-hover); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.credit-usage-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); border-radius: 3px; transition: width var(--anim-slow); }

.plan-selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.plan-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; cursor: pointer;
  transition: all var(--anim-normal); text-align: center;
}
.plan-card:hover { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(var(--accent-rgb),0.08); }
.plan-card.selected, .plan-card.current-plan { border-color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.05); }
.plan-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.plan-card-price { font-size: 24px; font-weight: 800; color: var(--accent-cyan); margin-bottom: 8px; }
.plan-card-features { list-style: none; font-size: 12px; color: var(--text-secondary); }
.plan-card-features li { padding: 3px 0; }
.plan-card-badge {
  display: inline-block; padding: 2px 8px; background: var(--accent-cyan); color: #000;
  border-radius: var(--radius-sm); font-size: 10px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 8px;
}

.plan-comparison-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.plan-comparison-table th, .plan-comparison-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); text-align: left; }
.plan-comparison-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 11px; }
.plan-comparison-table td { color: var(--text-secondary); }

.payment-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.payment-asset-btn {
  padding: 10px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px;
  font-weight: 600; cursor: pointer; text-align: center; transition: all var(--anim-fast); font-family: inherit;
}
.payment-asset-btn:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
.payment-asset-btn.selected { border-color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.06); color: var(--accent-cyan); }

.invoice-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-top: 12px;
}
.invoice-card p { margin-bottom: 8px; }
.invoice-address {
  font-family: var(--font-mono); font-size: 12px; word-break: break-all;
  background: var(--bg-input); padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}
.copy-address-btn {
  padding: 4px 10px; background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 11px;
  cursor: pointer; margin-top: 6px; font-family: inherit;
}

.token-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.token-pack-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
  cursor: pointer; transition: all var(--anim-fast);
}
.token-pack-card:hover { border-color: var(--accent-cyan); }
.token-pack-card.selected { border-color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.05); box-shadow: 0 0 12px rgba(var(--accent-rgb),0.1); }
.token-pack-name { font-weight: 700; margin-bottom: 4px; }
.token-pack-amount { font-size: 18px; font-weight: 800; color: var(--accent-cyan); }
.token-pack-price { font-size: 12px; color: var(--text-muted); }

.subscription-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px; font-size: 13px;
}
.subscription-card p { margin-bottom: 4px; }

.usage-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.usage-table th { text-align: left; padding: 8px 10px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; }
.usage-table td { padding: 8px 10px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
.usage-type-badge { display: inline-block; padding: 2px 6px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.usage-type-badge.text { background: rgba(var(--accent-rgb),0.1); color: var(--accent-cyan); }
.usage-type-badge.image { background: rgba(156,92,255,0.1); color: var(--accent-purple); }
.usage-type-badge.video { background: rgba(255,46,203,0.1); color: var(--accent-magenta); }

.payment-status-card { padding: 16px; border-radius: var(--radius-md); text-align: center; margin-top: 12px; }
.payment-status-card.awaiting { background: rgba(255,171,64,0.06); border: 1px solid rgba(255,171,64,0.2); }
.payment-status-card.detected { background: rgba(var(--accent-rgb),0.06); border: 1px solid rgba(var(--accent-rgb),0.2); }
.payment-status-card.confirming { background: rgba(var(--accent-rgb),0.06); border: 1px solid rgba(var(--accent-rgb),0.2); }
.payment-status-card.completed { background: rgba(0,230,118,0.06); border: 1px solid rgba(0,230,118,0.2); }

/* ===== CHAT PAGE ===== */
#chat-page { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.chat-cloud-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 24px 6px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chat-cloud-icons {
  display: flex; align-items: center; gap: 20px;
}
.chat-cloud-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); cursor: pointer;
  transition: all 0.2s ease;
}
.chat-cloud-btn:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.chat-cloud-btn:active { transform: translateY(0); }
.chat-cloud-btn.connected {
  background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.3);
  color: rgba(0,255,136,0.9);
}
.chat-cloud-btn.connected:hover {
  background: rgba(0,255,136,0.2); border-color: rgba(0,255,136,0.5);
}
.chat-cloud-btn.connected::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #00ff88; border: 2px solid var(--bg-primary, #0a0a0f);
}
.chat-cloud-btn { position: relative; }
.chat-cloud-btn svg { pointer-events: none; }

.cloud-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.cloud-modal-overlay.visible { opacity: 1; pointer-events: auto; }
.cloud-modal {
  background: #1a1a24; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; width: 420px; max-width: 92vw; max-height: 80vh;
  overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.cloud-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cloud-modal-header h3 {
  margin: 0; font-size: 16px; font-weight: 600; color: var(--text-primary, #f0f0f5);
}
.cloud-modal-close {
  background: none; border: none; color: var(--text-muted, #888);
  font-size: 20px; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.cloud-modal-close:hover { color: var(--text-primary, #f0f0f5); }
.cloud-modal-body { padding: 20px 24px 24px; }
.cloud-modal-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13px;
}
.cloud-modal-status.disconnected {
  background: rgba(255,255,255,0.04); color: var(--text-muted, #888);
}
.cloud-modal-status.connected-status {
  background: rgba(0,255,136,0.08); color: #00ff88;
}
.cloud-modal-status .status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.cloud-modal-status.disconnected .status-dot { background: #666; }
.cloud-modal-status.connected-status .status-dot { background: #00ff88; }
.cloud-modal-dest {
  margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.cloud-modal-dest-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted, #888); margin-bottom: 8px;
}
.cloud-modal-dest-value {
  font-size: 14px; color: var(--text-primary, #f0f0f5); font-weight: 500;
}
.cloud-modal-dest-input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary, #f0f0f5); font-size: 14px;
  outline: none; margin-top: 8px;
}
.cloud-modal-dest-input:focus { border-color: var(--accent-cyan, #00d4ff); }
.cloud-modal-dest-input::placeholder { color: var(--text-muted, #888); }
.cloud-modal-actions {
  display: flex; gap: 10px; margin-top: 20px;
}
.cloud-modal-btn {
  flex: 1; padding: 10px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 500; cursor: pointer; border: none; transition: all 0.15s ease;
}
.cloud-modal-btn.primary {
  background: var(--accent-cyan, #00d4ff); color: #000;
}
.cloud-modal-btn.primary:hover { filter: brightness(1.1); }
.cloud-modal-btn.danger {
  background: rgba(255,68,68,0.15); color: #ff4444; border: 1px solid rgba(255,68,68,0.2);
}
.cloud-modal-btn.danger:hover { background: rgba(255,68,68,0.25); }
.cloud-modal-btn.secondary {
  background: rgba(255,255,255,0.06); color: var(--text-primary, #f0f0f5);
  border: 1px solid rgba(255,255,255,0.1);
}
.cloud-modal-btn.secondary:hover { background: rgba(255,255,255,0.1); }
.cloud-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cloud-modal-setup {
  margin-top: 16px;
}
.cloud-modal-setup-title {
  font-size: 13px; font-weight: 500; color: var(--text-primary, #f0f0f5);
  margin-bottom: 12px;
}
.cloud-modal-setup-options {
  display: flex; flex-direction: column; gap: 8px;
}
.cloud-modal-setup-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: all 0.15s ease;
}
.cloud-modal-setup-opt:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
}
.cloud-modal-setup-opt.selected {
  background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3);
}
.cloud-modal-setup-opt-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--accent-cyan, #00d4ff);
}
.cloud-modal-setup-opt-text {
  flex: 1;
}
.cloud-modal-setup-opt-text strong {
  display: block; font-size: 13px; color: var(--text-primary, #f0f0f5);
}
.cloud-modal-setup-opt-text span {
  display: block; font-size: 11px; color: var(--text-muted, #888); margin-top: 2px;
}
.cloud-modal-not-configured {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,193,7,0.07); border: 1px solid rgba(255,193,7,0.22);
  border-radius: 10px; padding: 16px; margin-top: 4px;
}
.cloud-modal-not-configured-icon { font-size: 22px; line-height: 1; margin-top: 2px; }
.cloud-modal-not-configured-msg strong { display: block; font-size: 14px; color: #e8ecf4; margin-bottom: 4px; }
.cloud-modal-not-configured-msg p { font-size: 13px; color: rgba(220,230,250,0.72); margin: 0; line-height: 1.5; }
.gist-save-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 0 16px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gist-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,234,255,0.08); border: 1px solid rgba(0,234,255,0.22);
  color: rgba(220,235,255,0.82); font-size: 12px; font-weight: 500;
  border-radius: 7px; padding: 5px 13px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.gist-save-btn:hover { background: rgba(0,234,255,0.15); border-color: rgba(0,234,255,0.4); }
.gist-save-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.gist-save-success { font-size: 12px; color: #4ade80; }
.gist-save-success a { color: #4ade80; text-decoration: underline; }
.gist-save-error { font-size: 12px; color: #f87171; margin-left: 4px; }
.chat-main {
  flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: transparent; position: relative;
}
.chat-main.welcome-state {
  justify-content: center; align-items: center; padding-top: 5%;
}
.chat-main.welcome-state .chat-cloud-bar { display: flex !important; position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.chat-main.welcome-state .chat-messages {
  flex: 0 0 auto !important; overflow: visible; padding: 0; width: 100%; max-width: 760px;
  flex-direction: column;
}
.chat-main.welcome-state .credit-estimator {
  flex: 0 0 auto;
}
.chat-main.welcome-state .chat-input-area {
  flex: 0 0 auto !important; width: 100%; max-width: 760px; padding: 0 20px 32px;
}
.chat-messages { flex: 1 1 0; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; min-height: 0; will-change: scroll-position; -webkit-overflow-scrolling: touch; contain: layout style; }

.welcome-message {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 20px 20px 40px;
}

.welcome-logo-area {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.welcome-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.3));
}
.welcome-logo-img.chat-welcome-logo {
  width: 100%;
  height: auto;
  max-width: 680px;
  min-width: 400px;
  border-radius: 20px;
  filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.5));
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.35), 0 0 50px rgba(var(--accent-rgb),0.2), 0 0 80px rgba(124,58,237,0.2), inset 0 0 20px rgba(var(--accent-rgb),0.05);
  border: 1px solid rgba(var(--accent-rgb),0.15);
}

.welcome-tier-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.tier-icon {
  font-size: 36px;
  color: #ffffff;
}
.tier-label {
  font-size: 42px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.welcome-hints { display: none; }
.welcome-mode-badge-area { display: none; }
.hint-card {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all var(--anim-fast);
}
.hint-card:hover { border-color: rgba(255,255,255,0.25); color: var(--text-primary); background: rgba(255,255,255,0.04); }
.hint-icon { font-size: 16px; }

/* Message Bubbles */
.message { max-width: 800px; width: 100%; margin: 0 auto 16px; padding: 16px 20px; }
.message.user-message { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); }
.message.assistant-message { background: transparent; padding: 16px 0; }
.message-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; color: var(--text-muted); }
.message.assistant-message .message-role { color: var(--accent-cyan); }
.message-content { font-size: 14px; line-height: 1.7; color: var(--text-primary); word-wrap: break-word; }
.message-content pre {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px; margin: 10px 0;
  overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
}
.message-content code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; }
.message-content pre code { background: transparent; padding: 0; }
.message-meta { font-size: 11px; color: var(--text-disabled); margin-top: 8px; }
.message-image, .message-video { max-width: 100%; border-radius: var(--radius-md); margin: 8px 0; }

.typing-indicator { display: flex; gap: 4px; padding: 8px 0; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); animation: typingBounce 1.4s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-scroll-btn {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, color 0.15s ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.chat-scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.chat-scroll-btn:hover {
  background: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.job-progress {
  max-width: 800px; margin: 0 auto 12px; padding: 12px 18px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  animation: fadeIn 0.25s ease-out;
}
.job-progress .progress-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
}
.job-progress .progress-text { flex: 1; }
.job-progress.status-completed .progress-icon { color: var(--accent-cyan); font-weight: bold; }
.job-progress.status-failed .progress-icon { color: #ef4444; font-weight: bold; }
.job-progress-bar { height: 4px; background: var(--bg-hover); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.job-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); border-radius: 2px; transition: width 0.5s; }
.job-progress-text { font-size: 12px; color: var(--text-muted); }

.chat-input-area { padding: 12px 24px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); border-top: none; flex-shrink: 0; }
.chat-form { max-width: 720px; margin: 0 auto; }

.chat-composer {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px; padding: 4px 8px 4px 20px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.chat-composer-row {
  display: flex; align-items: center; gap: 10px;
}
.chat-composer:focus-within {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
}

.chat-textarea {
  flex: 1; background: transparent; border: none; outline: none;
  color: #ffffff; font-size: 16px; font-family: inherit;
  resize: none; padding: 14px 0; max-height: 160px; line-height: 1.5;
}
.chat-textarea::placeholder { color: rgba(255,255,255,0.4); }

.composer-settings {
  display: flex; gap: 6px; padding: 8px 0 4px; flex-wrap: wrap;
}
.composer-setting-select {
  padding: 4px 20px 4px 8px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  color: rgba(255,255,255,0.6); font-size: 11px; font-family: inherit;
  cursor: pointer; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 8px;
  transition: all 0.2s;
}
.composer-setting-select:hover {
  border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8);
}
.composer-setting-select option {
  background: #1a1a1a; color: #e0e0e0;
}

.chat-upload-btn {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4);
  padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.chat-upload-btn:hover { color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.08); }
.chat-upload-btn.has-attachment { color: var(--accent-cyan); }

.upload-preview-area {
  padding: 8px 8px 0; display: flex; align-items: flex-start;
}
.upload-preview-inner {
  position: relative; display: inline-block; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3);
}
.upload-preview-img {
  max-width: 180px; max-height: 120px; display: block; object-fit: cover; border-radius: 12px;
}
.upload-remove-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%;
  font-size: 14px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s;
}
.upload-remove-btn:hover { background: rgba(255,60,60,0.8); }

.chat-msg-attachment {
  max-width: 200px; max-height: 150px; border-radius: 10px;
  margin-bottom: 6px; display: block; border: 1px solid rgba(255,255,255,0.08);
}

.chat-composer-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.gen-type-select {
  padding: 6px 24px 6px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  color: #e0e0e0;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all var(--anim-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.gen-type-select:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  color: #ffffff;
  background-color: #222222;
}
.gen-type-select:focus {
  border-color: rgba(var(--accent-rgb),0.5);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.15);
}
.gen-type-select option {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 8px 12px;
}

.chat-send-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #ffffff; border: none; border-radius: 50%; color: #000000;
  cursor: pointer; transition: all var(--anim-fast); flex-shrink: 0;
}
.chat-send-btn:hover { opacity: 0.85; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; background: #666; }
.chat-send-btn.stop-btn {
  background: #ff4444; color: #fff; width: auto; border-radius: 20px; padding: 0 16px;
  font-size: 13px; font-weight: 600; gap: 6px; animation: stopPulse 1.5s ease-in-out infinite;
}
.chat-send-btn.stop-btn:hover { background: #ff2222; opacity: 1; }
.chat-send-btn.stop-btn .stop-icon { font-size: 10px; }
@keyframes stopPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}

.media-settings-inline {
  width: 100%; padding: 0; border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.media-settings-header {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  cursor: pointer; user-select: none;
}
.media-settings-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--accent-cyan); cursor: pointer;
  padding: 2px; border-radius: 4px; transition: background var(--anim-fast);
}
.media-settings-toggle:hover { background: rgba(var(--accent-rgb),0.1); }
.media-settings-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer;
}
.media-settings-summary {
  font-size: 11px; color: var(--text-muted); margin-left: auto;
  font-weight: 500;
}
.media-settings-chevron {
  display: flex; align-items: center; color: var(--text-muted);
  transition: transform 0.2s ease;
}
.media-settings-chevron.expanded { transform: rotate(180deg); }
.media-settings-controls {
  display: flex; gap: 12px; padding: 8px 4px 10px; flex-wrap: wrap;
}
.media-setting-group {
  display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 100px;
}
.media-setting-group label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.media-setting-group select,
.media-setting-group input {
  padding: 6px 8px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 12px;
  font-family: inherit; outline: none; width: 100%;
}
.media-setting-group select:focus,
.media-setting-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.1);
}
.image-preview-container { text-align: center; margin: 8px 0; }
.image-preview-container img { max-width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-panel); cursor: pointer; transition: transform 0.2s; }
.image-preview-container img:hover { transform: scale(1.01); }

.image-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.image-grid.single { justify-content: center; }
.image-grid-item {
  position: relative; display: inline-block; border-radius: var(--radius-md); overflow: hidden;
}
.image-grid.single .image-grid-item { max-width: 100%; }
.generated-image { display: block; max-width: 100%; border-radius: var(--radius-md); }

.img-action-btns {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 5;
}
.img-play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  animation: neonPulse 2s ease-in-out infinite;
}
.img-play-btn:hover {
  background: rgba(var(--accent-rgb), 0.35); transform: scale(1.15);
  box-shadow: 0 0 16px rgba(var(--accent-rgb),0.6);
}
.img-play-btn svg { margin-left: 2px; }
.img-download-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  border: 2px solid var(--accent-purple, #7c3aed);
  color: var(--accent-purple, #7c3aed); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  animation: neonPulsePurple 2s ease-in-out infinite;
}
.img-download-btn:hover {
  background: rgba(124, 58, 237, 0.35); transform: scale(1.15);
  box-shadow: 0 0 16px rgba(124,58,237,0.6);
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(var(--accent-rgb),0.4), 0 0 12px rgba(var(--accent-rgb),0.2); }
  50% { box-shadow: 0 0 12px rgba(var(--accent-rgb),0.7), 0 0 24px rgba(var(--accent-rgb),0.4); }
}
@keyframes neonPulsePurple {
  0%, 100% { box-shadow: 0 0 6px rgba(124,58,237,0.4), 0 0 12px rgba(124,58,237,0.2); }
  50% { box-shadow: 0 0 12px rgba(124,58,237,0.7), 0 0 24px rgba(124,58,237,0.4); }
}

.image-dimensions {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

.image-meta {
  font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center;
}
.image-load-error {
  padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px;
  background: var(--bg-elevated); border-radius: var(--radius-md);
}

.i2v-progress-overlay {
  position: absolute; inset: 0; z-index: 10;
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.i2v-progress-blur-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(20px); transition: filter 0.8s ease;
}
.i2v-progress-info {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; text-align: center;
}
.i2v-progress-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan);
  animation: neonPulse 2s ease-in-out infinite;
}
.i2v-progress-text {
  font-size: 13px; color: #fff; font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.i2v-progress-pct {
  font-size: 22px; font-weight: 700; color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(var(--accent-rgb),0.5);
}
.i2v-progress-bar-track {
  width: 160px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
}
.i2v-progress-bar-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple, #7c3aed));
  transition: width 0.6s ease;
}

.gen-reveal {
  position: relative; width: 100%; min-height: 320px;
  background: var(--bg-elevated); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(var(--accent-rgb),0.06), 0 0 80px rgba(124,58,237,0.04);
}
.gen-reveal-canvas-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.gen-reveal-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.gen-reveal-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(6,10,20,0.92) 0%, rgba(15,20,40,0.88) 50%, rgba(6,10,20,0.92) 100%);
  transition: opacity 1.2s ease-out;
}
.gen-reveal-status {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px;
  background: rgba(6,10,20,0.65);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb),0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(var(--accent-rgb),0.08);
}
.gen-progress-ring {
  width: 48px; height: 48px; flex-shrink: 0;
}
.gen-progress-ring svg {
  width: 48px; height: 48px; transform: rotate(-90deg);
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),0.4));
}
.gen-ring-bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3;
}
.gen-ring-fill {
  fill: none; stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.6s ease-out;
  stroke: var(--accent-cyan);
}
.gen-reveal-text-col {
  display: flex; flex-direction: column; gap: 4px;
}
.gen-reveal-msg {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  transition: opacity 0.25s ease, transform 0.25s ease;
  line-height: 1.4;
}
.gen-reveal-pct {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(var(--accent-rgb),0.4);
}

@media (max-width: 768px) {
  .gen-reveal-canvas {
    filter: brightness(2.4) contrast(1.6) saturate(1.8);
  }
  .gen-reveal-overlay {
    background: linear-gradient(135deg, rgba(6,10,20,0.72) 0%, rgba(15,20,40,0.65) 50%, rgba(6,10,20,0.72) 100%);
  }
}

.i2v-popup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.i2v-popup {
  background: var(--bg-panel-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 360px; max-width: 90vw;
  box-shadow: var(--shadow-modal);
  animation: popupSlideUp 0.2s ease-out;
}
@keyframes popupSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.i2v-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.i2v-popup-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.i2v-popup-close {
  background: none; border: none; color: var(--text-muted); font-size: 20px;
  cursor: pointer; padding: 0 4px; line-height: 1;
  transition: color 0.15s;
}
.i2v-popup-close:hover { color: var(--text-primary); }

.i2v-popup-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }

.i2v-field { display: flex; flex-direction: column; gap: 4px; }
.i2v-field label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.i2v-field select {
  padding: 8px 10px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px;
  font-family: inherit; outline: none; cursor: pointer;
  transition: border-color 0.15s;
}
.i2v-field select:focus { border-color: var(--accent-cyan); }

.i2v-save-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
  padding: 4px 0;
}
.i2v-save-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent-cyan); cursor: pointer;
}

.i2v-popup-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--border-light);
}
.i2v-cancel-btn {
  padding: 8px 16px; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.i2v-cancel-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.i2v-generate-btn {
  padding: 8px 20px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.i2v-generate-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.i2v-status {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
}
.model-selector { padding: 6px 10px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; font-family: inherit; outline: none; }

/* Hidden NSFW toggle container in chat (moved to settings) */
#nsfw-toggle-container { display: none !important; }

.credit-estimator {
  max-width: 720px; margin: 16px auto 0; padding: 0; text-align: center;
}
.credit-estimator-inner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 20px;
}
.credit-estimator-icon { display: flex; align-items: center; color: var(--accent-cyan); flex-shrink: 0; }
.credit-estimate-text { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.welcome-mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 32px;
}
.welcome-mode-badge svg { width: 14px; height: 14px; }
.welcome-mode-desc {
  font-size: 13px; color: var(--text-muted); max-width: 480px;
  line-height: 1.6; margin-bottom: 20px;
}
.welcome-mode-specs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 500px; margin-bottom: 20px;
}
.welcome-spec-tag {
  padding: 5px 12px; background: transparent; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; font-size: 11px; color: var(--text-secondary); font-weight: 500;
  cursor: pointer; transition: all var(--anim-fast); user-select: none;
}
.welcome-spec-tag:hover {
  border-color: rgba(255,255,255,0.25); color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.welcome-spec-tag.active {
  border-color: rgba(255,255,255,0.3); color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.checkout-panel { margin-top: 16px; }

#nsfw-acknowledgment {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: var(--radius-md);
}
.nsfw-ack-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.nsfw-ack-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #ff9800;
  width: 16px;
  height: 16px;
}
.nsfw-ack-text {
  color: #ffb74d;
  font-size: 12px;
}

#checkout-summary {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
}
#checkout-summary-content {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.checkout-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.checkout-actions .auth-btn {
  padding: 12px 32px;
  font-size: 14px;
}
.checkout-actions .auth-btn:disabled {
  opacity: 0.4;
  background: var(--bg-hover);
}

/* ===== ADMIN COMMAND CENTER ===== */
.admin-command-center { margin: -24px; padding: 0; min-height: calc(100vh - var(--topbar-height)); background: var(--bg-primary); }

.cc-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--anim-fast); text-decoration: none; flex-shrink: 0;
}
.cc-back-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(var(--accent-rgb),0.06); }

.cc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.cc-header-left { display: flex; align-items: center; gap: 12px; }
.cc-logo-mark { font-size: 24px; color: var(--accent-cyan); text-shadow: 0 0 12px rgba(var(--accent-rgb),0.4); }
.cc-title { font-size: 18px; font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); }
.cc-subtitle { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.cc-live-badge {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; color: var(--success);
}
.cc-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 6px rgba(0,230,118,0.6); animation: ccPulse 2s ease-in-out infinite;
}
@keyframes ccPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.cc-header-right { display: flex; align-items: center; gap: 20px; }
.cc-header-vitals { display: flex; gap: 16px; }
.cc-vital { display: flex; flex-direction: column; align-items: center; }
.cc-vital-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cc-vital-value { font-size: 14px; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-mono); }
.cc-header-actions { display: flex; align-items: center; gap: 12px; }
.cc-timestamp { font-size: 11px; color: var(--text-disabled); }
.cc-refresh-btn {
  display: flex; align-items: center; gap: 4px; padding: 6px 12px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 12px; cursor: pointer; transition: all var(--anim-fast); font-family: inherit;
}
.cc-refresh-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.cc-refresh-icon { font-size: 14px; }

.cc-row-ticker { padding: 8px 24px; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.cc-ticker-container { display: flex; gap: 24px; animation: tickerScroll 40s linear infinite; white-space: nowrap; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cc-ticker-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: var(--radius-sm); flex-shrink: 0; }
.cc-ticker-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cc-ticker-value { font-size: 13px; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-mono); }

.cc-grid { padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 1100px; margin: 0 auto; }
.cc-panels-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.cc-panel {
  background: var(--bg-panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--anim-fast);
}
.cc-panel:hover { border-color: rgba(60,68,140,0.4); }
.cc-panel-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.cc-panel-icon { font-size: 16px; flex-shrink: 0; }
.cc-panel-title { font-size: 15px; font-weight: 700; color: var(--text-primary); flex: 1; }
.cc-panel-badge { padding: 2px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cc-badge-live { background: rgba(0,230,118,0.1); color: var(--success); border: 1px solid rgba(0,230,118,0.2); }
.cc-badge-status { background: rgba(var(--accent-rgb),0.1); color: var(--accent-cyan); border: 1px solid rgba(var(--accent-rgb),0.2); }
.cc-badge-count { background: rgba(255,171,64,0.1); color: var(--warning); border: 1px solid rgba(255,171,64,0.2); }
.cc-panel-body { padding: 16px 20px; font-size: 13px; color: var(--text-secondary); min-height: 120px; }
.cc-panel-body-scroll { max-height: 420px; overflow-y: auto; }
.cc-panel-body-scroll::-webkit-scrollbar { width: 5px; }
.cc-panel-body-scroll::-webkit-scrollbar-track { background: transparent; }
.cc-panel-body-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.cc-panel-body-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-disabled); }
.cc-panel-accent-cyan { border-top: 2px solid var(--accent-cyan); }
.cc-panel-accent-red { border-top: 2px solid var(--error); }
.cc-panel-accent-green { border-top: 2px solid var(--success); }
.cc-panel-accent-amber { border-top: 2px solid var(--warning); }
.cc-panel-accent-purple { border-top: 2px solid var(--accent-purple); }

.admin-active-users-empty { padding: 20px; text-align: center; color: var(--text-disabled); font-size: 13px; }
.admin-active-users-header { display: flex; flex-direction: column; gap: 12px; }
.admin-active-users-connected { display: flex; align-items: baseline; gap: 8px; }
.admin-active-users-count { font-size: 36px; font-weight: 800; font-family: var(--font-mono); color: var(--accent-cyan); line-height: 1; }
.admin-active-users-count-label { font-size: 14px; color: var(--text-muted); }
.admin-active-users-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-active-users-stat { padding: 12px 10px; background: var(--bg-elevated); border-radius: var(--radius-md); text-align: center; border: 1px solid var(--border-light); }
.admin-active-users-stat-value { font-size: 20px; font-weight: 800; font-family: var(--font-mono); color: var(--text-primary); margin-bottom: 2px; }
.admin-active-users-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-active-users-section-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 0 8px; }
.admin-active-users-top { margin-top: 8px; }
.admin-active-users-top-list { display: flex; flex-direction: column; gap: 0; }
.admin-active-users-top-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
.admin-active-users-top-row:last-child { border-bottom: none; }
.admin-active-users-rank { font-size: 12px; font-weight: 700; color: var(--text-disabled); font-family: var(--font-mono); min-width: 28px; }
.admin-active-users-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-active-users-plan-badge { padding: 2px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.plan-badge-elite { background: rgba(240,192,64,0.12); color: #f0c040; border: 1px solid rgba(240,192,64,0.25); }
.plan-badge-pro { background: rgba(96,160,255,0.12); color: #60a0ff; border: 1px solid rgba(96,160,255,0.25); }
.plan-badge-starter { background: rgba(var(--accent-rgb),0.12); color: var(--accent-cyan); border: 1px solid rgba(var(--accent-rgb),0.25); }
.plan-badge-trial { background: rgba(80,208,80,0.12); color: #50d050; border: 1px solid rgba(80,208,80,0.25); }
.plan-badge-free { background: rgba(136,136,136,0.12); color: #999; border: 1px solid rgba(136,136,136,0.25); }
.admin-active-users-reqs { font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); flex-shrink: 0; }
.admin-active-users-distribution { margin-top: 8px; }
.admin-active-users-bar-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.admin-active-users-bar-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); min-width: 60px; text-align: right; }
.admin-active-users-bar-track { flex: 1; height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.admin-active-users-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; min-width: 2px; }
.admin-active-users-bar-value { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); min-width: 80px; }

.admin-request-stream-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.admin-request-stream-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); animation: livePulse 2s infinite; flex-shrink: 0; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.admin-request-stream-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.admin-request-stream-count { font-size: 11px; color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); }
.admin-request-stream-empty { padding: 16px 0; text-align: center; color: var(--text-disabled); font-size: 12px; }
.admin-request-stream-list { display: flex; flex-direction: column; gap: 0; }
.admin-request-stream-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--border-light); font-size: 12px; transition: background 0.2s; }
.admin-request-stream-row:last-child { border-bottom: none; }
.admin-request-stream-row:hover { background: var(--bg-hover); }
.admin-request-stream-row-new { animation: streamFadeIn 0.4s ease; }
@keyframes streamFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.admin-request-stream-ts { font-family: var(--font-mono); font-size: 11px; color: var(--text-disabled); min-width: 58px; flex-shrink: 0; }
.admin-request-stream-user { font-weight: 600; color: var(--text-primary); min-width: 60px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.admin-request-stream-type { padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.type-text { background: rgba(var(--accent-rgb),0.12); color: var(--accent-cyan); }
.type-image { background: rgba(156,92,255,0.12); color: var(--accent-purple); }
.type-video { background: rgba(255,171,64,0.12); color: var(--warning); }
.type-unknown { background: rgba(136,136,136,0.12); color: var(--text-muted); }
.admin-request-stream-model { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-request-stream-tokens { font-family: var(--font-mono); font-size: 11px; color: var(--text-disabled); flex-shrink: 0; min-width: 45px; text-align: right; }
.admin-request-stream-status { font-size: 10px; flex-shrink: 0; }
.status-completed, .status-complete, .status-success { color: var(--success); }
.status-pending, .status-queued, .status-processing { color: var(--warning); }
.status-failed, .status-error { color: var(--error); }

.cc-metric-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.cc-metric-row:last-child { border-bottom: none; }
.cc-metric-label { color: var(--text-muted); font-size: 12px; }
.cc-metric-value { color: var(--text-primary); font-weight: 600; font-size: 12px; font-family: var(--font-mono); }
.cc-progress-bar { height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.cc-progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.cc-progress-fill.cyan { background: var(--accent-cyan); }
.cc-progress-fill.green { background: var(--success); }
.cc-progress-fill.amber { background: var(--warning); }
.cc-progress-fill.red { background: var(--error); }

.cc-stream-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.cc-stream-item:last-child { border-bottom: none; }
.cc-stream-badge { padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.cc-stream-badge.text { background: rgba(var(--accent-rgb),0.1); color: var(--accent-cyan); }
.cc-stream-badge.image { background: rgba(156,92,255,0.1); color: var(--accent-purple); }
.cc-stream-badge.video { background: rgba(255,46,203,0.1); color: var(--accent-magenta); }
.cc-stream-time { color: var(--text-disabled); font-family: var(--font-mono); font-size: 10px; margin-left: auto; }

.cc-engine-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cc-engine-table th { text-align: left; padding: 6px 8px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); font-size: 10px; text-transform: uppercase; }
.cc-engine-table td { padding: 6px 8px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }

.cc-queue-tier { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.cc-queue-tier:last-child { border-bottom: none; }
.cc-queue-tier-name { font-weight: 600; font-size: 12px; }
.cc-queue-tier-count { font-family: var(--font-mono); font-weight: 700; color: var(--accent-cyan); }

.cc-wallet-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); gap: 8px; }
.cc-wallet-item:last-child { border-bottom: none; }
.cc-wallet-asset { font-weight: 700; font-size: 12px; min-width: 40px; }
.cc-wallet-address { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cc-wallet-actions { display: flex; gap: 4px; }
.cc-wallet-btn { padding: 4px 8px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary); font-size: 10px; cursor: pointer; font-family: inherit; }
.cc-wallet-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.wallet-mgr-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.wallet-mgr-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 16px;
}
.wallet-mgr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.wallet-mgr-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.wallet-mgr-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.wallet-mgr-row:last-child td { border-bottom: none; }
.wallet-mgr-disabled { opacity: 0.5; }
.wallet-mgr-asset {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.wallet-mgr-icon { font-size: 14px; }
.wallet-mgr-network { color: var(--text-secondary); }
.wallet-mgr-address { max-width: 420px; }
.wallet-mgr-address-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.wallet-mgr-address-full {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.wallet-btn-copy {
  flex-shrink: 0;
  font-size: 10px !important;
  padding: 3px 8px !important;
}
.wallet-mgr-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.wallet-mgr-status.status-active { background: rgba(0,200,83,0.12); color: #00c853; }
.wallet-mgr-status.status-disabled,
.wallet-mgr-status.status-inactive { background: rgba(255,82,82,0.12); color: #ff5252; }
.wallet-mgr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wallet-mgr-btn {
  padding: 5px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.wallet-mgr-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.wallet-btn-add {
  background: rgba(var(--accent-rgb),0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}
.wallet-btn-add:hover { background: rgba(var(--accent-rgb),0.15); }
.wallet-btn-submit {
  background: rgba(var(--accent-rgb),0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
  padding: 8px 20px;
}
.wallet-btn-submit:hover { background: rgba(var(--accent-rgb),0.2); }
.wallet-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.wallet-btn-cancel {
  color: var(--text-muted);
}
.wallet-btn-disable { color: #ff5252; border-color: rgba(255,82,82,0.3); }
.wallet-btn-disable:hover { border-color: #ff5252; }
.wallet-btn-enable { color: #00c853; border-color: rgba(0,200,83,0.3); }
.wallet-btn-enable:hover { border-color: #00c853; }

.wallet-register-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.wallet-register-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.wallet-register-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.wallet-register-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wallet-register-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-register-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wallet-register-group-full {
  grid-column: 1 / -1;
}
.wallet-register-input {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.wallet-register-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.1);
}
select.wallet-register-input {
  cursor: pointer;
  appearance: auto;
}
.wallet-register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.cc-panel-accent-orange { border-top: 2px solid #ff9100; }
.cc-panels-row-full { grid-template-columns: 1fr !important; }

.revenue-panel-empty,
.infra-panel-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-disabled);
  font-size: 13px;
}
.revenue-panel-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.revenue-panel-card {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  text-align: center;
}
.revenue-panel-value {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 2px;
}
.revenue-panel-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.revenue-panel-breakdown { margin-top: 12px; }
.revenue-panel-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.revenue-panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.revenue-panel-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
}
.revenue-panel-table td {
  padding: 6px 8px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.rp-asset-name { font-weight: 700; color: var(--text-primary); }
.rp-asset-amount { font-family: var(--font-mono); }
.rp-share-bar {
  width: 60px;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.rp-share-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 2px;
}
.rp-share-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.infra-cost-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.infra-nodes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.infra-node-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s;
}
.infra-node-card:hover { border-color: var(--border); }
.infra-node-cpu { border-left: 3px solid var(--accent-cyan); }
.infra-node-gpu { border-left: 3px solid #ff9100; }
.infra-node-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.infra-node-icon { font-size: 22px; line-height: 1; }
.infra-node-title-block { flex: 1; }
.infra-node-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.infra-node-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.infra-node-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.infra-specs-badge {
  padding: 3px 8px;
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.15);
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.infra-ip-badge {
  padding: 3px 8px;
  background: rgba(156,92,255,0.06);
  border: 1px solid rgba(156,92,255,0.15);
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.infra-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.infra-cost-cell {
  text-align: center;
  padding: 10px 4px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.infra-cost-value {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}
.infra-cost-cpu { color: var(--accent-cyan); }
.infra-cost-gpu { color: #ff9100; }
.infra-cost-combined { color: #e040fb; }
.infra-cost-label {
  font-size: 9px;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.infra-accrued-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.infra-accrued-label {
  font-size: 11px;
  color: var(--text-muted);
}
.infra-accrued-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}
.infra-accrued-combined .infra-accrued-value {
  color: #e040fb;
  font-size: 16px;
}
.infra-combined-section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border-light);
  border-left: 3px solid #e040fb;
}
.infra-combined-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.infra-combined-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.infra-uptime-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 3px 8px;
  background: var(--bg-input);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.infra-breakdown-combined .infra-cost-cell {
  background: rgba(224,64,251,0.04);
  border-color: rgba(224,64,251,0.12);
}

@media (max-width: 768px) {
  .infra-nodes-row { grid-template-columns: 1fr; }
  .infra-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
  .revenue-panel-summary { grid-template-columns: repeat(2, 1fr); }
}

.cc-revenue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-revenue-card { padding: 12px; background: var(--bg-elevated); border-radius: var(--radius-md); text-align: center; }
.cc-revenue-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.cc-revenue-value { font-size: 18px; font-weight: 800; color: var(--accent-cyan); font-family: var(--font-mono); }

.cc-user-stat { display: flex; justify-content: space-between; padding: 6px 0; }
.cc-user-stat-label { font-size: 12px; color: var(--text-muted); }
.cc-user-stat-value { font-size: 12px; font-weight: 600; font-family: var(--font-mono); }

.cc-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-disabled);
}

/* ===== LANDING PAGE ===== */
body:has(#home-page),
body:has(#login-page),
body:has(#legal-page) {
  overflow: auto;
}

body:has(#home-page) #app-content,
body:has(#login-page) #app-content,
body:has(#legal-page) #app-content {
  height: auto;
  overflow: visible;
}

#home-page.landing {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #060a14;
  color: #e8ecf4;
}

#home-page.landing::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image: url('/starfield.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #060a14;
}

.landing-hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 20px;
}

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

.landing-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(6, 10, 20);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 48px;
}
.landing-auth-ctrl {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.landing-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.landing-login-btn:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
}
.landing-login-btn svg {
  flex-shrink: 0;
}
.landing-auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
}
.landing-auth-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
}
.landing-auth-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #00e68a;
}
.landing-auth-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e68a;
  box-shadow: 0 0 8px rgba(0, 230, 138, 0.4);
}
.landing-auth-sep {
  color: rgba(232, 236, 244, 0.25);
  font-size: 12px;
}
.landing-auth-logout {
  background: none;
  border: none;
  color: rgba(255, 82, 82, 0.85);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.landing-auth-logout:hover {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.1);
}
.landing-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
}

.landing-nav-link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 236, 244, 0.6);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: var(--accent-cyan);
  background: rgba(var(--accent-rgb), 0.08);
}

.landing-nav-dot {
  display: none;
}


.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  color: var(--accent-cyan);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(var(--accent-rgb), 0.15);
  transform: translateY(-2px);
}

.neon-logo-frame {
  position: relative;
  display: inline-block;
  width: 90%;
  max-width: 860px;
  padding: 20px 28px;
  border: 2px solid rgba(var(--accent-rgb),0.45);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.04) 0%, rgba(124,58,237,0.04) 50%, rgba(var(--accent-rgb),0.03) 100%);
  min-height: 200px;
}

.neon-logo-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb),0.15) 0%, transparent 70%);
  animation: neon-pulse-opacity 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

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

.neon-logo-frame .landing-hero-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hero-video.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-play-btn,
.hero-stop-btn {
  position: absolute;
  top: 16px;
  right: calc(50% - 480px);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0 0 0 2px;
}

.hero-stop-btn {
  padding: 0;
}

.hero-play-btn:hover,
.hero-stop-btn:hover {
  background: rgba(var(--accent-rgb),0.15);
  border-color: rgba(var(--accent-rgb),0.5);
  color: #fff;
}

.landing-hero-media {
  display: block;
  width: 65%;
  max-width: 910px;
  height: auto;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.landing-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 32px;
}

.landing-hero {
  position: relative;
  text-align: center;
  padding: 0 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.landing-tagline-stack {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.landing-tagline-stack span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 7px rgba(var(--accent-rgb), 0.5), 0 0 20px rgba(var(--accent-rgb), 0.25);
}

.landing-tagline-stack span:nth-child(2) {
  text-shadow: 0 0 7px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.25);
}

.landing-tagline-stack span:nth-child(3) {
  text-shadow: 0 0 7px rgba(255, 45, 252, 0.5), 0 0 20px rgba(255, 45, 252, 0.25);
}

@keyframes tagline-glow {
  0% {
    text-shadow:
      0 0 7px rgba(var(--accent-rgb), 0.5),
      0 0 20px rgba(var(--accent-rgb), 0.25),
      0 0 40px rgba(var(--accent-rgb), 0.1);
    filter: brightness(1);
  }
  100% {
    text-shadow:
      0 0 10px rgba(var(--accent-rgb), 0.8),
      0 0 30px rgba(var(--accent-rgb), 0.5),
      0 0 60px rgba(var(--accent-rgb), 0.25),
      0 0 80px rgba(var(--accent-rgb), 0.1);
    filter: brightness(1.15);
  }
}

.landing-hero-desc {
  font-size: 15px;
  color: rgba(220, 230, 250, 0.92);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.landing-hero-desc-sm {
  font-size: 14px;
  color: rgba(var(--accent-rgb), 0.8);
  margin-bottom: 36px;
}

.landing-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.landing-btn {
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  border: none;
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #7c3aed 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.landing-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-btn-primary:hover {
  box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.35), 0 4px 16px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.landing-btn-primary:hover::before { opacity: 1; }

.landing-btn-secondary {
  background: rgba(15, 20, 40, 0.5);
  border: 1px solid rgba(100, 120, 180, 0.15);
  color: rgba(220, 230, 250, 0.9);
}

.landing-btn-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: #e8ecf4;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.06);
}

.landing-btn-starter {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.landing-btn-starter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-btn-starter:hover {
  box-shadow: 0 0 36px rgba(34, 197, 94, 0.35), 0 4px 16px rgba(22, 163, 74, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.landing-btn-starter:hover::before { opacity: 1; }

.landing-btn-elite {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.landing-btn-elite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-btn-elite:hover {
  box-shadow: 0 0 36px rgba(249, 115, 22, 0.4), 0 4px 16px rgba(220, 38, 38, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.landing-btn-elite:hover::before { opacity: 1; }

.landing-btn-lg { padding: 16px 40px; font-size: 16px; }

.landing-section {
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto 32px;
  opacity: 1;
  transform: none;
}

.landing-section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8ecf4 0%, rgba(var(--accent-rgb),0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-br { display: none; }

.landing-section-desc {
  font-size: 15px;
  color: rgba(220, 230, 250, 0.88);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.landing-section-desc:last-of-type { margin-bottom: 40px; }

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.landing-feature-card {
  padding: 28px;
  border-radius: 18px;
  transition: transform 0.25s ease;
}

.landing-feature-card:hover {
  transform: translateY(-3px);
}

.landing-feature-icon { margin-bottom: 16px; line-height: 1; }

.landing-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e8ecf4;
}

.landing-feature-card p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.65;
}

.landing-adult-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.landing-adult-item {
  padding: 10px 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(220, 230, 250, 0.95);
  transition: border-color 0.25s, background 0.25s;
}

.landing-adult-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
  color: #e8ecf4;
}

.landing-safety-note {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 12px;
  max-width: 650px;
  margin: 0 auto;
}

.landing-safety-note span {
  font-size: 13px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.5;
}

.landing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
}

.landing-comparison-table th,
.landing-comparison-table td {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid rgba(100, 120, 180, 0.08);
  white-space: nowrap;
}

.landing-comparison-table th {
  font-weight: 700;
  color: rgba(220, 230, 250, 0.8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(10, 14, 30, 0.5);
}
.comp-logo {
  vertical-align: middle;
  margin-right: 3px;
}

.landing-table-atlas {
  color: var(--accent-cyan) !important;
  font-weight: 800 !important;
}

.landing-table-label {
  text-align: left !important;
  font-weight: 600;
  color: rgba(220, 230, 250, 0.92);
}

.landing-table-blocked { color: rgba(255, 100, 100, 0.9); }
.landing-table-restricted { color: rgba(255, 190, 90, 0.9); }
.landing-table-limited { color: rgba(255, 225, 110, 0.9); }
.landing-table-full { color: var(--accent-cyan); font-weight: 700; }

.landing-comparison-table tbody tr:last-child td { border-bottom: none; }
.landing-comparison-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.02); }

.landing-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.landing-capability-card {
  padding: 32px 28px;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.25s ease;
}

.landing-capability-card:hover {
  transform: translateY(-3px);
}

.landing-capability-icon { margin-bottom: 16px; }

.landing-capability-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e8ecf4;
}

.landing-capability-card p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.6;
}

.landing-verification-card {
  text-align: center;
  padding: 48px 36px;
  border-radius: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.landing-verification-icon { margin-bottom: 20px; }

.landing-verification-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #e8ecf4;
}

.landing-verification-card p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

.landing-final-cta {
  text-align: center;
  padding-bottom: 40px;
}

.landing-footer {
  text-align: center;
  padding: 40px 24px 48px;
  border-top: 1px solid rgba(100, 120, 180, 0.08);
}

.landing-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.landing-footer-links a {
  font-size: 16px;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4), 0 0 20px rgba(var(--accent-rgb), 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-footer-links a svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5));
}

.landing-footer-links a:hover {
  color: #40f0ff;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6), 0 0 30px rgba(var(--accent-rgb), 0.25);
}

.landing-footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.landing-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(200, 215, 240, 0.75);
  background: radial-gradient(ellipse at 30% 30%, rgba(var(--accent-rgb),0.08), rgba(124,58,237,0.06) 60%, transparent 100%);
  border: 1px solid rgba(100, 120, 180, 0.18);
  position: relative;
  cursor: default;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.landing-social::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb),0.25), rgba(124,58,237,0.2), rgba(255,45,252,0.15), rgba(var(--accent-rgb),0.25));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-social::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  top: 8px;
  right: 10px;
  box-shadow:
    -6px 12px 0 0 rgba(255,255,255,0.25),
    -14px 6px 0 0 rgba(200,220,255,0.2),
    -2px 22px 0 0 rgba(255,255,255,0.15);
}

.landing-social:hover {
  color: var(--accent-cyan);
  border-color: rgba(var(--accent-rgb),0.35);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.15), 0 0 40px rgba(124,58,237,0.08);
  transform: translateY(-2px);
}

.landing-social:hover::before {
  opacity: 1;
}

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

.landing-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-size: 42px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.landing-stat-label {
  font-size: 13px;
  color: rgba(200, 215, 240, 0.7);
  margin-top: 6px;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.landing-step {
  text-align: center;
  position: relative;
}

.landing-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e8ecf4;
}

.landing-step p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.6;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.landing-price-card {
  padding: 36px 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 20px;
  text-align: center;
  background: rgba(10, 18, 36, 0.85);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.landing-price-card .landing-price-cta-area {
  margin-top: auto;
  padding-top: 8px;
}

.landing-price-card:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.08);
}

.landing-price-card.featured {
  position: relative;
}

.landing-price-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.landing-price-name {
  font-size: 22px;
  font-weight: 800;
  color: #e8ecf4;
  margin-bottom: 8px;
}

.landing-price-cost {
  font-size: 14px;
  color: rgba(200, 215, 240, 0.7);
  margin-bottom: 20px;
}
.landing-price-crypto-footer {
  margin-top: 14px;
  text-align: center;
}
.landing-price-crypto-label {
  display: block;
  font-size: 12px;
  color: rgba(200, 215, 240, 0.5);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.landing-price-crypto-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 6px;
}
.landing-price-coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(232, 236, 244, 0.85);
  letter-spacing: 0.03em;
  transition: border-color 0.2s, background 0.2s;
}
.landing-price-coin:hover {
  border-color: rgba(var(--accent-rgb),0.3);
  background: rgba(var(--accent-rgb),0.06);
}
.landing-price-coin svg {
  flex-shrink: 0;
  border-radius: 50%;
}
.landing-table-crypto-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.landing-table-coin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(232, 236, 244, 0.8);
  letter-spacing: 0.02em;
}
.landing-table-coin svg {
  flex-shrink: 0;
  border-radius: 50%;
}

.landing-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.landing-price-list li {
  padding: 6px 0;
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-price-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.landing-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.landing-tech-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.landing-tech-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: 12px;
}

.landing-tech-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #e8ecf4;
}

.landing-tech-item p {
  font-size: 13px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.6;
}

.landing-use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.landing-use-case {
  padding: 28px;
}

.landing-use-case h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-use-case p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.65;
}

.landing-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.5), rgba(124,58,237,0.5));
  margin: 0 auto 60px;
  border: none;
}

.landing-adult-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 28px;
}

.landing-adult-item {
  padding: 8px 18px;
  border: 1px solid rgba(100, 120, 180, 0.15);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(220, 230, 250, 0.85);
}

.landing-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(200, 215, 240, 0.7);
  line-height: 1.6;
}

.landing-safety-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.landing-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.landing-crypto-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 48px 0;
}


.landing-crypto-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: transform 0.3s;
}
.landing-crypto-icon:hover { transform: translateY(-4px); }

.crypto-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.35;
  transition: opacity 0.3s, width 0.3s, height 0.3s;
  pointer-events: none;
  z-index: 0;
}
.landing-crypto-icon:hover .crypto-glow {
  opacity: 0.55;
  width: 96px;
  height: 96px;
}

.crypto-btc .crypto-glow { background: #f7931a; }
.crypto-xmr .crypto-glow { background: #ff6600; }
.crypto-eth .crypto-glow { background: #627eea; }
.crypto-sol .crypto-glow { background: linear-gradient(135deg, #00FFA3, #DC1FFF); }
.crypto-xrp .crypto-glow { background: #ffffff; opacity: 0.2; }
.crypto-xlm .crypto-glow { background: #04b5e5; }

.landing-crypto-icon:hover.crypto-xrp .crypto-glow { opacity: 0.35; }

.landing-crypto-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}
.landing-crypto-icon:hover svg { transform: scale(1.1); }

.landing-crypto-icon span {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(200, 215, 240, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.landing-crypto-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.landing-crypto-benefit h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 8px;
}

.landing-crypto-benefit p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.65;
}

.landing-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.landing-highlight h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 8px;
}

.landing-highlight p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.65;
}

.landing-blocked-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.landing-blocked-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 10px;
}

.landing-blocked-item p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.65;
}

.landing-faq {
  margin-top: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.landing-faq-item {
  border-bottom: 1px solid rgba(100, 120, 180, 0.12);
  padding: 0;
}

.landing-faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #e8ecf4;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: rgba(var(--accent-rgb),0.6);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.landing-faq-item[open] summary::after {
  content: '-';
}

.landing-faq-item summary:hover {
  color: var(--accent-cyan);
}

.landing-faq-item p {
  padding: 0 0 20px;
  font-size: 14px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.7;
}

.landing-footer-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: linear-gradient(135deg, var(--accent-cyan), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.landing-footer-slogan {
  font-size: 11px;
  color: rgba(200, 215, 240, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.glass-card {
  background: rgba(14, 22, 40, 0.65);
  border: 1px solid rgba(100, 140, 220, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  width: 100%;
}

.landing-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.landing-section-accent {
  width: 60px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), #7c3aed, #ff2dfc);
}

.landing-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.landing-divider-glow {
  width: 200px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.35), rgba(124, 58, 237, 0.35), rgba(255, 45, 252, 0.35), transparent);
}

.landing-icon-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin: 28px auto 32px;
}

.landing-icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(100, 140, 220, 0.08);
  font-size: 14px;
  color: rgba(220, 230, 250, 0.88);
  line-height: 1.6;
}

.landing-icon-list-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.landing-card-accent {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.accent-cyan { background: var(--accent-cyan); }
.accent-purple { background: #7c3aed; }
.accent-pink { background: #ff2dfc; }

.landing-highlight.glass-card {
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-highlight.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-feature-card.glass-card {
  background: rgba(14, 22, 40, 0.65);
  border: 1px solid rgba(100, 140, 220, 0.12);
}
.landing-feature-card.glass-card:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-blocked-item.glass-card {
  padding: 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-blocked-item.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 252, 0.3);
}

.landing-blocked-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ff2dfc;
  background: rgba(255, 45, 252, 0.1);
  border: 1px solid rgba(255, 45, 252, 0.25);
  border-radius: 6px;
  margin-bottom: 14px;
}

.landing-step.glass-card {
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-step.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(var(--accent-rgb), 0.08);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}



.landing-gate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px auto 32px;
  max-width: 800px;
  flex-wrap: wrap;
}

.landing-gate.glass-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-gate.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(100, 140, 220, 0.15);
}

.landing-gate-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.landing-gate p {
  font-size: 13px;
  color: rgba(220, 230, 250, 0.8);
  line-height: 1.55;
}

.landing-gate-arrow {
  flex-shrink: 0;
}

.landing-info-banner.glass-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px;
  margin: 32px auto;
  max-width: 750px;
  border-left: 3px solid rgba(var(--accent-rgb), 0.4);
}

.landing-info-banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.landing-info-banner p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.7;
  margin: 0;
}

.landing-benefit-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(100, 140, 220, 0.12);
  margin-bottom: 16px;
}

.landing-crypto-benefit.glass-card {
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-crypto-benefit.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-use-case.glass-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-use-case.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.3);
}

.landing-use-case-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(100, 140, 220, 0.12);
  margin-bottom: 14px;
}

.landing-pricing-crypto-note.glass-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  margin: 28px auto 0;
  max-width: 600px;
  text-align: center;
  justify-content: center;
  border-left: 3px solid rgba(var(--accent-rgb), 0.4);
}

.landing-pricing-crypto-note span {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.85);
  line-height: 1.6;
}

.landing-pricing-crypto-note strong {
  color: #e8ecf4;
}

.landing-tech-item.glass-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-tech-item.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-capability-card.glass-card {
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-capability-card.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.landing-verification-card.glass-card {
  padding: 48px 36px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.landing-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  line-height: 1;
}

.landing-stat-label {
  font-size: 12px;
  color: rgba(200, 215, 240, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.landing-crypto-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 36px auto 0;
}

.landing-crypto-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: transform 0.3s ease;
}
.landing-crypto-icon:hover {
  transform: translateY(-4px);
}

.landing-crypto-icon span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(220, 230, 250, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crypto-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.crypto-btc .crypto-glow { background: radial-gradient(circle, rgba(247, 147, 26, 0.25), transparent 70%); }
.crypto-xmr .crypto-glow { background: radial-gradient(circle, rgba(255, 102, 0, 0.25), transparent 70%); }
.crypto-eth .crypto-glow { background: radial-gradient(circle, rgba(98, 126, 234, 0.25), transparent 70%); }
.crypto-sol .crypto-glow { background: radial-gradient(circle, rgba(0, 255, 163, 0.2), transparent 70%); }
.crypto-xrp .crypto-glow { background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%); }
.crypto-xlm .crypto-glow { background: radial-gradient(circle, rgba(14, 21, 51, 0.25), transparent 70%); }
.landing-crypto-icon:hover .crypto-glow { opacity: 1; }

.fade-in-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-target.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .landing-section,
  .landing-feature-card,
  .landing-capability-card,
  .landing-adult-item,
  .fade-in-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .landing-btn { transition: none !important; }
  .landing-hero-media { animation: none !important; }
}

.error-message {
  padding: 10px 14px; background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.3); border-radius: var(--radius-md);
  color: var(--error); font-size: 13px; margin-bottom: 12px;
}

/* ===== PHILOSOPHY BLOCK ===== */
.landing-philosophy-block {
  max-width: 750px;
  margin: 32px auto 36px;
}
.landing-philosophy-title {
  font-size: 18px;
  font-weight: 700;
  color: #e8ecf4;
  margin-bottom: 12px;
}
.landing-philosophy-intro {
  font-size: 15px;
  color: rgba(220, 230, 250, 0.88);
  line-height: 1.7;
  margin-bottom: 20px;
}
.landing-philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.landing-philosophy-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(100, 140, 220, 0.08);
}
.landing-philosophy-emoji {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}
.landing-philosophy-point p {
  font-size: 14px;
  color: rgba(220, 230, 250, 0.88);
  line-height: 1.65;
  margin: 0;
}

/* ===== HIGHLIGHT CARD ICONS (base: stacked) ===== */
.landing-highlight-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(100, 140, 220, 0.12);
  margin-bottom: 12px;
}

/* ===== DESKTOP LANDING REFINEMENTS ===== */
@media (min-width: 769px) {
  .landing-icon-list-item + .landing-icon-list-item {
    border-top: 1px solid rgba(0, 234, 255, 0.12);
    padding-top: 18px;
  }

  .landing-feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }
  .landing-feature-icon {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
    align-self: center;
  }
  .landing-feature-card h3 {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.18);
    margin-bottom: 12px;
  }
  .landing-feature-card p {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .landing-highlight.glass-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
  }
  .landing-highlight .landing-card-accent {
    grid-column: 1 / -1;
  }
  .landing-highlight .landing-highlight-icon {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    margin-bottom: 0;
  }
  .landing-highlight h3 {
    grid-row: 2;
    grid-column: 2;
    align-self: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.18);
    margin-bottom: 12px;
  }
  .landing-highlight p {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .landing-crypto-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }
  .landing-benefit-icon {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
    align-self: center;
  }
  .landing-crypto-benefit h3 {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.18);
    margin-bottom: 12px;
  }
  .landing-crypto-benefit p {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .landing-use-case.glass-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
  }
  .landing-use-case-icon {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
    align-self: center;
  }
  .landing-use-case h3 {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.25);
    margin-bottom: 12px;
  }
  .landing-use-case p {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .shell-sidebar { position: fixed; left: 0; top: 0; z-index: 200; width: var(--sidebar-width) !important; min-width: var(--sidebar-width) !important; transform: translateX(-100%); transition: transform var(--anim-slow); overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; }
  .app-shell.sidebar-open .shell-sidebar { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
  .sidebar-collapsed .logo-text,
  .sidebar-collapsed .sidebar-profile-info,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .new-chat-label,
  .sidebar-collapsed .section-label-text { display: unset; }
  .sidebar-collapsed .sidebar-collapsed-icons { display: none !important; }
  .sidebar-collapsed .sidebar-section { display: block !important; }
  .sidebar-collapsed .sidebar-header { flex-direction: row; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 199; background: rgba(0,0,0,0.5); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-collapse-btn { color: #ff3333; filter: drop-shadow(0 0 4px rgba(255, 51, 51, 0.6)); }
  .sidebar-collapse-btn:hover { color: #ff5555; filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8)); }
  .topbar-menu-btn { display: flex; }
  .app-shell.sidebar-open .sidebar-header { padding-left: 72px; }
  .topbar-logout-label { display: none; }
  .topbar-logout-btn { padding: 6px 8px; }
  .topbar-avatar { width: 22px; height: 22px; }
  .topbar-sep { display: none; }
  .topbar-user-ctrl { gap: 8px; }
  #chat-page { flex-direction: column; }

  html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100vw !important; }
  .chat-main { min-height: 0; height: 100%; overflow: hidden; }
  .chat-main.welcome-state { padding-top: 0; padding-bottom: 0; overflow-y: auto; overflow-x: hidden; justify-content: center; align-items: center; height: 100%; }
  .chat-main.welcome-state .chat-messages { max-width: 100%; flex: 0 0 auto !important; padding-top: 0 !important; }
  .chat-main.welcome-state .chat-input-area { max-width: 100%; padding: 0 16px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto !important; margin-top: 24px; }
  .welcome-message { padding: 20px 16px 16px; }
  .welcome-logo-img.chat-welcome-logo {
    max-width: 280px !important; min-width: 200px !important; border-radius: 12px;
  }
  .welcome-logo-area { margin-bottom: 12px; }
  .chat-form { max-width: 100%; }
  .chat-composer { border-radius: 20px; padding: 8px 10px 8px 16px; border: 1px solid rgba(var(--accent-rgb), 0.35); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15), 0 0 40px rgba(var(--accent-rgb), 0.06), inset 0 0 12px rgba(var(--accent-rgb), 0.04); }
  .chat-composer:focus-within { border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.2), 0 0 50px rgba(var(--accent-rgb), 0.08), inset 0 0 15px rgba(var(--accent-rgb), 0.05); }
  .chat-textarea { font-size: 16px; padding: 14px 0; min-height: 80px; height: auto; max-height: 140px; overflow-y: auto; }
  .chat-composer-row { align-items: flex-end; }
  .composer-settings { gap: 6px; padding: 6px 0 2px; }
  .composer-setting-select { font-size: 11px; padding: 4px 20px 4px 8px; }
  .credit-estimator { margin-top: 8px; }
  .credit-estimator-inner { padding: 6px 10px; }
  .credit-estimate-text { font-size: 11px; }
  .chat-mobile-menu-btn { display: flex; position: fixed; top: 12px; left: 12px; z-index: 300; }
  .conv-menu-btn { opacity: 0.6 !important; }
  .conv-swipe-wrapper { margin: 0; border-radius: var(--radius-sm); }
  .conv-swipe-wrapper .conversation-item { margin-bottom: 0; }
  .conv-context-menu {
    left: 50% !important; transform: translateX(-50%);
    bottom: env(safe-area-inset-bottom, 12px); top: auto !important;
    min-width: 280px; border-radius: 16px; padding: 8px;
    background: #1e1e1e; border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.6);
  }
  .conv-menu-item { padding: 14px 16px; font-size: 15px; border-radius: 10px; }
  .conv-menu-overlay {
    position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.5);
  }

  .chat-messages { -webkit-overflow-scrolling: touch; padding-top: 56px !important; min-height: 80px; flex: 1 1 0 !important; overflow-y: auto !important; }
  .chat-input-area { padding: 8px 12px 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0 !important; flex-grow: 0 !important; max-height: 45vh; overflow-y: auto; }
  .generated-image { max-height: 50vh; max-width: 100%; width: auto; object-fit: contain; }
  .image-grid-item { max-width: 100%; }
  .image-grid { max-width: 100%; }
  .image-preview-container { overflow: visible; }
  .image-preview-container img { max-height: 60vh; width: auto; object-fit: contain; }
  .cc-panels-row { grid-template-columns: 1fr; }
  .cc-header { flex-direction: column; }
  .admin-active-users-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-tagline-stack span { font-size: 20px; }
  .landing-section-title { font-size: 24px; }
  .landing-features-grid { grid-template-columns: 1fr; }
  .landing-highlight-grid { grid-template-columns: 1fr; }
  .landing-blocked-grid { grid-template-columns: 1fr; }
  .landing-crypto-benefits { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: repeat(2, 1fr); }
  .landing-use-cases { grid-template-columns: 1fr; }
  .landing-tech-grid { grid-template-columns: 1fr; }
  .landing-pricing-grid { grid-template-columns: 1fr; }
  .landing-capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-gate-row { flex-direction: column; }
  .landing-gate-arrow { transform: rotate(90deg); }
  .landing-gate.glass-card { max-width: 100%; }
  .landing-crypto-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; justify-items: center; }
  .landing-crypto-icon svg { width: 44px; height: 44px; }
  .landing-stats-row { gap: 24px; }
  .landing-stat-value { font-size: 22px; }
  .landing-section-divider { padding: 28px 0; }
  .landing-info-banner.glass-card { flex-direction: column; gap: 10px; }
  .mobile-br { display: block; }
  .landing-content { margin-top: 20px; padding-top: 0; }
  .landing-section { padding: 40px 20px; }
  .landing-hero-visual { padding-top: 30px; }
  .landing-hero-media { width: 100%; max-width: none; mask-image: none; -webkit-mask-image: none; }
  .landing-top-bar {
    flex-direction: column;
    padding: 0;
    min-height: auto;
  }
  .landing-auth-ctrl {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    justify-content: flex-end;
    padding: 6px 14px 0;
    width: 100%;
  }
  .landing-login-btn { padding: 4px 12px; font-size: 12px; }
  .landing-auth-user { gap: 8px; }
  .landing-auth-avatar { width: 22px; height: 22px; }
  .landing-auth-status { font-size: 11px; }
  .landing-auth-sep { font-size: 11px; }
  .landing-auth-logout { font-size: 11px; }
  .landing-nav { gap: 0; padding: 14px 6px 8px; overflow: hidden; justify-content: center; flex-wrap: nowrap; align-items: center; }
  .landing-nav-link { padding: 4px 0; font-size: 11px; background: none !important; border-radius: 0; }
  .landing-nav-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-cyan); flex-shrink: 0; margin: 0 5px; }
  .back-to-top { bottom: 16px; right: 12px; width: 32px; height: 32px; opacity: 0.5; pointer-events: auto; border: 1px solid rgba(var(--accent-rgb), 0.2); box-shadow: none; background: rgba(6, 10, 20, 0.7); }
  .back-to-top svg { width: 14px; height: 14px; }
  .back-to-top.visible { opacity: 0.7; }
  .neon-logo-frame { width: 95%; max-width: 600px; padding: 14px 20px; min-height: 140px; }
  #home-page.landing::after { display: none; }
  .profile-menu { left: 8px; right: 8px; width: auto; }
  .settings-overlay { background: rgba(0,0,0,1); backdrop-filter: none; }
  .settings-modal { flex-direction: column; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; background: #0d0d0d; }
  .settings-sidebar { width: 100%; min-width: 100%; flex: 1; max-height: none; border-right: none; border-bottom: none; background: #0d0d0d; overflow-y: auto; }
  .settings-content { background: #0d0d0d; display: none; flex: 1; }
  .settings-sidebar.settings-mobile-hidden { display: none; }
  .settings-content.settings-mobile-active { display: flex; flex-direction: column; }
  .settings-mobile-back-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d; flex-shrink: 0;
  }
  .settings-mobile-back-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; color: var(--accent-cyan); font-family: inherit;
    font-size: 15px; font-weight: 600; cursor: pointer; padding: 4px 0;
  }
  .settings-mobile-back-btn svg { color: var(--accent-cyan); }
  .settings-panel-wrapper { flex: 1; overflow-y: auto; padding: 24px; }

  .dash-card-body h3, .dash-panel-header h2, .dash-title { color: var(--accent-cyan); -webkit-text-fill-color: var(--accent-cyan); }
  .dash-card-body p { color: #ffffff; }
  .dash-panel-body p { color: #ffffff; }
  .dash-subtitle { color: #e0e0e0; }
  .dash-stat-label { color: #cccccc; }
  .dash-stat-value { color: #ffffff; }
  .dash-info-label { color: #cccccc; }
  .dash-info-value { color: #ffffff; }
  .dash-empty-state { color: #aaaaaa; }
  .dash-footer-status { color: #bbbbbb; }
  .dash-card-tier-lock { color: #ffb74d; }
}

@media (max-width: 480px) {
  .shell-content { padding: 16px; }
  .chat-input-area { padding: 6px 10px 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 40vh; }
  .media-settings-controls { flex-direction: column; gap: 8px; }
  .media-setting-group { min-width: unset; }
  .welcome-mode-specs { gap: 6px; }

  .welcome-logo-img.chat-welcome-logo {
    max-width: 240px !important;
  }
  .welcome-message { padding: 20px 12px 12px; }
  .chat-main.welcome-state .chat-input-area { padding: 0 12px 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .chat-composer { padding: 8px 6px 8px 12px; border-radius: 18px; }
  .chat-textarea { font-size: 16px; padding: 14px 0; min-height: 80px; height: auto; max-height: 120px; overflow-y: auto; }
  .gen-type-select { font-size: 10px; padding: 4px 18px 4px 8px; }
  .chat-send-btn { width: 36px; height: 36px; }

  .hero-play-btn, .hero-stop-btn { display: none !important; }
  .mobile-br { display: block !important; }
  .landing-hero { padding-left: 16px; padding-right: 16px; padding-bottom: 32px; }
  .landing-tagline-stack span { font-size: 17px; }
  .landing-content { margin-top: 20px; padding-top: 0; }
  .landing-section { padding: 32px 16px; }
  .landing-capabilities-grid { grid-template-columns: 1fr; }
  .landing-comparison-table th, .landing-comparison-table td { padding: 8px 6px; font-size: 11px; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-stats-row { gap: 16px; }
  .landing-stat-value { font-size: 20px; }
  .landing-crypto-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; justify-items: center; }
  .landing-crypto-icon svg { width: 38px; height: 38px; }
  .landing-section-icon { width: 52px; height: 52px; }
  .landing-section-icon svg { width: 28px; height: 28px; }
  .landing-step-number { width: 40px; height: 40px; font-size: 16px; }
  .landing-verification-card.glass-card { padding: 32px 20px; }
  .landing-pricing-crypto-note.glass-card { flex-direction: column; text-align: center; }
}

@media (max-height: 700px) and (max-width: 768px) {
  .welcome-logo-img.chat-welcome-logo { max-width: 260px !important; }
  .welcome-message { padding: 12px 12px 8px; }
  .welcome-logo-area { margin-bottom: 8px; }
  .welcome-logo-area { margin-bottom: 8px; }
}

/* Legacy class compatibility for existing components */
.chat-message { max-width: 800px; width: 100%; margin: 0 auto 16px; padding: 16px 20px; contain: content; position: relative; }
.chat-message.user { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.chat-message.assistant { background: transparent; padding: 16px 0; }
.chat-message.assistant .message-role { color: var(--accent-cyan); }
.chat-message.placeholder { opacity: 0.7; }
.code-block { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin: 10px 0; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; display: block; white-space: pre; }
.inline-code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; }
.message-time { font-size: 11px; color: var(--text-disabled); margin-top: 8px; }
.message-content-wrap { position: relative; padding-right: 60px; }
.msg-btn-group {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}
.chat-message:hover .msg-btn-group { opacity: 1; }
@media (hover: none) { .msg-btn-group { opacity: 0.6; } }
.msg-copy-btn, .msg-delete-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.msg-copy-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.msg-copy-btn.copied { color: var(--success, #22c55e); border-color: var(--success, #22c55e); }
.msg-delete-btn { color: #ef4444; border-color: rgba(239,68,68,0.4); }
.msg-delete-btn:hover { color: #fff; background: #ef4444; border-color: #ef4444; }
.img-delete-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  border: 2px solid #ef4444;
  color: #ef4444; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  animation: neonPulseRed 2s ease-in-out infinite;
}
.img-delete-btn:hover {
  background: rgba(239, 68, 68, 0.35); transform: scale(1.15);
  box-shadow: 0 0 16px rgba(239,68,68,0.6);
}
@keyframes neonPulseRed {
  0%, 100% { box-shadow: 0 0 6px rgba(239,68,68,0.4), 0 0 12px rgba(239,68,68,0.2); }
  50% { box-shadow: 0 0 12px rgba(239,68,68,0.7), 0 0 24px rgba(239,68,68,0.4); }
}
.image-prompt, .video-prompt { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 4px; }

.video-preview-container { text-align: center; margin: 8px 0; }
.video-preview-empty { color: var(--text-muted); font-style: italic; }
.video-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.video-grid.single { justify-content: center; }
.video-grid-item {
  position: relative; display: inline-block; border-radius: var(--radius-md); overflow: hidden;
  background: rgba(0,0,0,0.3); max-width: 100%;
}
.video-grid.single .video-grid-item { max-width: 100%; }
.generated-video {
  display: block; max-width: 100%; max-height: 60vh; border-radius: var(--radius-md);
  background: #000; outline: none;
}
.video-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 11px; color: var(--text-muted);
  background: rgba(0,0,0,0.4); border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.video-fullscreen-btn, .video-download-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 2px 6px; border-radius: 4px; transition: color 0.15s, background 0.15s;
  margin-left: 6px;
}
.video-fullscreen-btn:hover, .video-download-btn:hover {
  color: var(--text-primary); background: rgba(255,255,255,0.1);
}
.video-action-btns {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 5;
}
.video-load-error {
  padding: 20px; color: var(--error); font-size: 13px; text-align: center;
}
.video-meta {
  font-size: 11px; color: var(--text-muted); margin-top: 6px; text-align: center;
}
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; color: var(--text-muted);
}
.video-placeholder-spinner { margin-bottom: 12px; }

.conv-title-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.conv-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.conv-menu-btn { background: none; border: none; color: var(--text-disabled); cursor: pointer; padding: 2px; border-radius: 4px; opacity: 0; transition: opacity 0.15s, color 0.15s; flex-shrink: 0; line-height: 1; }
.conversation-item:hover .conv-menu-btn { opacity: 1; }
.conv-menu-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.conv-date { font-size: 11px; color: var(--text-disabled); margin-top: 2px; }
.empty-list { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 12px; }
.conv-context-menu { position: fixed; z-index: 9999; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.4); min-width: 160px; padding: 4px; }
.conv-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; color: var(--text-secondary); font-size: 13px; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s; }
.conv-menu-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.conv-menu-item.transfer { color: var(--accent, #00e5ff); }
.conv-menu-item.transfer:hover { background: rgba(var(--accent-rgb),0.1); color: #33ecff; }
.conv-menu-item.danger { color: var(--accent-error, #ef4444); }
.conv-menu-item.danger:hover { background: rgba(239,68,68,0.1); color: #ff6b6b; }

.renewal-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 20px;
  border: 1px solid;
}
.renewal-banner-icon { flex-shrink: 0; margin-top: 2px; }
.renewal-banner-content { flex: 1; min-width: 0; }
.renewal-banner-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.renewal-banner-desc {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
}
.renewal-banner-btn {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.renewal-banner-btn:hover { opacity: 0.85; }
.renewal-notice {
  background: rgba(var(--accent-rgb),0.06);
  border-color: rgba(var(--accent-rgb),0.25);
  color: var(--text-primary);
}
.renewal-notice .renewal-banner-icon { color: var(--accent-cyan); }
.renewal-notice .renewal-banner-btn {
  background: var(--accent-cyan);
  color: #000;
}
.renewal-warning {
  background: rgba(255,183,77,0.08);
  border-color: rgba(255,183,77,0.3);
  color: var(--text-primary);
}
.renewal-warning .renewal-banner-icon { color: #ffb74d; }
.renewal-warning .renewal-banner-btn {
  background: #ffb74d;
  color: #000;
}
.renewal-critical {
  background: rgba(255,82,82,0.08);
  border-color: rgba(255,82,82,0.35);
  color: var(--text-primary);
}
.renewal-critical .renewal-banner-icon { color: #ff5252; }
.renewal-critical .renewal-banner-btn {
  background: #ff5252;
  color: #fff;
}
.renewal-expired {
  background: rgba(255,82,82,0.06);
  border-color: rgba(255,82,82,0.25);
  color: var(--text-primary);
}
.renewal-expired .renewal-banner-icon { color: #ff5252; }
.renewal-expired .renewal-banner-btn {
  background: var(--accent-cyan);
  color: #000;
}
.period-value { color: var(--text-secondary); }
.credits-value { color: var(--success); }
.invoice-memo-row { margin-top: 16px; }
.invoice-memo-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.memo-field {
  border-color: var(--accent-cyan) !important;
  background: rgba(var(--accent-rgb),0.04) !important;
}
.memo-warning {
  font-size: 11px;
  color: #ffb74d;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(255,183,77,0.08);
  border-radius: 6px;
  border-left: 3px solid #ffb74d;
}
.amount-exact-notice {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 8px 12px;
  background: rgba(var(--accent-rgb),0.06);
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan);
}
.conv-menu-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }

/* Admin ticker legacy classes */
.metric-ticker-container { display: flex; gap: 24px; animation: tickerScroll 40s linear infinite; white-space: nowrap; }
.metric-ticker-wrapper { overflow: hidden; }
.metric-ticker-track { display: flex; gap: 24px; }
.metric-ticker-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: var(--radius-sm); flex-shrink: 0; }
.metric-ticker-icon { font-size: 14px; flex-shrink: 0; }
.metric-ticker-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.metric-ticker-value { font-size: 13px; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-mono); }

.pool-status-panel {
  margin-top: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
}
.pool-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(var(--accent-rgb),0.03);
}
.pool-status-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pool-status-actions {
  display: flex;
  gap: 8px;
}
.pool-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
}
.pool-status-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.pool-status-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pool-status-asset {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.pool-status-mode {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-left: auto;
}
.pool-status-mode.mode-amount {
  background: rgba(var(--accent-rgb),0.12);
  color: var(--accent-cyan);
}
.pool-status-mode.mode-memo {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
}
.pool-status-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.pool-status-stats {
  display: flex;
  gap: 12px;
}
.pool-stat-item {
  text-align: center;
  flex: 1;
}
.pool-stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.pool-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.stat-active .pool-stat-value { color: var(--accent-cyan); }
.stat-paid .pool-stat-value { color: #22c55e; }
.stat-digits .pool-stat-value { color: var(--text-muted); font-size: 14px; }
.pool-status-active-indicator {
  margin-top: 10px;
  font-size: 11px;
  color: var(--accent-cyan);
  padding: 4px 8px;
  background: rgba(var(--accent-rgb),0.06);
  border-radius: var(--radius-sm);
}
.cloud-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  z-index: 10000;
  animation: cloudToastIn 0.3s ease, cloudToastOut 0.3s ease 3.5s forwards;
  pointer-events: none;
}
.cloud-toast-success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}
.cloud-toast-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}
@keyframes cloudToastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cloudToastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.dc-cloud-providers .settings-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 6px;
}
.dc-cloud-providers .settings-row:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

#onramp-link-container {
  text-align: center;
  margin: 12px 0 4px;
}
.onramp-trigger-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 1px;
}
.onramp-trigger-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.onramp-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.onramp-overlay.open { opacity: 1; }

.onramp-panel {
  background: var(--bg-panel-solid, #161b22);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.onramp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.onramp-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.onramp-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}
.onramp-close:hover { color: var(--text-primary); }

.onramp-guide {
  max-width: 560px;
}
.onramp-guide-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}
.onramp-guide-step {
  margin-bottom: 24px;
}
.onramp-guide-step:last-child {
  margin-bottom: 0;
}
.onramp-guide-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.onramp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple, #7c3aed));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onramp-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.onramp-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
  padding-left: 40px;
}
.onramp-step-desc strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.onramp-exchanges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 40px;
}
.onramp-exchange-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}
.onramp-exchange-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(var(--accent-rgb),0.05);
}
.onramp-ex-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.onramp-ex-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.onramp-ex-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.onramp-ex-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.onramp-ex-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.onramp-ex-coins {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.onramp-ex-coin {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-weight: 500;
}
.onramp-ex-coin-match {
  background: rgba(var(--accent-rgb),0.12);
  color: var(--accent-cyan);
}
.onramp-ex-arrow {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.onramp-exchange-card:hover .onramp-ex-arrow {
  color: var(--accent-cyan);
}

.onramp-wallet-display {
  margin: 8px 0 0 40px;
  padding: 12px 14px;
  background: rgba(var(--accent-rgb),0.04);
  border: 1px solid rgba(var(--accent-rgb),0.15);
  border-radius: var(--radius-md, 8px);
}
.onramp-wallet-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.onramp-wallet-addr {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: 8px;
  line-height: 1.5;
}
.onramp-copy-btn {
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  color: var(--accent-cyan);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.onramp-copy-btn:hover {
  background: rgba(var(--accent-rgb),0.18);
  border-color: var(--accent-cyan);
}
.onramp-copy-btn.copied {
  background: rgba(0,200,83,0.15);
  border-color: rgba(0,200,83,0.3);
  color: #00c853;
}

.onramp-memo-warn {
  margin: 10px 0 0 40px;
  padding: 10px 12px;
  background: rgba(255,82,82,0.08);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  color: #ff8a80;
  line-height: 1.5;
}
.onramp-memo-warn strong {
  color: #ff5252;
}

.onramp-guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(255,193,7,0.06);
  border: 1px solid rgba(255,193,7,0.15);
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.onramp-tip-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.export-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.export-modal-overlay.visible {
  opacity: 1;
}
.export-modal {
  background: var(--bg-primary, #0d0f11);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.export-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.export-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary, #fff);
}
.export-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary, #aaa);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.export-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.export-modal-body {
  padding: 20px 24px;
}
.export-media-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.15);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary, #ccc);
}
.export-option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.export-option-card:hover {
  background: rgba(var(--accent-rgb),0.06);
  border-color: rgba(var(--accent-rgb),0.3);
  transform: translateY(-1px);
}
.export-option-card:active {
  transform: translateY(0);
}
.export-option-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.export-option-content {
  flex: 1;
  min-width: 0;
}
.export-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}
.export-option-desc {
  font-size: 13px;
  color: var(--text-secondary, #999);
  line-height: 1.5;
}
.export-modal-footer {
  padding: 12px 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.export-status {
  font-size: 13px;
  color: var(--text-secondary, #999);
  min-height: 20px;
}
.export-status-loading {
  color: var(--accent, #00e5ff);
}
.export-status-success {
  color: var(--success, #4ade80);
}
.export-status-error {
  color: var(--error, #ef4444);
}
.export-action-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent, #00e5ff), var(--accent-secondary, #7c3aed));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.export-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.export-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.export-cancel-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary, #aaa);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.export-cancel-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.transfer-info {
  text-align: center;
}
.transfer-info svg {
  margin-bottom: 12px;
}
.transfer-info p {
  color: var(--text-secondary, #ccc);
  font-size: 14px;
  margin: 8px 0;
}
.transfer-steps {
  text-align: left;
  margin: 16px auto;
  max-width: 380px;
  padding-left: 24px;
  color: var(--text-secondary, #ccc);
  font-size: 13px;
  line-height: 2;
}
.transfer-steps li {
  color: var(--text-primary, #eee);
}
.transfer-note {
  font-size: 12px !important;
  color: var(--text-muted, #777) !important;
  font-style: italic;
  margin-top: 12px !important;
}
.dc-transfer-btn {
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.15), rgba(124,58,237,0.15)) !important;
  border-color: rgba(var(--accent-rgb),0.3) !important;
  color: var(--accent, #00e5ff) !important;
}
.acct-avatar-section {
  display: flex; align-items: center; gap: 16px; padding: 8px 0;
}
.acct-avatar-wrapper {
  width: 72px; height: 72px; border-radius: 50%; position: relative;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.acct-avatar-wrapper:hover { opacity: 0.85; }
.acct-avatar-wrapper.acct-avatar-uploading { opacity: 0.5; pointer-events: none; }
.acct-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.acct-avatar-placeholder {
  font-size: 28px; font-weight: 700; color: #fff;
}
.acct-avatar-edit-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; color: white; border-radius: 50%;
}
.acct-avatar-wrapper:hover .acct-avatar-edit-overlay { opacity: 1; }
.acct-avatar-info {
  display: flex; flex-direction: column; gap: 4px;
}
.acct-avatar-hint {
  font-size: 13px; color: var(--text-secondary);
}
.acct-avatar-hint-sub {
  font-size: 11px; color: var(--text-muted);
}
.acct-avatar-remove-btn {
  background: none; border: none; color: var(--error);
  font-size: 12px; cursor: pointer; padding: 0; margin-top: 2px;
  font-family: inherit; text-align: left;
}
.acct-avatar-remove-btn:hover { text-decoration: underline; }

.video-disclaimer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video-disclaimer-modal {
  background: var(--bg-secondary, #0f1623);
  border: 1px solid rgba(0,234,255,0.25);
  border-radius: 16px;
  max-width: 520px; width: 90%;
  padding: 32px 28px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,234,255,0.06);
}
.video-disclaimer-modal h3 {
  font-size: 17px; font-weight: 600; color: var(--accent, #00eaff);
  margin-bottom: 16px; text-align: center;
}
.video-disclaimer-modal p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-secondary, #a0aec0);
  margin-bottom: 14px;
}
.video-disclaimer-modal p:last-of-type {
  margin-bottom: 24px;
}
.video-disclaimer-modal p strong {
  color: var(--text-primary, #e8ecf4); font-weight: 500;
}
.video-disclaimer-actions {
  display: flex; gap: 12px; justify-content: flex-end;
}
.video-disclaimer-actions button {
  padding: 10px 24px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; font-family: inherit;
  transition: background 0.2s, opacity 0.2s;
}
.video-disclaimer-check {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 6px;
  cursor: pointer; font-size: 14px; color: var(--text-secondary, #a0aec0);
  user-select: none;
}
.video-disclaimer-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent, #00eaff);
  cursor: pointer; flex-shrink: 0;
}
.video-disclaimer-check span { line-height: 1.4; }
.video-disclaimer-agree {
  background: var(--accent, #00eaff); color: #060a14;
}
.video-disclaimer-agree:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.video-disclaimer-agree:not(:disabled):hover { opacity: 0.85; }
.video-disclaimer-cancel {
  background: rgba(255,255,255,0.06); color: var(--text-secondary, #a0aec0);
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.video-disclaimer-cancel:hover { background: rgba(255,255,255,0.1); }
