
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#08090b;
  color:#fff;
  line-height:1.5;
}
img{display:block;max-width:100%}
a{color:inherit}
button,input,textarea,select{font:inherit}

.container{
  width:min(1120px,calc(100% - 40px));
  margin:auto;
}

/* ===== HEADER / MENU SHARED ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  height:70px;
  background:rgba(8,9,11,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  width:min(1180px,calc(100% - 36px));
  height:70px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  width:190px;
  height:46px;
  display:flex;
  align-items:center;
}
.brand img{
  width:190px;
  height:46px;
  object-fit:contain;
  object-position:left center;
}
.menu-btn{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  background:#111317;
  color:#fff;
  font-size:25px;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.right-menu{
  position:fixed;
  top:0;
  right:0;
  width:315px;
  height:100vh;
  background:#0d0f12;
  border-left:1px solid rgba(255,255,255,.08);
  z-index:120;
  padding:20px;
  transform:translateX(100%);
  transition:transform .24s ease;
}
.right-menu.open{
  transform:translateX(0);
  box-shadow:-20px 0 60px rgba(0,0,0,.35),-9999px 0 0 9999px rgba(0,0,0,.46);
}
.menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:24px;
}
.menu-head img{
  width:165px;
  height:40px;
  object-fit:contain;
  object-position:left center;
}
.close-btn{
  width:36px;height:36px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:#171a1f;
  color:#fff;
  font-size:25px;
  cursor:pointer;
}
.menu-nav{display:flex;flex-direction:column;gap:4px}
.menu-link,.project-toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:13px 12px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-size:18px;
  text-align:left;
}
.menu-link:hover,.project-toggle:hover{
  background:rgba(255,255,255,.055);
}
.arrow{transition:transform .18s ease}
.project-toggle[aria-expanded="true"] .arrow{transform:rotate(180deg)}
.submenu{
  max-height:0;
  overflow:hidden;
  margin-left:14px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.12);
  transition:max-height .22s ease;
}
.submenu.open{max-height:180px}
.submenu a{
  display:block;
  padding:10px 9px;
  border-radius:9px;
  text-decoration:none;
  color:#c9cdd3;
  font-size:16px;
}
.submenu a:hover{background:rgba(255,255,255,.05);color:#fff}

/* ===== NEUTRAL HOME ===== */
.home-body{
  background:#08090b;
}
.home-hero{
  padding:92px 0 84px;
  min-height:620px;
  display:flex;
  align-items:center;
}
.home-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}
.home-kicker{
  color:#9ca1a8;
  text-transform:uppercase;
  letter-spacing:.17em;
  font-size:12px;
  font-weight:700;
  margin:0 0 14px;
}
.home-title{
  margin:0 0 22px;
  font-size:64px;
  line-height:1.02;
  letter-spacing:-2.6px;
  max-width:720px;
}
.home-lead{
  max-width:670px;
  color:#c4c8ce;
  font-size:19px;
}
.neutral-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:24px;
  padding:13px 18px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.16);
  background:#fff;
  color:#08090b;
  font-weight:800;
  text-decoration:none;
}
.home-side{
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:30px;
  background:#0d0f12;
}
.home-side .big-number{
  font-size:72px;
  font-weight:800;
  line-height:1;
  color:#fff;
  margin-bottom:12px;
}
.home-side p{color:#aeb3ba;margin:0}
.projects-home{
  padding:20px 0 95px;
}
.projects-home h2{
  margin:0 0 8px;
  font-size:38px;
}
.projects-home .intro{
  color:#aeb3ba;
  max-width:650px;
}
.project-cards{
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.home-card{
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  padding:25px;
  background:#0d0f12;
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.home-card .label{
  color:#858b93;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:11px;
}
.home-card h3{
  font-size:27px;
  margin:12px 0 8px;
}
.home-card p{
  margin:0;
  color:#b5bac1;
}
.home-card a{
  margin-top:24px;
  text-decoration:none;
  font-weight:700;
  color:#fff;
  display:inline-block;
}
.home-card a::after{content:" →"}

/* ===== SHARED PROJECT ===== */
.project-page{
  min-height:100vh;
  padding:68px 0 95px;
}
.project-head{
  max-width:820px;
  margin-bottom:34px;
}
.project-tag{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
  font-size:12px;
  margin:0 0 11px;
}
.project-head h1{
  margin:0 0 16px;
  font-size:50px;
  line-height:1.04;
}
.project-head .lead{
  font-size:18px;
  max-width:760px;
  color:#ccd1d7;
}
.back-link{
  display:inline-flex;
  margin-top:18px;
  color:#c5cad0;
  text-decoration:none;
}
.panel{
  border-radius:22px;
  padding:24px;
}
.field{margin-bottom:24px}
.field>label:first-child{
  display:block;
  margin-bottom:10px;
  font-weight:700;
}
.optional{font-weight:400;opacity:.65}
input,textarea,select{
  width:100%;
  padding:12px 13px;
  border-radius:12px;
  color:#fff;
  outline:none;
}
textarea{min-height:110px;resize:vertical}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-grid .wide{grid-column:1/-1}
.form-grid label{
  color:#d1d5da;
  font-size:14px;
}
.form-grid label input,
.form-grid label textarea,
.form-grid label select{margin-top:7px}

/* ===== PHOSPHO IDENTITY ===== */
.phospho-body{
  background:
    radial-gradient(circle at 80% 5%,rgba(127,255,68,.08),transparent 28%),
    #071008;
}
.phospho-body .project-tag{color:#9dff65}
.phospho-body .project-head h1{
  color:#f8fff5;
  text-shadow:0 0 26px rgba(138,255,80,.08);
}
.phospho-body .panel{
  background:#0d160e;
  border:1px solid rgba(148,255,91,.12);
}
.phospho-body input,
.phospho-body textarea{
  background:#09110a;
  border:1px solid rgba(148,255,91,.14);
}
.builder-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:22px;
}
.upload-phospho{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:145px;
  border:1.5px dashed rgba(151,255,95,.32);
  border-radius:18px;
  background:#09110a;
  cursor:pointer;
}
.upload-phospho strong{color:#9dff65}
input[type=file]{display:none}
.file-name{font-size:14px;margin-top:8px}
.phospho-body .file-name{color:#9dff65}
.sizes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.size{
  padding:13px;
  border-radius:13px;
  background:#09110a;
  color:#fff;
  border:1px solid rgba(151,255,95,.13);
  text-align:left;
  cursor:pointer;
}
.size span{display:block;font-size:12px;color:#9ca99b;margin-top:4px}
.size.active{border-color:#9dff65;background:rgba(157,255,101,.08)}
.qty-control{display:flex;gap:10px}
.qty-control button{
  width:42px;height:42px;
  border:0;border-radius:11px;
  background:#9dff65;color:#071008;font-size:22px;cursor:pointer;
}
.qty-control input{
  width:88px;
  background:#09110a;
  border:1px solid rgba(151,255,95,.13);
  text-align:center;
}
.preview-box{
  min-height:320px;
  border-radius:18px;
  background:#081009;
  border:1px solid rgba(151,255,95,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  overflow:hidden;
}
.empty-preview{text-align:center;color:#9ca99b}
.empty-preview .star{display:block;font-size:42px;color:#9dff65;margin-bottom:8px}
#imagePreview{display:none;max-height:280px;object-fit:contain}
.summary{margin-top:18px}
.summary>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(151,255,95,.08)}
.summary .total{border:0;font-size:20px}
.summary .total strong{color:#9dff65}
.phospho-submit{
  width:100%;
  margin-top:18px;
  padding:15px 17px;
  border:0;
  border-radius:13px;
  background:#9dff65;
  color:#071008;
  font-weight:800;
  display:flex;
  justify-content:space-between;
  cursor:pointer;
}

/* ===== REQUEST PROJECT IDENTITY ===== */
.request-body{
  background:
    linear-gradient(180deg,rgba(66,135,245,.05),transparent 28%),
    #080b11;
}
.request-body .project-tag{color:#78aaff}
.request-body .panel{
  background:#0d121a;
  border:1px solid rgba(111,163,255,.12);
}
.request-body input,
.request-body textarea,
.request-body select{
  background:#090e15;
  border:1px solid rgba(111,163,255,.15);
}
.request-grid{
  display:grid;
  grid-template-columns:1fr .75fr;
  gap:22px;
}
.request-box{
  min-height:100%;
}
.upload-stl{
  border:1.5px dashed rgba(112,166,255,.34);
  background:#090e15;
  border-radius:18px;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  text-align:center;
  padding:20px;
}
.upload-stl .upload-icon{
  width:48px;height:48px;border-radius:13px;
  display:grid;place-items:center;
  background:rgba(112,166,255,.10);
  color:#78aaff;
  font-weight:900;
  margin-bottom:11px;
}
.upload-stl strong{color:#fff}
.upload-stl small{color:#8995a6;margin-top:5px}
.request-body .file-name{color:#78aaff}
.request-info{
  display:grid;
  gap:12px;
}
.info-item{
  padding:15px;
  border-radius:14px;
  background:#090e15;
  border:1px solid rgba(111,163,255,.08);
}
.info-item strong{display:block;margin-bottom:4px}
.info-item span{color:#9fa9b7;font-size:14px}
.request-submit{
  width:100%;
  margin-top:18px;
  padding:15px 17px;
  border:0;
  border-radius:13px;
  background:#78aaff;
  color:#07101f;
  font-weight:800;
  cursor:pointer;
}
.request-note{
  margin-top:10px;
  color:#919baa;
  font-size:13px;
}

/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.76);
  padding:20px;
}
.modal.show{display:flex}
.modal-card{
  width:min(460px,100%);
  border-radius:20px;
  padding:27px;
  background:#101318;
  border:1px solid rgba(255,255,255,.09);
  position:relative;
  text-align:center;
}
.modal-close{
  position:absolute;right:12px;top:12px;
  width:34px;height:34px;
  border:0;border-radius:9px;
  background:#1c2026;color:#fff;font-size:22px;cursor:pointer;
}

@media(max-width:850px){
  .home-grid,.builder-grid,.request-grid{grid-template-columns:1fr}
  .home-title{font-size:46px}
  .project-cards{grid-template-columns:1fr}
  .brand,.brand img{width:155px;height:38px}
}
@media(max-width:560px){
  .right-menu{width:min(88vw,315px)}
  .home-title{font-size:38px}
  .project-head h1{font-size:39px}
  .form-grid,.sizes{grid-template-columns:1fr}
  .form-grid .wide{grid-column:auto}
}


/* ===== V12 : multi-file request ===== */
.upload-error{
  margin-top:10px;
  color:#ff8d8d;
  font-size:13px;
  line-height:1.45;
}
.project-file-list{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.file-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#090e15;
  border:1px solid rgba(111,163,255,.11);
  border-radius:12px;
  padding:10px 11px;
}
.file-info{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.file-info>div{
  min-width:0;
}
.file-info strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:470px;
  font-size:14px;
}
.file-info small{
  display:block;
  color:#8f9aab;
  margin-top:2px;
}
.file-type{
  flex:0 0 auto;
  min-width:48px;
  padding:6px 7px;
  border-radius:8px;
  background:rgba(120,170,255,.10);
  color:#78aaff;
  text-align:center;
  font-size:11px;
  font-weight:800;
}
.file-remove{
  flex:0 0 auto;
  width:31px;
  height:31px;
  border:0;
  border-radius:8px;
  background:#171d27;
  color:#fff;
  cursor:pointer;
  font-size:19px;
}
.file-total{
  padding:4px 2px 0;
  color:#8e99a8;
  font-size:12px;
  text-align:right;
}

/* ===== V12 : admin demo ===== */
.admin-body{
  min-height:100vh;
  background:#090b0e;
}
.admin-shell{
  min-height:100vh;
}
.admin-login{
  min-height:calc(100vh - 70px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 20px;
}
.admin-login-card{
  width:min(430px,100%);
  border:1px solid rgba(255,255,255,.09);
  border-radius:22px;
  background:#0f1216;
  padding:28px;
  box-shadow:0 25px 70px rgba(0,0,0,.30);
}
.admin-login-card h1{
  margin:0 0 8px;
  font-size:31px;
}
.admin-login-card p{
  margin:0 0 20px;
  color:#aeb5bf;
}
.admin-login-card label{
  color:#cbd0d6;
  font-size:14px;
}
.admin-login-card input{
  margin-top:7px;
  background:#090b0e;
  border:1px solid rgba(255,255,255,.12);
}
.admin-login-card button{
  width:100%;
  margin-top:14px;
  padding:13px;
  border:0;
  border-radius:11px;
  background:#fff;
  color:#08090b;
  font-weight:800;
  cursor:pointer;
}
.login-error{
  min-height:20px;
  color:#ff8d8d;
  margin-top:10px;
  font-size:13px;
}
.admin-dashboard{
  display:none;
}
.admin-dashboard.visible{
  display:block;
}
.admin-wrap{
  width:min(1220px,calc(100% - 40px));
  margin:auto;
  padding:38px 0 80px;
}
.admin-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}
.admin-head h1{
  margin:0 0 5px;
  font-size:38px;
}
.admin-head p{
  margin:0;
  color:#9ea6b1;
}
.admin-logout{
  border:1px solid rgba(255,255,255,.12);
  background:#12161c;
  color:#fff;
  padding:10px 13px;
  border-radius:10px;
  cursor:pointer;
}
.admin-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:24px;
}
.stat-card{
  background:#0f1216;
  border:1px solid rgba(255,255,255,.08);
  border-radius:17px;
  padding:18px;
}
.stat-card strong{
  display:block;
  font-size:29px;
}
.stat-card span{
  color:#929aa6;
  font-size:13px;
}
.admin-table{
  background:#0f1216;
  border:1px solid rgba(255,255,255,.08);
  border-radius:19px;
  overflow:hidden;
}
.admin-row{
  display:grid;
  grid-template-columns:90px 1.25fr 1fr .75fr 120px;
  gap:14px;
  align-items:center;
  padding:15px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.admin-row:last-child{border-bottom:0}
.admin-row.header{
  background:#0b0e12;
  color:#88919d;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.admin-row strong{
  font-size:14px;
}
.admin-row small{
  display:block;
  color:#89929e;
  margin-top:3px;
}
.admin-status{
  display:inline-flex;
  padding:6px 8px;
  border-radius:999px;
  font-size:11px;
  background:#181d24;
  color:#cfd5dc;
}
.admin-open{
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:13px;
}
.admin-note{
  margin-top:16px;
  color:#7f8996;
  font-size:12px;
}
@media(max-width:850px){
  .admin-stats{grid-template-columns:1fr}
  .admin-row{grid-template-columns:1fr 1fr}
  .admin-row.header{display:none}
}


/* ===== V13 : admin Demandes / Commandes ===== */
.admin-tabs{
  display:flex;
  gap:8px;
  margin-bottom:26px;
  padding:6px;
  width:max-content;
  max-width:100%;
  background:#0f1216;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
}
.admin-tab{
  border:0;
  border-radius:10px;
  padding:10px 16px;
  background:transparent;
  color:#9da5af;
  font-weight:700;
  cursor:pointer;
}
.admin-tab:hover{
  color:#fff;
  background:rgba(255,255,255,.04);
}
.admin-tab.active{
  background:#fff;
  color:#08090b;
}
.admin-tab-panel{
  display:none;
}
.admin-tab-panel.visible{
  display:block;
}
.admin-section-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:18px;
}
.admin-section-title h2{
  margin:0 0 5px;
  font-size:27px;
}
.admin-section-title p{
  margin:0;
  color:#929aa6;
}
.admin-orders-table{
  overflow-x:auto;
}
.admin-order-row{
  display:grid;
  grid-template-columns:130px 1.05fr 1.35fr 120px 120px 110px;
  gap:14px;
  align-items:center;
  min-width:900px;
  padding:15px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.admin-order-row:last-child{
  border-bottom:0;
}
.admin-order-row.header{
  background:#0b0e12;
  color:#88919d;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.admin-order-row small{
  display:block;
  color:#89929e;
  margin-top:3px;
}
.payment-status{
  display:inline-flex;
  padding:6px 8px;
  border-radius:999px;
  font-size:11px;
  background:#122017;
  color:#b8e6c8;
}
@media(max-width:850px){
  .admin-tabs{
    width:100%;
  }
  .admin-tab{
    flex:1;
  }
}
