@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- 1. BASE & RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #ffffff; color: #475569; }
a { text-decoration: none; }

/* =========================================
   1. RESET & TETAPAN ASAS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff; 
}

/* --- 2. HEADER & NAVIGATION --- */
.main-nav {
    background-color: #f8fafc; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 40px;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.logo { 
    display: flex; 
    align-items: center; 
    color: #0f172a; 
}
.logo-text { 
    font-size: 26px; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
}
.logo-icon { 
    color: #3b82f6; 
    font-size: 24px; 
    margin-left: 5px; 
    margin-bottom: 5px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 10px; 
    align-items: center; 
}
.nav-item { 
    border-radius: 6px; 
    transition: background 0.3s ease; 
}
.nav-item a { 
    display: block; 
    padding: 10px 20px; 
    font-size: 14px; 
    font-weight: 600; 
    color: #475569; 
    transition: color 0.3s ease; 
}
.nav-item:hover, .nav-item.active { 
    background-color: #e2e8f0; 
}
.nav-item:hover a, .nav-item.active a { 
    color: #0f172a; 
}

/* --- 3. PROFILE DROPDOWN --- */
.user-logged-in { 
    display: flex; 
    align-items: 
    center; gap: 20px; 
}
.icon-btn { 
    background: none; 
    border: none; 
    font-size: 22px; 
    color: #475569; 
    cursor: pointer; 
    position: relative; 
    transition: color 0.3s ease; 
}
.icon-btn:hover { 
    color: #3b82f6; 
}
.notification-dot { 
    position: absolute; 
    top: -2px;
    right: -4px; 
    width: 10px; 
    height: 10px; 
    background-color: #3b82f6; 
    border: 2px solid #ffffff; 
    border-radius: 50%; }

.user-profile { 
    position: relative; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
}
.avatar { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #e2e8f0; 
    transition: all 0.3s ease; 
}
.user-profile:hover .avatar { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}

.profile-dropdown {
    position: absolute; 
    top: 130%; 
    right: 0; 
    background-color: #ffffff;
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 210px; 
    display: flex; 
    flex-direction: column;
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    transform: translateY(-10px);
}
.user-profile:hover .profile-dropdown { 
    opacity: 1; visibility: visible; 
    transform: translateY(0); 
}
.profile-dropdown a { 
    padding: 12px 16px; 
    color: #334155; 
    font-size: 14px; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: background-color 0.2s, color 0.2s; 
}
.profile-dropdown a i { 
    font-size: 16px; 
    color: #94a3b8; 
}
.profile-dropdown a:hover { 
    background-color: #f8fafc; 
    color: #0f172a; 
}
.profile-dropdown a:hover i { 
    color: #3b82f6; 
}
.profile-dropdown a.logout-link { 
    border-top: 1px solid #e2e8f0; 
    border-radius: 0 0 10px 10px; 
}


/* =========================================
   3. HERO INTRO SECTION
========================================= */
.hero-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    min-height: calc(100vh - 80px);
    gap: 60px;
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #dbeafe; 
    color: #3b82f6; 
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.5px;
}

.badge i {
    margin-right: 5px;
}

.intro-text h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -1px;
}

.intro-text h1 .highlight {
    color: #3b82f6;
}

.intro-text p {
    font-size: 17px;
    color: #475569;
    line-height: 1.7;
    max-width: 90%;
}

.intro-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: transparent;
    color: #0f172a;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #cbd5e1;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-secondary:hover {
    border-color: #0f172a;
    background-color: #f8fafc;
}

