:root {
  --ark-primary: #f1b90a;
  --ark-background: rgb(17 20 27);
  --ark-mobile-top-nav-height: 64px;
}

.ark-shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  height: var(--ark-mobile-top-nav-height);
  align-items: center;
  justify-content: space-between;
  background: var(--ark-background);
  padding: 0.75rem 1rem;
}

@media (min-width: 1024px) {
  .ark-shell-header,
  .ark-bottom-nav {
    display: none !important;
  }

  .ark-shell-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

.ark-shell-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.ark-shell-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ark-shell-brand-text {
  background: linear-gradient(90deg, #f1b90a -100%, #ffffff 84.52%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ark-shell-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ark-shell-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0;
}

.ark-shell-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ark-shell-icon-btn img {
  width: 1.5rem;
  height: 1.5rem;
}

.ark-shell-menu-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.ark-shell-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ark-shell-content {
  padding-top: var(--ark-mobile-top-nav-height);
  padding-bottom: 72px;
}

.ark-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ark-background);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ark-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0.5rem 0.25rem;
  height: 100%;
}

.ark-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ark-bottom-nav-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ark-bottom-nav-item.is-active,
.ark-bottom-nav-item.is-open {
  color: var(--ark-primary);
}

.ark-bottom-nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ark-bottom-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.ark-bottom-nav-label.is-multiline {
  white-space: pre-line;
  text-align: center;
  line-height: 0.85rem;
}

.ark-finance-popover {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 60;
  display: none;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 1rem;
}

.ark-finance-popover.is-open {
  display: block;
}

.ark-finance-popover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ark-finance-popover-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgb(160 160 163);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.15s ease;
}

.ark-finance-popover-item:hover {
  color: #fff;
}

.ark-finance-popover-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ark-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ark-sheet-overlay.is-open {
  display: block;
}

.ark-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: 83.333333%;
  max-width: 24rem;
  height: 100dvh;
  background: #11131b;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding-top: env(safe-area-inset-top, 0px);
}

.ark-sheet.is-open {
  transform: translateX(0);
}

.ark-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.ark-sheet-close {
  border: 0;
  background: transparent;
  color: rgb(160 160 163);
  cursor: pointer;
  padding: 0;
}

.ark-sheet-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.ark-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.ark-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ark-sheet-section-title {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.ark-sheet-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ark-sheet-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: color 0.15s ease;
}

.ark-sheet-service:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ark-sheet-service svg {
  width: 1.5rem;
  height: 1.5rem;
}

.ark-sheet-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ark-sheet-social a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
}

.ark-sheet-social a:hover {
  color: #fff;
}
