/* DNI Insta Metre - Ultra High-Tech Animated Cyberpunk Theme (Absolute Contrast Fix) */
:root {
    --dni-bg: #030712;
    --dni-card-bg: rgba(15, 23, 42, 0.98);
    --dni-border: rgba(56, 189, 248, 0.5);
    --dni-gradient: linear-gradient(135deg, #ff8a00 0%, #e52e71 50%, #8134af 100%);
    --dni-neon-blue: #38bdf8;
    --dni-neon-pink: #ec4899;
}

body {
    background-color: var(--dni-bg) !important;
    color: #ffffff !important;
}

/* Force High Contrast Solid Text for All Elements inside Directory */
.dni-master-directory-wrap h1, 
.dni-master-directory-wrap h2, 
.dni-master-directory-wrap h3, 
.dni-master-directory-wrap p,
.dni-master-directory-wrap span,
.dni-master-directory-wrap a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Overrides gradient clipping bugs */
}

.dni-master-directory-wrap p {
    color: #e2e8f0 !important; 
}

/* Advanced Floating Animation */
@keyframes dniFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Neon Border Pulse Animation */
@keyframes dniNeonPulse {
    0% { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
    50% { border-color: rgba(236, 72, 153, 0.9); box-shadow: 0 0 35px rgba(236, 72, 153, 0.4); }
    100% { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
}

.dni-tool-item {
    background: var(--dni-card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dni-border) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    animation: dniFloat 5s ease-in-out infinite, dniNeonPulse 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dni-tool-item:hover {
    transform: translateY(-12px) scale(1.02) !important;
    animation-play-state: paused;
    border-color: var(--dni-neon-blue) !important;
    box-shadow: 0 30px 60px -15px rgba(221, 42, 123, 0.6), 0 0 40px rgba(56, 189, 248, 0.5) !important;
}

/* Crystal Clear High Contrast Title Fix */
.dni-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 10px 0 15px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 2px 5px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}

/* High-Tech Search Bar */
#dni-tool-search {
    background: rgba(9, 13, 22, 0.98) !important;
    border: 2px solid #38bdf8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: all 0.3s ease;
}

#dni-tool-search::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

#dni-tool-search:focus {
    border-color: var(--dni-neon-pink) !important;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.5), inset 0 0 12px rgba(236, 72, 153, 0.2) !important;
}

/* Futuristic Launch Button */
.dni-launch-btn {
    background: var(--dni-gradient);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
    transition: all 0.3s ease;
}

.dni-launch-btn:hover {
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.8);
    transform: translateY(-3px) scale(1.02);
}

/* Live Pulse Animation */
@keyframes dniPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dni-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: dniPulse 2s infinite;
}

/* DNI Insta Metre - Elite SaaS Glassmorphism & Alignment Engine */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.dni-instameter-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 70%);
    color: #f8fafc;
    padding: 40px 20px;
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.dni-tool-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 750px;
    animation: dniFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dniFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dni-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dni-badge {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(129, 52, 175, 0.2));
    color: #ec4899;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.dni-secure-tag {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.dni-tool-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1.2;
}

.dni-tool-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dni-input-group {
    margin-bottom: 20px;
}

.dni-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dni-input-field {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.dni-input-field:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

.dni-btn-primary {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(221, 42, 123, 0.4);
    transition: all 0.3s ease;
}

.dni-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(221, 42, 123, 0.6);
}

.dni-output-container {
    margin-top: 25px;
    position: relative;
}

.dni-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.dni-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dni-copy-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

.dni-output-box {
    background: rgba(9, 13, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    min-height: 120px;
    font-family: 'Fira Code', monospace, sans-serif;
    font-size: 0.9rem;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
    box-sizing: border-box;
    line-height: 1.5;
}

.dni-output-box {
    background: #090d16;
    border: 1px solid var(--dni-border-dark);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    min-height: 120px;
    font-family: 'Courier New', Courier, monospace;
    color: #38bdf8;
    white-space: pre-wrap; /* Yeh line-breaks ko as-it-is show karegi */
    line-height: 1.6;
}

/* DNI Insta Metre - Elite SaaS Theme v2.0 */
:root {
    --dni-bg: #090d16;
    --dni-card-bg: #1e293b;
    --dni-border: #334155;
    --dni-text-main: #f8fafc;
    --dni-text-muted: #94a3b8;
    --dni-gradient-main: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    --dni-accent: #ec4899;
}

body {
    background-color: var(--dni-bg);
    color: var(--dni-text-main);
}

.dni-instameter-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #1e293b 0%, #090d16 60%);
    padding: 40px 20px;
    min-height: 85vh;
    border-radius: 20px;
    margin: 20px 0;
}

