:root {
    --primary-magenta: #9b1b63;
    --primary-purple: #67267a;
    --accent-orange: #ff5e3a;
    --footer-bg: #f3f3f3;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-family: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background: #fff;
}

/* Global Container Alignment (Match Hoster.co.id) */
.container {
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header Official Styles */
.top-minibar {
    background: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #f1f1f1;
}

.top-minibar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-minibar a {
    color: #666;
    text-decoration: none;
    margin-right: 25px;
    transition: 0.3s;
    font-weight: 400;
}

.top-minibar a:hover {
    color: var(--primary-magenta);
}

.navbar {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

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

.btn-login-top {
    background: var(--accent-orange) !important;
    color: white !important;
    padding: 8px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(255, 94, 58, 0.2);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #f1f1f1;
        z-index: 9999;
    }

    .nav-links.active {
        max-height: 500px;
        padding-bottom: 20px;
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f9f9f9;
    }

    .nav-links a {
        display: block;
        padding: 15px 25px;
        width: 100%;
        color: #333;
    }

    .btn-login-top {
        padding: 6px 15px !important;
        font-size: 12px !important;
    }
}

/* Device Visibility Utilities */
.mobile-only { display: none !important; }
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-logo-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Footer Social Icons Mobile Fix */
.social-icons.mobile-only {
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
    gap: 15px;
}

/* Footer Official Styles */
.footer {
    background: #f8f9fa;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 40px;
    }
}

