:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
    --ape-color: #f59e0b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #059669;
    --warning-color: #d97706;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    animation: headerShimmer 4s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.header-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.header-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.header-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 17px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-icon:hover::after {
    opacity: 1;
}

.header-ape-icon {
    background-image: url('https://us1.discourse-cdn.com/apecoin/original/2X/2/2bba9f846e7db078d90ed90bda2ff9ede1797445.jpeg');
}

.header-bayc-icon {
    background-image: url('https://miro.medium.com/v2/resize:fit:1000/1*2BoJwmscMEJ7JpRMR_x7uQ.png');
}

.header-mayc-icon {
    background-image: url('https://cryptogoodies.shop/wp-content/uploads/2022/05/kiss-cut-stickers-5.5x5.5-default-62798e870da71.png.webp');
}

.header-bakc-icon {
    background-image: url('https://coin-images.coingecko.com/nft_contracts/images/233/large/bored-ape-kennel-club.png?1707287231');
}

.title-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.title-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.title-decoration.left {
    left: -100px;
    animation-delay: 0s;
}

.title-decoration.right {
    right: -100px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-70%) rotate(10deg); }
}

h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.7;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-preview {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-preview:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.15);
}

.stat-preview-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-preview-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Data Configuration Panel Styles */
.data-config-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.data-config-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.config-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.config-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.config-item {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.config-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.config-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.config-source {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.source-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.config-input-group {
    margin-bottom: 1rem;
}

.config-input-group:last-child {
    margin-bottom: 0;
}

.config-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.config-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.config-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.config-inputs-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.config-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.config-button {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.config-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.config-button.secondary {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.config-button.tertiary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.config-button.quaternary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.config-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.config-button:active {
    transform: translateY(0);
}

.data-status {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.pools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pool {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.pool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.pool:nth-child(1)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pool:nth-child(2)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pool:nth-child(3)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.pool:nth-child(4)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.pool:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pool-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool:hover .pool-icon {
    transform: rotate(360deg) scale(1.1);
}

.ape-icon {
    background-image: url('https://us1.discourse-cdn.com/apecoin/original/2X/2/2bba9f846e7db078d90ed90bda2ff9ede1797445.jpeg');
    background-size: cover;
    background-position: center;
}

.bayc-icon {
    background-image: url('https://miro.medium.com/v2/resize:fit:1000/1*2BoJwmscMEJ7JpRMR_x7uQ.png');
    background-size: cover;
    background-position: center;
}

.mayc-icon {
    background-image: url('https://cryptogoodies.shop/wp-content/uploads/2022/05/kiss-cut-stickers-5.5x5.5-default-62798e870da71.png.webp');
    background-size: cover;
    background-position: center;
}

.bakc-icon {
    background-image: url('https://coin-images.coingecko.com/nft_contracts/images/233/large/bored-ape-kennel-club.png?1707287231');
    background-size: cover;
    background-position: center;
}

.pool-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.pool-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.input-group {
    margin-top: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.results {
    margin-top: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

.result-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    max-width: 100%;
}

.result-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.result-item:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.result-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.result-subvalue {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-subvalue div {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.8;
}

.button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.button::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 ease;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.data-source {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-source a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.data-source a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.data-source a:hover::after {
    width: 100%;
}

.data-source a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.source-list li {
    margin: 0.5rem 0;
}

/* Pool Breakdown Styles */
.pool-breakdown {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.breakdown-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.breakdown-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.breakdown-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 10px;
    padding: 0.75rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.breakdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.breakdown-item:hover::before {
    height: 4px;
}

#ape-breakdown::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#bayc-breakdown::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

#mayc-breakdown::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

#bakc-breakdown::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.breakdown-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.breakdown-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.breakdown-item:hover .breakdown-icon {
    transform: scale(1.1);
}

.breakdown-info {
    flex: 1;
    min-width: 0;
}

.breakdown-pool-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.breakdown-pool-details {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

.breakdown-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.breakdown-daily,
.breakdown-monthly,
.breakdown-annual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.breakdown-daily:hover,
.breakdown-monthly:hover,
.breakdown-annual:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.breakdown-label {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.breakdown-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Total Summary Styles */
.total-summary {
    margin-top: 2rem;
}

.summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.summary-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-success);
    border-radius: 2px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Price Information Display Styles */
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Total APE Staked Styles */
.total-ape-staked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.ape-staked-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    text-align: center;
}

.ape-staked-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.ape-staked-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.ape-staked-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ape-staked-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.ape-staked-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    min-width: 100px;
}

.ape-staked-label-total {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ape-staked-value-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .breakdown-item {
        padding: 1rem;
    }
    
    .breakdown-icon {
        width: 35px;
        height: 35px;
    }
    
    .breakdown-pool-name {
        font-size: 1rem;
    }
    
    .breakdown-pool-details {
        font-size: 0.8rem;
    }
    
    .breakdown-label {
        font-size: 0.7rem;
    }
    
    .breakdown-value {
        font-size: 0.85rem;
    }
    
    .pools {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pool {
        padding: 1.75rem;
    }
    
    .result-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .config-button {
        max-width: 300px;
    }
    
    .data-status {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .pools {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .pool {
        padding: 1.25rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .header-icons {
        gap: 0.75rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-preview {
        gap: 1rem;
    }
    
    .stat-preview {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .title-decoration {
        display: none;
    }
    
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .breakdown-item {
        padding: 0.75rem;
    }
    
    .breakdown-icon {
        width: 30px;
        height: 30px;
    }
    
    .breakdown-pool-name {
        font-size: 0.85rem;
    }
    
    .breakdown-pool-details {
        font-size: 0.7rem;
    }
    
    .breakdown-label {
        font-size: 0.6rem;
    }
    
    .breakdown-value {
        font-size: 0.7rem;
    }
    
    .ape-staked-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ape-staked-item {
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .ape-staked-total {
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    
    .config-inputs-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .pools {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pool {
        padding: 1rem;
    }
    
    .pool-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .pool-title {
        font-size: 1.25rem;
    }
    
    .header-icons {
        gap: 0.5rem;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .stats-preview {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-preview {
        padding: 0.5rem 1rem;
        min-width: 80px;
        width: 100%;
        max-width: 120px;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .breakdown-item {
        padding: 1rem;
    }
    
    .breakdown-icon {
        width: 35px;
        height: 35px;
    }
    
    .breakdown-pool-name {
        font-size: 0.9rem;
    }
    
    .breakdown-pool-details {
        font-size: 0.75rem;
    }
    
    .breakdown-label {
        font-size: 0.7rem;
    }
    
    .breakdown-value {
        font-size: 0.8rem;
    }
    
    .data-config-panel {
        padding: 1.5rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#all-sources-status {
    margin-left: 0.5em; /* Add some space between timestamp and sources list */
    flex-shrink: 1; /* Allow this item to shrink if needed */
    min-width: 0; /* Allow shrinking below its content size if necessary for flexbox */
    /* Consider 'word-break: break-word;' if individual source strings are very long without spaces */
}
