.auth-form {
    max-width: 400px;
    min-height: 500px;
    margin: 2rem auto;
    padding: 3rem;
    background: #f5f5f5;
    border-radius: 10px;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff6b00, #e74c3c) 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.auth-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.auth-form button {
    width: 100%;
    padding: 1.2rem;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 1rem;
}

.auth-form button:hover {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.auth-form button:hover {
    background: var(--secondary-color);
}

body {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    min-height: 100vh;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff6b00, #e74c3c) 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card.dark-grey {
    background: #333333;
}

.stat-card.dark-grey h3 {
    color: #ffffff;
}

.stat-card.dark-grey p {
    color: #e0e0e0;
}

.stat-card.dark-grey .value-text,
.stat-card.dark-grey .text-white {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 0.5rem;
}

.stat-card p {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-align: center;
}

.stat-card p span.number {
    color: #ff6b00;
}

.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transfer-form input {
    padding: 0.8rem;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    font-size: 1rem;
}

.transfer-form button {
    background: linear-gradient(45deg, #ff6b00, #e74c3c);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.transfer-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.error {
    color: white; /* Changed to white for better contrast */
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fde8e7;
    border-radius: 4px;
}

.dashboard-actions {
    margin-top: 2rem;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.button:hover {
    background: var(--secondary-color);
}

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

.transaction-item {
    border-bottom: 1px solid #444;
    padding: 10px 0;
    margin: 5px 0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-date {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}


:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --ticker-color: #e67e22;
}

.news-ticker, #newsContent {
    width: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    overflow: hidden;
    position: relative;
    padding: 12px 0;
}

.static-news {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white; /* Changed to white for better contrast */
    text-align: center;
    margin-top: 1rem;
    padding: 15px 20px;
    font-family: 'Georgia', serif;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
}

.static-news .value-display {
    color: white;
    font-weight: bold;
}

.static-news .change-display {
    color: white;
    font-weight: bold;
}

#newsContent .ticker-value {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.ticker-content {
    white-space: nowrap;
    font-family: 'Georgia', serif;
    color: white; /* Changed to white for better contrast */
    font-size: 18px;
    animation: ticker 45s linear infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translateX(0); opacity: 0.9; }
    2% { opacity: 1; }
    98% { opacity: 1; }
    100% { transform: translateX(-200%); opacity: 0.9; }
}

.ticker-content {
    color: #e67e22;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.ticker-content .ticker-value {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Farm News Section */
.news-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.news-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.news-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.news-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.livestream-link {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.livestream-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    border: 8px solid;
    border-image: linear-gradient(45deg, #ff6b00, #000000, #00ff2a) 1;
    min-height: 100vh;
    margin: 0;
}

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

header {
    width: 100%;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
}

.menu-container {
    position: relative;
}

.menu-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu-button:hover {
    background: var(--secondary-color);
}

.menu-items {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #333333;
    border: 3px solid;
    border-image: linear-gradient(45deg, #000000, #ff6b00) 1;
    border-radius: 8px;
    min-width: 300px;
    z-index: 999999;
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-items.active {
    display: flex;
    flex-direction: column;
}

.menu-items a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.menu-items a:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu-items a:active {
    background-color: rgba(255,255,255,0.2);
}

.menu-items a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-items a:hover::before {
    left: 100%;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b00;
    transition: width 0.3s ease;
}

.menu-items a:hover::after {
    width: 100%;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

header h1, .animated-header {
    background: #0066ff;
    color: white;
    font-size: 2.5rem;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.animated-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background-color: #ff6b00;
    animation: borderRotate 2s linear infinite;
}

header h1::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background-color: #ff6b00;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
        left: -100%;
        bottom: 0;
    }
    25% {
        transform: rotate(0deg);
        left: 100%;
        bottom: 0;
    }
    26% {
        transform: rotate(-90deg);
        left: 100%;
        bottom: 0;
    }
    50% {
        transform: rotate(-90deg);
        left: 100%;
        bottom: -100%;
    }
    51% {
        transform: rotate(-180deg);
        left: 100%;
        bottom: -100%;
    }
    75% {
        transform: rotate(-180deg);
        left: -100%;
        bottom: -100%;
    }
    76% {
        transform: rotate(-270deg);
        left: -100%;
        bottom: -100%;
    }
    100% {
        transform: rotate(-270deg);
        left: -100%;
        bottom: 0;
    }
}

.price-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.chart-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.chart-zoom-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #2ecc71;
    background: white;
    color: #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chart-zoom-btn:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.chart-zoom-btn.active {
    background: #2ecc71;
    color: white;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

#priceChart {
    max-width: 100%;
    height: 400px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

.price-value {
    font-size: 2rem;
    color: #ff6b00;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.price-card:hover .price-value {
    color: #ff8c00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 8rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: var(--card-background);
    padding: 1.05rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 1.5rem;
    color: white; /* Changed to white for better contrast */
    margin-top: 0.5rem;
}

.market-info {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.action-card {
    text-align: center;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.price-button {
    display: block;
    text-decoration: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.price-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card, .price-card, .action-card {
    transition: all 0.3s ease;
}

.stat-card:hover, .price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-value, .price-value {
    transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
    color: #2ecc71;
}

@keyframes spiralFadeIn {
    0% { 
        opacity: 0; 
        transform: rotate(180deg) scale(0.3);
    }
    100% { 
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.2); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.4); }
    100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.2); }
}

.container > * {
    animation: spiralFadeIn 0.8s ease-out forwards;
}

.price-card, .stat-card {
    animation: pulseGlow 2s infinite;
}

.stats-grid > *:nth-child(1) { animation-delay: 0.1s; }
.stats-grid > *:nth-child(2) { animation-delay: 0.2s; }
.stats-grid > *:nth-child(3) { animation-delay: 0.3s; }

.price-button.buy {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.price-button.sell {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.price-button {
    color: white; /* Changed to white for better contrast */
    text-align: center;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.price-button .price-value {
    color: white; /* Changed to white for better contrast */
    text-align: center;
    margin: 0;
    pointer-events: none;
}

.liquidity-info {
    text-align: center;
}

.multi-value {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #000000;
}

h4 {
    color: white; /* Changed to white for better contrast */
    text-align: center;
    margin: 1rem 0;
    font-weight: 500;
}
h5 {
  font-size: 1.8rem;
  font-weight: 900;
  color: white; /* Changed to white for better contrast */
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  padding: 1rem;
  border-bottom: 3px solid #2ecc71;
}


.change-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.change-item {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    background: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    color: #ffffff;
}

.change-value {
    font-size: 1rem;
    margin-top: 0.3rem;
    opacity: 0.9;
}

.change-positive { color: #00ff2a; }
.change-negative { color: #ff0000; }

h2, h3 {
    color: #000000;
    font-weight: 500;
}

.text-white {
    color: #ffffff;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

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

    .multi-value {
        flex-direction: column;
        gap: 0.5rem;
    }
}