/**
 * OrmrStake Complete Styles
 * All CSS for the luxury DeFi redesign
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --brand-navy: #2D3142;
    --slate-blue: #4F5D75;
    --coral: #FF6B6B;
    --bright-orange: #FF8C42;
    --cerulean: #3EACB0;
    --teal: #307B7F;
    --forest-green: #4D9A7F;
    --cream: #F4E8C1;
    --deep-red: #A3333D;
    --burnt-orange: #C85E38;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'General Sans', sans-serif;
    background: linear-gradient(180deg, #F4E8C1 0%, #EDE0B5 100%);
    min-height: 100vh;
    color: var(--brand-navy);
}

a {
    text-decoration: none;
    color: inherit;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.5); }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 232, 193, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 49, 66, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.logo-text {
    color: var(--brand-navy);
}

.logo-text-gradient {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--slate-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-navy);
}

.nav-link.active {
    color: var(--brand-navy);
    border-bottom: 2px solid var(--coral);
    padding-bottom: 4px;
}

/* Wallet Button - Connected */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(45, 49, 66, 0.05);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-btn:hover {
    background: rgba(45, 49, 66, 0.1);
}

.wallet-dot {
    width: 10px;
    height: 10px;
    background: var(--forest-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.wallet-address {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--brand-navy);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-coral {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.btn-coral.glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.btn-cerulean {
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
    color: white;
    box-shadow: 0 4px 20px rgba(62, 172, 176, 0.3);
}

.btn-cerulean:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(62, 172, 176, 0.4);
}

.btn-cerulean.glow {
    animation: glow-pulse-cerulean 2s ease-in-out infinite;
}

@keyframes glow-pulse-cerulean {
    0%, 100% { box-shadow: 0 0 20px rgba(62, 172, 176, 0.3); }
    50% { box-shadow: 0 0 40px rgba(62, 172, 176, 0.5); }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
}

.btn-outline:hover {
    background: var(--brand-navy);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    animation: none;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(45, 49, 66, 0.06);
    box-shadow: 0 8px 32px rgba(45, 49, 66, 0.08);
    overflow: hidden;
}

/* ============================================
   POOL AVATAR
   ============================================ */
.pool-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.pool-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.pool-avatar.ownership {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.pool-avatar.participation {
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
    box-shadow: 0 4px 12px rgba(62, 172, 176, 0.25);
}

.pool-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   STATUS BADGE
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(77, 154, 127, 0.1);
    color: var(--forest-green);
}

.status-badge.active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--forest-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge.paused {
    background: rgba(200, 94, 56, 0.1);
    color: var(--burnt-orange);
}

.status-badge.closed {
    background: rgba(163, 51, 61, 0.1);
    color: var(--deep-red);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.apy-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apy-value-lg {
    font-size: 1.5rem;
}

.rewards-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--forest-green);
}

.value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-navy);
}

/* ============================================
   HERO SECTION (HOME)
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(45, 49, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 49, 66, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-blob-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.bg-blob-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(62, 172, 176, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-blue);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 49, 66, 0.08);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--forest-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--brand-navy);
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-blue);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* ============================================
   STATS BAR (HOME)
   ============================================ */
.stats-bar {
    display: flex;
    gap: 3rem;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(45, 49, 66, 0.06);
    box-shadow: 0 8px 32px rgba(45, 49, 66, 0.08);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value.coral {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   COMPACT STATS ROW (APP MODE)
   ============================================ */
/* Home Page Stats Grid */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.home-stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(45, 49, 66, 0.06);
    box-shadow: 0 4px 16px rgba(45, 49, 66, 0.06);
}

.home-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.home-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

@media (max-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 1rem;
    }

    .home-stat-card {
        padding: 16px;
    }

    .home-stat-value {
        font-size: 1.25rem;
    }
}

