/* Home Premium Header (reusable) */
.home-premium-header-wrapper~main {
    padding-top: 0 !important;
}

.home-premium-header-desktop {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1040;
}

.home-premium-header-shell {
    background: #ffffff;
    border-radius: 999px;
    min-height: 78px;
    padding: 12px 16px 12px 22px;
    box-shadow: 0 10px 30px rgba(19, 18, 22, 0.08);
    border: 1px solid rgba(236, 231, 223, 0.95);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.home-premium-logo img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

.home-premium-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2rem;
}

.home-premium-nav-trigger {
    border: 0;
    background: transparent;
    color: #2b2b31;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    position: relative;
    padding: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-premium-nav-trigger:hover,
.home-premium-nav-trigger.is-active {
    color: #d3a128;
}

.home-premium-nav-trigger.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.05rem;
    height: 5px;
    border-radius: 8px;
    background: #d3a128;
}

.home-premium-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.home-premium-login-btn {
    height: 48px;
    border-radius: 14px;
    background: #d3a128;
    color: #ffffff;
    border: 1px solid #be8f23;
    padding: 0 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-premium-login-btn:hover {
    background: #be8f23;
    color: #ffffff;
    transform: translateY(-1px);
}

.home-premium-login-btn i {
    font-size: 1rem;
}

.home-premium-star-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #d3a128;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
}

.home-premium-notif-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f2f1f2;
    color: #222228;
    border: 1px solid #e7e7ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.home-premium-notif-btn:hover {
    background: #e8e8ea;
}

.home-premium-notif-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #e53e3e;
    border-radius: 50%;
    border: 2px solid #f2f1f2;
}

.home-premium-notif-popup {
    position: absolute;
    top: calc(100% + 15px);
    right: 70px;
    width: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #ececf0;
    padding: 16px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s linear 0.3s;
}

.home-premium-notif-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Triangle pointer for desktop popup */
.home-premium-notif-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-top: 1px solid #ececf0;
    border-left: 1px solid #ececf0;
    transform: rotate(45deg);
}

.notif-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2b2b31;
    margin-bottom: 8px;
}

.notif-popup-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #8d9097;
    cursor: pointer;
    padding: 0;
    margin: -4px -4px 0 0;
}

.notif-popup-close:hover {
    color: #2b2b31;
}



/* Notification List & Items */
.notif-list-body {
    max-height: 400px;
    overflow-y: auto;
    margin: 0 -16px -16px -16px;
    padding: 0;
}

.notif-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #8d9097;
}

.notif-empty-state i {
    font-size: 2.5rem;
    color: #dfdfdf;
    margin-bottom: 12px;
}

.notif-empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

/* Action Items (Install & Subscribe) inside the list */
.push-notif-action-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fffcf5;
    border-bottom: 1px solid #f2f1f2;
}

.notif-action-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #d3a128;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notif-action-content {
    flex: 1;
}

.notif-action-title {
    font-weight: 700;
    color: #2b2b31;
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.notif-action-desc {
    font-size: 0.85rem;
    color: #555761;
    line-height: 1.4;
    margin-bottom: 12px;
}

.btn-notif-action {
    background: #222228;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-notif-action:hover {
    background: #3a3a44;
}

/* App Icon for install item */
.notif-action-app-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Installed state */
.notif-action-installed {
    background: #f0fdf4;
}

.notif-installed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Custom iOS-style Scrollbar */
.notif-custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.notif-custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.notif-custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.notif-custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.notif-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Regular Notification Items */
.push-notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f2f1f2;
    transition: background 0.2s;
}

.push-notif-item:last-child {
    border-bottom: none;
}

.push-notif-item:hover {
    background: #fafafa;
}

.push-notif-item.is-read {
    opacity: 0.7;
}

.notif-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #fff4db;
    color: #d3a128;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notif-item-content {
    flex: 1;
}

.notif-item-title {
    font-weight: 600;
    color: #2b2b31;
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}

.notif-item-body {
    font-size: 0.85rem;
    color: #555761;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 0.75rem;
    color: #8d9097;
}

.home-premium-search-expand {
    width: 56px;
    min-width: 56px;
    height: 48px;
    position: relative;
    border-radius: 999px;
    background: #f2f1f2;
    border: 1px solid #e7e7ea;
    overflow: visible;
    transition: width 0.28s ease, min-width 0.28s ease, box-shadow 0.22s ease;
}

.home-premium-search-expand.is-open {
    width: 290px;
    min-width: 290px;
    box-shadow: 0 8px 20px rgba(22, 24, 30, 0.12);
}

.home-premium-header-search-form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.home-premium-search-input {
    border: 0;
    background: transparent;
    color: #222228;
    font-size: 0.95rem;
    outline: 0;
    width: 0;
    opacity: 0;
    margin-left: 0;
    padding: 0;
    pointer-events: none;
    flex: 0 0 0;
    min-width: 0;
    transition: width 0.24s ease, opacity 0.18s ease, margin 0.24s ease;
}

.home-premium-search-input::placeholder {
    color: #8d9097;
}