.dni-tool-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--dni-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    animation: dniCardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dniCardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dni-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dni-badge {
    background: rgba(236, 72, 153, 0.15);
    color: var(--dni-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.dni-secure-tag {
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
}

.dni-tool-title {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--dni-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.dni-tool-desc {
    color: var(--dni-text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.dni-input-group {
    margin-bottom: 20px;
}

.dni-input-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.dni-input-field, .dni-select-field, .dni-textarea-field {
    width: 100%;
    background: #0f172a;
    border: 2px solid var(--dni-border);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.dni-input-field:focus, .dni-select-field:focus, .dni-textarea-field:focus {
    border-color: var(--dni-accent);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
}

.dni-btn-primary {
    background: var(--dni-gradient-main);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(221, 42, 123, 0.4);
    transition: all 0.3s ease;
}

.dni-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(221, 42, 123, 0.6);
}

.dni-output-container {
    margin-top: 30px;
}

.dni-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dni-text-muted);
    font-weight: 600;
}

.dni-copy-btn {
    background: #334155;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dni-copy-btn:hover {
    background: var(--dni-accent);
}

.dni-output-box {
    background: #04060b;
    border: 1px solid var(--dni-border);
    border-radius: 12px;
    padding: 20px;
    min-height: 140px;
    font-family: 'Fira Code', monospace, monospace;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

/* ==========================================================================
   DNI INSTA METRE - GLOBAL ANIMATIONS & BRANDING EFFECTS v3.0
   ========================================================================== */

@keyframes dniGlowPulse {
    0% { filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(245, 133, 41, 0.8)); }
    100% { filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.4)); }
}

@keyframes dniFloatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes dniShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Elite Animated Logo */
.dni-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    animation: dniFloatAnim 4s ease-in-out infinite;
}

.dni-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(221, 42, 123, 0.5);
    animation: dniGlowPulse 3s infinite;
}

.dni-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Glassmorphism Header Bar */
.dni-site-header {
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dni-nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.dni-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.dni-nav-link:hover, .dni-nav-link.active {
    color: #ec4899;
    text-shadow: 0 0 10px rgba(236,72,153,0.4);
}

.dni-header-cta {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.3);
    transition: transform 0.2s ease;
}

.dni-header-cta:hover {
    transform: scale(1.05);
}

/* Glassmorphism Footer Bar */
.dni-site-footer {
    background: radial-gradient(circle at bottom, #1e293b 0%, #090d16 100%);
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

.dni-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dni-footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.dni-footer-badge-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
}

/* Glassmorphism Header Bar - Pixel-Perfect Alignment */
.dni-site-header {
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.dni-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.dni-actual-logo-img {
    height: 44px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.3));
    transition: transform 0.3s ease;
}

.dni-actual-logo-img:hover {
    transform: scale(1.03);
}

.dni-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* ==========================================================================
   DNI INSTA METRE - MASTER ENTERPRISE STYLES & CYBERPUNK THEME
   ========================================================================== */

:root {
    --dni-bg: #030712;
    --dni-card-bg: rgba(15, 23, 42, 0.98);
    --dni-border: rgba(56, 189, 248, 0.5);
    --dni-gradient: linear-gradient(135deg, #ff8a00 0%, #e52e71 50%, #8134af 100%);
    --dni-neon-blue: #38bdf8;
    --dni-neon-pink: #ec4899;
}

body {
    background-color: var(--dni-bg) !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* High Contrast Text Fix */
.dni-master-directory-wrap h1, 
.dni-master-directory-wrap h2, 
.dni-master-directory-wrap h3, 
.dni-master-directory-wrap p,
.dni-master-directory-wrap span,
.dni-master-directory-wrap a {
    color: #ffffff !important;
}

.dni-master-directory-wrap p {
    color: #e2e8f0 !important; 
}

/* Advanced Floating Animation */
@keyframes dniFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes dniNeonPulse {
    0% { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
    50% { border-color: rgba(236, 72, 153, 0.9); box-shadow: 0 0 35px rgba(236, 72, 153, 0.4); }
    100% { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
}

.dni-tool-item {
    background: var(--dni-card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dni-border) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    animation: dniFloat 5s ease-in-out infinite, dniNeonPulse 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dni-tool-item:hover {
    transform: translateY(-12px) scale(1.02) !important;
    animation-play-state: paused;
    border-color: var(--dni-neon-blue) !important;
    box-shadow: 0 30px 60px -15px rgba(221, 42, 123, 0.6), 0 0 40px rgba(56, 189, 248, 0.5) !important;
}

/* Hero Title */
.dni-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 10px 0 15px;
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 2px 5px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}

/* High-Tech Search Bar */
#dni-tool-search {
    background: rgba(9, 13, 22, 0.98) !important;
    border: 2px solid #38bdf8 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

#dni-tool-search::placeholder {
    color: #94a3b8 !important;
}

#dni-tool-search:focus {
    border-color: var(--dni-neon-pink) !important;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.5), inset 0 0 12px rgba(236, 72, 153, 0.2) !important;
}

/* Futuristic Launch Button */
.dni-launch-btn {
    background: var(--dni-gradient);
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
    transition: all 0.3s ease;
}

.dni-launch-btn:hover {
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.8);
    transform: translateY(-3px) scale(1.02);
}

