@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Medium.eot');
    src: url('fonts/Estedad-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/Estedad-Medium.woff2') format('woff2'),
        url('fonts/Estedad-Medium.woff') format('woff'),
        url('fonts/Estedad-Medium.ttf') format('truetype'),
        url('fonts/Estedad-Medium.svg#Estedad-Medium') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'Estedad';
    background-color: #fff;
    color: #fff;
    justify-content: center;
    align-items: center;
    height: 100vh;
    touch-action: manipulation;
    background: #FBF8FD;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

[data-tappable] {
    cursor: pointer;
}

.unsupported-message {
    width: 100%;
    font-family: 'Estedad';
    text-align: center;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 75%;
    margin: 0 auto;
}

.header-text {
    font-size: 48px;
    font-family: 'Estedad';
    margin-bottom: 20px;
    color: #000;
}

.logo-container {
    background-color: #dadada;
    padding: 20px;
    border-radius: 10px;
}

.logo {
    width: 55%;
    margin-bottom: 20px;
}

.sub-text {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 16;
    font-family: 'Estedad';
    direction: rtl;
    color: #000;
}

.instruction_text {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 16;
    font-family: 'Estedad';
    direction: rtl;
    color: #000;
}

.animate {
    transition-property: transform 0.5s ease-in;
}

/* none safari iphone */

.non_safari_pwa {
    max-width: 500;
    margin: 0 auto;
    text-align: center;
    font-family: 'Estedad';
    align-self: stretch;
}

.text_non_safari {
    color: #000;
    font-weight: 400;
    text-align: center;
    font-family: 'Estedad';
    color: black;
    font-size: 13px;
    line-height: 15.60px;
}

.text_non_safari_bold {
    color: #000;
    font-weight: 700;
    text-align: center;
    font-family: 'Estedad';
    color: black;
    font-size: 13px;
    line-height: 15.60px;
}


.btn_text_non_safari {
    text-align: center;
    color: white;
    font-size: 14px;
    font-family: 'Estedad';
    font-weight: 500;
    word-wrap: break-word
}


.safari_container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 56px;
    text-align: center;
}


.safari-description {
    width: 100%;
    text-align: center;
}

.bold-text {
    color: #1B1B1F;
    font-size: 13px;
    font-weight: 500;
    direction: ltr;
    text-align: center;
    vertical-align: middle;
}

.normal-text {
    color: #1B1B1F;
    font-size: 13px;
    font-weight: 400;
    direction: rtl;
    vertical-align: middle;
}

.safari_instructions {
    max-width: 300px;
    width: 100%;
    height: 170px;
    padding: 20px;
    margin: 0 auto;
    background: #F5F3F7;
    border-radius: 4px;
    border: 0.4px #DBE1FF solid;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 32px;
}

.safari_step {
    height: 50px;
    display: flex-inline;
    text-align: right;
    direction: rtl;
    align-items: center;
}


.button-container {
    width: 311px;
    height: 35px;
    padding: 8px;
    background: #0E53D9;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex
}

.android-container {
    margin: 0 auto;
    text-align: center;
    font-family: 'Estedad';
    align-self: stretch;
    text-align: center;
    cursor: pointer;
    width: 100%;
}

.button {
    cursor: pointer;
    background: #0F53D9;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    width: 200px;
    margin: auto;
}

.modal-container {
    display: none;
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 90%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.close-button {
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #000;
}

.download-option {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0px;
    gap: 10px;
    border-bottom: 1px solid #DDE1F9;
    cursor: pointer;
}

.download-option-no-border {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0px;
    gap: 10px;
    cursor: pointer;
}

.close_div {
    display: flex;
    align-items: center;
    text-align: end;
    padding-bottom: 10px;
    justify-content: space-between;
}

.desktop-container {
    align-self: stretch;
    padding-right: 7px;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 132px;
    display: inline-flex;
    direction: rtl;
}

.desktop-right-container {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.desktop-icon {
    align-self: stretch;
    height: 128px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    display: flex;
}

.desktop-bold-text {
    text-align: right;
    color: #1B1B1F;
    font-size: 22px;
    font-family: 'Estedad';
    font-weight: 600;
    word-wrap: break-word
}


.desktop-description {
    width: 361px;
    text-align: right;
    color: #0E53D9;
    font-size: 16px;
    font-family: 'Estedad';
    font-weight: 500;
    word-wrap: break-word
}

.desktop-qr-code {
    width: 393px;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    display: inline-flex
}

.qr-code-text {
    align-self: stretch;
    text-align: center;
    color: #1B1B1F;
    font-size: 14px;
    font-family: 'Estedad';
    font-weight: 400;
    word-wrap: break-word
}


/* splash screen related */

#splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #0F53D9;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    /* Ensure it's on top of everything */
    direction: rtl;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.splash_loading_title {
    color: #1B1B1F;
    font-size: 13px;
    font-weight: 400;
    direction: rtl;
    vertical-align: middle;
    margin-bottom: 10px;
}

.progress-container {
    width: 80%;
    height: 10px;
    background: #DBE1FF;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: #0E53D9;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px 4px 4px 4px;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Splash Logo - Centered in the middle of the screen */
#lottie-container {
    height: 95px;
}

/* Loading Animation - 214px from bottom, centered horizontally */
#lottie-loading-container {
    position: absolute;
    bottom: 161px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 95px;
}

/* Loading Text */
#splash_loading_title {
    color: white;
    font-size: 16px;
    margin-top: 8px;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 161px;
    left: 50%;
    transform: translateX(-50%);
}


