/* ==========================================================
   Whois Data Tech - shared header / footer / modals
   All classes are prefixed "wdt-" so they never clash with
   Tailwind, Bootstrap or the page-specific stylesheets.
   ========================================================== */

.wdt-site-header, .wdt-site-header *, .wdt-footer, .wdt-footer *, .wdt-modal, .wdt-modal *, .wdt-float-chat {
    box-sizing: border-box;
}
.wdt-site-header, .wdt-footer, .wdt-modal, .wdt-float-chat {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.5;
}
.wdt-site-header ul, .wdt-footer ul { list-style: none; margin: 0; padding: 0; }
.wdt-site-header a, .wdt-footer a { text-decoration: none; }
.wdt-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.wdt-topbar { background: #0f172a; color: #94a3b8; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #334155; }
.wdt-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wdt-topbar__info span { margin-right: 20px; }
.wdt-topbar__info i { color: #f97316; margin-right: 6px; }
.wdt-topbar__actions { display: flex; gap: 8px; }
.wdt-topbar__actions button {
    background: #f97316; color: #fff; border: 0; border-radius: 4px; padding: 4px 12px;
    font: 600 12px 'Inter', sans-serif; cursor: pointer; transition: background .2s;
}
.wdt-topbar__actions button:hover { background: #ea580c; }

/* ---------- Main nav ---------- */
.wdt-nav { background: rgba(255,255,255,.97); border-bottom: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 1000; }
.wdt-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }

.wdt-logo { display: flex; align-items: center; gap: 12px; color: #0f2552; }
.wdt-logo__icon {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f2552, #1e40af); color: #ff6b00; font-size: 18px; box-shadow: 0 2px 6px rgba(15,37,82,.25);
}
.wdt-logo__icon--sm { width: 32px; height: 32px; border-radius: 8px; background: #ff6b00; color: #fff; font-size: 14px; margin-right: 10px; }
.wdt-logo__text { display: flex; flex-direction: column; }
.wdt-logo__text strong { font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: #0f2552; line-height: 1.1; }
.wdt-logo__text strong span { color: #ff6b00; }
.wdt-logo__text small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; }

.wdt-menu { display: flex; align-items: center; gap: 6px; }
.wdt-menu__item { position: relative; }
.wdt-menu__link {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 14px; font-weight: 600;
    color: #475569; border-radius: 8px; transition: color .2s, background .2s;
}
.wdt-menu__link i { font-size: 10px; transition: transform .2s; }
.wdt-menu__link:hover, .wdt-menu__item.is-active > .wdt-menu__link { color: #ff6b00; }
.wdt-menu__item.is-active > .wdt-menu__link { box-shadow: inset 0 -2px 0 #ff6b00; border-radius: 0; }

.wdt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 8px;
    background: #ff6b00; color: #fff !important; font: 700 13px 'Inter', sans-serif; cursor: pointer; transition: background .2s;
    box-shadow: 0 2px 6px rgba(255,107,0,.3);
}
.wdt-btn:hover { background: #e05d00; }
.wdt-btn--block { display: flex; width: 100%; }
.wdt-menu__item--cta { margin-left: 6px; }
.wdt-menu__item--cta .wdt-btn { background: #0f2552; box-shadow: 0 2px 6px rgba(15,37,82,.3); }
.wdt-menu__item--cta .wdt-btn:hover { background: #1e40af; }
.wdt-menu__item--cta.is-active .wdt-btn { background: #ff6b00; }

/* dropdown */
.wdt-submenu {
    position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 16px 32px -8px rgba(15,37,82,.2); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .18s ease; z-index: 1001;
}
.wdt-has-sub:hover > .wdt-submenu, .wdt-has-sub.is-open > .wdt-submenu { opacity: 1; visibility: visible; transform: none; }
.wdt-has-sub:hover > .wdt-menu__link i, .wdt-has-sub.is-open > .wdt-menu__link i { transform: rotate(180deg); }
.wdt-submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; font-weight: 500; color: #334155; }
.wdt-submenu a i { width: 16px; text-align: center; color: #ff6b00; font-size: 12px; }
.wdt-submenu a:hover, .wdt-submenu a.is-active { background: #fff7ed; color: #ff6b00; }
.wdt-submenu a.is-active { font-weight: 700; }

.wdt-burger { display: none; background: none; border: 0; font-size: 22px; color: #475569; cursor: pointer; padding: 8px; border-radius: 8px; }
.wdt-burger:hover { background: #f1f5f9; color: #0f2552; }

/* ---------- Footer ---------- */
.wdt-footer { background: #0f172a; color: #cbd5e1; padding: 0 0 20px; margin-top: 0; font-size: 13px; }
.wdt-footer {
    position: relative;      /* ribbon is positioned against the footer itself */
    padding-top: 50px;       /* space between the footer's top edge and the logo */
}

.wdt-footer__ribbon {
    position: absolute;
    left: max(20px, calc((100% - 1200px) / 2));   /* lines up with the content */
    bottom: 100%;            /* sits fully above the dark background */
    background: #ff6b00;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 10px 10px 0 0;
    margin: 0;
}
.wdt-footer__brand .wdt-logo__icon--sm {
    color: #fff;
}
.wdt-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid #1e293b; }
.wdt-footer__col h4 {
    color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    border-left: 3px solid #ff6b00; padding-left: 10px; margin: 0 0 16px;
}
.wdt-footer__col p { color: #94a3b8; line-height: 1.7; margin: 14px 0 18px; }
.wdt-footer__col li { margin-bottom: 9px; }
.wdt-footer__col a { color: #cbd5e1; transition: color .2s; }
.wdt-footer__col a:hover { color: #ff6b00; }
.wdt-footer__col li a i { color: #ff6b00; font-size: 10px; margin-right: 6px; }
.wdt-footer__brand { display: inline-flex; align-items: center; color: #fff !important; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.wdt-footer__brand span { color: #ff6b00; }
.wdt-social { display: flex; gap: 10px; }
.wdt-social a { width: 34px; height: 34px; border-radius: 50%; background: #1e293b; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.wdt-social a:hover { background: #ff6b00; }
.wdt-pay li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #1e293b; border: 1px solid #334155; border-radius: 8px; }
.wdt-pay i { font-size: 18px; color: #fbbf24; }
.wdt-footer .wdt-btn--block { margin-top: 16px; }
.wdt-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; color: #64748b; font-size: 12px; }
.wdt-footer__bottom a { color: #64748b; margin-left: 18px; }
.wdt-footer__bottom a:hover { color: #ff6b00; }

/* ---------- Floating chat ---------- */
.wdt-float-chat {
    position: fixed; right: 20px; bottom: 20px; z-index: 990; background: #ff6b00; color: #fff; border: 0; border-radius: 999px;
    padding: 12px 20px; font: 700 13px 'Inter', sans-serif; cursor: pointer; box-shadow: 0 8px 20px rgba(255,107,0,.4); display: flex; align-items: center; gap: 8px;
}
.wdt-float-chat:hover { background: #e05d00; }

/* ---------- Modals ---------- */
.wdt-modal { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 2000; }
.wdt-modal.is-open { display: flex; }
.wdt-modal__box { position: relative; background: #fff; color: #0f172a; width: 100%; max-width: 440px; border-radius: 14px; padding: 28px 26px; box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.wdt-modal__box--center { text-align: center; }
.wdt-modal__box h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: #0f2552; }
.wdt-modal__box h3 i, .wdt-modal__icon { color: #ff6b00; }
.wdt-modal__icon { font-size: 40px; margin-bottom: 12px; }
.wdt-modal__box p { color: #64748b; font-size: 14px; margin: 0 0 16px; }
.wdt-modal__close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 18px; color: #94a3b8; cursor: pointer; }
.wdt-modal__close:hover { color: #0f172a; }
.wdt-modal form label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 12px; }
.wdt-modal form input, .wdt-modal form textarea {
    display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: 14px 'Inter', sans-serif; color: #0f172a;
}
.wdt-modal form input:focus, .wdt-modal form textarea:focus { outline: 2px solid #ff6b00; border-color: transparent; }
.wdt-modal__ok { color: #059669 !important; font-weight: 600; margin-top: 12px !important; }

/* ---------- Auth pages (login / register) ---------- */
.wdt-auth { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 56px 16px; background: #f8fafc; font-family: 'Inter', system-ui, sans-serif; }
.wdt-auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 34px 30px; box-shadow: 0 12px 28px -12px rgba(15,37,82,.18); }
.wdt-auth__card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #0f2552; }
.wdt-auth__card > p { margin: 0 0 22px; color: #64748b; font-size: 14px; }
.wdt-auth__card label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: #334155; }
.wdt-auth__card input[type=text], .wdt-auth__card input[type=email], .wdt-auth__card input[type=password] {
    display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: 14px 'Inter', sans-serif;
}
.wdt-auth__card input:focus { outline: 2px solid #ff6b00; border-color: transparent; }
.wdt-auth__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 18px; color: #64748b; }
.wdt-auth__row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.wdt-auth__row a, .wdt-auth__alt a { color: #ff6b00; font-weight: 600; }
.wdt-auth__alt { text-align: center; margin-top: 18px; font-size: 13px; color: #64748b; }
.wdt-auth__ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .wdt-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .wdt-burger { display: block; }
    .wdt-menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 20px rgba(0,0,0,.08); padding: 8px 20px 18px; max-height: calc(100vh - 120px); overflow-y: auto;
    }
    .wdt-menu.is-open { display: flex; }
    .wdt-menu__link { padding: 12px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid #f1f5f9; border-radius: 0; }
    .wdt-menu__item.is-active > .wdt-menu__link { box-shadow: none; }
    .wdt-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 10px; display: none; min-width: 0; }
    .wdt-has-sub:hover > .wdt-submenu { display: none; }
    .wdt-has-sub.is-open > .wdt-submenu { display: block; }
    .wdt-menu__item--cta { margin: 12px 0 0; }
    .wdt-menu__item--cta .wdt-btn { width: 100%; }
}
@media (max-width: 640px) {
    .wdt-hide-sm { display: none; }
    .wdt-footer__grid { grid-template-columns: 1fr; }
    .wdt-topbar__info span { margin-right: 0; }
    .wdt-float-chat span { display: none; }
}
