@import url('glass-ui.css');

:root {
  --bg: #0f0f12;
  --panel: rgba(35, 35, 45, 0.7);
  --panel-2: rgba(50, 50, 60, 0.6);
  --panel-3: rgba(60, 60, 70, 0.5);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --primary: #1689ff;
  --primary-light: #4da6ff;
  --accent: #49df64;
  --gold: #f5a623;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  
  /* Glass */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-normal: 0.25s ease;
}

* { box-sizing: border-box; }

html, body { 
  height: 100%; 
  margin: 0;
  overflow-x: hidden;
}

body {
  background: #0d0d14;
  color: var(--text);
  font-family: 'SFProText', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}

/* Animated gradient background - VISIBLE colored orbs */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle 400px at 10% 20%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    radial-gradient(circle 350px at 90% 15%, rgba(236, 72, 153, 0.3) 0%, transparent 60%),
    radial-gradient(circle 300px at 50% 90%, rgba(34, 211, 238, 0.25) 0%, transparent 60%),
    radial-gradient(circle 250px at 5% 70%, rgba(168, 85, 247, 0.25) 0%, transparent 60%),
    radial-gradient(circle 280px at 85% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(13, 13, 20, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes bgFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(1.1) translate(-2%, 3%); }
  50% { transform: scale(1.05) translate(2%, -2%); }
  75% { transform: scale(1.15) translate(-1%, -3%); }
}

.app { 
  min-height: 100%; 
  display: flex; 
  flex-direction: column;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Hide Snowflakes */
.snowflakes {
  display: none !important;
}

/* Glass Balance Bar */
.balance-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  position: relative;
  z-index: 2;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.balance-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

.balance-item.stars {
  background: rgba(247, 181, 0, 0.1);
  border-color: rgba(247, 181, 0, 0.2);
  padding: 8px 14px;
}

.balance-icon-star {
  color: #FFD700;
  font-size: 16px;
}

.ton-icon-circle {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(22, 137, 255, 0.4);
}

.balance-icon-img {
  width: 14px;
  height: 14px;
}

.balance-amount {
  color: var(--text);
}

.balance-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: all var(--transition-normal);
}

.balance-add:hover {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(22, 137, 255, 0.4);
}

/* Glass Page Tabs */
.page-tabs {
  display: flex;
  gap: 16px;
  padding: 8px 16px 16px;
}

.page-tab {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.page-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.page-tab.active {
  color: var(--text);
}

.page-tab.active::after {
  width: 100%;
}

.page-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

/* Glass Segment Control */
.segment-control {
  display: flex;
  padding: 0 16px;
  gap: 0;
  margin-bottom: 12px;
}

.segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.segment:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}

.segment:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.segment.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: var(--border-light);
}

.segment:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
}

.segment-count {
  color: inherit;
}

/* Glass Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.action-icon {
  width: 22px;
  height: 22px;
}

/* Glass Filter Row */
.filter-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  align-items: stretch;
}

.filter-dropdowns {
  display: flex;
  gap: 8px;
  flex: 1;
}

.filter-dropdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
}

.filter-dropdown:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
}

.filter-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.filter-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.filter-expand-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition-normal);
}

.filter-expand-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

.filter-expand-btn svg {
  width: 20px;
  height: 20px;
}

/* Glass Search and View Controls */
.search-controls {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  align-items: center;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.view-controls {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  width: 36px;
  height: 40px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition-normal);
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.view-btn svg {
  width: 18px;
  height: 18px;
}

/* Inventory Content */
.inventory-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* Glass Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--muted);
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.empty-text {
  font-size: 14px;
  margin: 0 0 24px 0;
  max-width: 280px;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d5fb8 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(22, 137, 255, 0.3);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 137, 255, 0.4);
}

.refresh-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.refresh-btn svg {
  width: 18px;
  height: 18px;
}

/* Glass Gifts Grid */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Glass Gift Cards in Inventory */
.gift-card {
  background: linear-gradient(
    145deg,
    rgba(45, 45, 55, 0.5) 0%,
    rgba(35, 35, 45, 0.7) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.gift-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
}

.gift-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gift-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(30, 35, 50, 0.8), rgba(40, 50, 70, 0.6));
  transition: transform var(--transition-slow);
}

.gift-card:hover .gift-image {
  transform: scale(1.05);
}

.gift-info {
  padding: 12px;
}

.gift-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.gift-number {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}

.gift-id {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.gift-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d5fb8 100%);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(22, 137, 255, 0.3);
}

.gift-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.gift-action-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gift-action-btn:hover {
  background: var(--border);
}

