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

body {
    background: #18222d;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    padding-bottom: 60px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.timer {
    text-align: center;
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #8b95a1;
    font-weight: 500;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #232e3c;
    color: #fff;
    transition: background 0.2s;
}

input:focus {
    background: #2a3847;
}

input::placeholder {
    color: #6c7883;
}

.recipient-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #232e3c;
    border-radius: 10px;
    margin-top: 10px;
}

.recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3847;
}

.recipient-info {
    flex: 1;
}

.recipient-name {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.recipient-username {
    color: #8b95a1;
    font-size: 14px;
}

.promo-row {
    display: flex;
    gap: 8px;
}

.promo-btn, .check-btn {
    padding: 12px 18px;
    background: #3390ec;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
    white-space: nowrap;
}

.promo-btn:hover, .check-btn:hover {
    background: #2b7fd1;
}

.promo-btn:active, .check-btn:active {
    background: #2570bd;
}

.price-info {
    background: #232e3c;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    color: #8b95a1;
}

.price-row.total {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding-top: 8px;
    border-top: 1px solid #2a3847;
    margin-top: 8px;
    margin-bottom: 0;
}

.buy-btn {
    width: 100%;
    padding: 14px;
    background: #3390ec;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.buy-btn:hover {
    background: #2b7fd1;
    transform: translateY(-2px);
}

.buy-btn:active {
    background: #2570bd;
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(51, 144, 236, 0.3);
}

.wallet-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #3390ec;
    border: 1px solid #3390ec;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-btn:hover {
    background: rgba(51, 144, 236, 0.1);
}

.wallet-check {
    margin-top: 12px;
    padding: 14px;
    background: #232e3c;
    border-radius: 10px;
}

.wallet-info {
    margin-top: 12px;
    padding: 14px;
    background: #2a3847;
    border-radius: 10px;
}

.payment-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #2a3847;
    background: #232e3c;
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-btn:hover {
    border-color: #3390ec;
    background: #2a3847;
}

.payment-btn.active {
    border-color: #3390ec;
    background: #3390ec;
}

.order-info {
    text-align: center;
    padding: 20px;
}

.order-info h2 {
    color: #fff;
    margin-bottom: 15px;
}

.hash {
    background: #232e3c;
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin: 15px 0;
    color: #8b95a1;
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #232e3c;
    border-top: 1px solid #2a3847;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    color: #8b95a1;
    transition: color 0.2s;
    border: none;
    background: transparent;
    font-size: 12px;
}

.tab-item.active {
    color: #3390ec;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.transactions-list {
    margin-top: 20px;
}

.transaction-item {
    background: #232e3c;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.transaction-status {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.transaction-status.pending {
    background: #ffa50033;
    color: #ffa500;
}

.transaction-status.completed {
    background: #4caf5033;
    color: #4caf50;
}

.transaction-status.failed {
    background: #f4433633;
    color: #f44336;
}

.transaction-details {
    color: #8b95a1;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8b95a1;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}


.myself-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: transparent;
    border: 1px solid #3390ec;
    border-radius: 8px;
    color: #3390ec;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.myself-btn:hover {
    background: #3390ec;
    color: #fff;
}

.icon-btn {
    padding: 10px;
    background: #232e3c;
    border: 1px solid #2a3847;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #2a3847;
    border-color: #3390ec;
}

.promo-toggle {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed #2a3847;
    border-radius: 8px;
    color: #8b95a1;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.2s;
}

.promo-toggle:hover {
    border-color: #3390ec;
    color: #3390ec;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.transaction-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.transaction-item:hover {
    transform: translateX(5px);
}

.order-card {
    background: #232e3c;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
}

.order-status.pending {
    background: #ffa50033;
    color: #ffa500;
}

.order-status.completed {
    background: #00ff0033;
    color: #00ff00;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a3847;
}

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

.order-hash {
    font-family: monospace;
    font-size: 12px;
    color: #8b95a1;
}
