* { margin: 0; padding: 0; box-sizing: border-box; }
.leaflet-interactive { outline: none !important; }
.leaflet-interactive:focus { outline: none !important; }

/* ============ SPLASH ============ */
#splash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background: rgba(6,6,10,0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
#splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    text-align: center;
    padding: 20px;
    max-width: 640px;
}
.splash-logo {
    font-size: clamp(56px, 14vw, 108px);
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1;
}
.splash-logo span {
    color: #ff6b35;
}
.splash-slogan {
    font-size: clamp(14px, 3.5vw, 20px);
    color: rgba(255,255,255,0.3);
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.splash-tagline {
    font-size: clamp(16px, 4vw, 22px);
    color: #ff6b35;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 32px;
    line-height: 1.4;
}

/* Hero stats line */
.splash-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: clamp(11px, 2.5vw, 13px);
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
}
.splash-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Buttons */
.splash-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.splash-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: #ff6b35;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.splash-btn-primary:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,107,53,0.3);
}
.splash-arrow {
    transition: transform 0.3s;
    font-weight: 300;
}
.splash-btn-primary:hover .splash-arrow {
    transform: translateX(4px);
}
.splash-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
}
.splash-btn-secondary:hover {
    border-color: rgba(255,107,53,0.4);
    color: #fff;
    background: rgba(255,107,53,0.06);
}
.splash-claim-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76,175,80,0.6);
    animation: claimPulse 2s infinite;
}
@keyframes claimPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Referral CTA */
.splash-referral {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,107,53,0.15);
    transition: all 0.3s;
}
.splash-referral:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,107,53,0.4);
}
.splash-referral strong {
    color: #ff6b35;
    font-weight: 600;
}

/* Disclaimer */
.splash-disclaimer {
    font-size: 10px;
    color: rgba(255,255,255,0.12);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.splash-disclaimer a {
    color: rgba(255,255,255,0.2);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.splash-disclaimer a:hover {
    color: rgba(255,255,255,0.35);
}

/* Splash mobile */
@media (max-width: 480px) {
    .splash-content { padding: 16px 24px; }
    .splash-hero-stats { gap: 8px; margin-bottom: 32px; }
    .splash-btn-primary { width: auto; max-width: 100%; padding: 16px 36px; justify-content: center; }
    .splash-btn-secondary { width: auto; max-width: 100%; justify-content: center; }
    .splash-referral { font-size: 11px; padding: 8px 14px; }
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Hide all native scrollbars globally */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

#map {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: #0a0a0a;
}

/* Logo */
#logo {
    position: fixed;
    top: 20px; left: 24px;
    z-index: 1000;
    pointer-events: none;
}
#logo h1 {
    font-size: 26px; font-weight: 800;
    letter-spacing: 4px; color: #ff6b35;
}
#logo h1 span { color: #fff; font-weight: 300; }
.tagline {
    font-size: 11px; color: rgba(255,255,255,0.4);
    letter-spacing: 2px; text-transform: uppercase;
}

/* Stats — glassmorphism */
#stats-bar {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    display: flex; gap: 28px;
    background: rgba(20,10,5,0.45);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255,107,53,0.15);
    border-radius: 14px;
    padding: 10px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 15px; font-weight: 700; color: #ffffff; }
