:root {
    --giv-bg: #0a0f1a;
    --giv-surface: #111827;
    --giv-surface2: #1a2235;
    --giv-border: rgba(255, 255, 255, 0.08);
    --giv-border2: rgba(255, 255, 255, 0.14);
    --giv-text: #f0f4ff;
    --giv-muted: #8b9cc0;
    --giv-accent: #00e5a0;
    --giv-accent2: #6c63ff;
    --giv-warn: #ff8c42;
    --giv-danger: #ff4f4f;
    --giv-gold: #fbbf24;
    --giv-r: 12px;
    --giv-r2: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--giv-bg);
    color: var(--giv-text);
    min-height: 100vh;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--giv-border)
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px
}

.logo-gem {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00e5a0, #6c63ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px
}

.nav-links {
    display: flex;
    gap: 4px
}

.nav-link {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--giv-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none
}

.nav-link:hover,
.nav-link.active {
    background: var(--giv-surface2);
    color: var(--giv-text)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--giv-border2);
    background: var(--giv-surface);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s
}

.wallet-pill:hover {
    border-color: var(--giv-accent);
    background: rgba(0, 229, 160, 0.06)
}

.wallet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555
}

.wallet-dot.connected {
    background: var(--giv-accent);
    box-shadow: 0 0 6px var(--giv-accent)
}

.giv-badge {
    background: rgba(108, 99, 255, 0.2);
    color: #a89fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s
}

.overlay.show {
    opacity: 1;
    pointer-events: all
}

.modal {
    background: var(--giv-surface);
    border: 1px solid var(--giv-border2);
    border-radius: var(--giv-r2);
    padding: 2rem;
    width: 420px;
    max-width: 95vw;
    transform: translateY(20px);
    transition: transform 0.3s
}

.overlay.show .modal {
    transform: translateY(0)
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px
}

.modal-sub {
    font-size: 13px;
    color: var(--giv-muted);
    margin-bottom: 1.5rem
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--giv-r);
    border: 1px solid var(--giv-border);
    background: var(--giv-surface2);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px
}

.wallet-option:hover {
    border-color: var(--giv-accent);
    background: rgba(0, 229, 160, 0.05)
}

.wallet-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0
}

.wallet-info {
    flex: 1
}

.wallet-name {
    font-weight: 600;
    font-size: 14px
}

.wallet-desc {
    font-size: 12px;
    color: var(--giv-muted);
    margin-top: 2px
}

.w-arrow {
    color: var(--giv-muted);
    font-size: 18px
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--giv-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px
}

.modal-close:hover {
    color: var(--giv-text)
}


.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem
}


.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    position: relative
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.25);
    color: var(--giv-accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem
}

.hero h1 span {
    background: linear-gradient(90deg, #00e5a0, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-sub {
    font-size: 1rem;
    color: var(--giv-muted);
    max-width: 540px;
    margin: 0 auto 2rem
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit
}

.btn-primary {
    background: var(--giv-accent);
    color: #0a0f1a
}

.btn-primary:hover {
    background: #00c88a;
    transform: translateY(-1px)
}

.btn-outline {
    background: transparent;
    color: var(--giv-text);
    border: 1px solid var(--giv-border2)
}

.btn-outline:hover {
    border-color: var(--giv-accent);
    color: var(--giv-accent);
    background: rgba(0, 229, 160, 0.06)
}

.btn-danger {
    background: rgba(255, 79, 79, 0.15);
    color: var(--giv-danger);
    border: 1px solid rgba(255, 79, 79, 0.3)
}

.btn-danger:hover {
    background: rgba(255, 79, 79, 0.25)
}

.btn-warn {
    background: rgba(251, 191, 36, 0.15);
    color: var(--giv-gold);
    border: 1px solid rgba(251, 191, 36, 0.3)
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px
}

.btn-xs {
    padding: 5px 12px;
    font-size: 12px
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 2.5rem
}

.stat-card {
    background: var(--giv-surface);
    border: 1px solid var(--giv-border);
    border-radius: var(--giv-r);
    padding: 1.2rem 1.4rem
}

.stat-label {
    font-size: 12px;
    color: var(--giv-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px
}

.stat-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%
}

.stat-val {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -1px
}

.stat-sub {
    font-size: 12px;
    color: var(--giv-muted);
    margin-top: 4px
}

.stat-card.accent {
    border-color: rgba(0, 229, 160, 0.3);
    background: rgba(0, 229, 160, 0.04)
}

.stat-card.purple {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.04)
}

.c-accent {
    color: var(--giv-accent)
}

.c-purple {
    color: var(--giv-accent2)
}

.c-warn {
    color: var(--giv-warn)
}

.c-gold {
    color: var(--giv-gold)
}

.c-muted {
    color: var(--giv-muted)
}


.panel {
    background: var(--giv-surface);
    border: 1px solid var(--giv-border);
    border-radius: var(--giv-r2);
    padding: 2rem;
    margin-bottom: 2rem
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem
}

.panel-title {
    font-size: 1rem;
    font-weight: 600
}

