:root {
    --yellow: #ffea00;
    --dark: #1a1713;
    --gray: #f8f8f8;
    --border: #eee;
    --muted: #8e8e93;
    --radius: 28px;
    --safe-bottom: env(safe-area-inset-bottom, 0px)
}

* {
    box-sizing: border-box;
    font-family: "Cairo", sans-serif
}

html,
body {
    margin: 0;
    background: #ececec;
    color: var(--dark);
    overscroll-behavior: none
}

body {
    min-height: 100dvh
}
.logtit{
    position: relative;
    top: 3px;
    font-size: 16px;
}
.logsubtit{
    font-size: 12px;
    font-weight: 600;
}
.app-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;
    margin: auto;
    background: #fff;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 70px rgba(0, 0, 0, .12)
}

.app-view {
    min-height: 100dvh;
    padding-bottom: calc(92px + var(--safe-bottom));
    animation: viewIn .32s cubic-bezier(.2, .8, .2, 1)
}

.app-view.no-tabs {
    padding-bottom: calc(92px + var(--safe-bottom))
}

.screen {
    min-height: 100dvh;
    background: #fff
}

.screen-header {
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(238, 238, 238, .85);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--gray);
    display: grid;
    place-items: center;
    font-size: 21px;
    color: var(--dark);
    transition: .2s
}

.icon-btn:active,
.tap:active {
    transform: scale(.94)
}

.page-title {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0
}

.content {
    padding: 22px 20px
}

.card-ios {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(26, 23, 19, .28)
}

.hero {
    height: 320px;
    position: relative;
    border-radius: 32px;
    overflow: hidden
}

.hero img,
.cover {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 23, 19, .95), rgba(26, 23, 19, .05) 72%)
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #fff
}

.badge-yellow {
    background: var(--yellow);
    color: var(--dark);
    font-weight: 900
}

.btn-dark-ios {
    background: var(--dark);
    color: var(--yellow);
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em
}

.btn-yellow-ios {
    background: var(--yellow);
    color: var(--dark);
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    font-weight: 900;
    text-transform: uppercase
}

.section-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase
}

.muted {
    color: var(--muted)
}

.quick-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--gray);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 26px;
    margin: auto
}

.ios-tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 50;
    width: 100%;
    max-width: 430px;
    height: calc(76px + var(--safe-bottom));
    padding: 8px 8px var(--safe-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(238, 238, 238, .9)
}

.ios-tabbar button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 800
}

.ios-tabbar i {
    font-size: 24px
}

.ios-tabbar button.active {
    color: var(--dark)
}

.ios-tabbar button.active i {
    color: #b49d00
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow: auto;
    scrollbar-width: none
}

.filter-scroll::-webkit-scrollbar {
    display: none
}

.pill {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--gray);
    color: #292929;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase
}

.pill.active {
    background: var(--dark);
    color: var(--yellow);
    border-color: var(--dark)
}

.news-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 20px
}

.product-img {
    height: 180px;
    background: var(--gray);
    padding: 15px
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.player-card {
    height: 290px;
    position: relative;
    background: var(--dark);
    border-radius: 32px;
    overflow: hidden
}

.player-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--dark), transparent 80%)
}

.player-meta {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #fff
}

.seat {
    aspect-ratio: 1;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--gray);
    font-size: 9px;
    font-weight: 800
}

.seat.selected {
    background: var(--yellow);
    border-color: var(--yellow)
}

.seat.sold {
    background: var(--dark);
    color: #fff
}

.login-screen {
    padding: 46px 30px 28px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh
}

.form-control {
    border-radius: 17px;
    background: var(--gray);
    border-color: var(--border);
    padding: 15px 16px;
    font-weight: 700
}

.form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 234, 0, .25);
    border-color: #e7d500
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    max-width: 430px;
    margin: auto;
    background: var(--dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden
}

.splash-mark {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: var(--yellow);
    color: var(--dark);
    display: grid;
    place-items: center;
    font-size: 52px;
    font-weight: 1000;
    font-style: italic;
    margin-bottom: 18px
}