.stat-label {
    font-size: 9px; color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* Tile Panel — glassmorphism */
.panel {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 1000;
    background: rgba(15,10,8,0.55);
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.panel-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer;
}
.panel h2 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
#tile-coords {
    font-size: 12px; color: rgba(255,255,255,0.35);
    font-family: 'Courier New', monospace; margin-bottom: 8px;
}
.badge {
    display: inline-block;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; margin-bottom: 8px;
}
.tile-desc {
    font-size: 12px; color: rgba(255,255,255,0.4);
    margin-bottom: 12px; line-height: 1.4;
}
.tile-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.label { color: rgba(255,255,255,0.4); font-size: 12px; }
.value { font-weight: 600; font-size: 13px; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: #fff; border: none; border-radius: 8px;
    padding: 10px 20px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; width: 100%; margin-top: 12px;
    min-height: 42px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.btn-icon {
    background: rgba(15,10,8,0.5);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 12px; padding: 10px 12px;
    font-size: 18px; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.btn-icon:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 20px rgba(255,107,53,0.2);
}

/* Auth area */
#auth-area {
    position: fixed;
    top: 20px; right: 70px;
    z-index: 1000;
}
#auth-btn.logged-in {
    border-color: rgba(255,107,53,0.4);
    box-shadow: 0 4px 16px rgba(255,107,53,0.15);
}

/* Zone List */
#zone-list {
    position: fixed;
    top: 20px; right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#zone-dropdown {
    background: rgba(12,8,5,0.55);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(255,107,53,0.18);
    border-radius: 14px;
    padding: 14px;
    margin-top: 8px;
    width: 250px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}
#zone-items {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    margin-right: -14px;
    padding-right: 14px;
}
/* Custom scrollbar track inside zone list */
.custom-scroll-wrap {
    position: relative;
}
.custom-scrollbar {
    position: absolute;
    top: 0; right: 0;
    width: 4px;
    height: 100%;
    border-radius: 2px;
    background: rgba(255,255,255,0.04);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}
.custom-scroll-wrap:hover .custom-scrollbar,
.custom-scrollbar.active {
    opacity: 1;
}
.custom-scrollbar-thumb {
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6b35, #ff4500);
    position: absolute;
    top: 0;
    min-height: 24px;
    transition: background 0.2s;
}
.custom-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8855, #ff6b35);
}
.zone-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 2px;
}
.zone-item:hover { background: rgba(255,255,255,0.08); }
.zone-item-name { font-size: 13px; font-weight: 600; }
.zone-item-tier { font-size: 10px; font-weight: 600; }
.zone-item-price { font-size: 11px; color: rgba(255,255,255,0.4); float: right; margin-top: 2px; }

