:root {
    --usdt: #26A17B;
    --usdt-dark: #1a7a5c;
    --usdt-light: #50af95;
    --usdt-glow: rgba(38, 161, 123, 0.4);
    --usdt-dim: rgba(38, 161, 123, 0.1);
    --bg: #0a0e13;
    --bg-card: #0f1419;
    --bg-elevated: #151c25;
    --border: rgba(38, 161, 123, 0.12);
    --border-active: rgba(38, 161, 123, 0.35);
    --text: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(38, 161, 123, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 161, 123, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--usdt);
}

.bg-glow-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
    background: #1a5c4a;
}

.app {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .app {
        max-width: 540px;
        padding: 0 24px;
        padding-bottom: 40px;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 19, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    margin: 0 calc(-50vw + 50%);
    padding: 14px calc(50vw - 50% + 16px);
}

@media (min-width: 768px) {
    .header {
        padding: 18px calc(50vw - 50% + 24px);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

    .logo-icon svg {
        width: 100%;
        height: 100%;
    }

    .logo-icon::before {
        content: '';
        position: absolute;
        inset: -3px;
        background: radial-gradient(circle, var(--usdt-glow) 0%, transparent 70%);
        border-radius: 50%;
        animation: logoPulse 2s ease-in-out infinite;
        z-index: -1;
    }

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.logo-icon .bolt {
    animation: boltGlow 1.5s ease-in-out infinite alternate;
}

@keyframes boltGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(128, 255, 204, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 6px rgba(128, 255, 204, 0.9));
    }
}

.logo-ring {
    animation: ringRotate 8s linear infinite;
    transform-origin: center;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

    .logo-text span {
        color: var(--usdt);
    }

.network-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--usdt-dim);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--usdt-light);
}

.network-dot {
    width: 6px;
    height: 6px;
    background: var(--usdt-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.connect-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--usdt), var(--usdt-dark));
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px var(--usdt-glow);
}

    .connect-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px var(--usdt-glow);
    }

    .connect-btn.connected {
        background: var(--bg-elevated);
        border: 1px solid var(--border-active);
        box-shadow: none;
    }

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0 28px;
}

@media (min-width: 768px) {
    .hero {
        padding: 56px 0 36px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--usdt-dim);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--usdt-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--usdt-light), var(--usdt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    transition: all 0.2s;
}

    .stat-item:hover {
        border-color: var(--border-active);
    }

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--usdt-light);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--usdt), var(--usdt-dark));
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--usdt-glow);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px var(--usdt-glow);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* Features Section */
.features {
    margin: 32px 0;
}

.features-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    gap: 12px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 14px;
    transition: all 0.2s;
}

    .feature-card:hover {
        border-color: var(--border-active);
    }

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--usdt-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon svg {
        width: 20px;
        height: 20px;
        stroke: var(--usdt);
    }

.feature-content {
    flex: 1;
}

