/* ==================
   Base Styles
===================== */
:root {
    --primary-color: #7649fe;
    --primary-light: #9e7dff;
    --primary-dark: #5d2fe0;
    --secondary-color: #2de2e6;
    --background-dark: #0d0e22;
    --background-darker: #080914;
    --background-card: #15162d;
    --background-modal: #1a1b33;
    --text-light: #f0f0f9;
    --text-dim: #9c9cb0;
    --text-dark: #686880;
    --border-color: #2a2a45;
    --success-color: #1cd8a0;
    --warning-color: #ffbd59;
    --error-color: #ff5a5a;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #03edf9);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.25);
    --glow-primary: 0 0 15px rgba(118, 73, 254, 0.5);
    --glow-secondary: 0 0 15px rgba(45, 226, 230, 0.5);
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(94, 47, 224, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 75% 70%, rgba(45, 226, 230, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, button {
    border: none;
    outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn i {
    margin-right: 0.5rem;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(118, 73, 254, 0.1);
    color: var(--primary-light);
}

.connect-btn {
    background: var(--gradient-secondary);
    color: var(--background-darker);
    font-weight: 700;
}

.connect-btn:hover {
    box-shadow: var(--glow-secondary);
}

.create-btn {
    color: var(--secondary-color);
    font-weight: 600;
}

.create-btn:hover {
    color: #03edf9;
}

.view-btn {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.view-btn:hover {
    background-color: rgba(118, 73, 254, 0.1);
}

.claim-btn {
    background: var(--gradient-secondary);
    color: var(--background-darker);
    font-weight: 600;
}

.claim-btn:hover {
    box-shadow: var(--glow-secondary);
}

/* ==================
   Header Styles
===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(13, 14, 34, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-medium);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    height: 50px;
}

.logo img {
    height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.wallet-connect {
    margin-left: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-left: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all var(--transition-medium);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* ==================
   Hero Section
===================== */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    /* Add same background as explore section */
    background-color: var(--background-darker);
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(94, 47, 224, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(45, 226, 230, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 20%, rgba(118, 73, 254, 0.05) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/imgs/grid-pattern.svg');
    opacity: 0.05;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    max-width: 550px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 0 0 45%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================
   Stats Section
===================== */
.stats {
    padding: 40px 0;
    background-color: var(--background-darker);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================
   Explore Pools Section
===================== */
.explore-pools {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(118, 73, 254, 0.2);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.sort-options select {
    padding: 0.75rem 1rem;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    padding-right: 2.5rem;
    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='%239c9cb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==================
   ENHANCED Pool Card Styles
===================== */
.pool-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Ensure consistent card height */
    overflow: hidden; /* Prevent content overflow */
    position: relative;
}

.pool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.pool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.pool-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    background-color: var(--background-modal);
}

.pool-name {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.pool-symbol {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.pool-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.pool-stat {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 60px; /* Ensure consistent stat height */
}

.pool-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pool-stat .stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-light);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-height: 2.4em; /* Limit to 2 lines */
    overflow: hidden;
    transition: all var(--transition-fast);
}

/* Enhanced APY styling with overflow handling */
.apy-value {
    color: var(--success-color) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: font-size 0.2s ease, color 0.2s ease;
}

/* TVL status styling with enhanced colors */
.tvl-value {
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

/* Staker count styling */
.staker-count {
    color: var(--primary-light);
    font-weight: 600;
}

/* Enhanced APY Warning styling */
.apy-warning {
    font-size: 0.7rem !important;
    color: var(--warning-color) !important;
    margin-top: 0.25rem;
    line-height: 1.1;
    max-height: 2.2em;
    overflow: hidden;
    text-align: center;
    background-color: rgba(255, 189, 89, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 189, 89, 0.3);
}

.pool-user-info {
    margin-top: auto; /* Push to bottom */
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.user-staked, .user-rewards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.user-staked-value, .user-rewards-value {
    color: var(--text-light);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.pool-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Pool health indicator */
.pool-health-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    z-index: 2;
    opacity: 0.9;
}

.no-pools {
    text-align: center;
    padding: 3rem 0;
}

.no-pools img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-pools h3 {
    margin-bottom: 0.5rem;
}

.no-pools p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* ==================
   Create Pool Section
===================== */
.create-pool {
    padding: 100px 0;
    background-color: var(--background-darker);
}

.section-subtitle {
    text-align: center;
    color: white;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.create-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--background-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(118, 73, 254, 0.2);
}

.helper-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: white;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.token-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background-color: var(--background-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload-btn:hover {
    background-color: rgba(118, 73, 254, 0.1);
    border-color: var(--primary-color);
}

.file-upload-btn i {
    margin-right: 0.5rem;
}

.file-name {
    margin-left: 1rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.form-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(118, 73, 254, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    color: white;
}

.form-preview h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.apy-preview, .rewards-duration, .fee-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fee-display {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 0;
}

#estimated-apy {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

#pool-creation-fee {
    font-weight: 600;
    color: var(--text-light);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Image upload styling */
.image-preview {
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.upload-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--success-color);
}

.upload-status .fa-spinner {
    color: var(--primary-color);
}

.upload-status .fa-times {
    color: var(--error-color);
}

/* ==================
   Pool Details Modal
===================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 9, 20, 0.9);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-modal);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 1.5rem;
}

.pool-details-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.pool-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    background-color: var(--background-dark);
}

.pool-details-info {
    flex: 1;
}

#detail-pool-address {
    font-size: 0.9rem;
    color: var(--text-dim);
    word-break: break-all;
}

.pool-details-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-stat {
    background-color: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.detail-stat h4 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.detail-stat p {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-stats {
    margin-bottom: 2rem;
}

.user-stats h4 {
    margin-bottom: 1rem;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user-stat {
    background-color: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}

.staking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stake-form, .unstake-form {
    background-color: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}

.stake-form h4, .unstake-form h4 {
    margin-bottom: 1rem;
}

.input-with-max {
    display: flex;
    margin-bottom: 0.5rem;
}

.input-with-max input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--background-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    color: var(--text-light);
    font-size: 1rem;
}

.max-btn {
    background-color: var(--background-darker);
    color: var(--primary-light);
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0 1rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.max-btn:hover {
    background-color: rgba(118, 73, 254, 0.1);
}

.balance-display {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.reward-actions {
    background-color: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reward-actions h4 {
    margin-bottom: 1rem;
}

.reward-actions p {
    margin-bottom: 1rem;
}

#pending-rewards {
    color: var(--success-color);
    font-weight: 700;
}

.pool-owner-section {
    background-color: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--primary-color);
}

.owner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pending-updates {
    grid-column: 1 / -1;
}

.pending-update-info {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
}

.pending-update-info p {
    margin-bottom: 0.5rem;
}

.update-rate-form .input-with-max {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.update-rate-form input[type="number"] {
    flex: 1;
}

/* ==================
   Dashboard Section
===================== */
.dashboard {
    padding: 100px 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-pools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==================
   Loading Overlay
===================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 9, 20, 0.8);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(3px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(118, 73, 254, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ==================
   Notification System
===================== */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s;
    color: white;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.warning {
    background-color: var(--warning-color);
}

.notification.error {
    background-color: var(--error-color);
}

.notification i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ==================
   Footer
===================== */
.footer {
    background-color: var(--background-darker);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 1rem;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all var(--transition-medium);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==================
   Wallet Modal
===================== */
.wallet-modal-content {
    max-width: 400px;
}

.wallet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.wallet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: var(--border-radius-md);
    background-color: var(--background-card);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wallet-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--background-modal);
}

.wallet-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

/* ==================
   Utility Classes
===================== */
.search-hidden {
    display: none !important;
}

.cashtag-preview {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.cashtag-preview-image img {
    border-radius: 50%;
    display: block;
}

.cashtag-preview-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--background-card);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-light);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================
   Responsive Styles
===================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 80%;
    }
    
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .owner-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .pool-details-stats,
    .staking-actions {
        grid-template-columns: 1fr;
    }
    
    .token-info {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    /* Pool card responsive adjustments */
    .pool-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .pool-stat .stat-value {
        font-size: 1rem;
    }
    
    .apy-value {
        font-size: 1rem !important;
    }
    
    .pool-user-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .social-links {
        margin-left: auto;
    }
    
    .wallet-connect {
        margin-left: 0;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pool card mobile optimizations */
    .pool-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .pool-stat {
        min-height: 50px;
    }
    
    .pool-stat .stat-value {
        font-size: 0.95rem;
    }
    
    .apy-value {
        font-size: 0.95rem !important;
    }
    
    .pool-card {
        min-height: 280px;
    }
}

.dev-pool-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dev-pool-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.dev-pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.dev-pool-basic-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dev-pool-logo {
    border-radius: 50%;
}

.dev-pool-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.dev-pool-info p {
    margin: 0.25rem 0 0 0;
    color: #ccc;
    font-size: 0.9rem;
}

.dev-pool-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dev-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dev-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dev-stat label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-stat value {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.reward-balance {
    color: #28a745 !important;
}

.dev-pending-update {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff9800;
    font-size: 0.9rem;
}

.dev-pending-update small {
    margin-left: auto;
    opacity: 0.8;
}

.dev-pool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dev-pool-actions .btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.dev-manage-btn {
    background: #9e7dff;
    border-color: #9e7dff;
}

.dev-add-rewards-btn {
    background: #28a745;
    border-color: #28a745;
}

@media (max-width: 768px) {
    .dev-pool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dev-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dev-pool-actions {
        flex-direction: column;
    }
    
    .dev-pool-actions .btn {
        flex: none;
    }
}

.tvl-value .no-stakes {
    color: #666 !important;
    font-size: 0.85em !important;
    font-style: italic;
}

.tvl-value .funded-waiting {
    color: #ff9800 !important;
    font-size: 0.85em !important;
    font-weight: 600;
}

/* ==================
   STEAK Pool Section (as Card)
===================== */
.steak-pool-card {
    padding: 20px 0;
    background: linear-gradient(135deg, #1a1b33 0%, #2a2a45 100%);
    border: 3px solid #7649fe;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 0 15px rgba(118, 73, 254, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steak-pool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(118, 73, 254, 0.15) 0%,
        transparent 50%,
        rgba(45, 226, 230, 0.15) 100%
    );
    animation: gradientFlow 6s linear infinite;
    z-index: 0;
}

@keyframes gradientFlow {
    0% { transform: translateY(-50%) translateX(-50%); }
    100% { transform: translateY(0) translateX(0); }
}

.steak-pool-card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(118, 73, 254, 0.7);
}

.steak-pool-card .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.steak-pool-card .pool-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.steak-pool-card .pool-logo {
    width: 60px;
    height: 60px;
    border: 3px solid #9e7dff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.steak-pool-card:hover .pool-logo {
    transform: rotate(360deg);
}

.steak-pool-card .pool-info {
    text-align: left;
}

.steak-pool-card .pool-name {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #9e7dff, #2de2e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 6px rgba(158, 125, 255, 0.5); }
    100% { text-shadow: 0 0 12px rgba(45, 226, 230, 0.7); }
}

.steak-pool-card .pool-symbol {
    font-size: 0.9rem;
    color: #2de2e6;
    margin-bottom: 0.3rem;
}

.steak-pool-card .tax-info {
    font-size: 0.8rem;
    color: #ffbd59;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 189, 89, 0.2);
    border: 1px solid #ffbd59;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 6px rgba(255, 189, 89, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.steak-pool-card .pool-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
}

.steak-pool-card .pool-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem;
}

.steak-pool-card .stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #f0f0f9;
}

.steak-pool-card .stat-label {
    font-size: 0.7rem;
    color: #9e7dff;
}

.steak-pool-card .stat-value {
    font-size: 0.9rem;
}

.steak-pool-card .apy-value {
    background: linear-gradient(90deg, #1cd8a0, #03edf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steak-pool-card .pool-user-info {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem;
}

.steak-pool-card .user-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #f0f0f9;
}

.steak-pool-card .user-label {
    font-size: 0.7rem;
    color: #9e7dff;
}

.steak-pool-card .user-staked-value, .steak-pool-card .user-rewards-value {
    font-size: 0.9rem;
}

.steak-pool-card .pool-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.3rem;
    justify-content: center;
}

.steak-pool-card .action-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.steak-pool-card .action-group label {
    font-size: 0.8rem;
    color: #9e7dff;
}

.steak-pool-card .action-input {
    padding: 0.2rem;
    font-size: 0.8rem;
    background: #2a2a45;
    color: #f0f0f9;
    border: 1px solid #7649fe;
    border-radius: 4px;
    outline: none;
    width: 80px;
    transition: border-color 0.3s ease;
}

.steak-pool-card .action-input:focus {
    border-color: #2de2e6;
    box-shadow: 0 0 4px rgba(45, 226, 230, 0.3);
}

.steak-pool-card .action-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    background: linear-gradient(45deg, #7649fe, #2de2e6);
    color: white;
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.steak-pool-card .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.steak-pool-card .action-btn:hover::before {
    left: 0;
}

.steak-pool-card .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(45, 226, 230, 0.5);
}

.steak-pool-card .content-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #7649fe, transparent);
    animation: dividerGlow 2s ease-in-out infinite;
    position: relative;
}

@keyframes dividerGlow {
    0% { transform: scaleY(0.8); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.8); opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .steak-pool-card .container {
        padding: 0 10px;
    }

    .steak-pool-card .pool-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .steak-pool-card .pool-stats,
    .steak-pool-card .pool-user-info,
    .steak-pool-card .pool-actions {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }

    .steak-pool-card .content-divider {
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, transparent, #7649fe, transparent);
    }

    .steak-pool-card .action-group {
        justify-content: center;
    }
}