@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#282723;background:#f6f5f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s}button:hover{filter:brightness(1.06)}button:active{transform:translateY(1px)}input,textarea,select{width:100%;border:1px solid #deddd7;border-radius:11px;padding:12px 14px;background:#fff;color:#282723;outline:none;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:#a78d73;box-shadow:0 0 0 3px #b69c7b22}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;font-weight:700;letter-spacing:.015em;margin:15px 0 7px;color:#5c574f}h1,h2,h3,h4{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.045em}h2{font-size:24px;margin:4px 0 20px}h3{font-size:17px}p{line-height:1.6}.shell{display:grid;grid-template-columns:252px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh;max-width:1700px;margin:auto}.top{grid-row:1/3;grid-column:1;background:#222b29;color:#fff;padding:38px 20px 24px;display:flex;flex-direction:column;justify-content:space-between;gap:28px;position:sticky;top:0;height:100vh}.brand-lockup{padding:0 14px}.brand{font-family:Georgia,'Times New Roman',serif;font-size:35px;font-weight:400;letter-spacing:5px;line-height:1.15}.brand-dot{color:#c8ad88}.sub{font-size:10px;letter-spacing:3px;color:#b7c1ba;margin-top:9px}.nav{grid-column:1;grid-row:1/3;z-index:1;align-self:start;position:sticky;top:156px;margin:0 14px;display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:14px;text-align:left;width:100%;border:1px solid transparent;border-radius:11px;background:transparent;color:#c4cdc7;padding:14px 16px;font-size:14px;font-weight:600}.nav button:hover{background:#ffffff12}.nav button.active{background:#f1eee7;color:#29342f;box-shadow:0 6px 20px #00000012}.nav-symbol{font-size:21px;line-height:1;width:24px;text-align:center;font-weight:400}.sidebar-footer{display:grid;gap:9px;padding:18px 12px 0;border-top:1px solid #ffffff24}.account-label{font-size:10px;letter-spacing:1.6px;color:#a9b5ac}.account-email{font-size:12px;color:#e9ece7;overflow-wrap:anywhere}.sidebar-footer .ghost{background:#ffffff12;color:#fff;border-color:#ffffff24;text-align:left;margin-top:6px}main{grid-column:2;grid-row:1/3;min-width:0;padding:45px clamp(20px,4vw,64px) 60px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#9d8165}.dashboard-hero{background:#d9d0c1;min-height:232px;border-radius:20px;padding:40px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px;position:relative;overflow:hidden}.dashboard-hero:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #ffffff66;border-radius:50%;right:-75px;top:-65px}.dashboard-hero h1{font-family:Georgia,serif;font-size:clamp(29px,3.1vw,44px);font-weight:400;letter-spacing:-1.5px;margin:12px 0}.dashboard-hero p{font-size:14px;color:#5f594f;margin:0}.hero-mark{font-family:Georgia,serif;font-size:130px;color:#ffffff8a;line-height:1;z-index:1}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2{margin:7px 0 0}.date-chip{background:white;border:1px solid #e8e5df;padding:9px 13px;border-radius:40px;color:#6f695f;font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border:1px solid #ebe8e2;border-radius:17px;padding:24px;box-shadow:0 8px 32px #222b2908}.grid>.card{min-height:160px}.metric-icon{font-size:24px;color:#a58d72;background:#f6f2ed;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;margin-bottom:17px}.metric{font-family:Manrope,sans-serif;font-size:clamp(23px,2.5vw,34px);font-weight:800;letter-spacing:-1.5px;margin:8px 0}.muted{color:#8a887f;font-size:13px}.quick-actions{margin-top:25px;padding:27px 30px;border:1px solid #e7e3dc;border-radius:17px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.quick-actions h3{margin:8px 0 4px}.quick-actions p{margin:0;font-size:13px;color:#88857e}.btn,button{border:1px solid transparent;border-radius:10px;padding:11px 17px;background:#293b35;color:white;font-size:13px;font-weight:700}.btn:disabled{opacity:.5}.ghost{background:white;color:#3b4942;border-color:#dcded9}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:14px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.wide{grid-column:1/-1}.item{border-bottom:1px solid #eeece8;padding:15px 0}.item:last-child{border:0}.item strong{font-size:14px}.link{background:transparent;color:#3c5347;padding:5px;text-align:left;text-decoration:underline}.pill{background:#f3eee7;border-radius:100px;padding:5px 9px;font-size:12px}.alert{padding:12px 14px;border-radius:10px;background:#fff3e6;color:#795123;margin:14px 0}.error{background:#fce9e7;color:#992f2f}.success{background:#eaf5e9;color:#2f6e3a}.auth{max-width:455px;margin:8vh auto;padding:40px!important}.auth .brand{color:#273a33}.auth .sub{color:#9b8a77}.auth h2{margin:35px 0 8px}.auth-intro{margin-top:22px;color:#8b877e;font-size:14px}.actions{display:flex;gap:8px;flex-wrap:wrap}.photos{display:flex;gap:8px;flex-wrap:wrap}.photos img{width:120px;height:120px;object-fit:cover;border-radius:10px}.loading{padding:40px;text-align:center}.hide{display:none}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:15px}.photo-card{display:flex;flex-direction:column;gap:8px;border:1px solid #e9e4de;border-radius:12px;padding:10px}.photo-card img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}.photo-card button{align-self:flex-start}#photoStatus{margin-top:12px;font-size:13px}
@media(max-width:1000px){.shell{grid-template-columns:210px minmax(0,1fr)}.top{padding:32px 12px 20px}.nav{margin:0 10px}.brand{font-size:29px}.grid{gap:12px}.card{padding:19px}main{padding:32px 22px}.dashboard-hero{padding:30px}}
@media(max-width:720px){.shell{display:block;min-height:100vh}.top{position:relative;height:auto;min-height:0;padding:20px 18px 14px;flex-direction:row;align-items:center}.brand-lockup{padding:0}.brand{font-size:27px}.sub{font-size:8px;letter-spacing:2px;margin-top:5px}.sidebar-footer{border:0;padding:0;display:flex;align-items:center}.account-label,.account-email{display:none}.sidebar-footer .ghost{font-size:12px;margin:0;padding:9px 12px}.nav{position:sticky;top:0;background:#222b29;display:flex;overflow-x:auto;scrollbar-width:none;margin:0;padding:4px 10px 12px;gap:5px;z-index:10}.nav::-webkit-scrollbar{display:none}.nav button{flex:1;justify-content:center;white-space:nowrap;padding:11px 10px;font-size:12px;gap:6px}.nav-symbol{font-size:16px;width:auto}main{padding:22px 14px 42px}.dashboard-hero{min-height:190px;padding:25px 23px;border-radius:16px}.dashboard-hero h1{font-size:30px}.dashboard-hero p{font-size:12px}.hero-mark{font-size:70px}.grid,.grid.two{grid-template-columns:1fr}.grid>.card{min-height:0}.formgrid{grid-template-columns:1fr}.card{padding:18px}.quick-actions{padding:22px;align-items:flex-start;flex-direction:column}.row{flex-wrap:wrap}.auth{margin:6vh 14px;padding:26px!important}.section-heading h2{font-size:21px}}

/* TAJMA V4 – fotografija salona i premium karton klijentice */
.dashboard-hero{background:linear-gradient(90deg,rgba(229,218,205,.98) 0%,rgba(229,218,205,.95) 36%,rgba(229,218,205,.54) 62%,rgba(229,218,205,.05) 100%),url('salon-hero.jpg') center right/cover no-repeat;min-height:265px}
.dashboard-hero:after{display:none}.dashboard-hero>div:first-child{position:relative;z-index:1;max-width:570px}.dashboard-hero h1{max-width:490px;font-size:clamp(30px,3.1vw,43px);line-height:1.12}.dashboard-hero p{max-width:390px;color:#51483f}
.page-head{margin-bottom:18px}.page-head h2{margin:7px 0 0;font-size:29px}.client-layout{display:grid;grid-template-columns:minmax(255px,320px) minmax(0,1fr);gap:18px;align-items:start}.client-directory{padding:21px}.client-detail{padding:28px;min-height:440px}.search-label{margin:0 0 10px;color:#9d8165;letter-spacing:1.5px;font-size:10px}.client-directory .item{gap:6px}.client-directory .item strong{font-size:13px}.client-directory .ghost{padding:9px 10px}.empty-state{text-align:center;padding:85px 15px}.empty-state>span{font-size:42px;color:#b59b7e}.empty-state h3{font-size:21px}.profile-top{display:flex;align-items:center;gap:16px}.avatar{width:65px;height:65px;flex:0 0 65px;border-radius:20px;background:linear-gradient(145deg,#e7d5c1,#c6a78b);color:#473827;display:grid;place-items:center;font:36px Georgia,serif}.profile-identity{min-width:0}.profile-identity h2{font:normal 30px Georgia,serif;letter-spacing:-.5px;margin:6px 0}.profile-actions{margin:22px 0}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-stats>div{background:#f7f4f0;border:1px solid #eee8e1;border-radius:13px;padding:15px 13px;display:flex;flex-direction:column;gap:9px}.profile-stats span{font-size:9px;font-weight:800;letter-spacing:1px;color:#96836f}.profile-stats strong{font-size:clamp(14px,1.5vw,19px);color:#293b35;overflow-wrap:anywhere}.profile-notes{background:#faf9f7;border:1px solid #eee9e2;border-radius:13px;margin-top:18px;padding:18px}.profile-notes p{font-size:13px;margin:10px 0 0;white-space:pre-wrap}.history-heading{margin-top:26px}.history-heading h3{margin:8px 0 10px;font-size:20px}.history-count{background:#eee9e1;border-radius:50px;padding:3px 9px;font-size:12px;color:#6d5a48}.visit-record{display:flex;align-items:center;gap:14px;border-top:1px solid #eeeae4;padding:15px 0}.visit-date{background:#f4ede4;color:#6c5034;border-radius:10px;padding:10px;min-width:92px;text-align:center;font-size:12px;font-weight:800}.visit-record-main{display:grid;gap:5px;flex:1;min-width:0}.visit-record-main strong{font-size:13px}.visit-record .ghost{padding:9px 11px;white-space:nowrap}.visit-subtitle{color:#9d8165;margin:-12px 0 22px}.photos-heading{margin-top:24px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.photo-card{background:#faf8f5}.photo-card img{aspect-ratio:4/5}
@media(max-width:1150px){.client-layout{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}.client-detail{padding:19px}.profile-stats{grid-template-columns:1fr 1fr}.profile-stats>div:last-child{grid-column:1/-1}}
@media(max-width:850px){.client-layout{grid-template-columns:1fr}.client-directory{max-height:290px;overflow:auto}.client-detail{min-height:250px}.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-stats>div:last-child{grid-column:auto}}
@media(max-width:720px){.dashboard-hero{background:linear-gradient(90deg,rgba(230,220,207,.98) 0%,rgba(230,220,207,.9) 45%,rgba(230,220,207,.42) 100%),url('salon-hero.jpg') center right/cover no-repeat;min-height:215px}.dashboard-hero h1{font-size:29px;max-width:275px}.dashboard-hero p{max-width:230px}.profile-stats{grid-template-columns:1fr 1fr}.profile-stats>div:last-child{grid-column:1/-1}.visit-record{flex-wrap:wrap}.visit-record .ghost{margin-left:auto}.profile-identity h2{font-size:25px}.client-detail{padding:17px}}

/* TAJMA V5 — editorial salon dashboard and client dossier */
body{background:#f5f0eb;color:#222622}
.shell{grid-template-columns:282px minmax(0,1fr)}
.top,.nav{background:#122b24}.top{padding:28px 22px 20px}.nav{margin:0;padding:12px 17px}.brand-lockup{text-align:center}.brand-wave{font:36px Georgia,serif;color:#cfa678;line-height:.7;margin-bottom:18px}.brand{font-family:Georgia,serif;font-size:40px;letter-spacing:6px}.brand-dot{color:#caa67d}.sub{letter-spacing:4px;color:#e6d5bd}.nav button{padding:15px 18px;font-size:15px;color:#eee7dc}.nav button.active{background:#f5eae0;color:#1a2d25}.sidebar-footer{padding:20px 6px 0}
main{padding:0 0 60px;background:linear-gradient(160deg,#eee3d9,#f8f4f0 65%)}
.dashboard-hero{border-radius:0;margin:0;min-height:410px;padding:55px clamp(28px,5vw,75px) 115px;background:linear-gradient(90deg,rgba(67,47,36,.55),rgba(67,47,36,.18) 55%,transparent 85%),url('salon-hero.jpg') center right/cover no-repeat;align-items:flex-start}
.dashboard-hero .eyebrow{color:#fff;letter-spacing:4px;font-size:12px}.dashboard-hero h1{font:normal clamp(36px,4.1vw,65px)/1.08 Georgia,serif;color:white;max-width:760px;letter-spacing:-1.5px;margin:18px 0}.dashboard-hero h1 em{font-style:italic;font-weight:400;display:inline-block;padding-left:35px}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));position:relative;margin:-95px 32px 0;gap:16px}.dashboard-metrics .card{background:#fffaf6ed;backdrop-filter:blur(10px);border-color:#fff7ef;box-shadow:0 12px 32px #35261d16;min-height:124px;padding:20px 22px}.dashboard-metrics .metric-icon{float:left;margin:0 16px 0 0;border-radius:50%;font-size:24px;width:49px;height:49px;color:#775635;background:#efe3d8}.metric-label{font-size:13px;color:#775b47;margin-top:5px}.dashboard-metrics .metric{font-size:clamp(21px,2vw,31px);margin:6px 0 0;white-space:nowrap}.quick-actions{margin:36px 32px 0}
.profile-page{padding:32px clamp(20px,3vw,46px)}.profile-page-head{margin-bottom:23px}.profile-page-head h1{font:normal clamp(29px,3vw,42px) Georgia,serif;margin:9px 0 0}.back-link{background:none;border:0;color:#795b39;padding:0;font-size:14px}.profile-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.profile-aside{display:grid;gap:13px}.profile-person,.profile-summary{background:#fffaf7;border:1px solid #eee2d7;border-radius:18px;padding:20px}.profile-person-top{display:flex;align-items:center;gap:14px}.profile-person h2{font-size:19px;margin:0 0 6px}.profile-person p{margin:0;font-size:12px;color:#6c625b}.profile-person .avatar{width:67px;height:67px;flex-basis:67px;border-radius:50%}.profile-edit{display:block;width:100%;margin-top:20px}.profile-summary h3{font-size:16px;margin:0 0 18px}.profile-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-top:13px}.profile-summary strong{font-size:14px}.profile-content{min-width:0}.profile-tabs{display:flex;justify-content:space-between;gap:5px;background:#fffaf7;border:1px solid #eee2d7;border-radius:16px;padding:6px;margin-bottom:15px;overflow-x:auto}.profile-tabs button{background:transparent;color:#332e29;border:0;border-radius:11px;white-space:nowrap;padding:13px 10px;font-size:13px}.profile-tabs button span{font-size:18px;margin-right:8px;color:#977653}.profile-tabs button.active{background:#173c2c;color:white}.profile-tabs button.active span{color:#f2e6d8}.profile-visit{display:flex;align-items:center;gap:18px;padding:15px;background:#fffaf7;border:1px solid #eee2d7;border-radius:17px;margin-bottom:11px;min-height:110px}.profile-date{background:#f1e6dc;color:#6c4d30;border-radius:13px;min-width:76px;padding:12px 8px;display:flex;align-items:center;flex-direction:column}.profile-date strong{font:28px Georgia,serif}.profile-date span{font-weight:800;font-size:12px}.profile-date small{font-size:11px}.profile-visit-info{flex:1;min-width:0}.visit-service-name{font-size:15px}.visit-formula-preview{font-size:12px;color:#7c726b;margin-top:8px;line-height:1.5}.visit-price{white-space:nowrap;font-size:15px}.visit-thumbs{display:flex;gap:5px}.visit-thumbs img{width:61px;height:72px;object-fit:cover;border-radius:10px}.visit-open{background:none;color:#392e25;font-size:24px;padding:6px}.profile-section{background:#fffaf7;border:1px solid #eee2d7;border-radius:18px;padding:24px}.profile-section h3{margin-top:0}.profile-list-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e9dfd5}.profile-note-text{white-space:pre-wrap;line-height:1.7}.profile-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}.profile-photo-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px}.formula-card{background:white;border:1px solid #eee2d7;border-radius:12px;padding:15px;margin-bottom:10px}.formula-card p{margin:10px 0}.formula-card button{display:block;margin-top:12px}
@media(max-width:1150px){.shell{grid-template-columns:225px minmax(0,1fr)}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:240px minmax(0,1fr)}.profile-tabs{justify-content:flex-start}.profile-tabs button{padding:11px 13px}.visit-thumbs img{width:45px;height:55px}}
@media(max-width:850px){.profile-layout{grid-template-columns:1fr}.profile-aside{grid-template-columns:1fr 1fr}.profile-visit{flex-wrap:wrap}.visit-price{margin-left:auto}}
@media(max-width:720px){.shell{display:block}.top{padding:15px}.brand-wave{display:none}.brand{font-size:27px}.nav{padding:5px 10px 10px}.dashboard-hero{min-height:310px;padding:32px 22px 105px;background-position:65% center}.dashboard-hero h1{font-size:35px}.dashboard-hero h1 em{padding-left:0}.dashboard-metrics{margin:-78px 12px 0;gap:8px}.dashboard-metrics .card{padding:15px;min-height:108px}.dashboard-metrics .metric-icon{float:none;margin:0 0 8px;width:35px;height:35px;font-size:18px}.dashboard-metrics .metric{font-size:21px}.metric-label{font-size:11px}.quick-actions{margin:20px 12px}.profile-page{padding:20px 12px}.profile-aside{grid-template-columns:1fr}.profile-page-head h1{font-size:30px}.profile-tabs button{font-size:12px}.profile-visit{gap:10px;padding:12px}.visit-price{font-size:13px}.visit-thumbs{order:5;width:100%;padding-left:86px}.visit-thumbs img{width:65px;height:70px}.visit-open{margin-left:auto}}

/* V6: reference layout and elegant hair-strand emblem */
.brand-wave{height:40px;display:flex;justify-content:center;align-items:center;margin:0 0 9px;line-height:1}
.brand-wave svg{display:block;max-width:116px}
.profile-layout{display:grid!important;grid-template-columns:minmax(260px,305px) minmax(0,1fr)!important;gap:18px;align-items:start}
.profile-aside{grid-column:1;grid-row:1}
.profile-content{grid-column:2;grid-row:1;min-width:0}
.profile-tabs{gap:3px}
.profile-tabs button{font-size:12px;padding:12px 8px}
.profile-tabs button span{font-size:16px;margin-right:5px}
@media(max-width:1050px){.profile-layout{grid-template-columns:minmax(215px,260px) minmax(0,1fr)!important}.profile-tabs{flex-wrap:wrap;justify-content:flex-start}}
@media(max-width:850px){.profile-layout{grid-template-columns:minmax(0,1fr)!important}.profile-aside{grid-column:1;grid-row:1;grid-template-columns:1fr 1fr}.profile-content{grid-column:1;grid-row:2}}
@media(max-width:550px){.profile-aside{grid-template-columns:1fr}.profile-tabs{flex-wrap:nowrap;overflow-x:auto}.profile-visit{align-items:flex-start}}

/* V7 — clear before/after thumbnails, consistent icons, enlarged image preview */
.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.nav-symbol{display:inline-flex;align-items:center;justify-content:center;width:25px}
.profile-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.profile-tabs button span{display:inline-flex;align-items:center;margin:0}
.profile-tabs button span .ui-icon{width:18px;height:18px}
.profile-visit{gap:16px;min-height:134px;padding:16px 18px}
.profile-visit-info{min-width:140px;line-height:1.45}
.visit-formula-preview{font-size:13px;line-height:1.55;max-width:400px;overflow-wrap:anywhere}
.visit-thumbs{display:flex;gap:9px;align-items:center;flex-shrink:0}
.photo-preview{background:transparent;border:0;padding:0;display:flex;flex-direction:column;gap:5px;align-items:center;color:#76583f;cursor:zoom-in;min-width:0}
.visit-thumbs .photo-preview img{width:90px;height:100px;object-fit:cover;border-radius:10px;border:1px solid #e5d7c8;display:block}
.photo-preview span{font-size:10px;font-weight:800;letter-spacing:1.2px}
.profile-photo-grid .photo-preview img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:11px}
.photo-grid .photo-preview img{width:100%;max-height:360px;object-fit:contain;border-radius:11px}
.tajma-lightbox{border:0;border-radius:18px;padding:18px;background:#fffaf6;max-width:min(94vw,980px);max-height:94vh;box-shadow:0 30px 90px #0006}
.tajma-lightbox::backdrop{background:#091913d9}
.tajma-lightbox img{display:block;max-width:100%;max-height:80vh;margin:auto;object-fit:contain;border-radius:9px}
.lightbox-close{display:block;margin:0 0 12px auto;background:#173c2c;color:white;border-radius:10px;padding:9px 15px}
@media(max-width:1300px){.visit-thumbs .photo-preview img{width:72px;height:86px}}
@media(max-width:1100px){.profile-visit{flex-wrap:wrap}.visit-thumbs{margin-left:auto}.visit-thumbs .photo-preview img{width:90px;height:100px}}
@media(max-width:720px){.profile-visit{gap:12px}.visit-thumbs{width:auto;order:initial;padding-left:0;margin-left:0}.visit-thumbs .photo-preview img{width:76px;height:88px}.profile-visit-info{min-width:calc(100% - 110px)}.visit-price{margin-left:0}}
