/* Общие стили для всего приложения */
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #181818;
    color: #fff;
}
.gradient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #232323 0%, #1a1a2e 100%);
}
#root {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: none;
}
.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 {
    margin-bottom: 4px; /* увеличено с 2px */
    font-size: 2.1rem; /* увеличено, если используется */
}
#toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: #232323;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    z-index: 1000;
    display: none;
}
#toast.show {
    display: block;
}
/* Таблицы */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #232323;
    border-radius: 12px;
    overflow: hidden;
}
.history-table th, .history-table td {
    padding: 12px 16px;
    text-align: left;
}
.history-table th {
    background: #232323;
    color: #8C8C8D;
    font-weight: 500;
    font-size: 1rem;
}
.history-table tr {
    border-bottom: 1px solid #222;
}
.history-table tr:last-child {
    border-bottom: none;
}
/* --- Стили для выбора реквизитов --- */
.payment-methods-container {
    margin-top: 12px;
}

.payment-methods-label {
    font-size: 0.95rem;
    color: #8C8C8D;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.payment-method-card {
    background: #181818;
    border: 2px solid #313131;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-method-card:hover {
    border-color: #3377FF;
    background: #1a1a1a;
}

.payment-method-card.selected {
    border-color: #3377FF;
    background: #1a1a1a;
    box-shadow: 0 0 0 1px #3377FF;
}

.payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.payment-method-type {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-type.card {
    background: #3377FF;
    color: #fff;
}

.payment-method-type.crypto {
    background: #43a047;
    color: #fff;
}

.payment-method-currency {
    font-size: 0.85rem;
    color: #8C8C8D;
    font-weight: 500;
}

.payment-method-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.payment-method-value {
    font-size: 0.9rem;
    color: #aaa;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.payment-method-check {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid #313131;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-method-card.selected .payment-method-check {
    background: #3377FF;
    border-color: #3377FF;
}

.payment-method-card.selected .payment-method-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.no-methods-message {
    text-align: center;
    padding: 24px 16px;
    background: #181818;
    border: 2px dashed #313131;
    border-radius: 12px;
    color: #8C8C8D;
}

.no-methods-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.no-methods-text {
    font-size: 1rem;
    margin-bottom: 16px;
}

.add-method-btn {
    background: #3377FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.add-method-btn:hover {
    background: #2255cc;
}

/* Скрываем старый select */
#payment-method-select {
    display: none;
}

/* --- Стили для модального окна выбора реквизитов --- */
#payment-methods-modal .modal-content {
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

#payment-methods-modal h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

#payment-methods-modal .payment-methods-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.modal-cancel-btn {
    background: #313131;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.modal-cancel-btn:hover {
    background: #222;
}

/* --- Стили для кнопок доставки в модальном окне --- */
.delivery-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.delivery-btn {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid #313131;
    border-radius: 12px;
    background: #181818;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-btn:hover {
    border-color: #3377FF;
    background: linear-gradient(135deg, #1a1a1a, #252525);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 119, 255, 0.2);
}

.delivery-btn.selected {
    border-color: #3377FF;
    background: linear-gradient(135deg, #3377FF, #2255cc);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 119, 255, 0.4);
}

.delivery-btn.office.selected {
    background: linear-gradient(135deg, #3377FF, #2255cc);
    border-color: #3377FF;
}

.delivery-btn.courier.selected {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    border-color: #43a047;
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

/* Иконки для кнопок доставки */
.delivery-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.delivery-btn.office::before {
    content: '🏢';
    font-size: 16px;
    width: auto;
    height: auto;
}

.delivery-btn.courier::before {
    content: '🚗';
    font-size: 16px;
    width: auto;
    height: auto;
}

/* Стили для контейнера интервала курьера */
#courier-interval-container {
    margin-top: 16px;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #313131;
    border-radius: 8px;
}

#courier-interval-container label {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

#courier-interval-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #313131;
    border-radius: 8px;
    background: #181818;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border 0.2s;
}

#courier-interval-select:focus {
    outline: none;
    border-color: #43a047;
}

#courier-interval-select option {
    background: #181818;
    color: #fff;
    padding: 8px;
}

/* Стили для выбора офиса */
.office-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.office-card {
    background: #181818;
    border: 2px solid #313131;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.office-card:hover {
    border-color: #3377FF;
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 119, 255, 0.2);
}

.office-card.selected {
    border-color: #3377FF;
    background: linear-gradient(135deg, rgba(51, 119, 255, 0.1), rgba(34, 85, 204, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 119, 255, 0.3);
}

.office-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: #3377FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.office-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.office-icon {
    font-size: 20px;
    margin-top: 2px;
}

.office-info {
    flex: 1;
}

.office-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.office-address {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 4px;
    line-height: 1.3;
}

.office-hours {
    font-size: 0.85rem;
    color: #43a047;
    font-weight: 500;
}

.office-commission {
    color: #43a047;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(67, 160, 71, 0.07);
    padding: 4px 0 4px 0;
    text-align: left;
    transition: opacity 0.2s;
    opacity: 1;
    min-height: 20px;
    display: block;
}

/* --- Стили для пошагового модального окна --- */
.modal-step {
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

.methods-dropdown-container {
    margin-bottom: 20px;
}

.methods-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #313131;
    border-radius: 8px;
    background: #181818;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border 0.2s;
}

.methods-dropdown:focus {
    outline: none;
    border-color: #3377FF;
}

.methods-dropdown option {
    background: #181818;
    color: #fff;
    padding: 8px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-next-btn, .modal-back-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-next-btn {
    background: #3377FF;
    color: #fff;
    flex: 1;
}

.modal-next-btn:hover:not(:disabled) {
    background: #2255cc;
}

.modal-next-btn:disabled {
    background: #313131;
    color: #666;
    cursor: not-allowed;
}

.modal-back-btn {
    background: #313131;
    color: #fff;
    flex: 1;
}

.modal-back-btn:hover {
    background: #222;
} 