/**
 * SWAP.GG - Main Stylesheet
 * CS2 Skin Trading Platform
 * Premium Dark Theme with Red, Purple & Green Accents
 */

/* ===== CSS Variables ===== */
:root {
    /* Base Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    --bg-card-hover: #1c1c28;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    /* Accent Colors */
    --accent-red: #c41e3a;
    --accent-red-dark: #8b1538;
    --accent-red-glow: rgba(196, 30, 58, 0.4);

    --accent-purple: #6b2d8a;
    --accent-purple-dark: #4a1a6b;
    --accent-purple-glow: rgba(107, 45, 138, 0.4);

    --accent-green: #2d8a2d;
    --accent-green-dark: #1a4a1a;
    --accent-green-glow: rgba(45, 138, 45, 0.4);

    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Rarity Colors */
    --rarity-consumer: #b0c3d9;
    --rarity-industrial: #5e98d9;
    --rarity-milspec: #4b69ff;
    --rarity-restricted: #8847ff;
    --rarity-classified: #d32ce6;
    --rarity-covert: #eb4b4b;
    --rarity-contraband: #e4ae39;
    --rarity-extraordinary: #ffcc00;

    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);

    /* Glassmorphism */
    --glass-bg: rgba(18, 18, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --container-width: 1400px;
    --nav-height: 70px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger) !important;
}

.text-success {
    color: var(--success);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.btn-purple {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
    color: white;
}

.btn-purple:hover {
    box-shadow: 0 8px 25px var(--accent-purple-glow);
}

.btn-green {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
}

.btn-green:hover {
    box-shadow: 0 8px 25px var(--accent-green-glow);
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-red-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-red-glow);
    }
}

.btn-steam {
    background: linear-gradient(135deg, #1b2838, #171a21);
    color: white;
    padding: 14px 28px;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a4055, #1b2838);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    padding: 14px 28px;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #6973f5, #5865F2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-swap {
    color: var(--text-primary);
}

.logo-gg {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-red-dark), var(--accent-purple-dark));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    font-weight: 600;
    color: var(--accent-green);
}

.nav-balance i {
    color: var(--accent-green);
}

.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-user-btn:hover {
    background: var(--bg-card-hover);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-username {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.nav-mobile-toggle {
    display: none;
    padding: 10px;
    color: var(--text-primary);
    font-size: 24px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1001;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-nav-header button {
    color: var(--text-primary);
    font-size: 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
    background: var(--bg-card-hover);
}

/* ===== Main Content ===== */
.main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, var(--accent-red-glow) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, var(--accent-purple-glow) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, var(--accent-green-glow) 0%, transparent 30%);
    animation: hero-bg-move 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-bg-move {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-2%, 2%) rotate(2deg);
    }

    66% {
        transform: translate(2%, -2%) rotate(-2deg);
    }
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-red);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-red);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 80px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ===== Featured Skins Section ===== */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* ===== Skin Cards ===== */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.skin-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skin-card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.skin-card-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.skin-card:hover .skin-card-image img {
    transform: scale(1.1);
}

.skin-rarity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.skin-card-content {
    padding: 16px;
}

.skin-card-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-card-weapon {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.skin-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skin-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
}

.skin-card-actions {
    display: flex;
    gap: 8px;
}

.skin-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.skin-badge.stattrak {
    color: #cf6a32;
}

.skin-badge.souvenir {
    color: #ffcc00;
}

/* Rarity Colors */
.rarity-consumer {
    background: var(--rarity-consumer);
}

.rarity-industrial {
    background: var(--rarity-industrial);
}

.rarity-milspec {
    background: var(--rarity-milspec);
}

.rarity-restricted {
    background: var(--rarity-restricted);
}

.rarity-classified {
    background: var(--rarity-classified);
}

.rarity-covert {
    background: var(--rarity-covert);
}

.rarity-contraband {
    background: var(--rarity-contraband);
}

.rarity-extraordinary {
    background: var(--rarity-extraordinary);
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-icon.red {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
}

.feature-icon.purple {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
}

.feature-icon.green {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Login Page ===== */
.login-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-terms {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
}

.login-terms a {
    color: var(--accent-red);
}

/* ===== Age Verification ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.age-gate-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    text-align: center;
    animation: modal-appear 0.5s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.age-gate-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.age-gate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.age-gate-modal h2 {
    margin-bottom: 16px;
}

.age-gate-modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.age-gate-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-gate-legal {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

/* ===== Marketplace ===== */
.marketplace-header {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-color);
}

.marketplace-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-group {
    position: relative;
}

.filter-select {
    appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 40px 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 160px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--border-color-hover);
    outline: none;
}

.filter-group::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 16px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
}

.search-box i {
    color: var(--text-muted);
}

/* ===== Inventory Page ===== */
.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.inventory-value {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.inventory-value-label {
    color: var(--text-muted);
    font-size: 14px;
}

.inventory-value-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* ===== Trades Page ===== */
.trades-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.trade-tab {
    padding: 12px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.trade-tab:hover,
.trade-tab.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.trade-tab.active {
    background: linear-gradient(135deg, var(--accent-red-dark), var(--accent-purple-dark));
}

.trade-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.trade-card:hover {
    border-color: var(--border-color-hover);
}

.trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.trade-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trade-user img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.trade-user-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.trade-user-info span {
    color: var(--text-muted);
    font-size: 13px;
}

.trade-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.trade-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.trade-status.accepted {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.trade-status.declined {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.trade-items {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.trade-items-section h5 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.trade-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.trade-item {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trade-exchange-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--accent-purple);
    font-size: 20px;
}

.trade-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ===== Profile Page ===== */
.profile-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-color);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--accent-purple);
    box-shadow: 0 0 30px var(--accent-purple-glow);
}

.profile-details h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-ids {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-ids i {
    margin-right: 6px;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Age Verify Page ===== */
.age-verify-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.age-verify-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.age-verify-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.age-verify-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

/* ===== Flash Messages ===== */
.flash-message {
    position: fixed;
    top: calc(var(--nav-height) + 20px);
    right: 20px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: flash-appear 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes flash-appear {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success {
    border-color: var(--success);
}

.flash-success i {
    color: var(--success);
}

.flash-error {
    border-color: var(--danger);
}

.flash-error i {
    color: var(--danger);
}

.flash-close {
    margin-left: 16px;
    color: var(--text-muted);
    padding: 4px;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 16px 0 20px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-age {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-age i {
    color: var(--accent-red);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .nav-balance {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-ids {
        justify-content: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .trade-items {
        grid-template-columns: 1fr;
    }

    .trade-exchange-icon {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .age-gate-modal {
        padding: 32px 24px;
        margin: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple-dark);
}

/* ===== Selection ===== */
::selection {
    background: var(--accent-purple);
    color: white;
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}