.gift-action-btn.withdraw-btn {
  background: var(--primary);
  color: white;
}

.gift-action-btn.withdraw-btn:hover {
  background: #1470dd;
}

.gift-action-btn.disabled,
.gift-action-btn:disabled {
  background: var(--panel);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Withdrawn gift styles */
.gift-card.withdrawn {
  opacity: 0.7;
}

.gift-card.withdrawn .gift-image {
  filter: grayscale(50%);
}

.withdrawn-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.gift-card {
  position: relative;
}

/* ===== FLOATING GLASS TABBAR ===== */
.tabbar {
  position: fixed;
  bottom: 10px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.tabbar-main {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  gap: 2px;
  background: rgba(120, 120, 140, 0.18);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 4px 6px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 16px;
  background: transparent;
}

.tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, rgba(22, 137, 255, 0.95) 0%, rgba(13, 95, 184, 0.95) 100%);
  box-shadow: 
    0 4px 16px rgba(22, 137, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tab-icon-wrap {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.5);
  stroke: rgba(255, 255, 255, 0.5);
  fill: none;
}

.tab:hover .tab-icon {
  color: rgba(255, 255, 255, 0.8);
  stroke: rgba(255, 255, 255, 0.8);
}

.tab.active .tab-icon {
  color: white;
  stroke: white;
  fill: white;
}

.tab-label {
  font-size: 9px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab.active .tab-label {
  color: white;
}

/* Tab Avatar - Separate Circle */
.tab-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(120, 120, 140, 0.18);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.tab-avatar:hover {
  background: rgba(140, 140, 160, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-avatar.active {
  border: 2px solid var(--primary);
  box-shadow: 
    0 0 20px rgba(22, 137, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}

.tab-avatar-img[src]:not([src=""]) {
  display: block;
}

.tab-avatar-img[src]:not([src=""]) + .tab-avatar-letter {
  display: none;
}

.tab-avatar-letter {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

/* Floating snow/stars effect */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

.snow-particle {
  position: fixed;
  pointer-events: none;
  color: var(--muted);
  font-size: 8px;
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

/* Filter Modal */
.filter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-modal.active {
  opacity: 1;
  visibility: visible;
}

.filter-modal-content {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.filter-modal.active .filter-modal-content {
  transform: translateY(0);
}

.filter-modal-header {
  padding: 20px 16px 16px;
  position: relative;
  text-align: center;
}

.filter-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: inline;
}

.filter-modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
}

.filter-modal-close {
  position: absolute;
  right: 16px;
  top: 20px;
  width: 32px;
  height: 32px;
  background: var(--panel);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.filter-search {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: var(--panel);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-search svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.filter-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.filter-search input::placeholder {
  color: var(--muted);
}

.filter-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  max-height: 50vh;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.filter-item:last-child {
  border-bottom: none;
}

.filter-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-item.selected .filter-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-checkbox svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
}

.filter-item.selected .filter-checkbox svg {
  opacity: 1;
}

.filter-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
}

.filter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-info {
  flex: 1;
}

.filter-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.filter-count {
  font-size: 13px;
  color: var(--muted);
}

.filter-modal-footer {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.filter-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.filter-btn.reset-btn {
  background: var(--panel);
  color: var(--text);
}

.filter-btn.apply-btn {
  background: var(--primary);
  color: #fff;
}

/* Info Modal */
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}

.info-modal.active {
  opacity: 1;
  visibility: visible;
}

.info-modal-content {
  background: var(--panel);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.info-modal-icon {
  margin-bottom: 16px;
}

.info-modal-icon svg {
  width: 48px;
  height: 48px;
}

.info-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.info-modal-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.info-modal-btn {
  background: var(--panel-2);
  color: var(--text);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.info-modal-btn:active {
  transform: scale(0.98);
  background: var(--panel-3);
}

/* Listed Empty State */
.listed-empty {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.listed-empty-content {
  text-align: center;
}

.listed-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.listed-empty-icon svg {
  width: 100%;
  height: 100%;
}

.listed-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.listed-empty-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Tab Empty State (Offers, Activity) */
.tab-empty {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 300px;
}

/* Action Modals (Withdraw, Sell) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}

.modal-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.modal-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  margin-bottom: 8px;
}

.modal-btn:last-child {
  margin-bottom: 0;
}

.modal-btn.primary {
  background: var(--primary);
  color: white;
}

.modal-btn.primary:hover {
  background: #1a7ae0;
}

.modal-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.modal-btn.secondary:hover {
  background: var(--panel-2);
}
