/* ===== CSS ПЕРЕМЕННЫЕ + ТЁМНАЯ ТЕМА ===== */
/* Переменные для светлой темы (по умолчанию) */
:root {
    --bg: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-card: #FFFFFF;
    --border: #E5E5EA;
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --text-tertiary: #3A3A3C;
    --accent: #007AFF;
    --accent-light: #E1F0FF;
    --green: #34C759;
    --red: #FF3B30;
    --overlay: rgba(0, 0, 0, 0.4);
    --shadow: rgba(0, 0, 0, 0.06);
}

/* Тёмная тема — активируется классом body.dark или body[data-theme="dark"] */
body.dark,
body[data-theme="dark"] {
    --bg: #1C1C1E;
    --bg-secondary: #2C2C2E;
    --bg-card: #2C2C2E;
    --border: #3A3A3C;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-tertiary: #AEAEB2;
    --accent: #0A84FF;
    --accent-light: #1A2A3A;
    --green: #30D158;
    --red: #FF453A;
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Применяем переменные к ключевым элементам */
body {
    background-color: var(--bg);
    color: var(--text-primary);
}
.modal-sheet,
.deal-sheet,
.view-deal-page,
.history-page,
.leaders-overlay-page,
.active-deals-page {
    background: var(--bg);
}
.balance-card,
.stats-card,
.rates-card,
.wallet-main-card,
.view-details-card,
.status-timeline-card,
.view-cpty-card,
.menu-item,
.leaders-how-step,
.leaders-place-card,
.leaders-prize-box,
.leaders-countdown-cell {
    background: var(--bg-card);
    border-color: var(--border);
}
.stat-card,
.currency-item,
.confirm-box,
.deal-view-amount-card,
.wallet-action-btn-fill.secondary,
.safety-rule-row,
.wallets-wrap,
.wallet-tab-btn:not(.active),
.active-deal-card,
.leaders-prize-row:not(.raffle) {
    background: var(--bg-secondary);
    border-color: var(--border);
}
.wallet-item,
.rate-item,
.confirm-row,
.view-details-row {
    border-color: var(--border);
}
.deals-container h1,
.profile-name,
.balance-label,
.stats-title,
.rate-pair,
.modal-title,
.amount-section-title,
.deal-title,
.view-deal-id,
.view-amount-val,
.leaders-hero-title,
.leaders-how-step-title,
.leaders-cta-title {
    color: var(--text-primary);
}
.profile-username,
.hide-zero-label,
.stat-card-label,
.turnover-label,
.rate-pair,
.confirm-label,
.view-details-label,
.view-current-title,
.wallet-card-sub,
.wallet-modal-balance-label {
    color: var(--text-secondary);
}
.wallet-modal-input {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--text-primary);
}
.amount-input,
.desc-textarea,
.wallet-modal-comment {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}
.modal-overlay {
    background: var(--overlay);
}
/* ===== КОНЕЦ ТЁМНОЙ ТЕМЫ ===== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFFF;
    color: #1C1C1E;
    padding-bottom: 110px;
}

body.theme-transitioning-DISABLED,
body.theme-transitioning-DISABLED *,
body.theme-transitioning-DISABLED *::before,
body.theme-transitioning-DISABLED *::after {
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.container {
    padding: 16px;
}

.deals-container {
    padding: 20px;
}

.deals-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1C1C1E;
}

.btn {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-blue {
    background: #007AFF;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-blue:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-white {
    background: #F2F2F7;
    border: 1px solid #E5E5EA;
    color: #1C1C1E;
}

.btn-shimmer {
    background: linear-gradient(90deg, #F2F2F7 0%, #E5E5EA 25%, #007AFF 50%, #E5E5EA 75%, #F2F2F7 100%);
    background-size: 200% 100%;
    color: #0056B3;
    border: 1px solid rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
    animation: buttonShimmer 3s linear infinite;
    transition: transform 0.1s ease;
}

.btn-shimmer:active {
    transform: scale(0.98);
}

@keyframes buttonShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

#page-profile {
    position: relative;
}

.profile-header {
    text-align: center;
    padding: 20px 0 14px;
}

.avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    background: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1C1C1E;
}

.profile-username {
    font-size: 14px;
    color: #8E8E93;
}

.balance-card {
    background: #F2F2F7;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E5E5EA;
}

.balance-label {
    font-size: 17px;
    font-weight: 700;
    color: #1C1C1E;
}

.balance-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hide-zero-label {
    font-size: 14px;
    color: #8E8E93;
}

.switch {
    position: relative;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    inset: 0;
    background: #E5E5EA;
    border-radius: 34px;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 27px;
    height: 27px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input:checked+.slider {
    background: #34C759;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.wallets-wrap {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 8px 14px;
    margin-bottom: 12px;
    border: 1px solid #E5E5EA;
}

.wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid #F2F2F7;
}

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

.wallet-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1C1C1E;
}

.wallet-left img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.wallet-balance {
    font-weight: 700;
    font-size: 15px;
    color: #007AFF;
}

.wallet-item.hide {
    display: none;
}

.stats-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #E5E5EA;
}

.stats-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1C1C1E;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-card {
    background: #F2F2F7;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
}

.stat-card.full {
    grid-column: span 2;
}

.stat-card-label {
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 5px;
}

.stat-card-val {
    font-size: 20px;
    font-weight: 700;
    color: #1C1C1E;
}

.turnover-card {
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    margin-top: 8px;
    overflow: hidden;
    background: linear-gradient(90deg, #F2F2F7 0%, #E5E5EA 50%, #F2F2F7 100%);
    background-size: 200% 100%;
    animation: shimmer 2.4s ease-in-out infinite;
    border: 1px solid #E5E5EA;
}

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

    100% {
        background-position: -200% center;
    }
}

.turnover-label {
    font-size: 13px;
    color: #8E8E93;
    margin-bottom: 5px;
}

.turnover-val {
    font-size: 22px;
    font-weight: 700;
    color: #007AFF;
}

.menu-item {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #E5E5EA;
}

.menu-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0.2);
}

.menu-item-arrow {
    margin-left: auto;
    color: #C7C7CC;
    font-size: 20px;
}

.rates-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #E5E5EA;
}

.rates-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1C1C1E;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F2F2F7;
}

.rate-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rate-left img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.rate-pair {
    font-size: 15px;
    font-weight: 500;
    color: #1C1C1E;
}

.rate-val {
    font-size: 15px;
    font-weight: 700;
    color: #007AFF;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-sheet {
    background: #FFFFFF;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 40px;
    border-top: 1px solid #E5E5EA;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1C1C1E;
}

.lang-option {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    background: #F2F2F7;
    color: #1C1C1E;
}

.lang-option.selected {
    background: #E1F0FF;
    color: #007AFF;
    font-weight: 600;
    border: 1px solid #007AFF;
}

.lang-flag {
    font-size: 22px;
}

.modal-cancel {
    margin-top: 6px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #F2F2F7;
    font-size: 16px;
    font-weight: 600;
    color: #FF3B30;
    cursor: pointer;
}

.history-page {
    display: none;
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 200;
    flex-direction: column;
    overflow-y: auto;
}

.history-page.open {
    display: flex;
}

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

.history-back {
    background: #F2F2F7;
    border: 1px solid #E5E5EA;
    color: #1C1C1E;
    border-radius: 20px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.history-title {
    font-size: 26px;
    font-weight: 800;
    padding: 6px 20px 20px;
    color: #1C1C1E;
}

.active-deals-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-deal-card {
    background: #F2F2F7;
    border: 1px solid #E5E5EA;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-deal-card:active {
    opacity: 0.8;
}

.active-deal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.active-deal-id-txt {
    font-size: 16px;
    font-weight: 800;
    color: #1C1C1E;
}

.active-deal-amt-txt {
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
}

.active-deal-status-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.active-deal-status-badge.process {
    background: #E1F0FF;
    color: #007AFF;
}

.active-deal-status-badge.done {
    background: #E4F9E7;
    color: #34C759;
}

.no-deals-txt {
    text-align: center;
    color: #8E8E93;
    font-size: 15px;
    margin-top: 40px;
}

.tab-bar {
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    border-radius: 22px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: 50;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tab-bar.hide {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #8E8E93;
    gap: 3px;
    cursor: pointer;
    padding: 5px 14px;
    border-radius: 14px;
    transition: all .2s;
}

.tab.active {
    color: #007AFF;
    background: #F2F2F7;
}

.tab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0.4);
}

.tab.active img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(190deg);
}

.deal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

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

.deal-sheet {
    background: #FFFFFF;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 16px 40px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #E5E5EA;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

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

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

.deal-title {
    font-size: 22px;
    font-weight: 800;
    color: #1C1C1E;
}

.deal-close {
    width: 28px;
    height: 28px;
    background: #F2F2F7;
    border-radius: 50%;
    border: none;
    font-size: 12px;
    color: #8E8E93;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.deal-back-link {
    color: #007AFF;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    align-self: flex-start;
}

.deal-subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1C1C1E;
}

.deal-action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E5E5EA;
    background: #F2F2F7;
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.deal-action-btn:active {
    opacity: 0.7;
}

.deal-btn-icon {
    font-weight: 400;
    font-size: 18px;
    color: #007AFF;
}

.currency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    padding-bottom: 10px;
}

.currency-grid::-webkit-scrollbar {
    display: none;
}

.currency-item {
    background: #F2F2F7;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.currency-item:active {
    opacity: 0.7;
}

.currency-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.currency-item span {
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1E;
}

.amount-section-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1C1C1E;
}

.amount-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.amount-input {
    width: 100%;
    padding: 18px 16px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    background: #F2F2F7;
    outline: none;
    color: #1C1C1E;
}

.amount-input::placeholder {
    color: #A9A9AF;
}

.amount-input-currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #8E8E93;
    text-transform: uppercase;
}

.deal-next-btn {
    width: auto;
    min-width: 150px;
    padding: 15px 28px;
    border: none;
    border-radius: 16px;
    background: #007AFF;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
    text-align: center;
    align-self: flex-start;
    transition: transform 0.1s;
}

.deal-next-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.desc-info-box {
    background: #EBF5FF;
    border-radius: 14px;
    padding: 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #004085;
    margin-bottom: 16px;
    border: 1px solid #CCE5FF;
}

.desc-info-box strong {
    color: #002752;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

.desc-info-box p {
    color: #536A80;
    margin-bottom: 10px;
}

.desc-code-block {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    font-size: 13px;
    color: #007AFF;
    margin-bottom: 12px;
    border: 1px solid #B8DAFF;
}

.desc-otherwise {
    color: #1C1C1E;
    margin-top: 10px;
}

.desc-otherwise span {
    background: #E5E5EA;
    padding: 1px 4px;
    border-radius: 4px;
    color: #007AFF;
    font-family: monospace;
}

.desc-textarea {
    width: 100%;
    height: 110px;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    resize: none;
    color: #1C1C1E;
    margin-bottom: 24px;
    background: #F2F2F7;
}

.desc-textarea::placeholder {
    color: #A9A9AF;
}

.confirm-box {
    background: #F2F2F7;
    border-radius: 16px;
    padding: 4px 16px;
    margin-bottom: 28px;
    border: 1px solid #E5E5EA;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E5E5EA;
    font-size: 15px;
}

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

.confirm-label {
    color: #8E8E93;
}

.confirm-value {
    color: #1C1C1E;
    font-weight: 700;
    text-align: right;
    max-width: 65%;
    word-break: break-word;
}

.safety-header-icon {
    width: 44px;
    height: 44px;
    background: #FF3B30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 16px rgba(255, 59, 48, 0.3);
    margin-right: 12px;
}

.safety-red-title {
    color: #FF3B30;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.safety-scroll-container {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.safety-scroll-container::-webkit-scrollbar {
    display: none;
}

.safety-alert-box {
    background: #FFECEB;
    border-left: 3px solid #FF3B30;
    border-radius: 4px 12px 12px 4px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #D32F2F;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-text-p {
    font-size: 14px;
    color: #3A3A3C;
    line-height: 1.45;
    margin-bottom: 16px;
}

.safety-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-rule-row {
    background: #F2F2F7;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1C1C1E;
    line-height: 1.4;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #E5E5EA;
}

.safety-rule-row strong {
    font-weight: 800;
    color: #D32F2F;
}

.safety-tg-badge {
    background: #E1F0FF;
    color: #007AFF;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 13.5px;
    display: inline-block;
}

.safety-danger-box {
    background: #FFECEB;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #D32F2F;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    border: 1px solid #FFD8D6;
}

.safety-info-badge {
    background: #F2F2F7;
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1C1C1E;
    text-align: center;
    margin-top: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #E5E5EA;
}

.safety-timer-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    cursor: not-allowed;
    transition: background-color 0.3s ease;
}

.safety-timer-btn.waiting {
    background: #FFD1CE;
    color: #FF3B30;
}

.safety-timer-btn.ready {
    background: #FF3B30;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.safety-timer-btn.ready:active {
    transform: scale(0.99);
}

.view-deal-page {
    display: none;
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 250;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 30px;
}

.view-deal-page.open {
    display: flex;
}

.view-deal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #FFFFFF;
}

.view-deal-back {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-deal-id {
    font-size: 26px;
    font-weight: 800;
    padding: 0 16px 10px;
    color: #1C1C1E;
}

.view-cpty-card {
    margin: 0 16px 14px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid #E5E5EA;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.view-cpty-role {
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    background: #F2F2F7;
    border-radius: 8px;
    padding: 3px 9px;
    white-space: nowrap;
}

.view-cpty-name {
    font-size: 15px;
    font-weight: 600;
    color: #1C1C1E;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-timeline-card {
    background: #FFFFFF;
    margin: 0 16px 12px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E5EA;
}

.status-timeline-card .card-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.status-timeline-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1C1C1E;
}

.status-timeline-title span {
    color: #34C759;
}

.timeline-track-wrapper {
    position: relative;
    padding: 0 8px;
    margin-bottom: 8px;
}

.timeline-line {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: #E5E5EA;
    z-index: 1;
    border-radius: 2px;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #34C759;
    transition: width 0.3s ease;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-node {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #AEAEB2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline-node.active {
    background: #34C759;
}

.timeline-node.active.blink::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.4);
    animation: nodeBlink 1.6s infinite ease-in-out;
}

@keyframes nodeBlink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}

.timeline-text {
    font-size: 9.5px;
    font-weight: 700;
    color: #8E8E93;
    text-align: center;
    flex: 1;
    background: #F2F2F7;
    padding: 4px 0;
    border-radius: 6px;
    white-space: nowrap;
}

.timeline-text:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.timeline-text:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.timeline-text.active {
    color: white;
    background: #34C759;
}

.timeline-footer-text {
    text-align: center;
    font-size: 12px;
    color: #8E8E93;
    margin-top: 14px;
}

.deal-view-amount-card {
    background: #F2F2F7;
    margin: 0 16px 12px;
    padding: 20px 16px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #E5E5EA;
}

.view-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-amount-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.view-amount-val {
    font-size: 26px;
    font-weight: 800;
    color: #1C1C1E;
}

.view-desc-text {
    font-size: 14px;
    color: #3A3A3C;
    margin-top: 4px;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.4;
}

.view-details-card {
    background: #FFFFFF;
    margin: 0 16px 12px;
    border-radius: 20px;
    padding: 4px 16px;
    border: 1px solid #E5E5EA;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.view-details-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F2F2F7;
    font-size: 15px;
    gap: 12px;
}

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

.view-details-label {
    color: #8E8E93;
    flex-shrink: 0;
}

.view-details-val {
    font-weight: 700;
    color: #1C1C1E;
    text-align: right;
    word-break: break-word;
}

.view-details-val.blue-link {
    color: #007AFF;
}

.view-details-val.deal-status-static {
    color: #007AFF;
    cursor: default;
}

.view-current-action-card {
    background: #F2F2F7;
    margin: 0 16px 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border-left: 4px solid #007AFF;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #E5E5EA;
    border-left: 4px solid #007AFF;
}

.view-current-title {
    font-size: 11px;
    font-weight: 800;
    color: #8E8E93;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.view-current-desc {
    font-size: 14px;
    color: #1C1C1E;
    line-height: 1.4;
    font-weight: 500;
}

.view-share-btn-wrapper {
    padding: 0 16px;
    margin-top: auto;
}

.view-share-btn {
    width: 100%;
    padding: 16px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}

.view-share-btn:active {
    transform: scale(0.99);
    opacity: 0.9;
}

#page-wallets {
    padding: 0;
}

.wallets-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #1C1C1E;
    padding: 20px 20px 16px;
}

.wallet-currency-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-currency-tabs::-webkit-scrollbar {
    display: none;
}

.wallet-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #E5E5EA;
    background: #F2F2F7;
    font-size: 14px;
    font-weight: 700;
    color: #1C1C1E;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
    flex-shrink: 0;
}

.wallet-tab-btn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.wallet-tab-btn.active {
    background: #007AFF;
    color: #fff;
    border-color: #007AFF;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.25);
}

.wallet-main-card {
    background: #FFFFFF;
    border-radius: 18px;
    margin: 0 16px 12px;
    border: 1px solid #E5E5EA;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.wallet-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1C1C1E;
    padding: 18px 18px 6px;
}

.wallet-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid #F2F2F7;
}

.wallet-card-row:first-of-type {
    border-top: none;
}

.wallet-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F2F2F7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-card-icon-wrap img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.wallet-card-info {}

.wallet-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1C1C1E;
}

.wallet-card-sub {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 2px;
}

.wallet-card-edit {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E1F0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.wallet-card-edit svg {
    width: 16px;
    height: 16px;
    stroke: #007AFF;
}

.wallet-action-btns {
    padding: 4px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-action-btn-fill {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
}

.wallet-action-btn-fill:active {
    transform: scale(0.98);
}

.wallet-action-btn-fill.primary {
    background: #007AFF;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}

.wallet-action-btn-fill.secondary {
    background: #F2F2F7;
    color: #1C1C1E;
    border: 1px solid #E5E5EA;
}

.wallet-modal-balance-box {
    background: #EBF5FF;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #CCE5FF;
}

.wallet-modal-balance-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.wallet-modal-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-modal-balance-val {
    font-size: 22px;
    font-weight: 800;
    color: #1C1C1E;
}

.wallet-modal-balance-cur {
    font-size: 15px;
    font-weight: 700;
    color: #007AFF;
}

.wallet-deposit-card-box {
    background: #F2F2F7;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #E5E5EA;
}

.wallet-deposit-card-label {
    font-size: 13px;
    color: #8E8E93;
    margin-bottom: 8px;
}

.wallet-deposit-card-num-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-deposit-card-num {
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: 1px;
}

.wallet-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E1F0FF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wallet-copy-btn svg {
    width: 16px;
    height: 16px;
    stroke: #007AFF;
}

.wallet-modal-field-label {
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1E;
    margin-bottom: 8px;
}

.wallet-modal-input-wrap {
    position: relative;
    margin-bottom: 6px;
}

.wallet-modal-input {
    width: 100%;
    padding: 16px 70px 16px 16px;
    border: 1.5px solid #007AFF;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #1C1C1E;
    background: #fff;
    outline: none;
}

.wallet-modal-input::placeholder {
    color: #A9A9AF;
}

.wallet-modal-input-cur {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #007AFF;
}

.wallet-modal-hint {
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 18px;
}

.wallet-modal-comment {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1C1C1E;
    background: #F2F2F7;
    outline: none;
    resize: none;
    height: 70px;
    margin-bottom: 18px;
}

.wallet-modal-comment::placeholder {
    color: #A9A9AF;
}

.wallet-modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.wallet-modal-cancel {
    flex: 1;
    padding: 15px;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    background: #F2F2F7;
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1E;
    cursor: pointer;
}

.wallet-modal-confirm {
    flex: 1.6;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #007AFF;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.wallet-modal-confirm:active {
    transform: scale(0.98);
}

.wallet-edit-card-modal .deal-sheet {
    padding-bottom: 50px;
}

#page-leaders {
    padding: 0;
    background: #FFFFFF;
    overflow-y: auto;
}

.leaders-overlay-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    overflow-y: auto;
    background: #FFFFFF;
    padding-bottom: 100px;
}

.leaders-overlay-page.open {
    display: block;
}

.leaders-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.leaders-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1C1C1E;
    cursor: pointer;
}

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

.leaders-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #1C1C1E;
}

.leaders-hero {
    background: linear-gradient(160deg, #E8F4FF 0%, #D0E8FF 40%, #C8E0FF 100%);
    padding: 32px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leaders-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.08);
}

.leaders-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.06);
}

.leaders-trophy-icon {
    font-size: 64px;
    display: block;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 16px rgba(0, 100, 200, 0.25));
    position: relative;
    z-index: 1;
}

.leaders-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.leaders-hero-sub {
    font-size: 15px;
    color: #3A5A7A;
    margin-bottom: 18px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.leaders-participants-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #1C1C1E;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.leaders-participants-badge span {
    font-weight: 800;
    color: #007AFF;
}

.leaders-participants-icon {
    font-size: 18px;
}

.leaders-countdown-section {
    background: linear-gradient(160deg, #E8F4FF 0%, #C8E0FF 100%);
    padding: 20px 20px 24px;
}

.leaders-countdown-label {
    font-size: 11px;
    font-weight: 800;
    color: #5A8AB0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    margin-bottom: 14px;
}

.leaders-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.leaders-countdown-cell {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.leaders-countdown-num {
    font-size: 30px;
    font-weight: 800;
    color: #007AFF;
    display: block;
    line-height: 1;
}

.leaders-countdown-unit {
    font-size: 10px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
}

.leaders-prize-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.leaders-prize-label {
    font-size: 11px;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.leaders-prize-val {
    font-size: 34px;
    font-weight: 800;
    color: #007AFF;
}

.leaders-top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.leaders-place-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1.5px solid transparent;
}

.leaders-place-card.first {
    border-color: rgba(0, 122, 255, 0.3);
}

.leaders-place-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #007AFF;
    color: white;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.leaders-place-card:nth-child(2) .leaders-place-badge {
    background: #B0B8C1;
}

.leaders-place-card:nth-child(3) .leaders-place-badge {
    background: #C0825A;
}

.leaders-place-prize {
    font-size: 20px;
    font-weight: 800;
    color: #1C1C1E;
    display: block;
    margin-bottom: 2px;
}

.leaders-place-label {
    font-size: 11px;
    color: #8E8E93;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.leaders-newbie-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1.5px solid #D0E8FF;
}

.leaders-newbie-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.leaders-newbie-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4FC3F7, #007AFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.leaders-newbie-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.leaders-newbie-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1C1C1E;
}

.leaders-newbie-badge {
    background: #007AFF;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.leaders-newbie-headline {
    font-size: 16px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 6px;
}

.leaders-newbie-desc {
    font-size: 13.5px;
    color: #3A5A7A;
    line-height: 1.45;
    margin-bottom: 12px;
}

.leaders-newbie-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #EBF5FF;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #007AFF;
}

.leaders-prize-rows {
    padding: 0 16px;
    margin-bottom: 16px;
}

.leaders-prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F7;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 8px;
    border: 1px solid #E5E5EA;
}

.leaders-prize-row.raffle {
    background: linear-gradient(90deg, #E8F4FF, #D0E8FF);
    border-color: #B8D8FF;
}

.leaders-prize-row-label {
    font-size: 16px;
    font-weight: 700;
    color: #1C1C1E;
}

.leaders-prize-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaders-prize-row-amount {
    font-size: 18px;
    font-weight: 800;
    color: #007AFF;
}

.leaders-raffle-badge {
    background: #007AFF;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.leaders-winners-note {
    text-align: center;
    font-size: 14px;
    color: #5A7A9A;
    padding: 4px 20px 12px;
    font-weight: 500;
}

.leaders-raffle-card {
    background: linear-gradient(135deg, #E8F4FF, #D0E8FF);
    border-radius: 18px;
    padding: 18px;
    margin: 0 16px 16px;
    border: 1px solid #B8D8FF;
}

.leaders-raffle-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.leaders-raffle-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.leaders-raffle-title {
    font-size: 17px;
    font-weight: 800;
    color: #1C1C1E;
}

.leaders-raffle-desc {
    font-size: 14px;
    color: #3A5A7A;
    line-height: 1.45;
}

.leaders-how-section {
    padding: 0 16px 16px;
}

.leaders-how-title {
    font-size: 20px;
    font-weight: 800;
    color: #1C1C1E;
    text-align: center;
    margin-bottom: 14px;
}

.leaders-how-step {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #E5E5EA;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.leaders-how-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #007AFF;
    color: white;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leaders-how-text {}

.leaders-how-step-title {
    font-size: 15px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 3px;
}

.leaders-how-step-desc {
    font-size: 13.5px;
    color: #5A7A9A;
    line-height: 1.4;
}

.leaders-cta-card {
    background: linear-gradient(135deg, #E8F4FF, #C8E0FF);
    border-radius: 18px;
    padding: 18px;
    margin: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #B8D8FF;
}

.leaders-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4FC3F7, #007AFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.leaders-cta-title {
    font-size: 16px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 4px;
}

.leaders-cta-desc {
    font-size: 13.5px;
    color: #3A5A7A;
    line-height: 1.4;
}

.leaders-cta-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.leaders-participants-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.leaders-trophy-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    animation: trophyFloat 4s ease-in-out infinite;
    z-index: 1;
}

.trophy-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes trophyFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.pay-section {
    padding: 0 16px 16px;
}

.pay-insufficient {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pay-warn-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-warn-circle {
    width: 38px;
    height: 38px;
    background: #FF9F0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    flex-shrink: 0;
}

.pay-warn-text {
    color: #FF9F0A;
    font-size: 15px;
    font-weight: 700;
}

.pay-other-btn {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #E5E5EA;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #1C1C1E;
    cursor: pointer;
}