/* Legacy Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--slate-blue));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(45, 49, 66, 0.15);
    overflow: hidden;
}

.stats-row-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.stats-row-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stats-row-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-row-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stats-row-value.coral {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.stats-row-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    padding: 64px 32px;
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    color: var(--slate-blue);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.section-title-sm {
    font-size: 1.5rem;
}

/* ============================================
   TABLES
   ============================================ */
.table-header {
    background: linear-gradient(135deg, var(--brand-navy), var(--slate-blue));
    padding: 1rem 1.5rem;
    display: grid;
    gap: 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-header-pools {
    grid-template-columns: 8fr 3fr 3fr 3fr 3fr;
}

.table-header-pools span {
    text-align: center;
}

.table-header-pools span:first-child {
    text-align: left;
}

.table-header-pools-manage {
    grid-template-columns: 2fr 1fr 1fr 1fr 100px;
}

.table-header-pools-owner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
}

.table-header-positions {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
}

.table-row {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
    transition: all 0.3s ease;
}

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

.table-row-pools {
    grid-template-columns: 8fr 3fr 3fr 3fr 3fr;
}

.table-row-pools > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-row-pools > div:first-child {
    justify-content: flex-start;
}

.table-row-pools > div:last-child {
    justify-content: flex-end;
}

.table-row-pools .pool-name {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-row-pools-manage {
    grid-template-columns: 2fr 1fr 1fr 1fr 100px;
}

.table-row-pools-owner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
}

.table-row-pools-owner > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-row-pools-owner > div:first-child {
    justify-content: flex-start;
}

.table-row-pools-owner > div:last-child {
    justify-content: flex-end;
}

.table-row-positions {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 100px;
}

.table-row:hover {
    background: rgba(255, 107, 107, 0.04);
    transform: translateX(4px);
}

.table-row:hover .pool-avatar {
    transform: scale(1.1) rotate(5deg);
}

.table-row-cerulean:hover {
    background: rgba(62, 172, 176, 0.04);
}

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

.pool-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--brand-navy);
}

.pool-token {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

/* ============================================
   CTA SECTION (HOME)
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--brand-navy), var(--slate-blue));
    padding: 5rem 2rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: white;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(45, 49, 66, 0.06);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand p {
    color: var(--slate-blue);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col-title {
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--slate-blue);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 49, 66, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-blue);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--slate-blue);
    margin-left: 1.5rem;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */
.main {
    padding-top: 120px;
    padding-bottom: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.main-narrow {
    max-width: 640px;
    padding-left: 24px;
    padding-right: 24px;
}

.welcome {
    margin-bottom: 48px;
}

.welcome-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--slate-blue);
}

.welcome-subtitle span {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--brand-navy);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(45, 49, 66, 0.06);
    box-shadow: 0 8px 32px rgba(45, 49, 66, 0.08);
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(45, 49, 66, 0.12);
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--brand-navy);
    margin-top: 8px;
}

.stat-card-value.rewards {
    color: var(--forest-green);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.action-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(45, 49, 66, 0.06);
    box-shadow: 0 8px 32px rgba(45, 49, 66, 0.08);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(45, 49, 66, 0.12);
}

