@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root{
  color-scheme:light;
  --primary:#2563eb;
  --primary2:#7c3aed;
  --cyan:#06b6d4;
  --accent:#f59e0b;
  --bg:#f4f7fb;
  --bg2:#edf4ff;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --surface-3:#eef5ff;
  --text:#0b1220;
  --heading:#07111f;
  --muted:#64748b;
  --soft:#94a3b8;
  --line:#dce6f3;
  --line-strong:#cbd8eb;
  --danger:#e11d48;
  --success:#16a34a;
  --warning:#d97706;
  --info:#2563eb;
  --radius:26px;
  --radius-lg:34px;
  --radius-sm:16px;
  --gap:24px;
  --sidebar:292px;
  --topbar:78px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --shadow:0 24px 70px rgba(15,23,42,.10);
  --shadow-soft:0 14px 36px rgba(15,23,42,.07);
  --shadow-tiny:0 8px 22px rgba(15,23,42,.055);
  --ring:0 0 0 4px rgba(37,99,235,.15);
  --grad:linear-gradient(135deg,var(--primary) 0%,var(--primary2) 58%,var(--cyan) 100%);
  --grad-soft:linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.10),rgba(6,182,212,.11));
  --grad-card:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,251,255,.92));
}

*{box-sizing:border-box}
*::before,*::after{box-sizing:border-box}
html{min-width:0;max-width:100%;scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;min-width:0;max-width:100%;font-family:'Be Vietnam Pro',Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
body.no-scroll{overflow:hidden}
a{color:var(--primary);text-decoration:none;transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease,opacity .18s ease}
a:hover{color:#1d4ed8}
img,svg,video,canvas{max-width:100%;height:auto}
svg{display:block;flex:0 0 auto}
button,input,select,textarea{font:inherit;min-width:0;max-width:100%}
button,a,label,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono',monospace}
pre{max-width:100%;overflow:auto;white-space:pre-wrap;word-break:break-word}
[hidden]{display:none!important}
::selection{background:rgba(37,99,235,.16)}

.app-body,.install-body{position:relative}
.orbit-bg,.neo-bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:
  radial-gradient(circle at 0% 0%,rgba(37,99,235,.16),transparent 34%),
  radial-gradient(circle at 100% 4%,rgba(124,58,237,.14),transparent 31%),
  radial-gradient(circle at 40% 100%,rgba(6,182,212,.13),transparent 36%),
  linear-gradient(180deg,#fbfdff 0%,#f4f7fb 48%,#eef4fb 100%)}
.orbit-bg span,.neo-bg span{position:absolute;border-radius:999px;filter:blur(18px);opacity:.66}
.orbit-bg span:nth-child(1),.neo-bg span:nth-child(1){width:460px;height:460px;left:-180px;top:-210px;background:radial-gradient(circle,rgba(37,99,235,.24),transparent 65%)}
.orbit-bg span:nth-child(2),.neo-bg span:nth-child(2){width:420px;height:420px;right:-160px;top:10%;background:radial-gradient(circle,rgba(124,58,237,.20),transparent 66%)}
.orbit-bg span:nth-child(3),.neo-bg span:nth-child(3){width:500px;height:500px;left:26%;bottom:-300px;background:radial-gradient(circle,rgba(6,182,212,.18),transparent 68%)}
.mobile-deck-shell::after,.neo-bento-shell::after,.neo-install-body::after,.install-body::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background-image:linear-gradient(rgba(15,23,42,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.025) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.26),transparent 72%)}

.app-progress{position:fixed;left:0;right:0;top:0;z-index:1000;height:4px;background:transparent;pointer-events:none;opacity:0;transition:opacity .18s ease}
.app-progress.show{opacity:1}
.app-progress span{display:block;width:18%;height:100%;border-radius:999px;background:var(--grad);box-shadow:0 0 20px rgba(37,99,235,.38);animation:appProgressMove 1.05s ease-in-out infinite}
@keyframes appProgressMove{0%{transform:translateX(-30vw);width:18%}50%{width:44%}100%{transform:translateX(100vw);width:18%}}
.app-progress-toast{position:fixed;left:16px;top:14px;z-index:999;transform:translateY(-12px);opacity:0;pointer-events:none;padding:10px 14px;border:1px solid rgba(220,230,243,.95);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-tiny);font-size:12px;font-weight:900;color:#334155;transition:opacity .18s ease,transform .18s ease;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.app-progress-toast.show{opacity:1;transform:translateY(0)}
.app-top-notice{position:fixed;left:16px;top:16px;z-index:1100;transform:translateY(-18px);opacity:0;pointer-events:none;width:min(860px,calc(100vw - 32px));transition:opacity .2s ease,transform .2s ease}.app-top-notice.show{opacity:1;transform:translateY(0)}.app-top-notice__inner{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 14px;border-radius:18px;border:1px solid rgba(220,230,243,.96);background:rgba(255,255,255,.97);box-shadow:0 16px 34px rgba(15,23,42,.12);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);color:#334155;font-size:13px;font-weight:900;line-height:1.45}.app-top-notice__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#2563eb}.app-top-notice__icon svg{width:18px;height:18px}.app-top-notice__text{flex:1 1 auto;min-width:0}.app-top-notice__close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:0;border-radius:12px;background:transparent;color:inherit;font-size:20px;cursor:pointer;opacity:.68}.app-top-notice.success .app-top-notice__inner{border-color:rgba(22,163,74,.18);background:rgba(240,253,244,.97);color:#166534}.app-top-notice.success .app-top-notice__icon{color:#16a34a}.app-top-notice.error .app-top-notice__inner{border-color:rgba(225,29,72,.18);background:rgba(255,241,242,.98);color:#9f1239}.app-top-notice.error .app-top-notice__icon{color:#e11d48}.app-top-notice.warning .app-top-notice__inner{border-color:rgba(245,158,11,.18);background:rgba(255,251,235,.98);color:#92400e}.app-top-notice.warning .app-top-notice__icon{color:#d97706}.focus-ipa-card{animation:focusIpaPulse 2.2s ease}.focus-ipa-card .ipa-item-top,.focus-ipa-card .sign-progress-box,.focus-ipa-card .ipa-meta-grid{position:relative;z-index:1}@keyframes focusIpaPulse{0%{box-shadow:0 0 0 0 rgba(37,99,235,.24)}55%{box-shadow:0 0 0 12px rgba(37,99,235,0)}100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}}

.shell-layout{position:relative;z-index:1;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);gap:22px;min-height:100vh;padding:22px}
.shell-main{min-width:0;display:flex;flex-direction:column;gap:22px}
.container{width:100%;max-width:1320px;margin:0 auto;padding:0 0 64px;min-width:0}
.admin-content{display:block;min-width:0}
.admin-content > :where(.page-head,.hero,.grid,.card,.billing-pro-shell,.vip-clean-grid,.settings-shell,.auth-card,.install-wrap,.landing-content,.phone-card) + :where(.page-head,.hero,.grid,.card,.billing-pro-shell,.vip-clean-grid,.settings-shell,.auth-card,.install-wrap,.landing-content,.phone-card){margin-top:var(--gap)}
.mt{margin-top:var(--gap)!important}
.mobile-header{display:none}
.shell-backdrop{display:none}

