/*
Theme Name: MyArcadeTheme Child (Poki Style)
Theme URI: https://mugeri.com/
Description: A modern, minimalist child theme inspired by Poki.com.
Author: Antigravity
Author URI: https://mugeri.com/
Template: myarcadetheme
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: myarcadetheme-child
*/

/* --- Poki Style Core Design System --- */

:root {
    --bg-color: #f1e1ff;
    --card-bg: #ffffff;
    --border-radius: 18px;
    --primary-color: #00375a;
    --poki-blue: #00d2ff;
    --accent-color: #39f2d1;
    --text-color: #222;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --grid-gap: 12px;
}

body {
    background: var(--bg-color) !important;
    background-attachment: fixed !important;
    color: var(--text-color);
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Poki Decorative Background --- */
.poki-home-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.poki-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.4);
}

.poki-blob-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(57, 242, 209, 0.2) 70%);
}

.poki-blob-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: -50px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.poki-blob-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(0, 210, 255, 0.1) 70%);
}

/* Hide Parent Clutter */
.hdcn-1,
.hdcn-2,
.hdcn-3,
.hdcn-4,
.hdcn-5,
.sidebar_right,
.sidebar_left,
.sdbr-cn,
.myarcadetheme_sidebar,
.cntcls,
.cont {
    display: none !important;
}

/* --- Sticky Header Tile --- */
header#poki-header {
    position: fixed;
    z-index: 1000;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.logo-tile-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 2px solid #f8f8f8;
}

.poki-logo-link {
    display: block;
    width: 100%;
}

.poki-text-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1.5px;
    text-align: center;
}

.poki-logo-link img,
.custom-logo-link img {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.header-icons-tile {
    display: flex;
    height: 48px;
}

.header-icons-tile .header-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 0;
    height: 100%;
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.header-icons-tile .header-icon:first-child {
    border-right: 2px solid #f8f8f8;
}

.header-icons-tile .header-icon:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

/* Header Utility Nav */
.poki-utility-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.poki-utility-nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.poki-utility-nav ul li a:hover {
    color: var(--poki-blue);
}

/* Header Icons (Rounded Square buttons) */
.header-icons {
    display: flex;
    gap: 15px;
}

.header-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    border: 2.5px solid #f2f2f2;
}

.header-icon:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
    transform: scale(1.05);
}

.search-trigger {
    color: #555;
}

.account-icon {
    color: #555;
}

/* --- Game Grid Layout --- */
.poki-grid-container {
    padding: 30px 40px;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* Sidebar Specific Grid Overrides */
.poki-sb-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 90px !important;
    gap: 10px !important;
}

.poki-sb-grid .poki-game-card.featured {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.poki-sb-grid .poki-game-title {
    font-size: 11px !important;
}

.poki-game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0px 7px 10px 4px #5d6b844d;
    cursor: pointer;
}

/* Featured Tile (2x2) */
.poki-game-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 24px;
}

.poki-game-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.poki-game-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.poki-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.poki-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.poki-game-card:hover .poki-thumb-img {
    transform: scale(1.1);
}

/* Title Overlay on Hover */
.poki-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
    z-index: 5;
}

.poki-game-card:hover .poki-title-overlay {
    opacity: 1;
}

.poki-game-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.poki-game-card.featured .poki-game-title {
    font-size: 18px;
}

/* --- Poki Footer Redesign --- */
footer#poki-footer {
    background: #fff;
    margin-top: 120px;
    position: relative;
    padding-bottom: 60px;
    border: none;
}

.poki-footer-slant {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(176deg, rgba(0, 210, 255, 0.08) 50%, #fff 50.5%);
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand .poki-text-logo {
    font-size: 32px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 30px 0;
}

.footer-localizer {
    margin-bottom: 30px;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 2.5px solid var(--poki-blue);
    border-radius: 35px;
    font-weight: 800;
    color: var(--poki-blue);
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.lang-selector:hover {
    background: rgba(0, 210, 255, 0.05);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 55, 90, 0.25);
}

.footer-heading {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #b0bfca;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 14px;
}

.footer-menu li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 15px;
    transition: var(--transition);
}

.footer-menu li a:hover {
    color: var(--poki-blue);
}

/* Single Page Container */
.poki-page-container {
    padding: 80px 60px;
    max-width: 900px;
    margin: 60px auto 100px auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.poki-page-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1.5px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--primary-color);
    font-weight: 800;
    margin: 45px 0 20px 0;
    letter-spacing: -0.5px;
}