/* Zone search inside dropdown */
.zone-search {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px; color: #fff;
    font-size: 12px; outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.zone-search:focus { border-color: #ff6b35; }
.zone-search::placeholder { color: rgba(255,255,255,0.25); }

.menu-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.menu-links a {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.menu-links a:hover {
    color: #ff6b35;
}

/* Modal — glassmorphism */
.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: rgba(20,15,12,0.6);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 18px;
    padding: 28px; width: 360px; max-width: 90vw;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.modal-content h2 { font-size: 20px; margin-bottom: 16px; }
.modal-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer;
}
.input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 14px; color: #fff;
    font-size: 13px; outline: none; margin-bottom: 8px;
    transition: border-color 0.2s;
}
.input:focus { border-color: #ff6b35; }
.full-width { width: 100%; }

/* Auth tabs */
.auth-tab {
    flex: 1;
    padding: 8px 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.auth-tab:first-child { border-radius: 8px 0 0 8px; }
.auth-tab:last-child { border-radius: 0 8px 8px 0; }
.auth-tab.active {
    background: rgba(255,107,53,0.2);
    border-color: rgba(255,107,53,0.4);
    color: #ff6b35;
}

.hidden { display: none !important; }

/* Override Leaflet dark */
.leaflet-container { background: #0a0a0a; }
.leaflet-tile {
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}
.social-control {
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
    margin-top: 8px !important;
    border-radius: 12px;
    overflow: hidden;
}
.social-control a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    background: rgba(15,10,8,0.6) !important;
    backdrop-filter: blur(20px) !important;
    color: rgba(255,255,255,0.5) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.social-control a:last-child { border-bottom: none; }
.social-control a:hover {
    background: rgba(255,107,53,0.6) !important;
    color: #fff !important;
}
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.leaflet-control-zoom a {
    background: rgba(15,10,8,0.6) !important;
    backdrop-filter: blur(20px) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.1) !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(255,107,53,0.6) !important;
}
.leaflet-control-attribution { display: none; }

/* Owner tooltip */
.owner-tooltip {
    background: rgba(10,10,10,0.9) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    line-height: 1.5 !important;
}
.owner-tooltip::before { border-top-color: rgba(10,10,10,0.9) !important; }

/* Zone labels on map */
.zone-label {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.7);
    white-space: nowrap;
    pointer-events: none;
}

/* Profile Sidebar */
#profile-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 340px; max-width: 85vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(12,8,5,0.75);
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
    border-left: 1px solid rgba(255,107,53,0.15);
    box-shadow: -8px 0 40px rgba(0,0,0,0.6);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
#profile-sidebar.open {
    transform: translateX(0);
}
#profile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
#profile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.profile-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 14px;
}
.btn-set-name {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.btn-set-name:hover {
    color: #ff6b35;
}
/* Name modal */
.name-modal-content {
    background: rgba(12,8,5,0.92);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    border: 1px solid rgba(255,107,53,0.15);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 340px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.name-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.name-input:focus {
    border-color: rgba(255,107,53,0.5);
    background: rgba(255,255,255,0.06);
}
.name-input::placeholder {
    color: rgba(255,255,255,0.15);
}
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .2s;
}
.profile-avatar svg {
    width: 100%; height: 100%;
}
.profile-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.avatar-hover-menu {
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%) translateY(4px);
    display: flex;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.profile-avatar-wrap:hover .avatar-hover-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.profile-avatar-wrap:hover .profile-avatar {
    opacity: .7;
}
.avatar-menu-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: #ff6b35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.avatar-menu-btn:hover {
    background: #ff8c5a;
    transform: scale(1.1);
}
.avatar-menu-remove {
    background: #c62828;
}
.avatar-menu-remove:hover {
    background: #e53935;
}
.profile-info h3 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 2px;
}
.profile-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.profile-public-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.profile-public-link:hover {
    color: #ff6b35;
}
.profile-stats-rows {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.profile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
}
.profile-stat-row:first-child { border-radius: 10px 10px 0 0; }
.profile-stat-row:last-child { border-radius: 0 0 10px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.profile-stat-value {
    font-size: 16px; font-weight: 700;
    color: #ff6b35;
}
.profile-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-global-stats {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.profile-global-stats strong {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.profile-section-title {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 20px;
    margin-bottom: 8px;
}
.profile-plots {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.3) transparent;
}
.profile-plots::-webkit-scrollbar { width: 4px; }
.profile-plots::-webkit-scrollbar-track { background: transparent; }
.profile-plots::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.3); border-radius: 4px; }
.profile-plots::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.5); }
.profile-plot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-plot-item:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.2);
}
.profile-plot-zone {
    font-size: 13px; font-weight: 600;
}
.profile-plot-details {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}
.profile-plot-price {
    font-size: 13px; font-weight: 600;
    color: #ff6b35;
    white-space: nowrap;
}
/* NFT cards in profile */
.nft-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
}
.nft-card:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.2);
}
.nft-card-img {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #111;
    flex-shrink: 0;
}
.nft-card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.nft-card-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nft-card-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Profile tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    margin-bottom: 12px;
}
.profile-tab {
    flex: 1;
    padding: 8px 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-tab:first-child { border-radius: 8px 0 0 8px; }
.profile-tab:last-child { border-radius: 0 8px 8px 0; }
.profile-tab.active {
    background: rgba(255,107,53,0.15);
    border-color: rgba(255,107,53,0.3);
    color: #ff6b35;
}
.profile-tab-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Settings */
.profile-settings-form {
    padding: 4px 20px 20px;
}
.settings-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    margin-top: 12px;
}
.settings-label:first-child { margin-top: 0; }
.settings-field-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.settings-field-row .input {
    flex: 1;
    margin-bottom: 0;
}
.settings-save-btn {
    padding: 10px 16px;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    color: #ff6b35;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.settings-save-btn:hover {
    background: rgba(255,107,53,0.25);
}
.settings-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    margin-top: 4px;
    margin-bottom: 4px;
}
.settings-msg {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}
.settings-msg.success { color: #4CAF50; }
.settings-msg.error { color: #f44336; }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
    max-width: 400px;
}
.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.toast-exit {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity .4s ease, transform .4s ease;
}
.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
}
.toast-msg {
    line-height: 1.4;
}
.toast-success {
    background: rgba(255, 255, 255, 0.08);
}
.toast-success .toast-icon {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
}
.toast-error {
    background: rgba(255, 255, 255, 0.08);
}
.toast-error .toast-icon {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
}
.toast-info {
    background: rgba(255, 255, 255, 0.08);
}
.toast-info .toast-icon {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}
@media (max-width: 480px) {
    .toast-container { bottom: 16px; left: 16px; right: 16px; transform: none; }
    .toast { max-width: 100%; font-size: 12px; padding: 10px 16px; }
}

