.cloud-app .auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 460px;align-items:center;gap:8vw;max-width:1180px;margin:auto;padding:60px 30px}.cloud-app .auth-brand{position:relative}.cloud-app .auth-brand>.brand{margin-bottom:70px}.cloud-app .auth-brand h1{font-size:clamp(32px,4vw,56px);line-height:1.13;letter-spacing:-2px}.cloud-app .auth-brand h1 em{color:#d4bb85}.cloud-app .auth-icon{width:130px;margin-top:30px}.cloud-app .auth-panel{padding:36px}.cloud-app .auth-panel h2{font-size:29px;margin:14px 0}.cloud-app .auth-panel form{margin-top:26px}.cloud-app .auth-panel .field{margin-bottom:18px}.cloud-app .auth-panel .btn{width:100%;justify-content:center}.cloud-app .auth-links{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.cloud-app .form-error{color:#edaca4;font-size:14px;line-height:1.5}.cloud-app .cloud-status{display:flex;align-items:center;gap:8px;color:#cfb77e;font-size:10px;letter-spacing:1.5px;margin-left:auto}.cloud-app .cloud-mobile-logout{display:none}.cloud-app .cloud-form{max-width:900px}.cloud-app .cloud-form .info{margin:24px 0}.cloud-app .cloud-design{display:block;max-width:100%;max-height:240px;object-fit:contain;border-radius:14px;margin:20px 0}.cloud-app .cloud-design[hidden]{display:none}.cloud-app .cloud-metrics{margin:26px 0}.cloud-app .cloud-sub{display:block;color:#aaa;margin-top:5px}.cloud-app .cloud-invite{margin-top:24px;max-width:800px}.cloud-app #invite-result{margin-top:24px}.cloud-app #invite-link{margin:12px 0;width:100%}.cloud-app .empty-state{padding:40px}.cloud-app .empty-state .subtitle{margin-top:14px}.cloud-app fieldset{border:0;padding:0;margin:0;min-width:0}.cloud-app fieldset[disabled]{opacity:.7}.cloud-app .merchant-select{max-width:350px;margin-bottom:24px}.cloud-app .admin-art img{width:190px;filter:none;transform:none}.cloud-app .cloud-reward{margin:24px 0;color:#d4bb85}.cloud-app .sidebar .account>div:last-child{overflow-wrap:anywhere;font-size:12px}.cloud-app .sidebar-bottom>.btn{margin-top:15px}.cloud-app .auth-panel .note{font-size:12px}.cloud-app .hero{margin-bottom:26px}.cloud-app .hero p{margin:18px 0}.cloud-app .hero h2{font-size:32px;line-height:1.2}.cloud-app .hero .admin-art{min-width:220px}.cloud-app select{width:100%;max-width:100%}.cloud-app #design-form{margin-top:25px}.cloud-app #upload-error{margin-top:8px}.cloud-app .content>.panel+.panel,.cloud-app .split+.panel{margin-top:24px}
@media(max-width:900px){.cloud-app .auth-layout{grid-template-columns:1fr;max-width:540px;gap:30px;padding:30px 20px}.cloud-app .auth-brand>.brand{margin-bottom:24px}.cloud-app .auth-brand h1,.cloud-app .auth-brand>.subtitle,.cloud-app .auth-brand>.eyebrow,.cloud-app .auth-icon{display:none}.cloud-app .auth-panel{padding:28px}.cloud-app .cloud-mobile-logout{display:inline-flex;font-size:11px;padding:9px;min-height:36px}.cloud-app .cloud-status{font-size:8px;letter-spacing:.8px}.cloud-app .level-indicator{display:none}.cloud-app .cloud-metrics{grid-template-columns:1fr 1fr}.cloud-app .mobile-nav a span{font-size:9px}.cloud-app .topbar{gap:10px}.cloud-app .topbar .mobile-brand{margin-right:auto}.cloud-app .topbar .mobile-brand>span{font-size:14px;letter-spacing:2px}.cloud-app .hero h2{font-size:26px}.cloud-app .hero .admin-art{min-width:0}.cloud-app .hero{overflow:hidden}.cloud-app .hero .admin-art img{width:140px}.cloud-app .auth-panel h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.cloud-app *, .cloud-app *:before{scroll-behavior:auto!important}}

/* Keep the dashboard message clear of the decorative card border. */
.cloud-app .hero-copy{min-width:0;padding:32px 36px}
.cloud-app .hero .admin-art{padding:28px 24px}
@media(max-width:620px){.cloud-app .hero-copy{padding:26px 24px 20px}.cloud-app .hero .admin-art{padding:12px 24px 26px}}

/* Shared authentication atmosphere: decoration stays behind the whole form. */
.cloud-app.auth-screen{background:#0b0c10;color:#f4f0e8}
.auth-screen .auth-atmosphere{position:fixed;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 12% 12%,#28231d 0,transparent 55%),linear-gradient(130deg,#111216,#090b0e 70%);z-index:0}
.auth-screen .auth-halo{position:absolute;inset:-20%;background:radial-gradient(ellipse at 20% 40%,rgba(188,151,83,.16),transparent 38%),radial-gradient(ellipse at 85% 70%,rgba(151,162,176,.08),transparent 35%);animation:auth-light-drift 20s ease-in-out infinite alternate}
.auth-screen .auth-pattern{position:absolute;inset:-60px;background:url('assets/brand/iverian-pattern.svg') repeat;background-size:960px 480px;opacity:.15;mask-image:linear-gradient(120deg,#000,transparent 85%);-webkit-mask-image:linear-gradient(120deg,#000,transparent 85%);animation:auth-pattern-drift 28s ease-in-out infinite alternate}
.auth-screen .auth-symbol{position:absolute;background:linear-gradient(135deg,#e5d4ac 10%,#76603c 45%,#d8c79d 65%,#4c4539);mask:url('assets/brand/iverian-emblem.svg') center/contain no-repeat;-webkit-mask:url('assets/brand/iverian-emblem.svg') center/contain no-repeat;animation:auth-symbol-float 22s ease-in-out infinite alternate}
.auth-screen .auth-symbol-one{width:660px;height:465px;left:-160px;top:12%;opacity:.065;transform:rotate(-16deg);--auth-turn:-16deg}
.auth-screen .auth-symbol-two{width:410px;height:290px;right:-100px;bottom:-55px;opacity:.055;--auth-turn:18deg;transform:rotate(18deg);animation-delay:-11s}
.cloud-app.auth-screen .auth-layout{position:relative;z-index:1;min-height:100vh;min-height:100svh;width:100%;gap:clamp(32px,6vw,90px);grid-template-columns:minmax(0,1fr) minmax(0,460px)}
.cloud-app.auth-screen .auth-panel{min-width:0;position:relative;background:linear-gradient(150deg,rgba(32,32,37,.97),rgba(19,20,25,.98));border:1px solid rgba(212,187,133,.24);box-shadow:0 28px 80px #0006,0 1px 0 #f3dfb30d inset;border-radius:22px;padding:36px}
.cloud-app.auth-screen .auth-panel::before{content:'';position:absolute;height:1px;left:32px;right:32px;top:0;background:linear-gradient(90deg,transparent,#d4bb8580,transparent)}
.cloud-app.auth-screen .auth-panel input{font-size:16px;min-height:52px;background:#101115;border-color:#4b453c;border-radius:10px}
.cloud-app.auth-screen .auth-panel input:focus{outline:2px solid #d4bb85;outline-offset:3px}
.cloud-app.auth-screen .auth-panel .btn{min-height:52px}
.cloud-app.auth-screen .auth-links{gap:4px 18px;margin:18px 0}
.cloud-app.auth-screen .auth-links a{display:inline-flex;align-items:center;min-height:44px}
.cloud-app.auth-screen .auth-panel .note{line-height:1.7;color:#b8b5b0;margin-bottom:0}
@keyframes auth-light-drift{to{transform:translate3d(4%,3%,0) scale(1.08);opacity:.65}}
@keyframes auth-pattern-drift{to{transform:translate3d(22px,16px,0)}}
@keyframes auth-symbol-float{to{transform:translate3d(14px,-22px,0) rotate(calc(var(--auth-turn) + 5deg))}}
@media(max-width:900px){
 .cloud-app.auth-screen .auth-layout{grid-template-columns:minmax(0,1fr);max-width:500px;align-content:center;gap:26px;padding:32px 20px;padding-top:max(32px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom))}
 .cloud-app.auth-screen .auth-brand>.brand{margin:0;justify-content:center}
 .cloud-app.auth-screen .auth-panel{padding:28px 26px}
 .auth-screen .auth-symbol-one{width:430px;height:305px;left:-160px;top:-25px;opacity:.08}
 .auth-screen .auth-symbol-two{width:300px;height:215px;right:-100px;bottom:-10px;opacity:.08}
 .auth-screen .auth-pattern{opacity:.11;background-size:800px 400px;animation-duration:36s}
 .auth-screen .auth-halo{animation-duration:26s}
}
@media(max-width:380px){.cloud-app.auth-screen .auth-layout{padding-left:16px;padding-right:16px;gap:22px}.cloud-app.auth-screen .auth-panel{padding:26px 22px}.cloud-app.auth-screen .auth-panel h2{font-size:25px;line-height:1.2}}
@media(prefers-reduced-motion:reduce){.auth-screen .auth-atmosphere *{animation:none!important}}
.cloud-app.auth-screen .auth-brand>.brand{padding:0;gap:14px}
.cloud-app.auth-screen .auth-brand .brand-lettering{display:flex}
.cloud-app.auth-screen .auth-brand>.brand>img{width:48px;height:48px}
.cloud-app.auth-screen .auth-brand .brand-wordmark{width:140px;height:20px}

.cloud-app #program-save[hidden]{display:none}
/* Merchant scanner: explicit confirmation, large mobile controls. */
.cloud-app .scan-panel{max-width:780px;margin-inline:auto}
.cloud-app .scan-panel [hidden]{display:none!important}
.scan-camera{position:relative;aspect-ratio:4/3;background:#090a0b;border:1px solid #776543;border-radius:16px;overflow:hidden;margin-block:24px}
.scan-camera video{display:block;width:100%;height:100%;object-fit:cover}
.scan-guide{position:absolute;inset:15% 20%;border:2px solid #e2c485;border-radius:18px;box-shadow:0 0 0 120px #0005;pointer-events:none}
.scan-card{margin-top:28px;padding:28px;border:1px solid #766345;border-radius:18px;background:#151618}
.scan-balance{display:flex;gap:14px;align-items:baseline;margin-block:24px}.scan-balance strong{font-size:64px;line-height:1;color:#e2c485}.scan-balance span{color:#c7c2b8}
.scan-confirm{padding:22px;border:1px solid #b89b60;border-radius:12px;margin-top:20px;background:#27231b}.scan-success{padding:16px;border-left:3px solid #e2c485;color:#ead7ac}
.scan-panel input{font-size:16px;min-width:0}.scan-panel .actions{gap:12px}.scan-panel .btn{min-height:52px;white-space:normal;text-align:center}.scan-panel .form-error{scroll-margin-top:100px}
@media(max-width:600px){.cloud-app .scan-panel{padding:24px 20px}.scan-card{padding:22px 18px}.scan-confirm{padding:18px 16px}.scan-panel .actions{display:grid;grid-template-columns:1fr}.scan-panel .actions .btn{width:100%;justify-content:center}.scan-camera{aspect-ratio:1}.scan-balance strong{font-size:56px}.scan-panel #scan-form>.btn{width:100%;justify-content:center}}
/* Scan is the central primary action in the merchant's mobile navigation. */
@media(max-width:900px){
 .cloud-app .merchant-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;padding-top:8px}
 .cloud-app .merchant-mobile-nav>a{min-width:0;min-height:60px;gap:5px}
 .cloud-app .merchant-mobile-nav>a>span:last-child{font-size:10px;line-height:1.3;white-space:nowrap}
 .cloud-app .merchant-mobile-nav>a.scan-tab{position:relative;align-self:stretch;background:transparent;border-color:transparent;color:#e7ca8e;gap:4px;overflow:visible}
 .cloud-app .merchant-mobile-nav>a.scan-tab>.ico{display:grid;place-items:center;width:48px;height:44px;margin-top:-14px;border-radius:14px;background:linear-gradient(145deg,#e7ce96,#c4a364);border:1px solid #eed9ac;color:#17150f;box-shadow:0 4px 14px #0005;transition:transform .18s ease,box-shadow .18s ease}
 .cloud-app .merchant-mobile-nav>a.scan-tab>.ico svg{width:25px;height:25px;stroke-width:1.8}
 .cloud-app .merchant-mobile-nav>a.scan-tab>span:last-child{font-weight:700;letter-spacing:.3px}
 .cloud-app .merchant-mobile-nav>a.scan-tab.active>.ico{box-shadow:0 0 0 3px #d4bb8526,0 4px 16px #0006}
 .cloud-app .merchant-mobile-nav>a.scan-tab:active>.ico{transform:scale(.94)}
 .cloud-app .merchant-mobile-nav>a.scan-tab:focus-visible{outline:2px solid #e7ca8e;outline-offset:2px}
}
@media(prefers-reduced-motion:reduce){.cloud-app .merchant-mobile-nav>a.scan-tab>.ico{transition:none}}
/* Shared merchant identity: table, admin detail and merchant workspace. */
.cloud-app .merchant-avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;width:44px;height:44px;overflow:hidden;border-radius:14px;border:1px solid #776340;background:#28231a;color:#e3c58a;font-size:18px;font-weight:700;vertical-align:middle}
.cloud-app .merchant-avatar.large{width:76px;height:76px;border-radius:22px;font-size:28px}
.cloud-app .merchant-avatar img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.cloud-app .merchant-avatar [hidden],.cloud-app .profile-upload [hidden],.cloud-app #profile-save[hidden]{display:none!important}
.cloud-app .workspace-avatar{width:44px;height:44px;padding:0;border:0;background:none}
.cloud-app .merchant-identity{display:flex;gap:14px;align-items:center;min-width:0}
.cloud-app .merchant-heading{display:flex;align-items:center;gap:20px;margin-bottom:26px}
.cloud-app .merchant-heading>.pagehead{flex:1;min-width:0;margin:0}
.cloud-app .merchant-heading h1{overflow-wrap:anywhere}
.cloud-app .profile-panel{margin-bottom:24px}
.cloud-app .profile-preview{display:flex;gap:16px;align-items:center;margin:16px 0}
.cloud-app .profile-upload{max-width:620px}
.cloud-app .profile-upload input{font-size:16px;min-height:52px;max-width:100%}
.cloud-app .merchant-mobile-identity{display:none}
@media(max-width:900px){.cloud-app .merchant-mobile-identity{display:flex;align-items:center;gap:12px;margin-bottom:26px;color:#dfd8c8}.cloud-app .merchant-mobile-identity strong{overflow-wrap:anywhere}.cloud-app .merchant-heading{gap:16px;align-items:flex-start}.cloud-app .merchant-heading>.merchant-avatar.large{width:60px;height:60px;border-radius:18px;font-size:24px}.cloud-app .merchant-heading .pagehead{flex-wrap:wrap}.cloud-app .profile-panel{padding:24px}.cloud-app .profile-panel #profile-save{width:100%}}

.cloud-app .merchant-statistics{margin:28px 0 32px}.cloud-app .statistics-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.cloud-app .statistics-head h2{margin:8px 0 0;font-size:26px}.cloud-app .statistics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.cloud-app .statistics-grid .metric{min-width:0;padding:26px}.cloud-app .statistics-grid h3{font-size:14px;font-weight:500;color:#d4c7a8;margin:0 0 18px;line-height:1.5}.cloud-app .statistics-grid .metric-value{font-size:clamp(30px,4vw,44px);overflow-wrap:anywhere;line-height:1.15}.cloud-app .statistics-grid p{font-size:12px;margin:8px 0 20px;color:#aaa}.cloud-app .statistics-recent{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;border-top:1px solid #ffffff15;padding-top:16px;font-size:12px;color:#aaa}.cloud-app .statistics-recent strong{font-size:18px;color:#d4bb85}.cloud-app .merchant-statistics>.note{margin-top:16px;line-height:1.7}
@media(max-width:600px){.cloud-app .statistics-grid{grid-template-columns:1fr;gap:12px}.cloud-app .statistics-grid .metric{padding:22px}.cloud-app .statistics-head{align-items:flex-start;flex-wrap:wrap;gap:14px}.cloud-app .statistics-head h2{font-size:23px}.cloud-app .statistics-head .btn{min-height:44px}.cloud-app .statistics-grid h3{margin-bottom:12px}}