.splash-screen small {
    color: rgba(255, 255, 255, .45);
    font-weight: 700;
    letter-spacing: .18em
}

.profile-card {
    background: var(--dark);
    border-radius: 32px;
    color: #fff;
    padding: 24px
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid var(--yellow)
}

.menu-list {
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    background: var(--gray)
}

.menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-weight: 800
}
.menu-row span {
    font-size: 14px
}
.menu-row:last-child {
    border-bottom: 0
}

.menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 20px
}

.checkout {
    position: fixed;
    z-index: 45;
    left: 50%;
    bottom: calc(76px + var(--safe-bottom));
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--dark);
    color: #fff;
    padding: 20px 22px calc(20px + var(--safe-bottom));
    border-radius: 32px 32px 0 0
}

.app-view.checkout-page {
    padding-bottom: calc(220px + var(--safe-bottom))
}

.toast {
    background: var(--dark);
    color: #fff;
    border-radius: 16px
}

@keyframes viewIn {
    from {
        opacity: .35;
        transform: translateX(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(min-width:431px) {
    .app-shell {
        margin-top: 18px;
        margin-bottom: 18px;
        min-height: calc(100dvh - 36px);
        border-radius: 34px;
        overflow: hidden
    }

    .ios-tabbar,
    .checkout {
        bottom: 18px;
        border-radius: 0 0 34px 34px
    }

    .splash-screen {
        top: 18px;
        bottom: 18px;
        border-radius: 34px
    }
}

/* Updated navigation and extended screens */
.ios-tabbar .home-tab {
    position: relative;
    overflow: visible;
    gap: 0
}

.home-tab-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--yellow);
    display: grid;
    place-items: center;
    color: var(--dark);
    box-shadow: 0 12px 28px rgba(255, 234, 0, .42);
    transform: translateY(-12px);
    border: 5px solid #fff;
    transition: .22s
}

.ios-tabbar .home-tab i {
    font-size: 27px;
    color: var(--dark) !important
}

.ios-tabbar .home-tab.active .home-tab-circle {
    transform: translateY(-14px) scale(1.06)
}

.ios-tabbar button.active:not(.home-tab) {
    color: var(--dark)
}

.ios-tabbar button.active:not(.home-tab) i {
    color: #b49d00
}

.home-section {
    padding: 0 20px 26px
}

.home-section + .home-section {
    padding-top: 4px
}

.horizontal-cards {
    display: flex;
    gap: 14px;
    overflow: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none
}

.horizontal-cards::-webkit-scrollbar {
    display: none
}

.mini-news {
    min-width: 255px;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: #fff
}

.mini-news img {
    width: 100%;
    height: 145px;
    object-fit: cover
}

.mini-news-body {
    padding: 15px
}

.promo-dark {
    background: var(--dark);
    border-radius: 30px;
    color: #fff;
    overflow: hidden;
    position: relative;
    padding: 24px;
    min-height: 180px
}

.promo-dark > img {
    position: absolute;
    right: -6px;
    bottom: 0;
    width: 55%;
    height: 100%;
    object-fit: contain
}

.promo-dark-content {
    position: relative;
    z-index: 2;
    max-width: 55%
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.stat-box {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 8px;
    text-align: center
}

.stat-box b {
    display: block;
    font-size: 20px
}

.stat-box small {
    color: #292929;
    font-weight: bold;
    font-size: 11px
}

.detail-hero {
    height: 360px;
    position: relative;
    overflow: hidden
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.detail-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 23, 19, .94), transparent 75%)
}

.detail-hero-content {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 26px;
    color: #fff
}

.article-copy {
    font-size: 15px;
    line-height: 2;
    color: #4d4b48
}

.article-copy p {
    margin-bottom: 18px;
    font-size: 14px;
}

.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.option-chip {
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--gray);
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 800
}

.option-chip.active {
    background: var(--dark);
    color: var(--yellow);
    border-color: var(--dark)
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 14px
}

.qty-control button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--gray);
    font-size: 20px
}

.qty-control b {
    min-width: 20px;
    text-align: center
}

.cart-row {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border)
}

