@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #212121;
    color: #fff;
    margin: 0;
    padding: 0;
}
#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #212121;
    position: relative;
    z-index: 1;
}
.main-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 80px;
    margin-top: 32px;
    z-index: 1;
    position: relative;
}
.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    margin-bottom: 8px;
}
.logo-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.logo {
    position: relative;
    z-index: 1;
    height: 56px;
}
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #181818;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 84px; /* увеличено с 64px */
    border-top: 1px solid #313131;
    z-index: 100;
}
.nav-btn, .nav-btn:visited {
    background: none;
    border: none;
    color: #8C8C8D;
    font-size: 1.25rem; /* увеличено с 0.95rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* увеличено с 2px */
    cursor: pointer;
    padding: 0 16px; /* увеличено с 0 */
    transition: color 0.2s;
    text-decoration: none;
}
.nav-btn.selected, .nav-btn:active {
    color: #3377FF;
}
.nav-icon {
    font-size: 2.1rem; /* увеличено с 1.5rem */
    margin-bottom: 4px; /* увеличено с 2px */
    display: flex;
    align-items: center;
    justify-content: center;
}
.gradient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; height: 260px;
    z-index: 0;
    background: linear-gradient(120deg, #6a11cb 0%, #2575fc 40%, #ff5e62 100%);
    filter: blur(0.5px);
    pointer-events: none;
}

#profile-section {
  font-family: 'Inter', sans-serif;
}
.profile-card {
    background: #232323;
    border-radius: 16px;
    padding: 24px 18px 18px 18px;
    margin: 24px 0 0 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.profile-card[style*="blur"] {
    transition: filter 0.2s;
}
.profile-tabs {
    display: flex;
    margin-bottom: 18px;
}
.profile-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #8C8C8D;
    font-size: 1.1rem;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border 0.2s;
}
.profile-tab-btn.selected {
    color: #3377FF;
    border-bottom: 2px solid #3377FF;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.profile-label {
    font-size: 1rem;
    color: #8C8C8D;
}
.profile-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #181818;
    color: #fff;
    font-size: 1rem;
    margin-top: 4px;
}
.profile-save-btn, .profile-add-btn {
    background: #3377FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.profile-save-btn:hover, .profile-add-btn:hover {
    background: #2255cc;
}
.profile-methods-list {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
}
.profile-methods-list li {
    background: #232323;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #313131;
    transition: border-color 0.2s;
}

.profile-methods-list li:hover {
    border-color: #3377FF;
}

.method-item {
    background: #232323;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #313131;
    transition: border-color 0.2s;
}

.method-item:hover {
    border-color: #3377FF;
}

.method-item span {
    flex: 1;
    word-break: break-all;
    color: #fff;
    font-size: 0.95rem;
}

.delete-method-btn {
    background: #f66;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 12px;
    white-space: nowrap;
}

.delete-method-btn:hover {
    background: #d22;
}
.profile-methods-list button {
    background: #f66;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.profile-methods-list button:hover {
    background: #d22;
}