.feature-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* How It Works */
.how-it-works {
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.how-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .how-title svg {
        width: 20px;
        height: 20px;
        stroke: var(--usdt);
    }

.how-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

    .how-text p {
        margin-bottom: 12px;
    }

        .how-text p:last-child {
            margin-bottom: 0;
        }

    .how-text strong {
        color: var(--text);
    }

/* Info Sections */
.info-section {
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.info-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .info-title svg {
        width: 20px;
        height: 20px;
        stroke: var(--usdt);
    }

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--usdt-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .info-item-icon svg {
        width: 18px;
        height: 18px;
        stroke: var(--usdt);
    }

.info-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .info-item-text strong {
        font-size: 0.85rem;
        color: var(--text);
    }

    .info-item-text span {
        font-size: 0.8rem;
        color: var(--text-secondary);
        line-height: 1.4;
    }

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    padding: 14px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.faq-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Partners */
.partners {
    padding: 24px 0;
    text-align: center;
}

.partners-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partner-icon {
    width: 36px;
    height: 36px;
    opacity: 0.7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .partner-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .partner-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Main Card */
.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-icon {
    width: 24px;
    height: 24px;
    background: var(--usdt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge {
    padding: 5px 10px;
    background: var(--usdt-dim);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--usdt-light);
}

.card-body {
    padding: 20px;
}

/* Wallet Info in Generator */
.wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-dot {
    width: 8px;
    height: 8px;
    background: var(--usdt);
    border-radius: 50%;
}

.wallet-addr-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wallet-network {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 6px;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-hint {
    color: var(--text-muted);
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--usdt);
        box-shadow: 0 0 0 3px var(--usdt-dim);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }

.input-with-suffix {
    position: relative;
}

    .input-with-suffix .form-input {
        padding-right: 80px;
    }

.input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.max-btn {
    padding: 5px 10px;
    background: var(--usdt);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

    .max-btn:hover {
        background: var(--usdt-dark);
    }

.preset-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

    .preset-btn:hover, .preset-btn.active {
        background: var(--usdt-dim);
        border-color: var(--usdt);
        color: var(--usdt-light);
    }

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2326A17B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

    .form-select:focus {
        outline: none;
        border-color: var(--usdt);
    }

/* Summary */
.summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.85rem;
}

    .summary-row:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

    .summary-value.highlight {
        color: var(--usdt-light);
    }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 16px;
}

    .modal-overlay.active {
        display: flex;
    }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .modal-close:hover {
        background: var(--bg-elevated);
        color: var(--text);
    }

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .wallet-option:hover {
        background: var(--bg-elevated);
        border-color: var(--border-active);
    }

.wallet-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .wallet-option-icon svg {
        width: 40px;
        height: 40px;
    }

.wallet-option-info {
    flex: 1;
}

.wallet-option-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.wallet-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Process */
.process-content {
    padding: 32px 20px;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--usdt);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.process-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Transaction Steps */
.tx-steps {
    padding: 20px;
}

.tx-step {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

    .tx-step:last-child {
        border-bottom: none;
    }

.tx-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    border: 2px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tx-step.active .tx-step-num {
    background: var(--usdt-dim);
    border-color: var(--usdt);
    color: var(--usdt);
}

.tx-step.done .tx-step-num {
    background: var(--usdt);
    border-color: var(--usdt);
    color: #fff;
}

.tx-step-content {
    flex: 1;
    padding-top: 4px;
}

.tx-step-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.tx-step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.tx-step.active .tx-step-desc {
    color: var(--text-secondary);
}

.tx-hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--usdt);
    margin-top: 6px;
    word-break: break-all;
}

/* Success */
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--usdt-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .success-icon svg {
        width: 32px;
        height: 32px;
        stroke: var(--usdt);
    }

.result-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px;
    margin-top: 20px;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.85rem;
}

    .result-row:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

.result-label {
    color: var(--text-muted);
}

.result-value {
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.tx-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

    .tx-link button {
        padding: 6px 12px;
        background: var(--usdt-dim);
        border: none;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--usdt);
        cursor: pointer;
    }

        .tx-link button:hover {
            background: var(--usdt);
            color: #fff;
        }

/* Activity */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--usdt-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .activity-icon svg {
        width: 20px;
        height: 20px;
        stroke: var(--usdt);
    }

.activity-info {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.activity-value {
    text-align: right;
}

.activity-amount {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--usdt);
}

.activity-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 19, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 100;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.nav-items {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

    .nav-item svg {
        width: 22px;
        height: 22px;
    }

    .nav-item span {
        font-size: 0.65rem;
        font-weight: 500;
    }

    .nav-item.active {
        color: var(--usdt);
    }

/* Panels */
.panel {
    display: none;
}

    .panel.active {
        display: block;
    }

/* Disclaimer */
.disclaimer {
    position: fixed;
    bottom: 65px;
    left: 16px;
    right: 16px;
    background: rgba(239, 68, 68, 0.9);
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 50;
}

@media (min-width: 768px) {
    .disclaimer {
        position: static;
        max-width: 540px;
        margin: 20px auto 0;
    }
}

.hidden {
    display: none !important;
}

/* Payment Modal */
.payment-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-select-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-custom-select {
    position: relative;
    width: 100%;
}

.payment-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .payment-custom-select-trigger:hover {
        border-color: var(--border-active);
    }

.payment-custom-select.open .payment-custom-select-trigger {
    border-color: var(--usdt);
}

.payment-custom-select-trigger .crypto-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}

    .payment-custom-select-trigger .crypto-label img {
        width: 24px;
        height: 24px;
    }

.payment-custom-select-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.payment-custom-select.open .payment-custom-select-trigger svg {
    transform: rotate(180deg);
}

.payment-custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.payment-custom-select.open .payment-custom-select-options {
    display: block;
}

.payment-crypto-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

    .payment-crypto-option:hover {
        background: var(--bg-secondary);
    }

    .payment-crypto-option.selected {
        background: var(--usdt-dim);
    }

    .payment-crypto-option .crypto-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        color: var(--text);
    }

        .payment-crypto-option .crypto-label img {
            width: 24px;
            height: 24px;
        }

    .payment-crypto-option .option-check {
        width: 16px;
        height: 16px;
        color: var(--usdt);
        display: none;
    }

    .payment-crypto-option.selected .option-check {
        display: block;
    }