.action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.action-icon.coral {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.action-icon.cerulean {
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
    box-shadow: 0 4px 20px rgba(62, 172, 176, 0.3);
}

.action-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.action-subtitle {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

/* ============================================
   FORM STYLES (CREATE POOL)
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--slate-blue);
}

.form-header {
    background: linear-gradient(135deg, var(--brand-navy), var(--slate-blue));
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.form-header-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.form-header-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.form-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 28px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-navy);
}

.label .required {
    color: var(--coral);
    margin-left: 2px;
}

.char-count {
    font-size: 0.75rem;
    color: var(--slate-blue);
}

.input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(45, 49, 66, 0.1);
    border-radius: 12px;
    font-family: 'General Sans', sans-serif;
    font-size: 1rem;
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input::placeholder {
    color: var(--slate-blue);
    opacity: 0.6;
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234F5D75' 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 16px center;
    background-size: 20px;
    padding-right: 48px;
}

.helper-text {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-top: 8px;
}

.helper-text a {
    color: var(--coral);
    font-weight: 500;
}

.helper-text a:hover {
    text-decoration: underline;
}

.divider {
    height: 1px;
    background: rgba(45, 49, 66, 0.08);
    margin: 32px 0;
}

/* Range Slider */
.range-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-input {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(45, 49, 66, 0.1);
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 80px;
    text-align: right;
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Input with suffix */
.input-with-suffix {
    position: relative;
}

.input-with-suffix .input {
    padding-right: 100px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--slate-blue);
}

/* Upload Box */
.upload-box {
    border: 2px dashed rgba(45, 49, 66, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.upload-box:hover {
    border-color: var(--coral);
    background: rgba(255, 107, 107, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.upload-text {
    font-weight: 600;
    color: var(--brand-navy);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--slate-blue);
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--coral);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background: var(--deep-red);
}

/* Preview Section */
.preview-section {
    background: rgba(45, 49, 66, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.preview-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.preview-pool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.preview-pool-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.preview-pool-token {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-top: 2px;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.preview-stat {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.preview-stat-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.preview-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.preview-stat-value.apy {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-stat-value.green {
    color: var(--forest-green);
}

/* Fee Breakdown */
.fee-breakdown {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fee-row:not(:last-child) {
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.fee-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.fee-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-navy);
}

.fee-value.negative {
    color: var(--deep-red);
}

.fee-value.total {
    font-size: 1rem;
    color: var(--forest-green);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(45, 49, 66, 0.2);
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox:checked {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    border-color: var(--coral);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--coral);
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Help Card */
.help-card {
    margin-top: 24px;
    padding: 24px;
}

.help-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--slate-blue);
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-link {
    color: var(--coral);
    font-weight: 500;
    font-size: 0.875rem;
}

.help-link:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links .nav-link {
        display: none;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-row {
        flex-wrap: wrap;
        border-radius: 16px;
    }

    .stats-row-item {
        flex: 1 1 50%;
        min-width: 50%;
        padding: 1rem;
    }

    .stats-row-item:not(:last-child)::after {
        display: none;
    }

    .stats-row-item:nth-child(1),
    .stats-row-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stats-row-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stats-row-value {
        font-size: 1.25rem;
    }

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

    .table-header,
    .table-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   POOL DETAIL PAGE
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-blue);
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--coral);
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.pool-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pool-avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    border-radius: 18px;
}

.pool-header-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--brand-navy);
}

.pool-header-token {
    font-size: 1rem;
    color: var(--slate-blue);
    margin-top: 4px;
}

.pool-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

.pool-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pool-stat-card {
    flex: 1;
    min-width: 0;
}

.pool-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(45, 49, 66, 0.06);
}

.pool-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pool-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

.pool-stat-value.treasury {
    color: var(--cerulean);
}

.pool-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: stretch;
}

.pool-content-equal {
    align-items: stretch;
}

.pool-info-section {
    display: flex;
    flex-direction: column;
}

.pool-info-section > .glass-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pool-info-section > .glass-card > .card-body {
    flex: 1;
}

.pool-action-section {
    display: flex;
    flex-direction: column;
}

.pool-action-section > .glass-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pool-action-section > .glass-card > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Pool Card Header - header inside the about card */
.pool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.pool-card-header .pool-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pool-card-header + .card-body {
    padding-top: 20px;
}

/* Inline Stats Grid - compact stats inside card */
.pool-stats-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.pool-stat-inline {
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid rgba(45, 49, 66, 0.06);
}

.pool-stat-inline:last-child {
    border-right: none;
}

.pool-stat-inline .pool-stat-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.pool-stat-inline .pool-stat-value {
    font-size: 1.25rem;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.card-header-coral {
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    border-bottom: none;
}

.card-header-cerulean {
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
    border-bottom: none;
}

.card-header-green {
    background: linear-gradient(135deg, var(--forest-green), #3D8C88);
    border-bottom: none;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--brand-navy);
}

.card-title.white {
    color: white;
}

.card-body {
    padding: 24px;
}

.pool-description {
    color: var(--brand-navy);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pool-description.muted {
    color: var(--slate-blue);
    font-style: italic;
}

.muted {
    color: var(--slate-blue);
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.pool-meta {
    border-top: 1px solid rgba(45, 49, 66, 0.06);
    padding-top: 20px;
}

.pool-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(45, 49, 66, 0.04);
}

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

.pool-meta-label {
    color: var(--slate-blue);
    font-size: 0.875rem;
}

.pool-meta-value {
    color: var(--brand-navy);
    font-weight: 500;
    font-size: 0.875rem;
}

.pool-meta-link {
    color: var(--coral);
    transition: color 0.3s ease;
}

.pool-meta-link:hover {
    color: var(--bright-orange);
}

.stakers-list {
    max-height: 300px;
    overflow-y: auto;
}

.staker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.04);
}

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

.staker-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staker-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cerulean), var(--teal));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
}

