:root {
  --accent:           #2D7CF6;
  --accent-light:     #5B9BFF;
  --accent-dim:       rgba(45,124,246,.12);
  --accent-dark:      #1D5FCC;
  --accent-glow:      rgba(45,124,246,.25);
  --accent-gradient:  linear-gradient(135deg, #3B8BFF 0%, #1D5FCC 100%);
  --accent-gradient-h:linear-gradient(135deg, #5B9BFF 0%, #2D7CF6 100%);

  /* gold = accent alias */
  --gold:             #2D7CF6;
  --gold-light:       #5B9BFF;
  --gold-dim:         rgba(45,124,246,.12);
  --gold-dark:        #1D5FCC;
  --gold-glow:        rgba(45,124,246,.25);
  --gold-gradient:    linear-gradient(135deg, #3B8BFF 0%, #1D5FCC 100%);
  --gold-gradient-h:  linear-gradient(135deg, #5B9BFF 0%, #2D7CF6 100%);
  --border-gold:      rgba(45,124,246,.2);
  --shadow-gold:      0 4px 24px rgba(45,124,246,.18);

  --bg:            #06080F;
  --bg-elevated:   #0D1117;
  --bg-card:       rgba(13,17,23,.65);
  --bg-card-solid: #111827;
  --bg-card-h:     rgba(20,28,48,.75);
  --bg-input:      rgba(12,17,30,.85);
  --bg-glass:      rgba(13,17,23,.5);

  --c-success: #22C55E;
  --green:     #22C55E;
  --green-dim: rgba(34,197,94,.12);
  --red:       #FF3B5C;
  --red-dim:   rgba(255,59,92,.12);
  --blue:      #3B82F6;
  --blue-dim:  rgba(59,130,246,.12);
  --orange:    #FFB020;
  --orange-dim:rgba(255,176,32,.12);
  --cyan:      #00B8F0;
  --cyan-dim:  rgba(0,184,240,.12);

  --t1: #F0F2F5;
  --t2: #8B95A8;
  --t3: #4A5568;
  --t4: #2E3B52;

  --c-glow: rgba(45,124,246,0.15);

  --border:       rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.03);

  /* radii */
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-full:9999px;

  --sh-sm:  0 1px 3px rgba(0,0,0,.3);
  --sh-md:  0 4px 12px rgba(0,0,0,.35);
  --sh-lg:  0 8px 32px rgba(0,0,0,.45);
  --sh-xl:  0 12px 48px rgba(0,0,0,.55);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr-fast: .15s cubic-bezier(0.16, 1, 0.3, 1);
  --tr:      .25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow: .4s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:   64px;
  --header-h:56px;
  --pad:     16px;
  --pad-sm:  12px;
  --pad-xs:  8px;
  --max-w:   480px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}


/* light theme */
[data-theme="light"] {
  --bg: #F7F8FA;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255,255,255,0.65);
  --bg-card-solid: #FFFFFF;
  --bg-card-h: rgba(240,241,244,0.75);
  --bg-input: rgba(240,241,244,0.85);
  --bg-glass: rgba(255,255,255,0.5);
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-dim: rgba(37,99,235,.1);
  --accent-dark: #1D4ED8;
  --accent-glow: rgba(37,99,235,.15);
  --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  --accent-gradient-h: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  --gold: #2563EB;
  --gold-light: #3B82F6;
  --gold-dim: rgba(37,99,235,.1);
  --gold-dark: #1D4ED8;
  --gold-glow: rgba(37,99,235,.15);
  --gold-gradient: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  --gold-gradient-h: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  --border-gold: rgba(37,99,235,.2);
  --shadow-gold: 0 4px 24px rgba(37,99,235,.12);
  --c-success: #16A34A;
  --green: #16A34A;
  --green-dim: rgba(22,163,74,.1);
  --cyan: #0EA5E9;
  --cyan-dim: rgba(14,165,233,.1);
  --t1: #111318;
  --t2: #5F6B7A;
  --t3: #9CA3AF;
  --t4: #D1D5DB;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.04);
  --c-glow: rgba(37,99,235,0.1);
  --sh-sm: 0 1px 3px rgba(0,0,0,.06);
  --sh-md: 0 4px 12px rgba(0,0,0,.08);
  --sh-lg: 0 8px 32px rgba(0,0,0,.1);
  --sh-xl: 0 12px 48px rgba(0,0,0,.12);
}


/* reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  -webkit-appearance: none;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }


body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45,124,246,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(29,95,204,.05) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
}


.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100px;
  padding-bottom: 8px;
  background: rgba(6,8,15,0.97);
  pointer-events: none;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  border-bottom: 1px solid var(--border);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #2D7CF6, #1D5FCC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


#app {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 16px calc(var(--nav-h) + 20px);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}


/* nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6,8,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--t3);
  transition: color var(--tr-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--accent);
}
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--accent-gradient);
  border-radius: 0 0 2px 2px;
}

.nav-item.active .nav-icon {
  color: var(--accent);
  transform: scale(1.08);
}

.nav-icon {
  width: 22px; height: 22px;
  transition: color var(--tr-fast), transform var(--tr-fast);
}
.nav-icon svg, .nav-item svg.nav-icon {
  width: 22px; height: 22px;
}

.nav-badge-wrap {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
  padding-top: 14px;
}

.page-sub {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  margin-bottom: 20px;
}


.seg-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
}

.seg-tabs--tri  { grid-template-columns: repeat(3, 1fr); }
.seg-tabs--quad { grid-template-columns: repeat(4, 1fr); }

.seg-tab {
  padding: 10px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  text-align: center;
  transition: all var(--tr-fast);
  cursor: pointer;
  white-space: nowrap;
}

.seg-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45,124,246,.3);
}


.pill-tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pill-tabs::-webkit-scrollbar { display: none; }

.pill-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.pill-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.pill-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.15);
}

.pill-tab:not(.active) .pill-count {
  background: var(--bg-elevated);
}


.search-bar {
  position: relative;
  margin-bottom: 12px;
}
.search-bar svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--t3);
  pointer-events: none;
  transition: color var(--tr-fast);
}
.search-bar:focus-within svg { color: var(--accent-dark); }

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--t1);
  font-size: 14px;
  transition: border-color var(--tr-fast);
}

.search-input::placeholder { color: var(--t4); }

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}


.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--tr-fast);
}
.filter-icon svg { width: 18px; height: 18px; }
.filter-icon:active { transform: scale(0.95); background: var(--bg-card-h); }

.filter-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.select-wrap {
  position: relative;
  flex: 1;
}

.sel {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--t1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--tr-fast);
}

.sel:focus {
  border-color: var(--accent);
}


/* cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: background var(--tr-fast);
}

.card:hover {
  background: var(--bg-card-h);
}


.ucard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.ucard:hover {
  background: var(--bg-card-h);
  border-color: var(--border-gold);
}

.ucard-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.ucard-av img { width: 100%; height: 100%; object-fit: cover; }
.ucard-av svg { width: 20px; height: 20px; }

.ucard-body {
  flex: 1;
  min-width: 0;
}

.ucard-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ucard-handle {
  font-size: 13px;
  color: var(--t3);
  margin-top: 1px;
}

.ucard-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ucard-deposit {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.ucard-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 2px;
}
.ucard-rating svg { width: 12px; height: 12px; color: var(--accent); }
}

.ucard-deals {
  font-size: 12px;
  color: var(--t3);
}


.dot-online {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.dot-online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 0;  transform: scale(1.6); }
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.badge--gold {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(45,124,246,.2);
}

.badge--dim {
  background: var(--bg-elevated);
  color: var(--t3);
  border: 1px solid var(--border);
}


.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill--pending {
  background: var(--orange-dim);
  color: var(--orange);
}

.status-pill--awaiting {
  background: var(--blue-dim);
  color: var(--blue);
}

.status-pill--funded {
  background: var(--accent-dim);
  color: var(--accent);
}

.status-pill--completed {
  background: var(--green-dim);
  color: var(--green);
}

.status-pill--disputed {
  background: var(--red-dim);
  color: var(--red);
}

.status-pill--delivered {
  background: rgba(139,92,246,.14);
  color: #A78BFA;
}

.status-pill--cancelled {
  background: rgba(100,116,139,.14);
  color: var(--t3);
}

.status-pill--resolved {
  background: var(--green-dim);
  color: var(--green);
}


.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
}

.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  min-height: 115px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--tr);
}

.cat-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.cat-icon {
  align-self: flex-end;
  font-size: 22px;
  line-height: 1;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(45,124,246,.15);
  border-radius: var(--r-sm);
}

.cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cat-count {
  font-size: 10px;
  color: var(--t3);
  margin-top: 3px;
}


.info-box {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.hint-box {
  position: relative;
  padding: 16px 36px 16px 18px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--t2);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hint-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--t3);
  cursor: pointer;
  transition: color var(--tr-fast);
}

.hint-close:hover { color: var(--t1); }


.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.empty h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty p  { font-size: 13px; color: var(--t3); line-height: 1.5; }

.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  opacity: 0.2;
}
.empty-icon svg { width: 56px; height: 56px; }


.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--tr-fast);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--gold {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,124,246,.25);
}
.btn--gold:active { transform: scale(0.975); }

.btn--gold:hover {
  background: linear-gradient(135deg, #5B9DF7, #2D7CF6);
  box-shadow: 0 6px 24px rgba(45,124,246,.35);
  transform: translateY(-1px);
}

.btn--gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45,124,246,.2);
}

.btn--dark {
  background: var(--bg-card);
  color: var(--t1);
  border: 1px solid var(--border);
}

.btn--dark:hover {
  background: var(--bg-card-h);
  border-color: var(--border-gold);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-gold);
}

.btn--outline:hover {
  background: var(--accent-dim);
}

.btn-row {
  display: flex;
  gap: 10px;
  padding: 0;
}

.btn-row .btn { flex: 1; }


.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.stat {
  padding: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -.5px;
}

.stat-val--gold {
  background: linear-gradient(135deg, #2D7CF6, #1D5FCC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
  font-weight: 500;
}


.deal-card {
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.deal-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-gold);
}

.deal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.deal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--t3);
}


/* profile */
.prof-hero {
  position: relative;
  margin: 0 -16px;
}

.prof-cover {
  width: 100%;
  height: 170px;
  background: linear-gradient(155deg, #0a1228 0%, #06080F 50%, #0c1530 100%);
  overflow: hidden;
  position: relative;
}
.prof-cover::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.prof-cover img { width: 100%; height: 100%; object-fit: cover; }

.prof-avatar-wrap {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.prof-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--bg-card-solid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-avatar svg { width: 32px; height: 32px; }

.prof-online {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
}

.prof-info {
  text-align: center;
  padding-top: 48px;
  margin-bottom: 16px;
}

.prof-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--t1);
}

.prof-handle {
  font-size: 14px;
  color: var(--t3);
  margin-top: 2px;
}

.prof-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  margin-top: 8px;
  padding: 0;
  text-align: center;
}


.prof-stats-banner {
  margin-bottom: 12px;
  padding: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.psb-row {
  display: flex;
  align-items: center;
}

.psb-item {
  flex: 1;
  text-align: center;
}

.psb-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.psb-lbl {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
  font-weight: 500;
}

.psb-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}


.prof-balance-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pbr-item {
  flex: 1;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  text-align: center;
}

.pbr-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--t1);
}