.entry-content h2 {
    font-size: 30px;
}

.entry-content h3 {
    font-size: 24px;
}

.entry-content ul,
.entry-content ol {
    margin: 25px 0;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 12px;
    position: relative;
}

.entry-content strong {
    color: #222;
    font-weight: 700;
}

.single-game-info-mobile {
    display: none !important;
}


/* --- Theater Mode (Single Game) --- */

#poki-theater-mode {
    display: flex;
    gap: 14px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.poki-single-sidebar {
    width: 140px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Single Page Grid Overrides to match Header Box (140x130) */
#poki-theater-mode .poki-grid {
    grid-template-columns: repeat(auto-fill, 140px);
    grid-auto-rows: 130px;
    gap: 12px;
}

/* Non-featured bottom grid cards: let grid control the size */
#poki-theater-mode .poki-game-card:not(.featured):not(.sidebar-tile) {
    width: auto !important;
    height: auto !important;
}

#poki-theater-mode .poki-game-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    /* Width/height derived from grid for featured 2x2 */
}


.sidebar-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: none;
    flex: 1;
}

.sidebar-game-list::-webkit-scrollbar {
    display: none;
}

/* Sidebar tiles: exactly match the header box dimensions */
.sidebar-tile {
    width: 140px !important;
    height: 130px !important;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: var(--card-bg);
}

.sidebar-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.sidebar-tile .poki-thumbnail {
    width: 140px;
    height: 130px;
}

.sidebar-tile a {
    display: block;
    width: 140px;
    height: 130px;
    text-decoration: none !important;
}

.sb-game-tile {
    width: 140px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    flex-shrink: 0;
}

.sb-game-tile:hover {
    transform: scale(1.08);
}

.sb-game-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content Area */
#poki-player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#poki-player-wrapper {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

/* Play Box Launcher */
.poki-play-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.poki-play-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.poki-play-box:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.poki-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.poki-play-btn {
    background: #fff;
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.poki-play-btn i {
    font-size: 30px;
}

.poki-play-box:hover .poki-play-btn {
    transform: scale(1.1);
    background: var(--poki-blue);
    color: #fff;
}

/* Game Payload — hidden until play is clicked */
#poki-game-payload {
    display: none;
    width: 100%;
    height: 100%;
}

/* Floating Back Button */
#poki-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999999;
    transition: var(--transition);
}

#poki-back-btn:hover {
    transform: scale(1.1);
    background: #f8f8f8;
}

/* ── Full-Screen Game Overlay ─────────────────────────────── */
/* Appended to <body> by JS — bypasses ALL parent stacking contexts */
#poki-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999998;
    /* below back-btn (999999) */
    overflow: hidden;
}

#poki-fullscreen-overlay.active {
    display: flex;
    align-items: stretch;
}

#poki-fullscreen-overlay iframe,
#poki-fullscreen-overlay object,
#poki-fullscreen-overlay embed,
#poki-fullscreen-overlay>* {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    flex: 1;
}

/* Hide scroll while game is open */
body.poki-full-game-active {
    overflow: hidden !important;
}

/* Legacy selectors kept for compatibility */
body.poki-full-game-active #poki-player-container {
    pointer-events: none;
}

#poki-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Info Bar */
#poki-game-info-bar {
    background: #fff;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.title-wrap h1 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.title-wrap .developer {
    font-size: 13px;
    color: #888;
}

.info-right {
    display: flex;
    gap: 20px;
}