.cart-row:last-child {
    border: 0
}

.cart-row img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: var(--gray);
    border-radius: 18px
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0
}

.total-row.grand {
    font-size: 20px;
    font-weight: 900;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px
}

.success-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--yellow);
    display: grid;
    place-items: center;
    font-size: 46px;
    margin: 20px auto;
    box-shadow: 0 16px 35px rgba(255, 234, 0, .35)
}

.search-wrap {
    position: relative
}

.search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--muted)
}

.search-wrap input {
    padding-left: 48px
}

.notification-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border)
}

.notification-row:last-child {
    border: 0
}

.notification-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--yellow);
    display: grid;
    place-items: center;
    font-size: 21px
}

.notification-row.unread {
    background: linear-gradient(90deg, rgba(255, 234, 0, .08), transparent);
    margin-inline: -20px;
    padding-inline: 20px
}

.ticket-pass {
    background: var(--dark);
    color: #fff;
    border-radius: 28px;
    overflow: hidden
}

.ticket-pass-top {
    padding: 22px
}

.ticket-pass-cut {
    height: 1px;
    border-top: 2px dashed rgba(255, 255, 255, .2);
    position: relative
}

.ticket-pass-cut:before,
.ticket-pass-cut:after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    top: -13px
}

.ticket-pass-cut:before {
    left: -12px
}

.ticket-pass-cut:after {
    right: -12px
}

.ticket-pass-bottom {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.qr-fake {
    width: 74px;
    height: 74px;
    background: repeating-linear-gradient(45deg, #111 0 5px, #fff 5px 10px), repeating-linear-gradient(-45deg, transparent 0 5px, #fff 5px 10px);
    border: 7px solid #fff;
    border-radius: 8px
}

.form-check-input:checked {
    background-color: var(--dark);
    border-color: var(--dark)
}

.settings-switch {
    width: 46px;
    height: 26px
}

@media(max-width:360px) {
    .home-tab-circle {
        width: 52px;
        height: 52px
    }

    .ios-tabbar button {
        font-size: 9px
    }

    .quick-icon {
        width: 58px;
        height: 58px
    }
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .player-meta,
html[dir="rtl"] .detail-hero-content {
    text-align: right
}

html[dir="rtl"] .ph-caret-right,
html[dir="rtl"] .ph-arrow-right {
    transform: none
}

html[dir="rtl"] .promo-dark > img {
    right: auto;
    left: -6px
}

html[dir="rtl"] .promo-dark-content {
    margin-left: auto
}

html[dir="rtl"] .notification-row.unread {
    background: linear-gradient(-90deg, rgba(255, 234, 0, .08), transparent)
}

/* Home logo supplied by the client */
.home-club-logo {
    width: 51px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    overflow: hidden
}

.home-club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

/* Manually swipeable latest-news strip */
.news-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -20px;
    padding: 2px 20px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    cursor: grab
}

.news-marquee:active {
    cursor: grabbing
}

.news-marquee::-webkit-scrollbar {
    display: none
}

.news-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 0
}

.news-marquee .mini-news {
    flex: 0 0 255px;
    scroll-snap-align: start;
    scroll-snap-stop: always
}

.news-category {
    color: #b39f00
}

/* Slightly smaller typography across the application */
html {
    font-size: 94%
}

.page-title {
    font-size: 16px
}

.section-title {
    font-size: 15px
}

.hero-content h1,
.hero-content h2 {
    line-height: 1.35;
    font-size: 18px;
}

.btn-dark-ios,
.btn-yellow-ios {
    font-size: .90rem
}

.ios-tabbar button {
    font-size: 9px
}

@media (max-width:360px) {
    html {
        font-size: 92%
    }
}

.ios-tabbar > a {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    min-width: 58px;
    height: 100%;
    font-size: 11px;
    font-weight: 800
}

.ios-tabbar > a i {
    font-size: 24px
}

.ios-tabbar > a.active {
    color: var(--dark)
}

.ios-tabbar > a.home-tab {
    transform: translateY(-12px)
}
.fs-6 {
    font-size: .95rem !important;
}