/* Live Pulse Animation */
@keyframes dniPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dni-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: dniPulse 2s infinite;
}

/* ==========================================================================
   HEADER & LOGO PERFECT VISIBILITY STYLING
   ========================================================================== */

.dni-site-header {
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.dni-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(236, 72, 153, 0.5);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    transition: transform 0.3s ease;
}

.dni-brand-logo:hover {
    transform: scale(1.04);
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.dni-actual-logo-img {
    height: 50px !important; /* Fixed clear display size */
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain;
    display: block !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.dni-nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.dni-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.dni-nav-link:hover, .dni-nav-link.active {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56,189,248,0.5);
}

.dni-header-cta {
    background: var(--dni-gradient);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
    transition: all 0.3s ease;
}

.dni-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.7);
}

/* Footer Styling */
.dni-site-footer {
    background: radial-gradient(circle at bottom, #1e293b 0%, #030712 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    color: #94a3b8;
}

.dni-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dni-footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.dni-footer-badge-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
}

/* ==========================================================================
   DNI INSTA METRE - ULTIMATE CLEAN LOGO STYLING
   ========================================================================== */

.dni-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.dni-brand-logo:hover {
    border-color: #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
}

.dni-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px; /* Header ke andar perfect fit height */
    overflow: hidden;
}