.home-premium-search-expand.is-open .home-premium-search-input {
    width: auto;
    opacity: 1;
    margin-left: 14px;
    padding-right: 8px;
    pointer-events: auto;
    flex: 1 1 auto;
}

.home-premium-search-btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    flex: 0 0 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #222228;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.home-premium-search-btn i {
    display: block;
    line-height: 1;
}

.home-premium-search-live-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ececf0;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(19, 20, 26, 0.16);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.home-premium-search-live-dropdown.show {
    display: block;
}

.home-premium-search-live-empty {
    font-size: 0.9rem;
    color: #7d8089;
    padding: 12px 14px;
}

.home-premium-search-live-item {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #2f3036;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}

.home-premium-search-live-item+.home-premium-search-live-item {
    border-top: 1px solid #f3f4f7;
}

.home-premium-search-live-item:hover {
    background: #faf7ef;
}

.home-premium-search-live-name {
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.3;
}

.home-premium-search-live-meta {
    font-size: 0.78rem;
    color: #8a8e98;
    line-height: 1.2;
}

.home-premium-header-mobile {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 1042;
}

.home-premium-header-mobile-shell {
    background: #ffffff;
    border-radius: 999px;
    min-height: 66px;
    padding: 8px 10px 8px 14px;
    box-shadow: 0 10px 28px rgba(19, 18, 22, 0.1);
    border: 1px solid rgba(236, 231, 223, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-premium-logo-mobile img {
    max-width: 132px;
}

.home-premium-actions-mobile {
    gap: 0.5rem;
}

.home-premium-mobile-login-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #d3a128;
    color: #ffffff;
    border: 1px solid #be8f23;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.home-premium-mobile-login-btn:hover {
    color: #ffffff;
    background: #be8f23;
}

.home-premium-actions-mobile .home-premium-star-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.home-premium-mobile-notif-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f2f1f2;
    color: #222228;
    border: 1px solid #e7e7ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    position: relative;
}

.home-premium-mobile-notif-btn .home-premium-notif-badge {
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-width: 1px;
}

.home-premium-notif-popup.mobile-version {
    right: 10px;
    top: calc(100% + 15px);
    width: calc(100vw - 20px);
    max-width: 340px;
}

.home-premium-notif-popup.mobile-version::before {
    right: 65px;
    /* Adjust arrow position based on icon position */
}

.home-premium-mobile-menu-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.home-premium-mobile-menu-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.home-premium-mobile-close-icon {
    width: 24px;
    height: 24px;
}

.home-premium-mega-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.44);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.home-premium-mega-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.home-premium-mega-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 100px;
    z-index: 1038;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px) scaleY(0.96);
    transform-origin: top center;
    transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
}

.home-premium-mega-wrap.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
    transition-delay: 0s;
}

.home-premium-mega-shell {
    background: #f3f3f3;
    border-radius: 30px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 20px 40px rgba(14, 15, 19, 0.2);
    padding: 14px;
}

.home-premium-mega-panel {
    display: none;
}

.home-premium-mega-panel.is-active {
    display: block;
}

.home-premium-explore-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: stretch;
}

.home-premium-type-column {
    border-right: 2px solid #737373;
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-premium-type-item {
    border: 0;
    background: transparent;
    color: #4b4b50;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 500;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-premium-type-item:hover,
.home-premium-type-item.is-active {
    background: #e8e8e8;
    color: #222228;
}

.home-premium-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
}

.home-premium-location-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 92px;
    background: #d8d8d8;
}

.home-premium-location-card img {
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
    display: block;
}

.home-premium-location-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.home-premium-location-card span {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.8rem 0.6rem;
}

.home-premium-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
}

.home-premium-link-card {
    text-decoration: none;
    color: #2b2b31;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 0.95rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-premium-link-card:hover {
    color: #d3a128;
    border-color: #d3a128;
    transform: translateY(-1px);
}

.home-premium-empty-state {
    grid-column: 1 / -1;
    color: #6b7280;
    font-size: 0.95rem;
    padding: 1rem;
}

@media (min-width: 769px) and (max-width: 1280px) {
    .home-premium-header-shell {
        gap: 0.75rem;
    }

    .home-premium-nav {
        gap: 1.15rem;
    }

    .home-premium-login-btn {
        width: 48px;
        padding: 0;
    }

    .home-premium-login-btn span {
        display: none;
    }

    .home-premium-search-expand.is-open {
        width: 230px;
        min-width: 230px;
    }

    .home-premium-nav-trigger {
        font-size: 1rem;
    }

    .home-premium-mega-wrap {
        top: 96px;
    }

    .home-premium-explore-layout {
        grid-template-columns: 130px 1fr;
    }

    .home-premium-location-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .home-premium-link-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .home-premium-header-wrapper~main {
        padding-top: 0 !important;
    }

    .home-premium-header-mobile {
        top: 10px;
    }

    .home-premium-header-mobile-shell {
        min-height: 62px;
        padding: 8px 10px 8px 12px;
    }

    .home-premium-logo-mobile img {
        max-width: 122px;
    }

    .home-premium-mega-overlay,
    .home-premium-mega-wrap {
        display: none !important;
    }
}