/* --- Секции index.html --- */
.exchange-section {
    background: #232323;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
    padding: 28px 18px 18px 18px;
    margin-bottom: 24px;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    position: relative;
}
.exchange-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
}
.exchange-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.exchange-label {
    font-size: 1.08rem;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.currency-label {
    display: inline-block;
    font-size: 0.82em;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 7px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.currency-label.rub { background: #3377FF; color: #fff; }
.currency-label.usdt { background: #43a047; color: #fff; }
.currency-label.usdc { background: #2775ca; color: #fff; }
.currency-label.btc { background: #f7931a; color: #fff; }
.currency-label.eth { background: #627eea; color: #fff; }
.currency-label.ton { background: #0088cc; color: #fff; }
.currency-label.bnb { background: #f3ba2f; color: #fff; }

.exchange-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exchange-input {
    width: 100%;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 500;
    padding: 2px 0 2px 0;
    text-align: left;
    margin-right: 6px;
}
.exchange-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.exchange-currency-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 12px;
    margin-bottom: 8px;
    user-select: none;
}
.chevron {
    color: #aaa;
    font-size: 1.2em;
    margin-left: 2px;
}

.exchange-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.exchange-divider-wrap {
    position: relative;
    height: 0;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exchange-divider {
    border-bottom: 1.5px solid #313131;
    width: 100%;
    z-index: 0;
}
.swap-btn {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #232323;
    border: 1.5px solid #313131;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border 0.2s;
    padding: 0;
    pointer-events: auto;
}
.swap-btn:hover, .swap-btn:active {
    border: 1.5px solid #3377FF;
}
.swap-icon {
    color: #3377FF;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1;
}

.exchange-tabs-group {
    display: flex;
    gap: 10px;
    margin: 18px 0 10px 0;
    z-index: 3;
    position: relative;
}
.tab-btn {
    flex: 1;
    background: transparent;
    color: #fff;
    border: 1.5px solid #313131;
    border-radius: 16px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    position: relative;
    pointer-events: auto;
    z-index: 3;
}
.tab-btn.selected, .tab-btn:active {
    background: #232323;
    color: #fff;
    border: 1.5px solid #313131;
}
.tab-btn.selected {
    background: #313131;
    border: 1.5px solid #313131;
}
.tab-fee {
    color: #43a047;
    font-size: 0.95em;
    font-weight: 700;
    margin-left: 6px;
}

.exchange-btn {
    width: 100%;
    background: #313131;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px 0;
    font-size: 1.1rem;
    margin-top: 16px;
    cursor: pointer;
    opacity: 0.7;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.exchange-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #aaa;
}

.currencies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
}
.currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 6px 0 6px 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    background: none;
}
.currency-img {
    width: 32px;
    height: 16px;
    object-fit: cover;
    margin-right: 8px;
}

.aml-section {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
}
.aml-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background: rgba(24,24,24,0.7);
    border-radius: 16px;
    z-index: 1;
}
.aml-icon {
    position: absolute;
    left: 100px; top: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}
.aml-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    justify-content: center;
    padding: 24px 24px 24px 32px;
}
.aml-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}
.aml-desc {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.aml-btn {
    background: #8774e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s;
}
.aml-btn:hover, .aml-btn:active {
    background: #6a11cb;
}

.apple-pay-section {
    position: relative;
    background: #181818;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.apple-pay-bg {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.apple-pay-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.apple-pay-logo {
    width: 48px;
    margin-bottom: 8px;
}
.apple-pay-title {
    font-weight: 700;
    margin-bottom: 4px;
}
.apple-pay-desc {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.apple-pay-btn {
    background: #8774e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 6px;
}
.apple-pay-support {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.services-section {
    position: relative;
    overflow: hidden;
    background: #181818;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 20px;
}
.services-title, .services-list {
    position: relative;
    z-index: 1;
}
.services-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    pointer-events: none;
}
.services-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 3;
    text-shadow: 0 2px 8px #000;
    pointer-events: none;
    text-align: center;
}
.services-section > *:not(.services-overlay):not(.services-soon) {
    position: relative;
    z-index: 3;
}
.services-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.services-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    background: none;
    border-bottom: 1px solid #313131;
    cursor: pointer;
    border-radius: 0;
    font-size: 1rem;
    color: #aaa;
    transition: background 0.2s;
}
.services-list li:last-child {
    border-bottom: none;
}
.services-list li.inactive {
    cursor: not-allowed;
    color: #555;
    opacity: 0.7;
}
.li-arrow {
    color: #313131;
    font-size: 1.2em;
    margin-left: 12px;
}
.service-desc {
    color: #aaaaaa;
    font-size: 0.95em;
    margin-left: 8px;
}

.exchangers-section {
    background: #181818;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 80px;
}
.exchangers-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.exchangers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.exchangers-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    background: none;
    border-bottom: 1px solid #313131;
    cursor: pointer;
    border-radius: 0;
    font-size: 1rem;
    color: #aaa;
    transition: background 0.2s;
}
.exchangers-list li:last-child {
    border-bottom: none;
}
.exchangers-list li.inactive {
    cursor: not-allowed;
    color: #555;
    opacity: 0.7;
}
.exchanger-icon {
    width: 24px;
    height: 24px;
    background: url('/static/location.png') center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}
.exchanger-info {
    flex: 1;
}
.exchanger-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}
.exchanger-desc {
    color: #aaa;
    font-size: 0.97rem;
    margin-top: 2px;
}
.li-arrow {
    color: #313131;
    font-size: 1.2em;
    margin-left: 12px;
    margin-top: 4px;
}

#toast {
    visibility: hidden;
    min-width: 220px;
    background: #232323;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 14px 24px;
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 9999;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}
#toast.show {
    visibility: visible;
    opacity: 1;
}

