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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1em;
    color: #b0b0b0;
    font-weight: 300;
}

.search-section {
    margin-bottom: 25px;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

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

.stat-card {
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: #b0b0b0;
    font-weight: 600;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.stock-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

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

.stock-header {
    margin-bottom: 15px;
}

.stock-name {
    font-size: 1.25em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stock-code {
    display: inline-block;
    font-size: 0.8em;
    color: #667eea;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.15);
    padding: 5px 10px;
    border-radius: 20px;
}

.stock-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

.info-label {
    color: #8c8c8c;
    font-size: 0.72em;
    margin-bottom: 6px;
}

.info-value {
    color: #f1f1f1;
    font-size: 0.9em;
    font-weight: 600;
    word-break: break-word;
}

.stock-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    text-decoration: none;
    text-align: center;
    font-size: 0.8em;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

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

    .stocks-grid {
        grid-template-columns: 1fr;
    }

    .stock-info {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 5px;
}