.pbr-lbl {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
  font-weight: 500;
}


.prof-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

.prof-btn {
  flex: 1;
  height: 42px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--tr-fast);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--t1);
}

.prof-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-h);
}


.profile-cover {
  width: calc(100% + 32px);
  margin: 0 -16px;
  height: 170px;
  background: var(--bg-card-solid);
  overflow: hidden;
  position: relative;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.profile-cover-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #0a1228 0%, #06080F 50%, #0c1530 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 13px;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--pad);
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}

.profile-handle {
  font-size: 13px;
  color: var(--t3);
  margin-top: 1px;
}

.profile-id {
  font-size: 11px;
  color: var(--t4);
  margin-top: 2px;
  font-family: monospace;
}

.profile-desc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0;
}

.profile-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
  padding: 6px 0 16px;
}


/* forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--t1);
  font-size: 14px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-input::placeholder { color: var(--t4); }

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

textarea.form-input {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}


.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--t3);
  transition: all var(--tr-fast);
}

.toggle.on {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle.on::after {
  transform: translateX(20px);
  background: #fff;
}


.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 12px;
}
.settings-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.settings-card p  { font-size: 12px; color: var(--t3); margin-bottom: 12px; line-height: 1.45; }

.settings-card .toggle-row {
  border-bottom: 1px solid var(--border-light);
}

.settings-card .toggle-row:last-child {
  border-bottom: none;
}


.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: 8px 0;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover {
  color: var(--t1);
  border-color: var(--border-gold);
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp .4s ease both;
}

.fade-in-d1 { animation: fadeUp .4s ease .05s both; }
.fade-in-d2 { animation: fadeUp .4s ease .1s  both; }
.fade-in-d3 { animation: fadeUp .4s ease .15s both; }


.skel {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(148,163,184,.08) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}

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


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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,.25);
}


.filter-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}

.filter-panel.open {
  opacity: 1;
  pointer-events: auto;
}

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

.fp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}

.fp-section {
  padding: var(--pad);
}

.fp-section + .fp-section {
  border-top: 1px solid var(--border-light);
}

.fp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--t2);
}

.fp-box {
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  border: 2px solid var(--border);
  background: var(--bg-input);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.fp-box.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.fp-box.checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}


/* pin screen */
.pin-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.pin-header {
  text-align: center;
  margin-bottom: 32px;
}