.dni-actual-logo-img {
    height: 110px !important; /* Container se badi height taaki andar ki whitespace crop ho jaye */
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block !important;
    transform: scale(1.6); /* Logo ko screen par bada aur khilkar dikhane ke liye */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.dni-logo-fallback-text {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   DNI INSTA METRE - FINAL MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* 1. Prevent Horizontal Scroll & Right Side Gap */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Force WordPress Wrappers to Fill Screen Cleanly */
    .site, .site-content, .content-area, .entry-content,
    .dni-master-directory-wrap,
    .dni-instameter-wrap,
    .dni-tool-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 3. Eliminate Gap Between Header and Hero Section */
    .dni-site-header {
        position: relative !important;
        top: 0 !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Compress Logo for Mobile Header */
    .dni-brand-logo {
        padding: 4px 8px !important;
        gap: 6px !important;
    }

    .dni-actual-logo-img {
        height: 30px !important;
        max-height: 35px !important;
        width: auto !important;
    }

    /* Compress Nav Links to Fit Side-by-Side without Breaking */
    .dni-nav-links {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .dni-nav-link {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
    }

    .dni-header-cta {
        padding: 5px 10px !important;
        font-size: 0.68rem !important;
        white-space: nowrap !important;
    }

    /* 4. Remove Top Margin from Hero Content */
    .dni-card-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 6px !important;
    }

    .dni-hero-title {
        font-size: 1.8rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        line-height: 1.15 !important;
    }

    .dni-tool-desc {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }

    /* 5. Force All Grid Layouts to Single Column Stack */
    [style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* 6. Lock Form Inputs and Output Boxes within Screen Bounds */
    .dni-input-field, 
    .dni-select-field, 
    .dni-textarea-field,
    .dni-output-box,
    .dni-tool-form-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   DNI INSTA METRE - ULTIMATE MOBILE GAP & ALIGNMENT FIX v5.0
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* 1. Global Viewport & Overflow Lock */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Kill WordPress Theme Gaps & Margins */
    .site, .site-content, .content-area, .entry-content, .site-header,
    .dni-master-directory-wrap,
    .dni-instameter-wrap,
    .dni-tool-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 3. COMPLETELY ELIMINATE GAP BETWEEN HEADER AND HERO SECTION */
    .dni-site-header {
        position: relative !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 6px 10px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(9, 13, 22, 0.98) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
    }

    /* Compact Logo & Nav for Mobile Header */
    .dni-brand-logo {
        padding: 2px 6px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    .dni-actual-logo-img {
        height: 28px !important;
        max-height: 32px !important;
        width: auto !important;
    }

    .dni-nav-links {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dni-nav-link {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        padding: 0 !important;
    }

    .dni-header-cta {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }

    /* 4. REMOVE TOP GAP INSIDE HERO CARD / CONTAINER */
    .dni-instameter-wrap {
        padding: 4px 8px !important;
        margin-top: 0 !important;
    }

    .dni-tool-card {
        margin-top: 2px !important;
        padding: 12px 10px !important;
        border-radius: 10px !important;
    }

    .dni-card-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 6px !important;
    }

    .dni-hero-title {
        font-size: 1.7rem !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
    }

    .dni-tool-desc {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    /* 5. Force All Grids & Flex containers to Single Column without right overflow */
    [style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* 6. Lock inputs, buttons and output boxes */
    .dni-input-field, 
    .dni-select-field, 
    .dni-textarea-field,
    .dni-output-box,
    .dni-tool-form-area,
    .dni-btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   DNI INSTA METRE - WIDE FLUID & MOBILE RESPONSIVE ENGINE
   ========================================================================== */

:root {
    --dni-bg: #030712;
    --dni-card-bg: rgba(15, 23, 42, 0.98);
    --dni-border: rgba(56, 189, 248, 0.5);
    --dni-gradient: linear-gradient(135deg, #ff8a00 0%, #e52e71 50%, #8134af 100%);
    --dni-neon-blue: #38bdf8;
    --dni-neon-pink: #ec4899;
}

/* Global Reset & Overflow Lockdown */
html, body {
    background-color: var(--dni-bg) !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

*, *:before, *:after {
    box-sizing: border-box !important;
}

/* Desktop Master Container (Strict 1240px Standard) */
.dni-master-directory-wrap,
.dni-instameter-wrap {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
}

/* Tool Cards Wide Layout */
.dni-tool-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--dni-border);
    border-radius: 20px;
    padding: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* High Contrast Text Fix */
.dni-master-directory-wrap h1, 
.dni-master-directory-wrap h2, 
.dni-master-directory-wrap h3, 
.dni-master-directory-wrap p,
.dni-master-directory-wrap span,
.dni-master-directory-wrap a {
    color: #ffffff !important;
}

.dni-master-directory-wrap p {
    color: #e2e8f0 !important; 
}

/* Hero Title */
.dni-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 10px 0 15px;
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 2px 5px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}

/* High-Tech Search Bar */
#dni-tool-search {
    background: rgba(9, 13, 22, 0.98) !important;
    border: 2px solid #38bdf8 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

#dni-tool-search::placeholder {
    color: #94a3b8 !important;
}

#dni-tool-search:focus {
    border-color: var(--dni-neon-pink) !important;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.5), inset 0 0 12px rgba(236, 72, 153, 0.2) !important;
}

/* Futuristic Launch Button */
.dni-launch-btn {
    background: var(--dni-gradient);
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
    transition: all 0.3s ease;
}

.dni-launch-btn:hover {
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.8);
    transform: translateY(-2px) scale(1.01);
}

/* Header Styling */
.dni-site-header {
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    width: 100%;
    box-sizing: border-box;
}

.dni-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
}

.dni-actual-logo-img {
    height: 42px !important;
    width: auto !important;
    object-fit: contain;
    display: block !important;
}

.dni-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dni-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.dni-nav-link:hover, .dni-nav-link.active {
    color: #38bdf8;
}

.dni-header-cta {
    background: var(--dni-gradient);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
}

/* ==========================================================================
   MOBILE WIDE & GAP-FREE OVERRIDES (FIXING NARROW TOOLS & GAPS)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Force 100% Fluid Width on Mobile so tools don't look narrow/pinched */
    .dni-master-directory-wrap,
    .dni-instameter-wrap,
    .dni-tool-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-sizing: border-box !important;
    }

    /* Completely eliminate header gap */
    .dni-site-header {
        position: relative !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 10px 15px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .dni-brand-logo {
        padding: 4px 8px !important;
    }

    .dni-actual-logo-img {
        height: 32px !important;
    }

    .dni-nav-links {
        gap: 10px !important;
    }

    .dni-nav-link {
        font-size: 0.72rem !important;
    }

    .dni-header-cta {
        padding: 6px 12px !important;
        font-size: 0.72rem !important;
    }

    /* Zero out top spacing inside tool card */
    .dni-card-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .dni-hero-title {
        font-size: 2.2rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Stack grid elements to full width */
    [style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .dni-input-field, 
    .dni-select-field, 
    .dni-textarea-field,
    .dni-output-box,
    .dni-tool-form-area,
    .dni-btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}