.payment-network-select {
    display: none;
}

    .payment-network-select.visible {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

@media (max-width: 480px) {
    .payment-send-crypto {
        font-size: 1.3rem;
    }
}

.payment-address-box {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--usdt);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.payment-send-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.payment-send-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-send-crypto {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--usdt-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .payment-send-crypto img {
        width: 28px;
        height: 28px;
    }

.payment-to-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.payment-address {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 12px;
}

.payment-address-text {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text);
    word-break: break-all;
}

.payment-copy-btn {
    padding: 8px 14px;
    background: var(--usdt);
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

    .payment-copy-btn:hover {
        background: var(--usdt-dark);
    }

.payment-amount-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.payment-amount-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}

    .payment-amount-row:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

.payment-amount-label {
    color: var(--text-muted);
}

.payment-amount-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

    .payment-amount-value.highlight {
        color: var(--usdt-light);
    }

.payment-qr {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
}

    .payment-qr canvas {
        max-width: 180px;
        max-height: 180px;
    }

.payment-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.payment-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.payment-divider-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.wallet-connect-section {
    margin-top: 16px;
}

.wallet-connect-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

    .wallet-connect-btn:hover {
        background: var(--bg-elevated);
        border-color: var(--border-active);
    }

    .wallet-connect-btn svg {
        width: 20px;
        height: 20px;
        stroke: var(--usdt);
    }

.custom-select-trigger .option-label,
.custom-select-option .option-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tariff Cards */
.tariff-section {
    margin-bottom: 20px;
}

.tariff-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tariff-card {
    position: relative;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

    .tariff-card:hover {
        border-color: var(--border-active);
        transform: translateY(-2px);
    }

    .tariff-card.active {
        border-color: var(--usdt);
        background: var(--usdt-dim);
    }

    .tariff-card.popular::before {
        content: 'POPULAR';
        position: absolute;
        top: 8px;
        right: -24px;
        background: var(--usdt);
        color: #fff;
        font-size: 0.55rem;
        font-weight: 700;
        padding: 3px 28px;
        transform: rotate(45deg);
    }

.tariff-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

    .tariff-amount span {
        font-size: 0.75rem;
        color: var(--usdt-light);
        font-weight: 500;
    }

.tariff-price {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--usdt-light);
}

.tariff-price-usd {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tariff-features {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tariff-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--usdt);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.tariff-card.active .tariff-check {
    display: flex;
}

.tariff-check svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

    .custom-select-trigger:hover {
        border-color: var(--border-active);
    }

.custom-select.open .custom-select-trigger {
    border-color: var(--usdt);
    border-radius: 12px 12px 0 0;
}

.custom-select-trigger svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    transition: transform 0.2s;
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
    stroke: var(--usdt);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--usdt);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 100;
    display: none;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

    .custom-select-option:hover {
        background: var(--usdt-dim);
        color: var(--text);
    }

    .custom-select-option.selected {
        background: var(--usdt-dim);
        color: var(--usdt-light);
    }

    .custom-select-option .option-label {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .custom-select-option .option-icon {
        width: 18px;
        height: 18px;
        stroke: var(--usdt);
    }

    .custom-select-option .option-check {
        width: 16px;
        height: 16px;
        stroke: var(--usdt);
        opacity: 0;
    }

    .custom-select-option.selected .option-check {
        opacity: 1;
    }

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
}

    .qr-container canvas,
    .qr-container img {
        max-width: 160px;
        max-height: 160px;
    }

/* Input validation */
.form-input.error {
    border-color: var(--danger);
}

.form-input.valid {
    border-color: var(--usdt);
}

.input-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 6px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0 16px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-brand {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-sep {
    opacity: 0.4;
}

.footer-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 8px;
}

.footer-copy {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-top: 12px;
}

@media (min-width: 768px) {
    .footer {
        padding: 32px 0 24px;
    }
}
