:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --accent-green: #10B981;
    --accent-green-dark: #059669;
    --accent-green-light: #34D399;
    --danger-red: #EF4444;
    --danger-red-dark: #DC2626;
    --warning-amber: #F59E0B;
    --blue-500: #3B82F6;
    --purple-500: #8B5CF6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-green);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-register {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-register:hover {
    background: var(--accent-green-dark);
    color: var(--bg-primary);
}

.admin-link {
    color: var(--warning-amber);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketplace {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
}

.filter-select {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    font-family: var(--font);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-tile {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    opacity: 0;
    transition: var(--transition);
}

.card-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.1);
}

.card-tile:hover::before {
    opacity: 1;
}

.card-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-type-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-balance {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.card-balance-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.available {
    background: var(--accent-green);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-dot.sold {
    background: var(--danger-red);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--danger-red);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-red-dark);
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 60px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-green);
}

.forgot-link {
    color: var(--accent-green);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.checkout-section {
    min-height: 100vh;
    padding: 100px 2rem 60px;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.checkout-header p {
    color: var(--text-secondary);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    align-items: start;
}

.order-summary, .payment-section {
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.order-summary h3, .payment-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.mini-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.mini-card-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.mini-card-balance {
    font-size: 2rem;
    font-weight: 800;
}

.mini-card-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-detail-row.total {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price {
    color: var(--accent-green);
    font-weight: 600;
}

.total-price {
    font-size: 1.15rem;
}

.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

.payment-method.active {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.08);
}

.method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-name {
    font-weight: 600;
}

.method-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.payment-details {
    margin-top: 1.5rem;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.info-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.info-value {
    font-weight: 600;
}

.info-value.amount {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.wallet-address-box {
    margin-bottom: 1.5rem;
}

.wallet-address-box label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.address-display code {
    flex: 1;
    font-size: 0.8rem;
    color: var(--accent-green);
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

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

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

.qr-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-placeholder {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.qr-frame {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-inner {
    width: 140px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.qr-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.timer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.timer-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warning-amber);
    font-family: 'Courier New', monospace;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 1rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.pending {
    background: var(--warning-amber);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-indicator.confirmed {
    background: var(--accent-green);
}

.status-indicator.completed {
    background: var(--accent-green);
}

.status-indicator.failed {
    background: var(--danger-red);
}

.dashboard-section {
    min-height: 100vh;
    padding: 100px 2rem 60px;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--text-secondary);
}

.dashboard-tabs, .admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.order-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.order-card:hover {
    border-color: rgba(16, 185, 129, 0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-id {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
}

.order-card-body {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-detail-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.order-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-card-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-awaiting_payment {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-amber);
}

.badge-payment_confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-500);
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-red);
}

.badge-open {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge-closed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
}

.support-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ticket-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.ticket-card:hover {
    border-color: rgba(16, 185, 129, 0.15);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ticket-subject {
    font-weight: 600;
}

.ticket-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ticket-response {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-top: 0.75rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.modal {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.profile-info {
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state, .error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.empty-state p, .error-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-state {
    border-color: rgba(239, 68, 68, 0.2);
}

.error-state p {
    color: var(--danger-red);
}

/* Admin Styles */
.admin-section {
    min-height: 100vh;
    padding: 100px 2rem 60px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-header p {
    color: var(--text-secondary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .actions {
    display: flex;
    gap: 6px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-container {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.chart-container h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.chart-area {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-green-dark), var(--accent-green));
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: var(--transition);
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.type-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.type-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.type-bar-label {
    width: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.type-bar-track {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.type-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green-dark), var(--accent-green));
    border-radius: 12px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: fit-content;
}

.type-bar-count {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    width: 30px;
    text-align: right;
}

.announcement-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.announcement-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.announcement-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.footer {
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.flash-container {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 480px;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-message.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.flash-message.flash-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green-light);
}

.flash-message.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
}

.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-container {
    text-align: center;
    padding: 3rem;
    border-radius: var(--radius-xl);
    max-width: 500px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--warning-amber);
}

.error-container h2 {
    margin-bottom: 0.5rem;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Card Actions */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 1rem;
}

.card-actions .btn-sm {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Chat Section */
.chat-section {
    height: calc(100vh - 72px);
    padding: 88px 1rem 1rem;
    display: flex;
}

.chat-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: calc(100vh - 104px);
}

.chat-sidebar {
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.chat-sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.chat-sidebar-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.chat-count {
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.conv-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.conv-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--accent-green);
}

.conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.conv-content {
    flex: 1;
    min-width: 0;
}

.conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conv-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.conv-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.conv-preview {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    flex-shrink: 0;
}

.badge-inquire {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-500);
}

.badge-buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.conv-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
}

.conv-empty p {
    margin-bottom: 0.5rem;
}

.conv-hint {
    font-size: 0.85rem;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.5'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}

.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: rgba(0, 0, 0, 0.7);
}

.chat-placeholder p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.chat-back-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
    padding: 4px;
}

.chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-subject {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.chat-header-meta {
    font-size: 0.78rem;
    color: #667;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #555;
}

.chat-header-status .status-dot {
    width: 8px;
    height: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-row {
    display: flex;
    margin-bottom: 4px;
}

.msg-row.outgoing {
    justify-content: flex-end;
}

.msg-row.incoming {
    justify-content: flex-start;
}

.msg-bubble {
    max-width: 70%;
    padding: 8px 14px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.msg-mine {
    background: #dcf8c6;
    color: #111;
    border-top-right-radius: 2px;
}

.msg-theirs {
    background: #ffffff;
    color: #111;
    border-top-left-radius: 2px;
}

.msg-text {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 4px;
}

.msg-time {
    font-size: 0.65rem;
    color: #999;
    text-align: right;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.chat-attach-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
    padding: 4px;
    transition: var(--transition);
}

.chat-attach-btn:hover {
    color: var(--accent-green);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    background: #ffffff;
    font-size: 0.92rem;
    font-family: var(--font);
    outline: none;
    color: #111;
}

.chat-input::placeholder {
    color: #aaa;
}

.chat-send-btn {
    padding: 10px 24px;
    background: #075e54;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.chat-send-btn:hover {
    background: #054d44;
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Payment Info Panel */
.payment-info-panel {
    background: #ffffff;
    border-bottom: 2px solid var(--accent-green);
    padding: 0;
    flex-shrink: 0;
    max-height: 260px;
    overflow-y: auto;
}

.payment-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f7fff7;
    border-bottom: 1px solid #e0f0e0;
}

.payment-info-header h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a3a1a;
}

.pay-mode-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-info-body {
    padding: 12px 16px;
}

.pay-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.pay-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pay-entry.pay-total {
    border-top: 2px solid var(--accent-green);
    padding-top: 10px;
    border-bottom: none;
    margin-top: 6px;
}

.pay-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pay-value {
    font-size: 0.88rem;
    color: #222;
    word-break: break-all;
}

.pay-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-value-row code {
    flex: 1;
    font-size: 0.82rem;
    color: #075e54;
    background: #f0faf0;
    padding: 6px 10px;
    border-radius: 6px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.pay-copy {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #075e54;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.pay-copy:hover {
    background: #054d44;
}

.pay-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-green-dark);
}

.pay-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.pay-actions .btn-sm {
    font-size: 0.82rem;
    padding: 8px 16px;
}

.pay-no-details {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    padding: 1rem 0;
}

.msg-notification .msg-text {
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
}

/* Crypto Address Editor */
#cryptoAddressesContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.crypto-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crypto-network {
    width: 160px;
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 0.85rem;
}

.crypto-network option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.crypto-address {
    flex: 1;
    min-width: 0;
}

.crypto-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

.crypto-remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(24px);
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .auth-container {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .dashboard-tabs {
        flex-direction: column;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-sidebar.active {
        display: flex;
        position: absolute;
        inset: 0;
        z-index: 10;
    }

    .chat-back-btn {
        display: block;
    }

    .chat-section {
        padding: 80px 0 0;
    }

    .chat-container {
        border-radius: 0;
        max-height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .modal {
        padding: 1.5rem;
    }

    .order-card-header {
        flex-direction: column;
    }
}

.legal-section {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-body h3 {
    color: #10B981;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-body p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem;
    }
    .legal-container h2 {
        font-size: 1.5rem;
    }
}