.intro-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: float 6s ease-in-out infinite;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 960px) {
    .hero-intro {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
    .intro-text {
        align-items: center;
    }
    .intro-text p {
        max-width: 100%;
    }
    .intro-text h1 {
        font-size: 40px;
    }
}

/* =========================================
   4. SECTION PARTITION (PEMISAH BAHAGIAN)
========================================= */
.section-partition {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px; 
    margin: 0 auto;   
    padding: 20px 40px; 
}

.section-partition::before,
.section-partition::after {
    content: '';
    flex: 1; 
    border-bottom: 2px dashed #e2e8f0; 
}

.section-partition i {
    padding: 0 24px;
    color: #3b82f6; 
    font-size: 20px;
    opacity: 0.3; 
}

/* =========================================
   5. TECHNOLOGY SECTION
========================================= */
.tech-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.tech-header {
    text-align: center;
    margin-bottom: 50px;
}

.tech-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.tech-header h2 .highlight {
    color: #3b82f6;
}

.tech-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.tech-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.tech-card strong {
    color: #334155;
    font-weight: 600;
}

@media (max-width: 960px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .tech-grid { grid-template-columns: 1fr; }
    .tech-section { padding: 50px 20px; }
    .tech-header h2 { font-size: 28px; }
}

/* =========================================
   6. KEY FEATURES SECTION (VERSI KOTAK)
========================================= */
.features-section {
    background-color: #f8fafc; 
    padding: 80px 40px;
    text-align: center;
}

.features-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.features-header h2 .highlight {
    color: #3b82f6;
}

.features-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #3b82f6; 
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-section { padding: 50px 20px; }
}

/* =========================================
   7. FOOTER SECTION (TEMA MERAH + WAVE)
========================================= */
.main-footer {
    background-color: #3b82f6; 
    color: #ffffff;
    padding-top: 40px;
    margin-top: 180px; 
    position: relative; 
}

.footer-wave { 
    position: absolute; 
    top: -120px; left: 0; 
    width: 100%; overflow: 
    hidden; line-height: 0; 
}
.footer-wave svg { 
    display: block; 
    width: 100%; 
    height: 125px; 
}
.footer-wave path { 
    fill: #3b82f6 !important; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-logo .logo-icon {
    color: #ffffff; 
    font-size: 22px;
    margin-left: 5px;
    margin-bottom: 5px;
}

.brand-col p {
    font-size: 14px;
    color: #dbeafe; 
    line-height: 1.7;
    max-width: 350px;
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #dbeafe;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.links-col ul li a:hover {
    color: #ffffff; 
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-info li {
    font-size: 14px;
    color: #dbeafe;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #1d4ed8; 
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ffffff; 
    color: #3b82f6; 
}

.footer-bottom {
    background-color: #2563eb; 
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1d4ed8; 
}

.footer-bottom p {
    font-size: 13px;
    color: #dbeafe;
}

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .brand-col p { max-width: 100%; }
}

/* =========================================
   8. DETECTION / SCAN PAGE
========================================= */
.page-content {
    background-color: #f8fafc;
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
}

.scan-section {
    max-width: 1000px;
    margin: 0 auto;
}

.scan-header {
    text-align: center;
    margin-bottom: 40px;
}

.scan-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.scan-header h1 .highlight {
    color: #3b82f6;
}

