:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #00f2ff;
    --accent-alt: #7000ff;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Background Blobs for Visual Interest */
.glow-blob,
.glow-blob-2 {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.glow-blob {
    top: -100px;
    right: -100px;
}

.glow-blob-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

/* Glassmorphism Summary Bar */
.summary-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Global Progress Bar */
.progress-container {
    width: 40%;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    box-shadow: 0 0 15px var(--accent);
}

/* Component Cards */
.component-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
}

.pledge-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    background: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.pledge-btn:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Component Card Elements */
.component-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-content {
    padding: 0;
}

.card-header h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-weight: 600;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.progress-section {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.progress-info .pledged {
    color: var(--accent);
    font-weight: 600;
}

.progress-info .remaining {
    color: var(--text-dim);
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transition: width 0.3s ease;
}

.progress-percent {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.fully-funded {
    border-color: var(--accent);
}

.funded-badge {
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Pledge Form */
.pledge-form {
    margin-top: 1rem;
}

.input-field {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.input-field::placeholder {
    color: var(--text-dim);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.quick-amount-btn {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:hover,
.quick-amount-btn.selected {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.amount-input-group {
    position: relative;
    margin-bottom: 0.8rem;
}

.currency-symbol {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-weight: 600;
}

.amount-input {
    padding-left: 2rem !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: white;
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pledges List */
.pledges-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pledges-list h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.pledge-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.pledge-row .name {
    color: var(--text-main);
}

.pledge-row .amount {
    color: var(--accent);
    font-weight: 600;
}

.pledge-row.auto {
    opacity: 0.7;
    font-style: italic;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    bottom: 2rem;
}

.toast.success {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--accent);
}

.toast.error {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    grid-column: 1 / -1;
}

/* Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.container {
    padding: 0;
    flex: 1;
}

.hero-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.summary-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-item .value.accent {
    color: var(--accent);
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}