:root{font-family:Inter,system-ui,Arial,sans-serif;color:#14212b;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:11px;padding:11px 15px;background:#116f59;color:white;font-weight:700}button:disabled{opacity:.5}button.alt{background:#e7edf0;color:#20323e}button.danger{background:#bb3434}input,select,textarea{border:1px solid #cbd6db;border-radius:10px;padding:12px;width:100%;background:white}label{display:block;font-weight:600;font-size:13px;margin:10px 0 5px}header{background:#12232c;color:white;padding:16px max(20px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}header h2{margin:0}header small{color:#b5c6cc}main{max-width:1100px;margin:22px auto;padding:0 16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.card{background:white;border:1px solid #e0e7eb;border-radius:16px;padding:19px;box-shadow:0 4px 15px #172b3a0a;margin-bottom:15px}.wide{max-width:650px;margin:20px auto}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.muted{color:#687984;font-size:13px}.pill{background:#e6f5ed;color:#166e49;padding:6px 9px;border-radius:20px;font-size:12px;font-weight:700}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tabs button{background:#e1e8ec;color:#233842}.tabs button.active{background:#116f59;color:white}.photo{width:100%;height:180px;object-fit:contain;background:#f0f3f5;border-radius:12px}.product{display:grid;grid-template-columns:1fr 100px;gap:14px;align-items:center;border-bottom:1px solid #e4e9ec;padding:14px 0}.product img{width:100px;height:90px;object-fit:contain;background:#f4f6f7;border-radius:10px}.product h3{margin:0}.product p{margin:5px 0;color:#687984;font-size:13px}.product .weight{float:right;color:#65747b;font-size:13px}.error{background:#ffe9e9;color:#9c2525;padding:12px;border-radius:10px;margin:12px 0}.success{background:#e4f6e9;color:#166b3b;padding:12px;border-radius:10px;margin:12px 0}.columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:600px){.columns{grid-template-columns:1fr}.product{grid-template-columns:1fr 85px}.product img{width:85px}}.price{font-weight:800;color:#08734e}.spaced{margin-top:14px}h1{font-size:27px}h2{font-size:21px}h3{font-size:17px}hr{border:0;border-top:1px solid #e4e8ea;margin:17px 0}
nav{display:flex;gap:8px;flex-wrap:wrap}nav a{background:#203a45;color:#fff;text-decoration:none;padding:9px 12px;border-radius:9px}nav a.on{background:#139b78}.hint{background:#fff5d9;padding:12px;border-radius:10px;margin-bottom:12px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.actions button{flex:0 1 auto}.status{font-weight:700;color:#0c725b}.photo.large{height:220px}.menuitem{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:14px;border-bottom:1px solid #e3e9eb;padding:15px 0;align-items:center}.menuitem img{width:105px;height:95px;object-fit:contain;background:#f3f5f6;border-radius:10px}.menuitem h3{margin:0 0 6px}.menuitem p{margin:5px 0}.menuitem .grams{float:right;color:#667782;font-size:13px}.authlinks{margin:15px 0}#app button{max-width:100%}input[type=file]{background:#f8fafb}

/* Trei spații vizuale distincte, aceleași date sincronizate */
#app[data-role=restaurant]{--accent:#b85e27;--soft:#fff3e8;--head:#30241e}
#app[data-role=client]{--accent:#0d947b;--soft:#e7f8f3;--head:#122b2a}
#app[data-role=courier]{--accent:#3569c9;--soft:#eaf1ff;--head:#182a49}
#app[data-role] header{background:var(--head)}
#app[data-role] nav a.on,#app[data-role] button:not(.alt):not(.danger){background:var(--accent)}
#app[data-role] .tabs button{background:#e9edf0;color:#283743}
#app[data-role] .tabs button.active{background:var(--accent);color:white}
#app[data-role] .pill{background:var(--soft);color:var(--accent)}
#app[data-role] .card{border-radius:18px;box-shadow:0 7px 24px #132e3b0b}
#app[data-role] main{min-height:70vh}
#app[data-role=client] .grid .card{overflow:hidden}
#app[data-role=courier] .card{border-left:4px solid var(--accent)}
#app[data-role=restaurant] .menuitem{grid-template-columns:minmax(0,1fr) 110px}
@media(max-width:650px){#app[data-role] header{padding:14px}#app[data-role] nav{width:100%}}

.live-indicator{display:inline-block;color:#6ce6b2;font-weight:700;margin-left:8px}
#app[data-role=restaurant] .card h2{letter-spacing:-.4px}
#app[data-role=client] .grid .card{transition:transform .15s ease,box-shadow .15s ease}
#app[data-role=client] .grid .card:hover{transform:translateY(-2px);box-shadow:0 12px 30px #1234}
#app[data-role=courier] .card h3{color:#1d4f9a}
@media(max-width:650px){.live-indicator{display:block;margin-left:0;margin-top:4px}}

/* V7: structură nouă pentru cele trei interfețe */
:root{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#202c3d;background:#f5f7fb}#app{min-height:100vh}#app[data-role=restaurant]{--accent:#e97832;--accent2:#a83f16;--tint:#fff1e6;--dark:#291e21;--hero:#fff0e3}#app[data-role=client]{--accent:#119c78;--accent2:#067455;--tint:#e8faf3;--dark:#122c2a;--hero:#e3f7ed}#app[data-role=courier]{--accent:#4579ee;--accent2:#254eae;--tint:#e9efff;--dark:#152441;--hero:#e7edff}
.workspace{display:flex;min-height:100vh}.sidebar{background:var(--dark);color:#f8fafc;width:242px;flex:none;padding:29px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.side-brand,.auth-brand{display:flex;align-items:center;gap:12px}.side-brand strong{font-size:20px;letter-spacing:2px}.side-brand small{display:block;color:#a9b3c1;letter-spacing:2px;font-size:9px;margin-top:4px}.brand-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:13px;background:var(--accent);color:white;font-size:24px;font-weight:900}.side-caption{color:#8190a5;font-size:10px;letter-spacing:2px;margin:48px 11px 16px}.side-menu{display:flex;flex-direction:column;gap:8px}.side-link{background:transparent!important;color:#c5cfdd!important;text-align:left;border-radius:12px;padding:15px!important;font-size:14px}.side-link.current{background:var(--accent)!important;color:#fff!important}.side-ico{display:inline-block;width:32px;font-size:19px;vertical-align:middle}.side-bottom{margin-top:auto;padding:18px 12px;border-top:1px solid #ffffff1a;font-size:12px;color:#bfc9d5;line-height:1.8}.side-bottom small{color:#8696a9}.sync-dot{display:inline-block;width:8px;height:8px;background:#38d99b;border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px #38d99b20}.workspace-content{flex:1;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;background:white;border-bottom:1px solid #e8edf2;gap:15px}.breadcrumb{font-size:13px;color:#8a96a5}.breadcrumb span{padding:0 8px;color:#bbc3cd}.top-actions{display:flex;align-items:center;gap:13px}.role-switch{display:flex;gap:5px;background:#f1f4f7;border-radius:13px;padding:5px}.role-switch a{color:#5e6c7d;font-size:12px;font-weight:700;padding:9px 12px;border-radius:9px;text-decoration:none;white-space:nowrap}.role-switch a.selected{background:var(--accent);color:white}.user-name{font-size:13px;font-weight:700;white-space:nowrap}.logout{font-size:12px}.workspace-content main{max-width:1200px;margin:0 auto;padding:30px 35px}.hero{border-radius:23px;padding:32px 36px;background:var(--hero);display:flex;align-items:center;justify-content:space-between;min-height:165px;margin-bottom:25px;overflow:hidden}.eyebrow,.form-kicker{color:var(--accent2);font-weight:800;font-size:11px;letter-spacing:2px}.hero h1{margin:12px 0 8px;font-size:32px;letter-spacing:-1px}.hero p{margin:0;color:#687787;line-height:1.5}.hero-symbol{font-size:95px;color:var(--accent);opacity:.35;line-height:1}.page-body>.tabs{border-bottom:1px solid #e3e8ee;padding-bottom:14px;margin-bottom:22px}.page-body .tabs button{border-radius:10px;padding:11px 17px}.page-body .card{border:1px solid #e9edf1;box-shadow:0 8px 25px #172b3a08;border-radius:18px;padding:24px}.page-body .card h2{margin-top:6px}.page-body .pill{background:var(--tint);color:var(--accent2)}.page-body .grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.page-body .grid .card{transition:transform .15s}.page-body .grid .card:hover{transform:translateY(-3px)}.page-body .menuitem{grid-template-columns:minmax(0,1fr) 120px}.page-body .menuitem img{width:120px;height:110px}.page-body .delivery-card{border-left:5px solid var(--accent)}.page-body .restaurant-banner{background:linear-gradient(115deg,#fff,var(--tint))}.page-body button:not(.alt):not(.danger){background:var(--accent)}.page-body button:not(.alt):not(.danger):hover{filter:brightness(.93)}
.auth-page{min-height:100vh;background:#f6f8fb}.auth-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px max(35px,calc((100vw - 1260px)/2));background:white;border-bottom:1px solid #e8edf2}.auth-brand strong{letter-spacing:1.5px;font-size:19px}.auth-brand strong span{color:var(--accent)}.auth-layout{display:grid;grid-template-columns:1fr 1fr;max-width:1250px;min-height:calc(100vh - 185px);margin:auto;gap:50px;align-items:center;padding:55px 35px}.auth-intro{background:var(--dark);color:white;padding:60px 50px;border-radius:28px;min-height:500px;position:relative;overflow:hidden}.auth-label{font-size:11px;font-weight:800;letter-spacing:3px;color:#ffffffa6}.auth-intro h1{font-size:clamp(36px,4vw,58px);line-height:1.08;letter-spacing:-2px;margin:30px 0 18px;max-width:420px}.auth-intro p{font-size:16px;color:#c1cbd7;max-width:390px;line-height:1.7}.auth-deco{font-size:160px;position:absolute;right:25px;bottom:70px;color:var(--accent);opacity:.18}.auth-benefit{position:absolute;bottom:45px;left:50px;font-size:13px;line-height:2;color:#d5dce7}.auth-content .auth-card{max-width:490px;margin:auto;padding:36px;border-radius:22px;box-shadow:0 16px 45px #192b4210}.auth-card h2{font-size:25px;margin:12px 0}.auth-subtitle{color:#748293;font-size:14px;margin:0 0 24px}.auth-card label{font-size:13px;color:#48586a;margin-top:18px}.auth-card input{height:48px}.auth-card form>button{width:100%;height:49px;margin-top:26px;background:var(--accent)!important}.authlinks{text-align:center}.auth-footer{text-align:center;color:#9ca7b4;font-size:12px;padding:18px}
@media(max-width:1000px){.sidebar{width:205px}.topbar{padding:0 18px}.workspace-content main{padding:22px 18px}.user-name{display:none}.auth-layout{gap:22px;padding:30px 20px}.auth-intro{padding:45px 30px}.auth-benefit{left:30px}}@media(max-width:720px){.workspace{display:block}.sidebar{width:100%;height:auto;position:static;padding:14px;display:block}.side-brand{display:none}.side-caption,.side-bottom{display:none}.side-menu{flex-direction:row;justify-content:space-between;gap:5px}.side-link{padding:10px 7px!important;text-align:center;flex:1;font-size:12px}.side-ico{display:block;width:auto;font-size:17px;margin-bottom:4px}.topbar{height:auto;min-height:65px;flex-wrap:wrap;padding:10px 14px}.breadcrumb{display:none}.top-actions{width:100%;justify-content:space-between}.role-switch a{padding:8px;font-size:11px}.workspace-content main{padding:15px}.hero{padding:25px 20px;min-height:140px}.hero h1{font-size:26px}.hero-symbol{font-size:60px}.auth-layout{display:block;padding:20px 15px}.auth-intro{min-height:0;padding:28px 25px;border-radius:20px}.auth-intro h1{font-size:31px;margin:15px 0}.auth-intro p{font-size:13px}.auth-benefit,.auth-deco{display:none}.auth-content .auth-card{margin:18px 0;padding:24px}.auth-top{padding:15px;flex-wrap:wrap}.auth-brand strong{font-size:16px}.auth-top .role-switch{width:100%;justify-content:space-between}.auth-top .role-switch a{flex:1;text-align:center}.page-body .menuitem{grid-template-columns:minmax(0,1fr) 90px}.page-body .menuitem img{width:90px;height:90px}}
