/* === Bayo Tools - Cek Koneksi / Visitor Info Modern Design System === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-body: #0a0d14;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 34, 53, 0.85);
    --bg-surface: #121826;
    --bg-surface-2: #1a2236;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.4);

    --text-main: #f3f4f6;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --cyan: #06b6d4;
    --primary: #6366f1;
    --amber: #f59e0b;
    --rose: #f43f5e;

    --ipv4: #10b981;
    --ipv6: #38bdf8;
    --warning: #f59e0b;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glow */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.glow-1 {
    width: 520px;
    height: 520px;
    background: #10b981;
    top: -100px;
    right: 15%;
}

.glow-2 {
    width: 440px;
    height: 440px;
    background: #06b6d4;
    top: 40%;
    left: -80px;
}

.glow-3 {
    width: 420px;
    height: 420px;
    background: #6366f1;
    bottom: -80px;
    right: 10%;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navbar === */
.navbar {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px var(--emerald-glow);
    transition: var(--transition);
    flex-shrink: 0;
}

.brand-logo:hover .logo-icon-box {
    transform: scale(1.05);
    border-color: var(--emerald-light);
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.logo-title .highlight {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
    margin-top: -2px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-btn svg {
    flex-shrink: 0;
}

/* === Hero Section === */
.hero {
    padding: 48px 0 28px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-accent {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 34px;
}

/* === Cards Grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    animation: fadeUp 0.35s ease both;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card-highlight {
    grid-column: 1 / -1;
    padding: 32px;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 16px 40px -15px var(--emerald-glow);
    text-align: center;
}

.card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34d399, #10b981, #06b6d4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 22px;
    height: 22px;
    color: var(--emerald-light);
    flex-shrink: 0;
}

.card-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex: 1;
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.badge-ipv4 {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-ipv6 {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.ip-display {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 16px;
    word-break: break-all;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.detail-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.detail-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ISP Info Box */
.isp-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    text-align: left;
}

.isp-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.isp-row span {
    font-size: 0.74rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.isp-row strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
}

/* Copy Button */
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    border-color: var(--emerald-light);
    color: #ffffff;
    background: rgba(16, 185, 129, 0.12);
}

.btn-copy.copied {
    border-color: var(--emerald);
    color: #34d399;
    background: rgba(16, 185, 129, 0.2);
}

/* Detail Section */
.detail-section {
    margin-bottom: 36px;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: rgba(16, 185, 129, 0.03);
}

.info-table td:first-child {
    color: var(--text-dim);
    font-weight: 600;
    width: 220px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table .mono {
    font-family: var(--font-mono);
    color: #a7f3d0;
    word-break: break-all;
}

/* User Agent */
.ua-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(12px);
}

.ua-box code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #cbd5e1;
    word-break: break-all;
    flex: 1;
    line-height: 1.6;
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(10, 13, 20, 0.8);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-light);
}

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

/* Responsive */
@media (max-width: 900px) {
    .nav-content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 36px 0 20px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .isp-info {
        grid-template-columns: 1fr;
    }
    .info-table td:first-child {
        width: 130px;
        padding: 10px 14px;
    }
    .info-table td {
        padding: 10px 14px;
    }
    .ua-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
