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

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0a0a0a;
color: #e0e0e0;
min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.explore-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
border-bottom: 1px solid rgba(255,255,255,0.08);
background: rgba(10,10,10,0.95);
backdrop-filter: blur(12px);
position: sticky;
top: 0;
z-index: 100;
}

.header-brand {
display: flex;
align-items: center;
gap: 12px;
}

.header-brand img {
width: 36px;
height: 36px;
border-radius: 8px;
}

.header-brand h1 {
font-size: 1.15rem;
font-weight: 600;
color: #fff;
}

.header-brand h1 span {
background: linear-gradient(90deg, #9945FF, #14F195);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.header-actions {
display: flex;
align-items: center;
gap: 12px;
}

.wallet-btn {
padding: 8px 18px;
border-radius: 10px;
border: 1px solid rgba(153,69,255,0.4);
background: rgba(153,69,255,0.15);
color: #c4a0ff;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}

.wallet-btn:hover {
background: rgba(153,69,255,0.25);
border-color: rgba(153,69,255,0.6);
}

.create-btn {
padding: 8px 18px;
border-radius: 10px;
border: 1px solid rgba(20,241,149,0.3);
background: rgba(20,241,149,0.1);
color: #14F195;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 6px;
}

.create-btn:hover {
background: rgba(20,241,149,0.18);
border-color: rgba(20,241,149,0.5);
}

.create-btn svg {
width: 14px;
height: 14px;
}

/* ── Hero ── */
.explore-hero {
text-align: center;
padding: 48px 24px 32px;
}

.explore-hero h2 {
font-size: 1.8rem;
font-weight: 700;
color: #fff;
margin-bottom: 8px;
}

.explore-hero p {
color: #888;
font-size: 0.95rem;
max-width: 500px;
margin: 0 auto;
}

/* ── Filter Bar ── */
.filter-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 0 24px 20px;
max-width: 1400px;
margin: 0 auto;
flex-wrap: wrap;
}

.search-input {
flex: 1;
min-width: 200px;
padding: 10px 16px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.05);
color: #e0e0e0;
font-size: 0.9rem;
outline: none;
transition: border-color 0.2s;
}

.search-input::placeholder { color: #666; }
.search-input:focus { border-color: rgba(153,69,255,0.5); }

.sort-select {
padding: 10px 14px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.05);
color: #e0e0e0;
font-size: 0.85rem;
cursor: pointer;
outline: none;
}

.sort-select option { background: #1a1a1a; }

.project-count {
color: #666;
font-size: 0.85rem;
white-space: nowrap;
}

/* ── Card Grid ── */
.staking-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 20px;
padding: 0 24px 48px;
max-width: 1400px;
margin: 0 auto;
}

/* ── Card ── */
.stake-card {
background: #141414;
border: 1px solid rgba(255,255,255,0.08);
border-radius: 14px;
overflow: hidden;
cursor: pointer;
transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.stake-card:hover {
transform: translateY(-4px);
border-color: rgba(153,69,255,0.35);
box-shadow: 0 12px 40px rgba(153,69,255,0.1);
}

.card-banner {
width: 100%;
height: 140px;
object-fit: cover;
display: block;
}

.card-banner-gradient {
width: 100%;
height: 140px;
}

.card-body {
padding: 16px;
position: relative;
}

.card-logo {
width: 52px;
height: 52px;
border-radius: 12px;
border: 3px solid #141414;
position: absolute;
top: -30px;
left: 16px;
background: #1a1a1a;
object-fit: cover;
}

.card-logo-placeholder {
width: 52px;
height: 52px;
border-radius: 12px;
border: 3px solid #141414;
position: absolute;
top: -30px;
left: 16px;
background: linear-gradient(135deg, #9945FF, #14F195);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
font-weight: 700;
color: #fff;
}

.card-top-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-top: 20px;
margin-bottom: 10px;
}

.card-name {
font-size: 1.05rem;
font-weight: 600;
color: #fff;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.card-user-badge {
display: none;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 6px;
background: rgba(20,241,149,0.12);
color: #14F195;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
margin-left: 8px;
}

.card-user-badge svg {
width: 12px;
height: 12px;
}

.card-desc {
color: #888;
font-size: 0.82rem;
margin-bottom: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.card-rewards {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 12px;
flex-wrap: wrap;
}

.reward-badge {
display: flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 6px;
background: rgba(255,255,255,0.06);
font-size: 0.75rem;
color: #ccc;
}

.reward-badge img {
width: 16px;
height: 16px;
border-radius: 50%;
}

.card-stats {
display: flex;
align-items: center;
gap: 16px;
padding-top: 12px;
border-top: 1px solid rgba(255,255,255,0.06);
}

.card-stat {
display: flex;
flex-direction: column;
gap: 2px;
}

.card-stat-label {
font-size: 0.7rem;
color: #666;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.card-stat-value {
font-size: 0.9rem;
font-weight: 600;
color: #fff;
}

.card-socials {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}

.card-social-link {
color: #555;
transition: color 0.2s;
}

.card-social-link:hover { color: #aaa; }

.card-social-link svg {
width: 16px;
height: 16px;
}

/* ── Loading / Empty States ── */
.loading-state, .empty-state {
text-align: center;
padding: 80px 24px;
color: #666;
}

.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255,255,255,0.1);
border-top-color: #9945FF;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 16px;
}

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

.skeleton-card {
background: #141414;
border: 1px solid rgba(255,255,255,0.06);
border-radius: 14px;
overflow: hidden;
}

.skeleton-banner {
width: 100%;
height: 140px;
background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}

.skeleton-body {
padding: 16px;
}

.skeleton-line {
height: 14px;
border-radius: 4px;
background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
margin-bottom: 10px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; margin-top: 24px; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Wallet Loading Banner ── */
.wallet-loading-banner {
display: none;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px 24px;
background: rgba(153,69,255,0.08);
border-bottom: 1px solid rgba(153,69,255,0.15);
color: #c4a0ff;
font-size: 0.85rem;
}

.wallet-loading-banner .mini-spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(153,69,255,0.2);
border-top-color: #9945FF;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

/* ── Footer ── */
.explore-footer {
text-align: center;
padding: 24px;
border-top: 1px solid rgba(255,255,255,0.06);
color: #444;
font-size: 0.8rem;
}

.explore-footer a {
color: #888;
transition: color 0.2s;
}

.explore-footer a:hover { color: #c4a0ff; }

/* ── Responsive ── */
@media (max-width: 900px) {
.staking-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.explore-hero h2 { font-size: 1.4rem; }
}

@media (max-width: 640px) {
.staking-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
.filter-bar { padding: 0 16px 16px; }
.explore-header { padding: 12px 16px; }
.explore-hero { padding: 32px 16px 24px; }
.explore-hero h2 { font-size: 1.2rem; }

.header-brand h1 { font-size: 0.95rem; }
.create-btn span { display: none; }
.create-btn { padding: 8px 12px; }
}