@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Onest:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://cdn-uicons.flaticon.com/4.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

:root{
    --success-color: #00ffa6;
    --primary-color: #97cff3;
    --text-color: #333;
    --bg-color: #f0f2f5;

    --bg-primary: #ffffff;
    --text-dark: #111111;
    --text-muted: #7e7e7e;
    --brand-green: #c3f2df; 
    --card-dark: #101917;
    --gray-light: #f6f6f6;

    --font-family: -apple-system, BlinkMacSystemFont,'Onest', 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif; 
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
   font-family: var(--font-family);
}
/* body {
    /* background-color: #000000;  */
    background-color: var(--bg-color);
    color: var(--text-color);

    margin: 0;
    padding: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
        
} */
  body {
    background-color: var(--bg-color);
    display: block; /* 'flex' ni 'block' ga o'zgartiring */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.text-success {
    color: var(--success-color);
}
.text-primary {
    color: var(--primary-color);
}
section.block{
    margin-block: 10px;
}
 /* Orqa fondagi chiroyli katta yorug'liklar (Abstract Shapes) */
        .bg-glow {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(45, 212, 191, 0.20) 0%, rgba(0,0,0,0) 70%);
            bottom: -200px;
            left: -200px;
            z-index: 1;
            pointer-events: none;
        }

        .bg-glow-2 {
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.30) 0%, rgba(0,0,0,0) 70%);
            top: -150px;
            right: -180px;
            z-index: 1;
            pointer-events: none;
        }
        .bg-glow-3 {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.30) 0%, rgba(0,0,0,0) 70%);
            top: -250px;
            right: -280px;
            z-index: 1;
            pointer-events: none;
        }

       .fi, [class^="fi-"], [class*=" fi-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Yoki pseudo-elementining chiziq balandligini nolga yaqinlashtirish */
.fi::before, [class^="fi-"]::before, [class*=" fi-"]::before {
    line-height: 1 !important;
    display: inline-block;
}

/* Oxirgi operatsiyalar bo'limi */
.transactions-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}
.section-premium-title{
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to right, var(--success-color), black);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.see-all {
    font-size: 13px;
    color: #007AFF;
    cursor: pointer;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 16px;
}

.trans-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trans-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trans-details span {
    display: block;
}

.trans-name { font-size: 14px; font-weight: 600; }
.trans-date { font-size: 11px; color: #8E8E93; }
.trans-amount { font-size: 14px; font-weight: 700; }


.goals-section {
    margin-top: 24px;
}

.goals-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-card {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 20px;
    /* border: 1px solid #f0f0f0; */
}
.goal-card:active {
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    opacity: 0.55;
    scale: 0.95;
    transition: all 0.5s ease-in-out;
}
.goal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.goal-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.goal-name { font-size: 14px; font-weight: 600; display: block; }
.goal-progress-text { font-size: 11px; color: #8E8E93; }

.progress-bar-container {
    width: 100%;
    height: 8px;
    /* background: #f0f0f0;  */
    
    display: flex; /* Ikki qismni yonma-yon qo'yish uchun */
    overflow: hidden;
   
}

.progress-filled {
    height: 100%;
    background: #00e676; /* To'lgan qism (yashil) */
    border-radius: 4px;
}

.progress-remaining {
    height: 100%;
    background: #e0e0e0; /* Yoki to'lmagan qism uchun boshqa och rang: #*/
    flex-grow: 1;
    margin-left: 3px; /* To'lmagan qismni to'lgan qismdan ajratish uchun kichik bo'shliq */
    border-radius: 4px;
}

.news-container{
    overflow-x: auto;
    height: 130px;
    width: 100%;
    /* scrollbar hidden */
scrollbar-width: none; /* Firefox uchun */
  -ms-overflow-style: none; /* IE va Edge uchun */
}

.news-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari va Opera uchun */
}
.news-slides{
    display: flex;
    gap: 12px;
    width: 100%;
}
.news-slide{
    max-width: 100px;
    height: 100px;
    background: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    flex-shrink: 0; /* Kichikroq bo'lishiga yo'l qo'ymaslik */
}
.news-slide img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}


.p-container{
    overflow-x: auto;
    height: 140px;
    width: 100%;
    /* scrollbar hidden */
scrollbar-width: none; /* Firefox uchun */
  -ms-overflow-style: none; /* IE va Edge uchun */
}

.p-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari va Opera uchun */
}
.p-slides{
    display: flex;
    gap: 12px;
    width: 100%;
}
.p-slide{
    max-width: 100px;
    height: 140px;
    /* background: #f9f9f9; */
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    /* border: 1px solid #f0f2f5; */
    flex-shrink: 0; /* Kichikroq bo'lishiga yo'l qo'ymaslik */
}

.p-slide span{
    margin-top: 2px;
    font-size: 15px;
}
.p-slide img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}
.p-slide .img{
     width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f0f2f5;
    font-size: 30px;
    align-items: center;
    display: flex;
    justify-content: center;
}
.p-slide .img{
     width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f0f2f5;
    font-size: 30px;
    align-items: center;
    display: flex;
    justify-content: center;
}
.payments {
    display: flex;
    flex-wrap: wrap; /* Elementlar sig'masa, pastga tushadi */
    gap: 10px;
}

