/* تصميم سجل المطايا مطابق للنموذج المعتمد — ألوان كحلي وذهبي وبطاقات واضحة للجوال */
:root{--navy:#081b2b;--gold:#e6bd72;--ink:#142638}
body{background:#f7f4ee;color:var(--ink);font-family:"IBM Plex Sans Arabic",sans-serif}
.topbar{background:linear-gradient(110deg,#071725,#102b40);color:#f7f0e3}
.brand-mark{display:grid;place-items:center;font-size:34px;color:#e6bd72}
.hero{position:relative;overflow:hidden;background:#0b2234;min-height:330px;border-radius:0 0 28px 28px}
.hero-art{background-image:linear-gradient(90deg,#071725d9,#0717253b),url("https://images.unsplash.com/photo-1512632578888-169bbbc64f33?auto=format&fit=crop&w=1800&q=85");background-size:cover;background-position:center 45%}
.hero-shade{background:linear-gradient(0deg,#071725d9,transparent 70%)}
.hero-content{max-width:1200px;margin:auto;padding:36px 24px;color:white}.hero h2{font-size:clamp(30px,4vw,46px);margin:12px 0}.hero p{max-width:430px;line-height:1.9;color:#f2eee8}.eyebrow{color:#f2cc82}
.gold-btn{background:linear-gradient(135deg,#f8dda4,#d8a54e);color:#17202a;border:0;border-radius:13px;padding:12px 17px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}
.home-sections{max-width:1060px;margin:-18px auto 30px;position:relative;z-index:2;padding:0 18px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.section-tile{border:1px solid #eee3d1;background:#fffdf8;box-shadow:0 9px 26px #17253610;border-radius:20px;padding:22px;display:flex;align-items:center;gap:15px;text-align:right;cursor:pointer;color:var(--ink);min-height:112px}
.section-tile>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}.section-tile strong{font-size:24px}.section-tile small{font-size:13px;color:#7d7b76}.section-tile>b{font-size:23px;color:#b78b42}.tile-icon{width:56px;height:56px;border-radius:16px;background:#f6e9cf;display:grid;place-items:center;font-size:29px}.race-tile{background:linear-gradient(120deg,#fffdf8,#f5ead5)}
.qr-hint{grid-column:1/-1;display:flex;align-items:center;gap:13px;background:#0b2234;color:#fff;border-radius:16px;padding:16px 19px}.qr-hint>span{font-size:28px;color:#edc675}.qr-hint div{display:flex;flex-direction:column;gap:4px}.qr-hint small{color:#c7d0d7;line-height:1.6}
.workspace,.shared-view{max-width:1060px;margin:0 auto 45px;padding:20px 18px 35px}.list-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.list-top>div{display:flex;align-items:center;gap:12px}.list-top h2{font-size:27px;margin:0}.gold-line{width:4px;height:29px;background:#d9aa58;border-radius:5px}.back-home{border:1px solid #e9dfd0;background:#fffdf8;border-radius:12px;padding:10px 14px;color:#263a4a;cursor:pointer;font-weight:600}
.search-row{display:flex;gap:10px;margin-bottom:19px}.searchbox{background:#fff;border:1px solid #e8e0d5;border-radius:15px;min-height:52px;display:flex;align-items:center;padding:0 14px;gap:10px;flex:1}.searchbox input{border:0;background:transparent;outline:0;width:100%;font:inherit}.search-icon{font-size:27px}.count-pill{background:#eee8dd;border-radius:20px;padding:5px 10px;font-size:12px;color:#6f6a61;white-space:nowrap}
.camel-grid{display:grid!important;grid-template-columns:1fr!important;gap:13px}.camel-list-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:15px;background:#fffdf9;border:1px solid #eee5d9;border-radius:20px;box-shadow:0 6px 22px #16253608;min-width:0}.list-camel-photo{width:150px;height:160px;object-fit:cover;border-radius:14px;background:#eee5d5}.photo-fallback{display:grid;place-items:center;font-size:56px}.list-camel-copy{min-width:0}.list-camel-copy h3{font-size:23px;margin:0 0 11px}.list-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.list-fields span{color:#7d7c77;font-size:13px}.list-fields b{color:#1d3040;margin-right:5px;font-weight:700}.list-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.small-btn{border:1px solid #e8dfd2;background:#fffaf2;color:#263746;border-radius:10px;padding:8px 11px;font:600 12px "IBM Plex Sans Arabic",sans-serif;cursor:pointer}.small-btn.primary{background:#f7e6c4;border-color:#e8c47d}
.empty-card{background:#fffdf8;border:1px solid #eee5d9;border-radius:22px;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-icon{font-size:56px}.empty-card h3{margin:8px 0}.empty-card p{color:#7b7c7e;line-height:1.8}
.detail-card{background:#fffdf9;border:1px solid #eee5d9;border-radius:23px;padding:17px;box-shadow:0 7px 24px #1725360c}.detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.profile-label{background:#f6ead3;padding:7px 12px;border-radius:10px;font-size:13px;font-weight:700}.detail-hero{display:grid;grid-template-columns:minmax(220px,40%) 1fr;gap:20px;align-items:center;background:linear-gradient(120deg,#f6f0e6,#fffdf8);border-radius:18px;padding:14px}.detail-hero img,.detail-photo-fallback{width:100%;height:280px;object-fit:cover;border-radius:14px}.detail-photo-fallback{display:grid;place-items:center;font-size:100px;background:#eee4d2}.detail-title span{color:#a27a37;font-size:13px;font-weight:700}.detail-title h2{font-size:clamp(28px,4vw,40px);margin:9px 0}.detail-title p{color:#777;margin:0}.detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.detail-field{background:#f7f3ec;border-radius:13px;padding:11px 14px;display:flex;flex-direction:column;gap:4px}.detail-field small,.detail-notes small{color:#8a877f}.detail-field strong{overflow-wrap:anywhere}.detail-notes{background:#f7f3ec;border-radius:13px;padding:13px 15px;margin-bottom:16px}.detail-notes p{white-space:pre-wrap;line-height:1.8;margin:5px 0 0}.detail-share{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;background:#f5ecdc;border-radius:17px;margin-bottom:16px}.detail-share h3{margin:0 0 5px}.detail-share p{color:#6d6b65;font-size:13px;line-height:1.7}.detail-share img{width:150px;height:150px;background:#fff;padding:8px;border-radius:12px}.achievement-box{border:1px solid #eee5d9;border-radius:17px;padding:15px;background:#fffefa}.achievement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.achievement-heading h3{font-size:20px;margin:0}.achievement-list{display:grid;gap:8px}.achievement-item{display:flex;align-items:center;gap:12px;border:1px solid #eee7dc;border-radius:13px;padding:11px}.medal{font-size:25px}.achievement-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.achievement-copy span,.achievement-copy small{color:#777;font-size:12px;line-height:1.7}.achievement-remove{border:0;background:transparent;font-size:23px;cursor:pointer}.no-achievements{text-align:center;padding:15px;color:#85817a}.share-qr{display:flex;justify-content:center;padding:10px}.share-qr img{width:240px;max-width:100%}.loading-note{text-align:center;padding:25px}.bottom-nav{grid-template-columns:repeat(5,1fr)!important}.bottom-nav button{cursor:pointer}.bottom-nav .nav-add span{width:49px;height:49px;border-radius:50%;background:linear-gradient(135deg,#f8dda4,#d8a54e);color:#111;display:grid;place-items:center;font-size:32px;margin-top:-22px;box-shadow:0 0 0 5px #0b2030}
.hidden{display:none!important}.modal-backdrop{z-index:30}.modal{font-family:"IBM Plex Sans Arabic",sans-serif}.modal input,.modal select,.modal textarea{font:inherit}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}.form-grid label,.modal form>label{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;font-size:13px;font-weight:600}.modal input:not([type=checkbox]),.modal select,.modal textarea{width:100%;border:1px solid #e5ded4;border-radius:11px;padding:12px;background:#fff;color:#142638}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.light-btn{border:1px solid #e5ded4;background:white;border-radius:12px;padding:11px 18px;cursor:pointer}.full-btn{width:100%}.auth-tabs{display:flex;gap:4px;background:#f2eee7;border-radius:12px;padding:4px;margin:12px 0}.auth-tabs button{flex:1;border:0;border-radius:9px;padding:10px;background:transparent}.auth-tabs button.active{background:#fff;font-weight:700}.form-message{font-size:13px;color:#28704a}.form-message.error{color:#a33b3b}.toast{z-index:50}
@media(max-width:620px){.hero{min-height:300px;border-radius:0 0 23px 23px}.hero-content{padding:25px 19px}.home-sections{grid-template-columns:1fr;padding:0 13px;margin-top:-12px;gap:10px}.section-tile{min-height:91px;padding:16px}.section-tile strong{font-size:21px}.qr-hint{padding:13px}.workspace,.shared-view{padding:15px 12px 30px}.list-top h2{font-size:23px}.list-top{align-items:flex-start}.search-row{gap:7px}.add-top{padding:10px;font-size:12px}.camel-list-card{grid-template-columns:100px minmax(0,1fr);gap:11px;padding:10px;border-radius:17px}.list-camel-photo{width:100px;height:130px}.list-camel-copy h3{font-size:18px;margin-bottom:8px}.list-fields{grid-template-columns:1fr;gap:5px}.list-fields span{font-size:12px}.list-actions{gap:5px;margin-top:10px}.small-btn{padding:7px 8px;font-size:11px}.detail-card{padding:10px}.detail-hero{grid-template-columns:1fr;gap:12px;padding:10px}.detail-hero img,.detail-photo-fallback{height:230px}.detail-title h2{margin:5px 0}.detail-fields{gap:7px}.detail-field{padding:9px}.detail-share{gap:10px;padding:12px}.detail-share img{width:112px;height:112px}.detail-share p{font-size:12px}.achievement-heading h3{font-size:17px}.form-grid{grid-template-columns:1fr}.modal{padding:23px 18px}.bottom-nav{padding-top:7px}.bottom-nav button small{font-size:10px}.bottom-nav .nav-add span{width:45px;height:45px;margin-top:-19px}}
@media(max-width:370px){.camel-list-card{grid-template-columns:1fr}.list-camel-photo{width:100%;height:170px}.detail-share img{width:90px;height:90px}}


/* === Reference-match pass: portrait camel registry UI === */
:root{--navy:#061522;--gold:#e8bf76;--cream:#f8f5ed;--ink:#111c2b}
html,body{background:#061522}
body{padding-bottom:88px;background:#061522;font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif}
.topbar{height:170px;display:grid;grid-template-columns:48px 48px 1fr;grid-template-rows:1fr;gap:10px;padding:17px 20px 12px;background:#061522;align-items:start}
.topbar .round-icon{grid-row:1;grid-column:1;border-color:#26394a;width:42px;height:42px;font-size:21px;margin-top:3px}
.topbar .bell{grid-column:2;border:1px solid #26394a}
.topbar .brand{grid-column:3;grid-row:1;text-align:center;align-self:center;padding-right:8px}
.topbar .brand h1{font-size:29px;line-height:1.3;letter-spacing:0;color:#e8bf76}
.topbar .brand p{font-size:12px;color:#f4eee4;margin-top:3px}
.topbar .brand-mark{display:none}
.hero{min-height:calc(100svh - 250px);height:calc(100svh - 250px);max-height:720px;border-radius:24px 24px 0 0;overflow:hidden;align-items:flex-start;background:#071724}
.hero-art{background-image:url("camel-racing-hero.jpg");background-size:cover;background-position:center bottom;transform:none}
.hero-shade{background:linear-gradient(180deg,rgba(4,17,28,.78) 0%,rgba(4,17,28,.08) 43%,rgba(4,17,28,.04) 68%,rgba(4,17,28,.45) 100%)}
.hero-content{padding:20px 18px;max-width:none;width:100%;text-align:center}
.hero-content .eyebrow,.hero-content h2,.hero-content p,.hero-content .hero-btn{display:none}
.home-sections{position:absolute;z-index:4;top:185px;left:0;right:0;padding:0 14px;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.section-tile{min-height:100px;border-radius:17px;padding:13px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-shadow:none}
.section-tile .tile-icon{font-size:26px;line-height:1.15}
.section-tile strong{font-size:18px}
.section-tile small{display:none}
.section-tile b{display:none}
.race-tile{background:#071725;color:#f5d18b;border:1px solid #e7bf76;box-shadow:inset 0 0 0 1px #e7bf7622}
.bush-tile{background:#f8f5ed;color:#111c2b;border:1px solid #f8f5ed}
.qr-hint{position:absolute;top:320px;left:10%;right:10%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;border:1px solid #ffffff2b;border-radius:18px;background:rgba(6,21,34,.36);color:white;padding:20px}
.qr-hint>span{font-size:43px;line-height:1}
.qr-hint strong{display:block;font-size:15px}
.qr-hint small{display:none}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;background:#061522;border-top:1px solid #172b3a;border-radius:19px 19px 0 0;padding:8px 7px calc(7px + env(safe-area-inset-bottom));box-shadow:none}
.bottom-nav button{min-height:58px;gap:2px;color:#e9edf1}
.bottom-nav button span{font-size:23px}
.bottom-nav button small{font-size:10px}
.bottom-nav button.selected{color:#e8bf76}
.bottom-nav button.selected:after{display:none}
.bottom-nav .nav-add span{width:45px;height:45px;border-radius:50%;background:linear-gradient(140deg,#f7d99b,#d9a852);color:#111;display:grid;place-items:center;font-size:30px;margin-top:-18px;box-shadow:none}
.workspace,.shared-view{background:#f8f5ed;border-radius:23px 23px 0 0;min-height:calc(100svh - 85px);margin:0;padding:18px 13px 34px;color:#111c2b}
.list-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.list-top>div{display:flex;align-items:center;gap:9px}
.list-top .gold-line{display:none}
.list-top h2{font-size:23px;margin:0;color:#111c2b}
.back-home{border:0;background:transparent;color:#7a746b;font-weight:600;font-size:12px;padding:7px 0}
.count-pill{background:#efe9dd;color:#777}
.search-row{display:flex;flex-direction:column;gap:10px;margin-bottom:17px}
.searchbox{height:50px;border-radius:13px;border:1px solid #e8e1d7;background:#fff;padding:0 13px}
.searchbox input{font-size:13px}
.search-icon{font-size:26px}
.add-top{align-self:flex-start;border-radius:12px;padding:10px 20px;font-size:14px}
.camel-grid{display:grid;grid-template-columns:1fr;gap:12px}
.camel-list-card{display:grid;grid-template-columns:minmax(112px,42%) minmax(0,1fr);gap:12px;padding:10px;background:#fffdf8;border:1px solid #eee7db;border-radius:18px;box-shadow:0 2px 8px #251d1008;min-width:0}
.list-camel-photo{width:100%;height:175px;object-fit:cover;border-radius:12px;background:#eee7dc}
.list-camel-copy{min-width:0;align-self:center}
.list-camel-copy h3{font-size:22px;line-height:1.25;margin:0 0 9px;color:#0c1728}
.list-fields{display:flex;flex-direction:column;gap:5px}
.list-fields span{font-size:12px;color:#817b72;line-height:1.6;display:flex;gap:5px;flex-wrap:wrap}
.list-fields b{font-weight:600;color:#30343b}
.list-actions{display:flex!important;gap:6px;flex-wrap:wrap;margin-top:10px}.list-actions .small-btn{display:inline-flex;align-items:center;justify-content:center}
.empty-card{background:#fffdf8;border-radius:20px;min-height:290px}
.detail-card{background:#f8f5ed;border:0;box-shadow:none;border-radius:0;padding:0}
.detail-head{display:flex;justify-content:space-between;align-items:center;padding:0 2px 10px}
.profile-label{font-size:20px;font-weight:700;color:#111c2b}
.detail-hero{display:flex;flex-direction:column;gap:12px;padding:0;background:transparent;border:0;box-shadow:none}
.detail-hero img,.detail-photo-fallback{width:100%;height:clamp(220px,55vw,370px);object-fit:cover;border-radius:14px;background:#e9e3d8}
.detail-title{padding:0 5px;text-align:right}
.detail-title>span,.detail-title p{display:none}
.detail-title h2{font-size:29px;margin:4px 0 8px;color:#071322}
.detail-fields{display:flex;flex-direction:column;gap:6px;margin:12px 0 18px}
.detail-field{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:8px;padding:11px 12px;border:1px solid #eee8dd;border-radius:13px;background:#f1eee6;min-height:48px}
.detail-field small{font-size:13px;color:#8a8379}
.detail-field strong{font-size:15px;color:#252932}
.detail-notes{padding:12px;border-radius:12px;background:#f1eee6}
.detail-share{display:flex;flex-direction:column;align-items:center;gap:10px;margin:20px 0 22px;padding:17px 14px;border-radius:17px;background:#f1eee6;border:1px solid #eee8dd;text-align:center}
.detail-share>div{display:flex;flex-direction:column;align-items:center;gap:10px}
.detail-share h3{font-size:21px;margin:0;color:#111c2b}
.detail-share p{font-size:13px;color:#7c756c;margin:0}
.detail-share img{width:205px;height:205px;object-fit:contain;image-rendering:pixelated;background:white;padding:4px;border-radius:3px}
.detail-share .gold-btn{width:min(100%,320px);border-radius:12px;padding:12px 20px;text-decoration:none}
.achievement-box{margin-top:20px;padding:14px 10px;background:#f8f5ed;border:1px solid #eee7db;border-radius:18px}
.achievement-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.achievement-heading h3{font-size:20px;margin:0;color:#111c2b}
.achievement-add{padding:8px 10px;font-size:12px}
.achievement-list{display:flex;flex-direction:column;gap:9px}
.achievement-item{display:flex;align-items:center;gap:9px;background:#fffdf8;border:1px solid #eee8df;border-radius:14px;padding:12px 9px;min-width:0}
.achievement-item .medal{font-size:29px;flex:0 0 34px}
.achievement-copy{min-width:0;gap:4px}
.achievement-copy strong{font-size:15px;color:#161b24}
.achievement-copy span{font-size:12px;color:#48443e}
.achievement-copy small{font-size:10px;color:#8b857c;line-height:1.7}
.achievement-remove{flex:0 0 24px;color:#333}
.shared-view .detail-card{max-width:700px;margin:auto}
@media(min-width:621px){
 .home-sections{top:195px;left:50%;right:auto;transform:translateX(-50%);width:min(650px,90%);padding:0}
 .qr-hint{top:340px;left:calc(50% - 180px);right:auto;width:360px}
 .hero{height:calc(100svh - 250px)}
 .camel-grid{grid-template-columns:1fr}
 .camel-list-card{grid-template-columns:180px minmax(0,1fr)}
 .detail-card{max-width:700px;margin:auto}
}
@media(max-width:390px){
 .topbar{height:155px;grid-template-columns:40px 40px 1fr;padding:12px}
 .topbar .round-icon{width:36px;height:36px}
 .topbar .brand h1{font-size:24px}
 .home-sections{top:165px;padding:0 10px}
 .section-tile{min-height:90px}
 .qr-hint{top:225px;left:7%;right:7%;min-height:160px}
 .hero{height:calc(100svh - 225px);min-height:480px}
 .camel-list-card{grid-template-columns:100px minmax(0,1fr);gap:9px;padding:8px}
 .list-camel-photo{height:145px}
 .list-camel-copy h3{font-size:19px}
 .list-fields span{font-size:11px}
 .detail-field{grid-template-columns:82px minmax(0,1fr)}
 .detail-share img{width:180px;height:180px}
}

/* Photo upload picker and no-emoji placeholder */
.photo-picker-label{display:flex;flex-direction:column;gap:8px}
.photo-picker-label input[type=file]{width:100%;padding:11px;border:1px dashed #d8c8a8;border-radius:12px;background:#fffdf8;color:#4e4a42;font-size:13px}
.photo-picker-label small{font-size:12px;color:#81796d;font-weight:400}
.photo-preview{width:100%;max-height:220px;object-fit:cover;border-radius:12px;border:1px solid #e9e1d5}
.photo-fallback{display:flex;align-items:center;justify-content:center;background:#eee8de;color:#958d81;border-radius:12px}
.photo-fallback span{font-size:12px;font-weight:500}
.camel-list-card{cursor:pointer}
.camel-list-card:focus-visible{outline:2px solid #d9ad60;outline-offset:3px}
.detail-photo-fallback{display:flex;align-items:center;justify-content:center}
.detail-photo-fallback span{font-size:13px;color:#938a7e}

/* Detail actions: owner-only edit button */
.detail-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-start}.detail-edit-btn{padding:8px 12px;font-size:12px;border-radius:10px;white-space:nowrap}
@media(max-width:390px){.detail-head-actions{gap:6px}.detail-edit-btn{font-size:11px;padding:7px 9px}}


/* Centered premium camel-racing mark (concept 8) */
.topbar{position:relative}
.topbar .brand-mark{display:grid;position:absolute;top:13px;left:50%;transform:translateX(-50%);width:55px;height:55px;color:#e8bf76}
.racing-camel-logo{width:100%;height:100%;filter:drop-shadow(0 2px 6px #0008)}
.topbar .brand{align-self:start;margin-top:61px;padding:0;grid-column:1/-1;grid-row:1;justify-self:center;width:100%;pointer-events:none}
.topbar .brand h1{font-size:27px}
.qr-hint{width:auto;font:inherit;text-align:center;cursor:pointer;appearance:none;-webkit-appearance:none}
.qr-hint:active{transform:scale(.985)}
.qr-hint:focus-visible{outline:2px solid #e8bf76;outline-offset:3px}
.qr-hint .qr-scan-action{margin-top:4px;color:#e8bf76;font-size:12px;font-weight:600}
.scanner-modal{text-align:center;max-width:480px}
#qrReader{width:100%;max-width:360px;margin:12px auto 15px;overflow:hidden;border:1px solid #e8bf76;border-radius:15px;background:#071522}
#qrReader video{border-radius:12px;object-fit:cover}
#qrReader__dashboard_section_csr button{border:0;border-radius:9px;padding:8px 12px;background:#e8bf76;color:#071522;font:inherit}
.scanner-modal .form-message{line-height:1.8}
@media(max-width:390px){.topbar .brand-mark{top:8px;width:48px;height:48px}.topbar .brand{margin-top:54px}.topbar .brand h1{font-size:24px}}


/* إزالة صورة الخلفية الإضافية والتكرار، والإبقاء على صورة الهيرو الأصلية فقط */
.hero::after{content:none!important;display:none!important;background:none!important}
.hero-art{background-image:none!important;background-color:transparent!important}
.qr-hint{background:transparent!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.qr-hint::before,.qr-hint::after{content:none!important;display:none!important}

/* Emergency cleanup: remove all camel artwork layers from the home/QR area */
#homeHero{background:#061522!important}
#homeHero .hero-art,#homeHero::before,#homeHero::after{display:none!important;content:none!important;background-image:none!important}
#homeHero .hero-shade{background:linear-gradient(0deg,rgba(4,18,29,.18),rgba(4,18,29,.05))!important}
.qr-hint,.qr-hint::before,.qr-hint::after{background:#061522!important;background-image:none!important;content:none!important;display:none!important;box-shadow:none!important}

/* Approved step 1: QR card is visible and completely transparent; no image inside it */
.qr-hint{display:flex!important;background:transparent!important;background-color:transparent!important;background-image:none!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
.qr-hint::before,.qr-hint::after{content:none!important;display:none!important;background:none!important;background-image:none!important}
.qr-hint>span,.qr-hint>div,.qr-hint>b{background:transparent!important}


/* FIX 2026-10-18: remove every image/background from the barcode button itself */
html body #homeHero button#scanQrBtn.qr-hint,
html body #homeHero button#scanQrBtn.qr-hint:hover,
html body #homeHero button#scanQrBtn.qr-hint:active,
html body #homeHero button#scanQrBtn.qr-hint:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  display: flex !important;
}
html body #homeHero button#scanQrBtn.qr-hint::before,
html body #homeHero button#scanQrBtn.qr-hint::after,
html body #homeHero button#scanQrBtn.qr-hint > *,
html body #homeHero button#scanQrBtn.qr-hint > *::before,
html body #homeHero button#scanQrBtn.qr-hint > *::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* Step 1: remove all background images behind and inside the QR card */
#homeHero .hero-art,
#homeHero .hero-shade,
#homeHero::before,
#homeHero::after {
  background-image: none !important;
}
#homeHero .hero-art {
  display: none !important;
}
#scanQrBtn,
#scanQrBtn:hover,
#scanQrBtn:active,
#scanQrBtn:focus,
#scanQrBtn::before,
#scanQrBtn::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* STEP 1 definitive: remove the racing artwork behind and below the QR card */
html body main #homeHero,
html body main #homeHero.hero {
  background-color: #061522 !important;
  background-image: none !important;
}
html body main #homeHero .hero-art,
html body main #homeHero .hero-shade,
html body main #homeHero::before,
html body main #homeHero::after,
html body main #homeHero .hero-art::before,
html body main #homeHero .hero-art::after,
html body main #homeHero .hero-shade::before,
html body main #homeHero .hero-shade::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}
html body main #homeSections,
html body main #homeSections::before,
html body main #homeSections::after {
  background-image: none !important;
}
html body main #homeSections #scanQrBtn,
html body main #homeSections #scanQrBtn:hover,
html body main #homeSections #scanQrBtn:active,
html body main #homeSections #scanQrBtn:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body main #homeSections #scanQrBtn::before,
html body main #homeSections #scanQrBtn::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}


/* === Stable home layout v1: full-page racing background, centered transparent QR === */
html, body { min-height:100%; background-color:#061522 !important; }
body {
  background-image:linear-gradient(180deg,rgba(4,16,27,.60),rgba(4,16,27,.22) 52%,rgba(4,16,27,.62)),url("logo_number_7.png") !important;
  background-size:100vw auto !important;
  background-position:center calc(50% + 220px) !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
.topbar {
  height:auto !important; min-height:145px !important; padding:18px 16px 12px !important;
  background:transparent !important; position:relative !important;
}
#homeHero { display:none !important; }
#homeSections {
  position:relative !important; inset:auto !important; top:auto !important; left:auto !important; right:auto !important;
  transform:none !important; width:min(650px,100%) !important; max-width:650px !important;
  margin:10px auto 100px !important; padding:0 14px !important;
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important;
}
#homeSections .section-tile { position:relative !important; min-width:0; }
#homeSections .qr-hint {
  position:relative !important; inset:auto !important; top:auto !important; left:auto !important; right:auto !important;
  grid-column:1/-1 !important; width:100% !important; min-height:210px !important; margin:12px 0 0 !important;
  display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important;
  text-align:center !important; gap:12px !important; padding:22px 16px !important;
  background:rgba(6,21,34,.13) !important; background-image:none !important;
  border:1px solid rgba(232,191,118,.95) !important; border-radius:20px !important;
  box-shadow:0 8px 28px rgba(0,0,0,.12) !important; color:#fff !important;
  backdrop-filter:blur(1px);
}
#homeSections .qr-hint::before, #homeSections .qr-hint::after { content:none !important; display:none !important; }
#homeSections .qr-hint>span { color:#e8bf76 !important; font-size:42px !important; line-height:1 !important; }
#homeSections .qr-hint div { display:flex !important; flex-direction:column; align-items:center; gap:7px; }
#homeSections .qr-hint strong { font-size:17px !important; color:#fff !important; }
#homeSections .qr-hint small { display:block !important; color:#f0eee9 !important; line-height:1.6; }
#homeSections .qr-scan-action { color:#e8bf76 !important; }
.bottom-nav { z-index:10 !important; }
.workspace, .shared-view { background:#f8f5ed !important; }
@media(max-width:390px) {
  .topbar { min-height:132px !important; padding:12px 10px !important; }
  #homeSections { padding:0 10px !important; gap:9px !important; margin-top:8px !important; }
  #homeSections .section-tile { min-height:88px !important; }
  #homeSections .qr-hint { min-height:190px !important; }
}

/* Premium account center — navy and gold */
.account-page{position:relative;z-index:3;max-width:760px;min-height:calc(100svh - 85px);margin:0 auto 0;padding:18px 14px 34px;background:#071725;color:#f8f5ed;border-radius:24px 24px 0 0}
.account-cover{display:flex;align-items:center;gap:15px;padding:22px 18px;border:1px solid #dcb76e66;border-radius:22px;background:radial-gradient(ellipse at top right,#17354a 0%,#0a2031 58%,#071725 100%);box-shadow:inset 0 1px #ffffff0a,0 12px 30px #0002}
.account-emblem{flex:0 0 58px;width:58px;height:58px;border-radius:19px;display:grid;place-items:center;font-size:32px;color:#f2cf8c;background:linear-gradient(145deg,#eac77e25,#eac77e08);border:1px solid #e8bf7666}
.account-kicker{font-size:11px;letter-spacing:.4px;color:#d9b979}.account-cover h2{font-size:27px;line-height:1.3;margin:3px 0;color:#f1ce8b}.account-cover p{font-size:12px;color:#d5dce1;margin:0;line-height:1.8}
.account-identity{display:flex;align-items:center;gap:12px;margin:14px 0 24px;padding:16px 14px;border:1px solid #20374a;border-radius:19px;background:linear-gradient(110deg,#0c2234,#0a1c2b)}.account-avatar{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;border:1px solid #d9b36c;background:#142e41;color:#f2ce89;font-size:23px}.account-identity-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.account-identity-copy strong{font-size:15px;color:#fff;overflow-wrap:anywhere}.account-identity-copy>span{font-size:12px;color:#c7d0d8;overflow-wrap:anywhere}.account-identity-copy small{font-size:11px;color:#b8d8c5}.account-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#72c99a;margin-left:4px}.account-edit{border:1px solid #d9b36c88;background:#d9b36c12;color:#f1cd88;border-radius:10px;padding:8px 12px;font-size:12px}
.account-section-title{font-size:14px;font-weight:700;color:#f0cc88;margin:21px 4px 10px}.account-menu{overflow:hidden;border:1px solid #1e3446;border-radius:18px;background:#0a1c2b;box-shadow:0 10px 24px #00012}.account-item{width:100%;display:flex;align-items:center;gap:12px;padding:14px 13px;border:0;border-bottom:1px solid #1b3041;background:transparent;color:#fff;text-align:right}.account-item:last-child{border-bottom:0}.account-item:active{background:#102a3d}.account-item-icon{width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;border:1px solid #d8b16b55;border-radius:13px;background:#d8b16b10;color:#e8c47f;font-size:21px}.account-item>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.account-item strong{font-size:13px;font-weight:600}.account-item small{font-size:11px;color:#aebbc5;line-height:1.6}.account-item>b{font-size:24px;font-weight:400;color:#d6b46f}.account-signout{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:24px;padding:14px;border:1px solid #a85a5a88;border-radius:15px;background:#7e29251b;color:#f0a4a0;font-weight:700}.account-signout span{font-size:21px}.account-version{text-align:center;font-size:10px;color:#72818e;margin:16px 0 0}
#profileModal .modal,#passwordModal .modal,#contactModal .modal{color:#15283a}
@media(min-width:621px){.account-page{padding:28px 24px 40px;min-height:calc(100svh - 85px)}.account-cover{padding:28px}.account-item{padding:16px}.account-section-title{margin-top:25px}}

/* Account view must replace the home tiles completely, not stack below them */
body.account-mode #homeHero,
body.account-mode #homeSections,
body.account-mode #workspace,
body.account-mode #sharedView { display:none !important; }
body.account-mode main { min-height:0 !important; height:auto !important; margin:0 !important; padding:0 !important; }
body.account-mode .account-page { display:block !important; margin-top:0 !important; }
body.account-mode .topbar { flex-shrink:0; }

/* Records view: show only the registry, not the home hero/categories/QR */
body.records-mode #homeHero,
body.records-mode #homeSections { display:none !important; }
body.records-mode #workspace { display:block !important; margin-top:0 !important; }
body.records-mode main { margin-top:0 !important; padding-top:0 !important; min-height:0 !important; }
body.records-mode .account-page,
body.records-mode #sharedView { display:none !important; }

/* Dedicated achievements page, matching the premium navy and gold system */
body.achievements-mode #achievementsPage{display:block!important}body.achievements-mode #homeHero,body.achievements-mode #homeSections,body.achievements-mode #workspace,body.achievements-mode #sharedView,body.achievements-mode #accountPage{display:none!important}
.achievements-page{position:relative;z-index:2;max-width:760px;min-height:calc(100svh - 85px);margin:0 auto;padding:18px 14px 36px;background:#071725;color:#f8f5ed;border-radius:24px 24px 0 0}.achievements-hero{display:flex;align-items:center;gap:15px;padding:24px 18px;border:1px solid #dcb76e66;border-radius:22px;background:radial-gradient(ellipse at top right,#17354a 0%,#0a2031 58%,#071725 100%);box-shadow:0 12px 30px #0002}.achievements-trophy{display:grid;place-items:center;width:60px;height:60px;flex:0 0 60px;border-radius:19px;border:1px solid #e8bf7666;background:#eac77e12;font-size:31px}.achievements-hero small{font-size:11px;color:#d9b979}.achievements-hero h2{margin:4px 0;color:#f1ce8b;font-size:27px}.achievements-hero p{margin:0;color:#d5dce1;font-size:12px;line-height:1.8}.achievements-summary{display:flex;justify-content:space-between;align-items:center;margin:16px 0;padding:16px;border:1px solid #20374a;border-radius:17px;background:#0c2234;color:#d8e0e5;font-size:13px}.achievements-summary strong{display:grid;place-items:center;min-width:38px;height:38px;padding:0 8px;border-radius:12px;background:#d9b36c19;border:1px solid #d9b36c66;color:#f1ce8b;font-size:18px}.achievements-list{display:grid;gap:11px}.achievement-record{display:flex;align-items:flex-start;gap:13px;padding:16px 14px;border:1px solid #20374a;border-radius:17px;background:linear-gradient(110deg,#0c2234,#0a1c2b)}.achievement-record-medal{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #d8b16b55;border-radius:13px;background:#d8b16b10;font-size:23px}.achievement-record-info{display:flex;flex-direction:column;gap:6px;min-width:0}.achievement-record-info strong{color:#f4d18f;font-size:15px;overflow-wrap:anywhere}.achievement-record-info span{color:#f4f5f7;font-size:13px}.achievement-record-info small{color:#aebbc5;font-size:11px;line-height:1.6}.achievements-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:38px 18px;border:1px dashed #d9b36c66;border-radius:18px;background:#0a1c2b}.achievements-empty>span{font-size:36px;color:#e8c47f}.achievements-empty h3{margin:0;color:#f1ce8b;font-size:17px}.achievements-empty p{margin:0;color:#b9c4ce;font-size:13px;line-height:1.8}

/* QR shared view: hide homepage category tiles and scanner prompt */
body.qr-record-mode #homeSections{display:none!important}
body.qr-record-mode #homeHero{display:none!important}
