* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Easter egg blue and rainbow theme */
    --easter-blue: #89CFF0;
    --pastel-blue: #A7C7E7;
    --electric-blue: #00BFFF;
    --neon-blue: #1E90FF;
    --pink: #FF69B4;
    --purple: #9370DB;
    --yellow: #FFFF00;
    --green: #00FF7F;
    --orange: #FF8C00;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #333;
    --border-gray: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #0D1117 100%);
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="%2389CFF0" fill-opacity="0.05" width="50" height="50"/><rect fill="%2389CFF0" fill-opacity="0.05" x="50" y="50" width="50" height="50"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange)) 1;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(137, 207, 240, 0.3);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
    letter-spacing: 1px;
    animation: rainbow-shift 8s linear infinite;
}

@keyframes rainbow-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

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

.nav-link {
    background: none;
    border: none;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: rgba(137, 207, 240, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.3);
    border-color: var(--easter-blue);
}

.nav-link:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.nav-link.active {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    box-shadow: 0 0 20px rgba(137, 207, 240, 0.5);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 10px rgba(137, 207, 240, 0.5); }
    50% { box-shadow: 0 0 20px rgba(137, 207, 240, 0.8); }
    100% { box-shadow: 0 0 10px rgba(137, 207, 240, 0.5); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Page Styles */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(ellipse at center, rgba(137, 207, 240, 0.15) 0%, transparent 70%);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(137, 207, 240, 0.1), transparent 30%);
    animation: rotate-bg 20s linear infinite;
    z-index: -1;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(137, 207, 240, 0.5);
    letter-spacing: 2px;
    animation: rainbow-shift 8s linear infinite;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(137, 207, 240, 0.3);
    border-color: var(--easter-blue);
}

.feature-card:hover::after {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: rainbow-shift 8s linear infinite;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
}

/* Strategy Card Styles */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.strategy-card {
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.2);
    border-color: var(--electric-blue);
}

.strategy-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue), var(--purple));
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.strategy-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    animation: rotate-bg 8s linear infinite;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.strategy-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--easter-blue);
    text-shadow: 0 0 5px rgba(137, 207, 240, 0.5);
}

.strategy-details {
    font-size: 0.9rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.strategy-owner, .strategy-status {
    margin-bottom: 0.5rem;
}

.status-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-live {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.status-inactive {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

.owner-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: rgba(30, 144, 255, 0.2);
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
    margin-top: 0.5rem;
}

.owned-strategy {
    border-color: var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.owner-badge {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse-blue 2s infinite;
}

.copy-btn {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.4);
}

.copy-btn:hover::before {
    opacity: 1;
    animation: rainbow-shift 3s linear infinite;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.5;
    animation: rainbow-shift 8s linear infinite;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--easter-blue);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(137, 207, 240, 0.3);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background: var(--dark-gray);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--easter-blue);
    box-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
    background-color: rgba(137, 207, 240, 0.05);
}

/* Style for dropdown options */
.form-select option {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 10px;
}

.bounds-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.4);
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    animation: rainbow-shift 3s linear infinite;
}

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

/* Account Page Styles */
.wallet-connect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin: 2rem 0;
}

.wallet-connect-message {
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.wallet-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s linear infinite;
}

.connect-wallet-btn {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.invest-btn {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.invest-btn {
    background: linear-gradient(45deg, var(--green), var(--easter-blue));
    font-weight: bold;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 128, 0.3);
}

.connect-wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.4);
}

.connect-wallet-btn:hover::before {
    opacity: 1;
    animation: rainbow-shift 3s linear infinite;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 1rem 2rem;
}

.account-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--easter-blue);
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--easter-blue);
    transition: all 0.3s ease;
}

.disconnect-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.disconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.account-section {
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

/* Deposit Form Styles */
.deposit-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deposit-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.deposit-balance {
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 1rem;
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    font-size: 0.9rem;
    color: #ccc;
}

.balance-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--electric-blue);
}

.deposit-form {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(51, 51, 51, 0.8));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    padding: 1.5rem;
}

