:root {
    --earth: #5E3A1C;
    --clay: #C17A4D;
    --leaf: #2D6A4F;
    --sun: #F4A261;
    --sky: #E9F5E1;
    --stone: #4A4A4A;
    --indigo: #1B2F3B;
    --verification-gold: #D4AF37;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
    background: var(--sky);
    color: var(--indigo);
    line-height: 1.5;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
.socket-header {
    background: var(--leaf);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo .icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.logo .title {
    font-weight: bold;
    letter-spacing: 1px;
}

.indigenous-seal {
    font-size: 0.7rem;
    background: var(--verification-gold);
    color: var(--earth);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.credit-wallet {
    background: var(--indigo);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
}

.credit-balance {
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0 0.2rem;
}

/* Radius badge */
.radius-badge {
    background: var(--clay);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-location {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Tabs */
.socket-tabs {
    display: flex;
    overflow-x: auto;
    background: white;
    border-bottom: 2px solid var(--earth);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--leaf);
    color: white;
    border-radius: 8px 8px 0 0;
}

/* Content area */
.socket-content {
    padding: 1rem;
    min-height: 60vh;
}

/* Cards */
.listing-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid var(--verification-gold);
    position: relative;
}

.verification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--verification-gold);
    color: var(--earth);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: bold;
}

.listing-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.listing-distance {
    font-size: 0.8rem;
    color: var(--leaf);
    margin-bottom: 0.5rem;
}

.listing-price {
    font-weight: bold;
    color: var(--earth);
    margin: 0.5rem 0;
}

.listing-desc {
    font-size: 0.9rem;
    color: var(--stone);
    margin-bottom: 0.5rem;
}

.trust-score {
    font-size: 0.8rem;
    background: #f0f0f0;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

/* FAB Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--leaf);
    color: white;
    border: none;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content input, 
.modal-content textarea, 
.modal-content select {
    width: 100%;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal-content button {
    background: var(--leaf);
    color: white;
    border: none;
    padding: 0.8rem;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 1rem;
}