/* [project]/src/app/globals.css [app-client] (css) */
*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f1f5f9;
  --color: #0f172a;
  --scroll-track: #e2e8f0;
  --scroll-thumb: #cbd5e1;
  --scroll-thumb-hover: #94a3b8;
  --glass-bg: #fff9;
  --glass-border: #94a3b833;
}

.dark {
  --bg: #0b1120;
  --color: #e2e8f0;
  --scroll-track: #1e293b;
  --scroll-thumb: #334155;
  --scroll-thumb-hover: #475569;
  --glass-bg: #0f172a99;
  --glass-border: #3341554d;
}

html {
  height: 100dvh;
  transition: background-color .3s, color .3s;
}

body {
  background: var(--bg);
  color: var(--color);
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition: background-color .3s, color .3s;
}

*, :before, :after {
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.chat-input-bar {
  padding-bottom: max(.75rem,env(safe-area-inset-bottom, 0px));
}

@media (pointer: coarse) {
  input, textarea, select {
    -webkit-text-size-adjust: 100%;
    font-size: 16px !important;
  }
}

.pulse {
  animation: 2s cubic-bezier(.4, 0, .6, 1) infinite pulse;
}

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

  50% {
    opacity: .5;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.thinking-pulse {
  animation: 1.5s ease-in-out infinite thinkPulse;
}

@keyframes thinkPulse {
  0%, 100% {
    opacity: .6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes thinkSlide {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: .3s ease-out fadeInUp;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

.scrollbar-x-thin {
  scrollbar-width: thin;
}

.scrollbar-x-thin::-webkit-scrollbar {
  height: 3px;
}

.scrollbar-x-thin::-webkit-scrollbar-track {
  background: none;
}

.scrollbar-x-thin::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 2px;
}

.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.prose table {
  table-layout: auto;
  width: auto;
  min-width: 100%;
}

.prose td, .prose th {
  white-space: nowrap;
  padding: .625rem .875rem;
}

.prose td:first-child, .prose th:first-child {
  padding-left: 0;
}

.prose table {
  display: block;
  overflow-x: auto;
}

@media (max-width: 640px) {
  .prose td, .prose th {
    white-space: normal;
    padding: .5rem .625rem;
  }
}

:root {
  --font-sans: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --bg-1: #fff;
  --bg-2: #f4f6f9;
  --bg-3: #e9edf2;
  --ink: #121417;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --ink-4: #9aa3af;
  --hairline: #e7ebf0;
  --accent: #389b75;
  --accent-soft: #389b751f;
  --sidebar-bg: #fff;
  --app-bg: #fff;
}

.dark {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg-1: #15181d;
  --bg-2: #1c2026;
  --bg-3: #242a32;
  --ink: #f3f5f8;
  --ink-2: #c6cdd6;
  --ink-3: #8f98a5;
  --ink-4: #646e7c;
  --hairline: #272d36;
  --accent: #4aad8a;
  --accent-soft: #4aad8a24;
  --sidebar-bg: #12151a;
  --app-bg: #0d1015;
}

.app-shell {
  background: var(--app-bg);
  width: 100%;
  height: 100%;
  color: var(--ink);
  display: flex;
  position: relative;
  overflow: hidden;
}

.sidebar-backdrop {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 40;
  background: #080a0e80;
  display: none;
  position: fixed;
  inset: 0;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--hairline);
  width: 272px;
  min-width: 272px;
  height: 100%;
  padding: max(14px,env(safe-area-inset-top, 0px)) 12px max(12px,env(safe-area-inset-bottom, 0px));
  z-index: 50;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), width .3s cubic-bezier(.4, 0, .2, 1), min-width .3s cubic-bezier(.4, 0, .2, 1), padding .3s cubic-bezier(.4, 0, .2, 1), border-color .3s;
  display: flex;
  overflow: hidden;
}

.sidebar.no-transition {
  transition: none !important;
}

.sidebar .brand, .sidebar .new-chat, .sidebar .sb-foot {
  flex-shrink: 0;
}

.sb-scroll {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-height: 0;
  display: flex;
  overflow: hidden auto;
}

.sb-scroll::-webkit-scrollbar {
  width: 5px;
}

.sb-scroll::-webkit-scrollbar-track {
  background: none;
}

.sb-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 3px;
}

@media (min-width: 769px) {
  .sidebar {
    position: relative;
  }

  .sidebar.closed {
    width: 72px;
    min-width: 72px;
    padding: 14px 10px 12px;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .sidebar.closed .brand {
    justify-content: center;
  }

  .sidebar.closed .brand-ident {
    display: none;
  }

  .sidebar.closed .new-chat {
    justify-content: center;
  }

  .sidebar.closed .new-chat .txt, .sidebar.closed .new-chat kbd {
    display: none;
  }

  .sidebar.closed .sb-action {
    justify-content: center;
    padding: 8px;
  }

  .sidebar.closed .sb-action .label, .sidebar.closed .sb-action .soon, .sidebar.closed .sb-action kbd, .sidebar.closed .sb-label, .sidebar.closed .recent-list {
    display: none;
  }

  .sidebar.closed .user-menu-btn {
    justify-content: center;
    padding: 8px;
  }

  .sidebar.closed .um-name, .sidebar.closed .um-star, .sidebar.closed .um-chevron {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(0);
    box-shadow: 0 0 40px #00000040;
  }

  .sidebar.closed {
    border-right: 1px solid var(--hairline);
    width: 272px;
    min-width: 272px;
    padding: 14px 12px 12px;
    transform: translateX(-110%);
  }

  .sidebar-backdrop {
    display: block;
  }
}

.brand {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2px;
  display: flex;
}

.brand-logo {
  color: #fff;
  background: linear-gradient(135deg, #4aad8a, #389b75);
  border-radius: 9px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
  box-shadow: 0 2px 6px #389b754d;
}

.brand-name {
  font-family: var(--font-sans);
  letter-spacing: -.3px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.brand-accent {
  color: var(--accent);
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  color: var(--ink-4);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.sidebar-toggle:hover {
  background: var(--bg-2);
  color: var(--ink-2);
}

.new-chat {
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  width: 100%;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  transition: all .15s;
  display: flex;
  box-shadow: 0 1px 2px #1018280d;
}

.new-chat:hover {
  background: var(--bg-2);
  border-color: var(--ink-4);
}

.new-chat .row {
  align-items: center;
  gap: 8px;
  display: flex;
}

kbd {
  font-family: var(--font-mono);
  background: var(--bg-3);
  color: var(--ink-4);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
}

.sb-section {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.sb-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.sb-action {
  width: 100%;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  transition: all .15s;
  display: flex;
}

.sb-action:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.sb-action .icon {
  color: var(--ink-4);
  flex-shrink: 0;
}

.sb-action:hover .icon {
  color: var(--ink-2);
}

.sb-action .label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sb-action .soon {
  letter-spacing: .08em;
  background: var(--bg-3);
  color: var(--ink-4);
  border-radius: 5px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 700;
}

.sb-action.dim {
  opacity: .55;
}

.sb-action.dim:hover {
  opacity: 1;
}

.sb-action.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.sb-action.active .icon {
  color: var(--accent);
}

.sb-action.locked {
  opacity: .6;
}

.sb-action.locked .icon {
  color: var(--ink-4);
}

.sb-action.locked .lock-badge {
  letter-spacing: .08em;
  color: var(--accent);
  background: linear-gradient(135deg, #8b5cf62e, #3b82f62e);
  border-radius: 5px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 700;
}

.sb-action.locked:hover {
  opacity: .85;
}

.tb-link.locked {
  opacity: .55;
}

.tb-link.locked:hover {
  opacity: .85;
  color: var(--ink-3);
}

.sb-menu {
  border-top: 1px solid var(--hairline);
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  padding-top: 12px;
  display: flex;
}

.recent-list {
  border-top: 1px solid var(--hairline);
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding-top: 12px;
  display: flex;
}

.recent-item {
  width: 100%;
  color: var(--ink-2);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  transition: all .15s;
  display: flex;
}

.recent-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.recent-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.recent-item .chat-ic {
  color: var(--ink-4);
  flex-shrink: 0;
}

.recent-item.active .chat-ic {
  color: var(--accent);
}

.recent-item .label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.row-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  display: none;
}

.recent-item:hover .row-actions {
  display: flex;
}

.row-action {
  width: 24px;
  height: 24px;
  color: var(--ink-4);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.row-action:hover {
  background: var(--bg-3);
  color: var(--ink);
}

.row-action.fav.on {
  color: var(--accent);
}

.row-action.del:hover {
  color: #e5484d;
  background: #e5484d1f;
}

.sb-empty {
  color: var(--ink-4);
  text-align: center;
  padding: 12px 8px;
  font-size: 12px;
}

.sb-foot {
  border-top: 1px solid var(--hairline);
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
  display: flex;
}

.topbar {
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-1);
  padding: max(12px,env(safe-area-inset-top, 0px)) 24px 12px;
  align-items: center;
  gap: 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.mobile-menu-btn {
  width: 34px;
  height: 34px;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: none;
}

.mobile-menu-btn:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.tb-mobile-brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  align-items: center;
  display: none;
}

.tb-mobile-brand .tb-mobile-name {
  letter-spacing: -.3px;
}

.tb-mobile-brand > span:last-child {
  color: var(--accent);
}

.space {
  flex: 1;
}

.tb-search {
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  width: 320px;
  max-width: 36vw;
  color: var(--ink-3);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  position: relative;
}

.tb-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tb-search input {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-sans);
  background: none;
  border: none;
  outline: none;
  flex: 1;
}

.tb-search input::placeholder {
  color: var(--ink-4);
}

.tb-search-spinner {
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  animation: .7s linear infinite tb-spin;
}

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

.tb-search-dropdown {
  z-index: 50;
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  border-radius: 12px;
  max-height: 320px;
  padding: 4px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 12px 32px #00000024;
}

.tb-search-empty {
  text-align: center;
  color: var(--ink-4);
  padding: 14px;
  font-size: 13px;
}

.tb-search-result {
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  transition: background .12s;
  display: flex;
}

.tb-search-result:hover {
  background: var(--bg-2);
}

.tb-search-symbol {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tb-search-name {
  min-width: 0;
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 12px;
  overflow: hidden;
}

.tb-search-price {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tb-search-price.up {
  color: #0a9d58;
}

.tb-search-price.down {
  color: #d93025;
}

.tb-mobile-nepse {
  background: var(--bg-3);
  border-radius: 8px;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  display: none;
}

.tb-mobile-nepse .mn-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 1px;
}

.tb-mobile-nepse .mn-dot.live {
  background: #0a9d58;
  animation: 2s cubic-bezier(.4, 0, .6, 1) infinite pulse;
}

.tb-mobile-nepse .mn-dot.closed {
  background: #94a3b8;
}

.tb-mobile-nepse .mn-ltp {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.tb-mobile-nepse .mn-ltp.up {
  color: #0a9d58;
}

.tb-mobile-nepse .mn-ltp.down {
  color: #d93025;
}

.tb-mobile-nepse .mn-chg {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.tb-mobile-nepse .mn-chg.up {
  color: #0a9d58;
}

.tb-mobile-nepse .mn-chg.down {
  color: #d93025;
}

.tb-mobile-actions {
  align-items: center;
  gap: 2px;
  margin-left: auto;
  display: none;
}

.tb-icon-action {
  width: 34px;
  height: 34px;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.tb-icon-action:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.notif-root {
  flex-shrink: 0;
  position: relative;
}

.notif-bell {
  position: relative;
}

.notif-badge {
  color: #fff;
  pointer-events: none;
  min-width: 15px;
  height: 15px;
  box-shadow: 0 0 0 2px var(--bg-1);
  background: #e11d48;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  display: inline-flex;
  position: absolute;
  top: 4px;
  right: 4px;
}

.notif-dropdown {
  z-index: 60;
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  border-radius: 14px;
  width: 360px;
  max-width: min(360px, 100vw - 24px);
  animation: .15s notifIn;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px #00000029;
}

@keyframes notifIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-header {
  border-bottom: 1px solid var(--hairline);
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  display: flex;
}

.notif-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.notif-mark-read {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: none;
  border: none;
  padding: 0;
}

.notif-mark-read:hover {
  opacity: .8;
}

.notif-list {
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  padding: 6px;
  display: flex;
  overflow-y: auto;
}

.notif-empty {
  text-align: center;
  color: var(--ink-4);
  padding: 28px 16px;
  font-size: 13px;
}

.notif-item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
  background: none;
  border: none;
  border-radius: 10px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  transition: background .12s;
  display: flex;
}

.notif-item:hover {
  background: var(--bg-2);
}

.notif-item.unread, .notif-item.unread:hover {
  background: var(--accent-soft);
}

.notif-icon {
  background: var(--bg-3);
  width: 32px;
  height: 32px;
  color: var(--ink-3);
  border-radius: 9px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.notif-icon.type-alert {
  color: #e11d48;
  background: #e11d481f;
}

.notif-icon.type-trade {
  color: #0a9d58;
  background: #0a9d581f;
}

.notif-icon.type-mention {
  background: var(--accent-soft);
  color: var(--accent);
}

.notif-icon.type-system {
  background: var(--bg-3);
  color: var(--ink-3);
}

.notif-body {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.notif-item-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.notif-item-text {
  color: var(--ink-3);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.notif-item-time {
  color: var(--ink-4);
  margin-top: 2px;
  font-size: 11px;
}

.notif-dot {
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 6px;
}

.notif-footer {
  border-top: 1px solid var(--hairline);
  padding: 10px 12px;
}

.notif-view-all {
  background: var(--bg-2);
  width: 100%;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 8px;
  transition: background .12s;
}

.notif-view-all:hover {
  background: var(--bg-3);
  color: var(--ink);
}

@media (max-width: 768px) {
  .notif-dropdown {
    width: auto;
    max-width: none;
    left: 12px;
    right: 12px;
    top: calc(max(12px,env(safe-area-inset-top, 0px)) + 52px);
    position: fixed;
  }
}

.ask-cta {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  background: linear-gradient(135deg, #4aad8a, #389b75);
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  transition: all .15s;
  display: flex;
  box-shadow: 0 2px 8px #389b754d;
}

.ask-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #389b7566;
}

.tb-nav {
  align-items: center;
  gap: 2px;
  display: flex;
}

.tb-link {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 7px 12px;
  transition: all .15s;
}

.tb-link:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.tb-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .tb-nav, .sb-desktop-tools {
    display: none !important;
  }

  .mobile-only {
    flex-direction: column;
    display: flex !important;
  }

  .sidebar.closed .mobile-only, .sidebar.closed .sb-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-btn, .tb-mobile-brand, .tb-mobile-nepse, .tb-mobile-actions {
    display: flex;
  }
}

.mobile-search-overlay {
  z-index: 80;
  flex-direction: column;
  animation: .15s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.mobile-search-backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0006;
  position: absolute;
  inset: 0;
}

.mobile-search-card {
  z-index: 1;
  background: var(--bg-1);
  margin-top: max(48px,env(safe-area-inset-top, 0px));
  flex-direction: column;
  flex: 1;
  animation: .25s cubic-bezier(.32, .72, 0, 1) slideUp;
  display: flex;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mention-tag {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.unread-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.stock-sheet-backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  background: #00000073;
  transition: opacity .3s;
  position: fixed;
  inset: 0;
}

.stock-sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.stock-sheet {
  z-index: 70;
  background: var(--bg-1);
  touch-action: none;
  border-radius: 16px 16px 0 0;
  flex-direction: column;
  max-height: 85vh;
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  box-shadow: 0 -4px 24px #00000026;
}

.stock-sheet.open {
  display: flex;
  transform: translateY(0);
}

.stock-sheet-handle {
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
  justify-content: center;
  padding: 12px 0 6px;
  display: flex;
}

.stock-sheet-handle span {
  background: var(--bg-3);
  border-radius: 2px;
  width: 36px;
  height: 4px;
}

.stock-sheet-header {
  border-bottom: 1px solid var(--hairline);
  touch-action: none;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 10px;
  display: flex;
}

.stock-sheet-body {
  padding-bottom: max(16px,env(safe-area-inset-bottom, 0px));
  flex: 1;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .stock-sheet-backdrop, .stock-sheet {
    display: none !important;
  }
}

.tb-upgrade-btn {
  color: #d97706;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  background: #d9770614;
  border: 1px solid #d977064d;
  border-radius: 10px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  transition: all .15s;
  display: flex;
}

.tb-upgrade-btn:hover {
  background: #d9770629;
  border-color: #d9770680;
}

.upgrade-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.upgrade-header {
  text-align: center;
  margin-bottom: 40px;
}

.upgrade-title {
  color: var(--ink);
  letter-spacing: -.5px;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
}

.upgrade-subtitle {
  color: var(--ink-3);
  max-width: 480px;
  margin: 0 auto;
  font-size: 15px;
}

.upgrade-billing-toggle {
  background: var(--bg-2);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
  display: flex;
}

.upgrade-billing-btn {
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.upgrade-billing-btn:hover {
  color: var(--ink);
}

.upgrade-billing-btn.active {
  background: var(--bg-1);
  color: var(--ink);
  box-shadow: 0 1px 4px #00000014;
}

.upgrade-billing-save {
  color: #059669;
  white-space: nowrap;
  background: #0596691a;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.upgrade-plans {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  display: grid;
}

@media (max-width: 768px) {
  .upgrade-plans {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.upgrade-card {
  border: 1.5px solid var(--hairline);
  background: var(--bg-1);
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  transition: all .2s;
  display: flex;
  position: relative;
}

.upgrade-card:hover {
  border-color: var(--plan-border);
  box-shadow: 0 8px 32px #00000014;
}

.upgrade-card.selected {
  border-color: var(--plan-color);
  box-shadow: 0 0 0 3px var(--plan-color-bg),0 8px 32px #0000001a;
}

.upgrade-card.featured {
  border-color: var(--plan-border);
}

.upgrade-card-badge {
  background: var(--plan-color);
  color: #fff;
  letter-spacing: .03em;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.upgrade-card-icon {
  background: var(--plan-color-bg);
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  display: flex;
}

.upgrade-card-name {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.upgrade-card-price {
  align-items: baseline;
  gap: 2px;
  margin-bottom: 24px;
  display: flex;
}

.upgrade-price-amount {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
}

.upgrade-price-period {
  color: var(--ink-4);
  font-size: 14px;
  font-weight: 500;
}

.upgrade-card-features {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
  list-style: none;
  display: flex;
}

.upgrade-feature-item {
  color: var(--ink-2);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.upgrade-feature-item svg {
  flex-shrink: 0;
}

.upgrade-card-btn {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1.5px solid;
  border-radius: 10px;
  padding: 11px;
  transition: all .15s;
}

.upgrade-card-btn:hover {
  opacity: .85;
}

.login-container {
  min-height: 100dvh;
  font-family: var(--font-sans);
  display: flex;
}

.login-left {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #581c87 100%);
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 40px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-left-topbar {
  z-index: 2;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.login-topbar-logo {
  border-radius: 8px;
  box-shadow: 0 2px 8px #0003;
}

.login-topbar-text {
  color: #fff;
  text-shadow: 0 1px 8px #0000004d;
  font-size: 16px;
  font-weight: 700;
}

.left-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  position: relative;
}

.login-left-bottom {
  text-align: center;
  z-index: 2;
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}

.login-left-bottom p {
  color: #fff9;
  letter-spacing: .05em;
  font-size: 13px;
}

.left-content .logo {
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px #0000004d;
}

.brand-title {
  text-shadow: 0 2px 16px #0000004d;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
}

.brand-subtitle {
  opacity: .85;
  text-shadow: 0 1px 8px #0003;
  font-size: 16px;
}

.login-right {
  background: var(--bg-1);
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 40px;
  display: flex;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.step-header h1 {
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
}

.step-header .step-subtitle {
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 32px;
  font-size: 13px;
}

.email-form {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.form-field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.form-field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.form-field input {
  border: 1.5px solid var(--hairline);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.field-label-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.link-btn {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
}

.link-btn:hover {
  text-decoration: underline;
}

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

.field-error {
  color: #ef4444;
  margin-top: 2px;
  font-size: 12px;
}

.forgot-success {
  text-align: center;
  padding: 40px 20px;
}

.forgot-success p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}

.forgot-success p strong {
  color: var(--ink);
  font-weight: 600;
}

.terms-checkbox {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.terms-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.terms-checkbox.has-error, .terms-checkbox.has-error span {
  color: #ef4444;
}

.terms-checkbox.has-error input {
  accent-color: #ef4444;
}

.terms-checkbox span {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity .15s;
}

.primary-btn:hover {
  opacity: .9;
}

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

.reauth-message {
  background: #fbbf241a;
  border: 1px solid #fbbf244d;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 16px;
}

.reauth-message p {
  color: var(--ink-2);
  margin-bottom: 12px;
  font-size: 14px;
}

.divider {
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  display: flex;
}

.divider:before, .divider:after {
  content: "";
  background: var(--hairline);
  flex: 1;
  height: 1px;
}

.divider span {
  color: var(--ink-4);
  font-size: 13px;
}

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

.login-btn {
  border: 1.5px solid var(--hairline);
  background: var(--bg-1);
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  display: flex;
}

.login-btn:hover {
  background: var(--bg-2);
  border-color: var(--ink-4);
}

.login-btn svg {
  flex-shrink: 0;
}

.terms-text {
  color: var(--ink-4);
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
}

.terms-text .terms-link, .terms-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.terms-text .terms-link:hover, .terms-link:hover {
  text-decoration: underline;
}

.signin-link {
  color: var(--ink-4);
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-left {
    min-height: 200px;
    padding: 40px 24px;
  }

  .brand-title {
    font-size: 24px;
  }

  .login-right {
    padding: 32px 24px;
  }
}

.login-mobile-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  display: none;
}

.login-mobile-logo {
  border-radius: 10px;
  box-shadow: 0 2px 8px #00000026;
}

.login-mobile-text {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .login-mobile-header {
    display: flex;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/