/* =============================================================================
   Pendle Vote Tracker - Styles
   Official Pendle brand colors from pendle.finance/brand-guide
   ============================================================================= */

/* CSS Variables - Pendle Brand Colors */
:root {
    /* Pendle Background Colors */
    --bg-primary: #0b1120;
    /* Deep navy */
    --bg-secondary: #111827;
    /* Slightly lighter navy */
    --bg-tertiary: #1a2332;
    /* Card backgrounds */
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(26, 35, 50, 0.9);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Pendle Accent Colors - Blue family */
    --pendle-blue: #3b82f6;
    /* Primary blue */
    --pendle-cyan: #22d3ee;
    /* YT Blue / Cyan accent */
    --pendle-navy: #1e3a5f;
    /* Deep accent */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --accent-primary: #3b82f6;
    --accent-secondary: #22d3ee;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.15);

    /* Borders */
    --border-color: rgba(59, 130, 246, 0.15);
    --border-glow: rgba(34, 211, 238, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.search-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.search-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

#walletInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.75rem 0;
    outline: none;
}

#walletInput::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: relative;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
    overflow: hidden;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

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

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

.search-btn:hover .btn-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.search-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.3s ease;
}

/* Pendulum Loader */
.pendulum {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.pendulum::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.pendulum-arm {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 65px;
    background: linear-gradient(to bottom, var(--pendle-blue), var(--pendle-cyan));
    transform-origin: top center;
    animation: pendulumSwing 1.5s ease-in-out infinite;
    border-radius: 2px;
}

.pendulum-ball {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #4dd0e1, var(--pendle-cyan), #0891b2);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(34, 211, 238, 0.5),
        0 0 40px rgba(34, 211, 238, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

@keyframes pendulumSwing {
    0% {
        transform: rotate(-35deg);
    }

    50% {
        transform: rotate(35deg);
    }

    100% {
        transform: rotate(-35deg);
    }
}

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

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    animation: shake 0.4s ease;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.retry-btn:hover {
    background: var(--error);
    color: white;
}

/* Results Section */
.results-section {
    display: grid;
    gap: 1.5rem;
    animation: fadeInUp 0.5s ease;
}

/* Result Cards */
.result-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.vote-icon {
    background: var(--success-bg);
    color: var(--success);
}

.claims-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.card-title-section {
    flex: 1;
}

.card-title-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-badge {
    background: var(--bg-tertiary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-badge span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Month Selector */
.month-selector {
    flex-shrink: 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 2px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: calc(var(--radius-sm) - 2px);
    transition: all var(--transition-fast);
}

.mode-btn:hover {
    color: var(--text-secondary);
}

.mode-btn.active {
    background: var(--accent-primary);
    color: white;
}

.month-dropdown {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a8b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.month-dropdown:hover {
    border-color: var(--accent-primary);
}

.month-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.month-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Vote Meta */
.vote-meta {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 80px;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tx-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tx-link:hover {
    color: var(--text-primary);
}

.tx-link svg {
    width: 14px;
    height: 14px;
}

/* Pools Table */
.pools-table {
    padding: 0 0.5rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 80px 90px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.pool-row {
    display: grid;
    grid-template-columns: 1fr 80px 90px;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.pool-row:last-child {
    border-bottom: none;
}

.pool-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pool-info {
    min-width: 0;
}

.pool-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-address {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.col-status {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-in {
    background: var(--success-bg);
    color: var(--success);
}

.status-out {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-muted);
}

/* OUT pools - indented and subdued */
.pool-row.out {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-color);
    opacity: 0.6;
}

.pool-row.out .pool-name {
    color: var(--text-secondary);
}

.pool-row.out:hover {
    opacity: 0.8;
}

.col-weight {
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
}

/* Vote Sections (All Votes Mode) */
.vote-section {
    padding: 1rem;
    margin: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.vote-section:hover {
    background: var(--bg-tertiary);
}

.vote-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vote-section-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-section-date {
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-section-tx {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'SF Mono', Monaco, monospace;
}

.vote-section-tx:hover {
    color: var(--text-primary);
}

.vote-section-pct {
    font-weight: 700;
    font-size: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vote-section-pools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mini-pool {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mini-pool-more {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.total-allocation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.total-value {
    font-size: 1.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Claims List */
.claims-list {
    padding: 0.5rem;
}

.claim-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    transition: background var(--transition-fast);
}

.claim-item:last-child {
    margin-bottom: 0;
}

.claim-item:hover {
    background: var(--bg-tertiary);
}

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

.claim-date {
    font-weight: 600;
    font-size: 0.9rem;
}

.claim-tx {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'SF Mono', Monaco, monospace;
}

.claim-tx:hover {
    color: var(--text-primary);
}

.claim-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.token-amount {
    font-weight: 600;
    color: var(--success);
}

.token-symbol {
    color: var(--text-secondary);
}

.no-claims {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Whales Section */
.whales-section {
    margin-bottom: 2rem;
}

.whales-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

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

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

.whales-title-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.whales-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.epoch-timer {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.epoch-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epoch-countdown {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.whales-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.whales-table-header {
    display: grid;
    grid-template-columns: 40px 1fr 90px 70px 90px;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
}

.whales-table-header span:nth-child(3),
.whales-table-header span:nth-child(4) {
    text-align: right;
}

.whales-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whale-row {
    display: grid;
    grid-template-columns: 40px 1fr 90px 70px 90px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whale-row:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--glass-border);
}

.whale-rank {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.whale-rank.top-3 {
    color: var(--success);
}

.whale-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.whale-vependle {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.whale-apr {
    text-align: right;
    font-weight: 600;
    color: var(--success);
    font-size: 0.9rem;
}

.whale-action {
    text-align: right;
}

.view-vote-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.whales-source {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.whales-source a {
    color: var(--accent);
    text-decoration: none;
}

.whales-source a:hover {
    text-decoration: underline;
}

/* APR Comparison Card */
.comparison-card .card-icon {
    font-size: 1.5rem;
}

.comparison-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.your-apr,
.avg-apr {
    text-align: center;
}

.apr-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.apr-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.your-apr .apr-value {
    color: var(--accent);
}

.avg-apr .apr-value {
    color: var(--text-secondary);
}

.apr-vs {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.similar-voters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.similar-voter-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.similar-voter-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.similar-voter-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-secondary);
}

.similar-voter-vependle {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.similar-voter-apr {
    text-align: right;
    font-weight: 600;
    color: var(--success);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.7;
}

.antigravity {
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

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

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .search-wrapper {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .search-icon {
        display: none;
    }

    #walletInput {
        width: 100%;
        flex: none;
        font-size: 0.85rem;
    }

    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .table-header,
    .pool-row {
        grid-template-columns: 1fr 60px 70px;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .card-badge {
        display: none;
    }
}