.sidebar{position:sticky;top:22px;height:calc(100vh - 44px);min-height:0;display:flex;flex-direction:column;gap:18px;padding:16px;background:rgba(255,255,255,.90);border:1px solid rgba(220,230,243,.95);border-radius:34px;box-shadow:var(--shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overflow:auto;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 6px}
.brand,.mobile-brand{display:flex;align-items:center;gap:12px;min-width:0;color:var(--text)}
.brand-logo,.mobile-brand img{width:46px;height:46px;border-radius:18px;object-fit:cover;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.08);border:1px solid rgba(220,230,243,.95)}
.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:18px;background:var(--grad);color:#fff;font-weight:900;letter-spacing:-.06em;box-shadow:0 16px 36px rgba(37,99,235,.24);flex:0 0 auto}
.brand-text{min-width:0}
.brand strong{display:block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:17px;line-height:1.1;letter-spacing:-.035em;color:var(--heading)}
.brand small{display:inline-flex;align-items:center;margin-top:5px;color:var(--primary);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;background:rgba(37,99,235,.09);border:1px solid rgba(37,99,235,.12);border-radius:999px;padding:3px 7px}
.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:17px;border:1px solid var(--line);background:rgba(255,255,255,.94);color:#334155;box-shadow:var(--shadow-tiny);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;padding:0;flex:0 0 auto}
.icon-btn svg,.icon-btn i{width:19px;height:19px}
.icon-btn:hover{transform:translateY(-1px);border-color:rgba(37,99,235,.28);background:#f4f8ff;color:var(--primary);box-shadow:0 14px 30px rgba(37,99,235,.11)}
.sidebar-close{display:none}

.ai-account-card{display:flex;flex-direction:column;gap:13px;padding:14px;border:1px solid rgba(220,230,243,.95);border-radius:27px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(241,247,255,.94));box-shadow:var(--shadow-soft);min-width:0}
.ai-account-row{display:flex;gap:12px;align-items:center;min-width:0}
.ai-account-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:20px;overflow:hidden;background:var(--grad);color:#fff;font-size:20px;font-weight:900;box-shadow:0 16px 34px rgba(37,99,235,.22);flex:0 0 auto}
.ai-account-avatar img{width:100%;height:100%;object-fit:cover}
.ai-account-info{min-width:0;flex:1}
.ai-account-name{display:flex;align-items:center;gap:8px;min-width:0}
.ai-account-name strong{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.2;color:var(--heading)}
.ai-account-name em{font-style:normal;font-size:10px;font-weight:900;letter-spacing:.06em;color:var(--primary);background:rgba(37,99,235,.10);border:1px solid rgba(37,99,235,.16);border-radius:999px;padding:3px 7px;flex:0 0 auto}
.ai-account-username,.ai-account-email{margin-top:4px;display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-account-email svg{width:13px;height:13px}.ai-account-email span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ai-account-balance{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:19px;background:#fff;border:1px solid var(--line);color:var(--text);min-width:0}
.ai-account-balance svg{width:16px;height:16px;color:var(--primary)}
.ai-account-balance span{font-size:11px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.ai-account-balance b{margin-left:auto;font-size:13px;white-space:nowrap;color:var(--heading)}
.side-nav{display:flex;flex-direction:column;gap:8px;min-width:0}
.side-section{margin:10px 8px 4px;color:#9aa7ba;font-size:10px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.nav-link{position:relative;display:flex;align-items:center;gap:12px;min-height:58px;padding:12px;border-radius:21px;color:#334155;border:1px solid transparent;min-width:0;background:transparent}
.nav-link svg,.nav-link i{width:20px;height:20px;color:#64748b;flex:0 0 auto}
.nav-link span{display:block;min-width:0}.nav-link b{display:block;font-size:13px;line-height:1.15;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-link small{display:block;margin-top:4px;font-size:10.5px;line-height:1.15;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-link:hover{background:#f5f9ff;border-color:#e0eaf8;transform:translateX(2px);color:var(--primary)}
.nav-link:hover svg,.nav-link:hover i,.nav-link.active svg,.nav-link.active i{color:var(--primary)}
.nav-link.active{background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.10),rgba(6,182,212,.09));border-color:rgba(37,99,235,.19);box-shadow:0 14px 30px rgba(37,99,235,.09)}
.nav-link.active::after{content:"";position:absolute;right:12px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 5px rgba(37,99,235,.11)}
.nav-link.active b{color:#1d4ed8}
.quota-card,.guest-card{margin-top:auto;padding:15px;border:1px solid var(--line);border-radius:25px;background:rgba(255,255,255,.95);box-shadow:var(--shadow-tiny)}
.quota-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.quota-top strong{font-size:19px;color:var(--heading);letter-spacing:-.04em}.quota-track{height:10px;border-radius:999px;background:#e9eff7;overflow:hidden;margin:12px 0}.quota-track span{display:block;height:100%;border-radius:inherit;background:var(--grad)}.quota-card p,.guest-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.guest-card strong{display:block;margin-bottom:6px}.sidebar-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.topbar{position:sticky;top:22px;z-index:12;min-height:var(--topbar);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid rgba(220,230,243,.95);border-radius:30px;background:rgba(255,255,255,.88);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:var(--shadow-soft)}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0}.topbar-title{min-width:0}.topbar-title small{display:block;color:var(--soft);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.topbar-title strong{display:block;margin-top:3px;color:var(--heading);font-size:18px;letter-spacing:-.04em;max-width:50vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.balance-pill{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 12px;border-radius:17px;background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(255,255,255,.96));border:1px solid rgba(37,99,235,.16);color:var(--text);font-weight:900;white-space:nowrap}.balance-pill svg{width:17px;height:17px;color:var(--primary)}.balance-pill span{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.balance-pill strong{font-size:13px;color:var(--heading)}
.logout-form{margin:0}

.page-head,.hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:clamp(18px,3vw,30px);border:1px solid rgba(220,230,243,.95);border-radius:var(--radius-lg);background:var(--grad-card);box-shadow:var(--shadow-soft);min-width:0}
.page-head::before,.hero::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--grad)}
.page-head > *,.hero > *{position:relative;z-index:1;min-width:0}.page-head h1,.hero h1{margin:5px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.03;letter-spacing:-.07em;color:var(--heading)}.page-head p,.hero p{margin:0;color:var(--muted);line-height:1.7;max-width:780px}.eyebrow{margin:0;color:var(--primary)!important;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.muted{color:var(--muted)!important}.danger{color:var(--danger)!important}.success{color:var(--success)!important}.warning{color:var(--warning)!important}
.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}

.btn,.link-btn,.install-button,.oauth-btn{--btn-bg:var(--grad);--btn-color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:47px;padding:11px 17px;border-radius:17px;border:1px solid transparent;background:var(--btn-bg);color:var(--btn-color);font-weight:900;font-size:13px;line-height:1.2;box-shadow:0 15px 30px rgba(37,99,235,.19);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease,opacity .18s ease;white-space:nowrap;text-align:center;max-width:100%;text-decoration:none}
button.btn,button.link-btn{appearance:none;-webkit-appearance:none}
.btn:hover,.install-button:hover,.oauth-btn:hover{transform:translateY(-1px);box-shadow:0 20px 38px rgba(37,99,235,.23);color:#fff}
.btn svg,.btn i,.link-btn svg,.link-btn i,.install-button svg,.install-button i,.oauth-btn svg,.oauth-btn i,.auto-icon{width:18px;height:18px;flex:0 0 auto}
.btn span,.link-btn span,.install-button span,.oauth-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.btn.ghost,.link-btn,.install-button.secondary,.oauth-btn{--btn-bg:#fff;--btn-color:#334155;border-color:var(--line);box-shadow:0 9px 22px rgba(15,23,42,.05)}
.btn.ghost:hover,.link-btn:hover,.install-button.secondary:hover,.oauth-btn:hover{background:#f5f9ff;color:var(--primary);border-color:rgba(37,99,235,.24);box-shadow:0 14px 28px rgba(37,99,235,.10)}
.btn.small,.link-btn.small{min-height:40px;padding:9px 12px;border-radius:14px;font-size:12px}.btn.mini{min-height:38px;padding:8px 10px;border-radius:14px;font-size:11.5px}.btn.wide{width:100%}.btn.danger,.link-btn.danger{--btn-bg:linear-gradient(135deg,#fb7185,#e11d48);--btn-color:#fff;border-color:transparent;color:#fff}.link-btn.danger{background:rgba(225,29,72,.08);border-color:rgba(225,29,72,.18);color:#be123c;box-shadow:none}.link-btn.danger:hover{background:rgba(225,29,72,.12);color:#be123c}.btn[disabled],button[disabled],.is-busy{opacity:.62;cursor:not-allowed;transform:none!important;box-shadow:none!important}.btn .lucide-loader-circle,.is-busy .lucide-loader-circle{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.card{position:relative;min-width:0;padding:clamp(18px,2.6vw,28px);border:1px solid rgba(220,230,243,.96);border-radius:var(--radius);background:rgba(255,255,255,.96);box-shadow:var(--shadow-soft)}
.card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.86)}
.subtle-card{background:linear-gradient(145deg,#fff,rgba(247,250,255,.94))}.glass-panel{background:rgba(255,255,255,.72);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.card h2,.card h3{margin:0 0 13px;letter-spacing:-.04em;color:var(--heading)}.card h2{font-size:clamp(19px,2vw,24px)}.card h3{font-size:18px}.card p{color:var(--muted);line-height:1.72}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;min-width:0}.section-title h2{margin:3px 0 0}.section-title p{margin:4px 0 0}.section-title > a{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--primary);font-size:12px;font-weight:900;white-space:nowrap}.section-title > span,.section-title .badge{flex:0 0 auto}

.grid{display:grid;gap:var(--gap);min-width:0}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-balance-grid,.admin-metrics{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.metric{display:flex;flex-direction:column;gap:9px;min-height:148px;color:var(--text);overflow:hidden}.metric::before{content:"";position:absolute;right:-36px;top:-36px;width:120px;height:120px;border-radius:999px;background:var(--grad-soft)}a.metric:hover{transform:translateY(-2px);border-color:rgba(37,99,235,.22);box-shadow:0 18px 42px rgba(37,99,235,.11)}.metric span{color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.metric strong{font-size:clamp(27px,3vw,38px);letter-spacing:-.07em;line-height:1;color:var(--heading)}.metric small{margin-top:auto;color:var(--soft);line-height:1.45}.wallet-metric{background:linear-gradient(145deg,rgba(37,99,235,.11),rgba(255,255,255,.98))}.wallet-metric.soft{background:linear-gradient(145deg,rgba(6,182,212,.10),rgba(255,255,255,.98))}

.form{display:flex;flex-direction:column;gap:18px;min-width:0}.form-block{display:flex;flex-direction:column;gap:15px}.form label,label.setting-field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#334155;font-size:13px;font-weight:900;line-height:1.35}.field-title{font-size:13px;font-weight:900;color:#334155}.form small,label small{color:var(--muted);font-weight:650;line-height:1.55}.form input,.form select,.form textarea,label input,label select,label textarea,.inline-form input,.inline-form select,.inline-form textarea{width:100%;min-height:48px;border-radius:17px;border:1px solid var(--line);background:#fff;color:var(--text);padding:12px 14px;outline:none;box-shadow:0 1px 0 rgba(15,23,42,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.form textarea,label textarea{min-height:112px;resize:vertical}.form input:focus,.form select:focus,.form textarea:focus,label input:focus,label select:focus,label textarea:focus,.inline-form input:focus,.inline-form select:focus,.inline-form textarea:focus{border-color:rgba(37,99,235,.56);box-shadow:var(--ring);background:#fff}.form input[type="file"]{padding:10px;background:#f8fbff}.checkline,.setting-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:11px;padding:13px 14px;border:1px solid var(--line);border-radius:17px;background:#fff}.checkline input,.setting-check input{width:auto;min-height:auto}.inline-form{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:0;min-width:0}.inline-form > *{flex:0 1 auto}.inline-form input,.inline-form select{width:auto;min-width:160px}.banks-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.banks-edit input{min-width:0;width:100%}

.progress-box,.upload-progress,[data-progress-box]{display:block;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:19px;background:linear-gradient(145deg,#fff,#f7fbff);box-shadow:var(--shadow-tiny)}
.progress-head,.progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.progress-head span,[data-progress-label]{font-size:12px;font-weight:900;color:#334155}.progress-percent,[data-progress-percent]{font-size:12px;font-weight:900;color:var(--primary)}.progress-track{height:10px;border-radius:999px;background:#e9eff7;overflow:hidden}.progress-bar,[data-progress-bar],[data-sign-bar]{display:block;height:100%;width:0;border-radius:inherit;background:var(--grad);transition:width .18s ease}.progress-message,[data-progress-message]{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.upload-alert,.alert.top-notice-converted{display:none!important}

.table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:23px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.82)}
table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}th,td{padding:15px 16px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line);font-size:13px;line-height:1.5}th{position:sticky;top:0;z-index:1;background:#f8fbff;color:#475569;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}td{color:#334155}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfdff}.badge{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:5px 9px;border-radius:999px;background:#eef4ff;border:1px solid #d8e6ff;color:#315aa8;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.badge.success,.badge.completed,.badge.paid,.badge.active{background:rgba(22,163,74,.10);border-color:rgba(22,163,74,.18);color:#15803d}.badge.warning,.badge.pending,.badge.processing{background:rgba(217,119,6,.10);border-color:rgba(217,119,6,.18);color:#a16207}.badge.failed,.badge.error,.badge.danger,.badge.deleted{background:rgba(225,29,72,.10);border-color:rgba(225,29,72,.18);color:#be123c}
.alert{display:flex;align-items:flex-start;gap:10px;margin:0 0 var(--gap);padding:14px 15px;border-radius:19px;border:1px solid rgba(37,99,235,.15);background:rgba(37,99,235,.08);color:#1e3a8a;font-weight:750;line-height:1.55;box-shadow:var(--shadow-tiny)}.alert svg{width:19px;height:19px;margin-top:2px}.alert.success{border-color:rgba(22,163,74,.18);background:rgba(22,163,74,.09);color:#166534}.alert.error{border-color:rgba(225,29,72,.18);background:rgba(225,29,72,.09);color:#9f1239}.alert.warning{border-color:rgba(217,119,6,.18);background:rgba(217,119,6,.09);color:#92400e}

.auth-card{width:min(100%,460px);margin:34px auto;padding:clamp(20px,3vw,30px);border-radius:32px}.auth-card h1{margin:0 0 8px;letter-spacing:-.06em;color:var(--heading);font-size:clamp(28px,4vw,38px)}.auth-card p{margin:0 0 20px}.auth-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}.oauth-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.oauth-btn.google,.oauth-btn.discord{width:100%;min-height:48px}.oauth-pending{opacity:.55;pointer-events:none}

.copyline,.copy-button-grid,.app-copy-grid,.bank-copy-grid,.admin-ipa-actions,.ipa-actions-panel,.row-actions,.landing-actions{display:flex;gap:12px;flex-wrap:wrap;min-width:0}.copy-button-grid,.app-copy-grid,.bank-copy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.copy-tile{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px;border-radius:17px;border:1px solid var(--line);background:#fff;color:#334155;font-weight:900;box-shadow:var(--shadow-tiny)}.copy-tile svg{width:18px;height:18px;color:var(--primary)}.copy-tile.full{grid-column:1/-1}

.drop-zone,[data-drop-zone],.file-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:210px;padding:24px;border:1.8px dashed #bfd1ea;border-radius:28px;background:linear-gradient(145deg,#fff,#f5faff);text-align:center;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}.drop-zone:hover,[data-drop-zone]:hover,.drop-zone.drag-over,[data-drop-zone].drag-over{border-color:var(--primary);background:#f1f7ff;box-shadow:0 16px 42px rgba(37,99,235,.10);transform:translateY(-1px)}.drop-zone.drop-error,[data-drop-zone].drop-error{border-color:var(--danger);background:rgba(225,29,72,.06)}.native-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.file-picker-btn{margin-top:4px}.drop-filename,[data-drop-filename]{font-size:13px;color:var(--muted);font-weight:800;word-break:break-word}.has-file .drop-filename,.has-file [data-drop-filename]{color:var(--primary)}

.billing-pro-shell,.vip-clean-grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(320px,.94fr);gap:var(--gap);align-items:start}.billing-head-metrics,.vip-head-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.deposit-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px}.deposit-chip{min-height:46px;border-radius:16px;border:1px solid var(--line);background:#fff;color:#334155;font-weight:900;box-shadow:var(--shadow-tiny)}.deposit-chip.active{background:var(--grad);color:#fff;border-color:transparent}.bank-modern-card{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,1fr);gap:18px;align-items:center}.qr-frame{display:grid;place-items:center;padding:14px;border:1px solid var(--line);border-radius:24px;background:#fff}.qr-frame img{width:min(100%,250px);border-radius:18px}.deposit-code-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.deposit-code-box code{display:inline-flex;align-items:center;min-height:42px;padding:9px 12px;border-radius:14px;background:#f1f5f9;border:1px solid var(--line);font-weight:900;word-break:break-all}.vip-price-hero strong{font-size:clamp(30px,5vw,52px);letter-spacing:-.08em;color:var(--heading)}.vip-status-list,.ipa-meta-grid,.admin-ipa-meta,.auto-meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.hint-box,.mini-stat{padding:14px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:var(--shadow-tiny);min-width:0}.mini-stat-link{color:var(--text)}

.ipa-card-grid,.admin-ipa-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--gap)}.ipa-item-card,.admin-ipa-card{display:flex;flex-direction:column;gap:15px;padding:18px;border:1px solid var(--line);border-radius:25px;background:#fff;box-shadow:var(--shadow-soft);min-width:0}.ipa-item-top,.admin-ipa-top{display:flex;gap:14px;align-items:flex-start;min-width:0}.ipa-icon,.admin-ipa-icon{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);background:#f8fbff;flex:0 0 auto}.ipa-title,.admin-ipa-title{min-width:0}.ipa-title h3,.admin-ipa-title h3{margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ipa-status-stack{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.ipa-actions-panel,.row-actions{margin-top:auto}

.settings-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;padding:18px}.settings-tabs{position:sticky;top:110px;align-self:start;display:flex;flex-direction:column;gap:9px;min-width:0}.settings-tabs a{display:flex;align-items:center;gap:10px;min-height:54px;padding:11px;border-radius:18px;border:1px solid var(--line);background:#fff;color:#334155}.settings-tabs a svg{width:18px;height:18px;color:var(--muted)}.settings-tabs a b{display:block;font-size:13px;color:#334155}.settings-tabs a small{display:block;margin-top:3px;font-size:10px;color:var(--soft);text-transform:uppercase;font-weight:900;letter-spacing:.06em}.settings-tabs a.active{background:var(--grad-soft);border-color:rgba(37,99,235,.20);color:var(--primary)}.settings-tabs a.active svg,.settings-tabs a.active b{color:var(--primary)}.settings-panel{min-width:0}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sticky-save{position:sticky;bottom:16px;z-index:5;margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:21px;background:rgba(255,255,255,.90);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:var(--shadow-tiny)}

.log-tail{max-height:420px;background:#0f172a;color:#dbeafe;border-radius:20px;padding:15px;border:1px solid #1e293b}.log-tail code{color:inherit}.app-toast{display:none!important}

.install-body{min-height:100vh;color:var(--text);background:var(--bg);padding:clamp(14px,3vw,32px);overflow-x:hidden}.install-wrap{position:relative;z-index:1;width:min(100%,980px);margin:0 auto;display:grid;grid-template-columns:minmax(300px,.88fr) minmax(0,1.12fr);gap:var(--gap);align-items:start}.phone-card{padding:clamp(22px,4vw,36px);border:1px solid rgba(220,230,243,.96);border-radius:36px;background:rgba(255,255,255,.96);box-shadow:var(--shadow);text-align:center}.app-icon{width:112px;height:112px;margin:0 auto 17px;border-radius:30px;overflow:hidden;display:grid;place-items:center;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(15,23,42,.11)}.app-icon img{width:100%;height:100%;object-fit:cover}.landing-hero-card h1{margin:9px 0 9px;font-size:clamp(29px,5vw,44px);line-height:1.04;letter-spacing:-.075em;color:var(--heading)}.subtitle{margin:0 auto 18px;color:var(--muted);line-height:1.62}.install-actions{display:flex;flex-direction:column;gap:13px;margin:19px 0}.install-button{width:100%;min-height:56px;border-radius:19px;font-size:15px}.system-link{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.62;word-break:break-word}.system-link span{color:var(--heading);font-weight:900}.system-link.small{font-size:11px}.app-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:18px}.app-meta span{padding:11px;border:1px solid var(--line);border-radius:16px;background:#f8fbff;color:#334155;font-size:12px;font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.landing-content{padding:clamp(19px,3vw,30px);border:1px solid rgba(220,230,243,.96);border-radius:32px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-soft)}.landing-content p{margin-top:0;color:var(--muted);line-height:1.82}.screenshots{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.screenshots img{width:100%;border-radius:20px;border:1px solid var(--line);box-shadow:0 13px 30px rgba(15,23,42,.08)}.install-note{margin-top:17px;padding:15px;border-radius:19px;background:#f8fbff;border:1px solid var(--line);color:#475569;line-height:1.7}

.mobile-tabbar{display:none}.desktop-only{display:inline-flex}
body.sidebar-collapsed{--sidebar:94px}body.sidebar-collapsed .sidebar{padding:14px 10px}body.sidebar-collapsed .brand-text,body.sidebar-collapsed .ai-account-info,body.sidebar-collapsed .ai-account-balance span,body.sidebar-collapsed .ai-account-balance b,body.sidebar-collapsed .nav-link span,body.sidebar-collapsed .side-section,body.sidebar-collapsed .quota-card p,body.sidebar-collapsed .quota-top span,body.sidebar-collapsed .sidebar-actions .btn span,body.sidebar-collapsed .guest-card,body.sidebar-collapsed .sidebar-collapse{display:none}body.sidebar-collapsed .sidebar-head{justify-content:center}body.sidebar-collapsed .brand-logo,body.sidebar-collapsed .brand-mark{width:48px;height:48px}body.sidebar-collapsed .ai-account-card{padding:10px;align-items:center}body.sidebar-collapsed .ai-account-row{justify-content:center}body.sidebar-collapsed .ai-account-avatar{width:48px;height:48px}body.sidebar-collapsed .ai-account-balance{justify-content:center;padding:10px}body.sidebar-collapsed .nav-link{justify-content:center;padding:13px;min-height:51px}body.sidebar-collapsed .nav-link.active::after{right:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:1180px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr}.billing-pro-shell,.vip-clean-grid{grid-template-columns:1fr}.settings-shell{grid-template-columns:1fr}.settings-tabs{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.topbar-title strong{max-width:42vw}}
@media (max-width:960px){:root{--gap:18px}.mobile-header{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:68px;padding:10px 12px calc(10px + env(safe-area-inset-top,0px));background:rgba(255,255,255,.90);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-bottom:1px solid rgba(220,230,243,.92);box-shadow:0 10px 28px rgba(15,23,42,.055)}.mobile-brand{font-weight:900;color:var(--heading);gap:9px;min-width:0}.mobile-brand img,.mobile-brand .brand-mark{width:38px;height:38px;border-radius:14px}.mobile-brand span{max-width:54vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-wallet{width:44px;height:44px;display:grid;place-items:center;border-radius:16px;background:#fff;border:1px solid var(--line);color:var(--primary);box-shadow:var(--shadow-tiny)}.mobile-wallet svg{width:19px;height:19px}.shell-layout{display:block;padding:84px 12px 0;min-height:100vh}.shell-main{display:block}.topbar{display:none}.container{padding-bottom:calc(110px + var(--safe-bottom))}.sidebar{position:fixed;z-index:80;top:calc(10px + env(safe-area-inset-top,0px));left:10px;bottom:10px;width:min(348px,calc(100vw - 20px));height:auto;border-radius:31px;transform:translateX(calc(-100% - 18px));transition:transform .24s ease;box-shadow:0 26px 84px rgba(15,23,42,.26);background:rgba(255,255,255,.97)}.sidebar.open{transform:translateX(0)}.sidebar-close{display:inline-grid}.sidebar-collapse{display:none}.shell-backdrop{position:fixed;display:block;inset:0;z-index:70;background:rgba(15,23,42,.38);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .2s ease}.shell-backdrop.show{opacity:1;pointer-events:auto}.desktop-only{display:none!important}.mobile-tabbar{position:fixed;left:10px;right:10px;bottom:calc(10px + var(--safe-bottom));z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:8px;border:1px solid rgba(220,230,243,.95);border-radius:25px;background:rgba(255,255,255,.92);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 17px 54px rgba(15,23,42,.17)}.mobile-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:51px;border-radius:18px;color:#64748b;font-size:10.5px;font-weight:900;min-width:0}.mobile-tabbar a svg{width:19px;height:19px}.mobile-tabbar a.active{background:var(--grad);color:#fff;box-shadow:0 11px 25px rgba(37,99,235,.25)}.mobile-tabbar a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-head{padding:19px;border-radius:28px;flex-direction:column}.page-head .actions{width:100%}.page-head .actions .btn{flex:1 1 150px}.grid.two,.grid.three,.grid.four{grid-template-columns:1fr}.billing-head-metrics,.vip-head-stats{grid-template-columns:1fr;width:100%;min-width:0}.oauth-grid{grid-template-columns:1fr}.bank-modern-card{grid-template-columns:1fr}.qr-frame img{max-width:230px}.vip-status-list,.ipa-meta-grid,.admin-ipa-meta,.auto-meta-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.hero,.install-wrap{grid-template-columns:1fr}.install-body{padding:14px}.install-wrap{padding-top:0}.landing-content{order:2}}
@media (max-width:720px){body{background:#f5f8fc}.card{border-radius:25px;padding:17px}.page-head h1{font-size:29px}.actions,.copy-button-grid,.admin-ipa-actions,.ipa-actions-panel,.row-actions,.landing-actions{gap:10px}.actions .btn,.copy-button-grid .btn,.admin-ipa-actions .btn,.ipa-actions-panel .btn,.row-actions .btn,.landing-actions .btn{flex:1 1 auto;min-width:0}.btn,.link-btn,.install-button{white-space:normal}.section-title{flex-direction:column;align-items:stretch}.section-title > a,.section-title .badge{align-self:flex-start}.table-wrap{border:0;background:transparent;box-shadow:none;overflow:visible}table{min-width:0;border-collapse:separate;border-spacing:0;width:100%}table thead{display:none}table tbody{display:grid;gap:14px}table tr{display:grid;gap:0;padding:13px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow-tiny)}table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;text-align:right;border-bottom:1px solid #eef2f7;padding:11px 4px;font-size:12.5px;word-break:break-word}table td:last-child{border-bottom:0}table td::before{content:attr(data-label);flex:0 0 42%;max-width:42%;text-align:left;color:var(--soft);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}table td[colspan]::before{display:none}table td[colspan]{justify-content:center;text-align:center}.inline-form{display:grid;grid-template-columns:1fr;align-items:stretch}.inline-form input,.inline-form select,.inline-form .btn{width:100%;min-width:0}.banks-edit{grid-template-columns:1fr}.bank-copy-grid{grid-template-columns:1fr}.copy-tile.full{grid-column:auto}.app-copy-grid{grid-template-columns:1fr}.deposit-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.deposit-code-box{align-items:stretch}.deposit-code-box code,.deposit-code-box .btn{width:100%}.auth-card{margin:10px auto 0;border-radius:28px}.admin-ipa-card-grid,.ipa-card-grid{grid-template-columns:1fr}.ipa-item-top,.admin-ipa-top{flex-direction:column}.ipa-status-stack{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.app-meta{grid-template-columns:1fr}.screenshots{grid-template-columns:1fr}.install-button{min-height:53px}.mobile-tabbar{left:8px;right:8px;bottom:calc(8px + var(--safe-bottom));border-radius:23px}.mobile-tabbar a{min-height:49px;font-size:10px}.app-toast{right:12px;left:12px;bottom:calc(91px + var(--safe-bottom));max-width:none}.app-progress-toast{top:74px;width:max-content;max-width:calc(100vw - 24px)}.app-top-notice{left:9px;top:72px;width:calc(100vw - 18px)}.app-progress-toast{left:9px;top:74px;max-width:calc(100vw - 18px)}}
@media (max-width:420px){:root{--gap:16px}.shell-layout{padding-left:10px;padding-right:10px}.mobile-header{padding-left:10px;padding-right:10px}.card,.page-head{padding:15px;border-radius:23px}.brand-logo,.brand-mark{width:40px;height:40px}.ai-account-card{padding:12px}.btn,.link-btn{width:auto;min-height:44px;padding:10px 12px}.actions .btn{width:100%}.deposit-presets{grid-template-columns:1fr}.metric{min-height:120px}.metric strong{font-size:29px}.vip-price-hero strong{font-size:29px}.phone-card{padding:18px;border-radius:29px}.app-icon{width:94px;height:94px;border-radius:25px}.mobile-tabbar a span{font-size:9.5px}}

/* NeoGlass Bento UI v4: spacing, icons and modern install landing overrides */
:root{--gap:26px;--card-gap:18px;--touch:48px;--install-max:1120px}
.neo-bento-shell .card,.neo-bento-shell .ipa-item-card,.neo-bento-shell .admin-ipa-card,.neo-bento-shell .phone-card{margin-block:0}
.neo-bento-shell .grid,.neo-bento-shell .ipa-card-grid,.neo-bento-shell .admin-ipa-card-grid,.neo-bento-shell .billing-pro-shell,.neo-bento-shell .vip-clean-grid{gap:clamp(18px,2.5vw,30px)}
.actions,.copyline,.copy-button-grid,.app-copy-grid,.bank-copy-grid,.admin-ipa-actions,.ipa-actions-panel,.row-actions,.landing-actions{gap:clamp(10px,1.4vw,16px)}
.btn,.link-btn,.install-button,.oauth-btn,.deposit-chip,.copy-tile{column-gap:10px;row-gap:7px;min-height:var(--touch)}
.btn svg,.btn i,.link-btn svg,.link-btn i,.install-button svg,.install-button i,.oauth-btn svg,.oauth-btn i,.deposit-chip svg,.deposit-chip i,.copy-tile svg,.copy-tile i{width:18px;height:18px;flex:0 0 auto}
.eyebrow{display:inline-flex;align-items:center;gap:8px;max-width:100%}.eyebrow svg,.eyebrow i{width:15px;height:15px;flex:0 0 auto}.eyebrow span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.oauth-btn{justify-content:flex-start;text-align:left}.oauth-btn > span{display:flex;flex-direction:column;gap:2px;min-width:0}.oauth-btn strong,.oauth-btn small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}.oauth-btn small{font-size:11px;line-height:1.25;color:var(--muted)}
.deposit-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px}.deposit-chip svg{width:16px;height:16px;color:currentColor}.deposit-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.copy-tile{justify-content:flex-start;text-align:left}.copy-tile > span{display:flex;flex-direction:column;gap:3px;min-width:0}.copy-tile small,.copy-tile b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}.copy-tile b{word-break:break-all}.copy-tile.full{align-items:flex-start}
.progress-box,.upload-progress,[data-progress-box]{margin:clamp(14px,2vw,20px) 0;overflow:hidden}.progress-track{height:10px}.progress-message{min-height:1.45em}

.install-body.neo-install-body{padding:0;background:var(--bg);min-height:100vh}.install-body.neo-install-body::before{content:"";position:fixed;inset:auto 0 0 0;height:28vh;pointer-events:none;background:linear-gradient(0deg,rgba(255,255,255,.72),transparent);z-index:0}.install-site-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(calc(100% - 28px),var(--install-max));margin:14px auto 0;padding:12px;border:1px solid rgba(220,230,243,.92);border-radius:28px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.install-brand{display:flex;align-items:center;gap:12px;min-width:0;color:var(--heading)}.install-brand:hover{color:var(--primary)}.install-brand-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:17px;overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:0 12px 28px rgba(15,23,42,.08);flex:0 0 auto}.install-brand-icon img{width:100%;height:100%;object-fit:cover}.install-brand strong{display:block;font-size:15px;line-height:1.1;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.install-brand small{display:block;margin-top:4px;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--primary)}
.install-nav{display:flex;align-items:center;gap:8px;min-width:0;overflow:auto;scrollbar-width:none}.install-nav::-webkit-scrollbar{display:none}.install-nav a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:9px 12px;border-radius:15px;border:1px solid rgba(220,230,243,.94);background:#fff;color:#334155;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:var(--shadow-tiny)}.install-nav a svg{width:16px;height:16px;color:var(--primary)}.install-nav a:hover{border-color:rgba(37,99,235,.25);color:var(--primary);transform:translateY(-1px)}
.install-modern-wrap{width:min(calc(100% - 28px),var(--install-max));grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);padding:clamp(18px,3vw,32px) 0 0}.install-hero-panel{position:sticky;top:104px;overflow:hidden;text-align:left}.install-hero-panel .app-icon{margin:0 0 18px}.install-hero-panel .subtitle{margin-left:0}.install-hero-glow{position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:999px;background:var(--grad-soft);filter:blur(4px);pointer-events:none}.install-hero-panel > *:not(.install-hero-glow){position:relative;z-index:1}.install-hero-panel .install-actions{gap:14px;margin:22px 0}.install-hero-panel .install-button{justify-content:center;box-shadow:0 18px 42px rgba(37,99,235,.22)}.install-hero-panel .install-button.secondary{box-shadow:var(--shadow-tiny)}
.install-trust-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 0}.install-trust-row span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px;border:1px solid var(--line);border-radius:16px;background:#f8fbff;color:#475569;font-size:11px;font-weight:900;text-align:center;min-width:0}.install-trust-row svg{width:15px;height:15px;color:var(--primary)}
.install-meta-grid span{display:flex;align-items:center;gap:7px;text-align:left}.install-meta-grid svg{width:15px;height:15px;color:var(--primary)}.install-link-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:18px;padding:12px;border-radius:19px;background:#f8fbff;border:1px solid var(--line)}.install-link-panel .system-link{margin:0;display:flex;align-items:center;gap:7px;min-width:0}.system-link code{display:inline;min-width:0;color:var(--heading);font-weight:850;word-break:break-all}.manifest-line{display:flex;align-items:flex-start;gap:7px}.manifest-line svg,.system-link svg{width:15px;height:15px;color:var(--primary);margin-top:2px;flex:0 0 auto}
.install-info-card{display:flex;flex-direction:column;gap:18px}.install-description{padding:16px;border-radius:20px;background:#f8fbff;border:1px solid var(--line);color:#475569;line-height:1.82}.install-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.install-guide-grid article{padding:16px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow-tiny);min-width:0}.install-guide-grid article > svg{width:24px;height:24px;color:var(--primary);margin-bottom:10px}.install-guide-grid h3{margin:0 0 6px;color:var(--heading);font-size:15px;letter-spacing:-.035em}.install-guide-grid p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.7}.install-note{display:flex;align-items:flex-start;gap:10px}.install-note svg{width:18px;height:18px;color:var(--primary);margin-top:2px;flex:0 0 auto}.install-screenshots{margin:0}.install-footer{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(calc(100% - 28px),var(--install-max));margin:24px auto 24px;padding:18px;border:1px solid rgba(220,230,243,.92);border-radius:28px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.install-footer p{margin:10px 0 0;color:var(--muted);font-size:12.5px;line-height:1.6}.install-footer nav{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.install-footer nav a{min-height:38px;display:inline-flex;align-items:center;padding:8px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);color:#334155;font-size:12px;font-weight:900}.install-footer nav a:hover{color:var(--primary);border-color:rgba(37,99,235,.25)}

@media (max-width:960px){:root{--gap:20px}.install-site-header{width:calc(100% - 20px);margin-top:10px;border-radius:24px}.install-brand strong{max-width:44vw}.install-nav{max-width:48vw}.install-nav a span{display:none}.install-nav a{width:40px;justify-content:center;padding:9px}.install-modern-wrap{width:calc(100% - 20px);grid-template-columns:1fr;padding-top:18px}.install-hero-panel{position:relative;top:auto}.install-info-card{order:2}.install-footer{width:calc(100% - 20px);flex-direction:column;align-items:stretch}.install-footer nav{justify-content:flex-start}.install-guide-grid{grid-template-columns:1fr}.install-trust-row{grid-template-columns:1fr}.install-link-panel{grid-template-columns:1fr}.install-link-panel .link-btn{width:100%}.deposit-chip{min-height:44px}.oauth-btn{align-items:center}}
@media (max-width:720px){.neo-bento-shell .grid,.neo-bento-shell .ipa-card-grid,.neo-bento-shell .admin-ipa-card-grid{gap:16px}.btn,.link-btn,.install-button,.oauth-btn{min-height:46px}.install-site-header{gap:10px;padding:10px}.install-brand-icon{width:40px;height:40px;border-radius:15px}.install-brand small{font-size:9px}.install-modern-wrap{padding-top:14px}.install-hero-panel{text-align:center}.install-hero-panel .app-icon{margin-left:auto;margin-right:auto}.install-hero-panel .subtitle{margin-left:auto}.install-hero-panel .eyebrow{justify-content:center}.install-link-panel{text-align:left}.install-footer{text-align:left}.install-footer .install-brand strong{max-width:70vw}.copy-tile{align-items:flex-start}.copy-tile > span{width:100%}}
@media (max-width:420px){:root{--gap:16px}.install-nav{display:none}.install-site-header{justify-content:center}.install-brand strong{max-width:72vw}.install-modern-wrap,.install-site-header,.install-footer{width:calc(100% - 16px)}.install-hero-panel .install-actions{gap:11px}.install-description,.install-guide-grid article{padding:14px}.install-trust-row span{justify-content:flex-start}.install-footer nav a{flex:1 1 auto;justify-content:center}.deposit-chip{font-size:12px;padding-inline:9px}.deposit-chip svg{display:none}}

/* SafeLayout UI v5: spacing, responsive hit areas, mobile overlay fixes */
:root{
  --safe-nav-height:86px;
  --safe-nav-gap:22px;
  --safe-mobile-bottom:calc(var(--safe-nav-height) + var(--safe-nav-gap) + var(--safe-bottom));
  --safe-mobile-header:calc(76px + env(safe-area-inset-top,0px));
  --vv-bottom:0px;
}
html{width:100%;max-width:100%;overflow-x:hidden;scroll-padding-top:calc(var(--topbar) + 34px);scroll-padding-bottom:120px}
body{width:100%;max-width:100%;overflow-x:hidden}
.admin-content{min-width:0;isolation:isolate}
.admin-content > *{min-width:0;max-width:100%}
.admin-content > * + *{margin-top:clamp(22px,3vw,36px)!important}
.admin-content > .alert + *{margin-top:0!important}
.card,.page-head,.hero,.phone-card,.landing-content,.auth-card,.settings-shell,.billing-pro-shell,.vip-clean-grid,.ipa-card-grid,.admin-ipa-card-grid{scroll-margin-top:calc(var(--topbar) + 34px);scroll-margin-bottom:140px}
.card > * + :where(.grid,.table-wrap,.form,.copyline,.copy-button-grid,.app-copy-grid,.bank-copy-grid,.bank-modern-list,.billing-note-list,.deposit-presets,.drop-zone,[data-drop-zone],.empty-state){margin-top:clamp(14px,2vw,22px)}
.section-title + :where(.deposit-amount-display,.deposit-presets,.bank-modern-list,.table-wrap,.form,.empty-state,.drop-zone,[data-drop-zone]){margin-top:clamp(16px,2vw,24px)}

/* Make text/value pairs from database output breathe instead of sticking together */
.mini-stat,.balance-pill,.ai-account-balance,.deposit-amount-display,.vip-status-list > div,.ipa-meta-grid > div,.admin-ipa-meta > div,.auto-meta-grid > div,.app-meta > span,.install-meta-grid span{gap:12px;min-width:0}
.mini-stat{display:flex;align-items:center;justify-content:space-between;min-height:58px;line-height:1.35;overflow:hidden}
.mini-stat span,.balance-pill span,.ai-account-balance span,.deposit-amount-display span,.vip-status-list span,.ipa-meta-grid span,.admin-ipa-meta span,.auto-meta-grid span{display:inline-flex;align-items:center;min-width:max-content;color:var(--muted);font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.mini-stat strong,.balance-pill strong,.ai-account-balance b,.deposit-amount-display strong,.metric strong,.vip-status-list strong,.ipa-meta-grid strong,.admin-ipa-meta strong,.auto-meta-grid strong{display:inline-block;min-width:0;margin-left:auto;overflow-wrap:anywhere;word-break:break-word;text-align:right;color:var(--heading)}
.deposit-amount-display{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#f8fbff;box-shadow:var(--shadow-tiny)}
.metric span,.metric strong,.metric small{display:block;min-width:0;overflow-wrap:anywhere}.metric span{margin-bottom:2px}.metric strong{margin-top:4px}.metric small{margin-top:auto}

/* Billing page: keep cards separated, compact notes readable, QR/copy blocks clickable */
.billing-head.clean-page-head{gap:clamp(20px,3vw,32px)}
.billing-head-metrics{align-self:stretch;min-width:min(360px,100%)}
.topup-only-shell{gap:clamp(26px,3.2vw,42px)!important;margin-top:clamp(24px,3vw,38px)!important}
.billing-control-card,.bank-qr-card,.payment-history-card{overflow:visible}
.deposit-presets{gap:clamp(12px,2vw,18px)!important;margin-bottom:clamp(16px,2vw,24px)}
.deposit-chip{position:relative;z-index:1;min-width:0;padding:12px 14px;text-align:center;overflow:hidden}.deposit-chip span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deposit-custom-field{margin-top:clamp(14px,2vw,22px)!important}.deposit-custom-field input{font-weight:850;font-size:16px}
.compact-code-box,.deposit-code-box{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:12px;margin-top:clamp(16px,2vw,24px);min-width:0}
.deposit-code-box > span{font-weight:850;color:#334155;line-height:1.35}.deposit-code-box code{min-width:0;max-width:100%;overflow-wrap:anywhere}.deposit-code-box .btn{white-space:nowrap}
.billing-note-list{display:flex;flex-direction:column;gap:12px;margin-top:clamp(18px,2vw,26px)}
.billing-note-list > div{display:flex;align-items:flex-start;gap:12px;padding:12px 13px;border:1px solid rgba(220,230,243,.95);border-radius:18px;background:#f8fbff;line-height:1.55;color:#334155;min-width:0}
.billing-note-list svg,.billing-note-list i{width:20px!important;height:20px!important;min-width:20px;margin-top:2px;color:var(--primary);flex:0 0 auto}.billing-note-list span{min-width:0;overflow-wrap:anywhere}
.bank-modern-list{display:flex;flex-direction:column;gap:clamp(18px,2.4vw,30px);min-width:0}.bank-modern-card{min-width:0;overflow:hidden}.bank-info-block{min-width:0}.bank-title{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:14px}.bank-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bank-title span{flex:0 0 auto;display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:#eef4ff;border:1px solid #d8e6ff;color:#315aa8;font-size:11px;font-weight:900}
.copy-tile{position:relative;z-index:1;min-width:0;overflow:hidden}.copy-tile b,.copy-tile small{max-width:100%}.copy-tile b{font-size:13px;line-height:1.35}.copy-tile small{font-size:11px;line-height:1.25}.copy-tile span{min-width:0}
.qr-frame{min-width:0}.qr-frame img{display:block;max-width:100%;height:auto}
.payment-history-card{margin-bottom:clamp(26px,4vw,48px)}
.empty-state{display:grid;place-items:center;text-align:center;gap:10px;padding:clamp(22px,4vw,40px);border:1px dashed var(--line-strong);border-radius:24px;background:#f8fbff;color:var(--muted);min-width:0}.empty-state svg,.empty-state i{width:32px;height:32px;color:var(--primary)}.empty-state h3,.empty-state strong{margin:0;color:var(--heading)}.empty-state p{margin:0;max-width:520px}

/* Mobile and tablet safe area: no fixed nav/header should block forms, cards or tables */
@media (max-width:1180px){
  .billing-pro-shell,.vip-clean-grid{grid-template-columns:1fr!important;gap:clamp(24px,3vw,38px)!important}
  .bank-modern-card{grid-template-columns:minmax(190px,.48fr) minmax(0,1fr);gap:clamp(16px,2vw,24px)}
}
@media (max-width:960px){
  :root{--gap:24px;--safe-nav-height:82px;--safe-nav-gap:24px}
  html{scroll-padding-top:var(--safe-mobile-header);scroll-padding-bottom:calc(var(--safe-mobile-bottom) + 90px)}
  .shell-layout{z-index:auto!important;padding:calc(82px + env(safe-area-inset-top,0px)) clamp(12px,3vw,18px) 0!important;min-height:100dvh}
  .shell-main{min-width:0;width:100%}
  .container{padding-bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 96px)!important}
  .admin-content{padding-bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 58px)}
  .admin-content > * + *{margin-top:clamp(24px,4vw,38px)!important}
  .card,.page-head,.hero,.phone-card,.landing-content,.auth-card,.settings-shell,.billing-pro-shell,.vip-clean-grid,.ipa-card-grid,.admin-ipa-card-grid{scroll-margin-top:calc(var(--safe-mobile-header) + 14px);scroll-margin-bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 80px)}
  a,button,input,select,textarea,label,[tabindex]{scroll-margin-top:calc(var(--safe-mobile-header) + 12px);scroll-margin-bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 92px)}
  .mobile-header{z-index:90;min-height:calc(70px + env(safe-area-inset-top,0px));padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:10px}
  .shell-backdrop{z-index:110}.sidebar{z-index:120;top:calc(8px + env(safe-area-inset-top,0px));left:10px;width:min(90vw,390px);max-width:calc(100vw - 20px);height:calc(100dvh - 16px - env(safe-area-inset-top,0px));max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px));padding-bottom:calc(118px + var(--safe-bottom));border-radius:30px;overscroll-behavior:contain}.sidebar.open{transform:translateX(0)}
  .mobile-tabbar{z-index:80;left:clamp(10px,3vw,18px);right:clamp(10px,3vw,18px);bottom:calc(12px + var(--safe-bottom) + var(--vv-bottom));height:auto;min-height:72px;padding:8px;gap:8px;transition:transform .2s ease,opacity .2s ease,bottom .2s ease}.mobile-tabbar a{min-height:54px;max-height:60px}.mobile-tabbar a:focus-visible{outline:0;box-shadow:var(--ring)}
  body.no-scroll .mobile-tabbar,body.keyboard-open .mobile-tabbar{opacity:0;pointer-events:none;transform:translateY(calc(100% + 28px))}
  .app-toast{bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 18px)}
  .sticky-save{bottom:calc(var(--safe-mobile-bottom) + var(--vv-bottom) + 12px)}
  .billing-head-metrics{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .mini-stat{min-height:64px;padding:14px 16px}.mini-stat span{min-width:0;white-space:normal}.mini-stat strong{font-size:16px;white-space:nowrap}
  .billing-pro-shell{display:grid;gap:clamp(24px,4vw,38px)!important}.billing-control-card,.bank-qr-card,.payment-history-card{border-radius:28px}
  .bank-modern-card{grid-template-columns:1fr;gap:18px}.qr-frame{padding:16px}.qr-frame img{width:min(100%,280px)!important;max-height:none}
  .settings-shell{padding:16px}.settings-tabs{top:calc(var(--safe-mobile-header) + 12px)}
}
@media (max-width:720px){
  :root{--gap:24px;--safe-nav-height:80px;--safe-nav-gap:26px;--radius:27px;--radius-lg:32px}
  .shell-layout{padding-left:clamp(10px,3vw,16px)!important;padding-right:clamp(10px,3vw,16px)!important}
  .admin-content > * + *{margin-top:26px!important}
  .page-head,.hero{padding:clamp(22px,6vw,32px);gap:20px}.page-head h1,.hero h1{font-size:clamp(30px,8vw,42px);line-height:1.06}.page-head p,.hero p{font-size:clamp(15px,4vw,18px);line-height:1.72}
  .card{padding:clamp(18px,5vw,26px);border-radius:28px}.section-title{gap:16px;margin-bottom:20px}.section-title h2{font-size:clamp(21px,5.6vw,28px);line-height:1.12}.section-title p{font-size:clamp(14px,3.9vw,17px);line-height:1.72}
  .billing-head-metrics{grid-template-columns:1fr;gap:14px}.mini-stat{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);align-items:center;gap:12px}.mini-stat strong{text-align:right;font-size:16px}
  .deposit-amount-display{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:12px}.deposit-amount-display strong{text-align:right;white-space:nowrap}.deposit-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.deposit-chip{min-height:58px;border-radius:20px;font-size:15px}.deposit-chip svg{display:block!important;width:18px!important;height:18px!important}.deposit-chip span{font-size:clamp(13px,4vw,17px)}
  .compact-code-box,.deposit-code-box{grid-template-columns:1fr;align-items:stretch;gap:10px}.deposit-code-box code{width:100%;min-height:56px;font-size:15px}.deposit-code-box .btn{width:100%;min-height:54px}
  .billing-note-list{gap:13px}.billing-note-list > div{padding:13px 14px;border-radius:19px}.billing-note-list svg{width:20px!important;height:20px!important}.billing-note-list span{font-size:14.5px}
  .copy-button-grid,.app-copy-grid,.bank-copy-grid{grid-template-columns:1fr!important;gap:13px}.copy-tile{min-height:58px;border-radius:19px;padding:13px 14px}.copy-tile b{font-size:14px}
  .table-wrap table tbody{gap:16px}table tr{padding:14px!important;border-radius:23px!important}table td{gap:16px!important;padding:12px 6px!important;align-items:flex-start!important}table td::before{flex-basis:38%!important;max-width:38%!important;line-height:1.35}table td > *{min-width:0;overflow-wrap:anywhere}
  .mobile-tabbar{left:10px;right:10px;bottom:calc(12px + var(--safe-bottom) + var(--vv-bottom));border-radius:24px}.mobile-tabbar a{min-height:52px}.payment-history-card{margin-bottom:calc(var(--safe-mobile-bottom) + 26px)!important}
}
@media (max-width:420px){
  :root{--gap:24px;--safe-nav-height:80px;--safe-nav-gap:28px}
  .shell-layout{padding-left:10px!important;padding-right:10px!important}.mobile-header{padding-left:10px;padding-right:10px}.mobile-brand span{max-width:50vw}.page-head,.hero,.card{border-radius:26px}.card{padding:18px}.page-head,.hero{padding:22px 18px}.section-title{margin-bottom:18px}.section-title > .badge,.section-title > span{align-self:flex-start}
  .deposit-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.deposit-chip{min-height:56px;padding:11px 9px}.deposit-chip span{font-size:14px}.billing-note-list span{font-size:14px}.bank-title{align-items:flex-start;flex-direction:column}.mini-stat strong,.deposit-amount-display strong{font-size:15px}.mobile-tabbar{left:8px;right:8px;padding:7px;gap:6px}.mobile-tabbar a{min-height:50px;font-size:9.6px;border-radius:17px}.mobile-tabbar a svg{width:18px;height:18px}.app-toast{left:10px;right:10px}
}
@media (min-width:961px){
  .container{padding-bottom:88px}.sidebar{padding-bottom:18px}.payment-history-card{margin-bottom:36px}.sticky-save{bottom:18px}
}


/* SafeLayout UI v6: desktop sidebar toggle, better label/value spacing, icon alignment */
.topbar,.topbar-left,.topbar-actions{position:relative;z-index:3}
.topbar .nav-toggle{position:relative;z-index:4;pointer-events:auto}
.topbar .nav-toggle:hover{cursor:pointer}
svg.lucide{display:block;stroke-width:2.1;vector-effect:non-scaling-stroke}
.btn,.link-btn,.install-button,.oauth-btn,.copy-tile,.nav-link,.billing-note-list > div,.vip-rule-note > div,.vip-insufficient{align-items:center}
.btn span,.link-btn span,.install-button span,.oauth-btn span,.copy-tile span,.nav-link span{min-width:0}
.vip-status-list > div,.ipa-meta-grid > div,.admin-ipa-meta > div,.auto-meta-grid > div,.app-meta > span,.install-meta-grid span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:14px;row-gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-tiny)}
.vip-status-list span,.ipa-meta-grid span,.admin-ipa-meta span,.auto-meta-grid span,.app-meta > span > span,.install-meta-grid span{min-width:0;white-space:normal;line-height:1.45}
.vip-status-list strong,.ipa-meta-grid strong,.admin-ipa-meta strong,.auto-meta-grid strong,.app-meta > span > strong,.install-meta-grid strong{justify-self:end;align-self:start;white-space:nowrap;line-height:1.35}
.vip-rule-note{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.vip-rule-note > div,.vip-insufficient{display:flex;align-items:flex-start;gap:12px;min-width:0;line-height:1.6}
.vip-rule-note svg,.vip-insufficient svg,.vip-rule-note i,.vip-insufficient i{width:20px;height:20px;min-width:20px;flex:0 0 auto;color:var(--primary);margin-top:2px}
.vip-rule-note span,.vip-insufficient span{min-width:0;overflow-wrap:anywhere}
.vip-action-form,.vip-extra-form{display:flex;flex-direction:column;gap:16px}
.vip-price-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 16px;margin-bottom:18px}
.vip-price-hero > span{grid-column:1 / 2;font-size:clamp(15px,1.5vw,18px);font-weight:700;color:#1f2937;line-height:1.5}
.vip-price-hero > strong{grid-column:2 / 3;grid-row:1 / span 2;justify-self:end;align-self:center;line-height:.95;text-align:right}
.vip-price-hero > small{grid-column:1 / -1;display:block;color:var(--muted);line-height:1.6;font-size:14px}
.vip-insufficient{margin-bottom:14px;padding:12px 14px;border:1px solid rgba(245,158,11,.28);border-radius:18px;background:rgba(255,247,237,.88)}
.ai-account-username,.ai-account-email,.billing-note-list > div,.copy-tile,.bank-title,.section-title,.vip-price-hero,.vip-rule-note > div{overflow-wrap:anywhere}
@media (max-width:1100px){.vip-price-hero{grid-template-columns:1fr}.vip-price-hero > strong{grid-column:1;grid-row:auto;justify-self:start;text-align:left}.vip-price-hero > small{grid-column:1}}
@media (max-width:860px){.vip-status-list > div,.ipa-meta-grid > div,.admin-ipa-meta > div,.auto-meta-grid > div,.app-meta > span,.install-meta-grid span{grid-template-columns:1fr}.vip-status-list strong,.ipa-meta-grid strong,.admin-ipa-meta strong,.auto-meta-grid strong,.app-meta > span > strong,.install-meta-grid strong{justify-self:start;text-align:left;white-space:normal}}


/* SafeLayout UI v7: desktop classic sidebar restored for easier clicking/reading */
@media (min-width: 961px){
  :root{--sidebar:306px;--topbar:76px}
  html{scroll-padding-top:100px}
  html,body{background:linear-gradient(180deg,#fff 0%,#f7f9fd 42%,#f3f7fc 100%)}
  body.app-body .orbit-bg{display:none!important}
  .mobile-header,.mobile-tabbar,.shell-backdrop{display:none!important}
  .shell-layout{display:grid!important;grid-template-columns:var(--sidebar) minmax(0,1fr)!important;gap:0!important;padding:0!important;min-height:100vh!important;align-items:stretch!important}
  .shell-main{display:flex!important;flex-direction:column!important;min-width:0!important;gap:0!important}
  .container{width:min(100%,1280px)!important;margin:0 auto!important;padding:28px 24px 98px!important;min-width:0!important}
  .sidebar{position:sticky!important;top:0!important;left:auto!important;height:100vh!important;max-height:100vh!important;width:auto!important;max-width:none!important;display:flex!important;flex-direction:column!important;gap:14px!important;padding:18px 14px!important;border:0!important;border-right:1px solid rgba(226,232,240,.95)!important;border-radius:0!important;background:rgba(255,255,255,.94)!important;box-shadow:12px 0 36px rgba(15,23,42,.045)!important;backdrop-filter:blur(24px)!important;-webkit-backdrop-filter:blur(24px)!important;overflow:auto!important;transform:none!important;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;z-index:20!important}
  .sidebar-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:5px 5px 10px!important}
  .sidebar-close,.nav-toggle{display:none!important}
  .sidebar-collapse{display:none!important}
  .brand{display:flex!important;align-items:center!important;gap:12px!important;color:var(--text)!important;min-width:0!important}
  .brand-logo,.brand-mark{width:42px!important;height:42px!important;border-radius:14px!important;object-fit:contain!important;box-shadow:none!important}
  .brand strong{display:block!important;font-size:17px!important;line-height:1.12!important;letter-spacing:-.03em!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:190px!important}
  .brand small{display:block!important;margin-top:3px!important;padding:0!important;border:0!important;background:transparent!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:none!important}
  .ai-account-card{display:flex!important;flex-direction:column!important;gap:10px!important;margin:0 4px!important;padding:12px!important;border:1px solid var(--line)!important;border-radius:22px!important;background:linear-gradient(135deg,#fff,rgba(239,246,255,.84))!important;box-shadow:0 12px 34px rgba(15,23,42,.08)!important}
  .ai-account-row{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
  .ai-account-avatar{width:42px!important;height:42px!important;border-radius:16px!important;font-size:16px!important;box-shadow:0 12px 26px rgba(37,99,235,.22)!important}
  .ai-account-name{gap:7px!important;min-width:0!important}.ai-account-name strong{font-size:13px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#0f172a!important}.ai-account-name em{font-size:9.5px!important;padding:2px 6px!important}
  .ai-account-username,.ai-account-email{margin-top:3px!important;font-size:11px!important;line-height:1.25!important;gap:6px!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .ai-account-balance{min-height:40px!important;padding:9px 10px!important;border-radius:16px!important;gap:9px!important;background:#fff!important;box-shadow:none!important}.ai-account-balance span{font-size:10px!important}.ai-account-balance b{font-size:12px!important;margin-left:auto!important;white-space:nowrap!important}
  .side-nav{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
  .side-section{display:block!important;margin:10px 8px 6px!important;color:#94a3b8!important;text-transform:uppercase!important;letter-spacing:.14em!important;font-size:10px!important;font-weight:950!important}
  .nav-link{position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;min-height:54px!important;padding:10px 12px!important;border-radius:18px!important;color:#334155!important;border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;transform:none!important;transition:.18s ease!important}
  .nav-link svg,.nav-link i{width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 auto!important;color:#64748b!important;margin:0!important}
  .nav-link span{display:block!important;min-width:0!important;overflow:hidden!important}.nav-link b{display:block!important;font-size:13px!important;line-height:1.2!important;color:#334155!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.nav-link small{display:block!important;margin-top:3px!important;font-size:10.5px!important;line-height:1.2!important;color:#94a3b8!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .nav-link:hover{background:#f8fbff!important;border-color:#e5efff!important;color:var(--primary)!important;transform:translateX(1px)!important}.nav-link:hover svg,.nav-link:hover i,.nav-link.active svg,.nav-link.active i{color:var(--primary)!important}
  .nav-link.active{background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;border-color:#bfdbfe!important;box-shadow:0 14px 28px rgba(37,99,235,.08)!important;color:#1d4ed8!important}.nav-link.active::before{content:""!important;position:absolute!important;left:-4px!important;top:14px!important;bottom:14px!important;width:4px!important;border-radius:999px!important;background:var(--grad)!important}.nav-link.active::after{display:none!important;content:none!important}.nav-link.active b{color:#1d4ed8!important}
  .quota-card,.guest-card{display:block!important;margin:auto 4px 0!important;padding:14px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--line)!important;box-shadow:0 12px 34px rgba(15,23,42,.08)!important}.quota-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#64748b!important}.quota-top strong{font-size:18px!important;color:#0f172a!important;letter-spacing:-.04em!important}.quota-track{height:9px!important;border-radius:999px!important;background:#eef2f7!important;overflow:hidden!important;margin:12px 0!important}.quota-card p,.guest-card p{margin:0!important;color:#64748b!important;font-size:12px!important;line-height:1.55!important}.guest-card strong{display:block!important;margin-bottom:5px!important;color:#0f172a!important}
  .sidebar-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0 4px 4px!important}.sidebar-actions .btn{min-height:38px!important;border-radius:14px!important;padding:8px 10px!important;font-size:12px!important;white-space:nowrap!important}.sidebar-actions .btn span{display:inline!important}
  .topbar{position:sticky!important;top:0!important;z-index:30!important;height:76px!important;min-height:76px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:0 24px!important;border-radius:0!important;border:0!important;border-bottom:1px solid rgba(226,232,240,.85)!important;background:rgba(255,255,255,.78)!important;box-shadow:none!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}.topbar-left,.topbar-actions{gap:10px!important}.topbar-title small{max-width:min(54vw,620px)!important}.topbar-title strong{max-width:min(54vw,620px)!important;font-size:17px!important;line-height:1.25!important}
  body.sidebar-collapsed{--sidebar:306px!important}body.sidebar-collapsed .sidebar{padding:18px 14px!important}body.sidebar-collapsed .brand-text,body.sidebar-collapsed .ai-account-info,body.sidebar-collapsed .ai-account-balance span,body.sidebar-collapsed .ai-account-balance b,body.sidebar-collapsed .nav-link span,body.sidebar-collapsed .side-section,body.sidebar-collapsed .quota-card p,body.sidebar-collapsed .quota-top span,body.sidebar-collapsed .sidebar-actions .btn span,body.sidebar-collapsed .guest-card{display:block!important}body.sidebar-collapsed .sidebar-actions .btn span{display:inline!important}body.sidebar-collapsed .sidebar-head{justify-content:space-between!important}body.sidebar-collapsed .nav-link{justify-content:flex-start!important;padding:10px 12px!important;min-height:54px!important}
}


/* Full UI Geometry v9: global scan fixes for cramped text/value cards, inline meta chips, and icon alignment */
:root{--pair-gap-x:16px;--pair-gap-y:8px;--tile-min:250px}
.card,.page-head,.hero,.landing-content,.phone-card,.auth-card,.settings-shell,.ipa-item-card,.admin-ipa-card,.bank-modern-card,.copy-tile,.btn,.link-btn{min-width:0;max-width:100%}
.card *,.page-head *,.hero *,.landing-content *,.phone-card *{min-width:0}
.grid,.dashboard-balance-grid,.admin-metrics,.settings-grid,.ipa-card-grid,.admin-ipa-card-grid,.copy-button-grid,.app-copy-grid,.bank-copy-grid,.billing-pro-shell,.vip-clean-grid{gap:clamp(18px,2.3vw,32px)!important}

/* Text/value pairs: never let database values collide with labels. */
.mini-stat,.balance-pill,.ai-account-balance,.deposit-amount-display{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:var(--pair-gap-y) var(--pair-gap-x)!important;overflow:visible!important;line-height:1.35!important}
.mini-stat > span,.balance-pill > span,.ai-account-balance > span,.deposit-amount-display > span{flex:1 1 112px!important;min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.35!important}
.mini-stat > strong,.balance-pill > strong,.ai-account-balance > b,.deposit-amount-display > strong{flex:0 1 auto!important;max-width:100%!important;margin-left:0!important;text-align:right!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;line-height:1.28!important}
.ai-account-balance > svg,.balance-pill > svg{flex:0 0 auto!important;width:17px!important;height:17px!important;margin:0!important}

/* Stat/meta tiles use vertical stacking when content can be long. */
.vip-status-list,.ipa-meta-grid,.admin-ipa-meta{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--tile-min)),1fr))!important;gap:16px!important;align-items:stretch!important}
.vip-status-list > div,.ipa-meta-grid > div,.admin-ipa-meta > div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;min-height:88px!important;padding:16px!important;border:1px solid var(--line)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--shadow-tiny)!important;overflow:visible!important;line-height:1.35!important}
.vip-status-list > div > span,.ipa-meta-grid > div > span,.admin-ipa-meta > div > span{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;color:var(--muted)!important;font-size:12px!important;font-weight:900!important;letter-spacing:.055em!important;text-transform:uppercase!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.35!important}
.vip-status-list > div > strong,.ipa-meta-grid > div > strong,.admin-ipa-meta > div > strong{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;color:var(--heading)!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important;font-size:clamp(15px,1.35vw,17px)!important}

/* Form metadata grids are fields, not label/value tiles. */
.auto-meta-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.auto-meta-grid > label{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}

/* Landing app meta chips are inline chips with icons, not stat cards. */
.app-meta,.install-meta-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:12px!important;align-items:stretch!important}
.app-meta > span,.install-meta-grid > span{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:44px!important;padding:11px 12px!important;border:1px solid var(--line)!important;border-radius:16px!important;background:#f8fbff!important;color:#334155!important;font-size:12px!important;font-weight:900!important;text-transform:none!important;letter-spacing:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;box-shadow:none!important;line-height:1.35!important}
.app-meta > span svg,.install-meta-grid > span svg{width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;margin:0!important;color:var(--primary)!important}

/* VIP card specific: readable desktop and mobile geometry. */
.vip-status-card .section-title{margin-bottom:22px!important}.vip-status-card{overflow:visible!important}
.vip-rule-note{gap:13px!important;margin-top:24px!important}.vip-rule-note > div,.vip-insufficient,.billing-note-list > div{display:flex!important;align-items:flex-start!important;gap:12px!important;line-height:1.6!important;overflow:visible!important}
.vip-rule-note > div svg,.vip-insufficient svg,.billing-note-list > div svg,.vip-rule-note > div i,.vip-insufficient i,.billing-note-list > div i{width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;margin-top:2px!important;color:var(--primary)!important}
.vip-rule-note > div span,.vip-insufficient span,.billing-note-list > div span{min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
.vip-price-hero{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;margin-bottom:20px!important;overflow:visible!important}
.vip-price-hero > span,.vip-price-hero > small{width:100%!important;max-width:100%!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere!important}.vip-price-hero > strong{width:100%!important;max-width:100%!important;text-align:left!important;line-height:1!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:clamp(36px,4.8vw,58px)!important}

/* Buttons and icons: stable vertical alignment and larger click target. */
.btn,.link-btn,.install-button,.oauth-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;line-height:1.25!important;min-width:0!important;vertical-align:middle!important}.btn svg,.link-btn svg,.install-button svg,.oauth-btn svg,.btn i,.link-btn i,.install-button i,.oauth-btn i{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;margin:0!important}.icon-btn svg,.icon-btn i{margin:0!important}.btn.wide,.link-btn.wide{width:100%!important}.actions,.row-actions,.landing-actions,.ipa-actions-panel,.admin-ipa-actions{gap:12px!important}

/* Tables and long values should wrap in cards instead of forcing hidden overflow. */
td,th,.badge,.copy-tile b,.copy-tile small,.bank-title strong,.system-link code,.log-tail code{word-break:normal!important;overflow-wrap:anywhere!important}.table-wrap{max-width:100%!important}.metric{overflow:visible!important}.metric strong{max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;line-height:1.05!important}

@media (min-width:961px){
  .vip-status-list{--tile-min:260px}.ipa-meta-grid,.admin-ipa-meta{--tile-min:230px}
  .vip-head-stats,.billing-head-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:16px!important}
  .mini-stat{min-height:64px!important;padding:15px 16px!important;border-radius:18px!important}
}
@media (max-width:960px){
  .vip-status-list,.ipa-meta-grid,.admin-ipa-meta,.auto-meta-grid,.app-meta,.install-meta-grid{grid-template-columns:1fr!important}
  .mini-stat,.balance-pill,.ai-account-balance,.deposit-amount-display{align-items:flex-start!important}.mini-stat > strong,.balance-pill > strong,.ai-account-balance > b,.deposit-amount-display > strong{text-align:left!important}
}
@media (max-width:520px){
  .vip-status-list > div,.ipa-meta-grid > div,.admin-ipa-meta > div{min-height:auto!important;padding:15px!important;border-radius:18px!important}.vip-price-hero > strong{font-size:clamp(31px,10vw,44px)!important}.btn,.link-btn,.install-button{min-height:48px!important}
}

/* Full UI Geometry v9.1: IPA card title overflow guard */
.ipa-item-top,.admin-ipa-top{min-width:0!important;max-width:100%!important;overflow:visible!important}.ipa-title,.admin-ipa-title{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}.ipa-title h3,.admin-ipa-title h3{max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important}.ipa-title p,.admin-ipa-title p{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}


/* Desktop Full Width v10: prevent classic sidebar from pushing/centering content out of view */
@media (min-width:961px){
  :root{--sidebar:306px;--desktop-page-pad-x:clamp(18px,1.65vw,32px)}
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .shell-layout{width:100%!important;max-width:100vw!important;grid-template-columns:var(--sidebar) minmax(0,1fr)!important;overflow-x:hidden!important}
  .shell-main{width:100%!important;max-width:calc(100vw - var(--sidebar))!important;min-width:0!important;overflow-x:hidden!important}
  .topbar{width:100%!important;max-width:100%!important;padding-left:var(--desktop-page-pad-x)!important;padding-right:var(--desktop-page-pad-x)!important}
  .container{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:var(--desktop-page-pad-x)!important;padding-right:var(--desktop-page-pad-x)!important}
  .admin-content{width:100%!important;max-width:100%!important}
  .vip-clean-grid,.billing-pro-shell{width:100%!important;max-width:100%!important;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;gap:clamp(18px,1.8vw,28px)!important;align-items:start!important}
  .vip-clean-grid > *,.billing-pro-shell > *{min-width:0!important;max-width:100%!important}
  .card,.page-head,.hero,.settings-shell,.landing-content,.phone-card,.table-wrap{max-width:100%!important}
}
@media (min-width:961px) and (max-width:1500px){
  .vip-clean-grid,.billing-pro-shell{grid-template-columns:1fr!important}
  .vip-action-card{max-width:100%!important}
}
@media (min-width:961px) and (max-width:1280px){
  :root{--sidebar:288px;--desktop-page-pad-x:18px}
  .brand strong{max-width:170px!important}
  .sidebar{padding-left:12px!important;padding-right:12px!important}
  .nav-link{padding-left:10px!important;padding-right:10px!important}
}

/* StableDesktopSign UI v11: fix desktop bottom clipping, icon flicker and certificate/sign form geometry */
html{scrollbar-gutter:stable;overflow-y:scroll}
i[data-lucide],.auto-icon{display:inline-block;width:18px;height:18px;min-width:18px;flex:0 0 18px;vertical-align:middle;line-height:1;color:currentColor}
button i[data-lucide],a i[data-lucide],.btn i[data-lucide],.link-btn i[data-lucide]{margin:0}
.cert-upload-picker,.sign-card-form label{display:flex!important;flex-direction:column!important;gap:10px!important;line-height:1.35!important;color:#334155!important;font-weight:850!important;min-width:0!important;width:100%!important;margin:0!important}
.cert-select-shell,.cert-select-shell-v10{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:58px!important;padding:0 14px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:#fff!important;box-shadow:var(--shadow-tiny)!important;overflow:hidden!important}
.cert-select-shell > svg,.cert-select-shell > i,.cert-select-shell-v10 > svg,.cert-select-shell-v10 > i{grid-column:1!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;color:var(--primary)!important;margin:0!important;align-self:center!important;justify-self:center!important}
.cert-select-shell select,.cert-select-shell-v10 select{grid-column:2!important;width:100%!important;min-width:0!important;min-height:56px!important;padding:0 34px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--text)!important;font-weight:850!important;line-height:1.35!important;appearance:auto!important}
.cert-select-shell select:focus,.cert-select-shell-v10 select:focus{box-shadow:none!important;border:0!important}
.ipa-auto-note.compact{margin-top:18px!important;margin-bottom:0!important;line-height:1.65!important}
.ipa-actions-panel.cert-action-panel-v10{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:18px!important;margin-top:22px!important;min-width:0!important;width:100%!important}
.sign-card-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:12px!important;min-width:0!important;width:100%!important;margin:0!important}
.sign-card-form label{grid-column:1!important}.sign-card-form .btn{grid-column:2!important;min-height:58px!important;white-space:nowrap!important}.delete-card-form{display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;margin:0!important}.delete-card-form .link-btn{min-height:58px!important;padding-inline:20px!important;white-space:nowrap!important}
.direct-copy-only,.linked-app-copy-only,.copy-button-grid{margin-top:4px!important}.original-deleted-note{display:block!important;margin-top:4px!important;line-height:1.5!important}
@media (min-width:961px){
  .container,.container.admin-content,.admin-content{padding-bottom:190px!important}
  .admin-content > :last-child{margin-bottom:96px!important}
  .ipa-list-card,.payment-history-card,.settings-shell,.card:last-child{margin-bottom:96px!important}
  .ipa-card-grid{grid-template-columns:1fr!important;gap:24px!important}
  .ipa-item-card{padding:22px!important;border-radius:26px!important;overflow:visible!important}
  .ipa-item-top{align-items:flex-start!important;justify-content:space-between!important;gap:18px!important}.ipa-title-block{min-width:0!important;flex:1 1 auto!important}.ipa-status-stack{flex:0 0 auto!important;align-items:center!important;justify-content:flex-end!important;max-width:50%!important}.ipa-size-inline{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}.ipa-size-inline svg{width:18px!important;height:18px!important;min-width:18px!important}
  .cert-upload-picker{margin-top:4px!important}.ipa-upload-card{margin-bottom:28px!important}
  .topbar,.sidebar,.shell-layout,.shell-main,.container{transform:none!important;will-change:auto!important}
}
@media (max-width:960px){
  .ipa-actions-panel.cert-action-panel-v10,.sign-card-form{grid-template-columns:1fr!important}.sign-card-form label,.sign-card-form .btn{grid-column:1!important}.delete-card-form{justify-content:stretch!important}.delete-card-form .link-btn,.sign-card-form .btn{width:100%!important}.cert-select-shell,.cert-select-shell-v10{min-height:56px}.cert-select-shell select,.cert-select-shell-v10 select{min-height:54px}
}

/* System Logs v12 */
.system-log-filter{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;align-items:end}
.system-log-filter .system-log-file-select{grid-column:span 3}
.system-log-filter .btn{min-height:54px}
.system-log-tail{max-height:620px;white-space:pre-wrap;overflow:auto;line-height:1.55;font-size:12.5px}
.log-tail code{display:block;min-width:0;overflow-wrap:anywhere;word-break:break-word}
@media (max-width:1180px){.system-log-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.system-log-filter .system-log-file-select{grid-column:span 2}}
@media (max-width:720px){.system-log-filter{grid-template-columns:1fr}.system-log-filter .system-log-file-select{grid-column:auto}.system-log-tail{max-height:520px;font-size:11.5px}}


/* Sidebar + All Logs v13: restore desktop hide/show button and one-screen log view */
@media (min-width: 961px){
  html{scrollbar-gutter:stable both-edges}
  .shell-layout{transition:grid-template-columns .18s ease!important}
  .topbar .nav-toggle{display:inline-grid!important;position:relative!important;z-index:40!important;pointer-events:auto!important;opacity:1!important;visibility:visible!important}
  .sidebar .sidebar-collapse{display:inline-grid!important;position:relative!important;z-index:25!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  .sidebar-close{display:none!important}
  .sidebar{transition:opacity .18s ease,transform .18s ease,padding .18s ease,border-color .18s ease!important;will-change:auto!important}
  body.sidebar-collapsed{--sidebar:0px!important}
  body.sidebar-collapsed .shell-layout{grid-template-columns:0 minmax(0,1fr)!important}
  body.sidebar-collapsed .sidebar{width:0!important;min-width:0!important;max-width:0!important;padding-left:0!important;padding-right:0!important;border-right:0!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;transform:translateX(-18px)!important;box-shadow:none!important}
  body.sidebar-collapsed .shell-main{max-width:100vw!important;width:100%!important}
  body.sidebar-collapsed .container{max-width:none!important;width:100%!important}
  body.sidebar-collapsed .topbar{padding-left:var(--desktop-page-pad-x)!important}
}
.system-log-filter{grid-template-columns:repeat(4,minmax(180px,1fr))!important}
.system-log-filter .system-log-file-select{grid-column:1 / -1!important}
.system-log-filter > .btn{grid-column:1 / -1!important;justify-content:center!important}
.system-log-filter select[name="file"]{font-weight:850;color:#0f172a;background:#fff}
.system-log-tail{max-height:min(72vh,780px)!important;border:1px solid var(--line)!important;background:#0f172a!important;color:#dbeafe!important;border-radius:22px!important;padding:16px!important;box-shadow:var(--shadow-soft)!important}
.system-log-tail code{color:inherit!important;line-height:1.58!important;tab-size:2;white-space:pre-wrap!important}
@media (max-width:1180px){.system-log-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}.system-log-filter .system-log-file-select{grid-column:1 / -1!important}}
@media (max-width:720px){.system-log-filter{grid-template-columns:1fr!important}.system-log-filter .system-log-file-select{grid-column:auto!important}.system-log-tail{max-height:62vh!important;font-size:11.5px!important}}

/* Sign Queue Stability v15 */
.sign-progress-box{display:block!important;margin-top:10px!important;margin-bottom:10px!important;padding:12px 14px!important;border:1px solid rgba(37,99,235,.16)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(37,99,235,.07),rgba(6,182,212,.06))!important;box-shadow:var(--shadow-tiny)!important}
.sign-progress-box .progress-head{margin-bottom:9px!important}.sign-progress-box .progress-head span,.sign-progress-box .progress-head b{font-size:12px!important;font-weight:900!important;color:#334155!important}.sign-progress-box .progress-message{margin-top:9px!important;font-size:12px!important;color:var(--muted)!important;line-height:1.55!important}
.badge.processing{position:relative;overflow:hidden}.badge.processing::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);transform:translateX(-120%);animation:signBadgeSweep 1.35s infinite}@keyframes signBadgeSweep{to{transform:translateX(120%)}}

/* Sign Progress Live v18 */
.sign-progress-box.active .progress-track span,
.sign-progress-box:not(.failed):not(.complete) .progress-track span{position:relative;overflow:hidden}
.sign-progress-box.active .progress-track span::after,
.sign-progress-box:not(.failed):not(.complete) .progress-track span::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);animation:signProgressSweep 1.25s linear infinite}
.sign-progress-box.complete{border-color:rgba(22,163,74,.25)!important;background:linear-gradient(135deg,rgba(22,163,74,.08),rgba(255,255,255,.95))!important}
.sign-progress-box.failed{border-color:rgba(225,29,72,.24)!important;background:linear-gradient(135deg,rgba(225,29,72,.08),rgba(255,255,255,.95))!important}
.sign-progress-box.compact{padding:10px!important;margin:8px 0!important;min-width:min(280px,100%)}
.sign-progress-box.compact .progress-head{gap:12px;align-items:flex-start!important}.sign-progress-box.compact .progress-head span{line-height:1.45}.sign-progress-box.compact .progress-message{font-size:11.5px!important}
.sign-error-inline{display:block;margin-top:8px;max-width:100%;overflow-wrap:anywhere;line-height:1.45}
@keyframes signProgressSweep{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

/* Landing Button Options v21 */
.landing-form textarea[name="landing_extra_buttons"]{font-family:inherit;min-height:118px}.app-resign-card{display:flex;flex-direction:column;gap:16px}.app-resign-card .btn{align-self:flex-start}.install-actions .extra-landing-button{border-style:dashed}.landing-only-links small{display:block;margin-top:8px;line-height:1.4}.row-actions form{display:inline-flex;align-items:center;gap:8px;margin:0}.row-actions .btn.small{min-height:42px}
@media (max-width:720px){.app-resign-card .btn{width:100%;align-self:stretch}.row-actions form,.row-actions .btn,.row-actions .link-btn{width:100%}.install-actions{align-items:stretch}.install-actions .install-button{width:100%}}


/* v22: fix hidden deposit amounts */
.deposit-presets{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.deposit-chip{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 12px;min-width:0}
.deposit-chip span{display:block;overflow:visible!important;text-overflow:clip!important;white-space:nowrap;font-size:clamp(13px,1.9vw,16px);line-height:1.2;text-align:center}
@media (min-width:721px) and (max-width:980px){.deposit-presets{grid-template-columns:repeat(3,minmax(0,1fr))!important}.deposit-chip{min-height:56px;padding:12px 10px}.deposit-chip span{font-size:14px}}
@media (min-width:981px) and (max-width:1200px){.deposit-presets{grid-template-columns:repeat(4,minmax(0,1fr))!important}.deposit-chip span{font-size:14px}}


/* v23: make dashboard metric cards display evenly */
.dashboard-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important}
.dashboard-balance-grid > .metric{height:100%;min-height:196px;display:flex;justify-content:flex-start}
.dashboard-balance-grid > .metric strong{font-size:clamp(28px,2.7vw,52px);line-height:1.02}
.dashboard-balance-grid > .metric small{margin-top:auto}
@media (max-width:1320px){.dashboard-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:960px){.dashboard-balance-grid{grid-template-columns:1fr!important}.dashboard-balance-grid > .metric{min-height:160px}}


/* v24: compact dashboard metric cards */
.dashboard-balance-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.dashboard-balance-grid > .metric{min-height:118px!important;height:auto!important;padding:14px 15px!important;border-radius:20px!important;gap:7px!important;overflow:hidden!important;box-shadow:0 10px 26px rgba(15,23,42,.06)!important}
.dashboard-balance-grid > .metric::before{width:72px!important;height:72px!important;right:-22px!important;top:-22px!important;opacity:.55!important}
.dashboard-balance-grid > .metric span{font-size:10.5px!important;line-height:1.25!important;letter-spacing:.07em!important;margin:0!important}
.dashboard-balance-grid > .metric strong{font-size:clamp(21px,1.55vw,30px)!important;line-height:1.02!important;letter-spacing:-.055em!important;margin:6px 0 0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
.dashboard-balance-grid > .metric small{font-size:11.5px!important;line-height:1.35!important;margin-top:auto!important}
@media (max-width:1320px){.dashboard-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dashboard-balance-grid > .metric{min-height:112px!important}}
@media (max-width:860px){.dashboard-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-balance-grid > .metric{min-height:106px!important;padding:13px!important}}
@media (max-width:460px){.dashboard-balance-grid{grid-template-columns:1fr!important}.dashboard-balance-grid > .metric{min-height:98px!important}}


/* v29: visible sign progress color bar by percent */
.sign-progress-box .progress-track.sign-progress-track,
.sign-progress-box .progress-track{position:relative!important;height:12px!important;overflow:hidden!important;border-radius:999px!important;background:#e8eef6!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.06)!important}
.sign-progress-box .progress-track::before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:var(--sign-progress-width,0%)!important;min-width:0!important;border-radius:999px!important;background:linear-gradient(90deg,#2563eb 0%,#06b6d4 68%,#22c55e 100%)!important;box-shadow:0 0 16px rgba(6,182,212,.28)!important;transition:width .28s ease!important;z-index:1!important}
.sign-progress-box .progress-track [data-sign-bar]{display:block!important;position:relative!important;z-index:2!important;height:100%!important;width:var(--sign-progress-width,0%)!important;border-radius:999px!important;background:linear-gradient(90deg,#2563eb 0%,#06b6d4 68%,#22c55e 100%)!important;box-shadow:0 0 16px rgba(6,182,212,.28)!important;transition:width .28s ease!important}
.sign-progress-box.failed .progress-track::before,.sign-progress-box.failed .progress-track [data-sign-bar]{background:linear-gradient(90deg,#fb7185,#e11d48)!important}
.sign-progress-box.complete .progress-track::before,.sign-progress-box.complete .progress-track [data-sign-bar]{background:linear-gradient(90deg,#16a34a,#22c55e)!important}


/* v30: Home page single-column layout, no split hero */
.home-single-hero{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:clamp(16px,2.4vw,24px)!important}
.home-single-hero .home-hero-main{width:100%;max-width:900px!important}
.home-single-hero h1{max-width:900px!important;font-size:clamp(32px,5.1vw,58px)!important;line-height:1.04!important;letter-spacing:-.065em!important}
.home-single-hero .big{max-width:820px!important;font-size:clamp(15px,1.55vw,19px)!important;line-height:1.72!important}
.home-actions{margin-top:clamp(16px,2vw,22px)!important}
.home-quick-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;margin-top:2px}
.home-step{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-tiny);min-width:0}
.home-step b{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:var(--grad);color:#fff;flex:0 0 28px;font-size:13px;line-height:1}
.home-step span{min-width:0;color:var(--muted);font-weight:750;line-height:1.55;font-size:13px}
.home-feature-grid .card{min-height:0!important}
@media (max-width:960px){.home-single-hero{padding:24px 18px!important}.home-single-hero h1{font-size:clamp(30px,9vw,42px)!important;line-height:1.07!important}.home-quick-steps{grid-template-columns:1fr!important}.home-actions .btn{flex:1 1 150px;min-height:50px!important}}
@media (max-width:420px){.home-single-hero{padding:22px 16px!important}.home-actions{display:grid!important;grid-template-columns:1fr!important}.home-actions .btn{width:100%!important}.home-step{padding:13px}.home-feature-grid{grid-template-columns:1fr!important}}


/* v31: uniform cards across the whole UI */
:root{
  --ui-card-compact-min: 150px;
  --ui-card-feature-min: 174px;
  --ui-card-panel-radius: 22px;
  --ui-card-panel-padding: clamp(17px,1.7vw,22px);
}
.grid,
.home-feature-grid,
.install-guide-grid,
.dashboard-balance-grid,
.admin-metrics,
.settings-grid,
.copy-button-grid,
.app-copy-grid,
.bank-copy-grid,
.ipa-card-grid,
.admin-ipa-card-grid{
  align-items:stretch!important;
}
.grid > :is(.card,.metric,.hint-box),
.home-feature-grid > .card,
.install-guide-grid > article,
.admin-metrics > .metric,
.dashboard-balance-grid > .metric,
.settings-grid > :is(.card,label,.setting-field),
.copy-button-grid > :is(.btn,.link-btn,.copy-tile),
.app-copy-grid > :is(.btn,.link-btn,.copy-tile),
.bank-copy-grid > :is(.btn,.link-btn,.copy-tile),
.ipa-card-grid > .ipa-item-card,
.admin-ipa-card-grid > .admin-ipa-card{
  height:100%!important;
  min-width:0!important;
}
.grid > :is(.card,.hint-box):not(.metric){
  min-height:var(--ui-card-compact-min)!important;
}
.grid > :is(.card,.hint-box):not(.metric),
.install-guide-grid > article{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  border-radius:var(--ui-card-panel-radius)!important;
  padding:var(--ui-card-panel-padding)!important;
}
.grid > :is(.card,.hint-box) > :last-child,
.home-feature-grid > .card > :last-child,
.install-guide-grid > article > :last-child{
  margin-bottom:0!important;
}
.home-feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:1fr!important;
  gap:clamp(16px,2vw,24px)!important;
}
.home-feature-grid > .card{
  min-height:var(--ui-card-feature-min)!important;
  max-height:none!important;
  overflow:hidden!important;
}
.home-feature-grid > .card h3{
  margin:0 0 10px!important;
  line-height:1.25!important;
}
.home-feature-grid > .card p{
  margin:0!important;
  line-height:1.65!important;
  font-size:clamp(14px,1.2vw,16px)!important;
}
.install-guide-grid{
  align-items:stretch!important;
  grid-auto-rows:1fr!important;
}
.install-guide-grid > article{
  min-height:150px!important;
}
@media (min-width:961px){
  .home-feature-grid > .card{
    height:var(--ui-card-feature-min)!important;
  }
}
@media (max-width:1180px){
  .home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:860px){
  .home-feature-grid,.install-guide-grid{grid-template-columns:1fr!important;grid-auto-rows:auto!important}
  .home-feature-grid > .card,.install-guide-grid > article{
    height:auto!important;
    min-height:0!important;
  }
}


/* v32: login/register spacing */
.pro-auth{
  width:min(100%,560px)!important;
  margin:clamp(28px,5vh,58px) auto clamp(70px,8vh,110px)!important;
  padding:clamp(26px,4vw,40px)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:20px!important;
}
.pro-auth .auth-logo{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:14px!important;
  margin:0!important;
}
.pro-auth .auth-logo .brand-mark{width:54px!important;height:54px!important;border-radius:18px!important}
.pro-auth .auth-logo h1{
  margin:0 0 12px!important;
  line-height:1!important;
  font-size:clamp(42px,5.5vw,58px)!important;
  letter-spacing:-.085em!important;
}
.pro-auth .auth-logo p{
  margin:0!important;
  max-width:520px!important;
  line-height:1.5!important;
  font-size:clamp(15px,1.45vw,18px)!important;
}
.pro-auth .oauth-grid{margin:2px 0 0!important;gap:14px!important}
.pro-auth .oauth-btn{min-height:58px!important;padding:12px 16px!important;border-radius:18px!important}
.pro-auth .oauth-btn small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.pro-auth .divider{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
  color:#334155!important;
  font-weight:750!important;
  line-height:1.45!important;
}
.pro-auth .form{gap:20px!important;margin:0!important}
.pro-auth .form label{gap:10px!important;margin:0!important;font-size:14px!important;line-height:1.35!important}
.pro-auth .form input{min-height:60px!important;border-radius:20px!important;padding:14px 18px!important}
.pro-auth .form .btn{min-height:60px!important;margin-top:4px!important;border-radius:20px!important}
.pro-auth .auth-links{
  margin:12px 0 0!important;
  padding:0 2px 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  line-height:1.6!important;
}
.pro-auth .auth-links a{display:inline-flex!important;align-items:center!important;min-height:32px!important}
@media (max-width:720px){
  .pro-auth{width:100%!important;margin:18px auto calc(130px + var(--safe-bottom,0px))!important;padding:22px 18px!important;gap:18px!important}
  .pro-auth .auth-logo h1{font-size:clamp(38px,12vw,50px)!important}
  .pro-auth .oauth-grid{grid-template-columns:1fr!important;gap:12px!important}
  .pro-auth .form{gap:18px!important}
  .pro-auth .form input,.pro-auth .form .btn{min-height:56px!important}
  .pro-auth .auth-links{margin-top:10px!important;gap:12px!important;flex-wrap:wrap!important}
}


/* Landing auto polish v33 */
.install-pro .install-actions{margin-bottom:16px}
.install-pro .install-button{font-weight:900}
.install-pro .install-trust-row{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0 0}
.install-pro .install-trust-row span{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;color:#334155;font-weight:800;min-width:0}
.install-pro .install-trust-row span i{color:var(--primary)}
.install-meta-grid span{display:flex;align-items:center;gap:10px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.install-meta-grid span i{flex:0 0 18px;color:var(--primary)}
.modern-link-panel{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--line);border-radius:24px;background:#fbfdff;margin-top:16px}
.link-card-row{display:flex;flex-direction:column;gap:8px;min-width:0}
.url-line{margin:0;font-size:12px!important}
.url-line span{display:inline-block;font-size:13px;color:var(--soft);font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.link-value{display:block;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid var(--line);color:var(--heading);font-weight:800;line-height:1.65;overflow-wrap:anywhere;word-break:break-word}
.link-value:hover{border-color:rgba(37,99,235,.35);box-shadow:0 10px 24px rgba(37,99,235,.08)}
.manifest-panel{margin-top:12px}
.install-description{font-size:15px;line-height:1.82;color:#475569}
.install-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}
.install-guide-grid article{padding:18px;border-radius:24px;border:1px solid var(--line);background:#fbfdff;box-shadow:var(--shadow-tiny)}
.install-guide-grid article i{width:20px;height:20px;color:var(--primary)}
.install-guide-grid article h3{margin:14px 0 8px;font-size:17px}
.install-guide-grid article p{margin:0;font-size:14px;line-height:1.7;color:#64748b}
.install-footer .footer-note{display:block;margin-top:10px;color:#64748b;line-height:1.7}
.static-page-card{padding:clamp(22px,3vw,34px)}
.static-doc{display:flex;flex-direction:column;gap:14px;color:#334155;line-height:1.8}
.static-doc .lead{font-size:16px;color:#475569}
.static-doc h2{margin:8px 0 0;font-size:20px;color:var(--heading)}
.static-doc ul{margin:0;padding-left:20px}
.static-doc li{margin:0 0 8px}
@media (min-width:861px){
  .install-pro .install-trust-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .install-guide-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .modern-link-panel{padding:16px;border-radius:20px}
  .link-value{padding:13px 14px;border-radius:16px;font-size:13px}
  .install-description{font-size:14px}
}


/* Landing sync/buttons v34 */
.install-nav a,.install-trust-row a{cursor:pointer;pointer-events:auto;text-decoration:none}
.install-trust-row a{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;color:#334155;font-weight:800;min-width:0;box-shadow:var(--shadow-tiny);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}
.install-trust-row a:hover{transform:translateY(-1px);border-color:rgba(37,99,235,.32);color:var(--primary);box-shadow:0 14px 32px rgba(37,99,235,.10)}
.install-trust-row a i{color:var(--primary);flex:0 0 18px}
.install-guide-grid article{scroll-margin-top:110px}
.install-wrap,#details,#guide{scroll-margin-top:110px}
@media (max-width:720px){.install-guide-grid article{scroll-margin-top:90px}.install-wrap,#details,#guide{scroll-margin-top:90px}}


/* v35: clean and stable login/register */
body.auth-route{min-height:100dvh;background:var(--bg)}
body.auth-route .shell-layout{display:block!important;min-height:100dvh!important;padding:clamp(24px,5vh,54px) 18px!important}
body.auth-route .sidebar,body.auth-route .topbar,body.auth-route .mobile-header,body.auth-route .mobile-tabbar,body.auth-route .shell-backdrop{display:none!important}
body.auth-route .shell-main{display:block!important;width:100%!important;min-width:0!important}
body.auth-route .container{max-width:560px!important;width:100%!important;margin:0 auto!important;padding:0!important}
body.auth-route .admin-content > * + *{margin-top:18px!important}
body.auth-route .alert{margin:0 0 16px!important}
.pro-auth{width:100%!important;max-width:560px!important;margin:0 auto!important;padding:clamp(24px,3vw,32px)!important;border-radius:30px!important;gap:18px!important;box-shadow:var(--shadow-soft)!important}
.pro-auth .auth-logo{gap:0!important;align-items:flex-start!important}
.pro-auth .auth-logo .brand-mark{display:none!important}
.pro-auth .auth-logo h1{margin:0!important;font-size:clamp(34px,4.2vw,48px)!important;line-height:1.04!important;letter-spacing:-.065em!important}
.pro-auth .auth-logo p{display:none!important}
.pro-auth .oauth-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
.pro-auth .oauth-btn{min-height:52px!important;height:52px!important;padding:10px 14px!important;border-radius:18px!important;transform:none!important}
.pro-auth .oauth-btn:hover{transform:none!important}
.pro-auth .oauth-btn small{font-size:10.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.pro-auth .divider{margin:0!important;font-size:14px!important;line-height:1.4!important}
.pro-auth .form{gap:15px!important;margin:0!important}
.pro-auth .form label{gap:8px!important;margin:0!important;font-size:13.5px!important;line-height:1.3!important}
.pro-auth .form input{height:52px!important;min-height:52px!important;max-height:52px!important;padding:12px 16px!important;border-radius:18px!important;font-size:16px!important;line-height:1.25!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;transform:none!important;field-sizing:fixed!important;resize:none!important}
.pro-auth .form input:focus,.pro-auth .form input:active{height:52px!important;min-height:52px!important;max-height:52px!important;transform:none!important}
.pro-auth .form input:-webkit-autofill,.pro-auth .form input:-webkit-autofill:hover,.pro-auth .form input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #fff inset!important;box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:var(--text)!important;caret-color:var(--text)!important}
.pro-auth .form .btn{height:54px!important;min-height:54px!important;max-height:54px!important;margin-top:2px!important;border-radius:18px!important;transform:none!important}
.pro-auth .form .btn:hover{transform:none!important}
.pro-auth .auth-links{margin:2px 0 0!important;padding:0!important;justify-content:space-between!important;gap:14px!important;font-size:14px!important;line-height:1.4!important}
.pro-auth .auth-links a{min-height:auto!important}
@media (max-width:720px){
  body.auth-route .shell-layout{padding:18px 14px calc(32px + var(--safe-bottom,0px))!important}
  body.auth-route .container{max-width:100%!important}
  .pro-auth{padding:22px 18px!important;border-radius:26px!important;gap:16px!important}
  .pro-auth .auth-logo h1{font-size:clamp(32px,10vw,42px)!important}
  .pro-auth .oauth-grid{grid-template-columns:1fr!important}
  .pro-auth .oauth-btn{width:100%!important}
  .pro-auth .auth-links{justify-content:flex-start!important;flex-wrap:wrap!important}
}


/* v35 final: auth form even layout, no auto growth */
body.auth-route .admin-content{min-height:100dvh!important;display:grid!important;place-items:center!important}
body.auth-route .pro-auth.clean-auth-card{width:min(100%,520px)!important;max-width:520px!important;margin:0 auto!important;gap:16px!important}
body.auth-route .pro-auth .divider{display:none!important}
body.auth-route .pro-auth .auth-logo{display:block!important}
body.auth-route .pro-auth .auth-logo h1{margin:0!important}
body.auth-route .pro-auth .oauth-grid{margin:0!important}
body.auth-route .pro-auth .form{gap:14px!important}
body.auth-route .pro-auth .form input{box-sizing:border-box!important;height:50px!important;min-height:50px!important;max-height:50px!important;overflow:hidden!important}
body.auth-route .pro-auth .form input:focus,
body.auth-route .pro-auth .form input:not(:placeholder-shown),
body.auth-route .pro-auth .form input:valid{height:50px!important;min-height:50px!important;max-height:50px!important;transform:none!important}
body.auth-route .pro-auth .form .btn{height:52px!important;min-height:52px!important;max-height:52px!important}
@media (max-width:720px){body.auth-route .admin-content{display:block!important;min-height:auto!important}body.auth-route .pro-auth.clean-auth-card{max-width:100%!important}}


/* v36: keep sidebar on login/register, make auth layout even on desktop */
@media (min-width:961px){
  body.auth-route{min-height:100vh!important;background:var(--bg)!important}
  body.auth-route .shell-layout{
    display:grid!important;
    grid-template-columns:var(--sidebar) minmax(0,1fr)!important;
    gap:22px!important;
    min-height:100vh!important;
    padding:22px!important;
  }
  body.auth-route .sidebar{
    display:flex!important;
    position:sticky!important;
    top:22px!important;
    height:calc(100vh - 44px)!important;
  }
  body.auth-route .topbar{
    display:flex!important;
  }
  body.auth-route .mobile-header,
  body.auth-route .mobile-tabbar,
  body.auth-route .shell-backdrop{
    display:none!important;
  }
  body.auth-route .shell-main{
    display:flex!important;
    flex-direction:column!important;
    gap:22px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.auth-route .container{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 0 72px!important;
    min-height:calc(100vh - var(--topbar) - 88px)!important;
    display:grid!important;
    place-items:center!important;
  }
  body.auth-route .admin-content{display:grid!important;place-items:center!important;min-height:calc(100vh - var(--topbar) - 88px)!important}
  body.auth-route .pro-auth.clean-auth-card{
    width:min(100%,560px)!important;
    max-width:560px!important;
    margin:0 auto!important;
    padding:28px!important;
    border-radius:30px!important;
    gap:18px!important;
  }
  body.auth-route .pro-auth .auth-logo h1{font-size:42px!important;line-height:1.05!important}
  body.auth-route .pro-auth .oauth-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body.auth-route .pro-auth .oauth-btn{height:54px!important;min-height:54px!important}
  body.auth-route .pro-auth .form{gap:16px!important}
  body.auth-route .pro-auth .form input{height:52px!important;min-height:52px!important;max-height:52px!important}
  body.auth-route .pro-auth .form .btn{height:54px!important;min-height:54px!important;max-height:54px!important}
}

@media (max-width:960px){
  body.auth-route .mobile-header{display:flex!important}
  body.auth-route .mobile-tabbar{display:grid!important}
  body.auth-route .shell-layout{display:block!important;padding:84px 12px 0!important;min-height:100vh!important}
  body.auth-route .sidebar{display:flex!important;position:fixed!important}
  body.auth-route .topbar{display:none!important}
  body.auth-route .shell-main{display:block!important;width:100%!important}
  body.auth-route .container{max-width:100%!important;width:100%!important;padding-bottom:calc(110px + var(--safe-bottom))!important;display:block!important}
  body.auth-route .admin-content{display:block!important;min-height:auto!important}
  body.auth-route .pro-auth.clean-auth-card{width:100%!important;max-width:560px!important;margin:16px auto calc(120px + var(--safe-bottom,0px))!important}
}


/* v37: auth title polish + single-line controls */
.btn > span,.link-btn > span,.install-button > span,.oauth-btn > span,.mobile-tabbar a span,.link-chip,.badge{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  min-width:0!important;
}
.oauth-btn strong,.oauth-btn small{display:none!important}
.oauth-btn{white-space:nowrap!important;text-align:center!important;font-weight:900!important}
.oauth-btn span{display:block!important;line-height:1.1!important;font-size:13.5px!important;letter-spacing:-.015em!important}
@media (min-width:961px){
  body.auth-route .pro-auth.clean-auth-card{width:min(100%,520px)!important;max-width:520px!important;padding:30px!important;gap:18px!important}
  body.auth-route .pro-auth .auth-logo{margin-bottom:2px!important;text-align:left!important}
  body.auth-route .pro-auth .auth-logo h1{
    display:inline-flex!important;
    align-items:center!important;
    min-height:48px!important;
    margin:0!important;
    font-size:36px!important;
    font-weight:850!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
    color:transparent!important;
    background:linear-gradient(135deg,var(--heading),#1d4ed8 54%,#0ea5e9)!important;
    -webkit-background-clip:text!important;
    background-clip:text!important;
  }
  body.auth-route .pro-auth .auth-logo h1::after{
    content:"";
    width:10px;
    height:10px;
    margin-left:10px;
    border-radius:999px;
    background:var(--grad);
    box-shadow:0 8px 18px rgba(37,99,235,.22);
  }
  body.auth-route .pro-auth .oauth-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body.auth-route .pro-auth .oauth-btn{height:50px!important;min-height:50px!important;padding:0 16px!important;border-radius:17px!important}
  body.auth-route .pro-auth .form{gap:15px!important}
  body.auth-route .pro-auth .form label{gap:7px!important}
  body.auth-route .pro-auth .form input{height:50px!important;min-height:50px!important;max-height:50px!important}
  body.auth-route .pro-auth .form .btn{height:52px!important;min-height:52px!important;max-height:52px!important;font-size:14px!important;border-radius:17px!important}
}
@media (max-width:960px){
  body.auth-route .pro-auth .auth-logo h1{font-size:34px!important;font-weight:850!important;letter-spacing:-.045em!important;line-height:1.02!important}
  body.auth-route .pro-auth .oauth-btn{height:50px!important;min-height:50px!important}
  body.auth-route .pro-auth .oauth-btn span{font-size:13px!important}
}
@media (max-width:420px){
  .btn > span,.link-btn > span,.install-button > span,.oauth-btn > span{font-size:12.5px!important}
}


/* v37: one-line UI controls and softer auth titles */
/* Turn common two-line controls into single clean rows */
.nav-link small,
.oauth-btn small,
.oauth-btn strong + small,
.sidebar-actions small,
.copy-tile small.action-subtitle,
.link-btn small,
.btn small.control-subtitle{display:none!important}
.nav-link{min-height:46px!important;gap:10px!important;padding-top:9px!important;padding-bottom:9px!important}
.nav-link span{display:flex!important;align-items:center!important;min-width:0!important;line-height:1!important}
.nav-link b{font-size:13.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.btn,.link-btn,.install-button,.oauth-btn{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.btn span,.link-btn span,.install-button span,.oauth-btn span{display:inline-flex!important;align-items:center!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.2!important}
.oauth-btn{height:48px!important;min-height:48px!important;padding:10px 16px!important;border-radius:17px!important;font-weight:900!important}
.oauth-btn span{font-size:14px!important;font-weight:900!important;color:#334155!important}
.oauth-btn.oauth-pending{opacity:.45!important;pointer-events:none!important}

body.auth-route .pro-auth.clean-auth-card{padding:26px!important;border-radius:28px!important;gap:18px!important}
body.auth-route .pro-auth .auth-logo.auth-title-modern{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;margin:0 0 2px!important}
body.auth-route .auth-title-icon{width:44px!important;height:44px!important;border-radius:16px!important;display:inline-grid!important;place-items:center!important;background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(124,58,237,.13),rgba(6,182,212,.12))!important;border:1px solid rgba(37,99,235,.14)!important;color:var(--primary)!important;box-shadow:0 12px 26px rgba(37,99,235,.08)!important;flex:0 0 auto!important}
body.auth-route .auth-title-icon svg,body.auth-route .auth-title-icon i{width:20px!important;height:20px!important}
body.auth-route .pro-auth .auth-logo h1{font-size:clamp(28px,3vw,36px)!important;line-height:1.08!important;letter-spacing:-.045em!important;margin:0!important;background:linear-gradient(135deg,#0f172a 0%,#2563eb 58%,#06b6d4 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
body.auth-route .pro-auth .oauth-grid{gap:10px!important;margin:0!important}
body.auth-route .pro-auth .oauth-btn{height:48px!important;min-height:48px!important;max-height:48px!important}
body.auth-route .pro-auth .form{gap:13px!important}
body.auth-route .pro-auth .form label{font-size:13px!important;gap:7px!important}
body.auth-route .pro-auth .form input{height:48px!important;min-height:48px!important;max-height:48px!important;border-radius:17px!important}
body.auth-route .pro-auth .form .btn{height:50px!important;min-height:50px!important;max-height:50px!important;border-radius:17px!important}
body.auth-route .pro-auth .auth-links{font-size:14px!important;margin-top:0!important}
@media (min-width:961px){
  body.auth-route .pro-auth.clean-auth-card{width:min(100%,520px)!important;max-width:520px!important}
  body.auth-route .container,body.auth-route .admin-content{place-items:center!important}
}
@media (max-width:720px){
  body.auth-route .pro-auth.clean-auth-card{padding:22px 18px!important;gap:16px!important}
  body.auth-route .auth-title-icon{width:40px!important;height:40px!important;border-radius:14px!important}
  body.auth-route .pro-auth .auth-logo h1{font-size:clamp(27px,8vw,34px)!important}
}


/* v40 premium landing page + visible header buttons */
html[data-ui="neoglass-install"]{scroll-behavior:smooth;scroll-padding-top:112px}
.neo-install-body{background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 48%,#f8fbff 100%)!important}
.install-site-header{top:12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:12px 14px!important;border-radius:30px!important;background:rgba(255,255,255,.9)!important;border:1px solid rgba(220,230,243,.95)!important;box-shadow:0 18px 55px rgba(15,23,42,.12)!important;z-index:80!important}
.install-brand{flex:0 1 auto!important;min-width:0!important}.install-brand strong{max-width:260px!important}.install-brand small{letter-spacing:.08em!important}
.install-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important}
.install-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:112px!important;min-height:44px!important;padding:10px 13px!important;border-radius:17px!important;background:#fff!important;border:1px solid var(--line)!important;color:#334155!important;box-shadow:var(--shadow-tiny)!important;font-size:12.5px!important;font-weight:900!important;white-space:nowrap!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;text-decoration:none!important;line-height:1.2!important}
.install-nav a span{display:inline-flex!important;align-items:center!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;opacity:1!important;visibility:visible!important;max-width:none!important;color:inherit!important}
.install-nav a i,.install-nav a svg{display:block!important;width:17px!important;height:17px!important;flex:0 0 17px!important;color:var(--primary)!important;margin:0!important;opacity:1!important;visibility:visible!important}
.install-nav a:hover,.install-nav a.active{background:var(--grad)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 15px 34px rgba(37,99,235,.24)!important;transform:translateY(-1px)}
.install-nav a:hover i,.install-nav a:hover svg,.install-nav a.active i,.install-nav a.active svg{color:#fff!important}
.install-modern-wrap{gap:clamp(20px,3vw,42px)!important;align-items:start!important;padding-top:clamp(18px,3vw,38px)!important}
.install-hero-panel{border-radius:36px!important;border:1px solid rgba(220,230,243,.98)!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(241,247,255,.94))!important;box-shadow:0 26px 80px rgba(15,23,42,.14)!important;overflow:hidden!important}
.install-hero-panel .app-icon{box-shadow:0 22px 48px rgba(37,99,235,.18)!important;border:1px solid rgba(220,230,243,.95)!important}
.install-hero-panel h1{font-size:clamp(34px,5vw,60px)!important;line-height:1.02!important;letter-spacing:-.075em!important;margin:8px 0 12px!important;color:#07111f!important}
.install-hero-panel .subtitle{font-size:clamp(14.5px,1.6vw,18px)!important;line-height:1.75!important;color:#526174!important;max-width:680px!important}
.install-actions{scroll-margin-top:130px!important;display:grid!important;grid-template-columns:1fr!important;gap:13px!important;margin:22px 0 16px!important}
.install-actions .install-button{min-height:58px!important;border-radius:21px!important;font-size:15px!important;box-shadow:0 18px 42px rgba(37,99,235,.18)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.install-actions .install-button span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.install-actions .install-button.secondary{background:#fff!important;box-shadow:var(--shadow-tiny)!important}
.install-pro .install-trust-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:18px 0 0!important}
.install-pro .install-trust-row a{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:54px!important;padding:13px!important;border:1px solid var(--line)!important;border-radius:19px!important;background:#fff!important;color:#334155!important;font-size:12.5px!important;font-weight:900!important;box-shadow:var(--shadow-tiny)!important;white-space:normal!important;line-height:1.35!important;text-align:center!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.install-pro .install-trust-row a span{display:inline!important;opacity:1!important;visibility:visible!important;color:inherit!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
.install-pro .install-trust-row a i,.install-pro .install-trust-row a svg{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;color:var(--primary)!important;margin:0!important}
.install-pro .install-trust-row a:hover,.install-pro .install-trust-row a.active{color:var(--primary)!important;border-color:rgba(37,99,235,.28)!important;transform:translateY(-1px)!important;box-shadow:0 14px 34px rgba(37,99,235,.12)!important}
.install-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:18px!important}
.install-meta-grid span{display:flex!important;align-items:center!important;gap:10px!important;padding:13px 14px!important;border-radius:18px!important;background:#fff!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-tiny)!important;color:#334155!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.45!important}
.install-info-card{border-radius:36px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 24px 70px rgba(15,23,42,.10)!important}
.install-description{border-radius:24px!important;background:linear-gradient(145deg,#fff,#f6faff)!important;border:1px solid var(--line)!important;color:#475569!important}
.install-guide-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-top:22px!important}
.install-guide-grid article{scroll-margin-top:130px!important;min-height:178px!important;display:flex!important;flex-direction:column!important;gap:8px!important;padding:20px!important;border-radius:26px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-tiny)!important}
.install-guide-grid article i,.install-guide-grid article svg{width:24px!important;height:24px!important;color:var(--primary)!important}
.install-guide-grid article h3{margin:8px 0 0!important;font-size:18px!important;letter-spacing:-.035em!important;color:#07111f!important}
.install-guide-grid article p{margin:0!important;color:#64748b!important;font-size:14px!important;line-height:1.72!important}
.modern-link-panel{border-radius:24px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important;overflow:hidden!important}.link-value{overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important}
.install-footer{border-radius:30px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 18px 48px rgba(15,23,42,.10)!important}
@media (max-width:960px){
  html[data-ui="neoglass-install"]{scroll-padding-top:138px}
  .install-site-header{width:calc(100% - 20px)!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;top:8px!important;padding:10px!important;border-radius:24px!important}
  .install-brand{width:100%!important;justify-content:center!important}.install-brand strong{max-width:72vw!important;text-align:center!important}
  .install-nav{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .install-nav a{min-width:0!important;width:100%!important;padding:10px 8px!important;font-size:12px!important;border-radius:16px!important}.install-nav a span{display:inline-flex!important}
  .install-modern-wrap{padding-top:18px!important}.install-hero-panel{text-align:center!important}.install-hero-panel .subtitle{margin-left:auto!important;margin-right:auto!important}.install-hero-panel .eyebrow{justify-content:center!important}
  .install-actions{scroll-margin-top:150px!important}.install-info-card{order:2!important}.install-guide-grid article{scroll-margin-top:150px!important}
}
@media (max-width:720px){
  .install-hero-panel,.install-info-card{border-radius:28px!important}.install-hero-panel h1{font-size:clamp(30px,10vw,42px)!important}.install-actions .install-button{min-height:56px!important}.install-pro .install-trust-row{grid-template-columns:1fr!important}.install-meta-grid{grid-template-columns:1fr!important}.install-guide-grid{grid-template-columns:1fr!important}.install-guide-grid article{min-height:auto!important}.install-footer{text-align:left!important}
}
@media (max-width:420px){
  .install-nav{display:grid!important}.install-nav a{font-size:11px!important;padding:9px 6px!important;min-height:42px!important}.install-nav a i,.install-nav a svg{display:none!important}.install-site-header{width:calc(100% - 16px)!important}.install-modern-wrap,.install-footer{width:calc(100% - 16px)!important}
}


/* v41: Landing/App sign progress full green bar + readable percent */
.sign-progress-box.app-sign-progress-card{width:100%!important;min-width:220px!important;max-width:100%!important;display:block!important;overflow:visible!important}
.sign-progress-box.app-sign-progress-card .progress-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
.sign-progress-box.app-sign-progress-card .progress-head span{min-width:0!important;overflow-wrap:anywhere!important;line-height:1.45!important}
.sign-progress-box.app-sign-progress-card .progress-head b,
.sign-progress-box [data-sign-percent]{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;min-width:46px!important;white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;color:#0f172a!important;font-weight:900!important}
.sign-progress-box .progress-track.sign-progress-track,
.sign-progress-box .progress-track{height:13px!important;background:#e8eef6!important;border-radius:999px!important;position:relative!important;overflow:hidden!important}
.sign-progress-box .progress-track [data-sign-bar]{display:block!important;height:100%!important;width:var(--sign-progress-width,0%)!important;min-width:0!important;border-radius:999px!important;background:linear-gradient(90deg,#2563eb 0%,#06b6d4 62%,#22c55e 100%)!important;box-shadow:0 0 18px rgba(34,197,94,.28)!important;transition:width .28s ease!important}
.sign-progress-box:not(.failed):not(.complete) .progress-track [data-sign-bar]::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:signProgressSweep 1.25s linear infinite}
.sign-progress-box.failed .progress-track [data-sign-bar]{background:linear-gradient(90deg,#fb7185,#e11d48)!important}
.sign-progress-box.complete .progress-track [data-sign-bar]{background:linear-gradient(90deg,#16a34a,#22c55e)!important}
@media (max-width:720px){
  table td[data-label="Ký"]{display:grid!important;grid-template-columns:1fr!important;text-align:left!important;gap:10px!important}
  table td[data-label="Ký"]::before{max-width:100%!important;flex:auto!important}
  table td[data-label="Ký"] .sign-progress-box{width:100%!important;min-width:0!important}
}


/* v42: Apps certificate picker, smoother landing buttons, settings image upload */
.landing-open-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border-radius:15px;border:1px solid rgba(37,99,235,.18);background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(255,255,255,.96));color:var(--primary);font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 8px 20px rgba(37,99,235,.07)}
.landing-open-btn:hover{transform:translateY(-1px);border-color:rgba(37,99,235,.34);box-shadow:0 12px 28px rgba(37,99,235,.12);color:#1d4ed8}
.landing-open-btn svg,.landing-open-btn i{width:16px;height:16px;flex:0 0 16px}
.app-row-actions{align-items:center;gap:10px!important;flex-wrap:wrap}.inline-resign-form{display:inline-flex;align-items:center;gap:8px;margin:0;min-width:min(100%,360px)}.compact-cert-select{min-height:42px;min-width:170px;max-width:260px;border-radius:14px;border:1px solid var(--line);padding:9px 12px;background:#fff;color:#334155;font-size:12px;font-weight:800;outline:none}.compact-cert-select:focus{border-color:rgba(37,99,235,.5);box-shadow:var(--ring)}
.setting-image-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;padding:12px;border:1px dashed var(--line-strong);border-radius:16px;background:#f8fbff}.setting-image-upload img{width:74px;height:54px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid var(--line);padding:5px}.setting-image-upload input[type=file]{width:min(100%,260px);min-height:40px;background:#fff}.setting-image-upload small{flex:1 1 240px;line-height:1.5}
.setting-field small b,.setting-check small b{color:#334155}.settings-grid .setting-field{gap:10px}.settings-grid textarea{line-height:1.55}
.landing-form input[type=file],.settings-panel input[type=file]{padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px}
@media (max-width:720px){.inline-resign-form{width:100%;display:grid;grid-template-columns:1fr}.compact-cert-select{width:100%;max-width:none}.landing-open-btn{width:100%}.app-row-actions{display:grid!important;grid-template-columns:1fr}.setting-image-upload{align-items:flex-start}.setting-image-upload img{width:64px;height:48px}}


/* v45: System log clear buttons */
.system-log-clear-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.system-log-clear-actions form{margin:0;display:inline-flex}
.system-log-clear-actions .btn{white-space:nowrap}
@media (max-width:720px){.system-log-clear-actions{width:100%;justify-content:stretch}.system-log-clear-actions form,.system-log-clear-actions .btn{width:100%}}


/* v47: compact landing/app list and random landing slug display */
.app-list-compact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px}
.app-compact-card{display:flex;flex-direction:column;gap:16px;padding:18px!important;min-height:0!important}
.app-compact-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.app-compact-title{min-width:0;display:flex;flex-direction:column;gap:5px}
.app-compact-title strong{font-size:20px;line-height:1.2;color:var(--heading);overflow-wrap:anywhere}
.app-compact-title span{font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.app-compact-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-compact-meta span{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:16px;background:#f8fbff}
.app-compact-meta b{font-size:11px;color:var(--soft);text-transform:uppercase;letter-spacing:.08em}
.app-compact-meta small{font-size:12px;color:#334155;line-height:1.45;overflow-wrap:anywhere}
.app-compact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-compact-actions > *{width:100%;min-height:44px}
.app-compact-resign{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0;align-items:center}
.app-compact-resign select{min-height:46px;border-radius:16px;border:1px solid var(--line);padding:10px 12px;background:#fff;color:#334155;font-weight:800;min-width:0;width:100%}
.app-compact-delete{margin:0}.app-compact-delete .link-btn{width:100%}
@media (max-width:720px){
  .app-list-compact-grid{grid-template-columns:1fr;gap:14px}
  .app-compact-card{padding:16px!important;gap:14px}
  .app-compact-head{flex-direction:column;align-items:stretch}
  .app-compact-meta{grid-template-columns:1fr}
  .app-compact-actions{grid-template-columns:1fr 1fr}.app-compact-actions .btn{grid-column:1/-1}
  .app-compact-resign{grid-template-columns:1fr}.app-compact-resign .btn{width:100%}
}
.install-pro .phone-card{overflow:hidden}
.install-pro .app-icon{width:96px;height:96px;border-radius:26px;margin-bottom:14px}
.install-pro .app-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.install-pro .landing-hero-card h1{font-size:clamp(34px,5.4vw,62px);line-height:1.03;margin:8px 0 12px}
.install-pro .subtitle{font-size:clamp(15px,2vw,20px);line-height:1.62;margin-bottom:14px}
.install-pro .install-trust-row,.install-pro .modern-link-panel.manifest-panel{display:none!important}
.install-pro .install-meta-grid{grid-template-columns:1fr 1fr!important;gap:10px;margin-top:14px}
.install-pro .install-meta-grid span{min-height:48px;padding:11px 12px;font-size:12px;line-height:1.35}
.install-pro .modern-link-panel{margin-top:14px;padding:14px;border-radius:20px}
.install-pro .link-value{font-size:12px;line-height:1.45;padding:11px 12px;max-height:70px;overflow:auto}
.install-pro .install-info-card{padding:18px!important}
.install-pro .install-description{font-size:14px;line-height:1.65}
.install-pro .install-guide-grid{grid-template-columns:1fr!important;gap:10px;margin-top:14px}
.install-pro .install-guide-grid article{padding:14px;border-radius:18px}
.install-pro .install-guide-grid article h3{font-size:15px;margin:8px 0 5px}
.install-pro .install-guide-grid article p{font-size:13px;line-height:1.55}
@media (max-width:720px){
  .install-pro .landing-hero-card{padding:22px 18px!important;border-radius:30px}
  .install-pro .app-icon{width:84px;height:84px;border-radius:23px}
  .install-pro .landing-hero-card h1{font-size:clamp(32px,10vw,44px)}
  .install-pro .subtitle{font-size:15px;line-height:1.55}
  .install-pro .install-meta-grid{grid-template-columns:1fr!important}
  .install-pro .modern-link-panel{display:none!important}
}


/* v48: compact install landing header */
.install-site-header{
  top:8px!important;
  width:min(calc(100% - 20px),var(--install-max))!important;
  margin:8px auto 0!important;
  padding:8px 10px!important;
  border-radius:22px!important;
  gap:10px!important;
  min-height:0!important;
  box-shadow:0 12px 34px rgba(15,23,42,.10)!important;
}
.install-site-header .install-brand-icon{
  width:38px!important;
  height:38px!important;
  border-radius:14px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
}
.install-site-header .install-brand{
  gap:9px!important;
  min-width:0!important;
}
.install-site-header .install-brand strong{
  max-width:220px!important;
  font-size:14px!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
}
.install-site-header .install-brand small{
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1!important;
}
.install-site-header .install-nav{
  display:flex!important;
  grid-template-columns:none!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  overflow:visible!important;
  max-width:none!important;
}
.install-site-header .install-nav a{
  min-width:0!important;
  width:auto!important;
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:14px!important;
  gap:6px!important;
  font-size:11.5px!important;
  line-height:1.1!important;
  box-shadow:0 7px 18px rgba(15,23,42,.055)!important;
}
.install-site-header .install-nav a i,
.install-site-header .install-nav a svg{
  display:block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.install-site-header .install-nav a span{
  display:inline-flex!important;
  white-space:nowrap!important;
  font-size:inherit!important;
  line-height:1.1!important;
}
.install-modern-wrap{padding-top:clamp(12px,2vw,24px)!important;}
@media (max-width:860px){
  .install-site-header{
    width:calc(100% - 16px)!important;
    margin-top:8px!important;
    padding:8px!important;
    border-radius:22px!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:8px!important;
  }
  .install-site-header .install-brand{
    width:100%!important;
    justify-content:center!important;
  }
  .install-site-header .install-brand-icon{
    width:34px!important;
    height:34px!important;
    border-radius:13px!important;
  }
  .install-site-header .install-brand strong{
    max-width:68vw!important;
    font-size:14px!important;
    text-align:left!important;
  }
  .install-site-header .install-brand small{font-size:8.5px!important;}
  .install-site-header .install-nav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .install-site-header .install-nav a{
    width:100%!important;
    min-height:36px!important;
    padding:7px 6px!important;
    border-radius:14px!important;
    font-size:11px!important;
  }
  .install-site-header .install-nav a i,
  .install-site-header .install-nav a svg{
    display:block!important;
    width:13px!important;
    height:13px!important;
    flex-basis:13px!important;
  }
  .install-site-header .install-nav a span{display:inline-flex!important;}
  .install-modern-wrap{padding-top:10px!important;}
}
@media (max-width:390px){
  .install-site-header{width:calc(100% - 12px)!important;padding:7px!important;gap:7px!important;}
  .install-site-header .install-nav{gap:6px!important;}
  .install-site-header .install-nav a{font-size:10.5px!important;padding:7px 4px!important;gap:4px!important;}
  .install-site-header .install-nav a i,
  .install-site-header .install-nav a svg{width:12px!important;height:12px!important;flex-basis:12px!important;}
}


/* v49: install page header uses system icon + three horizontal icon buttons */
.install-site-header.install-icon-header{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  width:min(calc(100% - 20px),720px)!important;
  margin:8px auto 0!important;
  padding:8px!important;
  border-radius:24px!important;
  min-height:0!important;
}
.install-system-mark{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:16px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
  padding:4px!important;
  color:var(--primary)!important;
}
.install-system-mark img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:12px!important;
  display:block!important;
}
.install-site-header.install-icon-header .install-brand{display:none!important;}
.install-site-header.install-icon-header .install-icon-nav{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:center!important;
  gap:8px!important;
  overflow:visible!important;
}
.install-site-header.install-icon-header .install-icon-nav a{
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  padding:9px 10px!important;
  border-radius:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  color:#334155!important;
  box-shadow:0 9px 20px rgba(15,23,42,.055)!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
.install-site-header.install-icon-header .install-icon-nav a i,
.install-site-header.install-icon-header .install-icon-nav a svg{
  display:block!important;
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
  color:var(--primary)!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
}
.install-site-header.install-icon-header .install-icon-nav a span{
  display:inline-flex!important;
  align-items:center!important;
  max-width:none!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  color:inherit!important;
  font-size:inherit!important;
}
.install-site-header.install-icon-header .install-icon-nav a:hover,
.install-site-header.install-icon-header .install-icon-nav a.active{
  background:var(--grad)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 14px 32px rgba(37,99,235,.20)!important;
  transform:translateY(-1px)!important;
}
.install-site-header.install-icon-header .install-icon-nav a:hover i,
.install-site-header.install-icon-header .install-icon-nav a:hover svg,
.install-site-header.install-icon-header .install-icon-nav a.active i,
.install-site-header.install-icon-header .install-icon-nav a.active svg{color:#fff!important;}
@media (max-width:720px){
  .install-site-header.install-icon-header{
    width:calc(100% - 16px)!important;
    padding:7px!important;
    gap:7px!important;
    border-radius:22px!important;
    top:7px!important;
  }
  .install-system-mark{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    border-radius:15px!important;
    padding:4px!important;
  }
  .install-site-header.install-icon-header .install-icon-nav{gap:6px!important;}
  .install-site-header.install-icon-header .install-icon-nav a{
    min-height:40px!important;
    padding:8px 6px!important;
    border-radius:14px!important;
    gap:5px!important;
    font-size:11px!important;
  }
  .install-site-header.install-icon-header .install-icon-nav a i,
  .install-site-header.install-icon-header .install-icon-nav a svg{
    width:15px!important;
    height:15px!important;
    flex-basis:15px!important;
  }
}
@media (max-width:390px){
  .install-site-header.install-icon-header{width:calc(100% - 12px)!important;gap:5px!important;padding:6px!important;}
  .install-system-mark{width:36px!important;height:36px!important;min-width:36px!important;border-radius:13px!important;}
  .install-site-header.install-icon-header .install-icon-nav{gap:5px!important;}
  .install-site-header.install-icon-header .install-icon-nav a{font-size:10px!important;padding:7px 4px!important;gap:4px!important;min-height:37px!important;}
  .install-site-header.install-icon-header .install-icon-nav a i,
  .install-site-header.install-icon-header .install-icon-nav a svg{width:13px!important;height:13px!important;flex-basis:13px!important;}
}


/* v49b: system icon, three nav icon buttons and update time in one row */
.install-site-header.install-icon-header{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  width:min(calc(100% - 18px),980px)!important;
  margin:8px auto 0!important;
  padding:8px!important;
  border-radius:24px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
.install-site-header.install-icon-header::-webkit-scrollbar{display:none!important}
.install-site-header.install-icon-header .install-icon-nav{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  gap:8px!important;
  overflow:visible!important;
}
.install-site-header.install-icon-header .install-icon-nav a{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:42px!important;
  padding:9px 12px!important;
  border-radius:16px!important;
  font-size:12px!important;
}
.install-updated-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  flex:0 0 auto!important;
  min-height:42px!important;
  padding:9px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.93)!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  box-shadow:0 9px 20px rgba(15,23,42,.055)!important;
}
.install-updated-pill i,.install-updated-pill svg{
  display:block!important;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  color:var(--primary)!important;
}
@media (max-width:720px){
  .install-site-header.install-icon-header{width:calc(100% - 14px)!important;gap:6px!important;padding:7px!important;justify-content:flex-start!important;flex-wrap:nowrap!important}
  .install-site-header.install-icon-header .install-icon-nav{gap:6px!important}
  .install-site-header.install-icon-header .install-icon-nav a{min-height:39px!important;padding:8px 9px!important;font-size:11px!important;gap:5px!important}
  .install-updated-pill{min-height:39px!important;padding:8px 10px!important;font-size:11px!important;gap:5px!important}
  .install-updated-pill i,.install-updated-pill svg{width:14px!important;height:14px!important;flex-basis:14px!important}
}
@media (max-width:420px){
  .install-site-header.install-icon-header .install-icon-nav a{font-size:10.5px!important;padding:8px 8px!important}
  .install-updated-pill{font-size:10.5px!important;padding:8px 9px!important}
}


/* v51: landing footer minimal + nicer app info + no certificate sign on landing forms */
.install-info-modern{display:flex;flex-direction:column;gap:18px;min-width:0}
.install-info-title h2{margin:6px 0 0;font-size:clamp(24px,3vw,38px);letter-spacing:-.055em;color:var(--heading)}
.install-info-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.install-info-meta span{display:flex;flex-direction:column;gap:7px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#fff,#f7fbff);box-shadow:var(--shadow-tiny)}
.install-info-meta i{width:22px;height:22px;color:var(--primary)}
.install-info-meta b{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.install-info-meta small{font-size:14px;font-weight:850;color:var(--heading);line-height:1.5;overflow-wrap:anywhere}
.install-info-modern .install-description{margin:0;padding:18px;border-radius:22px;background:#fbfdff;border:1px solid var(--line);font-size:15px;line-height:1.85;color:#475569}
.install-footer-minimal{display:flex;align-items:center;justify-content:space-between;gap:14px}
.install-footer-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--heading);font-weight:900}
.install-footer-brand img{width:34px;height:34px;border-radius:12px;object-fit:cover;border:1px solid var(--line);background:#fff}
.install-footer-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
.install-footer-minimal nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.install-footer-minimal nav a{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#334155;font-size:12px;font-weight:900}
@media (max-width:720px){.install-info-meta{grid-template-columns:1fr}.install-footer-minimal{align-items:flex-start;flex-direction:column}.install-footer-minimal nav{width:100%;justify-content:flex-start}.install-footer-minimal nav a{flex:1 1 120px}.install-footer-brand span{max-width:78vw}}


/* v53: landing page uses one readable card instead of two panels */
.install-onepage-wrap{display:block!important;width:min(calc(100% - 28px),980px)!important;margin:18px auto 0!important;padding:0!important}
.install-onepage-card{width:100%!important;max-width:980px!important;margin:0 auto!important;padding:clamp(22px,4vw,42px)!important;border-radius:36px!important;text-align:left!important;display:flex!important;flex-direction:column!important;gap:clamp(18px,2.4vw,28px)!important;background:rgba(255,255,255,.96)!important;box-shadow:0 26px 80px rgba(15,23,42,.12)!important}
.install-onepage-card .install-hero-glow{right:-90px!important;top:-90px!important}
.onepage-app-head{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(16px,2.4vw,26px);min-width:0}
.onepage-app-head .app-icon{width:clamp(82px,11vw,128px)!important;height:clamp(82px,11vw,128px)!important;border-radius:28px!important;margin:0!important;box-shadow:0 18px 42px rgba(15,23,42,.13)!important;flex:0 0 auto!important}
.onepage-title-block{min-width:0}.onepage-title-block h1{margin:6px 0 10px!important;font-size:clamp(34px,6vw,64px)!important;line-height:1.02!important;letter-spacing:-.075em!important}.onepage-title-block .subtitle{max-width:680px!important;margin:0!important;text-align:left!important;font-size:clamp(15px,2vw,20px)!important;line-height:1.65!important}
.onepage-actions{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:14px!important;margin:0!important}.onepage-actions .install-button{min-height:60px!important;margin:0!important}
.onepage-info{position:relative;z-index:1;padding:18px!important;border:1px solid var(--line)!important;border-radius:26px!important;background:#fbfdff!important}.onepage-info .install-info-title{margin-bottom:12px!important}.onepage-meta{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:12px!important}.onepage-meta span{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:14px!important;border-radius:18px!important;background:#fff!important;border:1px solid var(--line)!important;min-width:0!important}.onepage-meta span i,.onepage-meta span svg{width:18px!important;height:18px!important;flex:0 0 18px!important;color:var(--primary)!important}.onepage-meta b{display:block!important;font-size:11px!important;color:var(--soft)!important;text-transform:uppercase!important;letter-spacing:.08em!important}.onepage-meta small{display:block!important;margin-top:4px!important;font-size:13px!important;color:#334155!important;font-weight:900!important;line-height:1.35!important;overflow-wrap:anywhere!important}.onepage-description{margin-top:14px!important;padding:14px 16px!important;border-radius:18px!important;background:#fff!important;border:1px solid var(--line)!important}
.onepage-guide{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0!important}.onepage-guide article{min-height:0!important;padding:16px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--line)!important}.onepage-guide article h3{font-size:15px!important;margin:10px 0 6px!important}.onepage-guide article p{font-size:13px!important;line-height:1.6!important}
.onepage-link-panel,.onepage-manifest-panel{display:flex!important;flex-direction:column!important;gap:12px!important;margin:0!important;padding:16px!important;border-radius:22px!important}.onepage-link-panel .link-value,.onepage-manifest-panel .link-value{max-height:none!important;overflow-wrap:anywhere!important;word-break:break-word!important}.onepage-note{margin:0!important;border-radius:20px!important}
@media (max-width:720px){
  .install-onepage-wrap{width:calc(100% - 16px)!important;margin-top:12px!important}.install-onepage-card{padding:20px 16px!important;border-radius:30px!important;gap:18px!important}.onepage-app-head{grid-template-columns:1fr!important;text-align:center!important;justify-items:center!important}.onepage-title-block h1{text-align:center!important;font-size:clamp(32px,10vw,48px)!important}.onepage-title-block .subtitle{text-align:center!important}.onepage-title-block .eyebrow{justify-content:center!important}.onepage-actions{grid-template-columns:1fr!important}.onepage-meta,.onepage-guide{grid-template-columns:1fr!important}.onepage-link-panel,.onepage-manifest-panel{display:none!important}.onepage-app-head .app-icon{width:96px!important;height:96px!important;border-radius:26px!important}
}


/* v57: keep desktop sidebar fixed while the right content scrolls */
@media (min-width:961px){
  html,body{overflow-x:hidden!important}
  .shell-layout{
    display:block!important;
    width:100%!important;
    max-width:100vw!important;
    min-height:100vh!important;
    padding:0!important;
    overflow:visible!important;
  }
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:var(--sidebar)!important;
    min-width:var(--sidebar)!important;
    max-width:var(--sidebar)!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    z-index:70!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    transform:none!important;
  }
  .shell-main{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:calc(100vw - var(--sidebar))!important;
    max-width:calc(100vw - var(--sidebar))!important;
    margin-left:var(--sidebar)!important;
    padding-left:0!important;
    overflow:visible!important;
  }
  .topbar{
    position:sticky!important;
    top:0!important;
    z-index:55!important;
    width:100%!important;
    max-width:100%!important;
  }
  .container,.container.admin-content,.admin-content{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.sidebar-collapsed .shell-main{
    margin-left:0!important;
    width:100vw!important;
    max-width:100vw!important;
  }
  body.sidebar-collapsed .sidebar{
    left:0!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateX(-24px)!important;
  }
  body.auth-route .shell-layout{display:block!important;padding:0!important}
  body.auth-route .sidebar{display:flex!important;position:fixed!important}
  body.auth-route .shell-main{margin-left:var(--sidebar)!important;width:calc(100vw - var(--sidebar))!important;max-width:calc(100vw - var(--sidebar))!important}
  body.auth-route.sidebar-collapsed .shell-main{margin-left:0!important;width:100vw!important;max-width:100vw!important}
}


/* v58: đồng bộ giao diện trang quản trị giống trang người dùng */
.admin-route .admin-content > .card{overflow:visible}
.admin-route .table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
.admin-route .table-wrap table{width:100%!important;min-width:0!important;border-collapse:separate!important;border-spacing:0!important}
.admin-route .table-wrap thead{display:none!important}
.admin-route .table-wrap tbody{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))!important;gap:16px!important}
.admin-route .grid.two .table-wrap tbody,.admin-route .settings-shell .table-wrap tbody{grid-template-columns:1fr!important}
.admin-route .table-wrap tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:18px!important;border:1px solid rgba(220,230,243,.96)!important;border-radius:24px!important;background:rgba(255,255,255,.97)!important;box-shadow:var(--shadow-tiny)!important;min-width:0!important;align-content:start!important}
.admin-route .table-wrap td{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:7px!important;padding:0!important;border:0!important;text-align:left!important;min-width:0!important;color:#334155!important;font-size:13px!important;line-height:1.55!important;word-break:normal!important;overflow-wrap:anywhere!important}
.admin-route .table-wrap td::before{content:attr(data-label);display:block;color:#94a3b8;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;line-height:1.2}
.admin-route .table-wrap td[colspan]{grid-column:1/-1!important;align-items:center!important;text-align:center!important;padding:20px!important}
.admin-route .table-wrap td[colspan]::before{display:none!important}
.admin-route .table-wrap td > strong{font-size:15px;color:var(--heading);line-height:1.35}
.admin-route .table-wrap td small{line-height:1.55;max-width:100%}
.admin-route .table-wrap .badge{max-width:100%;white-space:normal;text-align:left}
.admin-route .table-wrap code{white-space:normal;word-break:break-all;overflow-wrap:anywhere}
.admin-route .table-wrap .inline-form,.admin-route .admin-compact-form,.admin-route .banks-edit{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:10px!important;width:100%!important;align-items:stretch!important}
.admin-route .table-wrap .inline-form input,.admin-route .table-wrap .inline-form select,.admin-route .table-wrap .inline-form .btn,.admin-route .table-wrap .inline-form .link-btn{width:100%!important;min-width:0!important}
.admin-route .table-wrap .row-actions,.admin-route .table-wrap .admin-user-actions{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}
.admin-route .table-wrap .link-cell,.admin-route .table-wrap .link-stack{gap:10px!important}
.admin-route .system-log-tail{max-height:520px;overflow:auto!important}
.admin-route .metric{min-height:132px}
@media (max-width:720px){
  .admin-route .table-wrap tbody{grid-template-columns:1fr!important;gap:14px!important}
  .admin-route .table-wrap tr{grid-template-columns:1fr!important;padding:16px!important;border-radius:22px!important}
  .admin-route .table-wrap td{font-size:13.5px!important}
  .admin-route .table-wrap .inline-form,.admin-route .admin-compact-form,.admin-route .banks-edit{grid-template-columns:1fr!important}
}


/* v59: compact trang cài cards + admin filter/search style */
.app-list-compact-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr))!important;gap:16px!important;align-items:start!important}
.app-compact-card{gap:12px!important;padding:16px!important;min-height:auto!important;align-self:start!important}
.app-compact-head{gap:10px!important}.app-compact-title strong{font-size:18px!important}.app-compact-title span{font-size:12.5px!important;line-height:1.35!important}
.app-compact-meta-line{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important}
.app-compact-meta-line span{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;min-height:36px!important;padding:8px 10px!important;border-radius:14px!important;background:#f8fbff!important;border:1px solid var(--line)!important;box-shadow:none!important;flex:1 1 150px!important;max-width:100%!important}
.app-compact-meta-line i,.app-compact-meta-line svg{width:15px!important;height:15px!important;flex:0 0 15px!important;color:var(--primary)!important}.app-compact-meta-line small{font-size:12px!important;line-height:1.35!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;min-width:0!important}.app-compact-meta-line b{display:none!important}
.app-compact-actions-short{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-top:2px!important}.app-compact-actions-short > *,.app-compact-actions-short .link-btn,.app-compact-actions-short .btn,.app-compact-actions-short .landing-open-btn{min-height:40px!important;width:100%!important;border-radius:15px!important}.app-compact-actions-short form{margin:0!important;display:block!important}.app-compact-actions-short .link-btn,.app-compact-actions-short .btn{padding:8px 10px!important;font-size:12px!important}
@media (max-width:720px){.app-compact-card{padding:14px!important}.app-compact-meta-line span{flex:1 1 100%!important}.app-compact-actions-short{grid-template-columns:1fr 1fr!important}.app-compact-actions-short form{grid-column:1/-1!important}.app-compact-actions-short form .link-btn{width:100%!important}}

.admin-filter-panel{position:relative;margin:0 0 22px!important;padding:0!important;border:1px solid rgba(132,204,22,.25)!important;border-radius:24px!important;background:linear-gradient(135deg,#0b160b,#121f0c 58%,#18240e)!important;box-shadow:0 22px 58px rgba(15,23,42,.18)!important;overflow:hidden!important;color:#eaf7d7!important}
.admin-filter-panel::before{content:"";position:absolute;inset:-60px auto auto -60px;width:220px;height:220px;background:radial-gradient(circle,rgba(132,204,22,.14),transparent 70%);pointer-events:none}.admin-filter-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid rgba(132,204,22,.22)}.admin-filter-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:900;color:#f8ffe9}.admin-filter-title i,.admin-filter-title svg{width:19px;height:19px;color:#d9f99d}.admin-filter-body{position:relative;display:grid;grid-template-columns:minmax(260px,1fr) minmax(160px,.32fr) auto;gap:14px;padding:18px}.admin-filter-field{display:flex;flex-direction:column;gap:8px;min-width:0}.admin-filter-field label{font-size:11px;font-weight:900;color:#96a884;text-transform:uppercase;letter-spacing:.08em}.admin-filter-field input,.admin-filter-field select{width:100%;min-height:46px;border-radius:14px;border:1px solid rgba(132,204,22,.35);background:#0f1a0b;color:#f8ffe9;padding:11px 13px;outline:none}.admin-filter-field input::placeholder{color:#8b9a7a}.admin-filter-field input:focus,.admin-filter-field select:focus{box-shadow:0 0 0 4px rgba(132,204,22,.16);border-color:#a3e635}.admin-filter-actions{display:flex;align-items:end;gap:10px}.admin-filter-actions .btn{min-height:46px;background:linear-gradient(135deg,#a3e635,#d9f99d)!important;color:#18240e!important;border-color:transparent!important;box-shadow:0 12px 28px rgba(132,204,22,.18)!important}.admin-filter-count{font-size:12px;font-weight:800;color:#b7caa5;white-space:nowrap}.admin-filter-empty{display:none;margin:12px 0 0;padding:16px;border-radius:18px;background:#fff;border:1px dashed var(--line-strong);color:var(--muted);text-align:center;font-weight:800}.admin-filter-empty.show{display:block}
.admin-route .page-head + .admin-filter-panel{margin-top:0!important}.admin-route .admin-content > .admin-filter-panel + *{margin-top:22px!important}
@media (max-width:860px){.admin-filter-body{grid-template-columns:1fr!important;padding:15px}.admin-filter-actions{align-items:stretch;flex-direction:column}.admin-filter-actions .btn{width:100%}.admin-filter-head{align-items:flex-start;flex-direction:column}.admin-filter-count{white-space:normal}}
@media (max-width:520px){.admin-filter-panel{border-radius:20px!important}.admin-filter-head{padding:14px}.admin-filter-body{padding:14px;gap:12px}.admin-filter-field input,.admin-filter-field select{min-height:44px}.admin-filter-title{font-size:15px}}


/* v60: white per-page filters + universal 10 item pagination */
.admin-filter-panel.admin-filter-panel-white{background:rgba(255,255,255,.96)!important;border:1px solid rgba(220,230,243,.98)!important;color:var(--text)!important;box-shadow:var(--shadow-soft)!important;border-radius:26px!important;overflow:hidden!important}
.admin-filter-panel.admin-filter-panel-white::before{background:radial-gradient(circle,rgba(37,99,235,.08),transparent 70%)!important}
.admin-filter-panel-white .admin-filter-head{border-bottom:1px solid var(--line)!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;padding:16px 18px!important}
.admin-filter-panel-white .admin-filter-title{color:var(--heading)!important;font-size:16px!important}
.admin-filter-panel-white .admin-filter-title i,.admin-filter-panel-white .admin-filter-title svg{color:var(--primary)!important}
.admin-filter-panel-white .admin-filter-body{display:grid!important;grid-template-columns:minmax(240px,1fr) repeat(auto-fit,minmax(170px,.35fr)) auto!important;gap:14px!important;padding:18px!important;background:#fff!important}
.admin-filter-panel-white .admin-filter-field-search{min-width:min(360px,100%)!important}
.admin-filter-panel-white .admin-filter-field label{color:#64748b!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.admin-filter-panel-white .admin-filter-field input,.admin-filter-panel-white .admin-filter-field select{background:#fff!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:16px!important;min-height:48px!important;padding:12px 14px!important;box-shadow:0 1px 0 rgba(15,23,42,.02)!important}
.admin-filter-panel-white .admin-filter-field input::placeholder{color:#94a3b8!important}
.admin-filter-panel-white .admin-filter-field input:focus,.admin-filter-panel-white .admin-filter-field select:focus{border-color:rgba(37,99,235,.48)!important;box-shadow:var(--ring)!important}
.admin-filter-panel-white .admin-filter-actions .btn{background:var(--grad)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 16px 34px rgba(37,99,235,.18)!important;min-height:48px!important}
.admin-filter-panel-white .admin-filter-count{color:#64748b!important}
.list-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0 4px;padding:12px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-tiny)}
.list-pagination [data-page-info]{font-size:13px;font-weight:900;color:#475569;min-width:150px;text-align:center}
.list-pagination .link-btn{min-height:40px!important;border-radius:15px!important}
.list-pagination .link-btn[disabled]{opacity:.45;pointer-events:none}
@media (max-width:860px){.admin-filter-panel-white .admin-filter-body{grid-template-columns:1fr!important;padding:15px!important}.admin-filter-panel-white .admin-filter-actions{align-items:stretch!important}.admin-filter-panel-white .admin-filter-actions .btn{width:100%!important}.list-pagination{gap:8px;padding:10px}.list-pagination [data-page-info]{order:-1;flex:1 1 100%;min-width:0}}

/* v61: search fix */
.admin-filter-panel-white .admin-filter-actions{display:flex!important;align-items:end!important;gap:10px!important;flex-wrap:wrap!important}
.admin-filter-panel-white .admin-filter-actions .btn{white-space:nowrap!important}
@media (max-width:860px){.admin-filter-panel-white .admin-filter-actions .btn{width:100%!important}}


/* v63: reliable admin search/filter + horizontal admin desktop */
.admin-route .is-filter-hidden,
.admin-route .is-page-hidden,
.admin-route [hidden]{display:none!important}
.admin-route .table-wrap tr.is-filter-hidden,
.admin-route .table-wrap tr.is-page-hidden,
.admin-route .table-wrap tr[hidden],
.admin-route .ipa-item-card.is-filter-hidden,
.admin-route .ipa-item-card.is-page-hidden,
.admin-route .admin-ipa-card.is-filter-hidden,
.admin-route .admin-ipa-card.is-page-hidden,
.admin-route .app-compact-card.is-filter-hidden,
.admin-route .app-compact-card.is-page-hidden{display:none!important}
.admin-search-section{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:end;grid-column:1/-1}
.admin-filter-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;grid-column:1/-1}
.admin-filter-panel-white .admin-filter-body{grid-template-columns:1fr!important}
.admin-inline-editor{width:100%}
.admin-inline-editor summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--primary);font-size:12px;font-weight:900;cursor:pointer;user-select:none}
.admin-inline-editor summary::-webkit-details-marker{display:none}
.admin-inline-editor[open] summary{margin-bottom:10px;background:var(--grad-soft);border-color:rgba(37,99,235,.22)}
.admin-inline-editor summary svg,.admin-inline-editor summary i{width:16px;height:16px;flex:0 0 16px}
.admin-inline-editor form,.admin-inline-editor .inline-form{margin-top:8px}
@media (min-width:961px){
  .admin-route .table-wrap{overflow:auto!important;border:1px solid var(--line)!important;border-radius:24px!important;background:#fff!important;box-shadow:var(--shadow-tiny)!important}
  .admin-route .table-wrap table{display:table!important;width:100%!important;min-width:980px!important;border-collapse:separate!important;border-spacing:0!important}
  .admin-route .table-wrap thead{display:table-header-group!important}
  .admin-route .table-wrap tbody{display:table-row-group!important}
  .admin-route .table-wrap tr{display:table-row!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .admin-route .table-wrap th,
  .admin-route .table-wrap td{display:table-cell!important;vertical-align:middle!important;padding:15px 16px!important;border-bottom:1px solid var(--line)!important;text-align:left!important;font-size:13px!important;line-height:1.55!important;white-space:normal!important;max-width:360px!important}
  .admin-route .table-wrap th{position:sticky;top:0;z-index:2;background:#f8fbff!important;color:#64748b!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
  .admin-route .table-wrap td::before{display:none!important;content:none!important}
  .admin-route .table-wrap tbody tr:hover td{background:#fbfdff!important}
  .admin-route .table-wrap td .row-actions,
  .admin-route .table-wrap td .admin-user-actions{display:flex!important;flex-direction:row!important;gap:8px!important;flex-wrap:wrap!important;width:auto!important}
  .admin-route .table-wrap td .btn.small,
  .admin-route .table-wrap td .link-btn{min-height:38px!important;padding:8px 11px!important;border-radius:14px!important}
  .admin-route .table-wrap td code{display:inline-block;max-width:280px;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle}
  .admin-route .table-wrap td small{display:inline-block;max-width:340px;white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:860px){
  .admin-search-section{grid-template-columns:1fr!important}
  .admin-filter-section{grid-template-columns:1fr!important}
}






/* BEGIN APPINSTALL STABLE LANDING ICON CSS */
.appinstall-stable-real-app-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 118px !important;
  height: 118px !important;
  min-width: 118px !important;
  min-height: 118px !important;
  max-width: 118px !important;
  max-height: 118px !important;
  object-fit: cover !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22) !important;
}

.appinstall-stable-real-app-icon-created {
  margin: 0 0 18px 0 !important;
}
/* END APPINSTALL STABLE LANDING ICON CSS */


/* BEGIN APPINSTALL PC ICON DECODE FIX CSS */
@media (min-width: 769px) {
  img[src*="/app-icon.php"],
  img.appinstall-stable-real-app-icon,
  img.appinstall-force-real-app-icon,
  .appinstall-stable-real-app-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 118px !important;
    height: 118px !important;
    min-width: 118px !important;
    min-height: 118px !important;
    max-width: 118px !important;
    max-height: 118px !important;
    object-fit: cover !important;
    border-radius: 28px !important;
    background-color: #fff !important;
  }
}
/* END APPINSTALL PC ICON DECODE FIX CSS */


/* BEGIN APPINSTALL MOBILE LOGOUT CSS */
.appinstall-mobile-logout-button {
  display: none !important;
}

@media (max-width: 768px) {
  .appinstall-mobile-logout-button {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 12px !important;
    z-index: 2147483000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(59, 130, 246, .25) !important;
    background: linear-gradient(135deg, #3157f6, #7c3aed, #06b6d4) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .28) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .appinstall-mobile-logout-button:active {
    transform: scale(.96) !important;
  }

  .appinstall-mobile-logout-icon {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .appinstall-mobile-logout-text {
    display: inline-block !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .appinstall-mobile-logout-button {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  .appinstall-mobile-logout-text {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .appinstall-mobile-logout-button {
    display: none !important;
  }
}
/* END APPINSTALL MOBILE LOGOUT CSS */

/* BEGIN APPINSTALL ADMIN USER STYLE SYNC V1 */
body.admin-route .admin-content{
  display:flex!important;
  flex-direction:column!important;
  gap:var(--gap)!important;
  width:100%!important;
  max-width:1320px!important;
}
body.admin-route .admin-content > *{
  margin-top:0!important;
}
body.admin-route .page-head,
body.admin-route .hero{
  align-items:flex-start!important;
  border-radius:34px!important;
  background:var(--grad-card)!important;
  box-shadow:var(--shadow-soft)!important;
}
body.admin-route .page-head h1,
body.admin-route .hero h1{
  font-size:clamp(27px,3.4vw,42px)!important;
  letter-spacing:-.065em!important;
}
body.admin-route .page-head p,
body.admin-route .hero p{
  max-width:860px!important;
}
body.admin-route .page-head .actions,
body.admin-route .hero .actions,
body.admin-route .section-title,
body.admin-route .section-title .actions{
  min-width:0!important;
}
body.admin-route .card,
body.admin-route .metric,
body.admin-route .hint-box,
body.admin-route .mini-stat,
body.admin-route .empty-state{
  border-color:rgba(220,230,243,.96)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:var(--shadow-soft)!important;
}
body.admin-route .metric{
  min-height:132px!important;
  border-radius:26px!important;
}
body.admin-route .grid.two,
body.admin-route .grid.three,
body.admin-route .grid.four,
body.admin-route .admin-metrics{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
}
body.admin-route .grid.two > *,
body.admin-route .grid.three > *,
body.admin-route .grid.four > *{
  min-width:0!important;
}
body.admin-route .admin-filter-panel.admin-filter-panel-white,
body.admin-route .admin-sync-filter-panel{
  margin:0!important;
  border-radius:28px!important;
  border:1px solid rgba(220,230,243,.96)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:var(--shadow-soft)!important;
  overflow:hidden!important;
  color:var(--text)!important;
}
body.admin-route .admin-filter-panel.admin-filter-panel-white::before,
body.admin-route .admin-sync-filter-panel::before{
  content:""!important;
  position:absolute!important;
  inset:-72px auto auto -72px!important;
  width:230px!important;
  height:230px!important;
  border-radius:999px!important;
  background:radial-gradient(circle,rgba(37,99,235,.10),transparent 68%)!important;
  pointer-events:none!important;
}
body.admin-route .admin-filter-head{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:16px 18px!important;
  border-bottom:1px solid var(--line)!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
}
body.admin-route .admin-filter-title{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:var(--heading)!important;
  font-size:16px!important;
  font-weight:900!important;
}
body.admin-route .admin-filter-title svg,
body.admin-route .admin-filter-title i{
  width:19px!important;
  height:19px!important;
  color:var(--primary)!important;
}
body.admin-route .admin-filter-count{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
body.admin-route .admin-filter-body{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  padding:18px!important;
  background:#fff!important;
}
body.admin-route .admin-search-section{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  gap:14px!important;
  align-items:end!important;
}
body.admin-route .admin-filter-section{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:14px!important;
}
body.admin-route .admin-filter-field{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-width:0!important;
}
body.admin-route .admin-filter-field label{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}
body.admin-route .admin-filter-field input,
body.admin-route .admin-filter-field select{
  width:100%!important;
  min-height:48px!important;
  border-radius:17px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  color:var(--text)!important;
  padding:12px 14px!important;
  box-shadow:0 1px 0 rgba(15,23,42,.02)!important;
}
body.admin-route .admin-filter-field input:focus,
body.admin-route .admin-filter-field select:focus{
  border-color:rgba(37,99,235,.52)!important;
  box-shadow:var(--ring)!important;
  outline:none!important;
}
body.admin-route .admin-filter-actions{
  display:flex!important;
  align-items:end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body.admin-route .admin-filter-actions .btn{
  min-height:48px!important;
}
body.admin-route .admin-filter-empty{
  display:none!important;
  margin:0!important;
  padding:16px!important;
  border:1px dashed var(--line-strong)!important;
  border-radius:20px!important;
  background:#fff!important;
  color:var(--muted)!important;
  font-weight:900!important;
  text-align:center!important;
}
body.admin-route .admin-filter-empty.show{
  display:block!important;
}
body.admin-route .table-wrap{
  width:100%!important;
  max-width:100%!important;
}
body.admin-route .table-wrap table{
  font-variant-numeric:tabular-nums!important;
}
body.admin-route .table-wrap th,
body.admin-route .table-wrap td{
  overflow-wrap:anywhere!important;
}
body.admin-route .table-wrap td small,
body.admin-route .table-wrap td code,
body.admin-route .table-wrap td a{
  max-width:100%!important;
}
body.admin-route .row-actions,
body.admin-route .admin-user-actions,
body.admin-route .admin-ipa-actions,
body.admin-route .ipa-actions-panel{
  align-items:center!important;
}
body.admin-route .admin-inline-editor{
  width:100%!important;
  max-width:100%!important;
}
body.admin-route .admin-inline-editor summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:38px!important;
  padding:8px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--primary)!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
  user-select:none!important;
  box-shadow:var(--shadow-tiny)!important;
}
body.admin-route .admin-inline-editor summary::-webkit-details-marker{display:none!important;}
body.admin-route .admin-inline-editor[open] summary{
  margin-bottom:10px!important;
  background:var(--grad-soft)!important;
  border-color:rgba(37,99,235,.24)!important;
}
body.admin-route .admin-inline-editor summary svg,
body.admin-route .admin-inline-editor summary i{
  width:16px!important;
  height:16px!important;
}
body.admin-route .admin-inline-editor form,
body.admin-route .admin-inline-editor .inline-form{
  margin-top:8px!important;
}
body.admin-route .admin-inline-editor .inline-form,
body.admin-route .inline-form.admin-compact-form,
body.admin-route .banks-edit{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
body.admin-route .admin-inline-editor input,
body.admin-route .admin-inline-editor select,
body.admin-route .admin-inline-editor textarea,
body.admin-route .admin-inline-editor .btn,
body.admin-route .admin-inline-editor .link-btn,
body.admin-route .inline-form.admin-compact-form input,
body.admin-route .inline-form.admin-compact-form select,
body.admin-route .inline-form.admin-compact-form .btn,
body.admin-route .banks-edit input,
body.admin-route .banks-edit select,
body.admin-route .banks-edit .btn{
  width:100%!important;
  min-width:0!important;
}
body.admin-route .log-tail,
body.admin-route .system-log-tail{
  max-width:100%!important;
  overflow:auto!important;
  white-space:pre-wrap!important;
  word-break:break-word!important;
  border-radius:22px!important;
  border:1px solid var(--line)!important;
  background:#07111f!important;
  color:#e5eefc!important;
  padding:16px!important;
  line-height:1.65!important;
}
body.admin-route .list-pagination,
body.admin-route .admin-sync-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin:18px 0 0!important;
  padding:12px!important;
  border:1px solid var(--line)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:var(--shadow-tiny)!important;
}
body.admin-route .list-pagination[hidden],
body.admin-route .admin-sync-pagination[hidden]{display:none!important;}
body.admin-route .list-pagination span,
body.admin-route .admin-sync-pagination span[data-admin-sync-page-info],
body.admin-route .list-pagination [data-page-info]{
  min-width:150px!important;
  text-align:center!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.admin-route .is-filter-hidden,
body.admin-route .is-page-hidden,
body.admin-route [hidden]{
  display:none!important;
}
@media (min-width:961px){
  body.admin-route .table-wrap{
    overflow:auto!important;
    border:1px solid var(--line)!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:var(--shadow-tiny)!important;
  }
  body.admin-route .table-wrap table{
    display:table!important;
    width:100%!important;
    min-width:980px!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }
  body.admin-route .table-wrap thead{display:table-header-group!important;}
  body.admin-route .table-wrap tbody{display:table-row-group!important;}
  body.admin-route .table-wrap tr{display:table-row!important;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;}
  body.admin-route .table-wrap th,
  body.admin-route .table-wrap td{
    display:table-cell!important;
    vertical-align:middle!important;
    padding:15px 16px!important;
    border-bottom:1px solid var(--line)!important;
    text-align:left!important;
    font-size:13px!important;
    line-height:1.55!important;
    white-space:normal!important;
    max-width:380px!important;
  }
  body.admin-route .table-wrap th{
    position:sticky!important;
    top:0!important;
    z-index:2!important;
    background:#f8fbff!important;
    color:#64748b!important;
    font-size:11px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.08em!important;
  }
  body.admin-route .table-wrap td::before{display:none!important;content:none!important;}
  body.admin-route .table-wrap tbody tr:last-child td{border-bottom:0!important;}
  body.admin-route .table-wrap tbody tr:hover td{background:#fbfdff!important;}
  body.admin-route .table-wrap td code{
    display:inline-block!important;
    max-width:280px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    vertical-align:middle!important;
  }
}
@media (max-width:960px){
  body.admin-route .admin-content{
    gap:18px!important;
    padding-bottom:calc(112px + var(--safe-bottom,0px))!important;
  }
  body.admin-route .page-head,
  body.admin-route .hero{
    flex-direction:column!important;
    gap:16px!important;
    padding:20px 16px!important;
    border-radius:28px!important;
  }
  body.admin-route .page-head h1,
  body.admin-route .hero h1{
    font-size:clamp(28px,9vw,38px)!important;
  }
  body.admin-route .page-head .actions,
  body.admin-route .hero .actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;
    gap:10px!important;
  }
  body.admin-route .page-head .btn,
  body.admin-route .hero .btn,
  body.admin-route .page-head .link-btn,
  body.admin-route .hero .link-btn{
    width:100%!important;
  }
  body.admin-route .card{
    padding:16px!important;
    border-radius:25px!important;
  }
  body.admin-route .section-title{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.admin-route .section-title > a,
  body.admin-route .section-title .btn,
  body.admin-route .section-title .link-btn{
    width:100%!important;
    justify-content:center!important;
  }
  body.admin-route .admin-search-section,
  body.admin-route .admin-filter-section,
  body.admin-route .admin-filter-body{
    grid-template-columns:1fr!important;
  }
  body.admin-route .admin-filter-actions,
  body.admin-route .admin-filter-actions .btn,
  body.admin-route .admin-filter-actions .link-btn{
    width:100%!important;
  }
  body.admin-route .table-wrap{
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.admin-route .table-wrap table,
  body.admin-route .table-wrap thead,
  body.admin-route .table-wrap tbody,
  body.admin-route .table-wrap tr,
  body.admin-route .table-wrap th,
  body.admin-route .table-wrap td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.admin-route .table-wrap table{border-collapse:separate!important;border-spacing:0!important;}
  body.admin-route .table-wrap thead{display:none!important;}
  body.admin-route .table-wrap tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body.admin-route .table-wrap tr{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:16px!important;
    border:1px solid rgba(220,230,243,.96)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:var(--shadow-tiny)!important;
  }
  body.admin-route .table-wrap td{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:7px!important;
    padding:0!important;
    border:0!important;
    color:#334155!important;
    font-size:13.5px!important;
    line-height:1.55!important;
    text-align:left!important;
  }
  body.admin-route .table-wrap td::before{
    content:attr(data-label)!important;
    display:block!important;
    color:#94a3b8!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1.2!important;
    text-transform:uppercase!important;
    letter-spacing:.09em!important;
  }
  body.admin-route .table-wrap td[colspan]{
    grid-column:1/-1!important;
    align-items:center!important;
    text-align:center!important;
    padding:18px!important;
  }
  body.admin-route .table-wrap td[colspan]::before{display:none!important;content:none!important;}
  body.admin-route .table-wrap td > strong{
    color:var(--heading)!important;
    font-size:15px!important;
    line-height:1.35!important;
  }
  body.admin-route .table-wrap .badge{
    max-width:100%!important;
    white-space:normal!important;
    text-align:left!important;
  }
  body.admin-route .table-wrap .row-actions,
  body.admin-route .table-wrap .admin-user-actions,
  body.admin-route .table-wrap .admin-ipa-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
  }
  body.admin-route .table-wrap .btn,
  body.admin-route .table-wrap .link-btn,
  body.admin-route .table-wrap button{
    width:100%!important;
    justify-content:center!important;
  }
  body.admin-route .admin-inline-editor summary{
    width:100%!important;
  }
  body.admin-route .admin-inline-editor .inline-form,
  body.admin-route .inline-form.admin-compact-form,
  body.admin-route .banks-edit{
    grid-template-columns:1fr!important;
  }
  body.admin-route .list-pagination,
  body.admin-route .admin-sync-pagination{
    gap:8px!important;
    padding:10px!important;
  }
  body.admin-route .list-pagination span,
  body.admin-route .admin-sync-pagination span[data-admin-sync-page-info],
  body.admin-route .list-pagination [data-page-info]{
    order:-1!important;
    flex:1 1 100%!important;
    min-width:0!important;
  }
}
@media (max-width:520px){
  body.admin-route .admin-content{gap:16px!important;}
  body.admin-route .page-head,
  body.admin-route .hero,
  body.admin-route .admin-filter-panel.admin-filter-panel-white,
  body.admin-route .admin-sync-filter-panel{
    border-radius:24px!important;
  }
  body.admin-route .admin-filter-head,
  body.admin-route .admin-filter-body{
    padding:14px!important;
  }
  body.admin-route .card{padding:15px!important;border-radius:23px!important;}
  body.admin-route .table-wrap tr{padding:14px!important;border-radius:22px!important;}
}
/* END APPINSTALL ADMIN USER STYLE SYNC V1 */

/* BEGIN APPINSTALL ADMIN MOBILE TABLE FIX V2 */
@media (max-width:960px){
  body.admin-route{
    overflow-x:hidden!important;
  }
  body.admin-route .admin-content{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding-bottom:calc(158px + var(--safe-bottom,0px) + env(safe-area-inset-bottom,0px))!important;
  }
  body.admin-route .admin-content > .card{
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  body.admin-route .admin-content > .card:has(.table-wrap){
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.admin-route .admin-content > .card:has(.table-wrap)::after{
    display:none!important;
  }
  body.admin-route .table-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.admin-route .table-wrap table,
  body.admin-route .table-wrap thead,
  body.admin-route .table-wrap tbody,
  body.admin-route .table-wrap tr,
  body.admin-route .table-wrap th,
  body.admin-route .table-wrap td{
    max-width:100%!important;
    min-width:0!important;
  }
  body.admin-route .table-wrap table{
    display:block!important;
    width:100%!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }
  body.admin-route .table-wrap thead{
    display:none!important;
  }
  body.admin-route .table-wrap tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
  }
  body.admin-route .table-wrap tr{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding:17px 17px 18px!important;
    border:1px solid rgba(220,230,243,.96)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 10px 28px rgba(15,23,42,.055)!important;
    overflow:hidden!important;
  }
  body.admin-route .table-wrap td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    flex-basis:auto!important;
    align-self:stretch!important;
    padding:0 0 13px!important;
    margin:0 0 13px!important;
    border:0!important;
    border-bottom:1px solid #eef2f7!important;
    color:#334155!important;
    font-size:13.5px!important;
    line-height:1.55!important;
    text-align:left!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.admin-route .table-wrap td:last-child{
    margin-bottom:0!important;
    padding-bottom:0!important;
    border-bottom:0!important;
  }
  body.admin-route .table-wrap td::before{
    content:attr(data-label)!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    flex-basis:auto!important;
    margin:0 0 8px!important;
    padding:0!important;
    color:#94a3b8!important;
    font-size:10.8px!important;
    font-weight:900!important;
    line-height:1.25!important;
    text-align:left!important;
    text-transform:uppercase!important;
    letter-spacing:.09em!important;
    white-space:normal!important;
  }
  body.admin-route .table-wrap td[data-label=""]::before,
  body.admin-route .table-wrap td:not([data-label])::before,
  body.admin-route .table-wrap td[colspan]::before{
    display:none!important;
    content:none!important;
  }
  body.admin-route .table-wrap td[colspan]{
    padding:18px!important;
    margin:0!important;
    border:0!important;
    text-align:center!important;
  }
  body.admin-route .table-wrap td > *{
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  body.admin-route .table-wrap td > strong{
    display:block!important;
    width:100%!important;
    color:var(--heading)!important;
    font-size:15.5px!important;
    line-height:1.38!important;
    letter-spacing:-.025em!important;
  }
  body.admin-route .table-wrap td .muted,
  body.admin-route .table-wrap td small{
    display:block!important;
    width:100%!important;
    margin-top:6px!important;
    color:#64748b!important;
    font-size:12.5px!important;
    line-height:1.55!important;
  }
  body.admin-route .table-wrap td code,
  body.admin-route .table-wrap td a{
    max-width:100%!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }
  body.admin-route .table-wrap td br{
    display:none!important;
  }
  body.admin-route .table-wrap .badge{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    min-height:26px!important;
    margin:0 7px 7px 0!important;
    padding:5px 10px!important;
    line-height:1.2!important;
    white-space:normal!important;
    text-align:left!important;
    vertical-align:top!important;
  }
  body.admin-route .table-wrap td[data-label="Tài khoản"] > strong,
  body.admin-route .table-wrap td[data-label="Email"] > strong{
    font-size:15px!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }
  body.admin-route .table-wrap td[data-label="Tài khoản"] .muted{
    margin:7px 0 8px!important;
  }
  body.admin-route .table-wrap td[data-label="Quyền / tình trạng"],
  body.admin-route .table-wrap td[data-label="Trạng thái"]{
    padding-bottom:8px!important;
  }
  body.admin-route .table-wrap td[data-label="Hạn VIP"] small,
  body.admin-route .table-wrap td[data-label="Dung lượng"] small{
    margin-top:8px!important;
  }
  body.admin-route .table-wrap .quota-track,
  body.admin-route .table-wrap .quota-track.compact,
  body.admin-route .table-wrap .progress-track{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:9px 0 4px!important;
  }
  body.admin-route .table-wrap .row-actions,
  body.admin-route .table-wrap .admin-user-actions,
  body.admin-route .table-wrap .admin-ipa-actions,
  body.admin-route .table-wrap .ipa-actions-panel{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.admin-route .admin-inline-editor,
  body.admin-route .admin-mobile-action-panel{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.admin-route .admin-inline-editor summary,
  body.admin-route .admin-mobile-action-panel summary{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    width:100%!important;
    min-height:44px!important;
    padding:10px 13px!important;
    border:1px solid var(--line)!important;
    border-radius:16px!important;
    background:#fff!important;
    color:var(--primary)!important;
    font-size:13px!important;
    font-weight:900!important;
    text-align:center!important;
    cursor:pointer!important;
    box-shadow:var(--shadow-tiny)!important;
  }
  body.admin-route .admin-inline-editor[open] summary,
  body.admin-route .admin-mobile-action-panel[open] summary{
    margin-bottom:12px!important;
    background:var(--grad-soft)!important;
    border-color:rgba(37,99,235,.24)!important;
  }
  body.admin-route .admin-inline-editor summary::-webkit-details-marker,
  body.admin-route .admin-mobile-action-panel summary::-webkit-details-marker{
    display:none!important;
  }
  body.admin-route .admin-inline-editor .inline-form,
  body.admin-route .admin-inline-editor form,
  body.admin-route .admin-mobile-action-panel .inline-form,
  body.admin-route .admin-mobile-action-panel form,
  body.admin-route .inline-form.admin-compact-form,
  body.admin-route .banks-edit{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 10px!important;
  }
  body.admin-route .admin-inline-editor input,
  body.admin-route .admin-inline-editor select,
  body.admin-route .admin-inline-editor textarea,
  body.admin-route .admin-inline-editor .btn,
  body.admin-route .admin-inline-editor .link-btn,
  body.admin-route .admin-mobile-action-panel input,
  body.admin-route .admin-mobile-action-panel select,
  body.admin-route .admin-mobile-action-panel textarea,
  body.admin-route .admin-mobile-action-panel .btn,
  body.admin-route .admin-mobile-action-panel .link-btn,
  body.admin-route .inline-form.admin-compact-form input,
  body.admin-route .inline-form.admin-compact-form select,
  body.admin-route .inline-form.admin-compact-form textarea,
  body.admin-route .inline-form.admin-compact-form .btn,
  body.admin-route .inline-form.admin-compact-form .link-btn{
    width:100%!important;
    min-width:0!important;
  }
  body.admin-route .list-pagination,
  body.admin-route .admin-sync-pagination{
    margin-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
  }
  body.admin-route .mobile-tabbar{
    z-index:120!important;
  }
}
@media (max-width:420px){
  body.admin-route .admin-content{
    padding-bottom:calc(170px + var(--safe-bottom,0px) + env(safe-area-inset-bottom,0px))!important;
  }
  body.admin-route .table-wrap tr{
    padding:16px!important;
    border-radius:22px!important;
  }
  body.admin-route .table-wrap td{
    font-size:13px!important;
    padding-bottom:12px!important;
    margin-bottom:12px!important;
  }
  body.admin-route .table-wrap td::before{
    font-size:10.5px!important;
    margin-bottom:7px!important;
  }
  body.admin-route .table-wrap td > strong{
    font-size:14.5px!important;
  }
}
/* END APPINSTALL ADMIN MOBILE TABLE FIX V2 */

/* BEGIN APPINSTALL ADMIN MOBILE METRIC CARDS FIX V1 */
body.admin-route .admin-content .grid:has(> .metric),
body.admin-route .admin-content .grid.admin-metric-grid-fixed{
  align-items:stretch!important;
  gap:clamp(12px,1.8vw,18px)!important;
}
body.admin-route .admin-content .grid.two:has(> .metric),
body.admin-route .admin-content .grid.three:has(> .metric),
body.admin-route .admin-content .grid.four:has(> .metric),
body.admin-route .admin-content .grid.two.admin-metric-grid-fixed,
body.admin-route .admin-content .grid.three.admin-metric-grid-fixed,
body.admin-route .admin-content .grid.four.admin-metric-grid-fixed,
body.admin-route .admin-content .admin-metrics{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
}
body.admin-route .admin-content .grid > .metric{
  position:relative!important;
  isolation:isolate!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:118px!important;
  height:auto!important;
  padding:18px 18px!important;
  border:1px solid rgba(220,230,243,.96)!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,251,255,.94))!important;
  box-shadow:0 12px 32px rgba(15,23,42,.065)!important;
  color:var(--text)!important;
  text-decoration:none!important;
  overflow:hidden!important;
  transform:none;
}
body.admin-route .admin-content .grid > .metric.card{
  padding:18px 18px!important;
}
body.admin-route .admin-content .grid > .metric::before{
  content:""!important;
  position:absolute!important;
  right:-32px!important;
  top:-34px!important;
  left:auto!important;
  bottom:auto!important;
  width:104px!important;
  height:104px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,rgba(49,94,251,.14),rgba(6,182,212,.12))!important;
  opacity:.9!important;
  pointer-events:none!important;
  z-index:0!important;
}
body.admin-route .admin-content .grid > .metric::after{
  pointer-events:none!important;
}
body.admin-route .admin-content .grid > .metric > *{
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
  max-width:100%!important;
}
body.admin-route .admin-content .grid > .metric > span{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1.25!important;
  letter-spacing:.085em!important;
  text-transform:uppercase!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.admin-route .admin-content .grid > .metric > strong{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#0f172a!important;
  font-size:clamp(26px,3vw,40px)!important;
  font-weight:950!important;
  line-height:1.04!important;
  letter-spacing:-.055em!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.admin-route .admin-content .grid > .metric.admin-metric-long-value > strong{
  font-size:clamp(16px,1.55vw,22px)!important;
  line-height:1.24!important;
  letter-spacing:-.035em!important;
}
body.admin-route .admin-content .grid > .metric > small{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:auto 0 0!important;
  padding:0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.42!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
body.admin-route .admin-content a.metric:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(49,94,251,.25)!important;
  box-shadow:0 16px 38px rgba(37,99,235,.11)!important;
}
body.admin-route .admin-content .grid > .metric .badge{
  max-width:100%!important;
  white-space:normal!important;
}
@media (max-width:960px){
  body.admin-route .admin-content{
    overflow:visible!important;
    padding-bottom:calc(178px + var(--safe-bottom,0px) + env(safe-area-inset-bottom,0px))!important;
  }
  body.admin-route .admin-content .grid:has(> .metric),
  body.admin-route .admin-content .grid.admin-metric-grid-fixed{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.admin-route .admin-content .grid > .metric{
    min-height:102px!important;
    padding:15px 15px!important;
    border-radius:22px!important;
    gap:6px!important;
    box-shadow:0 10px 26px rgba(15,23,42,.06)!important;
  }
  body.admin-route .admin-content .grid > .metric.card{
    padding:15px 15px!important;
  }
  body.admin-route .admin-content .grid > .metric::before{
    width:82px!important;
    height:82px!important;
    right:-27px!important;
    top:-28px!important;
    opacity:.72!important;
  }
  body.admin-route .admin-content .grid > .metric > span{
    font-size:10.5px!important;
    line-height:1.24!important;
    letter-spacing:.075em!important;
  }
  body.admin-route .admin-content .grid > .metric > strong{
    font-size:clamp(23px,6.4vw,34px)!important;
    line-height:1.04!important;
    margin:0!important;
    text-align:left!important;
  }
  body.admin-route .admin-content .grid > .metric.admin-metric-long-value > strong{
    font-size:clamp(15px,4.1vw,18px)!important;
    line-height:1.28!important;
    letter-spacing:-.03em!important;
  }
  body.admin-route .admin-content .grid > .metric > small{
    margin-top:auto!important;
    font-size:11.5px!important;
    line-height:1.35!important;
  }
  body.admin-route .admin-content > :last-child{
    margin-bottom:118px!important;
  }
}
@media (max-width:520px){
  body.admin-route .admin-content .grid:has(> .metric),
  body.admin-route .admin-content .grid.admin-metric-grid-fixed{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body.admin-route .admin-content .grid > .metric{
    min-height:88px!important;
    padding:14px 16px!important;
    border-radius:21px!important;
    gap:6px!important;
  }
  body.admin-route .admin-content .grid > .metric.card{
    padding:14px 16px!important;
  }
  body.admin-route .admin-content .grid > .metric > span{
    font-size:10.5px!important;
    line-height:1.24!important;
  }
  body.admin-route .admin-content .grid > .metric > strong{
    font-size:clamp(24px,8.7vw,34px)!important;
    line-height:1.04!important;
  }
  body.admin-route .admin-content .grid > .metric.admin-metric-long-value > strong{
    font-size:clamp(15px,4.4vw,18px)!important;
    line-height:1.28!important;
  }
}
@media (max-width:390px){
  body.admin-route .admin-content .grid > .metric{
    min-height:86px!important;
    padding:13px 14px!important;
    border-radius:20px!important;
  }
  body.admin-route .admin-content .grid > .metric > span{
    font-size:10px!important;
  }
  body.admin-route .admin-content .grid > .metric > strong{
    font-size:clamp(22px,8.6vw,31px)!important;
  }
  body.admin-route .admin-content .grid > .metric > small{
    font-size:11px!important;
  }
}
/* END APPINSTALL ADMIN MOBILE METRIC CARDS FIX V1 */

/* ADMIN USERS QUOTA UI PART */
.admin-users-modern-head{align-items:flex-start;gap:18px}.admin-users-head-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-users-modern{display:flex;flex-direction:column;gap:16px;padding-bottom:22px}.admin-users-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-users-stat-card{position:relative;overflow:hidden;border:1px solid rgba(189,205,232,.82);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(246,249,255,.9));box-shadow:0 20px 55px rgba(30,64,175,.08);padding:20px;min-height:128px}.admin-users-stat-card:after{content:"";position:absolute;right:-34px;bottom:-42px;width:112px;height:112px;border-radius:999px;background:linear-gradient(135deg,rgba(49,94,251,.18),rgba(6,182,212,.14));pointer-events:none}.admin-users-stat-card span{display:block;color:#8a98b1;text-transform:uppercase;letter-spacing:.08em;font-weight:900;font-size:12px}.admin-users-stat-card strong{display:block;margin-top:10px;color:#0f172a;font-size:clamp(24px,3.2vw,38px);line-height:1;font-weight:950;letter-spacing:-.04em}.admin-users-stat-card small{display:block;margin-top:10px;color:#64748b;font-weight:700;line-height:1.5}.admin-users-toolbar{padding:16px;border-radius:24px}.admin-users-toolbar-main{display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr));gap:12px;align-items:end}.admin-users-toolbar label,.admin-user-mini-form label{display:flex;flex-direction:column;gap:7px;margin:0}.admin-users-toolbar label span,.admin-user-mini-form label span{font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#8a98b1}.admin-users-toolbar input,.admin-users-toolbar select,.admin-user-mini-form input,.admin-user-mini-form select{width:100%;min-height:44px;border:1px solid rgba(189,205,232,.95);border-radius:14px;background:#fff;color:#0f172a;padding:0 13px;font:inherit;font-weight:700;outline:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}.admin-users-toolbar input:focus,.admin-users-toolbar select:focus,.admin-user-mini-form input:focus,.admin-user-mini-form select:focus{border-color:rgba(49,94,251,.7);box-shadow:0 0 0 4px rgba(49,94,251,.1)}.admin-users-toolbar-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#64748b;font-weight:800}.admin-users-empty{border:1px dashed rgba(148,163,184,.75);border-radius:22px;background:rgba(255,255,255,.78);padding:22px;text-align:center;color:#64748b;font-weight:800}.admin-users-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-user-card-modern{position:relative;overflow:hidden;border:1px solid rgba(189,205,232,.86);border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(247,250,255,.94));box-shadow:0 22px 60px rgba(30,64,175,.09);padding:18px;display:flex;flex-direction:column;gap:14px}.admin-user-card-modern[hidden]{display:none!important}.admin-user-card-modern:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--primary,#315efb),var(--primary2,#8b5cf6),var(--cyan,#06b6d4));opacity:.88}.admin-user-topline{display:flex;gap:14px;align-items:flex-start;min-width:0}.admin-user-avatar{width:54px;height:54px;flex:0 0 auto;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(49,94,251,.12),rgba(139,92,246,.16));border:1px solid rgba(189,205,232,.9);color:#1d4ed8;font-weight:950;font-size:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.admin-user-identity{min-width:0;flex:1}.admin-user-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.admin-user-title-row h2{margin:0;color:#0f172a;font-size:18px;line-height:1.25;font-weight:950;letter-spacing:-.03em;word-break:break-word}.admin-user-id{flex:0 0 auto;border:1px solid rgba(189,205,232,.88);background:#fff;border-radius:999px;padding:5px 9px;color:#64748b;font-size:12px;font-weight:900}.admin-user-email{margin-top:5px;color:#64748b;font-weight:800;font-size:13px;word-break:break-all}.admin-user-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.admin-user-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.admin-user-info-grid>div{border:1px solid rgba(226,232,240,.95);border-radius:18px;background:rgba(255,255,255,.75);padding:11px 12px;min-width:0}.admin-user-info-grid span{display:block;color:#8a98b1;text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:950}.admin-user-info-grid strong{display:block;margin-top:6px;color:#0f172a;font-size:13px;font-weight:900;line-height:1.35;word-break:break-word}.admin-user-quota-box{border:1px solid rgba(226,232,240,.96);border-radius:20px;background:rgba(255,255,255,.75);padding:14px}.admin-user-quota-head,.admin-user-quota-sub{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-user-quota-head span{color:#64748b;font-weight:900}.admin-user-quota-head strong{color:#0f172a;font-weight:950;letter-spacing:-.02em}.admin-user-quota-track{height:10px;border-radius:999px;background:#e8eef8;overflow:hidden;margin:12px 0}.admin-user-quota-track span{display:block;height:100%;max-width:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary,#315efb),var(--primary2,#8b5cf6),var(--cyan,#06b6d4))}.admin-user-quota-box.near .admin-user-quota-track span{background:linear-gradient(90deg,#f59e0b,#f97316)}.admin-user-quota-box.full .admin-user-quota-track span{background:linear-gradient(90deg,#ef4444,#f97316)}.admin-user-quota-box.admin .admin-user-quota-track span{width:100%!important}.admin-user-quota-sub span{color:#64748b;font-size:12px;font-weight:800}.admin-user-edit-panel{border:1px solid rgba(189,205,232,.78);border-radius:20px;background:rgba(248,251,255,.86);overflow:hidden}.admin-user-edit-panel summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:12px 14px;color:#1e3a8a;font-weight:950}.admin-user-edit-panel summary::-webkit-details-marker{display:none}.admin-user-edit-panel[open] summary{border-bottom:1px solid rgba(226,232,240,.9);background:rgba(255,255,255,.72)}.admin-user-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.admin-user-mini-form{display:flex;flex-direction:column;gap:10px;border:1px solid rgba(226,232,240,.96);border-radius:18px;background:#fff;padding:13px;min-width:0}.admin-user-mini-form h3{display:flex;align-items:center;gap:8px;margin:0 0 2px;color:#0f172a;font-size:14px;font-weight:950}.admin-user-mini-form h3 svg{width:17px;height:17px;color:#315efb}.admin-user-mini-form small{color:#64748b;font-weight:700;line-height:1.45}.admin-form-3col{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:8px}.admin-form-buttons{display:flex;flex-wrap:wrap;gap:8px}.admin-form-buttons .btn{flex:1}.admin-storage-presets{display:flex;flex-wrap:wrap;gap:7px}.admin-storage-presets button{border:1px solid rgba(189,205,232,.9);background:#f8fbff;border-radius:999px;padding:7px 10px;color:#1e3a8a;font-weight:900;cursor:pointer}.admin-storage-presets button:hover{background:#eef5ff;border-color:rgba(49,94,251,.45)}@media(max-width:1180px){.admin-users-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-users-grid{grid-template-columns:1fr}.admin-users-toolbar-main{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-users-search{grid-column:1/-1}}@media(max-width:720px){.admin-users-modern{padding-bottom:110px}.admin-users-modern-head .actions{width:100%}.admin-users-modern-head .actions .btn{flex:1}.admin-users-stat-grid,.admin-users-grid,.admin-user-edit-grid,.admin-users-toolbar-main{grid-template-columns:1fr}.admin-users-stat-card{min-height:0;padding:16px;border-radius:22px}.admin-users-toolbar{padding:14px}.admin-user-card-modern{border-radius:24px;padding:15px}.admin-user-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-user-topline{gap:11px}.admin-user-avatar{width:48px;height:48px;border-radius:16px}.admin-user-title-row{flex-direction:column;gap:6px}.admin-user-id{align-self:flex-start}.admin-user-quota-head,.admin-user-quota-sub{align-items:flex-start;flex-direction:column;gap:5px}.admin-form-3col{grid-template-columns:1fr}.admin-user-edit-panel summary{justify-content:space-between}.admin-users-toolbar-foot{align-items:stretch;flex-direction:column}.admin-users-toolbar-foot .btn{width:100%;justify-content:center}}@media(max-width:420px){.admin-user-info-grid{grid-template-columns:1fr}.admin-user-card-modern{padding:13px}.admin-user-badges .badge{font-size:11px}.admin-users-stat-card strong{font-size:28px}}


/* v58: Admin settings checkbox -> mobile-friendly switch toggle */
.form label.setting-switch,
label.setting-switch{
  position:relative;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  min-height:76px;
  padding:16px!important;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  color:#334155;
  cursor:pointer;
  user-select:none;
  line-height:1.35;
  box-shadow:var(--shadow-tiny);
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.form label.setting-switch:hover,
label.setting-switch:hover{
  border-color:rgba(37,99,235,.30);
  background:#fbfdff;
  box-shadow:0 12px 28px rgba(37,99,235,.08);
}
.setting-switch-input{
  position:absolute!important;
  left:18px!important;
  top:18px!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  opacity:0!important;
  box-shadow:none!important;
  pointer-events:none!important;
}
.setting-switch-slider{
  position:relative;
  display:inline-block;
  width:58px;
  height:32px;
  border-radius:999px;
  border:1px solid #cbd8eb;
  background:#e6edf7;
  box-shadow:inset 0 1px 3px rgba(15,23,42,.10);
  flex:0 0 58px;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.setting-switch-slider::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 3px 9px rgba(15,23,42,.18);
  transition:transform .2s ease,box-shadow .2s ease;
}
.setting-switch-input:checked + .setting-switch-slider{
  border-color:transparent;
  background:var(--grad);
  box-shadow:0 10px 24px rgba(37,99,235,.20);
}
.setting-switch-input:checked + .setting-switch-slider::after{
  transform:translateX(26px);
  box-shadow:0 4px 12px rgba(15,23,42,.22);
}
.setting-switch-input:focus-visible + .setting-switch-slider{
  outline:3px solid rgba(37,99,235,.22);
  outline-offset:3px;
}
.setting-switch-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.setting-switch-copy .field-title{
  display:block;
  color:#334155;
  font-size:14px;
  font-weight:900;
  line-height:1.35;
}
.setting-switch-copy small{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  line-height:1.55;
}
.setting-switch-copy small b{color:#334155}
@media (max-width:560px){
  .form label.setting-switch,
  label.setting-switch{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:12px!important;
    min-height:72px;
    padding:14px!important;
    border-radius:18px;
  }
  .setting-switch-slider{width:54px;height:30px;flex-basis:54px}
  .setting-switch-slider::after{width:22px;height:22px}
  .setting-switch-input:checked + .setting-switch-slider::after{transform:translateX(24px)}
}

/* R2 v12: giữ nguyên trang sau upload/ký, chỉ hiện nút mở trang cài */
.landing-result-link.inline-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 4px;padding:10px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.82)}
.landing-result-link.inline-action-row .btn,.landing-result-link.inline-action-row .link-btn{margin:0!important}
/* APPINSTALL LANDING IMAGE UPDATE FIX */
.landing-current-icon{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#f8fbff;color:#64748b;font-size:12px;font-weight:900}.landing-current-icon img{width:54px;height:54px;border-radius:16px;object-fit:cover;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow-tiny)}

.landing-current-icon-preview{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#f8fbff}.landing-current-icon-preview small{font-weight:900;color:var(--muted)}.landing-current-icon-preview img{width:62px;height:62px;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:#fff}
.landing-current-icon{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#f8fbff}.landing-current-icon span{font-weight:900;color:var(--muted);font-size:12px}.landing-current-icon img{width:62px;height:62px;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:#fff}

.link-btn.success{border-color:rgba(22,163,74,.18)!important;background:rgba(22,163,74,.08)!important;color:#15803d!important}.link-btn.success:hover{background:rgba(22,163,74,.13)!important;color:#166534!important}

/* Manual signed + landing image refresh fixes 20260615 */
.manual-signed-picker{display:block!important;margin:14px 0!important;min-width:0!important}.manual-signed-shell{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:58px!important;padding:12px 14px!important;border:1px solid rgba(37,99,235,.18)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(6,182,212,.05),#fff)!important;box-shadow:var(--shadow-tiny)!important}.manual-signed-inline{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;color:#334155!important;font-weight:900!important;line-height:1.35!important;white-space:normal!important}.manual-signed-inline input[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;flex:0 0 22px!important;border:2px solid #2563eb!important;border-radius:999px!important;background:#fff!important;box-shadow:inset 0 0 0 4px #fff!important;display:inline-block!important;margin:0!important;position:relative!important}.manual-signed-inline input[type="checkbox"]:checked{background:#2563eb!important;box-shadow:inset 0 0 0 4px #fff!important}.manual-signed-picker small{display:block!important;margin-top:8px!important;color:var(--muted)!important;font-size:12px!important;line-height:1.55!important}.ipa-actions-panel.cert-action-panel-v10{grid-template-columns:minmax(0,1fr) auto auto!important}.mark-signed-card-form,.app-compact-mark-signed{margin:0!important;display:flex!important}.mark-signed-card-form .link-btn,.app-compact-mark-signed .link-btn{width:100%!important;border-color:rgba(22,163,74,.22)!important;background:rgba(22,163,74,.08)!important;color:#15803d!important}.landing-current-icon{display:flex!important;align-items:center!important;gap:12px!important;padding:12px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:#fff!important}.landing-current-icon img{width:64px!important;height:64px!important;object-fit:cover!important;border-radius:16px!important;border:1px solid var(--line)!important}@media(max-width:720px){.ipa-actions-panel.cert-action-panel-v10{grid-template-columns:1fr!important}.mark-signed-card-form,.mark-signed-card-form .link-btn,.delete-card-form,.delete-card-form .link-btn,.sign-card-form,.sign-card-form .btn{width:100%!important}.manual-signed-shell{align-items:flex-start!important}.manual-signed-inline{font-size:13px!important}.landing-current-icon{align-items:flex-start!important}}


/* Manual signed and landing edit UI fix 20260615 */
.manual-signed-picker{display:block!important;width:100%!important;margin-top:12px!important}.manual-signed-shell{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:58px!important;height:auto!important;padding:13px 14px!important;overflow:visible!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(6,182,212,.05))!important}.manual-signed-shell>svg,.manual-signed-shell>i{width:21px!important;height:21px!important;min-width:21px!important;flex:0 0 21px!important;margin:0!important;color:#2563eb!important}.manual-signed-inline{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;min-width:0!important;width:100%!important;color:#334155!important;font-weight:900!important;line-height:1.45!important;white-space:normal!important;text-align:left!important}.manual-signed-inline input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;display:inline-block!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;margin:0!important;padding:0!important;flex:0 0 22px!important;opacity:1!important;visibility:visible!important;accent-color:#2563eb!important;border-radius:6px!important}.landing-manual-signed small,.manual-signed-picker small{display:block!important;margin-top:8px!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;line-height:1.5!important}.ipa-actions-panel,.app-compact-actions{align-items:stretch!important}.mark-signed-card-form,.app-compact-mark-signed{display:flex!important;align-items:stretch!important;margin:0!important}.mark-signed-card-form .link-btn,.app-compact-mark-signed .link-btn{width:100%!important;justify-content:center!important;border-color:rgba(22,163,74,.22)!important;background:rgba(22,163,74,.07)!important;color:#166534!important;font-weight:900!important}.landing-current-icon img{display:block!important;width:86px!important;height:86px!important;object-fit:cover!important;border-radius:22px!important;border:1px solid var(--line)!important;background:#fff!important}.landing-form input[type=file]{height:auto!important;min-height:54px!important;padding:14px!important;line-height:1.4!important}.landing-form .grid.two{align-items:start!important}
@media (max-width:720px){.manual-signed-shell{min-height:60px!important;padding:13px!important}.manual-signed-inline{font-size:14px!important}.manual-signed-inline input[type=checkbox]{width:21px!important;height:21px!important;min-width:21px!important}.ipa-actions-panel.cert-action-panel-v10{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.ipa-actions-panel.cert-action-panel-v10 form,.ipa-actions-panel.cert-action-panel-v10 button,.ipa-actions-panel.cert-action-panel-v10 .btn,.ipa-actions-panel.cert-action-panel-v10 .link-btn{width:100%!important}.app-compact-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.app-compact-mark-signed,.app-compact-delete{grid-column:span 1!important}.app-compact-actions>a,.app-compact-actions>button,.app-compact-actions>form .link-btn{width:100%!important}.landing-current-icon{display:flex!important;align-items:center!important;gap:12px!important}.landing-current-icon img{width:72px!important;height:72px!important}}



/* FINAL FIX 20260615: manual signed UI, mobile/desktop */
.form label.manual-signed-picker, label.manual-signed-picker{display:block!important;margin:14px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important}.manual-signed-shell{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;min-height:58px!important;padding:12px 14px!important;border:1px solid rgba(37,99,235,.18)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(6,182,212,.05),#fff)!important;box-shadow:var(--shadow-tiny)!important}.manual-signed-inline{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-width:0!important;text-align:left!important;color:#334155!important;font-weight:900!important;line-height:1.35!important;white-space:normal!important}.manual-signed-inline input[type="checkbox"],.manual-signed-checkbox{appearance:none!important;-webkit-appearance:none!important;display:inline-block!important;position:relative!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;margin:0!important;padding:0!important;border:2px solid #2563eb!important;border-radius:999px!important;background:#fff!important;box-shadow:inset 0 0 0 4px #fff!important;vertical-align:middle!important}.manual-signed-inline input[type="checkbox"]:checked,.manual-signed-checkbox:checked{background:#2563eb!important;box-shadow:inset 0 0 0 4px #fff!important}.manual-signed-picker small{display:block!important;margin-top:8px!important;color:var(--muted)!important;font-size:12px!important;line-height:1.55!important}.ipa-actions-panel.cert-action-panel-v10{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:end!important;gap:14px!important}.mark-signed-card-form{display:flex!important;margin:0!important}.mark-signed-card-form .link-btn,.app-compact-mark-signed .link-btn,.link-btn.success{border-color:rgba(22,163,74,.24)!important;background:rgba(22,163,74,.09)!important;color:#15803d!important}.landing-current-icon{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important}.landing-current-icon img{width:64px!important;height:64px!important;min-width:64px!important;max-width:64px!important;object-fit:cover!important;border-radius:16px!important}@media(max-width:720px){.ipa-actions-panel.cert-action-panel-v10{grid-template-columns:1fr!important}.mark-signed-card-form,.mark-signed-card-form .link-btn,.delete-card-form,.delete-card-form .link-btn,.sign-card-form,.sign-card-form .btn{width:100%!important}.manual-signed-shell{align-items:flex-start!important}.manual-signed-inline{font-size:13px!important}.form label.manual-signed-picker, label.manual-signed-picker{width:100%!important}}


/* HOTFIX 20260615D: giao diện tick "IPA đã Sign sẵn" */
.form label.manual-signed-picker,
label.manual-signed-picker{
  display:block!important;width:100%!important;margin:14px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;
}
.manual-signed-shell{
  display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;min-height:62px!important;height:auto!important;padding:13px 16px!important;overflow:visible!important;border:1px solid rgba(37,99,235,.18)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(6,182,212,.05),#fff)!important;box-shadow:var(--shadow-tiny)!important;
}
.manual-signed-shell>svg,
.manual-signed-shell>i{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;flex:0 0 21px!important;margin:0!important;color:#2563eb!important;align-self:center!important;
}
.manual-signed-inline{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;width:100%!important;min-width:0!important;text-align:left!important;color:#334155!important;font-weight:900!important;line-height:1.4!important;white-space:normal!important;cursor:pointer!important;
}
.manual-signed-inline .manual-signed-checkbox{
  position:absolute!important;left:0!important;top:50%!important;width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:0!important;opacity:0!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(-50%)!important;z-index:2!important;
}
.manual-signed-tick{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;min-height:24px!important;max-height:24px!important;flex:0 0 24px!important;margin:0!important;border:2px solid #2563eb!important;border-radius:9px!important;background:#fff!important;box-shadow:inset 0 0 0 3px #fff,0 6px 16px rgba(37,99,235,.12)!important;
}
.manual-signed-tick::after{
  content:""!important;display:block!important;width:7px!important;height:12px!important;border:solid #fff!important;border-width:0 3px 3px 0!important;transform:rotate(45deg) scale(.75)!important;opacity:0!important;margin-top:-2px!important;
}
.manual-signed-checkbox:checked + .manual-signed-tick{
  background:#2563eb!important;border-color:#2563eb!important;box-shadow:0 8px 18px rgba(37,99,235,.20)!important;
}
.manual-signed-checkbox:checked + .manual-signed-tick::after{opacity:1!important;transform:rotate(45deg) scale(1)!important;}
.manual-signed-checkbox:focus-visible + .manual-signed-tick{box-shadow:0 0 0 4px rgba(37,99,235,.16)!important;}
.manual-signed-text{display:block!important;min-width:0!important;overflow-wrap:anywhere!important;}
.manual-signed-picker small{display:block!important;margin-top:8px!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;line-height:1.5!important;}
@media(max-width:720px){
  .manual-signed-shell{min-height:60px!important;padding:13px!important;align-items:center!important;}
  .manual-signed-inline{font-size:13.5px!important;gap:10px!important;}
  .manual-signed-tick{width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;flex-basis:23px!important;}
  .manual-signed-inline .manual-signed-checkbox{width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;}
}


/* FINAL FIX 20260615D: clean manual-signed checkbox UI on desktop/mobile */
label.manual-signed-picker,.form label.manual-signed-picker{display:block!important;width:100%!important;margin:14px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important}
label.manual-signed-picker .manual-signed-shell{display:block!important;width:100%!important;min-height:0!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
label.manual-signed-picker .manual-signed-control{position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:58px!important;padding:14px 16px!important;border:1px solid rgba(37,99,235,.18)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(37,99,235,.07),rgba(6,182,212,.05),#fff)!important;box-shadow:var(--shadow-tiny)!important;cursor:pointer!important;user-select:none!important}
label.manual-signed-picker .manual-signed-checkbox{position:absolute!important;left:16px!important;top:16px!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;min-height:1px!important;max-height:1px!important;margin:0!important;padding:0!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;appearance:none!important;-webkit-appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important}
label.manual-signed-picker .manual-signed-check{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;min-height:24px!important;max-height:24px!important;border:2px solid #2563eb!important;border-radius:8px!important;background:#fff!important;box-shadow:inset 0 0 0 3px #fff,0 4px 12px rgba(37,99,235,.10)!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease!important}
label.manual-signed-picker .manual-signed-check::after{content:""!important;position:absolute!important;left:7px!important;top:3px!important;width:7px!important;height:13px!important;border:solid #fff!important;border-width:0 3px 3px 0!important;transform:rotate(45deg) scale(.65)!important;opacity:0!important;transition:opacity .15s ease,transform .15s ease!important}
label.manual-signed-picker .manual-signed-checkbox:checked + .manual-signed-check{background:#2563eb!important;border-color:#2563eb!important;box-shadow:0 6px 16px rgba(37,99,235,.18)!important}
label.manual-signed-picker .manual-signed-checkbox:checked + .manual-signed-check::after{opacity:1!important;transform:rotate(45deg) scale(1)!important}
label.manual-signed-picker .manual-signed-text{display:block!important;min-width:0!important;color:#334155!important;font-weight:900!important;line-height:1.42!important;text-align:left!important;white-space:normal!important;font-size:14px!important}
label.manual-signed-picker small{display:block!important;margin-top:8px!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;line-height:1.55!important}
@media(max-width:720px){label.manual-signed-picker .manual-signed-control{align-items:flex-start!important;min-height:60px!important;padding:13px!important;border-radius:18px!important}label.manual-signed-picker .manual-signed-check{width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;flex-basis:23px!important}label.manual-signed-picker .manual-signed-text{font-size:13.5px!important;line-height:1.45!important}}

/* FINAL FIX 20260615E: Trang Cài không còn đánh dấu đã Sign tại form/list */
.landing-manual-signed,.app-compact-mark-signed{display:none!important}

/* appinstall apk-sign-ui-hotfix-v10: Sign card layout + APK Android upload */
.ipa-item-card{align-items:stretch!important;overflow:visible!important}
.ipa-item-card .ipa-actions-panel,.ipa-item-card .row-actions{margin-top:0!important}
.ipa-item-card .sign-progress-box{width:100%!important;max-width:100%!important;box-sizing:border-box!important;grid-column:1 / -1!important;margin:12px 0!important;clear:both!important}
.ipa-item-card .sign-card-form > [data-progress-box],.ipa-item-card .sign-card-form .progress-box[data-progress-box],.ipa-actions-panel > .progress-box[data-progress-box],.cert-action-panel-v10 > .progress-box[data-progress-box]{display:none!important}
.ipa-item-card .ipa-actions-panel.cert-action-panel-v10{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:end!important;gap:14px!important;width:100%!important;max-width:100%!important}
.ipa-item-card .sign-card-form{display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(150px,auto)!important;align-items:end!important;gap:12px!important;min-width:0!important;width:100%!important;margin:0!important}
.ipa-item-card .sign-card-form label{min-width:0!important;width:100%!important;margin:0!important}
.ipa-item-card .sign-card-form .cert-select-shell,.ipa-item-card .sign-card-form select{width:100%!important;max-width:100%!important}
.ipa-item-card .sign-card-form .btn,.ipa-item-card .mark-signed-card-form .link-btn,.ipa-item-card .delete-card-form .link-btn{min-height:54px!important;white-space:nowrap!important}
.ipa-item-card .mark-signed-card-form,.ipa-item-card .delete-card-form{display:flex!important;align-items:stretch!important;margin:0!important}
.ipa-item-card .ipa-actions-panel.apk-action-panel{grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch!important}
.apk-actions-note{display:flex!important;align-items:center!important;gap:10px!important;min-height:54px!important;padding:13px 15px!important;border:1px solid rgba(16,185,129,.22)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(16,185,129,.10),rgba(59,130,246,.06),#fff)!important;color:#166534!important;font-weight:850!important;line-height:1.45!important;min-width:0!important}
.apk-actions-note svg,.apk-actions-note i{width:20px!important;height:20px!important;flex:0 0 20px!important;color:#16a34a!important}
.apk-actions-note span{min-width:0!important;overflow-wrap:anywhere!important}
.apk-auto-note{border-color:rgba(16,185,129,.24)!important;background:linear-gradient(135deg,rgba(16,185,129,.08),rgba(37,99,235,.04),#fff)!important;color:#334155!important}
.uploading-apk [data-ios-only],.is-hidden-for-apk{display:none!important}
.ipa-status-stack .badge.info{background:rgba(14,165,233,.10)!important;color:#0369a1!important;border-color:rgba(14,165,233,.20)!important}
.ipa-status-stack .badge.success{background:rgba(22,163,74,.10)!important;color:#15803d!important;border-color:rgba(22,163,74,.20)!important}
.install-platform-badge{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 11px;border-radius:999px;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.16);color:#1d4ed8;font-weight:900;font-size:12px;line-height:1}
.install-platform-badge.android{background:rgba(22,163,74,.10);border-color:rgba(22,163,74,.18);color:#15803d}
.install-platform-badge svg,.install-platform-badge i{width:16px;height:16px}
.install-guide-grid.android-guide article{border-color:rgba(22,163,74,.16)!important;background:linear-gradient(135deg,rgba(22,163,74,.08),rgba(37,99,235,.04),#fff)!important}
@media (max-width:1080px){.ipa-item-card .ipa-actions-panel.cert-action-panel-v10,.ipa-item-card .ipa-actions-panel.apk-action-panel{grid-template-columns:1fr!important}.ipa-item-card .sign-card-form{grid-template-columns:1fr!important}.ipa-item-card .sign-card-form .btn,.ipa-item-card .mark-signed-card-form,.ipa-item-card .delete-card-form,.ipa-item-card .mark-signed-card-form .link-btn,.ipa-item-card .delete-card-form .link-btn{width:100%!important}.apk-actions-note{align-items:flex-start!important}}

/* HOTFIX 20260616 v14: tách Kho IPA/Kho APK và link tải iOS/Android */
.library-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important}
.library-top-actions .btn.active{background:linear-gradient(135deg,var(--primary),var(--cyan))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 14px 30px rgba(37,99,235,.18)!important}
.ipa-ios-library-hero .ipa-upload-card{border-color:rgba(37,99,235,.16)!important}
.apk-library-hero .ipa-upload-card{border-color:rgba(22,163,74,.20)!important;background:linear-gradient(135deg,rgba(22,163,74,.05),rgba(6,182,212,.04),#fff)!important}
.direct-download-panel{border-color:rgba(14,165,233,.20)!important;background:linear-gradient(135deg,rgba(14,165,233,.07),rgba(37,99,235,.04),#fff)!important}
.direct-download-panel .system-link i,.direct-download-panel .system-link svg{color:#0284c7!important}
.app-compact-actions .copy-link span{white-space:normal!important;line-height:1.25!important}
.app-compact-card.apk-app-card{border-color:rgba(22,163,74,.16)!important}
.app-compact-card.ipa-ios-app-card{border-color:rgba(37,99,235,.14)!important}
@media(max-width:720px){.library-top-actions{justify-content:stretch!important}.library-top-actions .btn{width:100%!important;justify-content:center!important}.app-compact-actions{grid-template-columns:1fr!important}.app-compact-actions .landing-open-btn,.app-compact-actions .link-btn,.app-compact-actions .btn,.app-compact-actions form{width:100%!important}}

/* BEGIN APPINSTALL ANDROID LANDING ICON FIX V18 */
.app-icon.app-icon-apk,
.onepage-app-head .app-icon.app-icon-apk,
.install-pro .app-icon.app-icon-apk {
  background: linear-gradient(135deg, #f8fbff, #eef7ff) !important;
}
.app-icon.app-icon-apk img,
.onepage-app-head .app-icon.app-icon-apk img,
.install-pro .app-icon.app-icon-apk img,
img[data-app-file-type="apk"] {
  object-fit: contain !important;
  background: transparent !important;
}
/* END APPINSTALL ANDROID LANDING ICON FIX V18 */

/* APPINSTALL_NO_DUPLICATE_BUTTONS_V1
   Bỏ cụm nút tắt lặp trong sidebar trên PC/mobile.
   Giữ lại menu chính, topbar và các nút trong từng trang.
*/
.sidebar-actions,
body .sidebar-actions,
body.sidebar-collapsed .sidebar-actions,
body.sidebar-collapsed .sidebar-actions .btn,
body.sidebar-collapsed .sidebar-actions .btn span {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Khi mở menu trên điện thoại, ẩn thanh dưới để không bị đè/trùng nút. */
@media (max-width: 960px) {
  body.no-scroll .mobile-tabbar,
  body.nav-open .mobile-tabbar,
  .sidebar.open ~ .mobile-tabbar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .topbar .desktop-only,
  .topbar-actions .desktop-only {
    display: none !important;
  }
}

/* PC không dùng thanh mobile. */
@media (min-width: 961px) {
  .mobile-header,
  .mobile-tabbar {
    display: none !important;
  }
}

/* APPINSTALL_GLOBAL_DATA_DISPLAY_V1 */
.appinstall-inline-app {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.appinstall-inline-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  background: #f5f7fb !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
}

.appinstall-inline-app > div {
  min-width: 0 !important;
}

.appinstall-inline-app strong,
.appinstall-inline-app span {
  max-width: 280px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .appinstall-inline-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
  }

  .appinstall-inline-app strong,
  .appinstall-inline-app span {
    max-width: 190px !important;
  }
}


/* APPINSTALL_DASHBOARD_RECENT_MOBILE_ALIGN_20260618
   Căn lại mục Trang Cài gần đây trên mobile: không để icon/tên/link tràn khỏi thẻ. */
.app-recent-card,
.app-recent-card * {
  min-width: 0;
}

.app-recent-card .dashboard-recent-table td > a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-recent-card .dashboard-recent-table .badge {
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .app-recent-card {
    overflow: hidden !important;
  }

  .app-recent-card .table-wrap,
  .app-recent-card .dashboard-recent-table,
  .app-recent-card .dashboard-recent-table tbody,
  .app-recent-card .dashboard-recent-table tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .app-recent-card .dashboard-recent-table tr {
    overflow: hidden !important;
  }

  .app-recent-card .dashboard-recent-table td {
    display: grid !important;
    grid-template-columns: minmax(82px, 30%) minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: right !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .app-recent-card .dashboard-recent-table td::before {
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    width: auto !important;
    text-align: left !important;
    align-self: center !important;
  }

  .app-recent-card .dashboard-recent-table td > * {
    grid-column: 2 !important;
    justify-self: end !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .app-recent-card .dashboard-recent-table td[data-label="Tên"] > .appinstall-inline-app {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  .app-recent-card .dashboard-recent-table .appinstall-inline-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .app-recent-card .dashboard-recent-table .appinstall-inline-app > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .app-recent-card .dashboard-recent-table .appinstall-inline-app strong,
  .app-recent-card .dashboard-recent-table .appinstall-inline-app span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.35 !important;
  }

  .app-recent-card .dashboard-recent-table td[data-label="Link cài"] a {
    display: block !important;
    direction: ltr !important;
  }

  .app-recent-card .dashboard-recent-table td[data-label=""]::before {
    display: none !important;
  }

  .app-recent-card .dashboard-recent-table td.dashboard-recent-actions {
    display: flex !important;
    justify-content: flex-end !important;
    padding-top: 14px !important;
  }
}

@media (max-width: 420px) {
  .app-recent-card .dashboard-recent-table td {
    grid-template-columns: minmax(78px, 29%) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  .app-recent-card .dashboard-recent-table td[data-label="Tên"] > .appinstall-inline-app {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .app-recent-card .dashboard-recent-table .appinstall-inline-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 11px !important;
  }
}

/* APPINSTALL_CERTIFICATE_DETAILS_PAGE_20260618
   Trang chứng chỉ lấy thông tin thật từ p12 + mobileprovision và bỏ ô nhập tên thủ công. */
.cert-upload-grid{align-items:start!important}
.cert-rule-card{overflow:hidden!important}
.cert-mini-list{display:grid;gap:12px;margin-top:14px}
.cert-mini-list>div{display:grid;gap:3px;padding:13px 14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.cert-mini-list strong{font-size:13px;color:var(--heading)}
.cert-mini-list span{font-size:12px;color:var(--muted);line-height:1.5}
.cert-list-card{overflow:hidden!important}
.cert-card-list{display:grid;gap:16px;min-width:0}
.cert-info-card{display:grid;gap:15px;min-width:0;padding:18px;border:1px solid rgba(203,213,225,.82);border-radius:24px;background:linear-gradient(145deg,#fff,rgba(248,251,255,.96));box-shadow:0 12px 34px rgba(15,23,42,.06)}
.cert-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0;padding-bottom:14px;border-bottom:1px solid rgba(226,232,240,.9)}
.cert-title-block{display:grid;gap:5px;min-width:0}
.cert-title-block strong{max-width:100%;font-size:clamp(17px,2vw,22px);font-weight:900;line-height:1.22;color:var(--heading);overflow-wrap:anywhere}
.cert-title-block span{font-size:14px;font-weight:800;color:#64748b;overflow-wrap:anywhere}
.cert-title-block small{font-size:12px;font-weight:750;color:#94a3b8;overflow-wrap:anywhere}
.cert-good{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border-radius:999px;font-size:13px;font-weight:900;letter-spacing:.02em;border:1px solid rgba(148,163,184,.22);background:#f8fafc;color:#475569;white-space:nowrap}
.cert-good.success{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.22);color:#16a34a}
.cert-good.danger{background:rgba(225,29,72,.10);border-color:rgba(225,29,72,.20);color:#e11d48}
.cert-good.warning{background:rgba(217,119,6,.10);border-color:rgba(217,119,6,.20);color:#a16207}
.cert-detail-panel{display:grid;gap:14px;min-width:0}
.cert-section-title{margin-top:2px;padding:10px 12px;border-radius:16px;background:#f4f7fb;color:#64748b;font-size:13px;font-weight:900;letter-spacing:.02em}
.cert-kv{display:grid;grid-template-columns:minmax(128px,.34fr) minmax(0,1fr);gap:0;min-width:0;margin:0;border:1px solid rgba(226,232,240,.9);border-radius:18px;background:#fff;overflow:hidden}
.cert-kv dt,.cert-kv dd{min-width:0;margin:0;padding:10px 12px;border-bottom:1px solid rgba(226,232,240,.78);font-size:13px;line-height:1.42;overflow-wrap:anywhere}
.cert-kv dt{font-weight:900;color:#64748b;text-align:right;background:#fbfdff}
.cert-kv dd{font-weight:750;color:#334155}
.cert-kv dt:nth-last-child(2),.cert-kv dd:last-child{border-bottom:0}
.cert-device-list{display:grid;gap:8px;min-width:0}
.cert-device-list>div,.cert-device-box{display:grid;grid-template-columns:minmax(92px,.22fr) minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;border:1px solid rgba(226,232,240,.86);border-radius:16px;background:#fff;min-width:0}
.cert-device-list span,.cert-device-box strong{font-size:12px;font-weight:900;color:#64748b;text-align:right}
.cert-device-list strong,.cert-device-box span{min-width:0;font-size:13px;font-weight:850;color:#334155;overflow-wrap:anywhere}
.cert-warning-list{display:grid;gap:7px;margin-top:2px}
.cert-warning-list span{padding:9px 11px;border-radius:14px;border:1px solid rgba(217,119,6,.18);background:rgba(217,119,6,.08);color:#92400e;font-size:12px;font-weight:800;line-height:1.45;overflow-wrap:anywhere}
.cert-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding-top:2px}
.cert-card-actions small{min-width:0;color:#94a3b8;font-size:12px;font-weight:750;overflow-wrap:anywhere}
.admin-cert-card-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr))}
.admin-cert-info-card{align-content:start}
.admin-cert-kv{grid-template-columns:minmax(120px,.30fr) minmax(0,1fr)}

@media (max-width:720px){
  .cert-upload-card .form label{font-size:13px!important}
  .cert-info-card{padding:15px;border-radius:21px;gap:13px}
  .cert-info-head{gap:10px;align-items:flex-start}
  .cert-title-block strong{font-size:18px}
  .cert-title-block span{font-size:13px}
  .cert-good{min-height:30px;padding:6px 10px;font-size:12px}
  .cert-kv{display:block;border-radius:17px}
  .cert-kv dt,.cert-kv dd{display:block;text-align:left;border-bottom:0!important;padding:0 12px}
  .cert-kv dt{padding-top:11px;background:#fff;font-size:12px;color:#94a3b8;text-transform:none;letter-spacing:0}
  .cert-kv dd{padding-top:2px;padding-bottom:11px;border-bottom:1px solid rgba(226,232,240,.78)!important;font-size:13px}
  .cert-kv dd:last-child{border-bottom:0!important}
  .cert-device-list>div,.cert-device-box{grid-template-columns:1fr;gap:3px;padding:10px 12px}
  .cert-device-list span,.cert-device-box strong{text-align:left;color:#94a3b8}
  .cert-card-actions{align-items:stretch;flex-direction:column}
  .cert-card-actions form,.cert-card-actions .link-btn{width:100%}
}


/* APPINSTALL_CERT_APK_ADMIN_COMPACT_FIX_20260618 */
.cert-upload-compact-card{max-width:760px!important;margin-inline:auto!important}
.cert-upload-form{display:grid!important;gap:14px!important}
.cert-upload-form .upload-title-field,.cert-upload-form input[name="landing_title"],.cert-upload-form input[name="custom_landing_title"],.cert-upload-form input[name="upload_landing_title"],.cert-upload-form input[name="upload_title_token"]{display:none!important}
.cert-compact-list-card{overflow:hidden!important}
.cert-card-list-compact{gap:14px!important}
.cert-compact-card{padding:16px!important;border-radius:22px!important;gap:13px!important}
.cert-compact-head{padding-bottom:12px!important;align-items:center!important}
.cert-summary-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;gap:10px!important;min-width:0!important}
.cert-summary-grid>div{min-width:0!important;padding:11px 12px!important;border:1px solid rgba(226,232,240,.9)!important;border-radius:16px!important;background:#fff!important;display:grid!important;gap:4px!important}
.cert-summary-grid span{font-size:11px!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-weight:900!important;color:#94a3b8!important}
.cert-summary-grid strong{min-width:0!important;font-size:13px!important;line-height:1.35!important;color:#334155!important;font-weight:850!important;overflow-wrap:anywhere!important}
.cert-password-text{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;background:#f8fafc!important;border-radius:10px!important;padding:3px 6px!important;display:inline-block!important}
.compact-warning-list{gap:6px!important}
.compact-cert-actions{padding-top:0!important}
.admin-cert-card-list.cert-card-list-compact{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr))!important}
.admin-cert-summary-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important}
@media (max-width:720px){
  .cert-upload-compact-card{max-width:none!important}
  .cert-compact-card{padding:14px!important;border-radius:20px!important}
  .cert-compact-head{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important}
  .cert-title-block strong{font-size:16px!important;line-height:1.25!important}
  .cert-title-block span,.cert-title-block small{font-size:12px!important}
  .cert-summary-grid{grid-template-columns:1fr!important;gap:8px!important}
  .cert-summary-grid>div{padding:10px 11px!important;border-radius:14px!important}
  .cert-summary-grid strong{font-size:12.5px!important}
  .compact-cert-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .compact-cert-actions form,.compact-cert-actions button{width:100%!important}
}

/* APPINSTALL_PROFILE_AVATAR_PASSWORD_V8_START */
.app-profile-avatar-link,.topbar-profile-avatar,.mobile-profile-avatar{text-decoration:none;position:relative;color:#fff;isolation:isolate}
.app-profile-avatar-link::after,.topbar-profile-avatar::after,.mobile-profile-avatar::after{content:"";position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:999px;background:linear-gradient(135deg,#315efb,#06b6d4);border:3px solid #fff;box-shadow:0 8px 16px rgba(37,99,235,.22)}
.app-profile-avatar-link:hover,.topbar-profile-avatar:hover,.mobile-profile-avatar:hover{transform:translateY(-1px)}
.topbar-profile-avatar,.mobile-profile-avatar{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border-radius:17px;overflow:hidden;background:var(--grad);box-shadow:var(--shadow-tiny);font-weight:900}
.topbar-profile-avatar img,.mobile-profile-avatar img{width:100%;height:100%;object-fit:cover}.topbar-profile-avatar span,.mobile-profile-avatar span{font-size:16px;color:#fff}.profile-shell{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(310px,.72fr);gap:var(--gap);align-items:start}.profile-card{overflow:hidden}.profile-head .eyebrow,.profile-card .eyebrow{display:block;margin-bottom:7px;color:var(--primary);font-size:12px;font-weight:900;letter-spacing:.16em}.profile-avatar-editor{display:flex;align-items:center;gap:18px;min-width:0;padding:16px;border:1px solid rgba(37,99,235,.12);border-radius:26px;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(6,182,212,.04),#fff);box-shadow:var(--shadow-tiny)}.profile-avatar-picker{position:relative;display:grid!important;place-items:center!important;flex:0 0 auto;width:132px;height:132px;margin:0!important;padding:0!important;border:0!important;border-radius:34px!important;overflow:hidden!important;background:var(--grad)!important;box-shadow:0 20px 44px rgba(37,99,235,.20)!important;cursor:pointer;color:#fff!important}.profile-avatar-picker input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}.profile-avatar-preview{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;overflow:hidden}.profile-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover}.profile-avatar-preview b{font-size:46px;color:#fff}.profile-avatar-edit{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 9px;border-radius:16px;background:rgba(15,23,42,.62);color:#fff;font-size:12px;font-weight:900;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.profile-avatar-edit svg{width:15px;height:15px}.profile-avatar-note{min-width:0;display:flex;flex-direction:column;gap:6px}.profile-avatar-note strong{font-size:19px;color:var(--heading);line-height:1.2;overflow-wrap:anywhere}.profile-avatar-note span{color:var(--muted);font-weight:800;overflow-wrap:anywhere}.profile-avatar-note small{color:var(--soft);line-height:1.55}.profile-remove-avatar{margin-top:8px!important;width:max-content;max-width:100%}.profile-field-grid{--gap:14px}.profile-form .btn,.profile-password-form .btn{align-self:flex-start}.profile-password-hint{display:flex;flex-direction:column;gap:5px}.profile-password-hint strong{color:var(--heading)}.profile-password-hint small{color:var(--muted);font-weight:750;line-height:1.55}@media(max-width:1080px){.profile-shell{grid-template-columns:1fr}}@media(max-width:720px){.profile-avatar-editor{align-items:stretch;flex-direction:column;padding:14px}.profile-avatar-picker{width:112px!important;height:112px!important;border-radius:30px!important}.profile-field-grid{grid-template-columns:1fr!important}.profile-form .btn,.profile-password-form .btn{width:100%;align-self:stretch}.profile-remove-avatar{width:100%}.mobile-profile-avatar{display:grid;width:44px;height:44px}}
/* APPINSTALL_PROFILE_AVATAR_PASSWORD_V8_END */


/* APPINSTALL_PROFILE_LAYOUT_DESKTOP_DEDUPE_V11_START */
.ai-account-card[data-profile-card-link]{cursor:pointer;outline:none}
.ai-account-card[data-profile-card-link]:focus-visible{box-shadow:0 0 0 4px rgba(49,94,251,.18),var(--shadow-tiny)}
.profile-avatar-editor[data-profile-avatar-editor]{cursor:pointer}
.profile-avatar-editor[data-profile-avatar-editor] .profile-remove-avatar,
.profile-avatar-editor[data-profile-avatar-editor] input,
.profile-avatar-editor[data-profile-avatar-editor] button,
.profile-avatar-editor[data-profile-avatar-editor] a{cursor:auto}
.profile-field-grid label{min-width:0}
.profile-field-grid input{width:100%}
.profile-form input[disabled][type="email"]{background:rgba(148,163,184,.12)!important;color:#64748b!important;cursor:not-allowed!important}
@media (min-width:981px){
  .topbar .topbar-actions a.btn[href$="/ipa-library"],
  .topbar .topbar-actions a.btn[href$="/apk-library"],
  .topbar .topbar-actions a.btn[href$="/apps/create"]{display:none!important}
  .side-nav a[href$="/admin/apks"]{display:none!important}
}
/* APPINSTALL_PROFILE_LAYOUT_DESKTOP_DEDUPE_V11_END */


/* APPINSTALL_REMOVE_PAGE_QUICK_BUTTONS_V12: ẩn 3 nút nhanh trùng ở Tổng quan/Kho IPA/Kho APK/Trang Cài trên điện thoại và máy tính. */
body:not(.admin-route) .topbar-actions>a.btn[href*="/ipa-library"],
body:not(.admin-route) .topbar-actions>a.btn[href*="/apk-library"],
body:not(.admin-route) .topbar-actions>a.btn[href*="/apps/create"],
body:not(.admin-route) .page-head>.actions>a.btn[href*="/ipa-library"],
body:not(.admin-route) .page-head>.actions>a.btn[href*="/apk-library"],
body:not(.admin-route) .page-head>.actions>a.btn[href*="/apps/create"],
body:not(.admin-route) .page-head>.page-actions>a.btn[href*="/ipa-library"],
body:not(.admin-route) .page-head>.page-actions>a.btn[href*="/apk-library"],
body:not(.admin-route) .page-head>.page-actions>a.btn[href*="/apps/create"],
body:not(.admin-route) .page-head .library-top-actions>a.btn[href*="/ipa-library"],
body:not(.admin-route) .page-head .library-top-actions>a.btn[href*="/apk-library"],
body:not(.admin-route) .page-head .library-top-actions>a.btn[href*="/apps/create"],
body:not(.admin-route) .empty-state>.inline-actions>a.btn[href*="/ipa-library"],
body:not(.admin-route) .empty-state>.inline-actions>a.btn[href*="/apk-library"],
body:not(.admin-route) .empty-state>.inline-actions>a.btn[href*="/apps/create"]{display:none!important}
body:not(.admin-route) .page-head>.actions:empty,
body:not(.admin-route) .page-head>.page-actions:empty,
body:not(.admin-route) .page-head .library-top-actions:empty,
body:not(.admin-route) .empty-state>.inline-actions:empty{display:none!important}


/* APPINSTALL_ACCOUNTBAR_CLEAN_V18_FALLBACK */
@import url("/assets/css/appinstall-accountbar-clean-v18.css?v=18");


/* APPINSTALL_MEMBER_COMPARE_COLUMNS_V24_START */
.appinstall-system-swal-v24{position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:20px;font-family:inherit}.appinstall-system-swal-v24.is-hide{opacity:0;transition:opacity .18s ease}.appinstall-system-swal-v24-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.46);backdrop-filter:blur(10px)}.appinstall-system-swal-v24-box{position:relative;width:min(540px,100%);background:rgba(255,255,255,.98);border:1px solid rgba(191,219,254,.95);border-radius:28px;padding:28px;text-align:center;color:#0f172a;box-shadow:0 26px 88px rgba(15,23,42,.24)}.appinstall-system-swal-v24-x{position:absolute;top:14px;right:16px;border:0;background:#f1f5f9;border-radius:999px;width:36px;height:36px;font-size:25px;line-height:1;cursor:pointer;color:#64748b}.appinstall-system-swal-v24-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary,#2563eb),var(--cyan,#06b6d4));color:#fff;font-weight:950;font-size:24px;box-shadow:0 14px 34px rgba(37,99,235,.28)}.appinstall-system-swal-v24-box h2{margin:0 0 10px;font-size:clamp(22px,4vw,30px);line-height:1.18}.appinstall-system-swal-v24-message{font-size:15px;line-height:1.72;color:#475569;white-space:normal}.appinstall-system-swal-v24-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.swal2-popup.appinstall-swal-popup-v24{border-radius:28px!important;border:1px solid rgba(191,219,254,.95)!important;box-shadow:0 26px 88px rgba(15,23,42,.24)!important}.appinstall-member-compare-v24{margin:18px 0 22px;padding:22px;border-radius:30px;border:1px solid rgba(37,99,235,.16);background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(239,246,255,.74));box-shadow:0 20px 62px rgba(15,23,42,.08);overflow:hidden}.member-compare-head-v24{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.member-compare-head-v24 h2{margin:0;font-size:clamp(22px,3vw,32px);line-height:1.15}.member-compare-head-v24 .muted{margin-top:7px}.member-current-pill-v24{flex:0 0 auto;min-width:168px;padding:13px 15px;border-radius:20px;border:1px solid rgba(37,99,235,.18);background:rgba(239,246,255,.9);display:grid;gap:3px}.member-current-pill-v24 span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:950;color:#64748b}.member-current-pill-v24 strong{font-size:16px;color:#0f172a}.member-current-pill-v24.vip{background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(6,182,212,.12));border-color:rgba(99,102,241,.24)}.member-compare-columns-v24{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.member-plan-column-v24{position:relative;border:1px solid rgba(226,232,240,.92);border-radius:24px;background:rgba(255,255,255,.96);overflow:hidden;box-shadow:0 14px 42px rgba(15,23,42,.055)}.member-plan-column-v24.is-current{border-color:rgba(37,99,235,.38);box-shadow:0 18px 48px rgba(37,99,235,.12)}.member-plan-column-v24.vip{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,246,255,.82))}.member-plan-title-v24{padding:16px 16px 14px;border-bottom:1px solid rgba(226,232,240,.9);display:grid;gap:5px}.member-plan-title-v24 span{font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#2563eb}.member-plan-title-v24 strong{font-size:clamp(18px,2.6vw,24px);line-height:1.12;color:#0f172a}.member-plan-title-v24 em{width:max-content;padding:4px 9px;border-radius:999px;background:rgba(34,197,94,.13);color:#15803d;font-size:11px;font-style:normal;font-weight:950}.member-plan-list-v24{display:grid}.member-plan-item-v24{min-height:62px;padding:12px 16px;border-bottom:1px solid rgba(226,232,240,.78);display:grid;gap:5px}.member-plan-item-v24:last-child{border-bottom:0}.member-plan-item-v24 span{font-size:12px;font-weight:900;color:#64748b;line-height:1.25}.member-plan-item-v24 b{font-size:15px;line-height:1.28;color:#0f172a;overflow-wrap:anywhere}.member-plan-column-v24.is-current .member-plan-item-v24 b{color:#1d4ed8}.member-compare-footer-v24{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding:13px 15px;border-radius:20px;background:rgba(248,250,252,.88);border:1px solid rgba(226,232,240,.86);font-size:13px;font-weight:800;color:#64748b}.member-compare-footer-v24 .btn{white-space:nowrap}@media(max-width:760px){.appinstall-system-swal-v24{align-items:flex-end;padding:14px}.appinstall-system-swal-v24-box{border-radius:24px;padding:24px 18px 18px}.appinstall-system-swal-v24-actions .btn{width:100%;justify-content:center}.appinstall-member-compare-v24{margin:14px 0 18px;padding:14px;border-radius:24px}.member-compare-head-v24{display:grid;gap:12px}.member-current-pill-v24{min-width:0}.member-compare-columns-v24{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.member-plan-column-v24{border-radius:20px}.member-plan-title-v24{padding:13px 11px}.member-plan-title-v24 span{font-size:10px}.member-plan-title-v24 strong{font-size:17px}.member-plan-item-v24{min-height:68px;padding:10px 11px}.member-plan-item-v24 span{font-size:10.5px}.member-plan-item-v24 b{font-size:13px}.member-compare-footer-v24{display:grid;gap:12px}.member-compare-footer-v24 .btn{width:100%;justify-content:center}}@media(max-width:380px){.member-compare-columns-v24{gap:8px}.member-plan-title-v24{padding:12px 9px}.member-plan-item-v24{padding:9px 9px}.member-plan-item-v24 b{font-size:12px}}
/* APPINSTALL_MEMBER_COMPARE_COLUMNS_V24_END */


/* APPINSTALL_SWAL_COMPARE_APPS_POLICY_V25 */
.appinstall-system-swal-v25{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;font-family:inherit;color:#0f172a}.appinstall-system-swal-v25.is-hiding{opacity:0;transition:opacity .18s ease}.appinstall-system-swal-backdrop-v25{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.appinstall-system-swal-box-v25{position:relative;width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:rgba(255,255,255,.98);border:1px solid rgba(191,219,254,.95);box-shadow:0 26px 90px rgba(15,23,42,.28);border-radius:30px;padding:30px;text-align:center;outline:0}.appinstall-system-swal-x-v25{position:absolute;top:14px;right:16px;width:36px;height:36px;border:0;border-radius:999px;background:#eef2ff;color:#64748b;font-size:26px;font-weight:900;line-height:1;cursor:pointer}.appinstall-system-swal-icon-v25{width:58px;height:58px;margin:0 auto 15px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary,#2563eb),var(--cyan,#06b6d4));color:#fff;font-weight:950;font-size:25px;box-shadow:0 16px 36px rgba(37,99,235,.28)}.appinstall-system-swal-box-v25 h2{margin:0 34px 10px;font-size:clamp(23px,4vw,32px);line-height:1.18}.appinstall-system-swal-message-v25{font-size:15px;line-height:1.7;color:#475569;white-space:normal;word-break:break-word}.appinstall-system-swal-actions-v25{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}.appinstall-system-swal-actions-v25 .btn{min-height:44px}.appinstall-member-compare-v25{margin:18px 0 22px;padding:22px;border-radius:30px;border:1px solid rgba(37,99,235,.16);background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,246,255,.78));box-shadow:0 20px 62px rgba(15,23,42,.08);overflow:hidden}.member-compare-head-v25{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.member-compare-head-v25 h2{margin:0;font-size:clamp(22px,3vw,32px);line-height:1.15}.member-current-pill-v25{flex:0 0 auto;min-width:164px;padding:13px 15px;border-radius:20px;border:1px solid rgba(37,99,235,.18);background:rgba(239,246,255,.92);display:grid;gap:3px}.member-current-pill-v25 span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:950;color:#64748b}.member-current-pill-v25 strong{font-size:16px;color:#0f172a}.member-current-pill-v25.vip{background:linear-gradient(135deg,rgba(99,102,241,.13),rgba(6,182,212,.12));border-color:rgba(99,102,241,.25)}.member-compare-columns-v25{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}.member-plan-column-v25{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:24px;border:1px solid rgba(226,232,240,.92);background:rgba(255,255,255,.95);box-shadow:0 14px 36px rgba(15,23,42,.06)}.member-plan-column-v25.is-current{border-color:rgba(37,99,235,.38);box-shadow:0 18px 42px rgba(37,99,235,.10)}.member-plan-title-v25{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid rgba(226,232,240,.85)}.member-plan-title-v25 span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:13px;background:rgba(37,99,235,.1);color:#2563eb;font-weight:950}.member-plan-title-v25 strong{font-size:18px;color:#0f172a}.member-plan-badge-v25{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 9px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.member-plan-feature-v25{min-height:82px;padding:11px 12px;border-radius:17px;background:linear-gradient(135deg,rgba(248,250,252,.96),rgba(239,246,255,.66));border:1px solid rgba(226,232,240,.82)}.member-plan-feature-v25 small{display:block;margin-bottom:5px;color:#64748b;font-size:11px;line-height:1.35;text-transform:uppercase;letter-spacing:.045em;font-weight:950}.member-plan-feature-v25 strong{display:block;color:#0f172a;font-size:15px;line-height:1.35;font-weight:950}.member-compare-footer-v25{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding:13px 15px;border-radius:20px;background:rgba(248,250,252,.9);border:1px solid rgba(226,232,240,.86);font-size:13px;font-weight:800;color:#64748b}.app-compact-card{position:relative}.appinstall-landing-number-v25{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:30px;padding:0 10px;border-radius:999px;background:linear-gradient(135deg,rgba(37,99,235,.95),rgba(6,182,212,.94));color:#fff;font-size:12px;font-weight:950;box-shadow:0 12px 28px rgba(37,99,235,.22)}.app-compact-card.has-landing-number-v25 .app-compact-head{padding-left:50px}.admin-app-order-v25{font-weight:950;color:#2563eb}.admin-app-order-v25 small{display:block;margin-top:3px;color:#64748b;font-weight:800}.member-limit-note{margin:12px 0 0;padding:12px 14px;border:1px solid rgba(37,99,235,.24);border-radius:16px;background:rgba(239,246,255,.74);color:#334155;font-weight:800}.member-limit-note small{display:block;margin-top:4px;color:#64748b;font-weight:700}@media(max-width:720px){.appinstall-system-swal-v25{align-items:flex-end;padding:14px}.appinstall-system-swal-box-v25{border-radius:26px;padding:25px 18px 18px;max-height:calc(100vh - 28px)}.appinstall-system-swal-actions-v25{display:grid}.appinstall-system-swal-actions-v25 .btn{width:100%;justify-content:center}.appinstall-member-compare-v25{margin:14px 0 18px;padding:14px;border-radius:24px}.member-compare-head-v25{display:grid;gap:12px}.member-current-pill-v25{min-width:0}.member-compare-columns-v25{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.member-plan-column-v25{padding:10px;border-radius:19px;gap:8px}.member-plan-title-v25{display:grid;grid-template-columns:auto 1fr;align-items:center}.member-plan-title-v25 span{width:29px;height:29px;border-radius:11px;font-size:12px}.member-plan-title-v25 strong{font-size:14px}.member-plan-badge-v25{grid-column:1 / -1;font-size:9px}.member-plan-feature-v25{min-height:94px;padding:9px 8px;border-radius:14px}.member-plan-feature-v25 small{font-size:9.5px}.member-plan-feature-v25 strong{font-size:12.5px}.member-compare-footer-v25{display:grid;gap:12px}.member-compare-footer-v25 .btn{width:100%;justify-content:center}.appinstall-landing-number-v25{top:12px;left:12px;min-width:38px;height:28px;font-size:11px}.app-compact-card.has-landing-number-v25 .app-compact-head{padding-left:44px}}
/* APPINSTALL_SWAL_COMPARE_APPS_POLICY_V25_END */



/* APPINSTALL_SYSTEM_SWAL_V30_FIXED_LAYOUT */
.appinstall-system-swal-v20,.appinstall-system-swal-v24,.appinstall-system-swal-v25,.appinstall-system-swal-v26,.appinstall-system-swal-v27,.appinstall-system-swal-v28,.appinstall-system-swal-v29{display:none!important;visibility:hidden!important;pointer-events:none!important}.appinstall-system-swal-v30{position:fixed;top:24px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);z-index:2147483000;width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);pointer-events:none;box-sizing:border-box;color:#0f172a;font-family:inherit}.appinstall-system-swal-v30,.appinstall-system-swal-v30 *{box-sizing:border-box}.appinstall-system-swal-v30.is-hiding{opacity:0;transform:translateX(-50%) translateY(-8px);transition:opacity .18s ease,transform .18s ease}.aiswal-v30-card{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:flex-start;gap:16px;width:100%;max-height:calc(100vh - 48px);overflow:auto;pointer-events:auto;background:rgba(255,255,255,.98);border:1px solid rgba(147,197,253,.95);border-radius:24px;box-shadow:0 22px 70px rgba(15,23,42,.18);padding:18px 20px 16px 18px}.aiswal-v30-x{position:absolute;top:12px;right:12px;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:999px!important;background:#eef2ff!important;color:#64748b!important;font-size:24px!important;font-weight:900!important;line-height:1!important;letter-spacing:0!important;text-indent:0!important;white-space:nowrap!important;overflow:hidden!important;cursor:pointer!important}.aiswal-v30-x:hover{background:#e0e7ff!important;color:#1d4ed8!important}.aiswal-v30-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary,#2563eb),var(--cyan,#06b6d4));color:#fff;font-weight:950;font-size:22px;box-shadow:0 13px 30px rgba(37,99,235,.23);line-height:1}.aiswal-v30-body{min-width:0;padding-right:42px}.aiswal-v30-title{display:block;margin:1px 0 6px;color:#0f172a;font-size:19px;font-weight:950;line-height:1.25;word-break:break-word}.aiswal-v30-msg{display:block;color:#475569;font-size:14px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.aiswal-v30-actions{display:flex;justify-content:flex-start;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.aiswal-v30-btn{appearance:none;border:0;border-radius:14px;padding:11px 16px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;line-height:1.1;white-space:nowrap;cursor:pointer}.aiswal-v30-btn-close{background:#eef2ff;color:#1d4ed8}.aiswal-v30-btn-snooze{background:linear-gradient(135deg,var(--primary,#2563eb),var(--cyan,#06b6d4));color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.20)}.appinstall-system-swal-v24-backdrop,.appinstall-system-swal-backdrop-v24,.aiswal-v25-backdrop,.aiswal-v26-backdrop,.aiswal-v27-backdrop,.aiswal-v28-backdrop,.aiswal-v29-backdrop{display:none!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}@media(max-width:760px){.appinstall-system-swal-v30{top:calc(78px + env(safe-area-inset-top,0px));left:12px;right:12px;width:auto;max-width:none;transform:none}.appinstall-system-swal-v30.is-hiding{transform:translateY(-8px)}.aiswal-v30-card{grid-template-columns:44px minmax(0,1fr);gap:12px;border-radius:22px;padding:15px 14px 14px}.aiswal-v30-x{top:10px!important;right:10px!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important;font-size:22px!important}.aiswal-v30-icon{width:44px;height:44px;border-radius:16px;font-size:18px}.aiswal-v30-body{padding-right:36px}.aiswal-v30-title{font-size:16.5px}.aiswal-v30-msg{font-size:13px}.aiswal-v30-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.aiswal-v30-btn{width:100%;padding:11px 10px;font-size:13.5px}}@media(max-width:380px){.aiswal-v30-actions{grid-template-columns:1fr}.aiswal-v30-body{padding-right:34px}}
/* APPINSTALL_SYSTEM_SWAL_V30_END */

/* APPINSTALL_ADMIN_SETTINGS_UPLOAD_COMPACT_V31_START */
.settings-group-title{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 -2px;padding:11px 14px;border:1px solid var(--line);border-radius:17px;background:#f8fbff;color:#334155;font-weight:900;line-height:1.35}.settings-group-title span{font-size:13px}.settings-group-title small{color:var(--muted);font-size:12px;font-weight:700;line-height:1.45;text-align:right}.settings-tabs a small{text-transform:none;letter-spacing:0;font-weight:750;line-height:1.25}@media (max-width:960px){.settings-group-title{flex-direction:column;gap:4px}.settings-group-title small{text-align:left}}
/* APPINSTALL_ADMIN_SETTINGS_UPLOAD_COMPACT_V31_END */


/* APPINSTALL_MOBILE_HEADER_LOGOUT_ICON_20260620 */
/* Icon đăng xuất nằm trong thanh mobile-header có sẵn, không tạo thêm thanh mới */
.mobile-header-logout-form {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-header-logout-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border: 1px solid rgba(189,205,232,.85) !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.92) !important;
  color: #334155 !important;
  display: inline-grid !important;
  place-items: center !important;
  box-shadow: 0 14px 32px rgba(30,64,175,.10) !important;
  cursor: pointer !important;
}

.mobile-header-logout-btn svg {
  width: 22px !important;
  height: 22px !important;
}

.mobile-header-logout-btn:active {
  transform: scale(.96);
}

@media (min-width: 761px) {
  .mobile-header-logout-form {
    display: none !important;
  }
}






/* APPINSTALL_MEMBER_COMPARE_UNIFIED_V27_20260620 */
/* Member thường và VIP nằm chung 1 khung bảng, không tách 2 card */
.appinstall-member-compare-unified-v27 {
  border-radius: 28px !important;
  overflow: hidden !important;
  border: 1px solid rgba(189,205,232,.88) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.94)) !important;
  box-shadow: 0 22px 58px rgba(30,64,175,.08) !important;
}

.member-compare-unified-head-v27 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.member-compare-unified-head-v27 h2 {
  margin: 0 0 7px;
  letter-spacing: -.04em;
}

.member-current-unified-v27 {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(189,205,232,.9);
  background: #fff;
}

.member-current-unified-v27 span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.member-current-unified-v27 strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.member-current-unified-v27.vip {
  border-color: rgba(49,94,251,.3);
  background: linear-gradient(135deg, rgba(49,94,251,.08), rgba(139,92,246,.08), #fff);
}

.member-compare-unified-table-v27 {
  display: block;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.76);
}

.member-compare-unified-row-v27 {
  display: grid;
  grid-template-columns: minmax(150px,.85fr) minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  border-bottom: 1px solid rgba(226,232,240,.9);
}

.member-compare-unified-row-v27:last-child {
  border-bottom: 0;
}

.member-compare-unified-row-v27 > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid rgba(226,232,240,.85);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.member-compare-unified-row-v27 > div:last-child {
  border-right: 0;
}

.member-compare-unified-row-v27.head > div {
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(255,255,255,.9));
  font-weight: 950;
}

.member-compare-unified-row-v27.head span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.member-compare-unified-row-v27.head strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.member-compare-unified-row-v27 .feature {
  color: #475569;
  font-weight: 950;
  background: rgba(248,251,255,.78);
}

.member-compare-unified-row-v27 .vip {
  background: rgba(49,94,251,.04);
}

.member-compare-unified-row-v27 .current {
  box-shadow: inset 0 0 0 2px rgba(34,197,94,.16);
}

.member-compare-unified-footer-v27 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226,232,240,.92);
}

.member-compare-unified-footer-v27 span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .member-compare-unified-head-v27 {
    flex-direction: column;
  }

  .member-current-unified-v27 {
    width: 100%;
  }

  .member-compare-unified-row-v27 {
    grid-template-columns: 1fr 1fr;
  }

  .member-compare-unified-row-v27 > div {
    padding: 11px;
    font-size: 13px;
  }

  .member-compare-unified-row-v27 .feature {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(226,232,240,.85);
  }

  .member-compare-unified-row-v27.head > div:first-child {
    display: none;
  }

  .member-compare-unified-footer-v27 {
    align-items: stretch;
    flex-direction: column;
  }

  .member-compare-unified-footer-v27 .btn {
    width: 100%;
    justify-content: center;
  }
}


/* APPINSTALL_UI_FULL_SCAN_FIX_20260620 */
body .ipa-actions-panel.cert-action-panel-v10 [data-progress-box]:not([data-sign-progress]),
body .sign-card-form [data-progress-box]:not([data-sign-progress]),
body .delete-card-form [data-progress-box]:not([data-sign-progress]),
body .mark-signed-card-form [data-progress-box]:not([data-sign-progress]){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  max-width:0!important;
  max-height:0!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

body:not(.appinstall-upload-started) form.ipa-auto-form [data-progress-box]:not([data-sign-progress]),
body:not(.appinstall-upload-started) form.upload-form [data-progress-box]:not([data-sign-progress]),
body:not(.appinstall-upload-started) form[data-upload-progress] [data-progress-box]:not([data-sign-progress]),
body:not(.appinstall-upload-started) form[data-chunk-upload] [data-progress-box]:not([data-sign-progress]),
body:not(.appinstall-upload-started) form[data-r2-direct] [data-progress-box]:not([data-sign-progress]){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  max-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

form.ipa-auto-form.appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form.upload-form.appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-upload-progress].appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-chunk-upload].appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-r2-direct].appinstall-upload-started [data-progress-box]:not([data-sign-progress]){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  max-height:none!important;
  height:auto!important;
}

body .ipa-actions-panel.cert-action-panel-v10 > [data-sign-progress],
body .ipa-actions-panel.cert-action-panel-v10 > .sign-progress-box,
body .ipa-item-card > [data-sign-progress],
body .ipa-item-card > .sign-progress-box,
body article[id^="ipa-"] > [data-sign-progress],
body article[id^="ipa-"] > .sign-progress-box,
body [data-ipa-id] > [data-sign-progress],
body [data-ipa-id] > .sign-progress-box{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  flex:0 0 100%!important;
  grid-column:1 / -1!important;
  margin:0 0 14px!important;
  box-sizing:border-box!important;
}

body .ipa-item-card .landing-result-link,
body .ipa-item-card [data-landing-result-link],
body article[id^="ipa-"] .landing-result-link,
body article[id^="ipa-"] [data-landing-result-link],
body [data-ipa-id] .landing-result-link,
body [data-ipa-id] [data-landing-result-link]{
  display:none!important;
}


/* APPINSTALL_SINGLE_UPLOAD_PROGRESS_20260620 */
body [data-upload-result-stay],
body [data-upload-503-note],
body #appinstall-inline-stay-status,
body .appinstall-upload-done-clean-card,
body .upload-result,
body .upload-done,
body .upload-complete,
body .upload-success,
body .upload-final-result,
body .appinstall-upload-result,
body [data-upload-result]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  max-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

form.ipa-auto-form.appinstall-upload-started:not(.appinstall-upload-ended) > button[type="submit"],
form.upload-form.appinstall-upload-started:not(.appinstall-upload-ended) > button[type="submit"],
form[data-upload-progress].appinstall-upload-started:not(.appinstall-upload-ended) > button[type="submit"],
form[data-chunk-upload].appinstall-upload-started:not(.appinstall-upload-ended) > button[type="submit"],
form[data-r2-direct].appinstall-upload-started:not(.appinstall-upload-ended) > button[type="submit"]{
  display:none!important;
}

form.ipa-auto-form.appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form.upload-form.appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-upload-progress].appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-chunk-upload].appinstall-upload-started [data-progress-box]:not([data-sign-progress]),
form[data-r2-direct].appinstall-upload-started [data-progress-box]:not([data-sign-progress]){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

/* APPINSTALL_SIGN_PROGRESS_COMPACT_FIX_20260620 */
body .ipa-actions-panel.cert-action-panel-v10 > [data-sign-progress],
body .ipa-actions-panel.cert-action-panel-v10 > .sign-progress-box,
body .ipa-item-card > [data-sign-progress],
body .ipa-item-card > .sign-progress-box,
body article[id^="ipa-"] > [data-sign-progress],
body article[id^="ipa-"] > .sign-progress-box,
body [data-ipa-id] > [data-sign-progress],
body [data-ipa-id] > .sign-progress-box{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  flex:0 0 auto!important;
  flex-basis:auto!important;
  align-self:stretch!important;
  grid-column:1 / -1!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:8px 0 10px!important;
  padding:10px 12px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

body .ipa-item-card > .sign-progress-box .progress-head,
body article[id^="ipa-"] > .sign-progress-box .progress-head,
body [data-ipa-id] > .sign-progress-box .progress-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 6px!important;
  min-height:0!important;
}

body .ipa-item-card > .sign-progress-box .progress-head span,
body article[id^="ipa-"] > .sign-progress-box .progress-head span,
body [data-ipa-id] > .sign-progress-box .progress-head span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.25!important;
}

body .ipa-item-card > .sign-progress-box .progress-track,
body .ipa-item-card > .sign-progress-box .sign-progress-track,
body article[id^="ipa-"] > .sign-progress-box .progress-track,
body article[id^="ipa-"] > .sign-progress-box .sign-progress-track,
body [data-ipa-id] > .sign-progress-box .progress-track,
body [data-ipa-id] > .sign-progress-box .sign-progress-track{
  height:8px!important;
  min-height:8px!important;
  max-height:8px!important;
  margin:0!important;
}

body .ipa-item-card > .sign-progress-box .progress-message,
body article[id^="ipa-"] > .sign-progress-box .progress-message,
body [data-ipa-id] > .sign-progress-box .progress-message,
body .ipa-item-card > .sign-progress-box [data-sign-message],
body article[id^="ipa-"] > .sign-progress-box [data-sign-message],
body [data-ipa-id] > .sign-progress-box [data-sign-message]{
  display:block!important;
  margin:6px 0 0!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  font-size:11.5px!important;
  line-height:1.35!important;
  overflow:visible!important;
}

@media (max-width:720px){
  body .ipa-item-card > [data-sign-progress],
  body .ipa-item-card > .sign-progress-box,
  body article[id^="ipa-"] > [data-sign-progress],
  body article[id^="ipa-"] > .sign-progress-box,
  body [data-ipa-id] > [data-sign-progress],
  body [data-ipa-id] > .sign-progress-box{
    margin:7px 0 9px!important;
    padding:9px 10px!important;
    border-radius:15px!important;
  }
}







/* APPINSTALL_UPLOAD_SIGN_SEPARATE_CLEAN_20260620 */
body.appinstall-sign-only-active [data-upload-result-stay],
body.appinstall-sign-only-active #appinstall-inline-stay-status,
body.appinstall-sign-only-active #appinstall-upload-done-stay-box,
body.appinstall-sign-only-active #appinstall-no-auto-redirect-box,
body.appinstall-sign-only-active .appinstall-upload-done-clean-card,
body.appinstall-sign-only-active .upload-result,
body.appinstall-sign-only-active .upload-done,
body.appinstall-sign-only-active .upload-complete,
body.appinstall-sign-only-active .upload-success,
body.appinstall-sign-only-active .upload-final-result,
body.appinstall-sign-only-active .appinstall-upload-result,
body.appinstall-sign-only-active [data-upload-result],
body.appinstall-sign-only-active [data-upload-503-note]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

body form.upload-form button[type="submit"],
body form.ipa-auto-form button[type="submit"],
body form[data-upload-progress] button[type="submit"],
body form[data-chunk-upload] button[type="submit"],
body form[data-r2-direct] button[type="submit"],
body .ipa-upload-card .file-picker-btn{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}


/* APPINSTALL_BLOCK_DELETE_ACTIVE_SIGN_20260620 */
.link-btn.is-disabled,
.link-btn:disabled{
  opacity:.55!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
}


/* APPINSTALL_LOCK_SIGN_ACTIONS_ACTIVE_JOB_20260620 */
.ipa-actions-panel .sign-card-form.is-locked select,
.ipa-actions-panel .sign-card-form.is-locked button,
.ipa-actions-panel .link-btn.is-disabled,
.ipa-actions-panel button:disabled{
  opacity:.55!important;
  cursor:not-allowed!important;
}

.ipa-actions-panel .sign-card-form.is-locked select,
.ipa-actions-panel .sign-card-form.is-locked button,
.ipa-actions-panel .link-btn.is-disabled{
  pointer-events:none!important;
}


/* APPINSTALL_ADMIN_SIGN_QUEUE_CONTROLS_CSS_20260622 */
.admin-sign-queue-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  align-items:center;
}
.admin-sign-queue-controls form{
  margin:0;
}
.admin-sign-queue-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border-radius:14px;
  font-weight:800;
}
.admin-sign-queue-clear{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
}
.admin-sign-queue-stop{
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#be123c;
}
@media (max-width: 640px){
  .admin-sign-queue-controls{
    display:grid;
    grid-template-columns:1fr;
  }
  .admin-sign-queue-btn{
    width:100%;
  }
}

/* APPINSTALL_PC_ONEPAGE_ACTIONS_4COL_20260629 */
@media (min-width: 992px) {
  .install-actions.onepage-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .install-actions.onepage-actions .install-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13.5px !important;
  }

  .install-actions.onepage-actions .install-button span {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .install-actions.onepage-actions .install-button i,
  .install-actions.onepage-actions .install-button svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex: 0 0 17px !important;
  }
}

@media (min-width: 721px) and (max-width: 991.98px) {
  .install-actions.onepage-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 720px) {
  .install-actions.onepage-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}
