/* RCAD premium header */
.rcad-premium-header {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: none;
    position: relative;
    z-index: 1001;
}

.rcad-premium-inner {
    width: min(var(--site-width-rem, 75rem), calc(100vw - 48px));
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    display: grid;
    grid-template-columns: minmax(250px, auto) minmax(320px, 520px) auto;
    align-items: center;
    gap: 28px;
}

.rcad-premium-mobile-actions {
    display: none;
}

.rcad-premium-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #2d2d2d;
    text-decoration: none !important;
}

.rcad-premium-logo-mark {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg,#ffd400,#f0a500);
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(246,168,0,.22);
}

.rcad-premium-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rcad-premium-logo.has-custom-logo .rcad-premium-logo-mark {
    width: clamp(190px, 24vw, 360px);
    height: 76px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.rcad-premium-logo.has-custom-logo .rcad-premium-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.rcad-premium-logo.has-custom-logo .rcad-premium-logo-copy {
    display: none;
}

.rcad-premium-logo-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.rcad-premium-logo-title {
    color: #2d2d2d;
    font-size: 40px;
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
    white-space: nowrap;
}

.rcad-premium-logo-title span {
    color: #ffc400;
    text-shadow: 1px 1px 0 #202020;
}

.rcad-premium-logo-subtitle {
    margin-top: 6px;
    color: #666;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
}

.rcad-premium-search {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    position: relative;
}

.rcad-premium-search input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 54px 0 18px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fafafa;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.rcad-premium-search input[type="search"]:focus {
    border-color: var(--mm-accent, #f5a623);
    background: #fff;
}

.rcad-premium-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--mm-accent, #f5a623);
    cursor: pointer;
}

.rcad-premium-search svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.rcad-premium-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.rcad-premium-login,
.rcad-premium-register,
.rcad-premium-account {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.rcad-premium-login {
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
}

.rcad-premium-login:hover {
    background: #f6f6f6;
    color: #222;
}

.rcad-premium-register {
    border: 1px solid var(--mm-accent, #f5a623);
    background: var(--mm-accent, #f5a623);
    color: #fff;
    box-shadow: 0 8px 18px rgba(246,168,0,.22);
}

.rcad-premium-register:hover {
    filter: brightness(.94);
    color: #fff;
    transform: translateY(-1px);
}

.rcad-premium-account {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
}

.rcad-premium-account img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

body .site-header .container.header-inner,
body .site-header .header-inner,
body .site-header .header-navigation-wrapper,
body .site-header .container,
body #masthead .container {
    display: none !important;
}

body .site-header,
body #masthead {
    display: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.rcad-premium-header + .rcad-mm-bar,
.site-header + .rcad-mm-bar {
    margin-top: 0 !important;
}

.rcad-topbar .rcad-topbar-right {
    display: none !important;
}

.rcad-mm-bar .primary-menu > li.search-item {
    display: none !important;
}

@media (max-width: 1100px) {
    .rcad-premium-inner {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }

    .rcad-premium-logo-title {
        font-size: 32px;
    }

    .rcad-premium-logo-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .rcad-premium-mobile-actions {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0 16px;
        background: #222;
        color: #fff;
        font-size: 12px;
        font-weight: 750;
    }

    .rcad-premium-mobile-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff !important;
        font: inherit;
        line-height: 1;
        text-decoration: none !important;
        cursor: pointer;
    }

    .rcad-premium-inner {
        width: calc(100vw - 32px);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 0;
    }

    .rcad-premium-logo {
        justify-self: center;
        text-align: center;
    }

    .rcad-premium-logo-copy {
        align-items: flex-start;
        text-align: left;
    }

    .rcad-premium-search {
        grid-column: 1 / -1;
        max-width: none;
        order: 3;
    }

    .rcad-premium-actions {
        display: none;
    }

    .rcad-premium-logo-mark {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .rcad-premium-logo.has-custom-logo .rcad-premium-logo-mark {
        width: min(78vw, 320px);
        height: 72px;
    }

    .rcad-premium-logo-title {
        font-size: 28px;
    }
}

@media (max-width: 560px) {
    .rcad-premium-inner {
        width: calc(100vw - 24px);
        grid-template-columns: 1fr;
    }

    .rcad-premium-logo {
        gap: 10px;
    }

    .rcad-premium-logo-subtitle {
        font-size: 12px;
    }
}
