/* XNight v26 — photo/color profile surface editor + image presets */
.v25-surface-editor{overflow:visible}
.v25-settings-group{
  margin-top:12px;
  border:1px solid var(--border-color);
  border-radius:16px;
  overflow:hidden;
  background:var(--input-bg);
}
.v25-setting-row{
  width:100%;min-height:62px;padding:12px 14px;
  display:flex;align-items:center;gap:12px;
  color:var(--text-main);background:transparent;border:0;
  text-align:left;font:inherit;box-sizing:border-box;
}
.v25-setting-row+ .v25-setting-row,.v25-setting-stack+ .v25-setting-stack{border-top:1px solid var(--border-color)}
.v25-setting-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.v25-setting-copy strong{font-size:13.5px;font-weight:800;color:var(--text-main)}
.v25-setting-copy span{font-size:11.8px;font-weight:600;color:var(--text-muted);line-height:1.35;white-space:normal}
.v25-segmented{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--border-color);border-radius:12px;background:rgba(0,0,0,.12);flex-shrink:0}
.v25-segmented button{min-width:58px;border:0;border-radius:9px;padding:7px 9px;background:transparent;color:var(--text-muted);font:750 12px/1 'Plus Jakarta Sans','Inter',sans-serif;cursor:pointer;transition:.18s ease}
.v25-segmented button.active{background:var(--text-main);color:var(--bg-color);box-shadow:0 2px 9px rgba(0,0,0,.18)}
.v25-header-bg-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.v25-header-bg-btn{min-height:46px;padding:9px 10px;border-radius:13px;border:1px solid var(--border-color);background:var(--input-bg);color:var(--text-main);font:750 12.5px/1.2 'Plus Jakarta Sans','Inter',sans-serif;cursor:pointer;text-align:left;transition:.18s ease}
.v25-header-bg-btn::before{content:'';display:block;width:100%;height:10px;border-radius:999px;margin-bottom:7px;background:var(--v25-swatch,#0c0c0e);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.v25-header-bg-btn:hover{transform:translateY(-1px)}
.v25-header-bg-btn.active{border-color:rgba(236,72,153,.46);box-shadow:0 0 0 3px rgba(236,72,153,.07)}
.v25-color-pair{display:flex;gap:7px;flex-shrink:0}
.v25-color-pair input[type=color]{width:36px;height:36px;padding:2px;border:1px solid var(--border-color);border-radius:10px;background:transparent;cursor:pointer}
.v25-toggle-row{cursor:pointer}
.v25-switch{appearance:none;-webkit-appearance:none;width:42px;height:24px;border-radius:999px;background:rgba(127,127,127,.32);position:relative;cursor:pointer;transition:.2s ease;flex-shrink:0;border:0}
.v25-switch::after{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.3);transition:.2s ease}
.v25-switch:checked{background:#22c55e}.v25-switch:checked::after{transform:translateX(18px)}
.v25-upload-row{cursor:pointer}.v25-upload-row:hover,.v25-remove-row:hover{background:rgba(255,255,255,.035)}
.v25-photo-thumb{width:42px;height:42px;border-radius:12px;border:1px solid var(--border-color);background:rgba(255,255,255,.035);display:flex;align-items:center;justify-content:center;background-size:cover;background-position:center;flex-shrink:0;overflow:hidden}
.v25-photo-thumb svg{width:20px;height:20px;fill:none;stroke:var(--text-muted);stroke-width:1.6}.v25-photo-thumb.has-photo svg{display:none}
.v25-row-action{font-size:12.5px;font-weight:800;color:var(--text-main);padding:7px 10px;border-radius:10px;border:1px solid var(--border-color);background:rgba(255,255,255,.035);flex-shrink:0}
.v25-remove-row{cursor:pointer}.v25-remove-row .v25-setting-copy strong{color:#f87171}.v25-remove-icon{font-size:23px;color:#f87171;line-height:1}
.v25-setting-stack{padding:13px 14px}
.v25-range-head{display:flex;align-items:center;gap:12px;margin-bottom:11px}.v25-range-head .profile-value-pill{margin-left:auto;flex-shrink:0}
.v25-range-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;color:var(--text-muted);font-size:11px;font-weight:700}
.v25-range-line input[type=range]{width:100%;accent-color:#9ca3af}

/* The photo belongs only to the surface below the banner, not to the banner itself. */
.profile-card-header,.live-preview-card{position:relative;isolation:isolate}
.v25-profile-surface-media{
  position:absolute;left:0;right:0;top:180px;bottom:0;
  z-index:0;pointer-events:none;overflow:hidden;isolation:isolate;
}
.v26-surface-photo,.v26-surface-dim,.v26-surface-fx{position:absolute;inset:0}
.v26-surface-photo{z-index:0;background-size:cover;background-repeat:no-repeat;background-position:center 50%;transform-origin:center;will-change:filter,transform}
.v26-surface-dim{z-index:1;pointer-events:none}
.v26-surface-fx{z-index:2;pointer-events:none}
.v26-surface-photo-blur{filter:blur(4px);transform:scale(1.035)}
.v26-surface-fx-grain{opacity:.34;mix-blend-mode:soft-light;background-image:repeating-radial-gradient(circle at 18% 27%,rgba(255,255,255,.16) 0 1px,transparent 1px 3px),repeating-radial-gradient(circle at 77% 64%,rgba(0,0,0,.18) 0 1px,transparent 1px 4px);background-size:9px 9px,11px 11px}
.v26-surface-fx-vignette{background:radial-gradient(circle at 50% 43%,transparent 26%,rgba(0,0,0,.18) 62%,rgba(0,0,0,.68) 100%)}
.v26-surface-photo-cinematic{filter:saturate(.82) contrast(1.13) brightness(.9)}
.v26-surface-fx-cinematic{background:linear-gradient(to bottom,rgba(7,9,14,.16),transparent 39%,rgba(0,0,0,.38));box-shadow:inset 0 10px 0 rgba(0,0,0,.13),inset 0 -10px 0 rgba(0,0,0,.13)}
.v26-photo-effect-row{display:flex;flex-wrap:wrap;gap:8px}
.v26-photo-effect-btn{min-height:36px;padding:8px 12px;border-radius:11px;border:1px solid var(--border-color);background:rgba(255,255,255,.035);color:var(--text-main);font:750 12px/1 'Plus Jakarta Sans','Inter',sans-serif;cursor:pointer;transition:.18s ease}
.v26-photo-effect-btn:hover{background:rgba(255,255,255,.06)}
.v26-photo-effect-btn.active{border-color:rgba(236,72,153,.78);box-shadow:0 0 0 2px rgba(236,72,153,.08);background:rgba(236,72,153,.07)}
body.light-theme .v26-photo-effect-btn{background:rgba(15,23,42,.035)}
body.light-theme .v26-photo-effect-btn:hover{background:rgba(15,23,42,.06)}
.profile-card-header > .profile-banner,.live-preview-card > .profile-banner{position:relative;z-index:1}
.profile-card-header > .profile-info-row,.profile-card-header > .profile-user-details,
.live-preview-card > .profile-info-row,.live-preview-card > .profile-user-details{position:relative;z-index:2}
@media(max-width:640px){
  .v25-header-bg-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v25-setting-row{padding:11px 12px}.v25-mode-row{align-items:flex-start;flex-direction:column}.v25-segmented{width:100%}.v25-segmented button{flex:1}
}
.is-mobile-device .v25-profile-surface-media{top:130px}
body.light-theme .v25-settings-group{background:rgba(15,23,42,.035)}
body.light-theme .v25-segmented{background:rgba(15,23,42,.04)}
