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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

.home-btn {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(102, 126, 234, 0.05);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.nav-tab-btn {
    padding: 20px 60px;
    border: none;
    background: white;
    color: #667eea;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.nav-tab-btn:hover {
    background: #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Section Content */
.section-content {
    scroll-margin-top: 100px;
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.coming-soon-container {
    background: white;
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.coming-soon-text {
    font-size: 1.8em;
    color: #999;
    margin-bottom: 15px;
    font-weight: 300;
}

.coming-soon-container .description {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
}

/* Strategy Container */
.strategy-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.strategy-name {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Signal Display */
.signal-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.signal-status {
    font-size: 3em;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.signal-icon {
    font-size: 1.5em;
}

.signal-status.buy {
    color: #10b981;
    animation: pulse 2s infinite;
}

.signal-status.sell {
    color: #ef4444;
    animation: pulse 2s infinite;
}

.signal-status.hold {
    color: #6b7280;
}

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

/* RSI Metrics */
.rsi-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rsi-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.rsi-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.rsi-card.highlight h4,
.rsi-card.highlight .rsi-value {
    color: white;
}

.rsi-card h4 {
    font-size: 1em;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rsi-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
}

/* Price Info */
.price-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.price-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.price-card h4 {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
}

.update-time {
    font-size: 1.2em;
    color: #6b7280;
    font-weight: 600;
}

/* Strategy Rules */
.strategy-rules {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    border-left: 5px solid #667eea;
}

.strategy-rules h4 {
    font-size: 1.3em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 700;
}

.strategy-rules ul {
    list-style: none;
    padding: 0;
}

.strategy-rules li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.05em;
    color: #374151;
}

.strategy-rules li:last-child {
    border-bottom: none;
}

.strategy-rules strong {
    color: #667eea;
}

.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.metric-card h3 {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85em;
    color: #999;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: white;
    color: #667eea;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
}

footer p {
    margin: 5px 0;
    opacity: 0.9;
}

.data-source {
    font-size: 0.9em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .home-btn {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }

    .nav-tabs {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        position: relative;
        top: 0;
    }

    .nav-tab-btn {
        padding: 18px 40px;
        font-size: 1.2em;
        width: 100%;
        text-align: center;
    }

    .metrics-cards {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .chart-container {
        padding: 15px;
    }

    .coming-soon-container {
        padding: 60px 30px;
    }

    .coming-soon-container h2 {
        font-size: 2em;
    }

    .coming-soon-text {
        font-size: 1.5em;
    }
}

/* Multi-Symbol RSI Container */
.multi-rsi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rsi-symbol-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.symbol-title {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signal-display-compact {
    margin-bottom: 15px;
}

.signal-status-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.signal-status-compact.buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: pulse-buy 2s infinite;
}

.signal-status-compact.sell {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse-sell 2s infinite;
}

.signal-status-compact.hold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.signal-icon-compact {
    font-size: 1.5em;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-label {
    font-size: 0.9em;
    color: #666;
    margin-right: 8px;
}

.price-value-compact {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

.rsi-metrics-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rsi-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.rsi-item.highlight {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border: 2px solid #667eea;
    font-weight: 700;
}

.rsi-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 600;
}

.rsi-value-compact {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

@keyframes pulse-buy {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        opacity: 0.85;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-sell {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        opacity: 0.85;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .multi-rsi-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .multi-rsi-container {
        grid-template-columns: 1fr;
    }
    
    .symbol-title {
        font-size: 1.8em;
    }
}

/* Notification Toast */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-toast {
    position: relative;
    min-width: 300px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-toast:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.notification-toast.buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-left: 5px solid #047857;
}

.notification-toast.sell {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-left: 5px solid #b91c1c;
}

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

.notification-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.5em;
}

.notification-title strong {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-body {
    font-size: 0.9em;
}

.notification-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.notification-data > div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.notification-symbol {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-details {
    font-size: 0.9em;
    opacity: 0.95;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

.notification-toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
    
    .notification-toast {
        min-width: auto;
        width: 100%;
    }
}
