/* Local helpers on top of app.min.css — do NOT override hero/slider/banner from app.min.css */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.quick-horizontal-card {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    color: inherit;
    text-decoration: none;
}
.quick-horizontal-card .p-img-wrapper img {
    width: 76px; height: 76px; border-radius: 10px; object-fit: cover;
}
.quick-horizontal-card .p-title { font-weight: 700; font-size: 14px; }
.quick-horizontal-card .p-price { color: var(--success-green, #11d377); font-weight: 800; }
.quick-horizontal-card .p-cart-row { display: flex; gap: 6px; align-items: center; }
.quick-horizontal-card .p-qty {
    display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;
}
.quick-horizontal-card .p-qty button,
.quick-horizontal-card .p-qty input {
    width: 28px; height: 28px; border: 0; background: var(--bg-light); color: inherit; text-align: center;
}
.quick-horizontal-card .p-add-cart {
    width: 34px; height: 34px; border: 0; border-radius: 8px; background: #243056; color: #fff;
}

.ilan-card-local {
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    min-height: 150px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ilan-card-local h3 { margin: 0 0 4px; font-size: 14px; }
.ilan-card-local span { color: var(--gray-text); font-size: 12px; }

.gc-marquee-container { overflow: hidden; }
.gc-marquee-track { display: flex; width: max-content; animation: gc-scroll 45s linear infinite; }
.gc-marquee-group { display: flex; gap: 12px; padding-right: 20px; }
@keyframes gc-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color) !important;
}
.notif-item .notif-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(61,90,254,.12); color: var(--primary-blue);
    flex-shrink: 0;
}
.notif-item.success .notif-icon { background: rgba(17,211,119,.15); color: var(--success-green); }
.notif-item.warning .notif-icon { background: rgba(255,179,0,.15); color: var(--warning-orange); }
.notif-info { display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-weight: 700; font-size: 14px; }
.notif-text { font-size: 13px; color: var(--gray-text); }
.notif-time { font-size: 12px; color: var(--gray-text); }
.notif-list { list-style: none; margin: 0; padding: 0; }

.footer-title { font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; }
.footer-link { display: block; color: var(--gray-text); margin: 6px 0; font-size: 14px; text-decoration: none; }

@media (max-width: 991.98px) {
    body.dark-mode { padding-bottom: 76px; }
}

/* Header dropdowns */
.header-nav-item.dropdown-toggle::after,
.header-nav-item::after { display: none !important; }
.main-nav > .dropdown { position: static !important; }
.header-bottom .container-xxl { position: static; }
.header-bottom .main-nav > .dropdown > .dropdown-menu.all-category-menu-search {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    inset: auto 0 auto 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
    z-index: 1050;
}
.header-bottom .main-nav > .dropdown > .dropdown-menu.all-category-menu-search.show {
    display: block !important;
}
.header-sticky-bar,
.header-bottom,
.site-header {
    overflow: visible !important;
}

