/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --accent: #3B82F6;
    --bg: #FFFFFF;
    --bg-alt: #F3F4F6;
    --card-bg: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #D97706;
    --danger: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Login Screen ========== */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-screen.hidden {
    display: none;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.4s ease;
}

.login-logo {
    margin-bottom: 24px;
}

.login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.login-form .form-group {
    text-align: left;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-with-icon input {
    padding-left: 32px;
}

.btn-telegram {
    background: #0088CC;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-telegram:hover {
    background: #006DA3;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.telegram-widget-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 48px;
}

.login-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text { letter-spacing: -0.5px; }

.highlight { color: var(--primary); }

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0EEFF;
    border: 1px solid #D9D5FF;
    border-radius: 100px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.wallet-balance:hover {
    background: #E4E0FF;
    border-color: var(--primary);
}

.add-funds-plus {
    background: var(--primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: box-shadow 0.2s;
}

.user-avatar:hover {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 150;
    display: none;
    animation: modalIn 0.2s ease;
}

.user-dropdown.active {
    display: block;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-user-info strong {
    display: block;
    font-size: 0.95rem;
}

.dropdown-user-info small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.dropdown-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F9FAFB;
    font-size: 0.9rem;
}

.dropdown-balance span {
    color: var(--text-muted);
}

.dropdown-balance strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #F3F4F6;
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
}

.shape-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -100px; left: -100px;
}

.shape-2 {
    width: 400px; height: 400px;
    background: var(--accent);
    bottom: -50px; right: -50px;
}

.shape-3 {
    width: 300px; height: 300px;
    background: #EC4899;
    top: 50%; left: 60%;
    transform: translate(-50%, -50%);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-buy {
    width: 100%;
    margin-top: 16px;
}

/* ========== Sections ========== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ========== Filter Bar ========== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Products Grid ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
}

.product-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.product-badge.hot {
    background: var(--danger);
}

.product-icon {
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.product-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-tag {
    background: #F0EEFF;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #D9D5FF;
}

/* ========== Steps ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Payment Box ========== */
.payment-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.payment-icon {
    margin-bottom: 20px;
}

.payment-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.wallet-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F0EEFF;
    border: 1px solid #D9D5FF;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.wallet-address code {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.copy-btn:hover { color: var(--primary); }

.wallet-network {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.payment-warning {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: var(--warning);
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-icon { margin-bottom: 16px; }

.contact-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Footer ========== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

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

.modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}

/* ========== Multi-Step Modal ========== */
.modal-order {
    max-width: 500px;
    padding: 32px 36px 36px;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.step-dot span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.step-dot small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-dot.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step-dot.active small {
    color: var(--primary);
    font-weight: 600;
}

.step-dot.done span {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 18px;
    transition: background 0.3s;
}

.step-line.done {
    background: #10B981;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: stepIn 0.3s ease;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.modal-step h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.step-product-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 22px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.amount-option {
    padding: 12px 8px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    background: #FAFAFA;
    color: var(--text);
}

.amount-option:hover {
    border-color: var(--primary);
    background: var(--primary-light, #F0EEFF);
}

.amount-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Payment Summary */
.payment-summary {
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.summary-row span {
    color: var(--text-muted);
}

.summary-highlight {
    color: var(--primary) !important;
    font-size: 1.1rem !important;
}

/* Payment Method Box */
.payment-method-box {
    background: #FAFAFA;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method-header div {
    display: flex;
    flex-direction: column;
}

.payment-method-header strong {
    font-size: 0.95rem;
}

.payment-method-header small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.wallet-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wallet-address-modal {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F0EEFF;
    border: 1px solid #D9D5FF;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.wallet-address-modal code {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    word-break: break-all;
    flex: 1;
}

.payment-warning-sm {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #D97706;
    font-size: 0.78rem;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.4;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.step-buttons .btn {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: #F3F4F6;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 12px 0;
}

.success-icon {
    margin-bottom: 16px;
}

.success-screen h2 {
    margin-bottom: 10px;
}

.success-screen p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.success-contact {
    font-size: 0.85rem !important;
    margin-bottom: 24px !important;
}

/* ========== Hero Buttons ========== */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========== Balance Info Bar ========== */
.balance-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F0EEFF;
    border: 1px solid #D9D5FF;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.balance-info-bar span {
    color: var(--text-muted);
}

.balance-info-bar strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========== Current Balance Box ========== */
.current-balance-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.current-balance-box strong {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}

/* ========== Deposit Amount Grid ========== */
.deposit-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ========== Summary Divider ========== */
.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ========== Insufficient Warning ========== */
.insufficient-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #D97706;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* ========== Order History ========== */
.order-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.95rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.history-item-left strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.history-item-left small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.history-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.history-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.history-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    text-transform: capitalize;
}

.status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-done {
    background: #D1FAE5;
    color: #059669;
}

/* ========== Mobile Nav ========== */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    z-index: 99;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 130px 0 70px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .section { padding: 70px 0; }
    .section-title { font-size: 1.7rem; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .payment-box {
        padding: 32px 20px;
    }

    .modal {
        padding: 28px 20px;
    }

    .wallet-balance span:not(.add-funds-plus) {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right {
        gap: 8px;
    }

    .wallet-balance {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-card h1 {
        font-size: 1.3rem;
    }

    .user-dropdown {
        right: -60px;
        width: 240px;
    }

    .deposit-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .wallet-address { flex-direction: column; }
}