.scan-header p {
    color: #64748b;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.scan-container {
    display: flex;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.scan-input-area, .scan-results-area {
    flex: 1;
    padding: 40px;
}

.scan-input-area {
    border-right: 1px solid #e2e8f0;
}

.scan-input-area h3, .scan-results-area h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* Upload Box */
.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.upload-icon {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.upload-box:hover .upload-icon {
    color: #3b82f6;
}

.upload-text {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 5px;
}

.upload-text .highlight {
    color: #3b82f6;
    font-weight: 600;
}

.upload-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* Divider 'OR' */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

/* URL Input */
.url-input-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 40px; /* Ruang untuk ikon di kiri */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
    background-color: #f8fafc;
}

.input-group input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.scan-action-btn {
    width: 100%;
    margin-top: 25px;
    justify-content: center;
    font-size: 16px;
    padding: 16px;
}

/* Results Area Placeholder */
.scan-results-area {
    background-color: #fafbfc;
    display: flex;
    flex-direction: column;
}

.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.pulse-ring {
    width: 80px;
    height: 80px;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #64748b;
    margin-bottom: 25px;
    position: relative;
}

/* Animasi ring berdenyut */
.pulse-ring::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    animation: pulse 2s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.result-placeholder h4 {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.result-placeholder p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsif untuk tablet dan telefon */
@media (max-width: 850px) {
    .scan-container {
        flex-direction: column;
    }
    .scan-input-area {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}
/* --- 10. PROFILE & SETTINGS LAYOUT --- */

.settings-container {
    max-width: 1000px;
    margin: 0 auto;
}

.settings-page-header {
    margin-bottom: 30px;
}
.settings-page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.settings-page-header p {
    font-size: 14px;
    color: #64748b;
}

/* Flexbox untuk Sidebar + Content */
.settings-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar Styling */
.settings-sidebar {
    width: 220px;
    flex-shrink: 0;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px; /* <-- Gap untuk menu di sidebar */
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
}
.sidebar-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.sidebar-link.active {
    background-color: #ffffff;
    color: #3b82f6; /* Merah QRGuard */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Main Content Box */
.settings-main-content {
    flex-grow: 1;
}

.simple-profile-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
}

/* Bahagian Avatar */
.avatar-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}
.avatar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar-container {
    position: relative;
}
.avatar-circle {
    width: 64px;
    height: 64px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 28px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-upload-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #64748b;
}
.avatar-upload-badge:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}
.avatar-text h3 {
    font-size: 18px;
    color: #0f172a;
}
.avatar-text p {
    font-size: 14px;
    color: #64748b;
}
.btn-remove-avatar {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.card-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
}

/* Borang */
.simple-profile-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.input-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.input-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}
.input-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Actions */
.form-actions-row {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}
.btn-save-changes {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.btn-save-changes:hover {
    background-color: #2563eb;
}
.btn-cancel-text {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
}
.btn-cancel-text:hover {
    color: #111827;
}

/* Mobile Friendly */
@media (max-width: 768px) {
    .settings-layout {
        flex-direction: column;
    }
    .settings-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- 11. SECURITY SETTINGS STYLING --- */

.settings-section {
    padding: 30px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Butang Deactivate */
.danger-action-box {
    margin-top: 10px;
}

.btn-deactivate {
    background-color: #ffffff;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-deactivate:hover {
    background-color: #eff6ff; /* Merah sangat cair bila hover */
    border-color: #2563eb;
    color: #2563eb;
}


/* =========================================
   10. CONTACT US PAGE (REKABENTUK BAHARU)
========================================= */
.contact-page-bg {
    background-color: #fcfdfd; /* Warna latar belakang bersih sikit */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.contact-section-alt {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.contact-container-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Kiri: Teks & Borang */
.contact-left-col {
    flex: 1;
    max-width: 600px;
}

.contact-title {
    font-size: 48px;
    font-weight: 800;
    color: #3b82f6; /* Warna tema merah QRGuard, ganti #d97706 kalau nak ikut warna oren gambar rujukan */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.contact-title .highlight {
    color: #0f172a;
}

.contact-desc {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Gaya Borang Terbuka */
.contact-form-clean {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group textarea {
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    margin-top: 10px;
    padding: 16px 32px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: fit-content;
    border-radius: 30px; /* Jadikan butang sedikit bulat macam dalam rujukan */
}

/* Kanan: Visual Ilustrasi */
.contact-right-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.support-visual {
    width: 100%;
    max-width: 550px;
    /* Animasi Terapung */
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsif untuk Telefon & Tablet */
@media (max-width: 950px) {
    .contact-container-split {
        flex-direction: column-reverse; /* Letak gambar di atas borang bila skrin kecil */
        gap: 40px;
    }
    
    .contact-left-col, .contact-right-col {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-title {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* =========================================
   11. ABOUT PAGE (HERO, FEATURES, DEVELOPER)
========================================= */

/* Hero Section */
.about-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.about-header .badge {
    display: inline-block;
    background-color: #eff6ff;
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
}

.about-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-header h1 .highlight {
    color: #3b82f6;
}

.about-header p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

/* Feature Grid */
.about-features {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background-color: #3b82f6;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   12. FAQ / OVERVIEW ACCORDION
========================================= */
.about-faq {
    padding: 20px 20px 80px;
    background-color: transparent; 
}

.faq-wrapper {
    max-width: 900px; 
    margin: 0 auto;
}

.faq-title {
    font-size: 22px;
    color: #334155;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0; 
    font-weight: 700;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.faq-item {
    background-color: #f8fafc; 
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    font-family: inherit;
    transition: color 0.2s ease;
}

.faq-question i {
    color: #3b82f6; 
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: #3b82f6; 
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; 
}

/* =========================================
   13. DEVELOPER SECTION
========================================= */
.about-developer {
    background-color: #0f172a; 
    padding: 80px 20px;
    margin-top: 40px;
}

.developer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #1e293b;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #334155;
}

.developer-avatar {
    width: 150px;
    height: 150px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.developer-info h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: 700;
}

.dev-role {
    color: #3b82f6;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dev-desc {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 25px;
}

.dev-desc strong {
    color: #e2e8f0;
}

.dev-socials {
    display: flex;
    gap: 15px;
}

.dev-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #334155;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dev-socials a:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
}

/* Responsif untuk tablet/fon */
@media (max-width: 768px) {
    .developer-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .dev-socials {
        justify-content: center;
    }
    
    .about-header h1 {
        font-size: 32px;
    }
}

/* --- 8. DASHBOARD/HISTORY PAGES SPECIFIC (STATS & TABLE) --- */
.dashboard-container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dashboard-header h1 { font-size: 28px; color: #0f172a; font-weight: 800; margin-bottom: 5px; }
.dashboard-header p { color: #475569; font-size: 15px; }
.scan-btn { background-color: #3b82f6; color: white; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s ease; border: none; cursor: pointer; text-decoration: none; }
.scan-btn:hover { background-color: #2563eb; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.stat-info h3 { font-size: 14px; color: #64748b; font-weight: 600; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: #0f172a; }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bg-blue { background-color: #eff6ff; color: #3b82f6; }
.bg-green { background-color: #f0fdf4; color: #22c55e; }
.bg-red { background-color: #fee2e2; color: #ef4444; }

.dashboard-card { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); width: 100%; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 18px; color: #0f172a; font-weight: 700; }
.view-all { font-size: 14px; color: #3b82f6; font-weight: 600; }
.view-all:hover { text-decoration: underline; }
.table-responsive { overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 16px 20px; background-color: #f8fafc; color: #64748b; font-size: 13px; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 16px 20px; font-size: 14px; color: #334155; border-bottom: 1px solid #e2e8f0; }
.data-table tr:last-child td { border-bottom: none; }
.truncate-text { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; text-align: center; }
.status-badge.safe { background-color: #dcfce7; color: #166534; }
.status-badge.danger { background-color: #fee2e2; color: #991b1b; }

@media (max-width: 960px) {
    .hero-intro { flex-direction: column; text-align: center; padding: 50px 20px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; }
}

/* --- TAMBAHAN UNTUK LIVE CAMERA SCANNER --- */
.camera-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.camera-placeholder {
    text-align: center;
    color: #64748b;
    padding-top: 20px;
}
.camera-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.action-btn {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #2563eb;
}

/* =========================================
   TAMBAHAN UNTUK TABS (METHOD PILIHAN)
========================================= */
.method-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.select-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-btn:hover {
    background: #e2e8f0;
}

.select-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.method-content {
    display: none; 
    max-width: 500px;
    margin: 0 auto;
}

.method-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PROFILE SETTINGS & ALERTS
   ========================================= */

/* Container Mesej Alert */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
    border: 1px solid transparent;
}

/* Alert Sukses */
.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* Alert Error */
.alert-error {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Icon dalam Alert */
.alert i {
    font-size: 18px;
}

/* Animasi muncul dari atas */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra tweak untuk form-actions biar kemas */
.form-actions-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* =========================================
   SEGMENTED CONTROL TOGGLE BUTTON
   ========================================= */
.segmented-control {
    position: relative;
    display: flex;
    background-color: #e2e8f0; 
    border-radius: 12px; 
    padding: 4px;
    margin: 0 auto 30px auto;
    max-width: 450px; 
}

.segment-btn {
    flex: 1;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b; 
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease;
    outline: none;
}

.segment-btn.active {
    color: #0f172a; 
}

.control-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc((100% - 8px) / 3); 
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); 
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); 
    z-index: 1;
}

@media (max-width: 500px) {
    .segmented-control {
        max-width: 100%;
        margin-left: 20px;
        margin-right: 20px;
    }
    .segment-btn {
        padding: 10px 5px;
        font-size: 13px;
    }
}


/* =========================================
   1. SEGMENTED CONTROL TOGGLE BUTTON (2 OPTIONS)
   ========================================= */
.segmented-control {
    position: relative;
    display: flex;
    background-color: #e2e8f0; 
    border-radius: 12px; 
    padding: 4px;
    margin: 0 auto 30px auto;
    max-width: 450px; 
}

.segment-btn {
    flex: 1;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b; 
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease;
    outline: none;
}

.segment-btn.active {
    color: #0f172a; 
}

.control-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); 
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); 
    z-index: 1;
}

/* Pembahagian Slider untuk 2 Pilihan (50%) */
.segmented-control.two-options .control-bg {
    width: calc((100% - 8px) / 2);
}

/* =========================================
   2. DRAG & DROP UPLOAD ZONE (SINGLE BOX)
   ========================================= */
.single-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1; 
    border-radius: 12px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.upload-icon-wrapper {
    background-color: #f1f5f9;
    padding: 12px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.fa-cloud-arrow-up {
    font-size: 24px;
    color: #64748b;
    transition: color 0.3s ease;
}

.upload-main-text {
    color: #475569;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: center;
}

.upload-main-text span {
    font-weight: 600;
    color: #3b82f6; 
}

.upload-sub-text {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

/* EFEK HOVER KOTAK UPLOAD */
.single-zone:hover {
    border-color: #3b82f6;
    background-color: #fff1f2;
}

.single-zone:hover .upload-icon-wrapper {
    background-color: #dbeafe;
}

.single-zone:hover .fa-cloud-arrow-up {
    color: #3b82f6;
}

/* =========================================
   3. URL TEXTFIELD FOCUS EFFECTS (MERAH)
   ========================================= */
.url-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    color: #334155;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); 
}

/* Responsive Skrin Kecil */
@media (max-width: 450px) {
    .segmented-control {
        max-width: 100%;
    }
    .segment-btn {
        padding: 10px 5px;
        font-size: 13px;
    }
}

/* =========================================
   SAMPLE URLS STYLING
   ========================================= */
.sample-container {
    margin-top: 10px;
    text-align: left;
}

.sample-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.sample-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

/* Warna Hover mengikut jenis */
.sample-tag.phishing:hover {
    background-color: #dbeafe;
    color: #3b82f6;
    border-color: #93c5fd;
}

.sample-tag.safe:hover {
    background-color: #dcfce7;
    color: #22c55e;
    border-color: #86efac;
}

.sample-tag.clear:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Memberi sedikit jarak pada card */
.method-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* =========================================
   DASHBOARD PAGE (user_dashboard.php)
========================================= */
.db-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px 120px; }

/* Hero */
.db-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 420px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    min-height: 260px;
}
.db-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: 380px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.db-hero-left {
    padding: 44px 48px;
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
}
.db-hero-greeting {
    font-size: 13px; color: #64748b; font-weight: 500;
    margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.db-hero-greeting span {
    background: rgba(59,130,246,.15); color: #60a5fa;
    padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.db-hero-title {
    font-size: 32px; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 12px;
}
.db-hero-title em { color: #3b82f6; font-style: normal; }
.db-hero-sub {
    font-size: 14px; color: #475569; line-height: 1.7;
    margin-bottom: 28px; max-width: 380px;
}
.db-hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 9px;
    background: #3b82f6; color: #fff;
    padding: 13px 26px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: all .2s; letter-spacing: .2px;
}
.btn-hero-primary:hover {
    background: #2563eb; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,.35);
}
.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #94a3b8;
    padding: 13px 22px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: all .2s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.06); color: #fff;
    border-color: rgba(255,255,255,.2);
}
.db-hero-right {
    background: rgba(255,255,255,.03);
    border-left: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; position: relative; overflow: hidden;
}

/* Inbox alert */
.inbox-alert {
    display: flex; align-items: center; gap: 14px;
    background: #fef3c7; border: 1px solid #fcd34d;
    border-radius: 14px; padding: 14px 20px;
    margin-bottom: 24px; text-decoration: none; transition: background .2s;
}
.inbox-alert:hover { background: #fef08a; }

/* Stat cards */
.db-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.db-stat {
    background: #fff; border-radius: 16px; padding: 22px 20px;
    border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: relative; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.db-stat:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.db-stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.db-stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.db-stat-label { font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.db-stat-value { font-size: 32px; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 8px; }
.db-stat-sub   { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
.db-stat-bar   { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }

/* Main grid */
.db-main { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-bottom: 28px; align-items: start; }

/* Recent scans card */
.db-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.db-card-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #f1f5f9;
}
.db-card-title { font-size: 15px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.db-card-link  { font-size: 13px; color: #3b82f6; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.db-card-link:hover { color: #2563eb; }
.scan-row {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 22px; border-bottom: 1px solid #f8fafc; transition: background .15s;
}
.scan-row:last-child { border-bottom: none; }
.scan-row:hover { background: #fafafa; }
.scan-icon  { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.scan-url   { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-meta  { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.scan-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.scan-badge.safe     { background: #d1fae5; color: #065f46; }
.scan-badge.phishing { background: #dbeafe; color: #1e40af; }
.db-empty   { padding: 48px 22px; text-align: center; color: #94a3b8; }
.db-empty i { font-size: 40px; color: #e2e8f0; margin-bottom: 12px; display: block; }

/* Right column */
.db-right { display: flex; flex-direction: column; gap: 16px; }
.db-side-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0; padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.db-side-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* Donut chart */
.donut-wrap        { position: relative; width: 130px; height: 130px; margin: 0 auto 14px; }
.donut-center      { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.donut-center h3   { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1; }
.donut-center p    { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.donut-legend      { display: flex; justify-content: center; gap: 16px; }
.donut-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.donut-dot         { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Quick actions */
.qa-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 10px;
    text-decoration: none; color: #0f172a;
    font-size: 13px; font-weight: 600;
    margin-bottom: 8px; transition: all .15s;
}
.qa-link:last-child { margin-bottom: 0; }
.qa-link:hover { padding-left: 16px; }
.qa-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* Daily tip */
.db-tip { background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 16px; padding: 20px 22px; color: #fff; }
.db-tip-lbl { font-size: 10px; font-weight: 700; opacity: .5; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.db-tip p   { font-size: 13px; line-height: 1.65; color: #94a3b8; }

/* Feature strip */
.db-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.db-feat {
    background: #fff; border-radius: 16px; padding: 24px 22px;
    border: 1px solid #e2e8f0; display: flex; align-items: flex-start; gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow .2s;
}
.db-feat:hover  { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.db-feat-icon   { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.db-feat h4     { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.db-feat p      { font-size: 13px; color: #64748b; line-height: 1.6; }

/* Divider */
.db-divider       { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.db-divider-line  { flex: 1; height: 1px; background: #e2e8f0; }
.db-divider-label { font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

@media (max-width: 1024px) { .db-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .db-hero { grid-template-columns: 1fr; } .db-hero-right { display: none; } .db-main { grid-template-columns: 1fr; } .db-features { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .db-stats { grid-template-columns: 1fr 1fr; } .db-hero-left { padding: 28px 24px; } }


/* =========================================
   DETECTION PAGE (user_detection.php)
========================================= */
.detect-wrap { max-width: 680px; margin: 0 auto; padding: 48px 20px 0; }

/* Hero */
.detect-hero { text-align: center; margin-bottom: 36px; }
.detect-hero .hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: #eff6ff; color: #3b82f6;
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 99px;
    letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px;
}
.detect-hero h1      { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 10px; line-height: 1.2; }
.detect-hero h1 span { color: #3b82f6; }
.detect-hero p       { font-size: 15px; color: #64748b; line-height: 1.7; }

/* Card */
.detect-card {
    background: #fff; border-radius: 20px;
    border: 1px solid #e2e8f0; box-shadow: 0 2px 16px rgba(0,0,0,.07); overflow: hidden;
}

/* Split header */
.split-header { display: grid; grid-template-columns: 1fr 1fr; }
.split-btn {
    padding: 22px 20px; border: none; background: #f8fafc; cursor: pointer;
    display: flex; align-items: center; gap: 14px;
    border-bottom: 2px solid #e2e8f0; transition: all .2s;
    font-family: 'Inter', sans-serif; text-align: left;
}
.split-btn:first-child         { border-right: 1px solid #e2e8f0; }
.split-btn:hover:not(.active)  { background: #f1f5f9; }
.split-btn.active              { background: #3b82f6; border-bottom-color: #2563eb; }
.split-btn-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #e2e8f0; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #64748b; flex-shrink: 0; transition: all .2s;
}
.split-btn.active .split-btn-icon          { background: rgba(255,255,255,.2); color: #fff; }
.split-btn-text p                          { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 2px; transition: color .2s; }
.split-btn-text small                      { font-size: 12px; color: #94a3b8; transition: color .2s; }
.split-btn.active .split-btn-text p        { color: #fff; }
.split-btn.active .split-btn-text small    { color: rgba(255,255,255,.75); }

/* Content area */
.detect-content { padding: 32px; }
.panel-anim     { animation: fadeIn .25s ease; }

/* Drop zone */
.drop-zone {
    border: 2px dashed #e2e8f0; border-radius: 14px;
    padding: 44px 20px; text-align: center; cursor: pointer;
    background: #fafafa; transition: all .2s; margin-bottom: 16px;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: #3b82f6; background: #eff6ff; }
.drop-zone.has-file { border-color: #10b981; background: #f0fdf4; padding: 28px 20px; }
.dz-icon-wrap {
    width: 56px; height: 56px; background: #fff;
    border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #94a3b8; margin: 0 auto 14px; transition: all .2s;
}
.drop-zone:hover .dz-icon-wrap    { color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,.15); }
.drop-zone.has-file .dz-icon-wrap { color: #10b981; box-shadow: 0 4px 16px rgba(16,185,129,.15); }
.dz-main        { font-size: 14px; color: #374151; margin-bottom: 4px; }
.dz-main strong { color: #3b82f6; }
.dz-sub         { font-size: 12px; color: #94a3b8; }

/* File chosen row */
.file-row {
    display: none; align-items: center; gap: 10px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 10px; padding: 12px 14px;
    margin-bottom: 16px; font-size: 13px; color: #065f46; font-weight: 600;
}
.file-row.show { display: flex; }
.file-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-btn       { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 15px; flex-shrink: 0; padding: 0; }
.remove-btn:hover { color: #3b82f6; }

/* URL input */
.url-wrap    { position: relative; margin-bottom: 18px; }
.url-wrap i  { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; }
.url-wrap input {
    width: 100%; padding: 15px 16px 15px 48px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: #0f172a; outline: none; background: #fafafa;
    transition: border .2s, box-shadow .2s;
}
.url-wrap input:focus       { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.08); }
.url-wrap input::placeholder { color: #cbd5e1; }

/* Sample chips */
.sample-row   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sample-row p { font-size: 12px; color: #94a3b8; font-weight: 500; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 99px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; border: none;
    transition: all .2s; font-family: 'Inter', sans-serif;
}
.chip.phishing       { background: #dbeafe; color: #1e40af; }
.chip.phishing:hover { background: #bfdbfe; }
.chip.safe           { background: #d1fae5; color: #065f46; }
.chip.safe:hover     { background: #bbf7d0; }
.chip.clear          { background: #f1f5f9; color: #64748b; }
.chip.clear:hover    { background: #e2e8f0; }

/* Submit button */
.detect-submit {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .25s;
}
.detect-submit:hover  { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,.3); }
.detect-submit:active { transform: translateY(0); }

/* Info strip */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.info-card  { background: #fff; border-radius: 14px; padding: 20px; text-align: center; border: 1px solid #f1f5f9; }
.info-card i  { font-size: 20px; color: #3b82f6; margin-bottom: 10px; display: block; }
.info-card h4 { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.info-card p  { font-size: 12px; color: #64748b; line-height: 1.5; }

@media (max-width: 600px) {
    .info-strip     { grid-template-columns: 1fr; }
    .detect-content { padding: 20px; }
}


/* =========================================
   DETECTION RESULT PAGE (detection_result.php)
========================================= */
.result-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px 120px; }

/* Verdict row */
.verdict-card {
    border-radius: 16px; padding: 22px 24px;
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 16px; animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.verdict-icon-sm { font-size: 36px; flex-shrink: 0; }
.verdict-body    { flex: 1; min-width: 0; }
.verdict-title   { font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.verdict-url     { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-right   { text-align: right; flex-shrink: 0; }
.risk-badge      { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.conf-text       { font-size: 12px; color: #64748b; }

/* Score bars */
.score-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.score-card { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; align-items: center; gap: 14px; }
.score-num  { font-size: 22px; font-weight: 800; flex-shrink: 0; }
.score-right { flex: 1; min-width: 0; }
.score-lbl  { font-size: 11px; color: #64748b; font-weight: 500; margin-bottom: 5px; }
.bar-bg     { background: #f1f5f9; border-radius: 99px; height: 6px; overflow: hidden; }
.bar-fill   { height: 6px; border-radius: 99px; transition: width 1s ease; }

/* Section card */
.section-card     { background: #fff; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; }
.section-hdr      { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.section-hdr-title { font-size: 14px; font-weight: 700; color: #0f172a; flex: 1; }
.section-count    { font-size: 12px; color: #94a3b8; }

/* Accordion indicators */
.ind-item          { border-bottom: 1px solid #f1f5f9; }
.ind-item:last-child { border-bottom: none; }
.ind-head          { display: flex; align-items: center; gap: 10px; padding: 13px 20px; cursor: pointer; transition: background .15s; user-select: none; }
.ind-head:hover    { background: #fafafa; }
.ind-icon-w        { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.ind-title         { font-size: 13px; font-weight: 600; color: #0f172a; flex: 1; }
.ind-badge         { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.ind-chevron       { font-size: 11px; color: #94a3b8; transition: transform .2s; flex-shrink: 0; }
.ind-item.open .ind-chevron { transform: rotate(180deg); }
.ind-body          { display: none; padding: 0 20px 14px 60px; }
.ind-item.open .ind-body { display: block; }
.ind-finding       { font-size: 12px; font-weight: 600; color: #374151; background: rgba(0,0,0,.03); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; border-left: 3px solid #94a3b8; }
.ind-explanation   { font-size: 12px; color: #64748b; line-height: 1.7; margin-bottom: 8px; }
.ind-evidence      { font-size: 10px; color: #94a3b8; font-family: monospace; background: #f8fafc; border-radius: 4px; padding: 4px 8px; display: inline-block; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feat-item { background: #f8fafc; border-radius: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; }
.feat-name { font-size: 10px; color: #94a3b8; font-weight: 500; margin-bottom: 2px; }
.feat-val  { font-size: 14px; font-weight: 700; color: #0f172a; }
.feat-val.vd { color: #3b82f6; }
.feat-val.vs { color: #10b981; }

/* Actions */
.act-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Badges */
.source-badge { display: inline-flex; align-items: center; gap: 5px; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.img-badge    { display: inline-flex; align-items: center; gap: 5px; background: #ede9fe; color: #5b21b6; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

/* Error card */
.error-card { background: #eff6ff; border: 2px solid #3b82f6; border-radius: 14px; padding: 28px; text-align: center; }

@media (max-width: 860px) {
    .score-row    { grid-template-columns: 1fr; }
    .verdict-card { flex-wrap: wrap; }
}


/* =========================================
   HISTORY PAGE (user_history.php)
========================================= */
.status-badge.safe {
    background: #d1fae5; color: #065f46;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.status-badge.danger {
    background: #fee2e2; color: #991b1b;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.search-input-wrap { position: relative; flex: 1; min-width: 220px; }
.search-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
.search-input-wrap input { width: 100%; padding: 10px 36px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; background: #fff; transition: border .2s; }
.search-input-wrap input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.clear-x       { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px; padding: 2px 4px; }
.clear-x:hover { color: #3b82f6; }

/* =========================================
   PAGE HEADER — shared across all user pages
   (dashboard, history, detection, result, contact)
   Added: consistent header component
========================================= */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.page-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.page-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}
.page-header h1 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.4px;
    line-height: 1.15;
    margin-bottom: 6px;
}
.page-header h1 span { color: #3b82f6; }
.page-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 520px;
}

/* =========================================
   STAT CARDS — user_dashboard.php
   Added: icon-left, label+value-right layout
========================================= */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    border: 1px solid #e2e8f0;
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 16px;
    transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-body { flex: 1; min-width: 0; }
.stat-lbl {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px;
}
.stat-val  { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 6px; }
.stat-foot { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.stat-bar  { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }

/* Stat icon colour helpers */
.stat-icon.red    { background: #eff6ff; color: #3b82f6; }
.stat-icon.green  { background: #f0fdf4; color: #16a34a; }
.stat-icon.slate  { background: #f8fafc; color: #475569; }