:root {
    --primary: #4f46e5;
    --accent: #f43f5e;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --grad-text: linear-gradient(135deg, #4f46e5, #ec4899);
    --grad-v4: linear-gradient(135deg, #3b82f6, #06b6d4);
    --grad-v6: linear-gradient(135deg, #8b5cf6, #d946ef);
    --grad-rgb: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex; flex-direction: column; min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.05) 0px, transparent 50%);
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 0; position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-content { display: flex; justify-content: center; }
.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: #1e293b; letter-spacing: -0.5px; }
.dot { color: var(--accent); }

.main-wrapper { flex: 1; padding-top: 110px; padding-bottom: 60px; display: flex; justify-content: center; width: 100%; }
.dashboard-container { width: 92%; max-width: 1100px; display: flex; flex-direction: column; gap: 40px; }

.hero-header { text-align: center; margin-bottom: 10px; padding: 0 10px; }
.hero-header h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: #0f172a; margin-bottom: 10px; line-height: 1.2; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

.search-container { max-width: 650px; margin: 0 auto; position: relative; width: 100%; }
.search-bar {
    background: white; border-radius: 100px; padding: 6px;
    display: flex; align-items: center; 
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.search-bar:focus-within { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15); border-color: var(--primary); }

.search-icon { font-size: 1.2rem; color: #94a3b8; margin: 0 15px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 1.05rem; color: #1e293b; font-weight: 500; min-width: 0; }
.search-bar button {
    background: #0f172a; color: white; border: none;
    padding: 14px 32px; border-radius: 100px; font-weight: 700; cursor: pointer;
    transition: 0.2s; font-size: 0.95rem; white-space: nowrap;
}
.search-bar button:hover { background: var(--primary); box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3); }

.domain-msg { margin-top: 10px; font-size: 0.9rem; color: #ef4444; font-weight: 500; }
.domain-msg a { color: #ef4444; text-decoration: underline; font-weight: 700; }

.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.glass-card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    border-radius: 24px; border: 1px solid rgba(255,255,255,0.6);
    padding: 40px 30px 30px 30px; position: relative;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -10px rgba(0,0,0,0.1); }

#card-v4::before { content:''; position:absolute; top:0; left:0; width:100%; height:5px; background: var(--grad-v4); border-radius: 24px 24px 0 0; }
#card-v6::before { content:''; position:absolute; top:0; left:0; width:100%; height:5px; background: var(--grad-v6); border-radius: 24px 24px 0 0; }

@keyframes rgbLoop { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.rgb-border { position: relative; border: 3px solid transparent; background-image: linear-gradient(white, white), var(--grad-rgb); background-origin: border-box; background-clip: padding-box, border-box; background-size: 200% 200%; animation: rgbLoop 4s linear infinite; }

.card-badge {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border: 4px solid #f8fafc; white-space: nowrap;
}
.v4-bg { color: #2563eb; } .v6-bg { color: #d946ef; } .search-bg { color: #f59e0b; }

.card-header-row { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.close-btn { background: #f1f5f9; color: #64748b; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.close-btn:hover { background: #e2e8f0; color: #0f172a; }

.card-body { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; width: 100%; }
.ip-main { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; flex-wrap: wrap; }
.ip-main h2 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0; 
    letter-spacing: -1px;
    word-break: break-all;
    line-height: 1.1;
}

.copy-btn {
    background: #f1f5f9; border: none; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px; color: #94a3b8; cursor: pointer; transition: 0.2s;
    display: grid; place-items: center;
}
.copy-btn:hover { background: #e0e7ff; color: #4f46e5; transform: scale(1.1); }

.hostname-pill {
    background: #f8fafc; border: 1px dashed #cbd5e1; padding: 8px 20px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 8px; font-family: monospace; color: #475569; font-weight: 600; font-size: 0.9rem;
    max-width: 100%;
}
.hostname-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.linked-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 12px; border-radius: 12px; text-align: center; width: 100%; }
.lb-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #166534; display: block; margin-bottom: 5px; }
.lb-val { display: flex; justify-content: center; align-items: center; gap: 8px; font-family: monospace; font-weight: 600; color: #15803d; word-break: break-all; flex-wrap: wrap; }
.copy-btn-sm { background: none; border: none; cursor: pointer; color: #15803d; opacity: 0.6; flex-shrink: 0; }
.copy-btn-sm:hover { opacity: 1; }

.card-footer { border-top: 1px solid #f1f5f9; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; }
.isp-info { font-weight: 700; color: #334155; font-size: 0.95rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.status-badge { font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 8px; text-transform: uppercase; white-space: nowrap; }
.status-badge.active { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #f1f5f9; color: #94a3b8; }

.details-wrapper {
    background: white; border-radius: 24px; padding: 50px 30px;
    border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative; overflow: hidden;
}
.section-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.detail-card {
    background: #ffffff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 20px;
    display: flex; align-items: center; gap: 15px; transition: 0.3s;
}
.detail-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05); border-color: #cbd5e1; }

.d-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.i-cyan { background: #ecfeff; color: #0891b2; }
.i-blue { background: #eff6ff; color: #2563eb; }
.i-indigo { background: #e0e7ff; color: #4338ca; }
.i-pink { background: #fdf2f8; color: #db2777; }
.i-purple { background: #faf5ff; color: #9333ea; }
.i-yellow { background: #fefce8; color: #ca8a04; }
.i-green { background: #f0fdf4; color: #16a34a; }
.i-teal { background: #f0fdfa; color: #0d9488; }

.d-info { display: flex; flex-direction: column; overflow: hidden; }
.d-info label { font-size: 0.7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 4px; }
.d-info span { font-size: 1.05rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.click-map { cursor: pointer; color: #2563eb !important; text-decoration: underline; }

.faq-wrapper {
    background: white; border-radius: 24px; padding: 60px 40px;
    border: 1px solid var(--border); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.03);
    margin-top: 20px;
}
.faq-header {
    font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #0f172a;
    text-align: center; margin-bottom: 40px; letter-spacing: -0.5px;
}

.accordion {
    display: flex; flex-direction: column; gap: 16px;
    max-width: 850px; margin: 0 auto;
}

.acc-item {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.acc-item:hover {
    transform: translateY(-2px); box-shadow: 0 8px 20px -5px rgba(0,0,0,0.06); border-color: #cbd5e1;
}
.acc-item.open {
    border-color: #3b82f6; box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.15);
}

.acc-btn {
    width: 100%; padding: 22px 28px; background: transparent; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.05rem; font-weight: 700; color: #1e293b; text-align: left;
    transition: 0.2s;
}
.acc-btn span { display: flex; align-items: center; gap: 12px; }
.acc-btn i { color: #94a3b8; transition: transform 0.3s ease; font-size: 1rem; }
.acc-btn.active i { transform: rotate(135deg); color: #3b82f6; }
.acc-btn.active { color: #2563eb; }

.acc-content {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out;
    background: #f8fafc; border-top: 1px solid transparent;
}
.acc-item.open .acc-content { border-top-color: #e2e8f0; }

.acc-inner { padding: 24px 28px; font-size: 1rem; line-height: 1.7; color: #475569; }

.footer {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 60px 0 30px 0;
}

.footer-container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 15px; }
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.footer-logo i { color: #4f46e5; }
.footer-desc { color: #64748b; line-height: 1.6; font-size: 0.95rem; max-width: 350px; }
.footer-socials { display: flex; gap: 15px; margin-top: 5px; }
.footer-socials a {
    width: 36px; height: 36px; background: #f1f5f9; color: #64748b; border-radius: 8px;
    display: grid; place-items: center; transition: 0.2s; text-decoration: none;
}
.footer-socials a:hover { background: #4f46e5; color: white; transform: translateY(-2px); }

.footer-links h4, .footer-stats h4 {
    font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    color: #94a3b8; margin-bottom: 20px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #475569; text-decoration: none; font-weight: 500; transition: 0.2s; }
.footer-links a:hover { color: #4f46e5; padding-left: 5px; }

.footer-stats { display: flex; flex-direction: column; gap: 15px; }
.stat-item { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; padding: 10px 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.s-label { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.s-val { font-size: 1rem; color: #0f172a; font-weight: 800; }

.footer-credits { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-top: 10px; }
.footer-credits a { color: #4f46e5; text-decoration: none; font-weight: 700; }
.footer-credits a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-toast { position: absolute; top: 15px; right: 15px; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; opacity: 0; transform: translateY(-5px); transition: 0.3s; z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card-toast.show { opacity: 1; transform: translateY(0); }

.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; animation: fadeIn 0.2s; }
.modal-card { background: white; padding: 35px; border-radius: 20px; width: 90%; max-width: 380px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.modal-icon { width: 60px; height: 60px; background: #fee2e2; color: #ef4444; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 15px; }
.modal-card h3 { font-size: 1.3rem; color: #0f172a; margin-bottom: 10px; font-weight: 800; }
.modal-card p { color: #64748b; margin-bottom: 25px; line-height: 1.5; font-size: 0.95rem; }
.modal-btns { display: flex; justify-content: center; gap: 10px; }
.btn-color { background: #4f46e5; color: white; padding: 10px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.btn-grey { background: #f1f5f9; color: #475569; padding: 10px 20px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; }
.btn-color:hover { background: #4338ca; } .btn-grey:hover { background: #e2e8f0; }

.loader-line { height: 4px; background: var(--grad-text); width: 0%; position: fixed; top: 0; z-index: 2000; transition: 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
    .cards-row { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; text-align: center; align-items: center; }
}

@media (max-width: 768px) {
    .main-wrapper { padding-top: 90px; }
    .dashboard-container { gap: 30px; }
    .glass-card { padding: 30px 20px; }
    
    .ip-main h2 { font-size: 1.8rem; }
    
    .details-wrapper { padding: 30px 20px; }
    .grid-container { grid-template-columns: 1fr; }
    
    .footer-container { display: flex; flex-direction: column; gap: 30px; text-align: center; }
    .footer-brand, .footer-links ul, .footer-stats { align-items: center; }
    .footer-links a:hover { padding-left: 0; transform: scale(1.05); }
    
    .acc-btn { padding: 18px 20px; font-size: 0.95rem; }
    .acc-inner { padding: 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hero-header h1 { font-size: 2rem; }
    .search-bar { padding: 4px; }
    .search-bar button { padding: 10px 20px; }
    .search-icon { margin: 0 10px; }
    
    .ip-main h2 { font-size: 1.4rem; }
    .isp-info { max-width: 150px; }
    
    .modal-card { padding: 25px; }
}