.staker-address {
    font-size: 0.875rem;
    color: var(--brand-navy);
}

.staker-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--brand-navy);
}

.action-card-sticky {
    position: sticky;
    top: 120px;
}

.connect-prompt {
    text-align: center;
    padding: 24px 0;
}

.connect-prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.connect-prompt p {
    color: var(--slate-blue);
    margin-bottom: 24px;
}

.existing-position {
    background: rgba(62, 172, 176, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.existing-position-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.existing-position-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-navy);
}

.existing-position-rewards {
    color: var(--forest-green);
    font-weight: 600;
    margin-top: 4px;
}

.balance-display {
    font-size: 0.75rem;
    color: var(--slate-blue);
}

.balance-value {
    font-weight: 600;
    color: var(--brand-navy);
}

.max-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--coral), var(--bright-orange));
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.max-btn:hover {
    opacity: 0.9;
}

.estimate-box {
    background: rgba(45, 49, 66, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.estimate-value {
    font-weight: 600;
    color: var(--brand-navy);
}

.estimate-value.highlight {
    color: var(--forest-green);
    font-size: 1rem;
}

.estimate-row-muted {
    border-top: 1px solid rgba(45, 49, 66, 0.08);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--slate-blue);
    opacity: 0.8;
}

.estimate-row-muted .estimate-value {
    color: var(--slate-blue);
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed var(--slate-blue);
    display: inline-block;
}

.tooltip-trigger .tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-navy);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 8px;
    font-weight: 400;
}

.tooltip-trigger .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--brand-navy);
}

.tooltip-trigger:hover .tooltip {
    display: block;
}

/* ============================================
   POSITION PAGE
   ============================================ */
.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.position-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.position-header-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.position-header-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

.position-header-token {
    font-size: 1rem;
    color: var(--slate-blue);
}

.position-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.position-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.position-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(45, 49, 66, 0.06);
}

.position-stat-card.highlight-green {
    background: rgba(77, 154, 127, 0.08);
    border-color: rgba(77, 154, 127, 0.2);
}

.position-stat-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.position-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-navy);
}

.position-stat-subvalue {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-top: 4px;
}

.position-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Position Page - Two Column Layout */
.position-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.position-content-equal {
    align-items: stretch;
}

.position-info-section {
    display: flex;
    flex-direction: column;
}

.position-action-section {
    display: flex;
    flex-direction: column;
}

/* Position Page - Pool Info Header */
.pool-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.pool-info-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.pool-info-token {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-top: 2px;
}

/* Position Page - Tabs */
.position-tabs {
    display: flex;
    border-bottom: 1px solid rgba(45, 49, 66, 0.1);
}

.position-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-blue);
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    transition: all 0.3s ease;
}

.position-tab:hover {
    color: var(--brand-navy);
}

