 :root {
            --primary-color: #FF8C00;
            --primary-dark: #E67E00;
            --secondary-color: #1A1A1A;
            --background-dark: #0D0D0D;
            --text-light: #F2F2F2;
            --text-gray: #BFBFBF;
            --card-bg: rgba(26, 26, 26, 0.8);
            --progress-bg: #333333;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Arial, sans-serif;
            background: linear-gradient(180deg, var(--background-dark) 0%, var(--secondary-color) 100%);
            color: var(--text-light);
            position: relative;
            overflow-x: hidden;
            min-height: 100vh;
        }

        .container {
            position: relative;
            z-index: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }

        .header {
            text-align: center;
            padding: 20px 0 10px;
        }

        .logo-orb {
            width: 80px;
            height: auto;
            margin-bottom: 10px;
            opacity: 0.9;
            background: rgba(255, 140, 0, 0.1);
            padding: 5px;
            border-radius: 50%;
            animation: pulse 3s ease-in-out infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        .header h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .banner {
            background-color: var(--primary-dark);
            color: var(--text-light);
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            font-weight: bold;
            letter-spacing: 1px;
            line-height: 1.4;
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin: 15px 0;
        }

        .feature-item {
            display: flex;
            align-items: center;
            font-size: 0.85rem;
            background: rgba(255, 140, 0, 0.15);
            padding: 8px 12px;
            border-radius: 20px;
        }

        .feature-item span {
            margin-right: 5px;
            color: var(--primary-color);
        }

        .search-container {
            display: flex;
            margin: 15px 0;
        }

        .search-box {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 8px 0 0 8px;
            font-size: 1rem;
            background: var(--card-bg);
            color: var(--text-light);
        }

        .search-button {
            background-color: var(--primary-color);
            color: var(--text-light);
            border: none;
            padding: 0 20px;
            font-size: 0.9rem;
            font-weight: bold;
            cursor: pointer;
            border-radius: 0 8px 8px 0;
            transition: background-color 0.3s;
        }

        .search-button:hover {
            background-color: var(--primary-dark);
        }

        .function-icons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin: 20px 0;
        }

        .function-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.8rem;
            width: 80px;
        }

        .function-icon span:first-child {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .ranking-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 18px;
            margin-top: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .ranking-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 140, 0, 0.3);
        }

        .ranking-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .view-more {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.85rem;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 10px 5px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 140, 0, 0.2);
            font-size: 0.85rem;
        }

        th {
            background-color: rgba(255, 140, 0, 0.1);
            font-weight: bold;
        }

        .score-high {
            color: var(--primary-color);
            font-weight: bold;
        }

        .stock-name {
            color: var(--primary-color);
            cursor: pointer;
            text-decoration: underline;
        }

        .stock-name:hover {
            color: #FFA347;
        }

        .disclaimer {
            margin-top: 30px;
            padding: 20px;
            font-size: 0.8rem;
            line-height: 1.6;
            color: var(--text-gray);
            background-color: var(--card-bg);
            border-radius: 12px;
        }

        .error-message {
            color: #FF6B6B;
            text-align: center;
            margin-top: 10px;
            font-size: 0.85rem;
            display: none;
        }

        .modal-mexico {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.85);
            overflow-y: auto;
        }

        .progress-container, .result-container {
            display: none;
            background: var(--card-bg);
            border-radius: 12px;
            padding: 25px 20px;
            max-width: 90%;
            margin: 80px auto;
            border: 1px solid var(--primary-dark);
        }

        .modal-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            color: var(--primary-color);
            font-size: 1.2rem;
            font-weight: bold;
        }

        .progress-item {
            margin-bottom: 18px;
        }

        .progress-title {
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

        .progress-bar {
            background: var(--progress-bg);
            border-radius: 8px;
            height: 16px;
            overflow: hidden;
        }

        .progress-fill {
            background: var(--primary-color);
            height: 100%;
            border-radius: 8px;
            width: 0%;
            transition: width 0.5s ease;
        }

        .result-content {
            font-size: 0.95rem;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .action-button {
            background: var(--primary-color);
            color: var(--text-light);
            padding: 18px 0;
            font-size: 1rem;
            font-weight: bold;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            width: 100%;
            margin: 0 auto;
            border: none;
            animation: breath 1.6s infinite;
            transition: background-color 0.3s;
        }

        .action-button:hover {
            background: var(--primary-dark);
        }

        @keyframes breath {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.9;
                transform: scale(1.02);
            }
        }

        @media screen and (max-width: 480px) {
            .container {
                padding: 10px;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .banner {
                padding: 10px;
                font-size: 0.8rem;
            }

            .feature-item {
                font-size: 0.8rem;
                padding: 6px 10px;
            }

            th, td {
                padding: 8px 3px;
                font-size: 0.8rem;
            }

            th:nth-child(1), td:nth-child(1) {
                width: 15%;
            }

            th:nth-child(2), td:nth-child(2) {
                width: 25%;
            }

            th:nth-child(3), td:nth-child(3) {
                width: 35%;
            }

            th:nth-child(4), td:nth-child(4) {
                width: 25%;
            }

            .progress-container, .result-container {
                padding: 20px 15px;
            }
        }