:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981, #34d399);
    --warning-gradient: linear-gradient(135deg, #f59e0b, #fbbf24);
    --danger-gradient: linear-gradient(135deg, #ef4444, #dc2626);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
  }

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

  body {
    background: #0a0a0f;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      radial-gradient(ellipse at top left, rgba(88, 28, 135, 0.15) 0%, transparent 40%),
      radial-gradient(ellipse at bottom right, rgba(15, 23, 42, 0.3) 0%, transparent 40%),
      radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    z-index: -3;
  }

  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: -2;
    background-image:
      radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 30%),
      radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 30%),
      radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 30%);
    animation: floatOrbs 25s ease-in-out infinite;
  }

  @keyframes floatOrbs {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30px, -30px) scale(1.1); }
    50% { transform: translate(30px, -20px) scale(0.95); }
    75% { transform: translate(-20px, 20px) scale(1.05); }
  }

  .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
  }

  .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    animation: float-up 20s infinite linear;
  }

  .particle:nth-child(2n) {
    background: rgba(236, 72, 153, 0.5);
    animation-duration: 25s;
  }

  .particle:nth-child(3n) {
    background: rgba(59, 130, 246, 0.5);
    animation-duration: 30s;
  }

  @keyframes float-up {
    0% {
      transform: translateY(100vh) translateX(0);
      opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
      transform: translateY(-100vh) translateX(100px);
      opacity: 0;
    }
  }

  header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  header .ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }

  header .ava img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
  }

  header .ava.has-image img {
    opacity: 1;
  }

  header .ava-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  header .brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
  }

  header .nav {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  header .nav .btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
  }

  header .nav .btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
  }

  header .nav .btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    font-weight: 600;
  }

  header .nav .btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  .wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
  }

  /* БАЛАНС */
  .balance-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.4s ease-out;
  }

  .balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .balance-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .balance-refresh {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: var(--success-gradient);
    color: white;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
  }

  .balance-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }

  .pricing-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
  }

  .pricing-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .pricing-btn svg {
    flex-shrink: 0;
  }

  .balance-main {
    text-align: center;
    padding: 8px 0;
  }

  .balance-amount {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .balance-currency {
    font-size: 22px;
    opacity: 0.9;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .topbar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }

  .btn-buy {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 14px;
    border: none;
    background: var(--success-gradient);
    color: white;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  }

  .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35);
  }

  .catalog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .catalog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
  }

  .catalog-vbucks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .catalog-count {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
  }

  .topbar h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }

  .btn-friends {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 14px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  }

  .btn-friends:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
  }

  .btn-friends:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .btn-friends svg {
    flex-shrink: 0;
  }

  .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
  }

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

  .acc-list {
    display: flex;
    flex-direction: column;
  }

  .acc-row {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
  }

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

  .acc-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  .acc-info {
    flex: 1;
    min-width: 0;
  }

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

  .cooldown-timer {
    font-size: 11px;
    color: #fbbf24;
    font-weight: 500;
  }

  .acc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .vb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    min-width: 60px;
    justify-content: center;
  }

  .vb-badge::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('https://fortnite-api.com/images/vbuck.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }

  .vb-badge.vb-zero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
  }

  .btn-sm {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .btn-sm:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .btn-update {
    background: var(--primary-gradient);
    color: white;
    border: none;
  }

  .btn-update:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  .btn-release {
    background: var(--danger-gradient);
    color: white;
    border: none;
  }

  .btn-release:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }

  .empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
  }

  .toast {
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    bottom: auto;
    transform: translateY(-10px);
    padding: 14px 20px;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: min(420px, calc(100vw - 24px));
    max-height: 40vh;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.95));
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    display: inline-block;
    box-sizing: border-box;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }

  .toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
  }

  .topup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: var(--success-gradient);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  }

  .topup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  }

  .topup-btn svg {
    flex-shrink: 0;
  }

  /* МОДАЛКА */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
  }

  .modal-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .modal {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(15, 15, 25, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .modal-overlay.show .modal {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .modal-close {
    padding: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }

  .amount-input-group {
    margin-bottom: 16px;
  }

  .amount-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
  }

  .amount-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
  }

  .amount-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.05);
  }

  .amount-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
  }

  .amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .amount-btn {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .amount-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-1px);
  }

  .amount-btn:active {
    transform: translateY(0);
  }

  .modal-info {
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    font-size: 12px;
    color: #fbbf24;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .modal-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .modal-btn-primary {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  }

  .modal-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  }

  .modal-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
  }

  .modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  .pricing-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 10px;
  }

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

  .pricing-price {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    text-align: right;
  }


  /* RATE CARDS */
  .rate-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .rate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
  }

  .rate-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .rate-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .vbucks-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .pricing-section {
    margin-bottom: 24px;
  }

  .pricing-section:last-of-type {
    margin-bottom: 0;
  }

  .pricing-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pricing-item-simple {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
  }

  .pricing-item-simple:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
  }

  .pricing-item-simple .pricing-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .pricing-item-simple .pricing-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .pricing-item-simple .pricing-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .pricing-item-simple .pricing-price {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
  }

  .shared-calculator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .shared-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .shared-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .shared-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.05);
  }

  .shared-result {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
  }

  @media (max-width: 768px) {
    .rate-cards {
      grid-template-columns: 1fr;
    }

    .shared-calculator {
      flex-direction: column;
      align-items: stretch;
    }

    .shared-result {
      text-align: center;
      padding-top: 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
  }

  @media (max-width: 768px) {
    .wrap {
      padding: 20px 16px;
    }

    .balance-card {
      padding: 14px 16px;
    }

    .balance-amount {
      font-size: 32px;
    }

    .balance-currency {
      font-size: 20px;
    }

    .topbar {
      flex-direction: column;
      align-items: stretch;
    }

    .btn-friends {
      width: 100%;
      justify-content: center;
    }

    .acc-row {
      padding: 16px 12px;
      gap: 8px;
    }

    .acc-actions {
      gap: 3px;
    }

    .vb-badge {
      min-width: 40px;
      font-size: 9px;
      padding: 4px 6px;
    }

    .vb-badge::before {
      width: 12px;
      height: 12px;
    }

    .btn-sm {
      padding: 5px 6px;
      font-size: 9px;
    }
  }

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

  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f5576c);
  }

/* Две кнопки в topbar (как "Добавить в друзья") */
.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Модалка покупки аккаунтов: карточки в стиле "Расценок" + цена и кнопка */
.purchase-card{
  cursor: pointer;

  padding: 10px 12px; /* компактнее */
}

.purchase-card .purchase-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.purchase-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.purchase-vbucks{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:14px;
}

.purchase-vbucks .vbucks-icon{
  width:18px;
  height:18px;
}

.purchase-sub{
  color: var(--text-secondary);
  font-size:12px;
  opacity:0.55; /* почти незаметно серым */
}

.purchase-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  white-space:nowrap;
}

.purchase-price-line{
  display:flex;
  align-items:center;
  gap:8px;
}


.purchase-buy-btn{
  /* размер задаёт btn-sm, тут только минимальные правки при необходимости */
}


/* Purchase modal - make list look exactly like pricing items */
.purchase-item{
  cursor: pointer;
}

.purchase-price-col{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.purchase-price-row{
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-friends.purchase-buy-btn{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 12px;
}
