        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800;900&display=swap');

        :root {
            --bg-dark: #05070a;
            --bg-card: rgba(20, 24, 33, 0.95);
            --primary-red: #ff0000;
            --dark-red: #800000;
            --gold: #d4af37;
            --gold-light: #f1d592;
            --text-main: #e0e0e0;
            --text-dim: #a0a0a0;
            --glass: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-dark);
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(128, 0, 0, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            padding: 20px 15px;
            overflow-x: hidden;
        }

        .app-container {
            width: 100%;
            max-width: 900px;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border-radius: 40px;
            border: 1px solid var(--glass-border);
            padding: 35px 25px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            position: relative;
            overflow: hidden;
        }
        
        .seo-content {
            background: rgba(255, 255, 255, 0.02);
            padding: 25px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 30px;
        }

        .seo-content p {
            font-size: 0.9rem;
            line-height: 1.6;
            text-align: center;
            color: var(--text-dim);
        }

        .nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .nav-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-action-btn {
            background: linear-gradient(to right, #600000, #ff0000);
            color: #fff;
            border: none;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
            transition: 0.3s;
        }

        .nav-action-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
        }

        .back-btn {
            background: var(--glass);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            padding: 10px 18px;
            border-radius: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s;
            text-decoration: none;
        }

        .back-btn:hover {
            background: rgba(255, 0, 0, 0.15);
            border-color: var(--primary-red);
            transform: translateY(-2px);
        }

        .logo-section {
            text-align: center;
            margin-bottom: 30px;
        }

        /* Judul Animasi Tertata */
        .judul-container {
            display: flex;
            justify-content: center;
            overflow: hidden;
        }

        .judul-shine {
            background: linear-gradient(
                90deg, 
                #4a0000 0%, 
                #8b0000 20%, 
                #ff0000 40%, 
                #e0e0e0 50%, 
                #ff0000 60%, 
                #8b0000 80%, 
                #4a0000 100%
            );
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 900;
            display: inline-block;
            animation: shine 3s linear infinite;
            text-transform: uppercase;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
            letter-spacing: 1px;
            font-size: 1.8rem;
            white-space: nowrap;
            width: 0;
            overflow: hidden;
            animation: typing 3.5s steps(30, end) infinite, shine 3s linear infinite;
            border-right: 1px solid var(--primary-red);
        }

        @keyframes typing {
            0% { width: 0; }
            50% { width: 100%; }
            90% { width: 100%; }
            100% { width: 0; }
        }

        @keyframes shine {
            to { background-position: 200% center; }
        }

        .logo-box {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            box-shadow: 0 15px 35px rgba(255, 0, 0, 0.3), inset 0 4px 10px rgba(255,255,255,0.4);
            border: 4px solid #1a1d24;
            position: relative;
            overflow: hidden;
        }

        .logo-box .hk-text {
            font-size: 44px;
            font-weight: 900;
            color: #fff;
            font-style: italic;
            z-index: 2;
        }

        .subtitle {
            font-size: 0.8rem;
            color: var(--text-dim);
            letter-spacing: 2px;
            margin-top: 5px;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .label {
            display: block;
            font-size: 0.75rem;
            color: var(--gold);
            font-weight: 800;
            text-transform: uppercase;
            margin-bottom: 10px;
            padding-left: 5px;
        }

        .custom-select, .custom-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--glass-border);
            color: #fff;
            padding: 16px;
            border-radius: 18px;
            font-size: 1rem;
            transition: all 0.3s;
            outline: none;
        }

        .custom-select:focus, .custom-input:focus {
            border-color: var(--primary-red);
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
        }

        .mode-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 25px;
        }

        .mode-card {
            background: var(--glass);
            border: 1px solid var(--glass-border);
            padding: 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: var(--text-dim);
            font-weight: 600;
            font-size: 0.85rem;
        }

        .mode-card.active {
            background: rgba(255, 0, 0, 0.1);
            border-color: var(--primary-red);
            color: #fff;
            transform: scale(1.02);
            box-shadow: 0 10px 20px rgba(255, 0, 0, 0.1);
        }

        .display-screen {
            background: linear-gradient(145deg, rgba(0,0,0,0.6), rgba(15,18,24,0.9));
            border-radius: 30px;
            padding: 25px 20px;
            margin-bottom: 30px;
            border: 1px solid rgba(212, 175, 55, 0.15);
            min-height: 250px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .display-screen.analyzing::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--primary-red);
            box-shadow: 0 0 20px var(--primary-red);
            animation: scanLine 2s linear infinite;
            z-index: 10;
        }

        @keyframes scanLine {
            0% { top: 0; }
            50% { top: 100%; }
            100% { top: 0; }
        }

        .result-view {
            width: 100%;
            display: none;
            animation: fadeIn 0.6s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .res-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            color: var(--text-dim);
            letter-spacing: 2px;
            margin-bottom: 8px;
            display: block;
        }

        .res-jitu {
            font-size: 3rem;
            font-weight: 900;
            color: var(--gold);
            letter-spacing: 8px;
            text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
            margin: 10px 0;
        }

        .btn-main {
            width: 100%;
            background: linear-gradient(to right, #600000, #ff0000, #600000);
            background-size: 200% auto;
            color: #fff;
            border: none;
            padding: 18px;
            border-radius: 20px;
            font-size: 1rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: 0.3s;
            position: relative;
            overflow: hidden;
        }

        .btn-main:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
        }

        .btn-main:active { transform: scale(0.96); }
        
        .btn-main::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -60%;
            width: 40px;
            height: 200%;
            background: rgba(255, 255, 255, 0.25);
            transform: rotate(30deg);
            animation: btnShine 4s infinite;
        }

        @keyframes btnShine {
            0% { left: -60%; }
            15% { left: 120%; }
            100% { left: 120%; }
        }
        
        .info-panel {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 15px;
            padding: 15px;
            margin-top: 10px;
            text-align: left;
            border-left: 3px solid var(--primary-red);
            margin-bottom: 25px;
        }
        .info-title {
            color: var(--gold);
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .info-text {
            font-size: 0.75rem;
            color: var(--text-dim);
            line-height: 1.5;
        }
        .info-text b { color: #fff; }

        .history-item {
            background: var(--glass);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 18px;
            margin-bottom: 15px;
            list-style: none;
        }

        .hist-val {
            color: var(--gold);
            font-weight: 900;
            font-size: 1.2rem;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top-color: var(--primary-red);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        #empty-hint {
            color: var(--text-dim);
            opacity: 0.5;
            font-style: italic;
        }

        .line-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 5px;
            margin: 5px 0;
        }
        .line-num {
            font-size: 0.9rem;
            color: #fff;
            font-weight: 500;
            background: rgba(255,255,255,0.05);
            padding: 4px;
            border-radius: 6px;
        }
        
        @media (max-width: 480px) {
            .subtitle {font-size: 0.5rem;}
            .app-container {width: 100%;}
            .judul-shine { font-size: 22px; }
            .result-choices { font-size: 1rem; }
            .result-jitu { font-size: 1.4rem; }
            .btn-main {
                font-size: 14px;
                padding: 14px 10px;
            .nav-right { gap: 5px; }
            .nav-action-btn { font-size: 0.6rem; padding: 5px 8px; }
            }
        }