/* NatconCrop — the photograph cropper. Self-contained: it borrows nothing
   from the page it is opened over, so it looks the same on the registration
   form and in the admin panel. */

body.nc-open{overflow:hidden}

.nc-back{position:fixed;inset:0;z-index:9000;background:rgba(20,22,20,.72);
         -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
         display:flex;align-items:center;justify-content:center;padding:16px;
         animation:nc-in .18s ease both}
@keyframes nc-in{from{opacity:0}to{opacity:1}}

.nc-box{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#FBF9F4;
        border-radius:14px;box-shadow:0 30px 70px rgba(0,0,0,.4);
        font:400 15px/1.6 'DM Sans',Arial,sans-serif;color:#2B2D2F;
        animation:nc-up .22s cubic-bezier(.2,.8,.3,1) both}
@keyframes nc-up{from{transform:translateY(14px) scale(.985)}to{transform:none}}

.nc-head{padding:18px 20px 12px}
.nc-head h3{margin:0 0 4px;font:400 21px/1.25 Georgia,'Instrument Serif',serif}
.nc-head p{margin:0;font-size:13px;line-height:1.6;color:#55585B}

.nc-stage{padding:4px 20px 0;display:flex;justify-content:center;align-items:flex-start}
/* flex-start matters: a stretched frame is taller than the shape asked for,
   and the crop would then not be the shape of the card's photograph panel. */

/* The frame is the crop. What is inside it is exactly what is produced. */
.nc-frame{position:relative;flex:0 0 auto;overflow:hidden;border-radius:8px;background:#23251F;
          touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;
          box-shadow:0 0 0 1px rgba(0,0,0,.18),0 10px 26px rgba(0,0,0,.18)}
.nc-frame:active{cursor:grabbing}
.nc-img{position:absolute;left:50%;top:50%;transform-origin:50% 50%;
        max-width:none;max-height:none;pointer-events:none;-webkit-user-drag:none}

/* Thirds, and an oval where a head belongs. Drawn over the picture and
   never exported — the output is the frame, not what is painted on it. */
.nc-guide{position:absolute;inset:0;pointer-events:none}
.nc-guide::before{content:'';position:absolute;left:17%;right:17%;top:9%;bottom:30%;
                  border:2px dashed rgba(255,255,255,.72);border-radius:50%}
.nc-guide::after{content:'';position:absolute;inset:0;
                 background:
                   linear-gradient(to right,transparent calc(33.333% - 1px),rgba(255,255,255,.18) calc(33.333% - 1px),
                                   rgba(255,255,255,.18) 33.333%,transparent 33.333%,
                                   transparent calc(66.666% - 1px),rgba(255,255,255,.18) calc(66.666% - 1px),
                                   rgba(255,255,255,.18) 66.666%,transparent 66.666%),
                   linear-gradient(to bottom,transparent calc(33.333% - 1px),rgba(255,255,255,.18) calc(33.333% - 1px),
                                   rgba(255,255,255,.18) 33.333%,transparent 33.333%,
                                   transparent calc(66.666% - 1px),rgba(255,255,255,.18) calc(66.666% - 1px),
                                   rgba(255,255,255,.18) 66.666%,transparent 66.666%)}

.nc-tools{display:flex;align-items:center;gap:10px;padding:14px 20px 4px}
.nc-zoom{flex:1;min-width:0;accent-color:#2F6B3C;height:22px}
.nc-ico{flex:0 0 auto;width:36px;height:36px;border-radius:9px;border:1px solid #CFDBD3;
        background:#fff;color:#2B2D2F;font:400 19px/1 Arial,sans-serif;cursor:pointer}
.nc-ico:hover{border-color:#8FA89B;background:#F3F8EF}
.nc-rot{font-size:17px;margin-left:2px}

.nc-acts{display:flex;gap:10px;padding:14px 20px 18px}
.nc-acts button{flex:1;border-radius:9px;padding:13px 16px;cursor:pointer;
                font:600 14px/1 Manrope,Arial,sans-serif}
.nc-ghost{background:#fff;border:1px solid #CFDBD3;color:#2B2D2F}
.nc-ghost:hover{border-color:#8FA89B}
.nc-go{background:#2F6B3C;border:0;color:#fff}
.nc-go:hover{background:#255630}

@media (max-width:420px){
  .nc-head{padding:15px 15px 10px}
  .nc-stage{padding:2px 15px 0}
  .nc-tools{padding:12px 15px 2px}
  .nc-acts{padding:12px 15px 15px}
  .nc-head h3{font-size:19px}
}