.position-tab.active {
    color: var(--cerulean);
    border-bottom-color: var(--cerulean);
}

.position-tab.active.green {
    color: var(--forest-green);
    border-bottom-color: var(--forest-green);
}

.position-tab.active.coral {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

.tab-content {
    padding: 24px;
}

/* Position Page - Claim Display */
.claim-display {
    text-align: center;
    padding: 32px 0;
}

.claim-amount {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 20px;
}

.claim-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.claim-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--forest-green);
}

.claim-token {
    color: var(--slate-blue);
    font-size: 1rem;
}

.btn-green {
    background: linear-gradient(135deg, var(--forest-green), #3D8C88);
    color: white;
    box-shadow: 0 4px 20px rgba(77, 154, 127, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 154, 127, 0.4);
}

.withdraw-options {
    margin: 16px 0;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.checkbox-inline input {
    width: 18px;
    height: 18px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.04);
}

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

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.history-icon.stake {
    background: rgba(62, 172, 176, 0.1);
}

.history-icon.withdraw {
    background: rgba(79, 93, 117, 0.1);
}

.history-icon.claim {
    background: rgba(77, 154, 127, 0.1);
}

.history-info {
    flex: 1;
}

.history-action {
    font-weight: 600;
    color: var(--brand-navy);
}

.history-date {
    font-size: 0.75rem;
    color: var(--slate-blue);
}

.history-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.history-amount.stake,
.history-amount.claim {
    color: var(--forest-green);
}

.history-amount.withdraw {
    color: var(--slate-blue);
}

.history-tx {
    flex-shrink: 0;
}

.tx-hash-link {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-decoration: none;
    padding: 4px 8px;
    background: rgba(45, 49, 66, 0.04);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tx-hash-link:hover {
    color: var(--cerulean);
    background: rgba(0, 123, 167, 0.1);
}

/* ============================================
   POOL MANAGE PAGE
   ============================================ */
.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.manage-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.manage-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.manage-header-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.manage-header-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

.manage-header-token {
    font-size: 1rem;
    color: var(--slate-blue);
}

.owner-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.owner-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(45, 49, 66, 0.06);
}

.owner-stat-card.highlight-cerulean {
    background: rgba(62, 172, 176, 0.08);
    border-color: rgba(62, 172, 176, 0.2);
}

.owner-stat-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.owner-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-navy);
}

.owner-stat-value.treasury-value {
    color: var(--cerulean);
}

.owner-stat-subvalue {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-top: 4px;
}

