/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dark: #1e40af;

    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --background-dark: #0f172a;
    --background-card: #1e293b;
    --background-hover: #334155;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #334155;
    --border-light: #475569;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --bronze: #cd7f32;
    --silver: #c0c0c0;
    --gold: #ffd700;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.nav-brand:hover {
    transform: translateY(-3px);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 50px rgba(139, 92, 246, 0.25);
    border: 3px solid rgba(59, 130, 246, 0.4);
    transition: all var(--transition-normal);
}

.logo:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(139, 92, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.7);
    transform: scale(1.08) rotate(2deg);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-brand:hover .brand-name::after {
    width: 100%;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.network-indicator:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.network-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--accent-color);
}

.network-name {
    color: var(--primary-color);
}

.wallet-container {
    position: relative;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.connect-wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.connect-wallet-btn:hover::before {
    left: 100%;
}

.connect-wallet-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.6);
}

.connect-wallet-btn:active {
    transform: translateY(-1px);
}

.connect-wallet-btn.connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.connect-wallet-btn.connected:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.wallet-icon {
    font-size: 1.125rem;
}

.dropdown-chevron {
    transition: transform var(--transition-normal);
}

.wallet-dropdown.show ~ .connect-wallet-btn .dropdown-chevron {
    transform: rotate(180deg);
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1001;
}

.wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--background-hover);
    color: var(--error-color);
}

.dropdown-item svg {
    color: currentColor;
}

/* ==================== MAIN CONTAINER ==================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-price-usd {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ==================== FUNDING CARD ==================== */
.funding-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.network-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ==================== INPUT SECTION ==================== */
.input-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--background-dark);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: all var(--transition-normal);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.eth-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    outline: none;
}

.eth-input::placeholder {
    color: var(--text-muted);
}

.input-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-card);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
}

.currency-icon {
    font-size: 1.25rem;
}

.input-usd-value {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: left;
}

.input-helper {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== BREAKDOWN SECTION ==================== */
.breakdown-section {
    background: var(--background-dark);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.breakdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-btn {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--background-hover);
    color: var(--primary-color);
    transform: rotate(180deg);
}

.allocation-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.allocation-item {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all var(--transition-normal);
}

.allocation-item:hover {
    border-color: var(--primary-color);
}

.bonus-item {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.contract-batch-item {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.allocation-icon {
    font-size: 1.25rem;
}

.allocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.allocation-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.allocation-percentage {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.allocation-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.allocation-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* ==================== TOTAL SECTION ==================== */
.total-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==================== FUND BUTTON ==================== */
.fund-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.fund-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.fund-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fund-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.fund-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(4px);
}

/* ==================== LIQUIDITY SECTION ==================== */
.liquidity-section {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.liquidity-header {
    margin-bottom: 2rem;
}

.liquidity-title-group {
    text-align: center;
}

.liquidity-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.liquidity-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.liquidity-info-card {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: all var(--transition-normal);
}

.liquidity-info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-card-helper {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.info-card-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
    animation: pulse 2s infinite;
}

.status-indicator.ready {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.status-indicator.not-ready {
    background: var(--error-color);
    box-shadow: 0 0 10px var(--error-color);
}

.status-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.liquidity-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-liquidity-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.add-liquidity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-liquidity-btn:hover::before {
    left: 100%;
}

.add-liquidity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-color: rgba(139, 92, 246, 0.6);
}

.add-liquidity-btn:active {
    transform: translateY(0);
}

.add-liquidity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-liquidity-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-chevron {
    transition: transform var(--transition-normal);
}

.add-liquidity-btn:hover .btn-chevron {
    transform: translateX(4px);
}

.liquidity-help-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.liquidity-help-text svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== TIER PROGRESSION ==================== */
.tier-progression-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tier-progression-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tier-progression-header svg {
    color: var(--gold);
}

.tier-progression-header h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.tier-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.tier-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    z-index: 1;
}

.milestone-marker {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    transition: all var(--transition-normal);
    position: relative;
    background: var(--background-card);
}

.bronze-marker {
    border-color: var(--bronze);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.silver-marker {
    border-color: var(--silver);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.gold-marker {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.milestone-marker:hover {
    transform: scale(1.15) rotate(10deg);
}

.bronze-marker:hover {
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.6);
}

.silver-marker:hover {
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.6);
}

.gold-marker:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.milestone-icon {
    font-size: 2rem;
}

.milestone-icon-svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.milestone-marker:hover .milestone-icon-svg {
    transform: scale(1.1);
}

.milestone-info {
    text-align: center;
}

.milestone-tier {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.milestone-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.milestone-bonus {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

.tier-connector {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--bronze) 0%, var(--silver) 50%, var(--gold) 100%);
    margin: 0 0.5rem;
    border-radius: 2px;
    position: relative;
    top: -30px;
}

/* ==================== INFO SECTION ==================== */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ==================== POSITION CARD ==================== */
.position-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.position-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.position-item {
    background: var(--background-dark);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.position-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.position-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    animation: fadeInUp 0.6s ease 0.6s both;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(200%);
    transition: transform var(--transition-normal);
    z-index: 3000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.toast.error {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.toast-message {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1.25rem 1.5rem;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 1.375rem;
    }

    .network-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .connect-wallet-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .funding-card,
    .position-card {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .allocation-grid {
        grid-template-columns: 1fr;
    }

    .total-value {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .tier-progression-section {
        padding: 1.25rem;
    }

    .milestone-marker {
        width: 50px;
        height: 50px;
    }

    .milestone-icon {
        font-size: 1.5rem;
    }

    .milestone-icon-svg {
        width: 32px;
        height: 32px;
    }

    .milestone-tier {
        font-size: 0.75rem;
    }

    .milestone-amount {
        font-size: 0.75rem;
    }

    .milestone-bonus {
        font-size: 0.6875rem;
    }

    .tier-connector {
        margin: 0 0.25rem;
    }

    .liquidity-section {
        padding: 1.5rem;
    }

    .liquidity-info-cards {
        grid-template-columns: 1fr;
    }

    .info-card-value {
        font-size: 1.25rem;
    }

    .status-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-brand {
        gap: 0.75rem;
    }

    .logo {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .brand-tagline {
        display: none;
    }

    .connect-wallet-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .wallet-icon {
        font-size: 1rem;
    }

    .main-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .eth-input {
        font-size: 1.25rem;
    }

    .tier-progression-section {
        padding: 1rem;
    }

    .tier-progression-header h4 {
        font-size: 0.875rem;
    }

    .milestone-marker {
        width: 45px;
        height: 45px;
    }

    .milestone-icon {
        font-size: 1.25rem;
    }

    .milestone-icon-svg {
        width: 28px;
        height: 28px;
    }

    .milestone-tier {
        font-size: 0.6875rem;
    }

    .milestone-amount {
        font-size: 0.6875rem;
    }

    .milestone-bonus {
        font-size: 0.625rem;
    }

    .tier-connector {
        height: 2px;
        margin: 0 0.125rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-success {
    color: var(--accent-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}