.pin-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 6px;
}

.pin-subtitle {
  font-size: 14px;
  color: var(--t3);
}

.pin-warn {
  font-size: 13px;
  color: var(--red);
  margin-top: 8px;
}

.pin-card {
  width: 100%;
  max-width: 320px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all var(--tr-fast);
}

.pin-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(45,124,246,.35);
}

.pin-error .pin-dot {
  border-color: var(--red);
}

.pin-error .pin-dot.filled {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(239,68,68,.35);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.pin-key {
  height: 60px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  -webkit-tap-highlight-color: transparent;
}

.pin-key:active {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: scale(.95);
}

.pin-key--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.pin-key--del {
  color: var(--t3);
}
.pin-key--del svg { width: 22px; height: 22px; }

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-12px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(6px); }
}

.pin-shake {
  animation: pinShake .45s ease;
}


.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--tr-fast);
}

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

.notif-read {
  opacity: .55;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px;
}

.notif-msg {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.notif-arrow {
  flex-shrink: 0;
  width: 16px; height: 16px;
  align-self: center;
  color: var(--t4);
}
.notif-arrow svg { width: 16px; height: 16px; }

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  color: var(--t3);
  font-size: 14px;
}

.notif-empty-icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  opacity: .2;
}
.notif-empty-icon svg { width: 52px; height: 52px; }
.notif-empty-icon--compat {
  opacity: .35;
}


