
:root{color-scheme:dark;--bg:#0b1220;--panel:#152034;--line:#29374d;--gold:#e7c78d;--muted:#a7b4c7;--burg:#711e3c}*{box-sizing:border-box}body{margin:0;color:#f3f5f9;background:radial-gradient(ellipse at top,#25334e 0,#0b1220 50%);font:16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100vh}main{max-width:660px;margin:auto;padding:18px 17px 110px;padding-top:max(18px,env(safe-area-inset-top))}header{display:flex;align-items:center;gap:12px;margin:8px 0 20px}.logo{width:49px;height:52px;display:grid;place-items:center;color:var(--gold);border:1.5px solid var(--gold);border-radius:13px 13px 23px 23px;font-weight:800;background:#10192b;flex-shrink:0}.brand{color:var(--gold);font-size:13px;font-weight:750;letter-spacing:1.5px}.sub,.muted{color:var(--muted);font-size:13px;line-height:1.55}.demo{font-size:11px;font-weight:650;letter-spacing:.5px;color:#f5d9a1;border:1px solid #685437;border-radius:10px;padding:9px 12px;background:#30271f;margin-bottom:16px}h1{font-size:29px;margin:12px 0 6px;line-height:1.15}h2{font-size:19px;margin:0 0 12px}p{line-height:1.55}button,input{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:12px;padding:11px 14px;background:#24324a;color:#f4f6fb;font-weight:650}button.primary{background:var(--gold);color:#18202f;width:100%;margin-top:12px}button.secondary{border:1px solid var(--line);background:#172236;color:var(--gold)}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.hero{padding:25px 20px;border-radius:22px;border:1px solid #745a4b;background:linear-gradient(125deg,#17263b,#432038);margin:14px 0 22px}.hero .eyebrow{font-size:12px;color:var(--gold);letter-spacing:1.5px;font-weight:700}.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 22px}.segment{min-height:105px;text-align:left;border:1px solid #4a4150;padding:16px;background:linear-gradient(130deg,#2d2033,#17263b);display:flex;flex-direction:column;justify-content:space-between}.segment strong{color:var(--gold);font-size:17px}.segment small{color:#b7c1d1;font-weight:400}.segment.active{border:2px solid var(--gold)}.search{width:100%;color:white;background:#101a2b;border:1px solid var(--line);padding:14px;border-radius:12px;margin:8px 0 13px;font-size:16px}.tile{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:15px;margin:10px 0}.person{display:flex;align-items:center;gap:12px}.avatar{background:#2c3045;color:var(--gold);border-radius:14px;width:48px;height:48px;display:grid;place-items:center;font-weight:750;flex-shrink:0}.personInfo{flex:1;min-width:0}.name{font-size:17px;font-weight:750}.tag{font-size:11px;letter-spacing:.6px;color:var(--gold);font-weight:700;margin-top:3px}.actions{display:flex;gap:8px;margin-top:13px}.actions button{flex:1;font-size:13px;padding:9px 5px;min-width:0}.actions .wa{background:#204135;color:#a3e3bb}.actions .call{background:#3b352c;color:var(--gold)}.actions .fav{flex:0 0 45px;font-size:20px}.nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:4px;background:#111c2e;border-top:1px solid var(--line);padding:7px 8px max(10px,env(safe-area-inset-bottom));z-index:5}.nav button{background:transparent;flex:1;max-width:155px;font-size:12px;color:#b2bfd2;padding:8px 3px}.nav button span{display:block;font-size:19px;margin-bottom:4px}.nav button.active{color:var(--gold);background:#243047}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);max-width:90vw;width:max-content;padding:12px 17px;background:#ead29b;color:#192133;font-size:14px;font-weight:650;border-radius:12px;z-index:10;box-shadow:0 5px 20px #0007}[hidden]{display:none!important}.welcome{text-align:center;padding:30px 4px}.welcome .logo{width:92px;height:100px;font-size:32px;margin:0 auto 24px}.welcome .hero{text-align:left}.details dt{font-size:12px;color:var(--muted);margin-top:12px}.details dd{margin:3px 0;font-weight:600}.sectionhead{display:flex;align-items:center;justify-content:space-between}.sectionhead button{font-size:12px}.footer{text-align:center;font-size:12px;color:var(--muted);margin:22px 0}button[aria-pressed=true]{color:var(--gold)}

label{display:block;margin:12px 0 4px;color:var(--muted)}input:not([type=file]){width:100%;padding:13px;background:#101a2b;border:1px solid var(--line);border-radius:10px;color:white;font:inherit}input[type=file]{width:100%;margin:9px 0} .row{display:flex;gap:8px;flex-wrap:wrap}.row>*{flex:1} .warning{color:#f5c97f} a{color:var(--gold)} .status{min-height:22px;color:#f5c97f;white-space:pre-wrap;overflow-wrap:anywhere} .contact{display:block;text-align:center;background:#24324a;padding:12px;border-radius:10px;text-decoration:none} .tile p{overflow-wrap:anywhere} button:disabled{opacity:.5}
/* V1.5 mobile visual refresh; no storage or crypto changes. */
:root{--bg:#080e19;--panel:#111b2b;--line:#293649;--gold:#e7c78d;--muted:#a5b2c7;--burg:#43152a}
body{background:radial-gradient(ellipse at 100% 0%,#43152a 0%,#141523 32%,#080e19 65%);min-height:100dvh;font-size:15px}main{max-width:470px;padding:14px 17px 100px;padding-top:max(14px,env(safe-area-inset-top));padding-left:max(17px,env(safe-area-inset-left));padding-right:max(17px,env(safe-area-inset-right))}header{margin:4px 0 17px;gap:10px}header img{border-radius:12px;object-fit:cover}header .brand{font-size:15px;letter-spacing:1.1px}header .sub{font-size:10px;letter-spacing:1.8px}.header-shield{color:var(--gold);font-size:25px;margin-left:auto}.demo{background:transparent;border:0;color:#cdb784;font-size:9px;letter-spacing:1px;text-align:center;padding:8px 0;margin:0 0 8px}.status:empty{display:none}.status:not(:empty){border:1px solid #705e3f;background:#29241e;border-radius:10px;padding:10px;margin:10px 0;font-size:13px}.auth main{max-width:430px;padding:20px 25px 30px;padding-top:max(20px,env(safe-area-inset-top))}.auth header{display:none}.auth .demo{margin-bottom:10px}.auth-brand{display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--gold);margin:12px 0 22px}.auth-brand img{width:104px;height:104px;object-fit:cover;border-radius:23px;box-shadow:0 8px 30px #0006;margin-bottom:12px}.auth-brand div{font:22px Georgia,serif;letter-spacing:2px}.auth-brand small{font-size:11px;letter-spacing:3px;margin-top:6px}.auth-intro{margin:0 0 18px}.auth-intro h1{font:500 clamp(29px,8vw,34px)/1.12 Georgia,serif;margin:0 0 8px}.auth-intro p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}.auth-panel{padding:18px;border-radius:22px;background:rgba(17,27,43,.94);border:1px solid #324055;box-shadow:0 16px 38px #0003}.auth-panel label{font-size:10px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--gold);margin:14px 0 7px}.auth-panel label:first-child{margin-top:0}.field{position:relative;display:flex;align-items:center}.field span{position:absolute;left:13px;font-size:19px;color:var(--gold);pointer-events:none}.auth-panel .field input{padding:13px 12px 13px 39px;min-height:49px;border-radius:12px;background:#0c1524;font-size:16px}.field input::placeholder{color:#8290a5;font-size:14px}.password-hint{font-size:10px;color:var(--muted);margin:7px 0 0}.auth-panel .primary{margin-top:18px;min-height:52px}.primary{background:linear-gradient(115deg,#ffe5a8,#c58b36)!important;box-shadow:0 6px 18px #c58b3628;color:#101724!important;font-weight:800}.footer{font-size:10px;letter-spacing:.3px;margin:18px 0;color:#a7b4c7}.home-hero{min-height:141px;border-radius:18px;border:1px solid #8c6d43;background:linear-gradient(90deg,#080e19f5,#080e19a0 58%,#080e1920),url('facade.jpg') right center/cover no-repeat;display:flex;flex-direction:column;justify-content:center;padding:15px 17px;margin:10px 0 14px;box-shadow:0 12px 25px #0003}.eyebrow{font-size:9px;font-weight:750;color:var(--gold);letter-spacing:1.5px}.home-hero h1{font-size:29px;margin:5px 0}.home-hero p{margin:0 0 6px;font-size:13px;color:#d1d8e2}.home-hero small{color:#b7c3d3;font-size:10px}.home-search,.home-link{display:flex;align-items:center;text-align:left;width:100%;gap:10px;background:#111b2b;border:1px solid #6b593e;border-radius:13px;margin:10px 0 16px;color:#aeb9cc;font-size:12px}.home-search span,.home-link>span{font-size:24px;color:var(--gold)}.home-search b,.home-link b{margin-left:auto;color:var(--gold);font-size:22px}.sectionhead{margin-top:18px}.sectionhead h2{font-size:19px;margin:0}.sectionhead small{letter-spacing:2px;color:var(--gold)}.cards{gap:11px;margin:12px 0 15px}.segment{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;aspect-ratio:1.32;min-height:100px;overflow:hidden;padding:12px 8px;border-radius:18px;border:1px solid var(--accent);box-shadow:0 5px 19px var(--glow);background:radial-gradient(ellipse at top left,var(--deep),#080e19 88%);text-align:center}.segment:before{content:'';position:absolute;inset:-10% -35%;transform:rotate(-27deg);background:linear-gradient(transparent 46%,var(--glow) 47%,transparent 69%);pointer-events:none}.segment>*{position:relative}.segment-vip{--accent:#ffc86a;--deep:#690d28;--glow:#ffc86a25}.segment-elite{--accent:#9abfff;--deep:#17355f;--glow:#9abfff25}.segment-global{--accent:#70dde1;--deep:#0c515a;--glow:#70dde125}.segment-private{--accent:#d4b4ff;--deep:#422a67;--glow:#d4b4ff25}.segment img{width:90%;height:40px;object-fit:contain;display:block}.segment small{color:#e2e6ef;font-size:10px;font-weight:500}.segment .segment-count{font-size:9px;color:#aeb9cb}.segment .chevron{position:absolute;right:8px;bottom:5px;color:var(--accent);font-size:18px}.segment.active{border:2px solid var(--accent)}.home-link{border-color:var(--line);padding:12px;margin:9px 0;min-height:63px}.home-link div{display:flex;flex-direction:column;gap:3px}.home-link strong{color:#f3f5f9;font-size:14px}.home-link small{font-size:11px;color:var(--muted)}.tile{border-radius:17px;background:#111b2b;border-color:#2a374b}.avatar{border:1px solid #775e3d;background:linear-gradient(145deg,#493147,#18253b);border-radius:14px}.actions .call{background:linear-gradient(120deg,#ffe5a8,#c58b36);color:#151923}.actions .wa{background:#174b35;color:#a3eac0}.nav{background:#0d1626;padding-top:6px}.nav button{max-width:110px;font-size:10px}.nav button span{font-size:22px;margin-bottom:2px}.nav button.active{background:#1a2638;color:var(--gold)}@media(max-width:350px){.auth main{padding-left:14px;padding-right:14px}.auth-panel{padding:13px}.segment{min-height:97px}.segment img{height:32px}.segment small{font-size:9px}}@media(prefers-reduced-motion:no-preference){.auth-brand,.auth-intro,.auth-panel,.home-hero{animation:arrive .32s ease-out both}@keyframes arrive{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}

/* Native-inspired facade, splash and sign-in layout. */
.auth-scenery{display:none}.auth{background:#080e19}.auth main{position:relative;z-index:1;max-width:440px;margin:auto;padding: max(14px,env(safe-area-inset-top)) 24px 20px;min-height:100dvh}.auth main::before{content:'';position:absolute;z-index:-1;inset:0 0 auto;height:285px;background:linear-gradient(180deg,#080e1960 0%,#080e196f 43%,#080e19 100%),url('facade.jpg') center 37%/cover no-repeat;pointer-events:none}.auth-brand{margin:9px 0 18px;text-shadow:0 2px 10px #000}.auth-brand img{width:93px;height:93px;margin-bottom:9px;box-shadow:0 0 24px #b57a2e50}.auth-intro{margin:0 0 12px}.auth-intro h1{font-size:31px}.auth-panel{background:rgba(17,27,43,.96);padding:16px;border-color:#354257;margin-top:8px}.auth-panel label{margin:12px 0 5px}.auth-panel .field input{min-height:44px;padding-top:10px;padding-bottom:10px}.auth-panel .field input[type=password],.auth-panel .field:has(.eye) input{padding-right:47px}.eye{position:absolute;right:3px;width:42px;height:42px;padding:0;min-height:42px;background:transparent;color:#d6b475;display:grid;place-items:center;box-shadow:none}.eye[aria-pressed=true]{color:#fff}.auth-panel .primary{min-height:48px;margin-top:15px}.auth .demo{color:#f4d59a;text-shadow:0 2px 7px #000;margin:0 0 4px}.auth .footer{margin:12px 0}.nav{background:linear-gradient(100deg,#421326,#080e19 54%,#281222);border-top:1px solid #8b704c}.home-hero{background:linear-gradient(90deg,#080e19ed 0%,#080e19a0 48%,#080e1910 100%),url('facade.jpg') right center/cover no-repeat}.segment{border-width:1.5px}.splash{position:fixed;inset:0;z-index:99;background:linear-gradient(#080e19,#111b2d 48%,#43152a);overflow:hidden;display:flex;justify-content:center;align-items:flex-start;text-align:center}.splash-facade{position:absolute;bottom:8%;height:49%;width:100%;max-width:650px;background:linear-gradient(180deg,#111b2d 0%,transparent 25%,transparent 72%,#220e19 100%),url('facade.jpg') center/cover no-repeat}.splash-ribbon{position:absolute;bottom:0;width:100%;height:31%;max-width:720px}.splash-brand{position:relative;margin-top:max(38px,10vh);display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--gold)}.splash-brand strong{font:23px Georgia,serif;letter-spacing:2px}.splash-brand>span{font-size:17px;letter-spacing:3px;font-weight:650}.splash-brand>small{color:var(--muted);margin-top:8px;font-size:13px}.orbit{width:200px;height:200px;position:relative;display:grid;place-items:center;margin-bottom:8px}.orbit img{width:132px;height:132px;border-radius:27px;box-shadow:0 10px 40px #0007}.orbit:before,.orbit:after{content:'';position:absolute;border:1px solid #d6b47545;border-top:2px solid #e7c78d;border-radius:50%;inset:5px;animation:orbit-spin 2s linear infinite}.orbit:after{inset:21px;border-top-color:transparent;border-left-color:#e7c78d;animation-direction:reverse}.splash-progress{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));width:min(80%,390px);color:var(--muted);letter-spacing:2px;font-size:10px}.splash-progress div{height:2px;background:var(--gold);margin-bottom:14px;transform-origin:left;animation:splash-load 2.8s linear both}@keyframes orbit-spin{to{transform:rotate(360deg)}}@keyframes splash-load{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(min-width:850px){.auth .auth-scenery{position:fixed;inset:0 45% 0 0;display:flex;align-items:flex-end;background:linear-gradient(0deg,#080e19 2%,#080e1960 38%,#080e1910 75%,#080e1940),url('facade.jpg') center/cover no-repeat;border-right:1px solid #8b704c}.scenery-copy{padding:0 8% 9%;display:grid;gap:14px}.scenery-copy span{font-size:11px;letter-spacing:3px;color:var(--gold)}.scenery-copy strong{font:clamp(37px,5vw,66px)/1.08 Georgia,serif;color:#fff2d2}.scenery-copy small{letter-spacing:1px;color:#d6b475}.auth main{margin-left:calc(77.5% - 220px);margin-right:0;max-width:440px;display:flex;flex-direction:column;justify-content:center;padding:24px}.auth main::before{display:none}.auth-brand{margin-top:0}.auth .demo{margin-bottom:15px}.splash-facade{max-width:850px}.splash-ribbon{max-width:950px}}
@media(max-width:849px){.auth{background:radial-gradient(ellipse at top right,#43152a,#080e19 55%)}.auth-panel{box-shadow:0 12px 40px #0006}.auth-brand img{width:87px;height:87px}.auth-intro h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.orbit:before,.orbit:after,.splash-progress div{animation:none}}

.auth-tabs{display:flex;gap:5px;background:#111b2bd9;border:1px solid #354257;padding:4px;border-radius:13px;margin:10px 0 14px}.auth-tabs button{flex:1;min-width:0;min-height:40px;background:transparent;color:#b9c5d5;padding:8px 4px;font-size:13px;white-space:normal}.auth-tabs button.selected{background:var(--gold);color:#101827;box-shadow:0 2px 8px #0004}.auth-link{display:block;margin:8px auto 0;color:var(--gold);background:transparent;font-size:13px}.auth-panel .secondary{margin-top:10px;width:100%}

/* Premium identity */
:root{--gold:#e7c47f}.auth-brand img{border-radius:24%;}.segment-private{background:linear-gradient(145deg,#143f32,#0b191d)!important}.splash-brand strong{letter-spacing:3px}.home-hero{border-color:#947341}

.auth-panel textarea{box-sizing:border-box;width:100%;resize:vertical;background:#17273e;color:#f1f4fa;border:1px solid #354a64;border-radius:10px;padding:10px;font:14px monospace;overflow-wrap:anywhere;direction:ltr}

#security-watermark:not([hidden]){position:fixed;z-index:20;left:5%;right:5%;top:48%;pointer-events:none;text-align:center;transform:rotate(-24deg);font-size:clamp(12px,3vw,18px);font-weight:700;color:#f1d8a0;opacity:.22;overflow-wrap:anywhere}

/* V5.1: local, finite decorative motion. No delayed hiding of private content. */
@keyframes ps-reveal{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ps-confirm{from{transform:scale(.75);opacity:.4}to{transform:scale(1);opacity:1}}
@keyframes ps-busy{to{transform:rotate(360deg)}}
.splash-progress div{animation-duration:1.5s}.splash-brand .orbit img{animation:ps-reveal 550ms ease-out both}
.auth-brand,.auth-intro,.auth-panel,.home-hero{animation:ps-reveal 300ms ease-out both}
.auth-intro{animation-delay:35ms}.auth-panel{animation-delay:65ms}
.cards .segment{animation:ps-reveal 300ms ease-out both;transition:filter 140ms ease}
.cards .segment:nth-child(2){animation-delay:45ms}.cards .segment:nth-child(3){animation-delay:90ms}.cards .segment:nth-child(4){animation-delay:135ms}
button{transition:filter 120ms ease,box-shadow 120ms ease}button:active{filter:brightness(1.12)}
#status.approval-success{color:#80d7aa}#status.approval-success::before{content:'✓';display:inline-block;margin-inline-end:8px;font-weight:bold;animation:ps-confirm 250ms ease-out both}
#status.working::before{content:'';display:inline-block;width:.8em;height:.8em;border:2px solid #d6b47555;border-top-color:var(--gold);border-radius:50%;margin-inline-end:8px;animation:ps-busy .7s linear infinite}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* V6.1 Luxury Motion — decorative Home-only background and light sweep. */
body.luxury-home{background:radial-gradient(ellipse at 90% 27%,#17283d 0%,#080e19 69%)}
body.luxury-home main{position:relative;isolation:isolate}
body.luxury-home main::before,body.luxury-home main::after{content:'';position:absolute;z-index:-1;pointer-events:none;left:2%;width:96%;height:170px;top:24%;border:1px solid #f0cd8645;border-left-color:transparent;border-right-color:transparent;border-radius:50%;transform:rotate(-16deg);box-shadow:0 0 16px #f0cd8610;animation:ps-luxury-wave 9s ease-in-out infinite}
body.luxury-home main::after{top:39%;border-color:#f0cd8626;border-left-color:transparent;border-right-color:transparent;animation-delay:-3s}
@keyframes ps-luxury-wave{0%,100%{transform:translateY(-8px) rotate(-16deg)}50%{transform:translateY(13px) rotate(-11deg)}}
body.luxury-home .home-hero{animation:none}
body.luxury-home .cards .segment{animation:none;transition:filter 140ms ease,transform 140ms ease}
body.luxury-home .cards .segment::after{content:'';position:absolute;pointer-events:none;inset:-20% auto -20% 0;width:52%;background:linear-gradient(90deg,transparent,#ffe5a80a 26%,#ffe5a856 50%,#ffe5a80a 74%,transparent);transform:translateX(-180%) skewX(-19deg);animation:ps-luxury-sweep 9s linear infinite}
body.luxury-home .cards .segment:nth-child(2)::after{animation-delay:.14s}
body.luxury-home .cards .segment:nth-child(3)::after{animation-delay:.28s}
body.luxury-home .cards .segment:nth-child(4)::after{animation-delay:.42s}
body.luxury-home .cards .segment:active{transform:scale(.985);filter:brightness(1.08)}
@keyframes ps-luxury-sweep{0%{transform:translateX(-180%) skewX(-19deg)}26.67%,100%{transform:translateX(340%) skewX(-19deg)}}
@media(prefers-reduced-motion:reduce){body.luxury-home main::before,body.luxury-home main::after{animation:none!important}body.luxury-home .cards .segment::after{display:none}body.luxury-home .cards .segment:active{transform:none}}
