/* Intshar free tools — nav button + dropdown (all selectors prefixed .ift-) */
.ift-btn{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px;border-radius:999px;border:1px solid #43e08a;background:rgba(67,224,138,.14);color:#43e08a;font:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap;box-shadow:0 0 10px rgba(67,224,138,.2);transition:background .2s,box-shadow .2s,color .2s,border-color .2s;vertical-align:middle;-webkit-tap-highlight-color:transparent;width:auto!important;max-width:max-content!important;flex:0 0 auto!important}
.ift-btn:hover,.ift-btn[aria-expanded="true"]{background:rgba(67,224,138,.24);box-shadow:0 0 16px rgba(67,224,138,.4)}
.ift-btn:focus-visible{outline:2px solid #43e08a;outline-offset:2px}
.ift-btn svg, .ift-panel svg{flex:none;display:block!important;visibility:visible!important;opacity:1!important}
.ift-btn svg{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;stroke:#43e08a!important}
.ift-btn .ift-chev{width:10px!important;height:10px!important;min-width:10px!important;max-width:10px!important;transition:transform .2s;stroke:#43e08a!important}
.ift-btn[aria-expanded="true"] .ift-chev{transform:rotate(180deg)}
.ift-btn--slot{margin-inline:3px}
.ift-btn--mobile{height:28px;padding:0 7px;font-size:11px;gap:3px;margin-inline:0}
.ift-btn--mobile svg{width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important}
.ift-btn--mobile .ift-chev{display:none}
@media (max-width: 374.98px) {
    .ift-btn--mobile{height:26px;padding:0 6px;font-size:10px;gap:2px}
    .ift-btn--mobile svg{width:11px!important;height:11px!important;min-width:11px!important;max-width:11px!important}
}
.ift-nav-item{flex:0 0 auto!important;width:auto!important;display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important}
.custom-fullscreen-menu .menu-links li.ift-drawer-item,
.custom-fullscreen-menu.active .menu-links li.ift-drawer-item{display:flex!important;justify-content:center!important;align-items:center!important;padding:8px 0!important;margin:0!important;width:100%!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
.custom-fullscreen-menu .menu-links .ift-btn--drawer{width:100%!important;max-width:100%!important;justify-content:center!important;height:42px!important;padding:0 16px!important;border-radius:12px!important;font-size:14.5px!important;gap:7px!important;margin:0!important;background:rgba(67,224,138,.14)!important;border-color:#43e08a!important;color:#43e08a!important;box-shadow:0 0 14px rgba(67,224,138,.22)!important}
.custom-fullscreen-menu .menu-links .ift-btn--drawer svg{stroke:#43e08a!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important}
.custom-fullscreen-menu .menu-links .ift-btn--drawer .ift-chev{width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .ift-btn {
        height: 26px;
        padding: 0 7px;
        font-size: 11.5px;
        gap: 3px;
    }
    .ift-btn--slot {
        margin-inline: 2px;
    }
}

/* Light mode & light navbar overrides (high contrast on white background) */
body.light-mode .ift-btn,
html.light .ift-btn,
body:not(.dark-mode) .ift-btn {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
    box-shadow: 0 1px 4px rgba(16,185,129,.18) !important;
}
body.light-mode .ift-btn svg,
html.light .ift-btn svg,
body:not(.dark-mode) .ift-btn svg {
    stroke: #047857 !important;
}
body.light-mode .ift-btn:hover,
body.light-mode .ift-btn[aria-expanded="true"],
html.light .ift-btn:hover,
html.light .ift-btn[aria-expanded="true"],
body:not(.dark-mode) .ift-btn:hover,
body:not(.dark-mode) .ift-btn[aria-expanded="true"] {
    background: #d1fae5 !important;
    border-color: #059669 !important;
    color: #065f46 !important;
    box-shadow: 0 2px 10px rgba(16,185,129,.28) !important;
}

/* Dark mode explicit overrides */
body.dark-mode .ift-btn,
html.dark .ift-btn {
    background: rgba(67,224,138,.14) !important;
    border-color: #43e08a !important;
    color: #43e08a !important;
    box-shadow: 0 0 12px rgba(67,224,138,.25) !important;
}
body.dark-mode .ift-btn svg,
html.dark .ift-btn svg {
    stroke: #43e08a !important;
}
body.dark-mode .ift-btn:hover,
body.dark-mode .ift-btn[aria-expanded="true"],
html.dark .ift-btn:hover,
html.dark .ift-btn[aria-expanded="true"] {
    background: rgba(67,224,138,.24) !important;
    box-shadow: 0 0 18px rgba(67,224,138,.45) !important;
}

.ift-panel{position:fixed;z-index:99999;top:0;left:0;width:300px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:10px;border-radius:18px;background:#15103a;border:1px solid rgba(201,188,255,.22);box-shadow:0 24px 60px rgba(0,0,0,.55);font-family:inherit;direction:rtl;text-align:right;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .16s,transform .16s;visibility:hidden}
.ift-panel[dir="ltr"]{direction:ltr;text-align:left}
.ift-panel.ift-open{opacity:1;transform:none;pointer-events:auto;visibility:visible}
.ift-panel *{box-sizing:border-box}
.ift-arrow{position:absolute;top:-8px;width:14px;height:14px;background:#15103a;border-top:1px solid rgba(201,188,255,.22);border-left:1px solid rgba(201,188,255,.22);transform:rotate(45deg)}
.ift-title{font-size:12px;font-weight:700;color:#b9b2d9;padding:4px 8px 8px;line-height:1.5}
.ift-item{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;color:#fff !important;text-decoration:none !important;transition:background .15s}
.ift-item + .ift-item{margin-top:2px}
.ift-item:hover,.ift-item:focus-visible{background:rgba(139,108,255,.16);outline:none}
.ift-ico{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}
.ift-ico svg{display:block!important;width:20px!important;height:20px!important;visibility:visible!important;opacity:1!important}
.ift-name{flex:1;min-width:0;font-size:14.5px;font-weight:700;line-height:1.3;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ift-free{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 9px;border-radius:999px;background:#43e08a;color:#062b17;font-size:11.5px;font-weight:800;line-height:1}
.ift-ext{flex:none;display:block!important;width:13px!important;height:13px!important;visibility:visible!important;opacity:1!important}

/* Light mode panel overrides */
body.light-mode .ift-panel,
html.light .ift-panel,
body:not(.dark-mode) .ift-panel {
    background: #ffffff !important;
    border-color: rgba(123,96,251,.25) !important;
    box-shadow: 0 18px 48px rgba(33,22,63,.18) !important;
}
body.light-mode .ift-arrow,
html.light .ift-arrow,
body:not(.dark-mode) .ift-arrow {
    background: #ffffff !important;
    border-top-color: rgba(123,96,251,.25) !important;
    border-left-color: rgba(123,96,251,.25) !important;
}
body.light-mode .ift-title,
html.light .ift-title,
body:not(.dark-mode) .ift-title {
    color: #64748b !important;
}
body.light-mode .ift-name,
html.light .ift-name,
body:not(.dark-mode) .ift-name {
    color: #1e1b4b !important;
}
body.light-mode .ift-item:hover,
html.light .ift-item:hover,
body:not(.dark-mode) .ift-item:hover {
    background: rgba(123,96,251,.08) !important;
}

@media (max-width:480px){.ift-btn--slot{height:30px;padding:0 8px;font-size:12px;gap:5px;margin-inline:4px}}
@media (prefers-reduced-motion:reduce){.ift-panel,.ift-btn,.ift-btn .ift-chev{transition:none}}