#full-screen-div {
    width: 100vw;
    height: 100vh;
    background: #FBF8FD;
    margin: 0;
    padding: 0;
}

.skeleton-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    direction: rtl;
    padding-bottom: 100px;
}

/* Search bar height: 56px  */
.top-bar {
    height: 56px;
    background: #E4E2E6;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Banner height: 166px  */
.banner-skeleton {
    height: 166px;
    width: 100%;
    background: #E4E2E6;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* Title line: height 22 (corrected), width 100 */
.row-title {
    width: 100px;
    height: 22px;
    background: #E4E2E6;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Scroll Row (spacing 16px) */
.sk-scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    margin-bottom: 16px;

}

/* First row item width 80 */
.sk-scroll-item {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

/* Large second row item width 120 */
.sk-scroll-row.large .sk-scroll-item {
    width: 120px;
    height: 170px
}

/* Item images */
.sk-img-80 {
    width: 80px;
    height: 80px;
    background: #E4E2E6;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Text lines under sk-img-80 items */
.sk-line-80 {
    height: 22px;
    width: 50px;
    background: #E4E2E6;
    border-radius: 4px;
    margin: 0 auto;
}

.sk-img-120 {
    width: 120px;
    height: 120px;
    background: #E4E2E6;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Text lines under sk-img-120 items */
.sk-line-120 {
    height: 22px;
    width: 85px;
    background: #E4E2E6;
    border-radius: 4px;
    margin: 0 auto;
}

/* Large block height 140  */
.full-block {
    height: 140px;
    background: #E4E2E6;
    border-radius: 4px;
    margin-bottom: 32px;
}

/* Bottom nav same width logic as Dart */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
    max-width: 500px;
    width: 100%;
    background: #FBF8FD;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.bottom-item {
    width: 48px;
    height: 48px;
    background: #E4E2E6;
    border-radius: 12px;
}

/* ===== MODERN SKELETON STYLES ===== */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Base skeleton style */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #E4E2E6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}


/* Shimmer layer — soft, wide, slow */
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.24),
            rgba(255, 255, 255, 0.12),
            transparent);
    transform: skewX(-15deg);
    animation: shimmer 2.2s ease-in-out infinite;
}


@keyframes pulse {

    0% {
        left: 0px;
    }

    50% {
        left: 50%;
    }

    100% {
        left: 100%;
    }
}

.skeleton-pulse {
    animation: pulse 4s ease-in-out infinite;
}

:root[data-theme='light'] {
  --itemColor: #E4E2E6;
  --background: #FBF8FD;
}

:root[data-theme='dark'] {
  --itemColor: #34343A;
  --background: #121318;
}

/* Container like Dart: max-width 500, padding 16 */
#skeleton {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px;          /* MATCHES DART */
  direction: rtl;
  padding-bottom: 100px;
  background: var(--background);
}

#full-screen-div {
  width: 100vw;          /* Full viewport width */
  height: 100vh;         /* Full viewport height */
  background: var(--background); /* Use the CSS variable */
  margin: 0;
  padding: 0;
}

/* Search bar height: 56px (same as Dart) */
.top-bar {
  height: 56px;
  background: var(--itemColor);
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Banner height: 166px (same as Dart) */
.banner-skeleton {
  height: 166px;
  width: 100%;
  background: var(--itemColor);
  border-radius: 4px;
  margin-bottom: 16px;  /* MATCHES Dart (SizedBox 24) */
}

/* Title line: height 22 (corrected), width 100 */
.row-title {
  width: 100px;
  height: 22px;          /* DART MATCH */
  background: var(--itemColor);
  border-radius: 4px;
  margin-bottom: 8px;    /* MATCHES Dart */
}

/* Scroll Row (spacing 16px) */
.sk-scroll-row {
  display: flex;
  gap: 16px;              /* SAME as Dart Separator 16 */
  overflow-x: hidden;
  margin-bottom: 16px;    /* Dart spacing */
}

/* First row item width 80 */
.sk-scroll-item {
  width: 80px;
  flex-shrink: 0;
  text-align: center;
}

/* Large second row item width 120 */
.sk-scroll-row.large .sk-scroll-item {
  width: 120px;
  height: 170px
}

/* Item images */
.sk-img-80 {
  width: 80px;
  height: 80px;
  background: var(--itemColor);
  border-radius: 4px;
  margin-bottom: 8px;    /* Dart uses 10px */
}

/* Text lines under sk-img-80 items */
.sk-line-80 {
  height: 22px;
  width: 50px;
  background: var(--itemColor);
  border-radius: 4px;
  margin: 0 auto;
}

.sk-img-120 {
  width: 120px;
  height: 120px;
  background: var(--itemColor);
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Text lines under sk-img-120 items */
.sk-line-120 {
  height: 22px;
  width: 85px;
  background: var(--itemColor);
  border-radius: 4px;
  margin: 0 auto;
}

/* Large block height 140 (same as Dart) */
.full-block {
  height: 140px;
  background: var(--itemColor);
  border-radius: 4px;
  margin-bottom: 32px;
}

/* Bottom nav same width logic as Dart */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  max-width: 500px;
  width: 100%;
  background: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.bottom-item {
  width: 48px;
  height: 48px;
  background: var(--itemColor);
  border-radius: 12px;
}

/* Shimmer effect stays same */
.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}