.panel-sub {
    font-size: 13px;
    color: var(--giv-muted);
    margin-top: 2px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

@media(max-width:640px) {
    .form-grid {
        grid-template-columns: 1fr
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.form-group.full {
    grid-column: 1/-1
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--giv-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase
}

input,
textarea,
select {
    background: var(--giv-surface2);
    border: 1px solid var(--giv-border);
    border-radius: var(--giv-r);
    padding: 10px 14px;
    color: var(--giv-text);
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s;
    outline: none;
    width: 100%
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--giv-accent)
}

input::placeholder,
textarea::placeholder {
    color: var(--giv-muted)
}

textarea {
    resize: vertical;
    min-height: 80px
}

.input-group {
    position: relative
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--giv-muted);
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none
}


.progress-wrap {
    background: var(--giv-surface2);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #00e5a0, #6c63ff);
    transition: width 0.6s ease
}


.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 2rem
}

.campaign-card {
    background: var(--giv-surface);
    border: 1px solid var(--giv-border);
    border-radius: var(--giv-r2);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s
}

.campaign-card:hover {
    border-color: var(--giv-border2);
    transform: translateY(-2px)
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px
}

.campaign-title {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    padding-right: 12px;
    line-height: 1.3
}

.campaign-status {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0
}

.s-active {
    background: rgba(0, 229, 160, 0.15);
    color: var(--giv-accent)
}

.s-ended {
    background: rgba(255, 79, 79, 0.15);
    color: var(--giv-danger)
}

.s-success {
    background: rgba(251, 191, 36, 0.15);
    color: var(--giv-gold)
}

.campaign-desc {
    font-size: 13px;
    color: var(--giv-muted);
    margin-bottom: 14px;
    line-height: 1.5
}

.campaign-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px
}

.meta-item {
    background: var(--giv-surface2);
    border-radius: 8px;
    padding: 8px 10px
}

.meta-lbl {
    font-size: 11px;
    color: var(--giv-muted);
    margin-bottom: 3px
}

.meta-val {
    font-size: 13px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace
}

.campaign-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}


.table-wrap {
    overflow-x: auto;
    margin-top: 1rem
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--giv-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--giv-border)
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--giv-border);
    vertical-align: middle
}

tr:last-child td {
    border-bottom: none
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02)
}

.addr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--giv-accent2)
}

.hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--giv-muted)
}

.amount-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600
}

.giv-reward {
    color: var(--giv-accent);
    font-size: 12px
}


.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--giv-surface);
    border: 1px solid var(--giv-border2);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4)
}

.toast.success {
    border-color: rgba(0, 229, 160, 0.4)
}

.toast.error {
    border-color: rgba(255, 79, 79, 0.4)
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideOut {
    to {
        transform: translateX(110%);
        opacity: 0
    }
}


.tabs {
    display: flex;
    gap: 4px;
    background: var(--giv-surface);
    border: 1px solid var(--giv-border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    width: fit-content
}

.tab {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--giv-muted);
    transition: all 0.2s;
    border: none;
    background: none;
    font-family: inherit
}

.tab.active {
    background: var(--giv-surface2);
    color: var(--giv-text)
}


.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--giv-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--giv-border)
}


.info-banner {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: var(--giv-r);
    padding: 12px 16px;
    font-size: 13px;
    color: #a89fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem
}

.warn-banner {
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: var(--giv-r);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--giv-warn);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem
}


.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--giv-muted)
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--giv-border2);
    border-radius: 3px
}


.footer {
    border-top: 1px solid var(--giv-border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 12px;
    color: var(--giv-muted);
    margin-top: 4rem
}

.footer span {
    color: var(--giv-accent)
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 1.5rem;
    border-bottom: 1px solid var(--giv-border);
    animation: fadeSlideIn 0.35s ease
}

.activity-item:last-child {
    border-bottom: none
}

.activity-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px
}

.activity-body {
    flex: 1;
    min-width: 0
}

.activity-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.activity-meta {
    font-size: 11px;
    color: var(--giv-muted);
    margin-top: 2px
}

.activity-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 1px
}

.top-donor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 1.5rem;
    transition: background 0.15s
}

.top-donor-row:hover {
    background: rgba(255, 255, 255, 0.02)
}

.donor-rank {
    width: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--giv-muted);
    text-align: center;
    flex-shrink: 0
}

.donor-rank.r1 {
    color: var(--giv-gold)
}

.donor-rank.r2 {
    color: #aaa
}

.donor-rank.r3 {
    color: #cd7f32
}

.donor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0
}

.donor-info {
    flex: 1;
    min-width: 0
}

.donor-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.donor-addr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--giv-muted)
}

.donor-eth {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--giv-accent);
    white-space: nowrap
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1
}

.bar-inner {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--giv-accent), rgba(0, 229, 160, 0.3));
    transition: height 0.5s ease;
    min-height: 2px
}

.bar-val {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--giv-accent);
    white-space: nowrap
}

.cam-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--giv-border)
}

.cam-row:last-child {
    border-bottom: none
}


.page {
    display: none
}

.page.active {
    display: block
}


datalist {
    display: none
}