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

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;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: 0 0 30px 30px;
}

.header-left {
    flex: 1;
}

.header-left h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.subtitle {
    font-size: 0.88em;
    opacity: 0.95;
    font-family: 'Open Sans', sans-serif;
}

.header-right {
    flex-shrink: 0;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    min-width: 320px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.search-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

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

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 100px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.autocomplete-item:hover {
    background: #f8f9fa;
}

.stock-symbol {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95em;
}

.stock-name {
    color: #6c757d;
    font-size: 0.85em;
}

.scan-section {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 30px;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-results-section {
    padding: 40px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.scan-button {
    background: linear-gradient(145deg, #7c8ff0 0%, #667eea 50%, #5a4db5 100%);
    color: white;
    border: none;
    padding: 24px 60px;
    font-size: 1.4em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 15px rgba(102, 126, 234, 0.4),
        0 15px 35px rgba(102, 126, 234, 0.3),
        inset 0 -8px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 1px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transform: translateY(0);
}

.scan-button:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 25px rgba(102, 126, 234, 0.5),
        0 20px 45px rgba(102, 126, 234, 0.35),
        inset 0 -8px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 1px rgba(255, 255, 255, 0.3);
}

.scan-button:active {
    transform: translateY(2px);
    box-shadow: 
        0 4px 10px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.25),
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 1px rgba(255, 255, 255, 0.2);
}

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

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.scan-status {
    margin-top: 0;
    font-size: 1em;
    color: #6c757d;
    min-height: 0;
}

.results-section {
    padding: 40px 30px;
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

.results-count {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-weight: 500;
}

.stocks-list {
    display: grid;
    gap: 20px;
}

.stock-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.stock-info h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.stock-name {
    color: #6c757d;
    font-size: 0.95em;
}

.stock-price {
    text-align: right;
}

.price-label {
    font-size: 0.85em;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #28a745;
}

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

.metric {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.metric-label {
    font-size: 0.85em;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.momentum-positive {
    color: #28a745;
}

.stock-levels {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
}

.levels-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.level {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.level-label {
    font-size: 0.8em;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.level-value {
    font-size: 1.1em;
    font-weight: 700;
}

.level-entry .level-value {
    color: #667eea;
}

.level-stop .level-value {
    color: #dc3545;
}

.level-target .level-value {
    color: #28a745;
}

.glossary {
    background: #f8f9fa;
    padding: 40px 30px;
    border-top: 1px solid #e9ecef;
}

.glossary h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.term {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.term h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.term p {
    color: #6c757d;
    line-height: 1.6;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
}

.disclaimer-section {
    background: #fff3cd;
    padding: 40px 30px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.disclaimer-section h2 {
    color: #856404;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.disclaimer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disclaimer-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disclaimer-box.warning {
    background: #fff3cd;
    border-left: 4px solid #dc3545;
}

.disclaimer-box h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.disclaimer-box.warning h3 {
    color: #721c24;
}

.disclaimer-box p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 10px;
}

.disclaimer-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.disclaimer-box li {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 8px;
}

.disclaimer-box strong {
    color: #333;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3em;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.cookie-text p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95em;
}

.cookie-accept-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .header-left {
        text-align: center;
    }

    .header-left h1 {
        font-size: 1.8em;
        justify-content: center;
    }

    .header-logo {
        height: 35px;
    }

    .search-container {
        flex-direction: column;
        gap: 8px;
    }

    .search-input {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.85em;
    }

    .search-button {
        width: 100%;
        padding: 10px 24px;
        font-size: 0.85em;
    }

    .autocomplete-list {
        left: 0;
        right: 0;
        width: 100%;
    }

    .stock-header {
        flex-direction: column;
        gap: 15px;
    }

    .stock-price {
        text-align: left;
    }

    .scan-button {
        padding: 22px 50px;
        font-size: 1.3em;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        font-size: 2.5em;
    }

    .disclaimer-box {
        padding: 20px;
    }

    .disclaimer-section h2 {
        font-size: 1.5em;
    }
}
