/* ============================================================
   Pikachu Hosting - Mobile nav sheet (full-screen) + Dark mode
   Loaded last so it overrides the theme. Dark mode is gated on
   html[data-theme="dark"] so the default light site is untouched.
   ============================================================ */

/* ========== MOBILE NAV: full-screen sheet (testabc style) ========== */
.tgmobile__menu.pk-msheet-wrap {
    position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100%; height: 100%; height: 100dvh;
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 1060; visibility: hidden; opacity: 1; padding: 0; margin: 0; overflow: hidden;
}
body.mobile-menu-visible .tgmobile__menu.pk-msheet-wrap { transform: translateX(0); visibility: visible; }

.pk-msheet {
    position: relative; width: 100%; height: 100%;
    background: #ffffff; display: flex; flex-direction: column;
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pk-msheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 6px; }
.pk-msheet-logo { display: inline-flex; align-items: center; }
.pk-msheet-logo img { height: 30px; width: auto; display: block; }
.pk-msheet-close {
    background: transparent; border: 0; color: #131415; padding: 6px; margin: -6px;
    cursor: pointer; line-height: 0; border-radius: 10px;
}
.pk-msheet-close:active { background: rgba(0,0,0,.06); }

.pk-msheet-body { display: flex; flex-direction: column; padding-top: 2px; }
.pk-msheet-theme,
.pk-msheet-link {
    display: flex; align-items: center; min-height: 54px;
    font-size: 16px; font-weight: 600; color: #131415; letter-spacing: -0.01em;
    text-decoration: none; border-bottom: 1px solid #eef0f2;
}
.pk-msheet-theme { justify-content: space-between; }
.pk-msheet-link { transition: color .15s; }
.pk-msheet-link:hover, .pk-msheet-link:focus { color: var(--tg-theme-primary); }

.pk-msheet-foot { margin-top: auto; padding-top: 20px; }
.pk-msheet-login {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
    background: var(--tg-theme-primary); color: #fff !important; font-weight: 700; font-size: 16px;
    border-radius: 999px; text-decoration: none; transition: filter .15s;
}
.pk-msheet-login:hover, .pk-msheet-login:focus { color: #fff; filter: brightness(.95); }
.pk-msheet-legal { display: flex; gap: 22px; justify-content: center; margin-top: 18px; }
.pk-msheet-legal a { font-size: 14px; color: #767982; text-decoration: none; }
.pk-msheet-legal a:hover { color: #131415; }

/* ===== TEMP: dark-theme toggle hidden until dark-mode logo/polish is done. Delete the ONE rule on the next line to bring it back. ===== */
.pk-msheet-theme { display: none !important; }

/* theme toggle switch */
.pk-theme-toggle {
    position: relative; width: 46px; height: 26px; border-radius: 999px; border: 0;
    background: #d7dbe0; cursor: pointer; padding: 0; flex: 0 0 auto; transition: background .2s;
}
.pk-theme-toggle[aria-checked="true"] { background: var(--tg-theme-primary); }
.pk-theme-knob {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.pk-theme-toggle[aria-checked="true"] .pk-theme-knob { transform: translateX(20px); }

/* keep the plain backdrop out of the way (sheet is opaque & full screen) */
.tgmobile__menu-backdrop { z-index: 1055; }

/* ========== DARK MODE (only when html[data-theme="dark"]) ========== */
html[data-theme="dark"] {
    --tg-body-color: #c3c8d1;
    --tg-heading-color: #f1f4f8;
    --tg-color-white-default: #1a1d24;
    --tg-color-gray-3: #14171c;
    --tg-color-gray-6: #14171c;
    --tg-color-gray-8: #14171c;
    --tg-color-gray-10: #14171c;
    --tg-color-anti-flash-default: #14171c;
    --tg-border-1: #2a2f37;
    --tg-border-2: #2a2f37;
    --tg-border-4: #2a2f37;
    --tg-border-5: #2a2f37;
}

/* page base */
html[data-theme="dark"] body,
html[data-theme="dark"] body.pk-body { background: #0e1014 !important; color: #c3c8d1; }
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .ca-area,
html[data-theme="dark"] .pk-main,
html[data-theme="dark"] .banner__area-three { background: #0e1014 !important; }

/* light-grey sections -> mid dark */
html[data-theme="dark"] .pk-included,
html[data-theme="dark"] .pk-domain-band,
html[data-theme="dark"] .section__title,
html[data-theme="dark"] [class*="grey-bg"],
html[data-theme="dark"] [class*="gray-bg"],
html[data-theme="dark"] .ca-area.pk-main > .container > div { background-color: #14171c !important; }

/* cards / boxes / panels -> raised dark surface */
html[data-theme="dark"] .pricing__box,
html[data-theme="dark"] [class*="pricing__box"],
html[data-theme="dark"] [class*="__item"],
html[data-theme="dark"] [class*="-card"],
html[data-theme="dark"] [class*="__card"],
html[data-theme="dark"] [class*="-box"]:not(.pk-msheet-body),
html[data-theme="dark"] .card,
html[data-theme="dark"] .ts-card,
html[data-theme="dark"] .pk-card {
    background-color: #1a1d24 !important;
    border-color: #2a2f37 !important;
    box-shadow: none !important;
}

/* header */
html[data-theme="dark"] header,
html[data-theme="dark"] .tg-header__area,
html[data-theme="dark"] .tgheader-area,
html[data-theme="dark"] .tgmenu__wrap,
html[data-theme="dark"] #sticky-header,
html[data-theme="dark"] .header-fixed-area { background-color: #0e1014 !important; border-color: #2a2f37 !important; }

/* text */
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] .title, html[data-theme="dark"] .section__title .title { color: #f1f4f8 !important; }
html[data-theme="dark"] p, html[data-theme="dark"] li, html[data-theme="dark"] span,
html[data-theme="dark"] td, html[data-theme="dark"] label, html[data-theme="dark"] .pk-nav-link,
html[data-theme="dark"] .tgmenu__navbar-wrap ul li a { color: #c3c8d1; }
html[data-theme="dark"] a { color: #d6dae1; }
html[data-theme="dark"] .pk-nav-link:hover,
html[data-theme="dark"] a:hover { color: var(--tg-theme-primary); }

/* borders / dividers */
html[data-theme="dark"] hr,
html[data-theme="dark"] [class*="border"],
html[data-theme="dark"] .tgmenu__wrap { border-color: #2a2f37 !important; }

/* form controls */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background-color: #1a1d24 !important; color: #e8ebf0 !important; border-color: #2a2f37 !important;
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #7b828d !important; }

/* footer (usually dark already, keep consistent) */
html[data-theme="dark"] .footer__area, html[data-theme="dark"] footer { background-color: #0a0c0f !important; }

/* the mobile sheet itself in dark */
html[data-theme="dark"] .pk-msheet { background: #14171c; }
html[data-theme="dark"] .pk-msheet-theme,
html[data-theme="dark"] .pk-msheet-link { color: #f1f4f8; border-bottom-color: #262b33; }
html[data-theme="dark"] .pk-msheet-close { color: #f1f4f8; }
html[data-theme="dark"] .pk-msheet-legal a { color: #8a919c; }

/* keep brand green buttons readable; keep cPanel/logos as-is */
html[data-theme="dark"] .tg-btn, html[data-theme="dark"] .pk-msheet-login { color: #fff !important; }