.action-btn {
    color: var(--poki-blue);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* CTA Bar */
#poki-cta-bar {
    background: #fff;
    border-radius: 50px;
    padding: 10px 10px 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-logo {
    width: 32px;
    height: 32px;
    background: var(--poki-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.cta-icon-save {
    font-size: 20px;
    color: #444;
}

.cta-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cta-button {
    background: var(--poki-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Bottom Grid */
#poki-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.poki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    grid-auto-rows: 130px;
    gap: 14px;
    grid-auto-flow: dense;
}

/* Responsive Overrides */

/* Mobile Responsiveness */

@media screen and (max-width: 800px) {
    .poki-search-inline-form {
        width: 60% !important;
        max-width: 60% !important;
    }

    .single-game-info-mobile .poki-game-card {
        padding: 30px;
        width: 65% !important;
    }

    .single-game-info-desktop {
        display: none !important;
    }

    .single-game-info-mobile {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: end;
        width: 100%;
        /* grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 105px;
        gap: 10px; */
    }

    .title-wrap h1 {
        font-size: 14px !important;
        font-weight: 500;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    #poki-sb-left,
    #poki-sb-right {
        display: none !important;
    }

    body.single #poki-header {
        position: fixed !important;
        flex-shrink: 0;
    }

    /* On mobile, bottom grid tiles shrink to fit */
    #poki-theater-mode .poki-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 105px;
        width: 100%;
    }

    #poki-theater-mode .poki-game-card {
        width: 100%;
        height: 105px !important;
    }

    #poki-theater-mode .poki-game-card.featured {
        grid-column: span 2;
        grid-row: span 2;
        width: 100% !important;
        height: 216px !important;
    }

    #poki-theater-mode {
        flex-direction: column !important;
        align-items: center !important;
        padding: 0px !important;
        gap: 20px !important;
    }

    #poki-player-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    #poki-player-wrapper {
        border-radius: 15px;
        width: 100% !important;
        aspect-ratio: 16/9;
        max-height: 400px;
    }

    .poki-play-box {
        height: 100% !important;
    }

    #poki-game-info-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .info-left {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {

    .poki-grid-container {
        padding: 15px 12px;
    }

    .poki-page-container {
        padding: 40px 20px;
        margin: 20px auto;
        border-radius: 20px;
    }

    .poki-page-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .entry-content {
        font-size: 16px;
    }

    header#poki-header {
        position: fixed;
        z-index: 1000;
        background: #fff;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .logo-tile-wrap {
        flex: 1;
        padding: 5px;
        border-bottom: 1.5px solid #f8f8f8;
    }

    .custom-logo-link img,
    .poki-text-logo {
        max-width: 80px !important;
        font-size: 16px !important;
    }

    .header-icons-tile {
        height: 38px;
    }

    .header-icons-tile .header-icon {
        font-size: 14px;
    }

    .header-icons-tile .header-icon:first-child {
        border-right: 1.5px solid #f8f8f8;
    }

    .footer-container {
        text-align: center;
        z-index: 1;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col,
    .footer-social,
    .lang-selector {
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 500px) {

    .poki-play-btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    #poki-cta-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .cta-left {
        justify-content: center;
    }

    .footer-col,
    .footer-social,
    .lang-selector {
        width: 100%;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .poki-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 105px;
        gap: 10px;
    }

    .poki-sb-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 110px !important;
    }
}

/* ═══════════════════════════════════════════════
   SEARCH PAGE
═══════════════════════════════════════════════ */

/* Search container shares same base as player container */
.poki-search-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

/* Search header bar */
.poki-search-header {
    background: #fff;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0px 7px 10px 4px #5d6b841a;
    justify-content: end;
}

input.poki-search-inline-input {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    border: 1px solid #000;
}

.poki-search-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.poki-search-title-bar i {
    font-size: 22px;
    color: var(--primary-color);
}

.poki-search-title-bar h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.poki-search-query {
    color: var(--poki-blue);
}

input.poki-search-inline-input:focus {
    outline: none !important;
}

input.poki-search-inline-input:focus-within {
    outline: none !important;
}

input.poki-search-inline-input:focus-visible {
    outline: none !important;
}