.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  padding: 12px 22px;
  border-radius: var(--r-full);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  color: var(--t1);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  z-index: 400;
  box-shadow: var(--sh-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}


.pin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}

.pin-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pin-modal {
  width: 90%;
  max-width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 20px;
  animation: fadeUp .3s ease;
}


.global-loader {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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


.page-banner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--pad);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
}

.page-banner > * {
  position: relative;
  z-index: 2;
}


.accent-gold {
  border-left: 3px solid var(--accent);
}

.accent-green {
  border-left: 3px solid var(--green);
}

.accent-red {
  border-left: 3px solid var(--red);
}

.accent-blue {
  border-left: 3px solid var(--blue);
}


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


.mt-4  { margin-top: 4px; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }

.gap-8 { gap: 8px; }


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

.detail-row:last-child { border-bottom: none; }

.detail-row-label {
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}

.detail-row-value {
  font-size: 14px;
  color: var(--t1);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}


.timer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
  letter-spacing: 2px;
}


.alert-card {
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t2);
}

.alert-card--danger {
  background: var(--red-dim);
  border-color: rgba(239,68,68,.2);
  color: #FCA5A5;
}

.alert-card--success {
  background: var(--green-dim);
  border-color: rgba(34,197,94,.2);
  color: #86EFAC;
}

.alert-card--warning {
  background: var(--orange-dim);
  border-color: rgba(245,158,11,.2);
  color: #FCD34D;
}


@keyframes scaleIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
  0%   { stroke-dashoffset: 48; }
  100% { stroke-dashoffset: 0; }
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn .5s cubic-bezier(.4,0,.2,1) both;
  margin: 0 auto;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  animation: checkDraw .4s ease .3s both;
}


.currency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
}

.currency-btn {
  padding: 12px 8px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--t2);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.currency-btn:hover {
  border-color: var(--border-gold);
  color: var(--t1);
}

.currency-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-gold);
}


.pct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
}

.pct-btn {
  padding: 10px 4px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.pct-btn:hover {
  border-color: var(--border-gold);
  color: var(--t1);
}

.pct-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}




.balance-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(45,124,246,0.08) 0%, rgba(13,17,23,0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(45,124,246,0.15);
  margin-bottom: 16px;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(45,124,246,0.3), rgba(45,124,246,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.balance-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,124,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.balance-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.balance-main {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.balance-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--t2);
}

.balance-sub-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-sub-item .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--t1);
}


.cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(45,124,246,0.3);
  transition: all var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.cta-main:hover {
  background: var(--accent-gradient-h);
  box-shadow: 0 0 30px rgba(45,124,246,0.4);
  transform: translateY(-1px);
}

.cta-main:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 12px rgba(45,124,246,0.25);
}