.warning-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(200, 94, 56, 0.1);
    border: 1px solid rgba(200, 94, 56, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.warning-icon {
    font-size: 24px;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-weight: 700;
    color: var(--burnt-orange);
    margin-bottom: 4px;
}

.warning-text {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.owner-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.treasury-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.treasury-current,
.treasury-runway {
    background: rgba(45, 49, 66, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.treasury-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.treasury-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--cerulean);
}

.treasury-token {
    font-size: 0.875rem;
    color: var(--slate-blue);
}

.treasury-days {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

.treasury-subtext {
    font-size: 0.75rem;
    color: var(--slate-blue);
}

.treasury-actions {
    display: flex;
    gap: 12px;
}

.treasury-actions .btn {
    flex: 1;
}

.setting-group {
    margin-bottom: 24px;
}

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

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.setting-label {
    font-weight: 600;
    color: var(--brand-navy);
}

.setting-current {
    font-weight: 700;
}

.staker-address-full {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 49, 66, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 24px 48px rgba(45, 49, 66, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(45, 49, 66, 0.05);
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--slate-blue);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(45, 49, 66, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(45, 49, 66, 0.06);
}

.modal-footer .btn {
    flex: 1;
}

.warning-box {
    background: rgba(200, 94, 56, 0.1);
    border: 1px solid rgba(200, 94, 56, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.875rem;
    color: var(--burnt-orange);
    margin-top: 16px;
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
    .pool-content,
    .position-content {
        grid-template-columns: 1fr;
    }

    .action-card-sticky {
        position: static;
    }

    .pool-stats-grid,
    .position-stats-grid,
    .owner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pool-stats-inline {
        grid-template-columns: repeat(2, 1fr);
    }

    .pool-stat-inline:nth-child(2) {
        border-right: none;
    }

    .pool-stat-inline:nth-child(1),
    .pool-stat-inline:nth-child(2) {
        border-bottom: 1px solid rgba(45, 49, 66, 0.06);
    }

    .position-actions,
    .owner-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pool-header,
    .position-header,
    .manage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pool-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pool-card-header .status-badge {
        align-self: flex-start;
    }

    .manage-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .pool-stats-grid,
    .position-stats-grid,
    .owner-stats-grid {
        grid-template-columns: 1fr;
    }

    .pool-stats-inline {
        grid-template-columns: repeat(2, 1fr);
    }

    .pool-stat-inline {
        padding: 12px 16px;
    }

    .pool-stat-inline .pool-stat-value {
        font-size: 1rem;
    }

    .treasury-display {
        grid-template-columns: 1fr;
    }

    .treasury-actions {
        flex-direction: column;
    }
}

/* Page Loading State */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--slate-blue);
}

.page-loading p {
    margin-top: 16px;
    font-size: 0.875rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(45, 49, 66, 0.1);
    border-top-color: var(--cerulean);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   POOL MANAGE PAGE - OVERVIEW STATS
   ============================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.overview-stat {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: left;
    border: 1px solid rgba(45, 49, 66, 0.06);
}

.overview-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.overview-stat-icon {
    font-size: 1.25rem;
}

.overview-stat-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-navy);
}

.overview-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--brand-navy);
}

.overview-stat-value.treasury-value {
    color: var(--cerulean);
}

.overview-stat-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-top: 4px;
}

/* ============================================
   POOL MANAGE PAGE - TREASURY ANALYTICS
   ============================================ */
.section-subtitle {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-top: -16px;
    margin-bottom: 20px;
}

.section-title-icon {
    font-size: 1.25rem;
}

.analytics-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-stat {
    background: white;
    border: 1px solid rgba(45, 49, 66, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.analytics-stat-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-bottom: 8px;
}

.analytics-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--brand-navy);
}

.analytics-stat-value.green {
    color: var(--forest-green);
}

.analytics-stat-subtext {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-top: 4px;
}