/* Inline search form */
.poki-search-inline-form {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 200px;
    background: #f4f4f8;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    width: 80%;
    max-width: 80%;
}

.poki-search-inline-form:focus-within {
    border-color: var(--poki-blue);
    background: #fff;
}

.poki-search-inline-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    outline: none;
}

.poki-search-inline-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    border-radius: 0 50px 50px 0;
    transition: var(--transition);
}

.poki-search-inline-btn:hover {
    background: var(--poki-blue);
}

/* No results state */
.poki-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 7px 10px 4px #5d6b841a;
}

.poki-no-results-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.poki-no-results h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.poki-no-results p {
    color: #888;
    font-size: 15px;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   POKI-STYLE LOGIN / SEARCH MODALS
   Overrides parent theme .modal styles
═══════════════════════════════════════════════ */

/* Backdrop */
.modal.fade {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 10, 30, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 20px !important;
}

.modal.fade.in,
.modal.fade.show {
    display: flex !important;
}

/* Remove parent theme's modal dialog positioning */
.modal .modal-dialog {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    transform: none !important;
}

/* Card */
.modal .modal-content {
    background: #fff !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    border: none !important;
    padding: 35px 30px !important;
    position: relative !important;
}

/* Close button */
.modal .clos-modl.bg {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f4f4f8 !important;
    border: none !important;
    font-size: 0 !important;
    /* hide text */
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    z-index: 10 !important;
}

.modal .clos-modl.bg::after {
    content: '✕' !important;
    font-size: 15px !important;
    color: #555 !important;
    font-family: sans-serif !important;
}

.modal .clos-modl.bg:hover {
    background: #e0e0e8 !important;
}

/* Modal title */
.modal .modl-titl {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    letter-spacing: -1px !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

/* Form rows */
.modal .frmspr {
    margin-bottom: 14px !important;
}

/* Input labels */
.modal .icofrm {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #f4f4f8 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    transition: var(--transition) !important;
}

.modal .icofrm:focus-within {
    border-color: var(--poki-blue) !important;
    background: #fff !important;
}

.modal .icofrm::before {
    /* FontAwesome icon via pseudo (parent theme sets class) */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    padding: 0 14px !important;
    color: #aaa !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.modal .icofrm.fa-user::before {
    content: '\f007' !important;
}

.modal .icofrm.fa-lock::before {
    content: '\f023' !important;
}

.modal .icofrm.fa-envelope::before {
    content: '\f0e0' !important;
}

.modal .icofrm input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 13px 14px 13px 40 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-color) !important;
    outline: none !important;
    width: 100% !important;
}

/* Submit button */
.modal .frmspr button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: 6px !important;
}

.modal .frmspr button[type="submit"]:hover {
    background: var(--poki-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3) !important;
}

/* Lost password / links */
.modal .lost_pass a {
    color: var(--poki-blue) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Remember me checkbox */
.modal .frmspr input[type="checkbox"] {
    accent-color: var(--primary-color) !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
}

/* ── Search Modal ─────────────────────────────── */
#modl-srch .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0px;
}

#modl-srch .modal-content.cont {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#modl-srch .srchbx {
    background: #fff !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    display: flex !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;
    min-height: 60px !important;
}

#modl-srch .srchbx form {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    margin: 0 !important;
}

#modl-srch .srchbx input[type="text"] {
    flex: 1 !important;
    border: none !important;
    padding: 18px 25px !important;
    font-size: 18px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    min-width: 50px !important;
    margin: 0px;
}

#modl-srch .srchbx button {
    background: var(--primary-color) !important;
    border: none !important;
    padding: 0px !important;
    color: #fff !important;
    font-size: 8px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 0 50px 50px 0 !important;
    height: 100% !important;
}

#modl-srch .srchbx button:hover {
    background: var(--poki-blue) !important;
}

#modl-srch .srchbx p {
    display: none !important;
    /* hide "PRESS ENTER TO SEARCH" hint */
}

/* Trigger JS open on modal toggle if Bootstrap isn't loaded */
.modal[data-toggle="modal"] {
    cursor: pointer;
}