button:disabled,
.tab-btn[disabled],
.aml-btn[disabled] {
    background: #232323 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
    border: 1.5px solid #313131 !important;
    pointer-events: none;
}

.services-blur {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    filter: blur(1px);
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 600px) {
    .main-container {
        max-width: 90vw;
        padding-bottom: 80px;
    }
    .exchange-section, .aml-section, .apple-pay-section, .services-section, .exchangers-section {
        padding: 14px 6px;
    }
    .currencies-list {
        gap: 6px;
    }
}

.coin-select {
    position: relative;
    display: inline-block;
    min-width: 120px;
    margin-left: 8px;
    vertical-align: middle;
}
.coin-selected {
    border: 1.5px solid #313131;
    border-radius: 8px;
    padding: 4px 12px 4px 8px;
    background: #232323;
    color: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    min-width: 90px;
    gap: 6px;
    user-select: none;
}
.coin-dropdown {
    display: none;
    position: absolute;
    left: 0; top: 110%;
    background: #232323;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 120px;
    z-index: 10;
    padding: 4px 0;
}
.coin-select.open .coin-dropdown {
    display: block;
}
.coin-option {
    padding: 7px 16px 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: background 0.18s;
}
.coin-option:hover {
    background: #313131;
}
.coin-option img, .coin-selected img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

#delivery-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#delivery-modal > div {
  background: #232323;
  padding: 32px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
}
#delivery-modal button {
  margin-bottom: 12px;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  width: 220px;
  transition: background 0.15s;
}
#delivery-office {
  background: linear-gradient(135deg, #3377FF, #2255cc);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 500;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  transition: all 0.2s ease;
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(51, 119, 255, 0.4);
}
#delivery-office:hover {
  background: linear-gradient(135deg, #1a1a1a, #252525);
  border-color: #3377FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 119, 255, 0.2);
}
#delivery-office::before {
  content: '🏢';
  font-size: 16px;
  margin-right: 8px;
}
#delivery-courier {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 500;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  transition: all 0.2s ease;
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}
#delivery-courier:hover {
  background: linear-gradient(135deg, #1a1a1a, #252525);
  border-color: #43a047;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.2);
}
#delivery-courier::before {
  content: '🚗';
  font-size: 16px;
  margin-right: 8px;
}
#delivery-cancel {
  margin-top: 18px;
  background: #313131;
  color: #fff;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 8px;
}
#delivery-cancel:hover {
  background: #222;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #232323;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.history-table th, .history-table td {
  padding: 10px 16px;
  text-align: left;
}
.history-table thead {
  background: #313131;
}
.history-table tbody tr:nth-child(even) {
  background: #282828;
}
.history-table tbody tr:nth-child(odd) {
  background: #232323;
}
.show-qr-btn {
  background: #3377FF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.show-qr-btn:hover {
  background: #2255bb;
}

.app-card {
  background: #232323;
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  margin: 40px auto 0 auto;
  box-shadow: 0 2px 16px 0 #0002;
}
.app-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.app-row {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #232323;
  margin: 10% auto;
  padding: 32px 24px 24px 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 340px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}
.close:hover {
  color: #fff;
}
#pin-form input {
  margin-bottom: 12px;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.2em;
}
#pin-form button {
  margin-top: 8px;
}
#pin-error {
  min-height: 20px;
}

.profile-menu {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  justify-content: center;
}
.profile-menu-btn {
  flex: 1;
  background: #181818;
  border: none;
  color: #8C8C8D;
  font-size: 1.15rem;
  padding: 14px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile-menu-btn.selected, .profile-menu-btn:active {
  color: #3377FF;
  background: #232323;
}

.pin-keyboard {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-gap: 12px;
  justify-content: center;
  margin: 18px 0 8px 0;
}
.pin-key {
  background: #232323;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  border-radius: 12px;
  padding: 16px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.pin-key:active {
  background: #3377FF;
  color: #fff;
}
.pin-key.del {
  background: #f66;
  color: #fff;
}
.pin-key.ok {
  background: #3377FF;
  color: #fff;
}

.profile-menu.column {
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.profile-menu-btn {
  width: 100%;
  margin: 0;
} 