.notifications-offcanvas,
.messages-offcanvas,
.cart-offcanvas,
.user-menu-offcanvas {
    position: fixed !important;
}
.notifications-offcanvas .notif-list-view,
.messages-offcanvas .msg-list-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.user-menu-offcanvas .avatar-wrap .av,
.user-menu-offcanvas .avatar-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.user-menu-offcanvas .name {
    color: var(--dark-text);
    font-weight: 700;
}
.logo-light,
.logo-dark {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Keep hero-tumb positioning; logos are SVG from live — don't override size/color from app.min.css */
.hero-tumb {
    position: relative;
}

/* Keep hero slider height aligned with live (thumbs overlay, banners outside) */
.hero-slider-wrapper {
    height: 500px;
}
@media (max-width: 767.98px) {
    .hero-slider-wrapper { height: auto; min-height: 0; }
}

/* Live site PASS button (missing from older local app.min.css) */
.header-pass-btn {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: var(--radius-ui);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .4px;
    text-decoration: none;
    background: linear-gradient(125deg, #6d8bff 0%, #3d5afe 55%, #2a3fd4 100%);
    box-shadow: 0 6px 16px -8px rgba(61, 90, 254, .9);
    transition: box-shadow .3s cubic-bezier(.4, 0, .2, 1);
}
.header-pass-btn:hover {
    color: #fff;
    box-shadow: 0 8px 18px -9px rgba(61, 90, 254, .9);
}
.header-pass-btn .hpb-text {
    position: relative;
    z-index: 2;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.header-pass-btn .hpb-icon {
    position: relative;
    z-index: 2;
    font-size: 19px;
    line-height: 1;
    display: inline-block;
    animation: hpbCrownSpin 6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.header-pass-btn .hpb-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 42%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transform: translateX(0) skewX(-18deg);
    will-change: transform;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
    animation: hpbShine 6s ease-in-out infinite;
}
@keyframes hpbCrownSpin {
    0%, 68% { transform: rotateY(0deg) scale(1); }
    84% { transform: rotateY(360deg) scale(1.12); }
    100% { transform: rotateY(360deg) scale(1); }
}
@keyframes hpbShine {
    0% { transform: translateX(0) skewX(-18deg); }
    38%, 100% { transform: translateX(452.381%) skewX(-18deg); }
}
@media (max-width: 1399.98px) {
    .header-pass-btn { width: 48px; padding: 0; gap: 0; }
    .header-pass-btn .hpb-text { display: none; }
}
@media (min-width: 992px) and (max-width: 1319.98px) {
    .header-pass-btn { width: 44px; height: 44px; }
}

/* Match live user-profile-pill (desktop) */
.header-user-menu {
    flex-shrink: 0;
}
.user-profile-pill {
    background-color: var(--bg-header, #11141a);
    border: 1px solid var(--border-color, #2d303a);
    border-radius: 12px;
    height: 48px;
    padding: 0 12px 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--dark-text, #f0f6fc);
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
}
.user-profile-pill:hover {
    border-color: var(--primary-blue, #3d5afe);
}
.user-profile-pill .avatar-wrapper {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-profile-pill .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}
.user-profile-pill .user-info {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    margin-top: 1px;
    min-width: 0;
}
.user-profile-pill .user-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--dark-text, #f0f6fc);
    white-space: nowrap;
}
.user-profile-pill .user-balance,
.header-actions .balance-amount {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #11d377 !important;
    white-space: nowrap;
}
.user-profile-pill .ri-arrow-right-s-line {
    display: inline-block !important;
    font-size: 18px;
    line-height: 1;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Keep full pill visible locally (live collapses text here) */
    .user-profile-pill {
        padding: 0 12px 0 6px !important;
        width: auto !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    .user-profile-pill .user-info,
    .user-profile-pill .ri-arrow-right-s-line {
        display: flex !important;
    }
    .user-profile-pill .ri-arrow-right-s-line {
        display: inline-block !important;
    }
}

/* Showcase cards: ensure live premium-card image plane works */
#ilan-grid .premium-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
#ilan-grid .premium-card .p-img-wrapper > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
#ilan-grid .premium-card .p-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Catalog listing pages (/ilanlar/*, /urunler/*, /u/*) */
#ilanlarAjaxWrapper.grid-5-col,
#advert-grid-container.grid-5-col {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1199.98px) {
    #ilanlarAjaxWrapper.grid-5-col,
    #advert-grid-container.grid-5-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    #ilanlarAjaxWrapper.grid-5-col,
    #advert-grid-container.grid-5-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    #ilanlarAjaxWrapper.grid-5-col,
    #advert-grid-container.grid-5-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#ilanlarAjaxWrapper .premium-card,
#advert-grid-container .premium-card {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
}
#ilanlarAjaxWrapper .premium-card .p-img-wrapper > img,
#advert-grid-container .premium-card .p-img-wrapper > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
#ilanlarAjaxWrapper .premium-card .p-title,
#advert-grid-container .premium-card .p-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.products .prd.d-none { display: none !important; }
.products .saas-list-item .sli-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

/* Listing detail seller card */
.advert-detail-section .sticky-sidebar {
    position: sticky;
    top: 90px;
}
.advert-detail-section .m-store-card {
    margin-top: 1.5rem;
}
.advert-detail-section .m-store-actions a.m-btn-action {
    text-decoration: none;
}

.messages-offcanvas .offcanvas-body { position: relative; height: calc(100% - 62px); overflow: hidden; }
.messages-offcanvas .msg-list-view,
.messages-offcanvas .msg-chat-view {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
}
.messages-offcanvas .msg-list-view { display: flex !important; flex-direction: column; }
.messages-offcanvas .msg-chat-view { display: none !important; flex-direction: column; background: var(--bg-body); }
.messages-offcanvas.is-sohbet .msg-list-view { display: none !important; }
.messages-offcanvas.is-sohbet .msg-chat-view { display: flex !important; }
.messages-offcanvas #msgListScroll { flex: 1; min-height: 0; overflow-y: auto; }
.messages-offcanvas .msg-back-btn {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
}
.messages-offcanvas .msg-messagelist { flex: 1; overflow-y: auto; }
.messages-offcanvas #msgChatProfileLink,
.messages-offcanvas #msgListAlici { font-weight: 700; }
.messages-offcanvas .msg-chat-rules-marquee { overflow: hidden; flex-shrink: 0; min-height: 34px; background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 40%, #991b1b 100%); }
.messages-offcanvas .msg-chat-rules-marquee-track { display: flex; width: max-content; animation: msgChatRulesMarquee 20s linear infinite; }
.messages-offcanvas .msg-chat-rules-marquee-content { padding: 8px 5px 8px 0; white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; }
.messages-offcanvas .msg-gorsel { display: block; max-width: min(240px, 100%); max-height: 240px; border-radius: 10px; object-fit: cover; }
.messages-offcanvas .upload-btn svg { display: block; }
.messages-offcanvas .msg-report-panel {
  position: absolute;
  top: 72px;
  right: 16px;
  z-index: 6;
  width: min(320px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-header);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.messages-offcanvas .msg-report-panel strong { display: block; margin-bottom: 10px; font-size: 14px; }
.messages-offcanvas .msg-report-panel select,
.messages-offcanvas .msg-report-panel textarea {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-body);
  color: var(--dark-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}
.messages-offcanvas .msg-report-panel textarea { min-height: 72px; resize: vertical; }
.messages-offcanvas .msg-report-actions { display: flex; justify-content: flex-end; gap: 8px; }
.messages-offcanvas .msg-report-actions button {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.messages-offcanvas .msg-report-vazgec { background: transparent; color: var(--gray-text); }
.messages-offcanvas .msg-report-gonder { background: #ff4454; color: #fff; }
.messages-offcanvas .msg-report-hata { margin: 0 0 8px; color: #ff4454; font-size: 12px; }
@keyframes msgChatRulesMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.pmc-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2434;
    color: #fff;
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 0.04em;
    user-select: none;
}
.p-seller-avatar .pmc-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: 0;
}

.phone-change-page .tel2-current {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
}
.phone-change-page .tel2-current-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: var(--radius-ui);
}
.phone-change-page .tel2-current-icon.is-warn {
    color: var(--warning-orange, #ffb300);
    background: rgba(255, 179, 0, 0.1);
}
.phone-change-page .tel2-current-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.phone-change-page .tel2-current-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
}
.phone-change-page .tel2-current-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-text);
}
.phone-change-page .tel2-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}
.phone-change-page .tel2-badge.is-warn {
    color: var(--warning-orange, #ffb300);
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid rgba(255, 179, 0, 0.25);
}
.phone-change-page .tel2-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.phone-change-page .tel2-field {
    width: 100%;
}
.phone-change-page .tel2-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
}
.phone-change-page .tel-alan-satir {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.phone-change-page .tel-alan-ulke {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    cursor: pointer;
}
.phone-change-page .tel-alan-sarmal {
    position: relative;
    flex: 1;
    min-width: 0;
}
.phone-change-page .tel-alan-giris,
.phone-change-page .tel2-secure input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-ui);
    box-shadow: none;
}
.phone-change-page .tel-alan-giris:focus,
.phone-change-page .tel2-secure input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.1);
}
.phone-change-page .tel-alan-kanal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
}
.phone-change-page .tel-alan-kanal strong {
    color: var(--dark-text);
}
.phone-change-page .tel2-secure {
    position: relative;
}
.phone-change-page .tel2-secure > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    font-size: 18px;
    color: var(--gray-text);
    pointer-events: none;
    transform: translateY(-50%);
}
.phone-change-page .tel2-secure input {
    padding-left: 46px;
}
.phone-change-page .tel2-consent {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 10px;
    min-width: 240px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
}
.phone-change-page .tel2-consent input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}
.phone-change-page .tel2-consent a {
    color: var(--dark-text);
}
.phone-change-page .tel2-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    margin-left: auto;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #283cb4 100%);
    border: none;
    border-radius: var(--radius-ui);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.25);
    cursor: pointer;
}
.phone-change-page .tel2-submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}
.phone-change-page .tel-alan [hidden] {
    display: none !important;
}

.invoice-settings-page .bento-readonly-text-warning {
    background: var(--bg-light);
    border-color: var(--border-color);
    box-shadow: none;
}
.invoice-settings-page .bento-readonly-text-warning a {
    color: var(--gray-text);
    font-weight: 600;
    text-decoration: none;
}
.invoice-settings-page .bento-readonly-text-warning a:hover {
    color: var(--dark-text);
}

@media (max-width: 767.98px) {
    .quick-products-section .game-list-box {
        padding: 12px 0 12px 12px;
        overflow: hidden;
    }
    .quick-products-section .game-tabs {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        padding: 2px 12px 2px 0;
        scrollbar-width: none;
    }
    .quick-products-section .game-tabs::-webkit-scrollbar { display: none; }
    .quick-products-section .game-tabs .game-tab-link {
        width: auto !important;
        min-width: max-content;
        height: 44px;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0 14px !important;
        gap: 8px !important;
        overflow: hidden;
        white-space: nowrap;
    }
    .quick-products-section .game-tabs .game-tab-link .fs-6 {
        font-size: 13px !important;
        line-height: 1;
        white-space: nowrap;
    }
    .quick-products-section .game-tabs .game-tab-link > i {
        display: none;
    }
}
