
        /* CSS VARIABLES */
        :root { 
            --ios-blue: #007AFF; 
            --ios-green: #34C759; 
            --ios-red: #FF3B30; 
            --text-primary: #000000; 
            --text-light: #ffffff; 
            --text-muted: rgba(255, 255, 255, 0.6); 
            --glass-bg-card: rgba(30, 30, 30, 0.6); 
            --glass-header: rgba(30, 30, 30, 0.95);
            --glass-border: rgba(255, 255, 255, 0.15); 
            --sidebar-bg: rgba(10, 10, 10, 0.95); 
            --msg-received: rgba(255, 255, 255, 0.1); 
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
        
        body { 
            font-family: 'Plus Jakarta Sans', sans-serif; 
            background: url('https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2029&auto=format&fit=crop') no-repeat center center fixed; 
            background-size: cover; 
            height: 100dvh; width: 100%; overflow: hidden;
            display: flex; justify-content: center; align-items: center; 
            color: var(--text-light); 
        }

        /* CONTAINER UTAMA */
        .glass-container { 
            width: 100%; max-width: 480px; height: 100%; 
            background: var(--glass-bg-card); 
            backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); 
            border-left: 1px solid var(--glass-border); 
            border-right: 1px solid var(--glass-border); 
            display: flex; flex-direction: column;
            position: relative; 
        }

        @media (max-width: 480px) {
            .glass-container {
                border-left: none;
                border-right: none;
                width: 100%;
            }
        }
        
        /* HEADER */
        .chat-header { 
            width: 100%;
            padding: 15px 20px; 
            display: flex; justify-content: space-between; align-items: center; 
            background: var(--glass-header); 
            border-bottom: 1px solid var(--glass-border); 
            z-index: 20; 
            flex-shrink: 0;
        }
        .header-content { display: flex; align-items: center; gap: 12px; }
        .header-actions { display: flex; gap: 15px; align-items: center; }
        .avatar { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.3); }
        .avatar img { width: 100%; height: 100%; object-fit: cover; }
        .title-wrapper h1 { font-size: 16px; font-weight: 700; color: white; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
        .subtitle { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        
        @media (max-width: 360px) {
            .title-wrapper h1 {
                font-size: 14px;
            }
            .subtitle {
                font-size: 10px;
            }
            .header-content {
                gap: 8px;
            }
            .avatar {
                width: 35px;
                height: 35px;
            }
        }
        
        .icon-btn { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.2s;}
        
        @media (max-width: 360px) {
            .icon-btn {
                font-size: 20px;
            }
        }
        
        /* Visitor Counter Badge */
        .visitor-badge {
            font-size: 9px;
            background: rgba(0, 122, 255, 0.2);
            color: #60a5fa;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: 600;
            letter-spacing: 0.3px;
            white-space: nowrap;
            display: inline-block;
        }
        
        @media (max-width: 360px) {
            .visitor-badge {
                font-size: 8px;
                padding: 2px 6px;
            }
        }

        /* RUNNING TEXT */
        .marquee-container {
            width: 100%;
            background: rgba(0, 122, 255, 0.15); 
            border-bottom: 1px solid var(--glass-border);
            overflow: hidden;
            white-space: nowrap;
            padding: 12px 0;
            flex-shrink: 0;
            z-index: 19;
            backdrop-filter: blur(10px);
        }
        
        .marquee-text {
            display: inline-block;
            padding-left: 100%;
            animation: marquee 25s linear infinite;
            font-family: 'Amiri', serif;
            color: #ffffff;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }

        @keyframes marquee {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-100%, 0); }
        }

        /* PAGE SYSTEM */
        .page-content {
            display: none;
            flex: 1;
            overflow: hidden;
        }
        
        .page-content.active {
            display: flex;
            flex-direction: column;
        }

        /* AREA KONTEN */
        .content-area { 
            flex: 1;
            overflow-y: auto;
            padding: 20px; 
            display: flex; flex-direction: column; 
            scroll-behavior: smooth; 
            position: relative; 
            padding-bottom: 150px;
        }

        /* BOTTOM NAVIGATION - FLOATING & RESPONSIVE */
        .bottom-nav {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: rgba(30, 30, 30, 0.95);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid var(--glass-border);
            border-radius: 25px;
            padding: 8px 20px;
            z-index: 30;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            max-width: 90%;
            width: auto;
            gap: 10px;
        }
        
        @media (max-width: 480px) {
            .bottom-nav {
                bottom: 15px;
                padding: 6px 15px;
                max-width: 85%;
            }
        }
        
        @media (max-width: 360px) {
            .bottom-nav {
                bottom: 10px;
                padding: 5px 10px;
                gap: 5px;
            }
        }
        
        .nav-btn {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 20px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 11px;
            font-weight: 600;
        }
        
        .nav-btn i {
            font-size: 24px;
        }
        
        .nav-btn.active {
            color: var(--ios-blue);
        }
        
        .nav-btn:active {
            transform: scale(0.95);
        }
        
        @media (max-width: 480px) {
            .nav-btn {
                padding: 6px 15px;
                font-size: 10px;
                gap: 3px;
            }
            
            .nav-btn i {
                font-size: 32px;
            }
        }
        
        @media (max-width: 360px) {
            .nav-btn {
                padding: 5px 10px;
                font-size: 9px;
            }
            
            .nav-btn i {
                font-size: 30px;
            }
        }

        /* HOME PAGE STYLES */
        .center-view { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            text-align: center; 
            animation: fadeIn 0.5s ease; 
        }
        
        .start-logo { 
            width: 120px; 
            height: 120px; 
            object-fit: cover; 
            border-radius: 28px; 
            margin-bottom: 25px; 
            box-shadow: 0 10px 40px rgba(0, 122, 255, 0.25); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            animation: floatLogo 4s ease-in-out infinite; 
            cursor: pointer; 
            transition: transform 0.1s; 
        }
        .start-logo:active { transform: scale(0.9); }
        
        @keyframes floatLogo { 
            0%, 100% { transform: translateY(0); } 
            50% { transform: translateY(-10px); } 
        }
        
        .hero-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
        .hero-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 80%; line-height: 1.5; margin-bottom: 30px; }
        
        /* Database Selector */
        .database-selector {
            width: 100%;
            max-width: 350px;
            margin-bottom: 20px;
        }
        
        .db-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .db-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid var(--glass-border);
            color: white;
            padding: 15px;
            border-radius: 15px;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 15px;
            text-align: left;
        }
        
        .db-btn i {
            font-size: 28px;
            color: var(--ios-blue);
        }
        
        .db-btn span {
            font-weight: 600;
            font-size: 1rem;
        }
        
        .db-btn small {
            display: block;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        .db-btn.active {
            background: rgba(0, 122, 255, 0.2);
            border-color: var(--ios-blue);
        }
        
        .db-btn:active {
            transform: scale(0.98);
        }
        
        .btn-primary { 
            background: var(--ios-blue); 
            color: white; 
            border: none; 
            padding: 14px 24px; 
            border-radius: 20px; 
            font-weight: 600; 
            font-size: 1rem; 
            width: 80%; 
            cursor: pointer; 
            box-shadow: 0 4px 15px rgba(0,122,255,0.3); 
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-primary:active { transform: scale(0.95); }
        .btn-primary:disabled {
            background: rgba(255, 255, 255, 0.1);
            cursor: not-allowed;
            opacity: 0.5;
        }
        
        /* Quiz Styles */
        .back-to-home-wrapper {
            width: 100%;
            margin-bottom: 15px;
        }
        
        .btn-back-home {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--glass-border);
            color: white;
            padding: 10px 15px;
            border-radius: 12px;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.2s;
            font-weight: 600;
        }
        
        .btn-back-home:hover {
            background: rgba(255, 255, 255, 0.12);
        }
        
        .btn-back-home:active {
            transform: scale(0.98);
        }
        
        .quiz-card { 
            background: rgba(255,255,255,0.05); 
            border: 1px solid var(--glass-border); 
            border-radius: 20px; 
            padding: 20px; 
            text-align: center; 
            margin-bottom: 20px; 
            position: relative; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
            flex-shrink: 0; 
        }
        .badge-step { 
            position: absolute; 
            top: 10px; 
            right: 10px; 
            background: rgba(0,122,255,0.2); 
            color: #60a5fa; 
            font-size: 10px; 
            padding: 4px 8px; 
            border-radius: 10px; 
            font-weight: 700; 
        }
        .arabic-text { 
            font-family: 'Amiri', serif; 
            font-size: 2.5rem; 
            margin: 10px 0; 
            line-height: 1.4; 
        }
        .context-text { 
            font-family: 'Amiri', serif; 
            font-size: 1rem; 
            color: var(--text-muted); 
        }
        .chat-bubble { 
            background: var(--msg-received); 
            border-radius: 18px; 
            padding: 15px; 
            margin-bottom: 20px; 
            position: relative; 
            border: 1px solid var(--glass-border); 
        }
        .chat-bubble::before { 
            content: "Ammo"; 
            position: absolute; 
            top: -20px; 
            left: 5px; 
            font-size: 10px; 
            color: var(--text-muted); 
            font-weight: bold; 
        }
        .options-grid { 
            display: flex; 
            flex-direction: column; 
            gap: 10px; 
            padding-bottom: 20px; 
        }
        .btn-option { 
            background: rgba(255,255,255,0.08); 
            border: 1px solid var(--glass-border); 
            padding: 15px; 
            border-radius: 15px; 
            color: white; 
            text-align: left; 
            font-size: 1rem; 
            cursor: pointer; 
            transition: 0.2s; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        .btn-option:hover { background: rgba(255,255,255,0.15); }
        .btn-option:active { transform: scale(0.98); }

        /* SYARAH PAGE STYLES */
        .syarah-container,
        .info-container {
            width: 100%;
            max-width: 100%;
        }
        
        .page-title {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 8px;
            text-align: center;
        }
        
        .page-subtitle {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 25px;
        }
        
        .syarah-input-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .input-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        
        .arabic-textarea {
            width: 100%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 15px;
            color: white;
            font-family: 'Amiri', serif;
            font-size: 1.5rem;
            resize: none;
            direction: rtl;
            text-align: right;
            line-height: 1.8;
        }
        
        .arabic-textarea::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }
        
        .char-counter {
            text-align: right;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 8px;
            margin-bottom: 15px;
        }
        
        .syarah-result {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--glass-border);
        }
        
        .result-header h3 {
            font-size: 1.2rem;
            font-weight: 700;
        }
        
        .btn-copy {
            background: var(--ios-green);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }
        
        .btn-copy:active {
            transform: scale(0.95);
        }
        
        .syarah-content {
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.9);
        }
        
        .lafadz-header {
            background: rgba(0, 122, 255, 0.15);
            padding: 12px 15px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1.1rem;
            margin: 15px 0 10px 0;
            border-left: 4px solid var(--ios-blue);
        }
        
        .analysis-point {
            padding: 8px 12px;
            margin: 5px 0;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            font-size: 0.9rem;
        }
        
        .analysis-point strong {
            color: var(--ios-blue);
        }

        /* INFO PAGE / COMMENTS STYLES */
        .section-title {
            font-size: 1rem;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            padding-left: 5px;
        }
        
        .setting-row { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            background: rgba(255,255,255,0.05); 
            padding: 15px; 
            border-radius: 15px; 
            margin-bottom: 25px; 
        }
        
        .toggle-switch { 
            position: relative; 
            width: 50px; 
            height: 30px; 
        }
        .toggle-switch input { 
            opacity: 0; 
            width: 0; 
            height: 0; 
        }
        .slider { 
            position: absolute; 
            cursor: pointer; 
            top: 0; 
            left: 0; 
            right: 0; 
            bottom: 0; 
            background-color: rgba(255,255,255,0.2); 
            transition: .4s; 
            border-radius: 34px; 
        }
        .slider:before { 
            position: absolute; 
            content: ""; 
            height: 26px; 
            width: 26px; 
            left: 2px; 
            bottom: 2px; 
            background-color: white; 
            transition: .4s; 
            border-radius: 50%; 
        }
        input:checked + .slider { 
            background-color: var(--ios-green); 
        }
        input:checked + .slider:before { 
            transform: translateX(20px); 
        }
        
        .comment-form {
            margin-bottom: 30px;
        }
        
        .input-box { 
            background: rgba(0,0,0,0.3); 
            padding: 15px; 
            border-radius: 20px; 
            display: flex; 
            flex-direction: column; 
            gap: 10px; 
        }
        
        .glass-field { 
            background: rgba(255,255,255,0.1); 
            border: none; 
            padding: 12px; 
            border-radius: 12px; 
            color: white; 
            width: 100%; 
            font-family: inherit; 
        }
        
        .glass-field::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }
        
        .file-upload-btn {
            background: rgba(0, 122, 255, 0.2);
            border: 1px solid var(--ios-blue);
            color: white;
            padding: 10px 15px;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: 0.2s;
        }
        
        .file-upload-btn:active {
            transform: scale(0.98);
        }
        
        .preview-img {
            width: 100%;
            max-height: 200px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
        }
        
        .btn-remove {
            background: var(--ios-red);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-weight: bold;
            margin-top: 10px;
            transition: 0.2s;
        }
        
        .btn-remove:active {
            transform: scale(0.9);
        }
        
        .comments-section {
            margin-top: 30px;
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .comment-item {
            background: rgba(255, 255, 255, 0.08);
            padding: 15px;
            border-radius: 16px;
            border: 1px solid var(--glass-border);
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .comment-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--ios-blue);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .verified-badge {
            color: var(--ios-green);
            font-size: 18px;
            display: inline-flex;
            align-items: center;
        }
        
        .verified-badge.small {
            font-size: 14px;
        }
        
        .comment-date {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.4);
            font-style: italic;
        }
        
        .comment-msg {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.5;
            margin-bottom: 10px;
            word-wrap: break-word;
        }
        
        .comment-image {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            border-radius: 12px;
            margin: 10px 0;
            border: 1px solid var(--glass-border);
        }
        
        .btn-reply {
            background: transparent;
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.6);
            padding: 6px 12px;
            border-radius: 10px;
            font-size: 0.8rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: 0.2s;
        }
        
        .btn-reply:hover {
            background: rgba(255, 255, 255, 0.05);
            color: white;
        }
        
        .btn-reply:active {
            transform: scale(0.95);
        }
        
        .replies-container {
            margin-top: 15px;
            padding-left: 20px;
            border-left: 2px solid var(--glass-border);
        }
        
        .reply-item {
            background: rgba(255, 255, 255, 0.03);
            padding: 10px 12px;
            border-radius: 12px;
            margin-bottom: 10px;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        
        .reply-name {
            font-weight: 600;
            font-size: 0.85rem;
            color: rgba(0, 122, 255, 0.8);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .reply-date {
            font-size: 0.65rem;
            color: rgba(255, 255, 255, 0.3);
        }
        
        .reply-msg {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
        }
        
        /* Reply Modal */
        .reply-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .reply-modal.active {
            opacity: 1;
        }
        
        .reply-modal-content {
            background: var(--glass-bg-card);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 20px;
            width: 100%;
            max-width: 400px;
            transform: scale(0.9);
            transition: transform 0.3s;
        }
        
        .reply-modal.active .reply-modal-content {
            transform: scale(1);
        }
        
        .reply-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--glass-border);
        }
        
        .reply-modal-header h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: white;
        }
        
        .btn-close-modal {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }
        
        .btn-close-modal:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .btn-close-modal:active {
            transform: scale(0.9);
        }
        
        .reply-form-body {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        /* MODAL STYLES */
        .modal-overlay { 
            position: absolute; 
            inset: 0; 
            background: rgba(0,0,0,0.8); 
            backdrop-filter: blur(10px); 
            z-index: 50; 
            display: none; 
            align-items: center; 
            justify-content: center; 
            padding: 30px; 
        }
        .modal-card { 
            background: #1C1C1E; 
            border: 1px solid var(--glass-border); 
            border-radius: 24px; 
            padding: 30px; 
            text-align: center; 
            width: 100%; 
            max-width: 320px; 
            transform: scale(0.9); 
            transition: 0.3s; 
            max-height: 80vh; 
            overflow-y: auto; 
        }
        .modal-icon { 
            font-size: 3rem; 
            margin-bottom: 10px; 
            display: block; 
        }
        .modal-title { 
            font-size: 1.5rem; 
            font-weight: 700; 
            margin-bottom: 10px; 
        }
        .modal-desc { 
            color: var(--text-muted); 
            font-size: 0.9rem; 
            margin-bottom: 20px; 
            line-height: 1.5; 
        }
        
        .dawuh-image-wrapper { 
            margin: 15px auto;
            border-radius: 15px; 
            overflow: hidden; 
            border: 1px solid rgba(255,255,255,0.2); 
            width: 100%; 
            height: 250px;
            background-color: #000;
            display: flex; 
            justify-content: center; 
            align-items: center; 
            position: relative; 
        }
        
        .dawuh-image { 
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: none;
            z-index: 2; 
        }
        
        .img-spinner { 
            width: 30px; 
            height: 30px; 
            border: 3px solid rgba(255,255,255,0.2); 
            border-top-color: var(--ios-blue); 
            border-radius: 50%; 
            animation: spin 1s infinite; 
            position: absolute; 
            z-index: 1; 
        }

        /* ADMIN PANEL */
        #admin-panel { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background: #000; 
            z-index: 200; 
            display: none; 
            flex-direction: column; 
            padding: 20px; 
            overflow-y: auto; 
        }
        .admin-header { 
            display: flex; 
            justify-content: space-between; 
            margin-bottom: 20px; 
            border-bottom: 1px solid rgba(255,255,255,0.1); 
            padding-bottom: 15px; 
        }
        .btn-danger { 
            background: var(--ios-red); 
            color: white; 
            border: none; 
            padding: 8px 16px; 
            border-radius: 12px; 
            cursor: pointer; 
            font-weight: 600; 
        }
        .admin-tabs { 
            display: flex; 
            background: rgba(255,255,255,0.1); 
            border-radius: 12px; 
            padding: 4px; 
            margin-bottom: 20px; 
        }
        .tab-btn { 
            flex: 1; 
            background: transparent; 
            border: none; 
            color: rgba(255,255,255,0.5); 
            padding: 10px; 
            border-radius: 8px; 
            font-weight: 600; 
            cursor: pointer; 
            transition: 0.2s; 
        }
        .tab-btn.active { 
            background: rgba(255,255,255,0.15); 
            color: white; 
        }
        .file-upload-area { 
            border: 2px dashed rgba(255,255,255,0.2); 
            border-radius: 15px; 
            padding: 30px; 
            text-align: center; 
            color: rgba(255,255,255,0.5); 
            cursor: pointer; 
            margin-bottom: 10px; 
            transition: 0.2s; 
            position: relative; 
        }
        .file-upload-area:hover { 
            border-color: var(--ios-blue); 
            color: white; 
        }
        .preview-img-box { 
            width: 100%; 
            height: 200px; 
            object-fit: contain; 
            border-radius: 12px; 
            display: none; 
            margin-bottom: 10px; 
            border: 1px solid rgba(255,255,255,0.2); 
        }
        input[type="file"] { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            opacity: 0; 
            cursor: pointer; 
        }
        
        .suggestion-list { 
            width: 100%; 
            flex: 1; 
            overflow-y: auto; 
            margin-bottom: 20px; 
            display: flex; 
            flex-direction: column; 
            gap: 10px;
        }

        .suggest-item { 
            background: rgba(255,255,255,0.08);
            padding: 12px 15px; 
            border-radius: 16px; 
            border: 1px solid rgba(255,255,255,0.1); 
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .suggest-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--ios-blue);
            letter-spacing: 0.5px;
        }

        .suggest-msg {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.4;
            word-wrap: break-word;
        }
        
        .suggest-date {
            font-size: 0.65rem;
            color: rgba(255, 255, 255, 0.4);
            align-self: flex-end;
            margin-top: 4px;
            font-style: italic;
        }
        
        /* ANIMATIONS */
        @keyframes fadeIn { 
            from { opacity: 0; transform: translateY(10px); } 
            to { opacity: 1; transform: translateY(0); } 
        }
        
        .loader { 
            width: 40px; 
            height: 40px; 
            border: 3px solid rgba(255,255,255,0.1); 
            border-top-color: var(--ios-blue); 
            border-radius: 50%; 
            animation: spin 1s infinite; 
        }
        
        @keyframes spin { 
            to { transform: rotate(360deg); } 
        }

        /* SCROLLBAR STYLING */
        .content-area::-webkit-scrollbar,
        .modal-card::-webkit-scrollbar {
            width: 6px;
        }
        
        .content-area::-webkit-scrollbar-track,
        .modal-card::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }
        
        .content-area::-webkit-scrollbar-thumb,
        .modal-card::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }
        
        .content-area::-webkit-scrollbar-thumb:hover,
        .modal-card::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }
.syarah-result {
    display: block;
    width: 100%;
    margin-top: 20px;
    /* Pastikan tidak ada max-height yang membatasi */
}

.syarah-content {
    white-space: pre-wrap; /* Agar baris baru dari AI terjaga */
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
}
/* Container utama hasil AI */
.syarah-content {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Jarak antar baris */
    width: 100%;
    color: white;
}

/* Kotak Header Lafadz */
.lafadz-header {
    background: rgba(0, 122, 255, 0.25);
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 5px;
    border-left: 4px solid var(--ios-blue);
    width: 100%; /* Pastikan lebar penuh */
    box-sizing: border-box;
}

/* Kotak Poin Analisis */
.analysis-point {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.analysis-point strong {
    color: var(--ios-blue);
}

.normal-line {
    padding: 0 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}
#syarah-content {
    white-space: pre-wrap; /* Menjaga spasi dan baris baru AI */
    line-height: 1.6;
    transition: all 0.3s ease;
}
.lafadz-header {
    background: #f0f4f8;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #2c3e50;
    border-left: 5px solid #3498db;
}
#syarah-result {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Supaya scroll tidak kaku saat stream masuk */
html {
    scroll-behavior: smooth;
}
