:root {
  --primary:       #D97022;
  --primary-solid: #D97022;
  --accent:        #E88035;
  --primary-light: #F0985A;
  --grad-start:    #D97022;
  --grad-end:      #D97022;
  --bg-app:        #eef2fb;
  --header-h:      65px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Hind Siliguri', sans-serif; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg-app); min-height: 100vh; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

/* অ্যাপের নিচের প্যাডিং ৭৫ পিক্সেল রাখা হয়েছে বটম মেন্যুর জন্য */
#app { width: 100%; margin: 0 auto; background: var(--bg-app); min-height: 100vh; position: relative; padding-top: var(--header-h); padding-bottom: 75px; overflow-x: hidden; overflow-y: auto; transition: background 0.3s ease; }
#app:has(#purchase-view.active) { padding-top: 0; padding-bottom: 0; }

.header { position: fixed; top: 0; width: 100%; height: var(--header-h); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 1002; box-shadow: 0 4px 24px rgba(217,112,34,0.08); border-bottom: 1px solid rgba(255,255,255,0.6); }
.brand-logo { display: flex; align-items: center; cursor: pointer; }
.login-btn { background: var(--primary); color: white; border: none; padding: 9px 25px; border-radius: 30px; font-weight: 600; font-size: 13px; cursor: pointer; }
.profile-pic { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #0d1b2a; padding: 2px; cursor: pointer; display: none; }

.auth-loading #loginBtn { display: none !important; }
.auth-loading #profileIcon { display: none !important; }
.auth-loading #header-wallet { opacity: 0.5; pointer-events: none; }

.header-wallet-btn { display: flex; align-items: center; background: var(--primary); padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 14px; color: #ffffff; cursor: pointer; box-shadow: 0 4px 14px rgba(79,172,254,0.45); transition: transform 0.2s ease; }
.header-wallet-btn:active { transform: scale(0.95); }
.header-wallet-btn i { margin-right: 6px; font-size: 14px; color: #ffffff; }

.static-notice { background-color: var(--accent); color: #ffffff; margin: 15px auto 5px; width: 95%; border-radius: 8px; padding: 15px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.sn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sn-header h3 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: 0.5px; }
.sn-header button { background: none; border: none; color: #ffffff; font-size: 20px; cursor: pointer; padding: 0; transition: transform 0.2s; }
.sn-header button:active { transform: scale(0.9); }
#static-notice-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.9); font-weight: 500; }

#popup-notice { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#popup-notice.show { opacity: 1; pointer-events: all; }
.pn-box { background: #fff; border-radius: 10px; overflow: hidden; width: 100%; max-width: 400px; box-shadow: 0 25px 60px rgba(0,0,0,0.25); transform: scale(0.9) translateY(20px); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
#popup-notice.show .pn-box { transform: scale(1) translateY(0); }
.pn-banner-img { width: 100%; display: block; max-height: 220px; object-fit: cover; }
.pn-body { padding: 20px; }
.pn-title { font-size: 17px; font-weight: 800; color: #1a1a2e; margin-bottom: 8px; }
.pn-text { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 18px; }
.pn-close-btn { width: 100%; padding: 13px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }

.view { display: none; }
.view.active { display: block; animation: fadeIn 0.25s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.slider-wrap { width: 95%; margin: 15px auto 20px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: #fff; position: relative; min-height: 175px; }
.swiper, .mySwiper { width: 100%; height: 175px; }
.swiper-slide { display: flex; align-items: center; justify-content: center; }
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.5s ease; background: #f0f2f8; }
.swiper-slide img.loaded { opacity: 1; }
#slider-skeleton { position: absolute; inset: 0; z-index: 5; border-radius: 10px; transition: opacity 0.3s ease; }
.banner-skeleton { width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }

.sec-header { text-align: center; margin: 40px 0 20px; position: relative; }
.sec-header h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; color: #2d3436; display: inline-block; padding-bottom: 8px; border-bottom: 3px solid var(--grad-end); }
#sections-container { min-height: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 15px; max-width: 1400px; margin: 0 auto; }

.card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e8eaf0; text-align: center; box-shadow: 0 6px 20px rgba(217,112,34,0.08); transition: transform 0.2s; cursor: pointer; }
.card.skeleton { aspect-ratio: 1/1.3; height: auto; }
.card:active { transform: scale(0.96); }
.card-img { width: 100%; aspect-ratio: 1/1; padding: 4px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.card-title { padding: 5px; font-size: 12px; margin-top: -6px; font-weight: 700; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.purchases-wrap { margin: 10px 15px 30px; max-width: 1400px; }
.activity-feed { display: grid; gap: 12px; }
.activity-item { display: flex; align-items: center; gap: 15px; background: #fff; padding: 16px 18px; border-radius: 16px; border: 1px solid #f1f5f9; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.activity-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary-solid); border-radius: 4px 0 0 4px; opacity: 0.8; }
.activity-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.activity-item:active { transform: scale(0.98); }
.act-avatar-wrap { position: relative; flex-shrink: 0; }
.act-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f8fafc; border: 2px solid #e2e8f0; padding: 2px; }
.act-status-dot { position: absolute; bottom: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; }
.act-status-dot.Completed { background: #10b981; }
.act-status-dot.Pending   { background: #f59e0b; }
.act-status-dot.Cancelled { background: #ef4444; }
.act-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.act-name { font-size: 15px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; letter-spacing: -0.3px; }
.act-item { font-size: 13px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.act-item .act-price-inline { font-weight: 700; color: #059669; background: #d1fae5; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.act-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.act-price-stacked { font-weight: 800; color: #10b981; font-size: 14px; background: rgba(16,185,129,0.08); padding: 2px 10px; border-radius: 12px; }
.act-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.act-badge.Completed { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.act-badge.Pending   { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.act-badge.Cancelled { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.act-empty { text-align: center; padding: 40px 20px; color: #94a3b8; background: #fff; border-radius: 16px; border: 1px dashed #cbd5e1; }

.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; color: transparent !important; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ফুটারে সাদা স্পেস সমস্যা ফিক্স করা হয়েছে: margin-bottom ও padding-bottom দিয়ে গ্যাপ ঢেকে দেওয়া হলো */
.footer { background: #E67F33; margin-top: 40px; margin-bottom: -75px; padding: 50px 25px 85px; text-align: center; position: relative; overflow: hidden; width: 100%; box-shadow: 0 -10px 30px rgba(217,112,34,0.1); }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: rgba(0,0,0,0.15);
}
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 12px; }
.footer-logo img { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); opacity: 1; }
.footer-tag { font-size: 13px; color: #e2e8f0; max-width: 300px; margin: 0 auto 20px; line-height: 1.5; font-weight: 500; }
.footer-divider { width: 50px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); border-radius: 4px; margin: 0 auto 20px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; background: rgba(255,255,255,0.04); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); }
.link-col h3 { font-size: 14px; font-weight: 800; color: #ffffff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.link-col h3::before { content: ''; width: 4px; height: 14px; background: #38bdf8; border-radius: 3px; display: inline-block; }
.link-col ul { list-style: none; }
.link-col li { margin-bottom: 10px; font-size: 13px; color: #cbd5e1; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: all 0.3s ease; }
.link-col li i { color: #94a3b8; font-size: 12px; transition: 0.3s; }
.link-col li:hover { color: #38bdf8; transform: translateX(4px); }
.link-col li:hover i { color: #38bdf8; }
.social-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: 0.3s; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.social-btn:hover { transform: translateY(-3px) scale(1.05); background: rgba(255,255,255,0.15); box-shadow: 0 6px 15px rgba(0,0,0,0.25); border-radius: 50%; color: #fff; }
.payment-row { background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 12px; display: inline-flex; gap: 15px; margin-bottom: 25px; align-items: center; border: 1px solid rgba(255,255,255,0.15); }
.payment-row img { height: 24px; object-fit: contain; opacity: 0.95; transition: 0.3s; }
.payment-row img:hover { opacity: 1; transform: scale(1.1); }
.copyright { font-size: 12px; color: #cbd5e1; letter-spacing: 0.5px; position: relative; z-index: 1; margin-bottom: 5px; font-weight: 500; }

.auth-box { padding: 40px 20px; text-align: center; background: transparent; position: relative; max-width: 500px; margin: 0 auto; }
.auth-icon { font-size: 60px; background: var(--primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; }
.input-wrap { position: relative; margin-bottom: 15px; }
.input-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.auth-input { width: 100%; padding: 15px 15px 15px 45px; border: 1px solid #e2e8f0; border-radius: 14px; outline: none; background: #f8fafc; font-size: 14px; transition: 0.3s; color: #1e293b; font-weight: 500; }
.auth-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(217,112,34,0.1); }
.google-btn { width: 100%; padding: 14px; border: 1px solid #e2e8f0; background: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; margin-bottom: 25px; color: #334155; font-size: 14px; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.primary-btn { background: var(--primary); color: white; border: none; width: 100%; padding: 15px; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; box-shadow: 0 6px 15px rgba(217,112,34,0.25); transition: transform 0.2s; }

.profile-header { background: white; padding: 30px 20px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.profile-img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); object-fit: cover; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }
.stat-card { background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--accent); display: block; }
.option-list { background: white; max-width: 800px; margin: 0 auto; border-radius: 16px; }
.option-item { padding: 18px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; display: flex; align-items: center; gap: 15px; font-size: 15px; font-weight: 600; color: #334155; transition: background 0.2s; }
.option-item:hover { background: #f8fafc; }
.option-item i { color: var(--accent); width: 20px; font-size: 18px; }
.option-item.danger { color: #ef4444; }
.option-item.danger i { color: #ef4444; }

.trx-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); max-width: 800px; margin-left: auto; margin-right: auto; }
.trx-label { font-size: 14px; color: #1e293b; font-weight: 700; margin-bottom: 4px; }
.trx-date  { font-size: 11px; color: #64748b; }

.addm-container { max-width: 600px; margin: 0 auto; padding: 30px 20px; }
.pay-item { padding: 15px; border-radius: 14px; border: 1px solid #e2e8f0; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc; color: #64748b; }
.pay-item.active { background: #ffffff; border-width: 2px; border-color: var(--accent); box-shadow: 0 8px 20px rgba(217,112,34,0.1); color: #1e293b; }
.pay-item span { font-size: 13px; font-weight: 800; display: block; margin-top: 6px; }

.page-header-box { padding: 15px; background: #fff; border-bottom: 1px solid #e5e7eb; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.page-header-title { font-size: 18px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.redeem-btn { background: var(--accent); color: white; padding: 8px 15px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.redeem-btn:active { transform: scale(0.95); }
.orders-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 15px; max-width: 860px; margin: 0 auto; }
.order-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.order-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.oc-serial { font-size: 12px; font-weight: 800; color: var(--accent); background: #f0f0ff; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; }
.oc-time { font-size: 11px; color: #94a3b8; flex: 1; display: flex; align-items: center; gap: 4px; }
.oc-time i { font-size: 10px; }
.oc-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 30px; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-left: auto; }
.oc-item { font-size: 14px; font-weight: 700; color: #0f172a; }
.oc-badge.Completed { background: #10b981; color: #fff; }
.oc-badge.Pending   { background: #f59e0b; color: #fff; }
.oc-badge.Cancelled { background: #ef4444; color: #fff; }
.item-line { font-size: 14px; margin-bottom: 6px; line-height: 1.5; color: #222; display: flex; gap: 10px; align-items: baseline; }
.item-label { font-weight: 700; color: #000; min-width: 85px; }
.item-val   { font-weight: 500; color: #64748b; flex: 1; }
.st-Completed { color: #16a34a; font-weight: 700; }
.st-Pending   { color: #d97706; font-weight: 700; }
.st-Cancelled { color: #dc2626; font-weight: 700; }
.delivery-code { font-family: monospace; background: #f0fdf4; color: #16a34a; padding: 2px 8px; border-radius: 6px; font-weight: 700; border: 1px solid #bbf7d0; letter-spacing: 0.5px; }
.state-box { text-align: center; padding: 50px 20px; display: none; }
.state-box i { font-size: 50px; color: #cbd5e1; margin-bottom: 15px; }
.state-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 15px; }

#toast-box { position: fixed; top: 20px; width: 100%; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast { width: 90%; max-width: 400px; padding: 12px 16px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; animation: toastIn 0.3s ease forwards; opacity: 0; transform: translateY(-20px); }
.toast.success { background: rgba(16,185,129,0.95); }
.toast.error   { background: rgba(239,68,68,0.95); }
.toast.info    { background: rgba(59,130,246,0.95); }
@keyframes toastIn  { to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------
   সিম্পল ও ডিজিটাল বটম নেভিগেশন (Flat & Clean Design)
--------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e2e8f0;
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    color: #94a3b8;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

/* পজিশন: Add money ঠিক মাঝখানে, বাকিরা দুই পাশে */
.nav-item[data-view="home"]     { order: 1; }
.nav-item[data-view="myorders"] { order: 2; }
.nav-item[data-view="addmoney"] { order: 3; }
.nav-item[data-view="mycodes"]  { order: 4; }
.nav-item[data-view="account"]  { order: 5; }

/* অর্ডার আইকন পরিবর্তন করে সুন্দর শপিং ব্যাগ আইকন দেওয়া হলো */
.nav-item[data-view="myorders"] i::before {
    content: '\f290'; /* FontAwesome 6 Shopping Bag Icon */
}

.nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--accent);
}

/* অ্যাক্টিভ আইকনটি সুন্দর করে হাইলাইট হবে */
.nav-item.active i {
    transform: translateY(-3px) scale(1.1);
    font-size: 22px;
}
.nav-item.active span {
    font-weight: 800;
}

.pc-nav { display: none; align-items: center; gap: 4px; }
.pc-nav-item { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; transition: background 0.18s, color 0.18s; white-space: nowrap; }
.pc-nav-item:hover { background: #f1f5f9; color: #1e293b; }
.pc-nav-item.active { color: var(--grad-start); }

#install-banner { position: fixed; bottom: 90px; width: 100%; z-index: 9998; padding: 0 14px; display: none; max-width: 600px; left: 50%; transform: translateX(-50%); }
#install-banner.show { display: block; animation: slideUpBanner 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes slideUpBanner { from{transform:translate(calc(-50%),120px);opacity:0} to{transform:translate(calc(-50%),0);opacity:1} }
#install-inner { background: white; color: #1e293b; border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 10px 40px rgba(217, 112, 34, 0.2); border: 1px solid rgba(217, 112, 34, 0.1); }
.banner-app-icon { width: 48px; height: 48px; background: rgba(217,112,34,0.1); border-radius: 14px; overflow: hidden; flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.banner-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { flex: 1; }
.banner-text strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 3px; color: #0f172a; }
.banner-text small { font-size: 13px; color: #64748b; font-weight: 500; }
.banner-install-btn { background: var(--primary); border: none; color: white; padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 15px rgba(217, 112, 34, 0.3); }
.banner-close-btn { background: #f1f5f9; border: none; color: #94a3b8; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#ios-hint { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(200px); z-index: 9997; display: none; width: calc(100% - 28px); max-width: 400px; }
#ios-hint.show { display: block; animation: slideUpBanner 0.4s ease forwards; }
#ios-hint-inner { background: white; border-radius: 20px; padding: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.ios-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; color: #334155; }

.purchase-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 0 15px; z-index: 1003; box-shadow: 0 1px 10px rgba(0,0,0,0.08); }
.back-btn { font-size: 18px; color: #333; padding: 8px; cursor: pointer; border-radius: 50%; background: #f5f6fa; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; }
.page-title { font-size: 16px; font-weight: 700; color: #333; text-transform: uppercase; }
.header-profile { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); padding: 1px; cursor: pointer; }

.purchase-container { max-width: 600px; margin: 0 auto; padding: 10px 15px 15px; animation: fadeIn 0.4s ease; }

.product-card { background: #fff; border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 15px; margin-bottom: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #fff; }
.p-img { width: 75px; height: 75px; border-radius: 12px; object-fit: cover; background: #eee; }
.p-info h2 { font-size: 18px; font-weight: 700; color: #2d3436; margin-bottom: 4px; line-height: 1.2; }
.p-info p { font-size: 12px; color: #636e72; background: #f1f2f6; display: inline-block; padding: 2px 8px; border-radius: 4px; }

.section-box { background: #fff; border-radius: 16px; padding: 20px 15px; margin-bottom: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; }
.purchase-sec-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed #f1f2f6; }
.sec-icon { width: 28px; height: 28px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.sec-title { font-size: 15px; font-weight: 700; color: #2d3436; text-transform: uppercase; }

/* ---------------------------------------------------
   কমপ্যাক্ট এবং সুন্দর প্যাকেজ বক্স ডিজাইন (Premium Box)
--------------------------------------------------- */
.pkg-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
}

.pkg-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px; /* হাইট কমানো হয়েছে */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto; /* অটোমেটিক পারফেক্ট সাইজ */
}

.pkg-item:hover {
    border-color: #cbd5e1;
}

.pkg-item:active {
    transform: scale(0.97);
}

.pkg-item.active {
    border-color: var(--accent);
    background: #f8f9ff;
}

/* প্যাকেজ সিলেক্ট করলে টিকমার্ক আইকন */
.pkg-item.active::after {
    content: '\f058'; /* FontAwesome 6 Solid check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px; 
    right: 8px;
    color: var(--accent);
    font-size: 18px;
}

.pkg-name { 
    font-size: 13px; 
    font-weight: 600; 
    color: #475569; 
    margin-bottom: 4px; 
    line-height: 1.3; 
}

.pkg-price { 
    font-size: 16px; 
    font-weight: 800; 
    color: var(--accent); 
}

/* Out of Stock এর মডার্ন ডিজাইন */
.stock-out { 
    background: #f8fafc; 
    border-color: #e2e8f0; 
    opacity: 0.6; 
    pointer-events: none; 
}

.stock-badge {
    display: inline-block;
    background: #ef4444; 
    color: #ffffff;
    font-size: 10px; 
    font-weight: 700;
    padding: 4px 10px; 
    border-radius: 20px;
    margin-top: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.input-group-item { margin-bottom: 15px; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #b2bec3; }
.form-input { width: 100%; padding: 14px 15px 14px 40px; border: 1px solid #cfd0d1; border-radius: 8px; font-size: 15px; outline: none; background: #fff; transition: 0.3s; color: #333; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,112,34,0.1); }
.input-label { font-size: 14px; color: #333; margin-bottom: 8px; display: block; font-weight: 600; }

.check-uid-btn { background: #0d1117; color: #ffffff; border: 1px solid #30363d; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 5px; transition: 0.2s; }
.check-uid-btn.found { background: #198754; border-color: #198754; }

/* ═══ NEW PAYMENT CARD UI ═══ */
.new-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.new-pay-card { background: #fff; border: 1px solid #dcdde1; border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; display: flex; flex-direction: column; transition: all 0.2s; }
.new-pay-card.active { border-color: #d63031; }
.new-pay-body { padding: 20px 10px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.new-pay-footer { background: #e2e8f0; padding: 8px; text-align: left; font-size: 13px; font-weight: 700; color: #64748b; transition: all 0.2s; }
.new-pay-card.active .new-pay-footer { background: #cbd5e1; color: #334155; }
.check-ribbon { position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 35px solid #d63031; border-right: 35px solid transparent; display: none; z-index: 2; }
.check-ribbon i { position: absolute; top: -28px; left: 4px; color: #fff; font-size: 12px; }
.new-pay-card.active .check-ribbon { display: block; }

.pay-info-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pay-info-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; }
.pay-info-line i { color: #b2bec3; font-size: 16px; }
.refresh-bal-btn { background: #fff; border: 1px solid #dfe6e9; border-radius: 4px; padding: 4px 8px; cursor: pointer; color: #636e72; transition: 0.2s; outline: none; }
.refresh-bal-btn:active { background: #f1f2f6; }
.fa-spin-fast { animation: fa-spin 0.6s infinite linear; }

.bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 1003; max-width: 600px; margin: 0 auto; right: 0; }
.total-area span { font-size: 12px; color: #636e72; font-weight: 500; }
.total-area b { font-size: 22px; font-weight: 800; color: #2d3436; display: block; }
.confirm-btn { background: var(--primary); color: white; border: none; padding: 16px 32px; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.confirm-btn:active { transform: scale(0.97); }
.confirm-btn.success { background: linear-gradient(135deg, #10b981, #059669); }
.confirm-btn:disabled { opacity: 0.7; cursor: not-allowed; }

@media (min-width: 768px) {
  #app { max-width: 100%; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-nav { display: none; }
  .pc-nav { display: flex; }
  #app { padding-bottom: 30px; }
  .slider-wrap { max-width: 900px; }
  .purchases-wrap { max-width: 900px; margin-left: auto; margin-right: auto; }
  .orders-grid { grid-template-columns: 1fr 1fr; }
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 15px;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  max-width: 800px;
  margin: 0 auto;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.support-card i {
  font-size: 32px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.support-card span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.support-card:hover {
  background: #ffffff;
  border-color: var(--ch-color);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.support-card:hover i {
  transform: scale(1.15);
}

#support-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.fab-sub-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.3s, padding-bottom 0.3s;
  pointer-events: none;
}
.fab-sub-btns.open {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
  padding-bottom: 12px;
  pointer-events: auto;
}

#support-fab-main {
  width: 54px;
  height: 54px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(217,112,34,0.4);
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
  outline: none;
  flex-shrink: 0;
}
#support-fab-main:active { transform: scale(0.93); }
#support-fab-main i {
  color: white;
  font-size: 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(217,112,34,0.35);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0;   }
  100% { transform: scale(1.45); opacity: 0;   }
}

.fab-sub-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  color: white;
  font-size: 18px;
  transition: transform 0.2s;
  text-decoration: none;
  outline: none;
  flex-shrink: 0;
}
.fab-sub-btn:hover  { transform: scale(1.12); }
.fab-sub-btn:active { transform: scale(0.92); }
.fab-wa  { background: linear-gradient(135deg, #25D366, #128C7E); }
.fab-tg  { background: linear-gradient(135deg, #2AABEE, #1d8ec7); }
.fab-msg { background: linear-gradient(135deg, #0099FF, #a033ff); }

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

#purchase-view { background: #f0f2f5; padding-top: 60px; padding-bottom: 100px; min-height: 100vh; }
#purchase-view.active ~ * { padding-bottom: 0; }
#purchase-view .purchase-header { display: flex; }
.pur-skeleton-card { display: flex; align-items: center; gap: 15px; background: #fff; padding: 15px; border-radius: 16px; margin-bottom: 20px; }

.purchase-hidden { display: none !important; }

#sections-container:empty { display: none; }
#sections-container { padding-bottom: 0; }
.purchases-wrap { margin-top: 0; }

.act-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }


.home-support-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto 25px auto;
}

.h-supp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

/* ওয়েবসাইটের থিম অনুযায়ী কালার (Primary Gradient) */
.h-supp-card.wa-card {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
}

/* ওয়েবসাইটের থিম অনুযায়ী কালার (Accent Gradient) */
.h-supp-card.tg-card {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(217, 112, 34, 0.25);
}

.h-supp-card:active {
    transform: scale(0.96);
}

.h-supp-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.h-supp-text {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.h-supp-text span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.h-supp-text strong {
    font-size: 15px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
}

/* হালকা শ্যাডো ইফেক্ট */
.h-supp-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .home-support-cards { max-width: 900px; }
    .h-supp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(217, 112, 34, 0.3); }
}

/* Level System CSS */
.level-section { margin: 25px 20px 10px; padding: 0 5px; }
.level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.level-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 12px; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
.next-level-text { font-size: 12px; color: #64748b; font-weight: 700; }
.progress-bg { height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 6px; position: relative; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.5s ease-out; }
.level-desc { background: rgba(217,112,34,0.08); padding: 8px 15px; border-radius: 20px; font-size: 11px; color: #475569; text-align: center; margin-bottom: 20px; font-weight: 600; border: 1px solid rgba(217,112,34,0.1); }

/* Profile Avatar Level Frames */
.profile-img.level-1-frame { border: 4px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.profile-img.level-2-frame { border: 4px solid var(--lvl2-border, #cd7f32); box-shadow: 0 0 15px var(--lvl2-shadow, rgba(205,127,50,0.6)); }
.profile-img.level-3-frame { border: 4px solid var(--lvl3-border, #c0c0c0); box-shadow: 0 0 15px var(--lvl3-shadow, rgba(192,192,192,0.6)); }
.profile-img.level-4-frame { border: 4px solid var(--lvl4-border, #ffd700); box-shadow: 0 0 15px var(--lvl4-shadow, rgba(255,215,0,0.6)); }
.profile-img.level-5-frame { border: 4px solid var(--lvl5-border, #00f2fe); box-shadow: 0 0 20px var(--lvl5-shadow, rgba(0,242,254,0.8)); }

.rewards-list { display: flex; flex-direction: column; gap: 6px; }
.reward-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; }
.reward-item:last-child { border-bottom: none; }
.reward-info { display: flex; flex-direction: column; gap: 2px; }
.reward-title { font-size: 13px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.reward-req { font-size: 11px; color: #64748b; font-weight: 600; }
.reward-btn { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; transition: 0.2s; }
.reward-btn.locked { background: transparent; color: #94a3b8; cursor: not-allowed; border: 1px solid #e2e8f0; }
.reward-btn.claim { background: #10b981; color: white; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }
.reward-btn.claim:hover { transform: translateY(-2px); }
.reward-btn.claimed { background: rgba(16, 185, 129, 0.1); color: #10b981; cursor: not-allowed; font-weight: 800; }




