/* ============================================
   BRAINROTS HUNTER MARKETPLACE - Global Styles
   Modern dark theme, Framer-style design
   ============================================ */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c21;
    --bg-elevated: #1e1e23;
    --border-color: #2a2a30;
    --border-hover: #3a3a42;
    --text-primary: #f0f0f2;
    --text-secondary: #8a8a96;
    --text-muted: #5a5a66;
    --accent: #6c5ce7;
    --accent-hover: #7c6cf7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --success: #00d26a;
    --warning: #ffc107;
    --danger: #ff4757;
    --rarity-common: #b0b0b8;
    --rarity-uncommon: #4cd137;
    --rarity-rare: #487eb0;
    --rarity-epic: #9b59b6;
    --rarity-legendary: #e67e22;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --transition: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.grid-full {
    grid-column: 1 / -1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.navbar-brand .logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.25);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

.btn-mt {
    margin-top: 16px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-paypal {
    background: #0070ba;
    border: 1px solid #0070ba;
    color: white;
}

.btn-paypal:hover {
    background: #005ea6;
    border-color: #005ea6;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FILTERS
   ============================================ */

.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.filter-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.sort-select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: var(--font-main);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--accent);
}

/* ============================================
   CREATURE CARDS GRID
   ============================================ */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.creature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.creature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder {
    font-size: 48px;
    opacity: 0.3;
}

.rarity-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rarity-common { background: rgba(176,176,184,0.2); color: var(--rarity-common); }
.rarity-uncommon { background: rgba(76,209,55,0.2); color: var(--rarity-uncommon); }
.rarity-rare { background: rgba(72,126,176,0.2); color: var(--rarity-rare); }
.rarity-epic { background: rgba(155,89,182,0.2); color: var(--rarity-epic); }
.rarity-legendary { background: rgba(230,126,34,0.2); color: var(--rarity-legendary); }

.special-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.card-body {
    padding: 16px;
}

.card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-seller {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-stat .icon {
    font-size: 14px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-price .currency {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

/* ============================================
   LISTING DETAIL PAGE
   ============================================ */

.listing-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}

.listing-image {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-image .placeholder {
    font-size: 80px;
    opacity: 0.2;
}

.listing-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.listing-info h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-label {
    font-size: 14px;
    color: var(--text-muted);
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.listing-price-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.listing-price-box .price {
    font-size: 36px;
    font-weight: 800;
}

.listing-price-box .price .currency {
    font-size: 18px;
    color: var(--text-muted);
}

.badge-inline {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.badge-ml {
    margin-left: 8px;
}

.meta-value-success {
    color: var(--success);
    text-transform: capitalize;
}

.rarity-text-common { color: var(--rarity-common); }
.rarity-text-uncommon { color: var(--rarity-uncommon); }
.rarity-text-rare { color: var(--rarity-rare); }
.rarity-text-epic { color: var(--rarity-epic); }
.rarity-text-legendary { color: var(--rarity-legendary); }

.listing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* ============================================
   SELL PAGE
   ============================================ */

.sell-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 0;
}

.sell-section h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sell-section .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Sell Page Components ─────────────────── */

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.payment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-card-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.payment-badges {
    display: flex;
    gap: 8px;
}

.creature-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.preview-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-name {
    font-size: 16px;
    font-weight: 700;
}

.preview-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    border: 2px solid var(--border-color);
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 800;
}

.profile-info .steam-id {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.profile-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-header .tab-title {
    margin-bottom: 0;
}

/* ── Transaction Rows ─────────────────────── */

.transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.tx-name {
    font-weight: 700;
}

.tx-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.tx-right {
    text-align: right;
}

.tx-amount-positive {
    font-weight: 700;
    color: var(--success);
}

.tx-status {
    font-size: 12px;
    text-transform: capitalize;
}

.tx-status-success {
    color: var(--success);
}

.tx-status-warning {
    color: var(--warning);
}

/* ============================================
   STRIPE ONBOARDING
   ============================================ */

.stripe-setup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto 40px;
}

.stripe-setup h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stripe-setup p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.stripe-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.stripe-status.connected {
    background: rgba(0, 210, 106, 0.12);
    color: var(--success);
}

.stripe-status.pending {
    background: rgba(255, 193, 7, 0.12);
    color: var(--warning);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.pagination-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   LOADING
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Auth Callback ────────────────────────── */

.auth-callback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 16px;
}

.auth-callback p {
    color: var(--text-secondary);
}

.auth-error {
    color: var(--danger) !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 360px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--text-primary);
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 64px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 64px 0 32px;
    text-align: center;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.faq-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar .container {
        height: 60px;
    }

    .navbar-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .stats-bar {
        gap: 24px;
        flex-wrap: wrap;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .listing-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .listing-image {
        height: 280px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .payment-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .page-title {
        font-size: 22px;
    }
}
