:root {
  /* Colors - Background */
  --bg-page: #1c2938;
  --bg-card: #1c2938;
  --bg-hover: #253341;
  --bg-active: #1a3a52;

  /* Colors - Text */
  --text-primary: #e7e9ea;
  --text-secondary: #8b98a5;
  --text-tertiary: #6c7a89;

  /* Colors - Accent */
  --accent: #1d9bf0;
  --accent-light: #1a3a52;
  --success: #00ba7c;
  --success-bg: #0d2818;

  /* Colors - Borders */
  --border: #2f3b47;
  --border-light: #253341;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.4);

  /* Sizes - Logo */
  --logo-size: 48px;
  --logo-radius: var(--radius-md);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;

  /* Font Sizes */
  --font-domain: 20px;
  --font-address: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Account Section */
.account {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: var(--space-xl);
}

/* Account Header - Horizontal layout */
.account__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Logo - left side */
.account__logo {
  width: var(--logo-size);
  height: var(--logo-size);
  background: linear-gradient(135deg, var(--accent) 0%, #0088cc 100%);
  border-radius: var(--logo-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

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

/* Info column - right side (2 lines) */
.account__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}

/* Domain name - line 1 */
.account__domain {
  font-size: var(--font-domain);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Address row - line 2 with copy icon */
.account__address-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  width: fit-content;
  transition: opacity 0.15s ease;
}

.account__address-row:hover {
  opacity: 0.7;
}

.account__address-row:hover .account__copy-icon {
  color: var(--accent);
}

.account__address {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: var(--font-address);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.account__copy-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.account__address-box:hover .account__copy-icon {
  color: var(--accent);
}

.account__balance-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account__social {
  display: flex;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.social-link--x:hover {
  background: #1d9bf0;
  border-color: #1d9bf0;
  color: #fff;
}

.social-link--telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.balance__currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

.balance__usd {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 16px 0;
}

.tabs__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabs__item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tabs__item.active {
  background: var(--accent);
  color: white;
}

.tabs__badge {
  background: rgba(0,0,0,0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.tabs__item.active .tabs__badge {
  background: rgba(255,255,255,0.25);
}

/* Panels */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* Tokens */
.tokens {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.token {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.token:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.token__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.token__info {
  flex: 1;
  min-width: 0;
}

.token__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.token__symbol {
  font-size: 13px;
  color: var(--text-tertiary);
}

.token__balance {
  text-align: right;
}

.token__amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.token__value {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* NFTs Grid */
.nfts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.nft {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.nft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.nft__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.nft__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-hover);
}

.nft__telegram-link {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: all 0.2s ease;
  z-index: 10;
}

.nft__telegram-link:hover {
  color: #0088cc;
  filter: drop-shadow(0 2px 6px rgba(0, 136, 204, 0.6));
  transform: scale(1.15);
}

.nft__telegram-link svg {
  display: block;
}

.nft__info {
  padding: 14px;
}

.nft__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft__collection {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty States */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
}

.empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: var(--space-lg);
  }

  .account__header {
    gap: var(--space-md);
  }

  .account__logo {
    width: 40px;
    height: 40px;
  }

  .account__domain {
    font-size: 14px;
  }

  .account__address {
    font-size: 11px;
  }

  .balance__value {
    font-size: 26px;
  }

  .balance__currency {
    font-size: 16px;
  }

  .tabs__item {
    padding: 10px 14px;
    font-size: 13px;
  }

  .nfts {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .token {
    padding: 14px 16px;
  }

  .token__icon {
    width: 38px;
    height: 38px;
  }
}
