/* =========================================
   1. RESET & VARIABEL GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* Font Modern Clean */
}

:root {
    /* WARNA BRAND */
    --primary: #262262;
    /* Biru Dongker Utama */
    --primary-hover: #1a164d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    /* Abu sangat soft untuk selang-seling section */
    --border-color: #e0e0e0;
    --text-dark: #2c3e50;
    --text-gray: #5a6b7c;

    /* GRADIENT & ACCENT */
    --gradient-tools: linear-gradient(135deg, #262262 0%, #29d8e6 100%);

    /* UKURAN FONT (HIERARCHY) */
    --fs-hero: 3.5rem;
    --fs-title: 2.5rem;
    --fs-subtitle: 1.5rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 90px;
    /* Kompensasi Header Fixed */
    line-height: 1.6;
}

/* Utilities Global */
.container {
    max-width: 1280px;
    /* Lebar standar website modern */
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-white {
    color: var(--white) !important;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* =========================================
   2. HEADER (FIXED & GLASS EFFECT)
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.98);
    /* Efek solid bersih */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Shadow sangat halus */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons-container {
    display: flex;
    gap: 15px;
}

/* Tombol Global */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: #f0f4ff;
}

.btn-solid {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
}

.btn-solid:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 5px 15px rgba(38, 34, 98, 0.2);
    transform: translateY(-2px);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: right;
    line-height: 1.2;
}

.user-details span {
    display: block;
    font-weight: 700;
    color: var(--primary);
}

.user-details small {
    font-size: 12px;
    color: #888;
}

.user-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #eee;
    object-fit: cover;
}

.btn-logout {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    color: #d93025;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-logout:hover {
    background: #ffcccc;
    color: white;
}

/* Tombol Go To Dashboard */
.btn-dashboard {
    background: #f0f0ff;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-dashboard:hover {
    background: #e0e0ee;
}

/* =========================================
   3. SECTIONS LAYOUT (PROFESSIONAL SPACING)
   ========================================= */
/* Hero Section */
.section-hero {
    min-height: 85vh;
    /* Tinggi ideal untuk hero */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    background: var(--white);
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-hashtag {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 50px;
    font-weight: 600;
}

.btn-cta {
    padding: 18px 45px;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(38, 34, 98, 0.2);
    transition: 0.3s;
    font-weight: 600;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(38, 34, 98, 0.3);
}

/* Feature Sections */
.section-feature {
    padding: 120px 0;
    /* Spacing Luas = Profesional */
    width: 100%;
}

.section-alt {
    background-color: var(--light-bg);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.col-text {
    flex: 1;
}

.col-text h3 {
    font-size: var(--fs-title);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
}

.desc-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-weight: 400;
}

.col-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.col-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Trik agar background putih gambar hilang */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s ease;
}

.col-image img:hover {
    transform: scale(1.02);
}

/* =========================================
   4. HALAMAN PRODUK
   ========================================= */
.section-tools {
    background: var(--gradient-tools);
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: var(--fs-title);
    font-weight: 700;
    margin-bottom: 60px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--white);
    width: 180px;
    text-align: center;
    transition: 0.3s;
}

.tool-item i {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-item span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-business {
    background-color: var(--primary);
    padding: 120px 0;
    color: var(--white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.biz-item {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 25px;
}

.biz-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.biz-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* =========================================
   5. HALAMAN PAKET
   ========================================= */
.pricing-page {
    background: var(--light-bg);
    padding-bottom: 120px;
}

.pricing-hero {
    padding: 100px 0 80px;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-pro {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.card-pro:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
}

.plan-price span {
    font-size: 1rem;
    color: #999;
    font-weight: 500;
}

.price-start {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.btn-buy {
    margin-top: auto;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================
   6. HALAMAN BANTUAN
   ========================================= */
.help-hero {
    background-color: var(--primary);
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
    color: white;
}

.help-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 1;
}

.search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 22px 25px 22px 65px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: 0.3s;
    color: var(--text-dark);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--primary);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.help-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
    cursor: default;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: #f0f0f5;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hasil Pencarian */
.result-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 15px;
}

.result-item:hover {
    transform: translateX(5px);
}

.result-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.result-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* =========================================
   7. FOOTER (APPLE STYLE)
   ========================================= */
footer {
    background: var(--apple-gray-bg);
    padding: 80px 0 30px;
    border-top: 1px solid #ddd;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-gray);
    transition: 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
    color: #888;
    font-size: 0.85rem;
}

/* =========================================
   8. LANGUAGE SELECTOR (FLOATING)
   ========================================= */
.lang-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.lang-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 40px 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-selector::after {
    content: '\f0ac';
    /* Font Awesome Globe */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent);
    font-size: 0.8rem;
}

.lang-selector select:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent);
}