.deposit-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.deposit-actions button {
    flex: 1;
}

.deposit-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.status-message {
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
}

.status-pending {
    display: block;
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.status-success {
    display: block;
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.status-error {
    display: block;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.status-warning {
    display: block;
    background-color: rgba(255, 153, 0, 0.2);
    border: 1px solid #ff9900;
    color: #ff9900;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.balance-card {
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 128, 255, 0.1) 0%, transparent 70%);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.trades-table th,
.trades-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.trades-table th {
    background: var(--dark-gray);
    color: var(--electric-blue);
    font-weight: bold;
}

.profit, .positive-pnl {
    color: #4CAF50;
}

.loss, .negative-pnl {
    color: #F44336;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
    letter-spacing: 1px;
    animation: rainbow-shift 8s linear infinite;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--easter-blue);
    text-shadow: 0 0 5px rgba(137, 207, 240, 0.3);
    position: relative;
    display: inline-block;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    animation: rainbow-shift 3s linear infinite;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }

    .bounds-container {
        grid-template-columns: 1fr;
    }
}

/* Account stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--dark-gray);
    border-radius: 10px;
}

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

.available-balance {
    color: var(--orange);
}

.in-positions {
    color: var(--electric-blue);
}

.total-pnl {
    color: #4CAF50;
}

/* Loading and error states */
.loading, .error, .no-strategies {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    margin: 1rem 0;
}

.loading {
    color: var(--electric-blue);
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

.error {
    color: #F44336;
    font-size: 1.2rem;
}

.no-strategies {
    color: var(--orange);
    font-size: 1.2rem;
}

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

/* Additional UI elements */
.section-description {
    text-align: center;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.form-hint {
    display: block;
    color: var(--orange);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.action-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--pink), var(--easter-blue), var(--purple), var(--green), var(--yellow), var(--orange));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.4);
}

.action-btn:hover::before {
    opacity: 1;
    animation: rainbow-shift 3s linear infinite;
}

.strategy-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--easter-blue);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(137, 207, 240, 0.3);
}


/* FHE Data Styling */
.fhe-data-row {
    position: relative;
    border-left: 3px solid var(--electric-blue);
}

.fhe-data-row::before {
    content: 'FHE';
    position: absolute;
    top: -8px;
    left: -3px;
    background: linear-gradient(45deg, var(--easter-blue), var(--neon-blue));
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--light-gray), var(--dark-gray));
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.close-modal {
    color: var(--electric-blue);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--orange);
    transform: scale(1.2);
}

.modal-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--electric-blue);
}

#modal-usdc-balance {
    font-weight: bold;
    color: var(--electric-blue);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--light-gray);
    font-style: italic;
}

.visible-hint {
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
}

.investment-row {
    position: relative;
    border-left: 3px solid var(--green);
    transition: all 0.3s ease;
}

.investment-row:hover {
    background-color: rgba(0, 255, 128, 0.1);
}

.trade-row {
    position: relative;
    border-left: 3px solid var(--electric-blue);
    transition: all 0.3s ease;
}

.trade-row:hover {
    background-color: rgba(0, 128, 255, 0.1);
}

/* Add a small indicator for trade type */
.investment-row td:first-child::before,
.trade-row td:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.investment-row td:first-child::before {
    background-color: var(--green);
}

.trade-row td:first-child::before {
    background-color: var(--electric-blue);
}

.error-message {
    color: var(--orange);
    font-style: italic;
}

.pending {
    color: var(--electric-blue);
    font-weight: bold;
}

.loading {
    color: var(--electric-blue);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Order Status Modal Styles */
.modal-footer {
    margin-top: 20px;
    text-align: right;
}

#order-status-header {
    margin-bottom: 20px;
    text-align: center;
}

#order-status-body {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.status-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.status-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    color: #F44336;
}

.status-info {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196F3;
    color: #2196F3;
}

.order-details {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.order-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Order History Styles */
.order-history-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-history-container {
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background-color: rgba(0, 191, 255, 0.1);
    color: var(--electric-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.status-filled {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.status-canceled {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}