.payments > .card, .payments .card2 {
    /* 50% - 5px (gap hisobiga) 2 ta div sig'ishi uchun */
    width: calc(50% - 5px); 
    box-sizing: border-box; /* Padding bo'lsa, o'lcham buzilmasligi uchun */
}
.payments .card{
   padding:20px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f0f2f5;
       position: relative;
    overflow: hidden;
    gap: 10px;
}
.payments .card2{
   padding:12px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #000;
       position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.payments .card2 .icon{
     padding:10px;
    border-radius: 7px;
    color:white;
    border: 2px solid #fff;
    width: 30px;
    height: 30px;
     align-items: center;
    display: flex;
    justify-content: center;
}

.payments .card2 span{
    background: linear-gradient(90deg, #fff, var(--success-color), #fff);
    background-size: 200% 100%; /* Gradientni kengaytiramiz */
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
    color: transparent;
    animation: move-gradient 3s linear infinite; /* 3 soniyada to‘liq aylanish */
    margin-left: 10px;
}

.payments .card .icon{
    padding:20px;
    background-color: #000;
    border-radius: 12px;
    color:white;
    width: 50px;
    height: 50px;
     align-items: center;
    display: flex;
    justify-content: center;
}
.payments .card span{
    position: absolute; /* Ota-onaga nisbatan joylashadi */
    bottom: 20px;       /* Pastdan 10px masofada */
    left: 20px;
    font-size: large;
    font-weight: 800;
}
.smartpay-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
     border-radius: 16px;
    padding: 12px 12px;
}

.smartpay-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.smartpay-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smartpay-card .card-icon img{
    width: 48px;
    border-radius: 12px;
}
.card-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.card-info p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #666;
    width: 70%;
}

.smartpay-card .balance {
    margin-left: auto;
    width: 30%;
    background: linear-gradient(90deg, var(--success-color), #000, var(--success-color));
    background-size: 200% 100%; /* Gradientni kengaytiramiz */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: move-gradient 3s linear infinite; /* 3 soniyada to‘liq aylanish */
    font-weight: 800;
    font-size: 14px;
    text-align: end;
}

@keyframes move-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* ==================================================================
   SHARED STATE PATTERNS (loading / empty / error)
   Used across home, payments, notifications, transactions, rewards,
   stats, etc. so every page renders the same visual language instead
   of redefining these per file. See assets/ui-state.js for the JS
   helpers that pair with these classes.
   ================================================================== */

.empty-state, .error-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
}

.empty-state.show, .error-state.show {
    display: flex;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.error-state .empty-state-icon {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

.retry-btn {
    margin-top: 16px;
    background: var(--text-dark);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.retry-btn:active {
    transform: scale(0.95);
    opacity: 0.85;
}

/* Skeleton shimmer loaders (matches transactions.html pattern) */
.skeleton-list { display: none; flex-direction: column; gap: 12px; }
.skeleton-list.show { display: flex; }

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 16px;
}

.skeleton-box {
    border-radius: 12px;
    background: linear-gradient(90deg, #eeeeee 25%, #f5f5f5 37%, #eeeeee 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.skeleton-icon { width: 40px; height: 40px; flex-shrink: 0; }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skeleton-line { height: 10px; border-radius: 6px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w35 { width: 35%; }
.skeleton-line.w45 { width: 45%; }
.skeleton-amount { width: 70px; height: 14px; border-radius: 6px; }

/* Skeleton variant for card-shaped blocks (goals, smartpay, wallets) */
.skeleton-card {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smartpay-container .label{
    background: linear-gradient(90deg, var(--success-color), #000, var(--success-color));
    background-size: 200% 100%; /* Gradientni kengaytiramiz */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: move-gradient 3s linear infinite;
    text-align: center;
    padding: 5px;
    font-weight: bolder;
}


       /* Pastki menyu konteyneri */
.bottom-nav {
    position: fixed;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* iOS uchun xavfsiz hudud */
}
#menu{
    bottom: 1px;
}
/* Umumiy tugmalar stillari */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #8E8E93; /* Aktiv bo'lmagan rang */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Belgilar (Ikonkalar) */
.nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Matnlar */
.nav-link span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Aktiv holat (Bosilganda) */
.nav-link.active {
    color: #007AFF; /* Sizning brendingiz ranggi (masalan, ko'k) */
}

/* AI maxsus tugmasi konteyneri */
.ai-container {
    position: relative;
    top: -15px; /* Tugmani biroz yuqoriga chiqarish */
}

.ai-btn {
    width: 85px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Yashil rang */
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.ai-btn i {
    font-size: 22px;
    margin: 0;
}

.ai-btn:active {
    transform: scale(0.92); /* Bosilganda kichrayish effekti */
}

.ai-text {
    margin-bottom: 5px;
    color: var(--text-dark); /* AI matni uchun alohida rang */
}