.cta-main svg {
  width: 20px;
  height: 20px;
}


.deal-timeline {
  position: relative;
  padding: 8px 0;
  margin: 16px 0;
}

.deal-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}

.deal-timeline-step:last-child {
  padding-bottom: 0;
}

.deal-timeline-step:last-child .deal-timeline-line {
  display: none;
}

.deal-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  background: var(--t3);
  border: 2px solid var(--t3);
}

.deal-timeline-step.past .deal-timeline-dot {
  background: var(--c-success);
  border-color: var(--c-success);
}

.deal-timeline-step.current .deal-timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--c-glow);
  animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--c-glow); }
  50%      { box-shadow: 0 0 0 8px rgba(45,124,246,0.08); }
}

.deal-timeline-step.future .deal-timeline-dot {
  background: transparent;
  border-color: var(--t3);
}

.deal-timeline-line {
  position: absolute;
  left: 5px;
  top: 18px;
  width: 2px;
  bottom: 0;
  background: var(--border);
  z-index: 1;
}

.deal-timeline-step.past .deal-timeline-line {
  background: var(--c-success);
  opacity: 0.4;
}

.deal-timeline-step.current .deal-timeline-line {
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.deal-timeline-content {
  flex: 1;
  min-width: 0;
}

.deal-timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 2px;
}

.deal-timeline-step.future .deal-timeline-title {
  color: var(--t3);
}

.deal-timeline-desc {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.4;
}

.deal-timeline-time {
  font-size: 11px;
  color: var(--t3);
  margin-top: 4px;
}


.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}

.bottom-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 360;
  max-height: 85vh;
  background: var(--bg-elevated);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0,0,0,.4);
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  cursor: grab;
}

.bottom-sheet-handle::before {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--t3);
  opacity: 0.5;
}

.bottom-sheet-content {
  padding: 0 var(--pad) var(--pad);
}


.status-indicator {
  border-left: 3px solid transparent;
}

.status-indicator--active {
  border-left-color: var(--accent);
}

.status-indicator--waiting {
  border-left-color: var(--orange);
}

.status-indicator--dispute {
  border-left-color: var(--red);
}

.status-indicator--done {
  border-left-color: var(--t3);
}

.status-indicator--success {
  border-left-color: var(--c-success);
}


/* dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
}

.dashboard-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2D7CF6, #5B9BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  color: var(--t2);
}

.dashboard-bell:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dashboard-bell svg {
  width: 20px;
  height: 20px;
}

.dashboard-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg);
}


.active-deals-section {
  margin-top: 20px;
}

.active-deals-section .section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-deals-section .section-title .see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}


.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.activity-icon--in {
  background: var(--green-dim);
  color: var(--c-success);
}

.activity-icon--out {
  background: var(--red-dim);
  color: var(--red);
}

.activity-icon--deal {
  background: var(--accent-dim);
  color: var(--accent);
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-desc {
  font-size: 12px;
  color: var(--t3);
  margin-top: 1px;
}

.activity-amount {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}

.activity-amount--positive {
  color: var(--c-success);
}

.activity-amount--negative {
  color: var(--red);
}

.activity-amount--neutral {
  color: var(--t1);
}


.mono-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}


.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--tr-fast);
  text-align: center;
}

.quick-action:hover {
  background: var(--bg-card-h);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.quick-action-icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
}


.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
}

.dash-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2D7CF6, #5B9BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  color: var(--t2);
}

.dash-bell:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dash-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg);
}

.dash-section {
  margin-top: 20px;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
}

.dash-deal-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--tr-fast);
  overflow: hidden;
}

.dash-deal-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-gold);
}

.dash-deal-indicator {
  width: 3px;
  background: var(--status-color, var(--t3));
  flex-shrink: 0;
  border-radius: 3px 0 0 3px;
}

.dash-deal-body {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}

.dash-deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dash-deal-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
}

.dash-deal-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

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

.dash-deal-status {
  font-size: 12px;
  color: var(--t3);
}

.dash-deal-action-wrap {
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.dash-deal-action {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.dash-deal-action:hover {
  background: var(--accent-light);
}

.dash-empty {
  text-align: center;
  padding: 48px 24px;
  margin-top: 20px;
}

.dash-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
}

.dash-empty-sub {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.5;
}

.balance-sub-row {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.balance-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.balance-sub-label {
  font-size: 11px;
  color: var(--t3);
  font-weight: 500;
}

.balance-sub-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
}

.balance-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.balance-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid rgba(45,124,246,0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.balance-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