.health-bar {
    width: 100%;
    height: 8px;
    background: rgba(45, 49, 66, 0.1);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    background: var(--forest-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.analysis-card {
    background: white;
    border: 1px solid rgba(45, 49, 66, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.analysis-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.analysis-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(45, 49, 66, 0.04);
}

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

.analysis-label {
    color: var(--slate-blue);
    font-size: 0.875rem;
}

.analysis-value {
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 0.875rem;
}

.analysis-value.green {
    color: var(--forest-green);
}

/* Runway Projection */
.runway-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--brand-navy);
}

.runway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.runway-card {
    background: rgba(77, 154, 127, 0.08);
    border: 1px solid rgba(77, 154, 127, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.runway-card.warning {
    background: rgba(200, 94, 56, 0.08);
    border-color: rgba(200, 94, 56, 0.2);
}

.runway-card.danger {
    background: rgba(163, 51, 61, 0.08);
    border-color: rgba(163, 51, 61, 0.2);
}

.runway-period {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-bottom: 8px;
}

.runway-status {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--forest-green);
}

.runway-card.warning .runway-status {
    color: var(--burnt-orange);
}

.runway-card.danger .runway-status {
    color: var(--deep-red);
}

/* ============================================
   POOL MANAGE PAGE - TREASURY FUNDING
   ============================================ */
.treasury-balance-display {
    background: white;
    border: 2px solid rgba(62, 172, 176, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.treasury-balance-label {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-bottom: 8px;
}

.treasury-balance-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--cerulean);
}

.treasury-balance-token {
    font-size: 1rem;
    color: var(--slate-blue);
}

/* ============================================
   POOL MANAGE PAGE - POOL MANAGEMENT
   ============================================ */
.close-steps {
    background: rgba(45, 49, 66, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.close-steps-title {
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.close-step {
    font-size: 0.875rem;
    color: var(--slate-blue);
    padding: 6px 0;
}

.close-step.disabled {
    opacity: 0.5;
}

.close-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--burnt-orange);
    margin-top: 12px;
}

.manage-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.manage-status-card {
    background: white;
    border: 1px solid rgba(45, 49, 66, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.manage-status-label {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-bottom: 8px;
}

.manage-status-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-navy);
}

.manage-status-value.green {
    color: var(--forest-green);
}

/* Action Cards for Pool Management */
.cerulean-action {
    background: rgba(62, 172, 176, 0.05);
    border: 1px solid rgba(62, 172, 176, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.cerulean-action .action-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cerulean);
    margin-bottom: 8px;
}

.warning-action {
    background: rgba(200, 94, 56, 0.05);
    border: 1px solid rgba(200, 94, 56, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.warning-action .action-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--burnt-orange);
    margin-bottom: 8px;
}

.action-description {
    font-size: 0.875rem;
    color: var(--slate-blue);
    margin-bottom: 16px;
}

/* ============================================
   POOL MANAGE PAGE - ACTIVITY TABLE
   ============================================ */
.table-header-activity {
    grid-template-columns: 120px 1fr 1fr 1fr 1fr;
    border-radius: 16px 16px 0 0;
}

.table-row-activity {
    grid-template-columns: 120px 1fr 1fr 1fr 1fr;
    background: white;
}

.table-row-activity:last-child {
    border-radius: 0 0 16px 16px;
}

.type-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--brand-navy);
    color: white;
    text-transform: uppercase;
}

.type-badge.stake {
    background: var(--cerulean);
}

.type-badge.deposit,
.type-badge.treasury_fund {
    background: var(--forest-green);
}

.type-badge.withdraw {
    background: var(--slate-blue);
}

.type-badge.claim {
    background: var(--forest-green);
}

.tx-link {
    color: var(--cerulean);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Token Badge */
.token-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--cerulean);
    color: white;
}

/* ============================================
   POOL MANAGE PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-header {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .manage-status-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-header span:not(:first-child),
    .table-row > div:not(:first-child):not(:nth-child(3)) {
        display: none;
    }
}

/* ============================================
   POOLS FILTERS
   ============================================ */
.pools-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pools-filters .search-box {
    flex: 1;
    min-width: 200px;
}

.pools-filters .search-box .input {
    width: 100%;
}

.pools-filters .filter-controls {
    display: flex;
    gap: 12px;
}

.select-sm {
    padding: 10px 16px;
    font-size: 0.875rem;
    min-width: 140px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F5D75' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.paused {
    background: rgba(255, 107, 107, 0.15);
    color: var(--coral);
}

.status-badge.active {
    background: rgba(77, 154, 127, 0.15);
    color: var(--forest-green);
}

@media (max-width: 640px) {
    .pools-filters {
        flex-direction: column;
    }

    .pools-filters .filter-controls {
        width: 100%;
    }

    .pools-filters .filter-controls .select-sm {
        flex: 1;
    }
}

/* ============================================
   DASHBOARD COLUMNS
   ============================================ */
.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD ITEMS
   ============================================ */
.dashboard-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-item {
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(45, 49, 66, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dashboard-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 49, 66, 0.1);
}

.dashboard-item-coral:hover {
    border-color: rgba(255, 107, 107, 0.3);
}

.dashboard-item-cerulean:hover {
    border-color: rgba(62, 172, 176, 0.3);
}

.dashboard-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-item-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dashboard-item-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-item-stat .stat-label {
    font-size: 0.7rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-item-stat .stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-navy);
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }
