:root {
  --bg-color: #030305;
  --text-main: #ffffff;
  --text-muted: #64748b;
  --accent-blue: #00f2fe;
  --accent-purple: #4facfe;
  --card-bg: rgba(13, 13, 18, 0.6);
  --border-color: rgba(255, 255, 255, 0.05);
  --neon-glow: rgba(0, 242, 254, 0.2);
  --ton-blue: #0098ea;
}

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

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background-color: var(--bg-color);
}

body {
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 12px;
  position: relative;
}

/* Фон с динамической сеткой */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-image: linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 380px !important;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

/* Аватарка с крутящейся рамкой */
.avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-border {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.4);
  padding: 4px;
  box-shadow: inset 0 0 10px var(--neon-glow), 0 0 10px var(--neon-glow);
  animation: fast-spin 2s cubic-bezier(0.22, 1, 0.36, 1) forwards, slow-spin 20s linear infinite 2s;
}

.avatar-border::after {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  width: 6px; height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-blue);
}

.avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.profile-section {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.nickname {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.username {
  font-size: 0.9rem;
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.username:hover {
  color: var(--accent-blue);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.username::before {
  content: "@";
}

.description {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
}

.description p {
  margin-bottom: 10px;
}

.description p:last-child {
  margin-bottom: 0;
}

.highlight {
  color: #f8fafc;
  font-weight: 600;
}

/* КРИПТО-БЛОК */
.crypto-box {
  padding: 12px 14px;
  background: rgba(0, 152, 234, 0.04);
  border: 1px solid rgba(0, 152, 234, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.crypto-row {
  display: table;
  table-layout: fixed;
  width: 100%;
  padding: 6px 0;
}

.crypto-icon-cell {
  display: table-cell;
  width: 28px;
  vertical-align: middle;
}

.crypto-icon {
  width: 20px;
  height: 20px;
  fill: var(--ton-blue);
  display: block;
}

.crypto-address-wrapper {
  display: table-cell;
  vertical-align: middle;
  padding-right: 8px;
  overflow: hidden;
}

.crypto-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ton-blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.crypto-address {
  display: block;
  font-family: monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.crypto-btn-cell {
  display: table-cell;
  width: 60px;
  vertical-align: middle;
  text-align: right;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--ton-blue);
  border-color: var(--ton-blue);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 152, 234, 0.4);
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.crypto-divider {
  height: 1px;
  background: rgba(0, 152, 234, 0.1);
  width: 100%;
  margin: 4px 0;
}

.future-tag {
  text-align: center;
  margin: 16px 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

/* СЕРВЕРЫ */
.server-status-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
}

.server-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.server-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.server-name {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #00f2fe;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #00f2fe;
}

.status-dot.offline {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.ping-value {
  font-family: monospace;
  color: var(--accent-blue);
  font-size: 0.75rem;
  background: rgba(0, 242, 254, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.ping-value.offline {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* АНИМАЦИИ */
@keyframes fast-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

@keyframes slow-spin {
  0% { transform: rotate(720deg); }
  100% { transform: rotate(1080deg); }
}

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