/* =========================================
   9. MODAL & FORM
   ========================================= */
/* =========================================
   9. MODAL & FORM (IMPROVED DESIGN)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: popUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes popUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: none;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid transparent;
    background: #eef2f7;
    /* Very light blue/gray */
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.input-group input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(38, 34, 98, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
}

.btn-solid {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(38, 34, 98, 0.2);
}

.btn-solid:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(38, 34, 98, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #555;
    transition: 0.3s;
}

.btn-google:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.captcha-box {
    background: #eee;
    padding: 10px;
    letter-spacing: 5px;
    font-weight: bold;
    font-family: monospace;
    border-radius: 6px;
    text-decoration: line-through;
    text-align: center;
    min-width: 80px;
}

#captchaInput {
    flex: 1;
    border: 2px solid #eef2f7;
    background: #eef2f7;
    border-radius: 6px;
    padding: 10px;
}

#refreshCaptchaBtn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================
   10. RESPONSIF (MOBILE)
   ========================================= */
/* =========================================
   10. RESPONSIF (MODERN APPROACH)
   ========================================= */

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Tablet & Mobile Layouts */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }

    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 900px) {
    :root {
        --fs-hero: 2.8rem;
        --fs-title: 2rem;
    }

    header {
        padding: 0 4%;
        height: 80px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    body {
        padding-top: 80px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .auth-buttons-container {
        display: flex;
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 8px;
    }

    .user-info {
        gap: 8px;
    }

    .user-details {
        display: none;
        /* Hide text on mobile to keep header clean */
    }

    .logo-img {
        height: 32px;
    }

    .content-row {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }

    .col-text h3 {
        font-size: 1.8rem;
    }

    .col-image img {
        max-width: 100%;
        max-height: 300px;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .pricing-card {
        max-width: 100%;
    }

    .card-pro {
        transform: none !important;
    }

    .tools-grid {
        gap: 25px;
    }

    .tool-item {
        width: 140px;
    }

    .tool-item i {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }

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

    .help-card {
        flex-direction: row;
        text-align: left;
        padding: 25px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 15px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    :root {
        --fs-hero: 2.2rem;
        --fs-title: 1.6rem;
    }

    .section-hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-hashtag {
        font-size: 2.5rem;
    }

    .btn-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tool-item {
        width: 100%;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .biz-item {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0 0 0;
    }

    .modal-content {
        padding: 30px 20px;
    }
}
/* =========================================
   MOBILE APP MODE (LANDING PAGE)
   ========================================= */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px !important;
    }

    header {
        height: 65px !important;
        justify-content: space-between !important;
        padding: 0 1rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }

    .nav-links, .menu-toggle {
        display: none !important;
    }

    .logo-container {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .logo-img {
        height: 30px !important;
    }

    /* Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0,0,0,0.06);
        z-index: 1001;
        padding-bottom: env(safe-area-inset-bottom);
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.04);
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 600;
        flex: 1;
        transition: 0.3s;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.3rem;
        transition: 0.2s;
    }

    .mobile-bottom-nav .nav-item.active {
        color: #262262;
    }

    .mobile-bottom-nav .nav-item.active i {
        transform: translateY(-2px);
    }

    /* Bottom Sheet Menu */
    .bottom-sheet-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 2000;
        animation: fadeIn 0.3s;
    }

    .bottom-sheet {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    }

    .bottom-sheet.active {
        transform: translateY(0);
    }

    .sheet-handle {
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 10px;
        margin: 0 auto 1.5rem;
    }

    .sheet-header-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .sheet-header-box h3 {
        font-size: 1.15rem;
        font-weight: 800;
        color: #262262;
    }

    .sheet-close {
        background: #f1f5f9;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .sheet-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .sheet-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #475569;
        text-align: center;
    }

    .sheet-item i {
        width: 48px;
        height: 48px;
        background: #f8fafc;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        color: #262262;
        border: 1px solid #f1f5f9;
        transition: 0.2s;
    }

    .sheet-item span {
        font-size: 0.65rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .sheet-item:active i {
        background: #262262;
        color: white;
        transform: scale(0.9);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* --- Landing Page Header Refinement for Mobile --- */
@media (max-width: 768px) {
    .header-mobile-left {
        position: absolute !important;
        left: 1rem !important;
        display: flex !important;
        align-items: center !important;
        z-index: 1002;
    }

    .btn-dashboard {
        font-size: 0.7rem !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #262262, #1a164d) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 0 #0a0a2e, 0 10px 20px rgba(0,0,0,0.15) !important;
        transform: perspective(500px) rotateX(5deg) !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }

    .btn-dashboard:active {
        transform: translateY(3px) perspective(500px) rotateX(0deg) !important;
        box-shadow: 0 1px 0 #0a0a2e !important;
    }

    .header-right {
        position: absolute !important;
        right: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .auth-buttons-container {
        gap: 8px !important;
    }
    
    .btn-outline, .btn-solid {
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 10px !important;
    }

    .user-info {
        gap: 0 !important;
    }
    .user-details {
        display: none !important;
    }
    #userPhoto {
        width: 38px !important;
        height: 38px !important;
        border: 2.5px solid white !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        cursor: pointer;
    }
    .btn-logout {
        display: none !important; /* Managed by dropdown */
    }

    /* Landing Dropdown */
    .profile-dropdown-mobile {
        display: none;
        position: absolute;
        top: 55px;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 18px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        width: 160px;
        z-index: 2000;
        overflow: hidden;
        transform-origin: top right;
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .profile-dropdown-mobile.active { display: block; }
    .profile-dropdown-mobile a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        text-align: left;
    }
    .profile-dropdown-mobile a i { color: #d93025; }
}

/* --- Professional 3D Movement Animation for Dashboard Button --- */
@media (max-width: 768px) {
    .btn-dashboard {
        animation: float3D 3s ease-in-out infinite !important;
        will-change: transform;
    }

    @keyframes float3D {
        0% {
            transform: perspective(500px) rotateX(10deg) rotateY(-5deg) translateY(0);
            box-shadow: 0 4px 0 #0a0a2e, 0 8px 15px rgba(38, 34, 98, 0.2);
        }
        25% {
            transform: perspective(500px) rotateX(5deg) rotateY(5deg) translateY(-2px);
            box-shadow: 0 4px 0 #0a0a2e, 0 12px 25px rgba(38, 34, 98, 0.25);
        }
        50% {
            transform: perspective(500px) rotateX(-5deg) rotateY(10deg) translateY(-4px);
            box-shadow: 0 4px 0 #0a0a2e, 0 15px 30px rgba(38, 34, 98, 0.3);
        }
        75% {
            transform: perspective(500px) rotateX(5deg) rotateY(-5deg) translateY(-2px);
            box-shadow: 0 4px 0 #0a0a2e, 0 12px 25px rgba(38, 34, 98, 0.25);
        }
        100% {
            transform: perspective(500px) rotateX(10deg) rotateY(-5deg) translateY(0);
            box-shadow: 0 4px 0 #0a0a2e, 0 8px 15px rgba(38, 34, 98, 0.2);
        }
    }
}

/* --- Hide Floating Translate on Mobile --- */
@media (max-width: 768px) {
    .lang-selector {
        display: none !important;
    }
    
    .dropdown-item-inline {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 18px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        color: var(--primary) !important;
    }
    
    .dropdown-item-inline i {
        font-size: 1.1rem !important;
        opacity: 0.8 !important;
    }
}

/* --- Desktop Layout Stability (Ensuring mobile components stay hidden) --- */
.mobile-bottom-nav, 
.bottom-sheet-overlay, 
.header-mobile-left, 
.profile-dropdown-mobile {
    display: none !important;
}

/* Restore visibilty only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex !important; }
    .bottom-sheet-overlay.active { display: block !important; }
    .header-mobile-left { display: flex !important; }
    /* Profile dropdown visibility is managed by .active class in JS */
    .profile-dropdown-mobile.active { display: block !important; }
}