.footer h4 {
    color: var(--primary-magenta);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer ul li a {
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}

.footer ul li a:hover {
    color: var(--primary-magenta);
}

.footer-bottom {
    border-top: 1px solid #ddd;
    margin-top: 60px;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.copyright a {
    color: var(--primary-magenta);
    text-decoration: none;
    font-weight: 600;
}

.m-0 {
    margin: 0 !important;
}

.social-icons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: var(--primary-magenta) !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Tools Grid Styles */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(155, 27, 99, 0.03) 0%, rgba(103, 38, 122, 0.03) 100%);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    color: #777;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.search-wrapper input {
    width: 100%;
    padding: 20px 30px 20px 60px;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.search-wrapper input:focus {
    border-color: var(--primary-magenta);
    box-shadow: 0 10px 30px rgba(155, 27, 99, 0.1);
}

.search-wrapper i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* Ads Banner Styles */
.ads-section {
    margin: 40px 0;
    text-align: center;
}

.ads-banner {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.ads-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ads-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tools Grid Styles Refined */
.tools-grid-section {
    padding: 80px 0 120px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: none;
    transition: 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-magenta);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #fff4fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-magenta);
    margin-bottom: 20px;
    transition: 0.3s;
}

.tool-card:hover .tool-icon {
    background: var(--primary-magenta);
    color: white;
}

.tool-card h3 {
    font-size: 19px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2c3e50;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-tool {
    background: #f8f9fa;
    color: var(--primary-magenta);
    padding: 12px;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 13px;
}

.tool-card:hover .btn-tool {
    background: var(--primary-magenta);
    color: white;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-orange);
    color: white;
    padding: 4px 35px;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .hero h1 {
        font-size: 32px;
    }
}

/* --- Tool Specific Styles --- */

/* Common Tool Components */
.tool-container {
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #9b1b63;
    box-shadow: 0 0 0 3px rgba(155, 27, 99, 0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #9b1b63;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 14px;
    transition: 0.3s;
}

.back-link:hover {
    color: #ff5e3a;
    transform: translateX(-5px);
}

.btn-primary:hover, .btn-action:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Password Generator Specific */
.password-display {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    border: 2px solid transparent;
    transition: 0.3s;
}
.password-display:hover { border-color: #9b1b63; }
#passwordResult { font-family: 'Courier New', Courier, monospace; font-size: 26px; font-weight: 700; color: #9b1b63; word-break: break-all; }
.copy-btn { background: none; border: none; color: #bbb; cursor: pointer; font-size: 22px; transition: 0.3s; }
.copy-btn:hover { color: #ff5e3a; }
.slider-container { margin-bottom: 35px; }
input[type="range"] { width: 100%; accent-color: #9b1b63; height: 6px; border-radius: 5px; background: #eee; }
.checkbox-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 10px; }
.checkbox-container label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; color: #555; }
input[type="checkbox"] { accent-color: #9b1b63; width: 18px; height: 18px; }
.strength-meter { height: 8px; background: #eee; border-radius: 10px; margin-top: 12px; overflow: hidden; }
.strength-bar { height: 100%; width: 0%; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.strength-weak { background: #ff4757; width: 33%; }
.strength-medium { background: #ffa502; width: 66%; }
.strength-strong { background: #2ed573; width: 100%; }

/* Whois & DNS Search Box Common */
.search-box { display: flex; gap: 10px; margin-bottom: 30px; }
.search-box input { flex-grow: 1; padding: 15px 20px; border-radius: 8px; border: 1px solid #ddd; font-size: 16px; outline: none; }
.search-box input:focus { border-color: #9b1b63; }
.search-box button { padding: 0 30px; background: #9b1b63; color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.search-box button:hover { background: #67267a; }
.result-area { background: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #eee; font-family: monospace; white-space: pre-wrap; font-size: 13px; max-height: 500px; overflow-y: auto; color: #333; }

/* DNS Table */
.dns-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.dns-table th, .dns-table td { text-align: left; padding: 15px; border-bottom: 1px solid #eee; }
.dns-table th { background: #f8f9fa; font-size: 13px; text-transform: uppercase; color: #666; }
.type-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: white; }
.type-A { background: #007bff; }
.type-MX { background: #6f42c1; }
.type-NS { background: #fd7e14; }
.type-TXT { background: #6c757d; }
.type-CNAME { background: #17a2b8; }

/* QR Code Generator */
.qr-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .qr-layout { grid-template-columns: 1fr; } }
.preview-section { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8f9fa; border-radius: 12px; padding: 20px; border: 2px dashed #eee; }
#qrcode { background: white; padding: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
#qrcode canvas { max-width: 100%; height: auto !important; }
#downloadBtn { background: #9b1b63; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; }
#downloadBtn:hover { background: #67267a; }

/* WhatsApp Link Generator */
.phone-input-wrapper { display: flex; gap: 10px; }
.country-code { background: #f8f9fa; border: 1px solid #ddd; padding: 12px; border-radius: 8px; font-weight: 700; color: #666; display: flex; align-items: center; }
.result-box { background: #fff4fa; padding: 20px; border-radius: 10px; border: 1px dashed #9b1b63; margin-top: 30px; }
.result-url { background: white; padding: 15px; border-radius: 6px; border: 1px solid #eee; font-size: 14px; color: #9b1b63; word-break: break-all; margin-bottom: 15px; font-family: monospace; }
.btn-action { flex: 1; padding: 12px; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-copy { background: #9b1b63; color: white; }
.btn-copy:hover { background: #67267a; }
.btn-test { background: #25d366; color: white; text-decoration: none; }
.btn-test:hover { background: #128c7e; }

/* Landing Page Generator */
.generator-layout { display: grid; grid-template-columns: 350px 1fr; gap: 0; min-height: calc(100vh - 150px); background: #f0f2f5; }
.sidebar-controls { background: white; padding: 25px; border-right: 1px solid #ddd; overflow-y: auto; max-height: calc(100vh - 150px); }
.sidebar-controls h3 { font-size: 16px; margin-bottom: 20px; color: #333; border-bottom: 2px solid #9b1b63; display: inline-block; padding-bottom: 5px; }
.control-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f1f1f1; }
.control-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #555; }
.control-group input, .control-group textarea, .control-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; }
.preview-area { padding: 40px; display: flex; flex-direction: column; align-items: center; }
.preview-toolbar { width: 100%; max-width: 1000px; background: white; padding: 10px 20px; border-radius: 10px 10px 0 0; border: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
.preview-window { width: 100%; max-width: 1000px; background: white; border: 1px solid #ddd; border-top: none; height: 700px; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.preview-window.mobile { max-width: 375px; }
.btn-export { background: #9b1b63; color: white; border: none; padding: 8px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 13px; }
.device-toggles button { background: #f8f9fa; border: 1px solid #ddd; padding: 5px 12px; cursor: pointer; transition: 0.2s; }
.device-toggles button.active { background: #9b1b63; color: white; border-color: #9b1b63; }
.lp-hero { padding: 60px 20px; text-align: center; background: #fff; }
.lp-hero h1 { font-size: 32px; margin-bottom: 15px; color: #333; }
.lp-hero p { font-size: 16px; color: #777; margin-bottom: 25px; }
.lp-btn { background: #ff5e3a; color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; }

.lp-features { padding: 50px 20px; background: #f9f9f9; }
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.lp-feature-item { text-align: center; padding: 20px; }
.lp-feature-item i { font-size: 30px; color: #9b1b63; margin-bottom: 15px; }

/* Pricing Section */
.lp-pricing { padding: 50px 20px; background: #fff; }
.lp-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.lp-price-card { border: 1px solid #eee; border-radius: 15px; padding: 30px; text-align: center; transition: 0.3s; }
.lp-price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: #9b1b63; }
.lp-price-card h3 { margin-bottom: 15px; font-size: 20px; }
.lp-price-card .price { font-size: 32px; font-weight: 800; color: #333; margin-bottom: 20px; }
.lp-price-card .price span { font-size: 14px; color: #888; font-weight: 400; }
.lp-price-card ul { list-style: none; padding: 0; margin-bottom: 25px; text-align: left; }
.lp-price-card ul li { padding: 8px 0; border-bottom: 1px solid #f9f9f9; font-size: 13px; color: #666; }
.lp-price-card ul li i { color: #2ed573; margin-right: 10px; }

/* Testimonials */
.lp-testimonials { padding: 50px 20px; background: #f0f2f5; text-align: center; }
.lp-testimonial-item { max-width: 700px; margin: 0 auto; background: white; padding: 40px; border-radius: 20px; position: relative; }
.lp-testimonial-item p { font-style: italic; font-size: 18px; color: #555; line-height: 1.8; }
.lp-testimonial-item .author { margin-top: 20px; font-weight: 700; color: #333; }

/* FAQ Accordion */
.lp-faq { padding: 50px 20px; background: #fff; }
.lp-faq-item { max-width: 800px; margin: 0 auto 10px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.lp-faq-item summary { 
    padding: 20px; 
    background: #f8f9fa; 
    cursor: pointer; 
    font-weight: 700; 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; transition: 0.3s; }
.lp-faq-item[open] summary::after { transform: rotate(180deg); }
.lp-faq-item p { padding: 20px; font-size: 14px; color: #666; margin: 0; background: white; border-top: 1px solid #eee; }

/* Floating WhatsApp Button */
.lp-wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    z-index: 1000;
    transition: 0.3s;
}
.lp-wa-float:hover {
    transform: scale(1.1) rotate(10deg);
    background: #128c7e;
}
@media (max-width: 768px) {
    .lp-wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}

/* Shared Container */
.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header & Nav */
.lp-header { background: white; padding: 20px; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.lp-logo { font-size: 20px; font-weight: 800; color: #333; text-decoration: none; }
.lp-nav { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.lp-nav a { text-decoration: none; color: #555; font-size: 14px; font-weight: 600; transition: 0.3s; }
.lp-nav a:hover { color: #9b1b63; }

/* Footer Section */
.lp-footer { padding: 50px 20px; background: #333; color: #fff; text-align: center; }
.lp-footer .lp-container { flex-direction: column; gap: 20px; }
.lp-footer p { font-size: 14px; opacity: 0.7; margin: 0; }
.lp-footer-social { margin-bottom: 20px; display: flex; justify-content: center; gap: 15px; }
.lp-footer-social a { color: white; font-size: 18px; opacity: 0.6; transition: 0.3s; }
.lp-footer-social a:hover { opacity: 1; color: #ff5e3a; }

/* Sidebar Accordion */
.sidebar-accordion { border-bottom: 1px solid #eee; }
.sidebar-accordion summary { padding: 15px 0; font-weight: 700; cursor: pointer; font-size: 14px; color: #333; list-style: none; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-accordion summary::-webkit-details-marker { display: none; }
.sidebar-accordion summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; opacity: 0.5; transition: 0.3s; }
.sidebar-accordion[open] summary::after { transform: rotate(180deg); opacity: 1; color: var(--primary-magenta); }
.sidebar-content { padding: 5px 0 20px; }

/* Sortable List UI */
.sortable-list { margin-bottom: 30px; background: #f8f9fa; padding: 10px; border-radius: 8px; border: 1px solid #eee; }
.sortable-item { background: white; padding: 10px 15px; margin-bottom: 8px; border: 1px solid #ddd; border-radius: 6px; cursor: grab; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #333; transition: 0.2s; position: relative; }
.sortable-item:last-child { margin-bottom: 0; }
.sortable-item:hover { border-color: #9b1b63; background: #fff4fa; }
.sortable-item i.fa-grip-vertical { color: #ccc; cursor: grab; }
.sortable-item .delete-section { margin-left: auto; color: #ff4757; cursor: pointer; opacity: 0.5; transition: 0.3s; padding: 5px; }
.sortable-item .delete-section:hover { opacity: 1; transform: scale(1.2); }
.sortable-item.dragging { opacity: 0.5; background: #eee; border-style: dashed; }