/* Referral */
.referral-section {
    padding: 4px 20px 20px;
}
.referral-promo {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255,107,53,0.06);
    border: 1px solid rgba(255,107,53,0.12);
    border-radius: 10px;
}
.referral-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.referral-stat-box {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.referral-stat-num {
    font-size: 18px; font-weight: 700;
    color: #ff6b35;
}
.referral-stat-txt {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ref-item-name { font-size: 13px; font-weight: 600; }
.ref-item-date { font-size: 11px; color: rgba(255,255,255,0.25); }
.ref-item-status {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.ref-item-status.active { background: rgba(76,175,80,0.15); color: #4CAF50; }
.ref-item-status.pending { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }

.profile-empty {
    text-align: center;
    padding: 32px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.profile-empty span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.profile-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-logout:hover {
    background: rgba(244,67,54,0.15);
    border-color: rgba(244,67,54,0.3);
    color: #f44336;
}
.profile-close {
    position: absolute;
    top: 20px; right: 16px;
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}
.profile-close:hover { color: #fff; }

/* Wallet Button */
.wallet-btn {
    position: fixed;
    top: 20px; right: 70px;
    z-index: 1000;
    padding: 10px 20px;
    border: 1px solid rgba(255,107,53,0.8);
    border-radius: 12px;
    background: rgba(255,107,53,0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wallet-btn:hover {
    background: rgba(255,107,53,0.2);
    border-color: rgba(255,107,53,0.6);
    box-shadow: 0 4px 20px rgba(255,107,53,0.2);
}
.wallet-btn.connected {
    border-color: rgba(76,175,80,0.5);
    background: rgba(76,175,80,0.1);
    color: #4CAF50;
}
.wallet-btn.connected:hover {
    background: rgba(76,175,80,0.2);
    border-color: rgba(76,175,80,0.7);
    box-shadow: 0 4px 20px rgba(76,175,80,0.2);
}
.wallet-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(76,175,80,0.6);
}

/* Wallet Modal */
.wallet-modal-content {
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 380px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}
.wallet-option:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,107,53,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.wallet-option span { flex: 1; text-align: left; }
.wallet-option svg { flex-shrink: 0; }

.wallet-get-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.wallet-get-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,107,53,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #stats-bar { display: none; }
    #logo { left: 12px; top: 12px; }
    #logo h1 { font-size: 18px; letter-spacing: 3px; }
    .tagline { display: none; }
    .wallet-btn { top: 12px; right: 56px; padding: 8px 14px; font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #zone-list { right: 12px; top: 12px; }
    #zone-list .btn-icon { padding: 8px 12px; font-size: 16px; }
    .panel { left: 12px; right: 12px; width: auto; bottom: 12px; }
}
