/* ============================================================
   OpenApps – theme.css  (shared, black/white/gray + dark-orange)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; background:#f5f5f6; color:#1a1a2e; min-height:100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== TOP HEADER ===== */
.top-header { display:flex; align-items:center; height:72px; padding:0 32px; background:#fff; border-bottom:1px solid #e8ecf1; position:fixed; top:0; left:0; right:0; z-index:1000; }
.top-header::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:linear-gradient(90deg,#111827,#ea580c); opacity:0.9; }
.header-left { display:flex; align-items:center; min-width:250px; }
.logo { display:flex; align-items:center; text-decoration:none; margin-left:-1.3cm; }
.logo img { max-height:44px; width:auto; object-fit:contain; }
.header-center { flex:1; display:flex; justify-content:center; padding:0 24px; }
.search-box { display:flex; align-items:center; background:#f5f5f6; border-radius:12px; padding:0 18px; width:480px; height:44px; border:2px solid #e0e4eb; transition:border-color .2s,box-shadow .2s,background .2s; overflow:hidden; }
.search-box:focus-within { border-color:#111827; box-shadow:0 0 0 4px rgba(17,24,39,.08); background:#fff; }
.search-box svg { flex-shrink:0; color:#111827; }
.search-box input { border:none; background:transparent; outline:none; flex:1; min-width:0; font-size:14.5px; color:#1a1a2e; padding:0 12px; font-family:inherit; }
.search-box input::placeholder { color:#9aa1b1; }
.header-right { display:flex; align-items:center; gap:12px; min-width:200px; justify-content:flex-end; }
.nav-link-btn { font-size:14px; color:#5a6070; text-decoration:none; font-weight:500; display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:8px; transition:background .2s,color .2s; position:relative; border:none; background:transparent; cursor:pointer; font-family:inherit; }
.nav-link-btn:hover { background:#f5f5f6; color:#1a1a2e; }
.notif-dot { width:8px; height:8px; background:#ef4444; border-radius:50%; position:absolute; top:6px; right:6px; border:2px solid #fff; }
.avatar-small { width:32px; height:32px; border-radius:50%; background:#e5e7eb; color:#374151; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.user-badge { display:flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; border-radius:20px; background:#f5f5f6; cursor:pointer; transition:background .2s; }
.user-badge:hover { background:#e8ecf1; }
.user-badge .name { font-size:13px; font-weight:600; color:#1a1a2e; }
.logout-btn { font-size:13px; color:#1a1a2e; text-decoration:none; font-weight:600; padding:8px 14px; border-radius:8px; border:1.5px solid #d0d6e0; transition:all .2s; background:#fff; cursor:pointer; font-family:inherit; }
.logout-btn:hover { background:#fdf1ea; border-color:#ea580c; color:#c2410c; }
.menu-btn { width:42px; height:42px; border-radius:10px; border:1.5px solid #d0d6e0; background:#fff; color:#1a1a2e; cursor:pointer; display:none; align-items:center; justify-content:center; flex-shrink:0; transition:all .2s; }
.menu-btn:hover { border-color:#ea580c; color:#ea580c; }
.menu-btn:active { transform:scale(0.94); }

/* ===== MOBILE DRAWER ===== */
.drawer-overlay { position:fixed; inset:0; background:rgba(17,24,39,.55); z-index:1200; opacity:0; visibility:hidden; transition:opacity .3s ease,visibility .3s ease; }
.drawer-overlay.open { opacity:1; visibility:visible; }
.mobile-drawer { position:fixed; top:0; right:0; bottom:0; width:min(320px,86vw); background:#fff; z-index:1300; transform:translateX(105%); transition:transform .32s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; box-shadow:-10px 0 30px rgba(17,24,39,.18); overflow-y:auto; -webkit-overflow-scrolling:touch; visibility:hidden; }
.mobile-drawer.open { transform:translateX(0); visibility:visible; }
.drawer-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 12px; border-bottom:1px solid #f0f2f5; flex-shrink:0; }
.drawer-title { font-size:16px; font-weight:800; color:#1a1a2e; }
.drawer-close { width:34px; height:34px; border-radius:8px; border:1px solid #d0d6e0; background:#fff; color:#5a6070; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; flex-shrink:0; }
.drawer-close:hover { border-color:#ea580c; color:#ea580c; }
.drawer-user { display:flex; align-items:center; gap:12px; padding:16px 18px 10px; }
.drawer-user .user-avatar-lg { width:44px; height:44px; border-radius:14px; font-size:15px; }
.drawer-user-name { font-size:15px; font-weight:700; color:#1a1a2e; }
.drawer-user-level { font-size:12px; color:#374151; font-weight:600; margin-top:2px; }
.drawer-credit { margin:0 18px 6px; font-size:13px; font-weight:600; color:#1f2937; padding:8px 12px; background:#f3f4f6; border-radius:8px; border:1px solid #e5e7eb; display:flex; align-items:center; gap:6px; }
.drawer-credit svg { color:#374151; }
.drawer-nav { list-style:none; padding:4px 0; }
.drawer-link { display:flex; align-items:center; gap:10px; padding:12px 20px; font-size:14px; font-weight:500; color:#1a1a2e; text-decoration:none; transition:background .2s; position:relative; }
.drawer-link:hover { background:#f5f5f6; }
.drawer-footer { margin-top:auto; padding:16px 18px; border-top:1px solid #f0f2f5; display:flex; flex-direction:column; gap:10px; flex-shrink:0; }

/* ===== MAIN LAYOUT ===== */
.app-layout { display:flex; padding-top:64px; min-height:calc(100vh - 64px); }

/* ===== SIDEBAR ===== */
.sidebar { width:260px; background:#fff; border-right:1px solid #e8ecf1; flex-shrink:0; padding:24px 0; position:fixed; top:64px; left:0; bottom:0; overflow-y:auto; z-index:100; }
.sidebar::-webkit-scrollbar { width:4px; }
.sidebar::-webkit-scrollbar-thumb { background:#d0d6e0; border-radius:2px; }
.user-card { padding:0 20px 16px; border-bottom:1px solid #f0f2f5; margin-bottom:8px; }
.user-card-top { display:flex; align-items:center; gap:14px; }
.user-avatar-lg { width:40px; height:40px; border-radius:14px; background:linear-gradient(135deg,#111827,#374151); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; flex-shrink:0; }
.user-info-right .user-name { font-size:16px; font-weight:700; color:#1a1a2e; }
.user-info-right .user-level { font-size:12px; color:#374151; font-weight:600; margin-top:2px; }
.user-credit { font-size:13px; font-weight:600; color:#1f2937; margin-top:10px; padding:6px 12px; background:#f3f4f6; border-radius:8px; border:1px solid #e5e7eb; display:flex; align-items:center; gap:6px; }
.user-credit svg { color:#374151; }
.nav-menu { list-style:none; padding:8px 0; }
.nav-menu li { margin:0 8px 4px; }
.nav-item { display:flex; align-items:center; gap:12px; padding:11px 14px; font-size:14.5px; font-weight:500; color:#1a1a2e; cursor:pointer; transition:all .2s; border:2px solid transparent; border-radius:8px; text-decoration:none; }
.nav-item:hover { background:#f5f5f6; }
.nav-item.active { background:#eef0f3; color:#111827; border:2px solid #111827; border-radius:8px; font-weight:700; }
.nav-item svg { flex-shrink:0; stroke:#1a1a2e; opacity:.9; }
.nav-item.active svg { opacity:1; stroke-width:2.2; }
.nav-item .notif-count { margin-left:auto; background:#ef4444; color:#fff; font-size:11px; font-weight:700; padding:1px 8px; border-radius:10px; min-width:20px; text-align:center; }
.cart-badge { margin-left:auto; background:rgba(234,88,12,.12); border:1px solid rgba(234,88,12,.18); color:#c2410c; font-size:10px; font-weight:700; padding:1px 8px; border-radius:10px; white-space:nowrap; display:inline-flex; align-items:center; gap:3px; }
.cart-badge .lbl { color:#8e95a5; font-size:9.5px; font-weight:600; }
.nav-section-label { margin:10px 14px 4px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; }
.drawer-section-label { margin:12px 16px 2px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; }

/* ===== MAIN CONTENT ===== */
.main-content { flex:1; margin-left:260px; padding:32px 40px 80px; min-width:0; }
.page-title { font-size:26px; font-weight:800; color:#1a1a2e; letter-spacing:-.5px; margin-bottom:8px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.page-title .count { font-size:14px; font-weight:500; color:#8e95a5; background:#f0f2f5; padding:2px 12px; border-radius:12px; }
.page-subtitle { font-size:14.5px; color:#5a6070; line-height:1.6; margin-bottom:24px; max-width:820px; }
.page-sub { font-size:13.5px; color:#5a6070; margin-bottom:24px; }
.count-badge { font-size:14px; font-weight:500; color:#8e95a5; background:#f0f2f5; padding:2px 12px; border-radius:12px; display:inline-flex; align-items:center; gap:6px; }
.section-heading { font-size:18px; font-weight:700; color:#1a1a2e; margin-bottom:16px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.section-badge { font-size:12px; font-weight:600; background:rgba(17,24,39,.08); color:#111827; padding:2px 10px; border-radius:10px; display:inline-flex; align-items:center; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.page-head > div { min-width:0; }
.head-actions { display:flex; gap:10px; flex-shrink:0; }

/* ===== HERO / DASHBOARD SUMMARY ===== */
.hero { position:relative; overflow:hidden; border-radius:16px; background:linear-gradient(120deg,#111827 0%,#1f2937 55%,#374151 100%); color:#fff; padding:30px 34px; margin-bottom:26px; box-shadow:0 12px 30px rgba(17,24,39,.2); }
.hero::after { content:''; position:absolute; right:-70px; top:-70px; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,rgba(234,88,12,.35),transparent 70%); }
.hero h2 { font-size:22px; font-weight:800; letter-spacing:-.3px; margin-bottom:8px; }
.hero p { font-size:14px; line-height:1.65; color:#d1d5db; max-width:640px; }
.hero .hero-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; position:relative; z-index:1; }
.hero .hero-tag { font-size:12px; font-weight:600; padding:6px 12px; border-radius:20px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:#e5e7eb; display:flex; align-items:center; gap:6px; }
.hero .hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-top:20px; position:relative; z-index:1; }
.hero .hero-cell { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:14px 16px; }
.hero .hero-cell .v { font-size:24px; font-weight:800; letter-spacing:-.4px; color:#fb923c; line-height:1.15; }
.hero .hero-cell .l { font-size:12px; color:#9ca3af; font-weight:600; margin-top:3px; }
.hero .hero-cell a { color:#fb923c; text-decoration:underline; text-underline-offset:2px; }

/* ===== STATS ===== */
.stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-bottom:28px; }
.stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.stat-card { background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:16px 20px; display:flex; align-items:center; gap:14px; position:relative; overflow:hidden; transition:all .25s; animation:fadeUp .35s ease forwards; opacity:0; }
.stat-card:hover { border-color:#111827; box-shadow:0 8px 26px rgba(17,24,39,.08); transform:translateY(-2px); }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#111827,#ea580c); opacity:.9; }
.stat-icon { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff; box-shadow:0 6px 16px rgba(17,24,39,.16); }
.stat-icon.o { background:linear-gradient(135deg,#ea580c,#c2410c); }
.stat-icon.g { background:linear-gradient(135deg,#10b981,#047857); }
.stat-icon.p { background:linear-gradient(135deg,#f59e0b,#d97706); }
.stat-icon.b { background:linear-gradient(135deg,#111827,#374151); }
.stat-info { min-width:0; }
.stat-value { font-size:22px; font-weight:800; color:#1a1a2e; letter-spacing:-.3px; line-height:1.1; white-space:nowrap; }
.stat-value small { font-size:12px; font-weight:700; color:#8e95a5; }
.stat-val { font-size:22px; font-weight:800; color:#1a1a2e; letter-spacing:-.4px; }
.stat-lbl { font-size:12px; color:#5a6070; font-weight:600; margin-top:2px; }
.stat-label { font-size:12px; font-weight:600; color:#8e95a5; margin-top:2px; }

/* ===== BUTTONS ===== */
.btn { padding:7px 13px; border-radius:7px; font-size:11.5px; font-weight:600; border:none; cursor:pointer; transition:all .2s; font-family:inherit; text-decoration:none; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.btn-outline { background:transparent; border:2px solid #b0b6c5; color:#3a4050; padding:5px 11px; }
.btn-outline:hover { border-color:#8e95a5; background:#f5f5f6; transform:translateY(-1px); }
.btn-primary { background:#ea580c; color:#fff; }
.btn-primary:hover { background:#c2410c; box-shadow:0 3px 10px rgba(234,88,12,.3); transform:translateY(-1px); }
.btn-secondary { background:#111827; color:#fff; }
.btn-secondary:hover { background:#1f2937; box-shadow:0 3px 10px rgba(17,24,39,.2); transform:translateY(-1px); }
.btn-danger { background:#ef4444; color:#fff; }
.btn-danger:hover { background:#dc2626; box-shadow:0 3px 10px rgba(239,68,68,.3); }
.btn-ghost { background:transparent; color:#1a1a2e; border:1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background:rgba(255,255,255,.12); }
.btn-light { background:#fff; color:#111827; }
.btn-light:hover { background:#f3f4f6; }
.btn-app { background:linear-gradient(135deg,#111827,#374151); color:#fff; padding:6px 13px; }
.btn-app:hover { background:linear-gradient(135deg,#1f2937,#4b5563); box-shadow:0 4px 14px rgba(17,24,39,.28); transform:translateY(-1px); }
.btn-buy { background:linear-gradient(135deg,#ea580c,#c2410c); color:#fff; }
.btn-buy:hover { background:linear-gradient(135deg,#f97316,#ea580c); box-shadow:0 3px 10px rgba(234,88,12,.3); transform:translateY(-1px); }
.app-actions .btn { min-width:100px; justify-content:center; }
.btn-sm { padding:5px 10px; font-size:11px; }
.btn:disabled, .btn:disabled:hover { opacity:.45; cursor:not-allowed; box-shadow:none; transform:none; background-color:#9aa1b1; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(234,88,12,.45);} 70%{box-shadow:0 0 0 12px rgba(234,88,12,0);} 100%{box-shadow:0 0 0 0 rgba(234,88,12,0);} }

/* ===== APP CARDS ===== */
.app-card { display:flex; align-items:flex-start; gap:16px; background:#fff; border-radius:14px; padding:20px 22px; border:1px solid #e8ecf1; transition:all .25s; margin-bottom:10px; animation:fadeUp .35s ease forwards; opacity:0; }
.app-card:hover { border-color:#111827; box-shadow:0 0 0 2px rgba(17,24,39,.05),0 8px 26px rgba(17,24,39,.07); }
.app-icon { width:44px; height:44px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; color:#fff; }
.app-icon.dark { background:linear-gradient(135deg,#111827,#374151); }
.app-icon.gray { background:linear-gradient(135deg,#6b7280,#4b5563); }
.app-icon.slate { background:linear-gradient(135deg,#374151,#1f2937); }
.app-icon.orange { background:linear-gradient(135deg,#ea580c,#c2410c); }
.app-body { flex:1; min-width:0; }
.app-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.app-name { font-size:15px; font-weight:700; color:#1a1a2e; }
.owned-badge { font-size:9px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; background:rgba(17,24,39,.08); color:#374151; border:1px solid rgba(17,24,39,.18); padding:2px 7px; border-radius:5px; }
.tag { font-size:10px; font-weight:600; padding:2px 8px; border-radius:5px; border:1.5px solid transparent; user-select:none; white-space:nowrap; display:inline-flex; align-items:center; gap:4px; }
.tag.gray { background:rgba(107,114,128,.1); color:#4b5563; border-color:rgba(107,114,128,.18); }
.tag.orange { background:rgba(234,88,12,.1); color:#c2410c; border-color:rgba(234,88,12,.18); }
.tag.slate { background:rgba(51,65,85,.1); color:#334155; border-color:rgba(51,65,85,.18); }
.tag.dark { background:rgba(17,24,39,.1); color:#111827; border-color:rgba(17,24,39,.18); }
.app-desc { font-size:12.5px; color:#5a6070; line-height:1.55; margin-bottom:8px; max-width:640px; }
.app-meta { display:flex; align-items:center; gap:16px 26px; font-size:12px; color:#5a6070; margin-bottom:10px; flex-wrap:wrap; }
.app-meta b { font-weight:600; color:#1a1a2e; }
.app-meta .lbl { color:#8e95a5; }
.app-actions { display:flex; gap:8px; flex-shrink:0; margin-top:4px; align-items:center; flex-wrap:wrap; }

/* ===== CATEGORY TABS ===== */
.cat-tabs { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:18px; }
.cat-tab { padding:6px 13px; border-radius:7px; border:1.5px solid #dde2ec; background:#fff; font-size:11.5px; font-weight:600; color:#5a6070; cursor:pointer; font-family:inherit; transition:all .2s; white-space:nowrap; }
.cat-tab:hover { border-color:#ea580c; color:#ea580c; }
.cat-tab.active { background:#ea580c; border-color:#ea580c; color:#fff; }

/* ===== ORDER TABS ===== */
.order-tabs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:18px; background:#fff; border:1px solid #e8ecf1; border-radius:12px; padding:8px; }
.order-tab { padding:9px 16px; border-radius:8px; border:none; background:transparent; font-size:13px; font-weight:600; color:#5a6070; cursor:pointer; font-family:inherit; transition:all .2s; display:inline-flex; align-items:center; gap:7px; }
.order-tab:hover { background:#f5f5f6; color:#1a1a2e; }
.order-tab.active { background:#ea580c; color:#fff; box-shadow:0 3px 10px rgba(234,88,12,.25); }
.order-tab .tb-count { font-size:11px; font-weight:700; padding:1px 8px; border-radius:10px; background:rgba(17,24,39,.08); color:inherit; }
.order-tab.active .tb-count { background:rgba(255,255,255,.22); color:#fff; }

/* ===== PAGINATION ===== */
.pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:4px; padding-top:16px; border-top:1px solid #e8ecf1; }
.pg-info { font-size:12.5px; color:#8e95a5; font-weight:600; }
.pg-right { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pg-btn { min-width:34px; height:34px; padding:0 12px; border:1.5px solid #e0e4eb; border-radius:9px; background:#fff; color:#3a4050; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:5px; transition:all .2s; }
.pg-btn:hover:not(:disabled):not(.active) { border-color:#ea580c; color:#c2410c; background:rgba(234,88,12,.06); }
.pg-btn.active { background:#ea580c; border-color:#ea580c; color:#fff; box-shadow:0 3px 10px rgba(234,88,12,.25); }
.pg-btn:disabled { opacity:.45; cursor:not-allowed; }
.pg-dots { color:#8e95a5; font-weight:700; padding:0 2px; user-select:none; }
.page-btn { width:32px; height:32px; border-radius:7px; border:1px solid #e8ecf1; background:#fff; color:#5a6070; font-size:13px; font-weight:600; cursor:pointer; transition:all .2s; font-family:inherit; display:flex; align-items:center; justify-content:center; }
.page-btn:hover { border-color:#111827; color:#111827; }
.page-btn.active { background:#111827; border-color:#111827; color:#fff; }
.page-btn.next { width:auto; padding:0 12px; gap:3px; }
.page-btn:disabled { opacity:.4; cursor:not-allowed; pointer-events:none; }

/* ===== ORDER CARDS (My Orders) ===== */
.order-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:18px 22px; margin-bottom:12px; transition:border-color .25s,box-shadow .25s; position:relative; overflow:hidden; animation:fadeUp .35s ease forwards; opacity:0; }
.order-card:hover { border-color:#111827; box-shadow:0 0 0 2px rgba(17,24,39,.06),0 8px 26px rgba(17,24,39,.08); }
.order-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,#ea580c,#111827); }
.oc-tile { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800; color:#fff; position:relative; overflow:hidden; flex-shrink:0; box-shadow:0 6px 18px rgba(17,24,39,.18); }
.oc-tile::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 45%); pointer-events:none; }
.oc-tile .spark { position:absolute; bottom:6px; right:7px; opacity:.85; }
.oc-tile.dark { background:linear-gradient(135deg,#111827,#374151); }
.oc-tile.gray { background:linear-gradient(135deg,#6b7280,#4b5563); }
.oc-tile.slate { background:linear-gradient(135deg,#475569,#334155); }
.oc-tile.orange { background:linear-gradient(135deg,#ea580c,#c2410c); }
.oc-tile.red { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.oc-body { min-width:0; }
.oc-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.oc-no { font-size:15px; font-weight:800; color:#1a1a2e; letter-spacing:.2px; }
.oc-count { font-size:11.5px; font-weight:600; color:#5a6070; background:#f3f4f6; border:1px solid #e5e7eb; padding:2px 10px; border-radius:12px; display:inline-flex; align-items:center; gap:3px; }
.oc-count .lbl { font-weight:500; color:#8e95a5; }
.oc-count b { color:#1a1a2e; font-weight:700; }
.oc-date { font-size:12.5px; color:#8e95a5; font-weight:500; display:inline-flex; align-items:center; gap:5px; }
.oc-items { margin-bottom:8px; }
.oc-item { display:flex; align-items:center; gap:8px; font-size:13px; color:#374151; font-weight:600; padding:2px 0; flex-wrap:wrap; }
.oc-item .dot { width:5px; height:5px; border-radius:50%; background:#ea580c; flex-shrink:0; }
.oc-item .qty-tag { font-size:10.5px; font-weight:700; background:#f3f4f6; border:1px solid #e5e7eb; color:#5a6070; padding:0 7px; border-radius:9px; }
.oc-meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:12px; color:#5a6070; }
.oc-meta .m { display:inline-flex; align-items:center; gap:5px; }
.oc-meta .m b { font-weight:700; color:#1a1a2e; }
.oc-meta .m .lbl { color:#8e95a5; font-weight:500; }
.oc-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; min-width:150px; }
.oc-total { text-align:right; }
.oc-total .lbl { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; margin-bottom:2px; }
.oc-total .val { font-size:20px; font-weight:800; color:#1a1a2e; letter-spacing:-.3px; }
.oc-actions { display:flex; align-items:center; gap:8px; justify-content:flex-end; flex-wrap:wrap; }

/* ===== STATUS BADGES ===== */
.status { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; padding:4px 12px; border-radius:12px; white-space:nowrap; }
.status::before { content:''; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status.paid { background:rgba(16,185,129,.1); color:#0d9488; border:1px solid rgba(16,185,129,.22); }
.status.pending { background:rgba(245,158,11,.1); color:#d97706; border:1px solid rgba(245,158,11,.25); }
.status.refunded { background:rgba(107,114,128,.1); color:#6b7280; border:1px solid rgba(107,114,128,.22); }
.status.completed { background:rgba(16,185,129,.1); color:#0d9488; border:1px solid rgba(16,185,129,.22); }
.status.processing { background:rgba(234,88,12,.1); color:#c2410c; border:1px solid rgba(234,88,12,.22); }

/* ===== EMPTY STATE ===== */
.empty-state { padding:60px 20px; text-align:center; background:#fff; border:1px solid #e8ecf1; border-radius:16px; }
.empty-icon { width:72px; height:72px; margin:0 auto 16px; border-radius:22px; background:linear-gradient(135deg,rgba(234,88,12,.12),rgba(17,24,39,.06)); display:flex; align-items:center; justify-content:center; color:#c2410c; }
.empty-title { font-size:18px; font-weight:800; color:#1a1a2e; margin-bottom:6px; }
.empty-sub { font-size:13.5px; color:#5a6070; max-width:400px; margin:0 auto 20px; line-height:1.6; }
.empty-state .btn { padding:12px 24px; font-size:13.5px; border-radius:10px; }

/* ===== MODAL ===== */
.modal-overlay { position:fixed; inset:0; background:rgba(17,24,39,.55); z-index:1500; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; visibility:hidden; transition:opacity .28s ease,visibility .28s ease; }
.modal-overlay.open { opacity:1; visibility:visible; }
.modal { position:relative; background:#fff; border-radius:16px; width:100%; max-width:560px; padding:26px; transform:translateY(14px) scale(.98); transition:transform .28s cubic-bezier(.4,0,.2,1); box-shadow:0 24px 60px rgba(17,24,39,.25); max-height:calc(100vh - 40px); overflow-y:auto; }
.modal-overlay.open .modal { transform:none; }
.modal-close { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:9px; border:1px solid #e0e4eb; background:#fff; color:#5a6070; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; z-index:5; }
.modal-close:hover { border-color:#c2410c; color:#c2410c; background:#fdf1ea; }
.modal-lg { max-width:760px; padding:0; overflow:hidden; display:flex; flex-direction:column; }
.modal-lg .modal-close { top:12px; right:12px; }
.policy-overlay { z-index:1700; }
.policy-content { padding:30px 34px 34px; overflow-y:auto; max-height:calc(100vh - 80px); font-size:13.5px; color:#374151; line-height:1.7; }
.policy-content h3 { font-size:20px; font-weight:800; color:#1a1a2e; margin-bottom:6px; }
.policy-content .pol-company { font-size:13px; color:#5a6070; margin-bottom:18px; line-height:1.6; }
.policy-content h4 { font-size:15px; font-weight:800; color:#1a1a2e; margin:22px 0 8px; }
.policy-content h5 { font-size:13.5px; font-weight:700; color:#1a1a2e; margin:14px 0 6px; }
.policy-content p { margin:8px 0; }
.policy-content ul { padding-left:20px; margin:8px 0; }
.policy-content li { margin:4px 0; }
.policy-content .pol-ex { background:#fafbfc; border:1px solid #e8ecf1; border-radius:8px; padding:10px 14px; margin:10px 0; font-size:13px; }
.modal-title { font-size:18px; font-weight:800; color:#1a1a2e; margin-bottom:6px; display:flex; align-items:center; gap:10px; }
.modal-desc { font-size:13.5px; color:#5a6070; line-height:1.6; margin-bottom:16px; }
.modal-meta { background:#fafbfc; border:1px solid #e8ecf1; border-radius:10px; padding:14px 16px; margin:14px 0; font-size:13px; color:#5a6070; line-height:1.7; }
.modal-meta b { color:#1a1a2e; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; flex-wrap:wrap; }
.modal-actions .btn { padding:10px 20px; font-size:13px; border-radius:9px; }

/* ===== ORDER DETAIL MODAL ===== */
.dt-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.dt-no { font-size:18px; font-weight:800; color:#1a1a2e; }
.dt-table { width:100%; border-collapse:collapse; margin-bottom:14px; }
.dt-table th { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; text-align:left; padding:8px 10px; border-bottom:1px solid #f0f2f5; }
.dt-table td { font-size:13px; color:#374151; padding:10px; border-bottom:1px solid #f0f2f5; vertical-align:top; }
.dt-table td:last-child, .dt-table th:last-child { text-align:right; }
.dt-table .it-name { font-weight:700; color:#1a1a2e; }
.dt-table .it-cat { font-size:11px; color:#8e95a5; font-weight:600; }
.dt-sum { background:#fafbfc; border:1px solid #e8ecf1; border-radius:10px; padding:2px 16px; margin-bottom:14px; }
.dt-sum-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0; border-bottom:1px solid #f0f2f5; font-size:13.5px; }
.dt-sum-row:last-child { border-bottom:none; }
.dt-sum-label { color:#5a6070; font-weight:500; }
.dt-sum-value { font-weight:700; color:#1a1a2e; }
.dt-sum-total { font-weight:800; font-size:16px; color:#c2410c; }

/* ===== REFUND MODAL ===== */
.rm-head { display:flex; align-items:flex-start; gap:14px; margin-bottom:18px; }
.rm-icon { width:52px; height:52px; border-radius:14px; background:linear-gradient(135deg,rgba(239,68,68,.16),rgba(234,88,12,.08)); color:#ef4444; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rm-title { font-size:19px; font-weight:800; color:#1a1a2e; }
.rm-sub { font-size:13px; color:#5a6070; line-height:1.55; margin-top:3px; }
.rm-section { margin-bottom:20px; }
.rm-sec-label { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.8px; color:#5a6070; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.rm-sec-label .step { width:20px; height:20px; border-radius:7px; background:#ea580c; color:#fff; font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.policy-open-card { display:flex; align-items:center; gap:14px; width:100%; padding:14px 16px; border-radius:10px; border:1.5px solid #bfdbfe; background:#f5f9ff; cursor:pointer; font-family:inherit; text-align:left; transition:all .2s; }
.policy-open-card:hover { border-color:#1d4ed8; background:#eff6ff; box-shadow:0 4px 14px rgba(29,78,216,.14); }
.policy-open-card:active { transform:translateY(0); }
.pol-ic { width:38px; height:38px; border-radius:10px; background:#dbeafe; color:#1d4ed8; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pol-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.pol-title { font-size:13.5px; font-weight:700; color:#1e40af; text-decoration:underline; text-underline-offset:3px; }
.pol-sub { font-size:12px; color:#5a6070; line-height:1.5; }
.pol-cta { flex-shrink:0; display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; color:#1d4ed8; white-space:nowrap; }
.pol-cta svg { transition:transform .2s; }
.policy-open-card:hover .pol-cta svg { transform:translateX(3px); }
.rm-ack input:disabled { cursor:not-allowed; opacity:.5; }
.rm-ack { display:flex; align-items:flex-start; gap:10px; font-size:13px; font-weight:600; color:#1a1a2e; cursor:pointer; user-select:none; }
.rm-ack input { margin-top:2px; }
.rm-list { max-height:190px; overflow-y:auto; border:1.5px solid #e0e4eb; border-radius:10px; padding:6px; }
.rm-opt { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:9px; border:1px solid transparent; transition:all .18s; cursor:pointer; }
.rm-opt:hover { background:#f5f5f6; }
.rm-opt.sel { background:rgba(234,88,12,.06); border-color:#ea580c; }
.rm-opt input { width:18px; height:18px; accent-color:#ea580c; flex-shrink:0; cursor:pointer; }
.rm-opt .rm-opt-info { flex:1; min-width:0; }
.rm-opt .rm-opt-no { font-size:13px; font-weight:700; color:#1a1a2e; }
.rm-opt .rm-opt-desc { font-size:11.5px; color:#8e95a5; font-weight:500; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rm-opt .rm-opt-amt { font-size:14px; font-weight:800; color:#c2410c; white-space:nowrap; }
.rm-type { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rm-type label { border:1.5px solid #e0e4eb; border-radius:10px; padding:13px 14px; cursor:pointer; transition:all .18s; display:flex; gap:9px; align-items:flex-start; }
.rm-type label:hover { border-color:#ea580c; }
.rm-type label.sel { border-color:#ea580c; background:rgba(234,88,12,.05); box-shadow:0 0 0 2px rgba(234,88,12,.12); }
.rm-type label input { accent-color:#ea580c; margin-top:2px; cursor:pointer; }
.rm-type .rt-title { font-size:13.5px; font-weight:700; color:#1a1a2e; }
.rm-type .rt-sub { font-size:11.5px; color:#8e95a5; margin-top:2px; line-height:1.4; }
.rm-amount { margin-top:12px; }
.rm-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:6px; }
.rm-actions .btn { padding:12px 22px; font-size:13.5px; font-weight:700; border-radius:10px; }

/* ===== FORMS ===== */
.form-field { margin-bottom:0; }
.form-label { display:block; font-size:12.5px; font-weight:700; color:#1a1a2e; margin-bottom:7px; }
.form-label .max { font-weight:600; color:#8e95a5; font-size:11.5px; }
.form-input, .form-select, .form-textarea { width:100%; padding:11px 13px; border:1.5px solid #e0e4eb; border-radius:9px; font-size:13.5px; font-family:inherit; color:#1a1a2e; outline:none; background:#fff; transition:border-color .2s,box-shadow .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color:#ea580c; box-shadow:0 0 0 4px rgba(234,88,12,.1); }
.form-input::placeholder, .form-textarea::placeholder { color:#9aa1b1; }
.form-textarea { resize:vertical; min-height:76px; line-height:1.5; }
.form-hint { font-size:11.5px; color:#8e95a5; margin-top:6px; line-height:1.5; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:18px; }

/* ===== BALANCE HERO (Points Center) ===== */
.bal-hero { border-radius:16px; background:linear-gradient(120deg,#111827 0%,#1f2937 55%,#374151 100%); color:#fff; padding:28px 32px; margin-bottom:18px; box-shadow:0 12px 30px rgba(17,24,39,.2); overflow:hidden; position:relative; }
.bal-hero::after { content:''; position:absolute; right:-80px; top:-80px; width:280px; height:280px; border-radius:50%; background:radial-gradient(circle,rgba(234,88,12,.4),transparent 70%); }
.bal-main { position:relative; z-index:1; }
.bal-label { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:#9ca3af; text-transform:uppercase; letter-spacing:1px; }
.bal-value { font-size:44px; font-weight:800; letter-spacing:-1.5px; color:#fff; margin:6px 0 4px; }
.bal-value .cur { font-size:16px; font-weight:700; color:#fb923c; vertical-align:super; margin-right:6px; letter-spacing:0; }
.bal-sub { display:flex; align-items:center; gap:6px; font-size:13px; color:#9ca3af; }
.bal-sub svg { color:#fb923c; }
.bal-stats { display:flex; gap:32px; flex-wrap:wrap; margin-top:20px; }
.bal-stat { font-size:12.5px; color:#9ca3af; font-weight:600; display:flex; flex-direction:column; gap:3px; }
.bal-stat b { font-size:19px; font-weight:800; letter-spacing:-.3px; }
.bal-stat b.green { color:#34d399; }
.bal-stat b.red { color:#f87171; }
.bal-stat b.orange { color:#fb923c; }
.bal-row { display:flex; align-items:flex-end; gap:28px; margin:6px 0 4px; flex-wrap:wrap; }
.bal-inline-stats { display:flex; gap:20px; align-items:flex-end; padding-bottom:4px; }
.bal-is { display:flex; flex-direction:column; gap:2px; }
.bal-is-lbl { font-size:11px; color:#9ca3af; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.bal-is-val { font-size:18px; font-weight:800; letter-spacing:-.3px; }
.bal-is-val.green { color:#34d399; }
.bal-is-val.red { color:#f87171; }
.bal-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.bal-actions .btn { padding:11px 20px; font-size:13.5px; font-weight:700; border-radius:10px; }
.bal-note { display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:#9ca3af; margin-top:18px; line-height:1.5; }
.bal-note svg { flex-shrink:0; color:#fb923c; }

/* ===== FEATURED APPS (Points Center) ===== */
.featured-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; margin-bottom:24px; }
.fa-card { background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:18px; transition:all .25s; animation:fadeUp .35s ease forwards; opacity:0; }
.fa-card:hover { border-color:#111827; box-shadow:0 8px 26px rgba(17,24,39,.08); transform:translateY(-2px); }
.fa-top { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.fa-icon { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:800; color:#fff; flex-shrink:0; }
.fa-name { font-size:14.5px; font-weight:700; color:#1a1a2e; line-height:1.25; }
.fa-cat { font-size:11px; color:#8e95a5; font-weight:600; }
.fa-desc { font-size:12px; color:#5a6070; line-height:1.55; margin-bottom:12px; min-height:38px; }
.fa-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fa-price { font-size:15px; font-weight:800; color:#c2410c; }
.fa-price small { font-size:11px; font-weight:600; color:#8e95a5; }

/* ===== TRANSACTION TABLE (Points Center) ===== */
.txn-table-wrap { background:#fff; border:1px solid #e8ecf1; border-radius:14px; overflow:hidden; }
.txn-scroll { overflow-x:auto; }
.txn-table { width:100%; border-collapse:collapse; min-width:680px; }
.txn-table th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:#5a6070; font-weight:700; padding:13px 16px; background:#fafbfc; border-bottom:1px solid #e8ecf1; white-space:nowrap; }
.txn-table td { padding:12px 16px; border-bottom:1px solid #f0f2f5; font-size:13px; color:#374151; vertical-align:middle; }
.txn-table tbody tr:hover { background:#fafafa; }
.txn-table tbody tr:last-child td { border-bottom:none; }
.txn-app { font-weight:700; color:#1a1a2e; }
.txn-method { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#5a6070; }
.txn-amt { font-weight:800; white-space:nowrap; }
.txn-amt.pos { color:#0d9488; }
.txn-amt.neg { color:#b91c1c; }
.txn-amt.refunded { color:#6b7280; text-decoration:line-through; }

/* ===== MESSAGES (p6) ===== */
.msg-toolbar { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:13px 18px; margin-bottom:14px; flex-wrap:wrap; }
.msg-list { display:flex; flex-direction:column; gap:10px; }
.msg-card { background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:16px 18px; transition:all .2s; animation:fadeUp .35s ease forwards; opacity:0; }
.msg-card:hover { border-color:#111827; box-shadow:0 4px 18px rgba(17,24,39,.07); }
.msg-card.unread { border-left:4px solid #ea580c; }
.msg-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.msg-type { width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.msg-type.order { background:linear-gradient(135deg,#111827,#374151); }
.msg-type.points { background:linear-gradient(135deg,#ea580c,#c2410c); }
.msg-type.refund { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.msg-type.security { background:linear-gradient(135deg,#6b7280,#4b5563); }
.msg-type.system { background:linear-gradient(135deg,#374151,#1f2937); }
.msg-title { font-size:14.5px; font-weight:700; color:#1a1a2e; flex:1; min-width:0; }
.msg-unread-dot { width:8px; height:8px; border-radius:50%; background:#ea580c; }
.msg-date { font-size:12px; color:#8e95a5; font-weight:500; }
.msg-body { font-size:13.5px; color:#5a6070; line-height:1.6; margin-top:10px; }
.msg-actions { display:flex; align-items:center; gap:8px; margin-top:12px; }

/* ===== PROFILE / SECURITY (p7/p8) ===== */
.card { background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:22px; margin-bottom:18px; }
.card-title { font-size:16px; font-weight:800; color:#1a1a2e; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.card-desc { font-size:13px; color:#5a6070; margin-bottom:16px; }
.sec-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:8px; }
.security-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:18px 20px; margin-bottom:14px; animation:fadeUp .35s ease forwards; opacity:0; }
.security-card:hover { border-color:#111827; }
.sc-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; background:linear-gradient(135deg,#111827,#374151); }
.sc-icon.green { background:linear-gradient(135deg,#10b981,#047857); }
.sc-body { flex:1; min-width:0; }
.sc-title { font-size:14.5px; font-weight:700; color:#1a1a2e; }
.sc-desc { font-size:12.5px; color:#5a6070; margin-top:2px; line-height:1.5; }
.sc-right { flex-shrink:0; }
.act-log { width:100%; border-collapse:collapse; }
.act-log th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:#5a6070; font-weight:700; padding:10px 12px; background:#fafbfc; border-bottom:1px solid #e8ecf1; }
.act-log td { padding:11px 12px; border-bottom:1px solid #f0f2f5; font-size:13px; color:#374151; }
.act-log tbody tr:last-child td { border-bottom:none; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }

/* ===== CART (p3) ===== */
.cart-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.cart-list-wrap { min-width:0; }
.cart-toolbar { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:13px 18px; margin-bottom:14px; flex-wrap:wrap; }
.cart-toolbar .sel-all { display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:600; color:#1a1a2e; cursor:pointer; user-select:none; }
.cart-toolbar .spacer { flex:1; }
.cart-toolbar .sel-info { font-size:13px; color:#5a6070; font-weight:500; }
.ck { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; border:2px solid #c4c9d4; background:#fff; cursor:pointer; flex-shrink:0; transition:all .18s; position:relative; }
input[type="checkbox"].ck { appearance:none; -webkit-appearance:none; }
input[type="checkbox"].ck:checked { background:#ea580c; border-color:#ea580c; box-shadow:0 0 0 4px rgba(234,88,12,.12); }
input[type="checkbox"].ck:checked::after { content:''; position:absolute; width:6px; height:10px; border:solid #fff; border-width:0 2.2px 2.2px 0; transform:rotate(45deg) translate(-1px,-1px); }
.cart-item { display:grid; grid-template-columns:24px 62px minmax(0,1fr) auto; gap:16px; align-items:center; background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:16px 18px; margin-bottom:12px; transition:border-color .25s,box-shadow .25s; position:relative; overflow:hidden; animation:fadeUp .35s ease forwards; opacity:0; }
.cart-item:hover { border-color:#111827; box-shadow:0 0 0 2px rgba(17,24,39,.06),0 8px 26px rgba(17,24,39,.08); }
.cart-item.selected { border-color:#ea580c; box-shadow:0 0 0 2px rgba(234,88,12,.12); }
.cart-item.selected::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,#ea580c,#111827); }
.ci-img { display:flex; align-items:center; justify-content:center; }
.ci-tile { width:62px; height:62px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; color:#fff; position:relative; overflow:hidden; flex-shrink:0; box-shadow:0 6px 18px rgba(17,24,39,.18); }
.ci-tile::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 45%); pointer-events:none; }
.ci-tile .spark { position:absolute; bottom:7px; right:8px; opacity:.85; }
.ci-tile.dark { background:linear-gradient(135deg,#111827,#374151); }
.ci-tile.gray { background:linear-gradient(135deg,#6b7280,#4b5563); }
.ci-tile.slate { background:linear-gradient(135deg,#475569,#334155); }
.ci-tile.orange { background:linear-gradient(135deg,#ea580c,#c2410c); }
.ci-info { min-width:0; }
.ci-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.ci-name { font-size:15px; font-weight:700; color:#1a1a2e; }
.ci-desc { font-size:12.5px; color:#5a6070; line-height:1.5; margin-bottom:10px; max-width:640px; }
.ci-meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:12px; color:#5a6070; }
.ci-meta .m { display:inline-flex; align-items:center; gap:5px; }
.ci-meta .m b { font-weight:700; color:#1a1a2e; }
.ci-meta .m .lbl { color:#8e95a5; font-weight:500; }
.ci-tags { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ci-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.ci-row { display:flex; align-items:center; gap:12px; }
.ci-unit { text-align:right; }
.ci-unit .lbl { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; margin-bottom:2px; }
.ci-unit .val { font-size:15px; font-weight:800; color:#1a1a2e; }
.qty { display:inline-flex; align-items:center; gap:2px; background:#f5f5f6; border:1.5px solid #e0e4eb; border-radius:9px; padding:3px; }
.qty button { width:28px; height:28px; border:none; border-radius:7px; background:#fff; color:#1a1a2e; font-size:16px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; font-family:inherit; }
.qty button:hover { background:#ea580c; color:#fff; }
.qty button:active { transform:scale(.9); }
.qty .q-num { min-width:30px; text-align:center; font-size:14px; font-weight:800; color:#1a1a2e; }
.qty-note { font-size:10.5px; color:#8e95a5; font-weight:600; }
.ci-line { text-align:right; }
.ci-line .lbl { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#8e95a5; margin-bottom:2px; }
.ci-line .val { font-size:17px; font-weight:800; color:#c2410c; }
.ci-actions { display:flex; align-items:center; gap:8px; margin-top:2px; }
.icon-btn { width:36px; height:36px; border-radius:9px; border:1.5px solid #e8ecf1; background:#fff; color:#5a6070; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; }
.icon-btn:hover { border-color:#ef4444; color:#ef4444; background:#fef2f2; transform:translateY(-1px); }
.summary { background:#fff; border:1px solid #e8ecf1; border-radius:16px; padding:22px; position:sticky; top:96px; box-shadow:0 4px 20px rgba(17,24,39,.05); overflow:hidden; }
.summary::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,#111827,#ea580c); }
.summary-title { font-size:16px; font-weight:800; color:#1a1a2e; margin-bottom:18px; display:flex; align-items:center; gap:9px; }
.sum-row { display:flex; justify-content:space-between; align-items:center; font-size:13.5px; color:#5a6070; padding:7px 0; }
.sum-row b { color:#1a1a2e; font-weight:700; }
.sum-row .accent { color:#c2410c; font-weight:700; }
.sum-divider { border:none; border-top:1px dashed #e0e4eb; margin:12px 0; }
.sum-total { display:flex; justify-content:space-between; align-items:center; padding:8px 0 4px; }
.sum-total .t-label { font-size:14px; font-weight:800; color:#1a1a2e; }
.sum-total .t-val { font-size:26px; font-weight:800; letter-spacing:-.5px; color:#c2410c; }
.sum-saving { font-size:12px; font-weight:600; color:#0d9488; text-align:right; }
.promo { display:flex; gap:8px; margin:16px 0 4px; }
.promo input { flex:1; min-width:0; padding:10px 12px; border:1.5px solid #e0e4eb; border-radius:9px; font-size:13px; font-family:inherit; color:#1a1a2e; outline:none; background:#fafbfc; transition:border-color .2s,box-shadow .2s; }
.promo input:focus { border-color:#ea580c; box-shadow:0 0 0 4px rgba(234,88,12,.1); background:#fff; }
.promo input::placeholder { color:#9aa1b1; }
.promo .btn { padding:10px 16px; font-size:12.5px; border-radius:9px; }
.checkout-btn { width:100%; justify-content:center; padding:14px 18px; font-size:15px; font-weight:700; border-radius:11px; margin-top:8px; position:relative; box-shadow:0 8px 24px rgba(234,88,12,.35); }
.checkout-btn::after { content:''; position:absolute; inset:0; border-radius:inherit; box-shadow:0 0 0 0 rgba(234,88,12,.45); animation:pulse 2.4s infinite; pointer-events:none; }
.checkout-btn:hover { transform:translateY(-1px); }
.checkout-btn.disabled, .checkout-btn.disabled:hover { background:#c4c9d4; box-shadow:none; cursor:not-allowed; transform:none; }
.checkout-btn.disabled::after { animation:none; box-shadow:none; }
.pay-methods { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; flex-wrap:nowrap; }
.pay-chip { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; color:#5a6070; padding:3px 8px; border:1px solid #e8ecf1; border-radius:7px; background:#fafbfc; white-space:nowrap; }
.pay-chip svg { color:#1a1a2e; }
.pay-choice { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin:6px 0 14px; }
.pay-choice label { border:1.5px solid #e0e4eb; border-radius:10px; padding:13px 12px; cursor:pointer; text-align:center; transition:all .18s; }
.pay-choice label:hover { border-color:#ea580c; }
.pay-choice label.sel { border-color:#ea580c; background:rgba(234,88,12,.05); box-shadow:0 0 0 2px rgba(234,88,12,.12); }
.pay-choice label input { accent-color:#ea580c; }
.pay-choice .pc-title { font-size:13px; font-weight:700; color:#1a1a2e; display:block; }
.pay-choice .pc-sub { font-size:11px; color:#8e95a5; margin-top:4px; display:block; }
.recharge-options { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:6px 0 14px; }
.rc-opt { border:1.5px solid #e0e4eb; border-radius:10px; padding:12px 10px; text-align:center; cursor:pointer; transition:all .18s; background:#fff; }
.rc-opt:hover { border-color:#ea580c; }
.rc-opt.sel { border-color:#ea580c; background:rgba(234,88,12,.05); box-shadow:0 0 0 2px rgba(234,88,12,.12); }
.rc-opt .amt { font-size:16px; font-weight:800; color:#1a1a2e; }
.rc-opt .pts { font-size:11px; color:#8e95a5; font-weight:600; margin-top:2px; }
.rc-custom { margin-top:12px; }
.rc-sub { font-size:12.5px; color:#8e95a5; line-height:1.55; margin-bottom:14px; }

/* ===== US$ DISPLAY (Amazon-style) ===== */
.usd-sym { font-size:0.65em; font-weight:600; vertical-align:super; position:relative; top:-0.05em; margin-right:1px; }
.usd-num { font-size:1.15em; font-weight:800; }

/* ===== DATA FILES (p1) ===== */
.table-wrap { background:#fff; border:1px solid #e8ecf1; border-radius:14px; overflow:hidden; box-shadow:0 2px 12px rgba(17,24,39,.04); }
.data-table-scroll { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:760px; }
.data-table thead th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:#5a6070; font-weight:700; padding:14px 18px; background:#fafbfc; border-bottom:1px solid #e8ecf1; white-space:nowrap; }
.data-table tbody td { padding:13px 18px; border-bottom:1px solid #f0f2f5; font-size:13.5px; color:#1a1a2e; vertical-align:middle; }
.data-table tbody tr { transition:background .15s; animation:fadeUp .3s ease forwards; opacity:0; }
.data-table tbody tr:hover { background:#fafafa; }
.data-table tbody tr:last-child td { border-bottom:none; }
.file-cell { display:flex; align-items:center; gap:12px; min-width:0; }
.file-icon { width:38px; height:38px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:9.5px; font-weight:800; letter-spacing:.5px; color:#fff; flex-shrink:0; }
.file-icon.red { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.file-icon.blue { background:linear-gradient(135deg,#6b7280,#4b5563); }
.file-icon.green { background:linear-gradient(135deg,#10b981,#047857); }
.file-icon.orange { background:linear-gradient(135deg,#ea580c,#c2410c); }
.file-icon.purple { background:linear-gradient(135deg,#111827,#374151); }
.file-icon.teal { background:linear-gradient(135deg,#374151,#1f2937); }
.file-icon.dark { background:linear-gradient(135deg,#111827,#374151); }
.file-icon.gray { background:linear-gradient(135deg,#6b7280,#4b5563); }
.file-name { font-weight:600; color:#1a1a2e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:280px; }
.file-desc { max-width:320px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#374151; }
.file-desc.muted { color:#9aa1b1; font-style:italic; }
.file-size { font-weight:600; color:#374151; white-space:nowrap; }
.file-date { color:#5a6070; white-space:nowrap; }
.file-actions { display:flex; align-items:center; gap:6px; }
.file-list { display:none; }
.file-card { background:#fff; border:1px solid #e8ecf1; border-radius:14px; padding:16px; margin-bottom:12px; animation:fadeUp .3s ease forwards; opacity:0; box-shadow:0 2px 10px rgba(17,24,39,.04); transition:all .2s; }
.file-card:hover { border-color:#111827; }
.file-card-top { display:flex; align-items:center; gap:12px; }
.file-card-name { font-weight:700; color:#1a1a2e; font-size:14px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-card-meta { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:12px; color:#5a6070; }
.file-card-meta b { color:#1a1a2e; font-weight:600; }
.file-card-desc { margin-top:8px; font-size:12.5px; color:#374151; line-height:1.5; }
.file-card-desc.muted { color:#9aa1b1; font-style:italic; }
.file-card-actions { display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid #f0f2f5; flex-wrap:wrap; }
.file-card-actions .spacer { flex:1; }

/* ===== CROSS LINKS ===== */
.cross-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; padding-top:22px; border-top:1px solid #e8ecf1; }
.xlink { font-size:12.5px; color:#5a6070; text-decoration:none; display:flex; align-items:center; gap:5px; font-weight:500; transition:all .2s; padding:7px 13px; border-radius:8px; background:#fff; border:1px solid #e8ecf1; white-space:nowrap; }
.xlink:hover { color:#111827; border-color:#111827; transform:translateY(-1px); }

/* ===== FOOTER ===== */
.footer { margin-left:260px; text-align:center; padding:24px 40px; font-size:13px; color:#5a6070; border-top:1px solid #e8ecf1; background:#fff; }
.footer small { color:#9aa1b1; }

/* ===== TOAST ===== */
.toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px); background:#111827; color:#fff; border-radius:12px; padding:13px 22px; font-size:13.5px; font-weight:500; display:flex; align-items:center; gap:10px; box-shadow:0 12px 34px rgba(17,24,39,.3); opacity:0; visibility:hidden; transition:opacity .3s,transform .3s,visibility .3s; z-index:2000; max-width:calc(100vw - 40px); }
.toast.show { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.toast svg { flex-shrink:0; }
.toast.success svg { color:#34d399; }
.toast.error svg { color:#f87171; }
.toast.info svg { color:#fb923c; }
.toast-msg { position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px); background:#111827; color:#fff; border-radius:12px; padding:13px 22px; font-size:13.5px; font-weight:500; display:flex; align-items:center; gap:10px; box-shadow:0 12px 34px rgba(17,24,39,.3); opacity:0; visibility:hidden; transition:all .3s; z-index:2000; max-width:calc(100vw - 40px); }
.toast-msg.show { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }

/* ===== ANIMATION ===== */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.app-card:nth-child(1){animation-delay:.02s}.app-card:nth-child(2){animation-delay:.05s}.app-card:nth-child(3){animation-delay:.08s}.app-card:nth-child(4){animation-delay:.11s}.app-card:nth-child(5){animation-delay:.14s}.app-card:nth-child(6){animation-delay:.17s}.app-card:nth-child(7){animation-delay:.20s}.app-card:nth-child(8){animation-delay:.23s}
.stat-card:nth-child(1){animation-delay:.02s}.stat-card:nth-child(2){animation-delay:.08s}.stat-card:nth-child(3){animation-delay:.14s}.stat-card:nth-child(4){animation-delay:.20s}
.file-card:nth-child(1){animation-delay:.02s}.file-card:nth-child(2){animation-delay:.06s}.file-card:nth-child(3){animation-delay:.10s}.file-card:nth-child(4){animation-delay:.14s}.file-card:nth-child(5){animation-delay:.18s}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#cbd2e0; border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:#aab2c4; }

/* ===== RESPONSIVE ===== */
@media (max-width:1100px) { .search-box { width:320px; } .header-left { min-width:0; } .nav-link-btn { padding:6px 8px; font-size:13px; } .header-right { min-width:0; gap:8px; } .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:1024px) { .sidebar { width:225px; } .main-content, .footer { margin-left:225px; } .main-content { padding:26px 22px; } .cart-layout { grid-template-columns:1fr; } .summary { position:static; } }
@media (max-width:900px) { .header-right .nav-link-btn { display:none; } .header-right .user-badge .name { display:none; } .logout-btn { padding:6px 10px; font-size:12px; } .search-box { width:220px; } }
@media (max-width:768px) {
  .sidebar { display:none; }
  .main-content, .footer { margin-left:0 !important; padding:20px 16px 60px !important; }
  .menu-btn { display:flex; }
  .header-right .nav-link-btn, .header-right .user-badge, .header-right .logout-btn { display:none; }
  .header-left { flex:0 1 auto; max-width:150px; min-width:0; }
  .logo { margin-left:0; min-width:0; }
  .logo img { max-height:30px; max-width:100%; height:auto; }
  .top-header { padding:0 12px; gap:8px; }
  .header-center { justify-content:center; flex:1; min-width:0; }
  .search-box { width:100%; max-width:230px; height:40px; padding:0 10px; }
  .main-content { padding:20px 14px 60px; }
  .page-title { font-size:20px; margin-bottom:4px; }
  .page-sub, .page-subtitle { font-size:13px; margin-bottom:18px; }
  .page-head { flex-direction:column; }
  .head-actions { width:100%; }
  .head-actions .btn { flex:1; justify-content:center; }
  .stats-row { grid-template-columns:repeat(2,1fr); gap:10px; }
  .stats-grid { gap:10px; }
  .stat-card { padding:13px 14px; gap:11px; }
  .stat-icon { width:40px; height:40px; border-radius:10px; }
  .stat-value, .stat-val { font-size:18px; }
  .stat-label, .stat-lbl { font-size:11px; }
  .hero { padding:22px 20px; }
  .hero h2 { font-size:19px; }
  .bal-hero { padding:22px 20px; }
  .bal-value { font-size:34px; }
  .app-card { flex-wrap:wrap; }
  .app-top { flex-wrap:nowrap; overflow:hidden; }
  .app-name { flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .app-desc { white-space:normal; }
  .app-actions { flex-basis:100%; justify-content:flex-start; margin-top:8px; }
  .order-tabs { overflow-x:auto; flex-wrap:nowrap; -webkit-overflow-scrolling:touch; }
  .order-tab { white-space:nowrap; padding:9px 14px; }
  .order-card { grid-template-columns:auto minmax(0,1fr); gap:14px; padding:15px 16px; }
  .oc-right { grid-column:1 / -1; flex-direction:row; align-items:center; justify-content:space-between; min-width:0; }
  .oc-total { text-align:left; }
  .oc-actions { justify-content:flex-start; }
  .cart-item { grid-template-columns:24px 52px minmax(0,1fr); gap:12px; }
  .ci-right { grid-column:1 / -1; flex-direction:row; align-items:center; justify-content:space-between; width:100%; }
  .rm-type { grid-template-columns:1fr; }
  .pay-choice { grid-template-columns:1fr; }
  .recharge-options { grid-template-columns:repeat(2,1fr); }
  .form-grid, .two-col { grid-template-columns:1fr; }
  .pagination { justify-content:center; }
  .pg-info { width:100%; text-align:center; }
  .policy-content { padding:20px 16px; }
  .desktop-only { display:none; }
  .file-list { display:block; }
  .footer { padding:20px 16px; }
}
@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr; }
  .stats-row { grid-template-columns:1fr; }
  .modal { padding:20px 18px; }
  .bal-stats { gap:18px; }
}
