/* =========================================================
   BAGWED — MASTER VITRIN CSS
   Final merged base (index + login + register + forgot)
   ========================================================= */

/* -------------------------
   0) TOKENS / FOUNDATION
------------------------- */
:root{
  --logo-h:170px;

  --menu-font-size:12px;
  --menu-font-weight:700;
  --menu-letter-spacing:1px;
  --menu-gap:50px;
  --menu-h:46px;
  --header-side-offset:550px;

  --brand:#8A3F7F;
  --brand-dark:#6d2f63;
  --brand-light:#fdf4ff;

  --text-main:#1e293b;
  --text-soft:#64748b;
  --text-muted:#94a3b8;

  --border-light:#e2e8f0;
  --border-mid:#cbd5e1;
  --border-strong:#cbd5e1;

  --bg-light:#f8fafc;
  --bg-white:#fff;
  --bg-dark:#121418;

  --success:#10b981;
  --success-bg:#ecfdf5;

  --warning:#f59e0b;
  --warning-bg:#fffbeb;

  --danger:#dc2626;
  --danger-bg:#fef2f2;

  --shadow-sm:0 4px 10px rgba(138,63,127,.10);
  --shadow-md:0 10px 25px -5px rgba(0,0,0,.05);
  --shadow-lg:0 25px 50px -12px rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }

html,
body{
  margin:0;
  padding:0;
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing:antialiased;
  font-size:13px;
  line-height:1.5;
  color:var(--text-main);
 background:#ffffff;
}


body.is-embed.admin-view{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  height:auto !important;
  min-height:100vh !important;
}

body.is-embed.admin-view .main-content{
  overflow:visible !important;
  height:auto !important;
  min-height:100vh !important;
}

body.is-embed.admin-view .content-wrapper,
body.is-embed.admin-view .dash-card,
body.is-embed.admin-view .shell,
body.is-embed.admin-view .left-col,
body.is-embed.admin-view .right-col{
  overflow:visible !important;
  height:auto !important;
  min-height:0 !important;
}

body.is-embed.admin-view{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  height:auto !important;
  min-height:100vh !important;
}

body.is-embed.admin-view .main-content{
  overflow:visible !important;
  height:auto !important;
  min-height:100vh !important;
}

body.is-embed.admin-view .content-wrapper,
body.is-embed.admin-view .dash-card,
body.is-embed.admin-view .shell,
body.is-embed.admin-view .left-col,
body.is-embed.admin-view .right-col{
  overflow:visible !important;
  height:auto !important;
  min-height:0 !important;
}

.site-shell{
  min-height:100vh;
  background:#fff;
}

h1,
h2,
h3,
.card-title,
.admin-title,
.card-h .t,
th,
button,
.btn-primary,
.btn-secondary,
.btn-action{
  font-family:Arial, Helvetica, sans-serif !important;
  font-weight:800;
}

/* -------------------------
   1) GLOBAL WRAPPERS
------------------------- */
.page-main,
.main-content{
  width:100%;
}

body.vitrin{
  min-height:100%;
  overflow-y:scroll;
  background:var(--bg-dark);
}

body.vitrin .page{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  background:transparent;
}

body.vitrin .page-main{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  background:var(--bg-light);
}

body.vitrin .main-content{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:10px;
  padding-bottom:60px;
}

.page:has(.form-card) .main-content{
  padding-top:60px;
  padding-bottom:60px;
}

.page:has(.form-card) .menubar{
  border-top:1px solid #f1f5f9;
  border-bottom:1px solid #f1f5f9;
}

.wrap,
.content-wrapper,
.hb-wrap,
.hb-container{
  width:min(1200px, calc(100% - 48px));
  margin:0 auto;
}

.admin-container{
  width:100%;
  max-width:100%;
  margin:0 auto;
  padding:20px;
  background:#fff;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.col-half{
  flex:1;
  min-width:0;
}

.muted{
  color:var(--text-muted);
}

/* -------------------------
   2) HEADER / BRAND
------------------------- */
.header-logo-area{
  height:var(--logo-h);
  min-height:var(--logo-h);
  padding:0 20px;
  background:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  border-bottom:.70px solid #f9f9f9;
  overflow:hidden;
}

.brand-logo{
  font-size:calc(var(--logo-h) * 0.40);
  font-weight:800;
  color:#000;
  text-decoration:none;
  letter-spacing:-2px;
  text-transform:uppercase;
  line-height:1;
  display:flex;
  align-items:center;
  height:100%;
}

.brand-logo img{
  height:85%;
  width:auto;
  display:block;
}

.brand-logo span{
  color:var(--brand);
}

.top-right-auth{
  position:absolute;
  right:var(--header-side-offset);
  display:flex;
  gap:15px;
  align-items:center;
}

.top-left-social{
  position:absolute;
  left:var(--header-side-offset);
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  gap:12px;
  z-index:5;
}

.soc,
.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.soc{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--border-light);
  color:#111;
  background:#fff;
  transition:.2s;
}

.soc svg{
  width:18px;
  height:18px;
}

.soc:hover{
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:0 4px 12px rgba(138,63,127,.12);
}

/* -------------------------
   3) COMMON BUTTON SYSTEM
------------------------- */
.btn-auth-header,
.btn-back,
.btn-subscribe,
.nav-btn,
.contact-btn,
.hb-btn,
.btn-primary,
.btn-secondary,
.btn-action,
.btn-main{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
  cursor:pointer;
  font-weight:800;
  text-transform:uppercase;
}

.btn-auth-header{
  background:#fff;
  color:#000;
  border:1px solid var(--border-light);
  padding:10px 25px;
  border-radius:30px;
  font-size:11px;
  letter-spacing:.5px;
}

.btn-auth-header:hover{
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:var(--shadow-sm);
}

.btn-auth-active{
  border-color:var(--brand);
}

.btn-main{
  width:100%;
  background:var(--brand);
  color:#fff;
  padding:15px;
  border:none;
  border-radius:4px;
  font-size:14px;
}

.btn-main:hover{
  background:var(--brand-dark);
}

.btn-subscribe,
.contact-btn{
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:4px;
  padding:12px 18px;
}

.contact-btn{
  padding:14px 18px;
}

.btn-subscribe:hover,
.contact-btn:hover{
  background:var(--brand-dark);
}

.btn-back{
  background:#fff;
  color:var(--text-main);
  border:1px solid var(--border-light);
  padding:10px 18px;
  border-radius:30px;
  font-size:11px;
}

.btn-back:hover{
  color:var(--brand);
  border-color:var(--brand);
  background:var(--brand-light);
}

.nav-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--border-light);
  background:#fff;
  color:var(--text-main);
}

.nav-btn:hover{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

.hb-btn{
  background:#fff;
  color:var(--text-main);
  border:1px solid var(--border-light);
  border-radius:30px;
  padding:8px 18px;
  font-size:11px;
}

.hb-btn:hover{
  color:var(--brand);
  border-color:var(--brand);
  background:var(--brand-light);
}

/* -------------------------
   4) MENUBAR
------------------------- */
.menubar{
  min-height:var(--menu-h);
  gap:var(--menu-gap);
  display:flex;
  justify-content:center;
  align-items:center;
  background:#fff;
  width:100%;
  padding:14px 0;
  flex-wrap:wrap;
  row-gap:8px;
  line-height:1;
  border-top:0 solid #f1f5f9;
  border-bottom:none solid #f1f5f9;
}

.menu-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:var(--text-soft);
  font-size:var(--menu-font-size);
  font-weight:var(--menu-font-weight);
  text-transform:uppercase;
  letter-spacing:var(--menu-letter-spacing);
  line-height:1;
  padding:0;
}

.menu-link:hover{
  color:var(--brand);
}

.menu-link.active-link,
.active-link{
  color:var(--brand) !important;
  font-weight:var(--menu-font-weight) !important;
  text-decoration:none !important;
  border-bottom:none !important;
}

/* -------------------------
   5) CARD / FORM SYSTEM
------------------------- */
.form-card,
.card,
.contact-card,
.hb-card{
  background:#fff;
  border:1px solid var(--border-light);
  box-shadow:var(--shadow-md);
}

.form-card{
  width:min(450px, 100%);
  padding:40px;
}

.card-head{
  margin-bottom:18px;
}

.card-title,
.admin-title{
  margin:0;
  color:var(--text-main);
  text-transform:uppercase;
}

.card-title{
  font-size:20px;
  border-left:5px solid var(--brand);
  padding-left:15px;
}

.admin-title{
  margin-bottom:20px;
  color:var(--brand);
  font-size:22px;
}

.lbl,
label,
.contact-label{
  display:block;
  font-size:11px;
  font-weight:800;
  color:var(--text-soft);
  margin:0 0 4px;
  text-transform:uppercase;
}

.inp,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select,
.contact-field,
.contact-select,
.contact-textarea{
  width:100%;
  padding:14px;
  border:1px solid var(--border-mid);
  border-radius:4px;
  font-size:14px;
  color:#334155;
  background:#fff;
  outline:none;
}

.inp:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.contact-field:focus,
.contact-select:focus,
.contact-textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(138,63,127,.05);
}

input[type="file"].inp{
  padding:15px;
}
.inp{
  width:100%;
  min-height:44px;
  padding:12px 18px;
  border:1px solid #cbd5e1;
  border-radius:4px;
}


.form-links{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}

.form-link,
.auth-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}

.form-link:hover,
.auth-link:hover{
  text-decoration:underline;
}

.form-sep{
  color:var(--border-mid);
}

.country-wrapper{
  position:relative;
}

.contact-textarea{
  resize:vertical;
}

/* -------------------------
   10) PROFILE EDIT PAGE
------------------------- */
body.profile-edit-page{
  background:#fff;
}

.profile-edit-page .main-content{
  background:var(--bg-light);
  min-height:calc(100vh - (var(--logo-h) + 60px));
  display:flex;
  justify-content:center;
  padding:60px 0;
}

.profile-edit-page .card{
  position:relative;
  width:100%;
  max-width:1600px;
  padding:50px;
  background:#fff;
  border:1px solid var(--border-light);
  box-shadow:0 10px 25px -5px rgba(0,0,0,.05);
}

body.profile-edit-page.is-embed .main-content{
  justify-content:flex-start;
  padding:30px;
  background:#fff;
}

body.profile-edit-page.is-embed .card{
  margin:0;
  max-width:1185px;
}

.profile-edit-page h1{
  font-size:20px;
  font-weight:800;
  text-transform:uppercase;
}

.profile-edit-page .lbl,
.profile-edit-page label{
  display:block;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--text-soft);
  margin:0 0 4px;
}

.profile-edit-page .inp,
.profile-edit-page input[type="text"],
.profile-edit-page input[type="email"],
.profile-edit-page input[type="password"],
.profile-edit-page textarea,
.profile-edit-page select{
  width:100%;
  padding:14px;
  border:1px solid var(--border-mid);
  border-radius:4px;
  font-size:14px;
  color:#334155;
  background:#fff;
  outline:none;
  margin-bottom:10px;
}

.profile-edit-page .inp:focus,
.profile-edit-page input[type="text"]:focus,
.profile-edit-page input[type="email"]:focus,
.profile-edit-page input[type="password"]:focus,
.profile-edit-page textarea:focus,
.profile-edit-page select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(138,63,127,.05);
}

.profile-edit-page .country-wrapper{
  position:relative;
  margin-bottom:10px;
}

.profile-edit-page #country-list{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-height:220px;
  overflow:auto;
  border:1px solid var(--border-mid);
  display:none;
  background:#fff;
  z-index:999;
  list-style:none;
  padding:0;
  margin:0;
}

.profile-edit-page #country-list li{
  padding:12px;
  cursor:pointer;
  font-size:13px;
  border-bottom:1px solid #f1f5f9;
  font-weight:700;
}

.profile-edit-page #country-list li:hover{
  background:#f8fafc;
  color:var(--brand);
}

.profile-edit-page .btn-main{
  width:100%;
  background:var(--brand);
  color:#fff;
  padding:15px;
  border:none;
  border-radius:4px;
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  cursor:pointer;
  transition:.2s;
}

.profile-edit-page .btn-main:hover{
  background:var(--brand-dark);
}

.profile-edit-page .alert{
  padding:4px 8px;
  margin:0 0 14px 0;
  font-weight:800;
  border-left:4px solid var(--brand);
  font-size:12px;
  line-height:1.2;
  color:var(--brand);
  background:transparent;
  border-radius:0;
}

.profile-edit-page .alert-success{
  padding:4px 8px;
  margin:0 0 14px 0;
  font-weight:800;
  font-size:12px;
  line-height:1.2;
  color:var(--brand);
  border-left:4px solid var(--brand);
  background:transparent;
  border-radius:0;
}

.profile-edit-page .alert-error{
  padding:4px 8px;
  margin:0 0 14px 0;
  font-weight:800;
  font-size:12px;
  line-height:1.2;
  color:var(--brand);
  border-left:4px solid var(--brand);
  background:transparent;
  border-radius:0;
}

.profile-edit-page .avatar{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:20px;
  border:2px solid var(--border-light);
  box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.profile-edit-page .btn-back{
  position:absolute;
  top:18px;
  right:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--border-mid);
  background:#fff;
  color:var(--text-soft);
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  transition:.2s;
}

.profile-edit-page .btn-back:hover{
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:0 6px 16px rgba(138,63,127,.12);
}

.profile-edit-page #ppMsg{
  min-height:14px;
}

.profile-edit-page #ppRemove:hover{
  border-color:var(--brand) !important;
  color:var(--brand) !important;
  box-shadow:0 6px 16px rgba(138,63,127,.12) !important;
}

.profile-edit-page #ppRemove:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* -------------------------
   6) FEEDBACK / STATUS
------------------------- */
.alert,
.error-box,
.contact-alert{
  padding:14px 15px;
  border-radius:10px;
  margin-bottom:20px;
  font-size:13px;
  font-weight:700;
}

.alert-success,
.contact-alert--ok{
  background:var(--success-bg);
  color:#047857;
  border-left:4px solid var(--success);
}

.alert-danger{
  background:#fff1f2;
  color:var(--danger);
  border-left:4px solid var(--danger);
}

.alert-error,
.contact-alert--err,
.error-box{
  background:#fff5f5;
  color:var(--brand);
  border-left:4px solid var(--brand);
}

.pill{
  padding:4px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:10px;
  text-transform:uppercase;
  border:1px solid;
  white-space:nowrap;
}

.pill-active{
  background:var(--success-bg);
  color:var(--success);
  border-color:rgba(16,185,129,.2);
}

/* -------------------------
   7) TABLE / GRID SYSTEM
------------------------- */
.table-frame{
  border:1px solid var(--border-light);
  border-radius:4px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-md);
}

.admin-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  border:none;
  margin:0;
  table-layout:auto;
}

.admin-table th,
.admin-table td{
  border-bottom:.7px solid var(--border-light);
  padding:12px 15px;
  text-align:left;
  vertical-align:middle;
}

.admin-table th{
  background:var(--bg-light);
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:.5px;
  font-size:11px;
}

.admin-table tbody tr:hover{
  background:#fcfaff;
}

.actions{
  display:flex;
  flex-direction:column;
  gap:5px;
  align-items:center;
  justify-content:center;
  width:110px;
}

.btn-primary,
.btn-secondary,
.btn-action{
  border-radius:30px;
  font-size:11px;
}

.btn-primary,
.btn-secondary{
  padding:8px 18px;
  border:1px solid var(--border-light) !important;
  background:#fff !important;
  color:var(--text-main) !important;
  gap:8px;
}

.btn-action{
  width:100%;
  padding:5px 12px;
  font-size:10px;
  min-height:26px;
  border:1px solid var(--border-mid);
  background:#fff;
  color:var(--text-main);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-action:hover{
  color:var(--brand) !important;
  border-color:var(--brand) !important;
  background:var(--brand-light) !important;
  transform:scale(1.05);
}

.btn-action-danger{
  color:var(--danger);
}

.btn-action-danger:hover{
  border-color:var(--danger) !important;
  color:var(--danger) !important;
  background:var(--danger-bg) !important;
}

/* =========================================================
   DASHBOARD SHELL / PROFILE AREA
   ========================================================= */

.content-wrapper{
  max-width:1600px;
  width:100%;
  margin:30px auto;
  padding:0 40px;
}

.dash-card{
  background:#fff;
  border:1px solid var(--border-light);
  box-shadow:var(--shadow-md);
  padding:20px;
}

.main-content{
  background-color:var(--bg-light);
}

.workspace-frame{
  width:100%;
  min-height:1200px;
  height:auto;
  border:0;
  display:block;
  background:#fff;
  overflow:hidden;
}

body.is-embed .workspace-frame{
  height:auto !important;
}
.page-title{
  font-size:20px;
  font-weight:800;
  color:var(--text-main);
  text-transform:uppercase;
  border-left:5px solid var(--brand);
  padding-left:15px;
  margin:0 0 10px 0;
}

.meta-row{
  display:flex;
  gap:15px;
  font-size:14px;
  color:var(--text-soft);
  font-weight:500;
  margin:0 0 35px 0;
  flex-wrap:wrap;
}

.meta-row .nick{
  color:var(--brand);
  font-weight:800;
}

.dash-grid{
  display:flex;
  gap:40px;
}

.left-col{
  width:240px;
  flex-shrink:0;
}

.right-col{
  flex:1;
}

.shell{
  display:flex;
  gap:16px;
  align-items:stretch;
}

.shell-left{
  width:260px;
  flex:0 0 260px;
}

.shell-right{
  flex:1;
  min-width:0;
}

.shell-userhead{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  padding:16px 14px;
  border-bottom:1px solid var(--border-light);
}

.shell-userhead .nm{
  font-weight:900;
  font-size:16px;
  text-transform:uppercase;
  line-height:1.15;
}

.shell-userhead .nk{
  font-size:12px;
  color:var(--text-soft);
  font-weight:700;
}



.avatar-circle{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--border-light);
  box-shadow:0 5px 15px rgba(0,0,0,.1);
  display:block;
  margin:0 auto 20px auto;
}

.side-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  background:var(--brand);
  color:#fff;
  text-transform:uppercase;
  font-weight:800;
  font-size:12px;
  padding:12px 15px;
  text-decoration:none;
  margin-bottom:6px;
  transition:.2s;
  border-left:4px solid rgba(0,0,0,.15);
  gap:10px;
}

.side-btn:hover{
  background:var(--brand-dark);
}

.side-btn > span:first-child{
  display:block;
}

.side-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:var(--danger);
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1;
  flex:0 0 auto;
}

.section-label{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:10px;
  display:block;
  letter-spacing:1px;
}

.bio-box{
  background:var(--bg-light);
  border:1px solid var(--border-light);
  padding:30px;
  font-size:14px;
  line-height:1.7;
  color:#334155;
  min-height:220px;
}

.social-btn{
  display:inline-block;
  border:2px solid var(--border-light);
  padding:8px 20px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--text-main);
  text-decoration:none;
  margin-right:6px;
  margin-bottom:6px;
  transition:.2s;
}

.social-btn:hover{
  border-color:var(--brand);
  background:var(--brand);
  color:#fff;
}

.alert{
  padding:4px 8px;
  margin:0 0 14px 0;
  font-weight:800;
  border-left:4px solid;
  font-size:12px;
  line-height:1.2;
}

.alert-success{
  background:var(--success-bg);
  color:#047857;
  border-color:var(--success);
}

.alert-error{
  background:var(--danger-bg);
  color:#b91c1c;
  border-color:#b91c1c;
}

#ppRemove{
  transition:all .3s ease !important;
}

#ppRemove:hover{
  color:var(--brand) !important;
  border-color:var(--brand) !important;
  background:var(--brand-light) !important;
  transform:scale(1.05) !important;
  box-shadow:0 4px 10px rgba(138,63,127,.1) !important;
}

/* embed */
body.is-embed header,
body.is-embed .menubar{
  display:none !important;
}

body.is-embed .main-content{
  padding:0 !important;
  background:#fff !important;
  display:block !important;
}

body.is-embed .content-wrapper{
  max-width:100% !important;
  margin:0 !important;
  padding:10px !important;
}

body.is-embed .dash-card{
  border:none !important;
  box-shadow:none !important;
}



@media (max-width:992px){
  .top-right-auth{
    position:static;
    justify-content:center;
    margin-top:10px;
  }

  .menubar{
    flex-wrap:wrap;
    gap:20px;
  }

  .dash-grid{
    flex-direction:column;
  }

  .left-col{
    width:100%;
  }

  .content-wrapper{
    padding:0 20px;
  }

  .header-logo-area{
    padding:0 15px;
  }

  .shell{
    flex-direction:column;
  }

  .shell-left{
    width:100%;
    flex:1;
  }

  .workspace-frame{
    height:70vh;
    min-height:0;
  }
}

/* -------------------------
   11) BIOGRAPHY PAGE
------------------------- */


.biography-page .wrap,
.biography-page.is-embed .wrap{
  padding:24px;
  max-width:none;
  width:100%;
  margin:0;
}

/* admin */
.biography-page.admin-view .wrap,
.biography-page.admin-view.is-embed .wrap{
 
  max-width:1410px;
  margin:0;
  padding:24px 0;
}

.biography-page .alert{
  padding:12px 14px;
  margin:0 0 18px 0;
  font-weight:800;
  border-left:4px solid;
  font-size:12px;
  line-height:1.25;
  border-radius:0;
}

.biography-page .alert-success{
  background:var(--success-bg);
  color:#047857;
  border-color:var(--success);
}

.biography-page .alert-error{
  background:var(--danger-bg);
  color:#b91c1c;
  border-color:#ef4444;
}

.biography-page textarea{
  width:100%;
  min-height:320px;
  padding:14px;
  border:1px solid var(--border-mid);
  border-radius:6px;
  font-size:14px;
  line-height:1.7;
  resize:vertical;
  outline:none;
  color:#334155;
  background:#fff;
}

.biography-page textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(138,63,127,.05);
}

.biography-page .btn-main{
  margin-top:14px;
  width:100%;
}
/* -------------------------
   8) HERO / PAGE STRUCTURE
------------------------- */
.hero,
.hero-slide,
.photo-cluster,
.cluster-left,
.cluster-right{
  position:relative;
}

.hero-caption{
  color:#fff;
}

/* -------------------------
   9) ACTUALITÉ / CONTENT CARDS
------------------------- */
.hb-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.hb-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.hb-media{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}

.hb-body{
  padding:18px;
}

.hb-title{
  margin:0 0 10px;
  font-size:18px;
  color:var(--text-main);
}

.hb-text{
  color:var(--text-soft);
  margin:0 0 14px;
}

.hb-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* -------------------------
   10) CONTACT PAGE
------------------------- */
.contact-wrap{
  width:min(900px, calc(100% - 48px));
  margin:0 auto;
  padding-top:75px;
}

.contact-card{
  padding:30px;
}

.contact-lead{
  margin:0 0 25px;
  color:var(--text-soft);
  font-size:14px;
  text-align:center;
}

/* -------------------------
   11) AUTH / REGISTER / FORGOT SPECIALIZATION
------------------------- */
.page:has(.form-card) .card-title{
  margin:0 0 30px 0;
}

.page:has(.form-card) .lbl{
  margin-bottom:8px;
}

.page:has(.form-card) .inp{
  margin-bottom:10px;
}

.page:has(.form-card) .btn-main:hover{
  background:#5a2050;
  transform:translateY(0);
  box-shadow:0 10px 20px rgba(138,63,127,.15);
}

.page:has(.form-card) .form-links{
  margin-top:20px;
  text-align:center;
  font-size:12px;
  justify-content:center;
  gap:10px;
}

/* Login + Forgot */
.form-card:not(:has(form[enctype="multipart/form-data"])) .alert{
  border-radius:0;
  padding:4px 8px;
  margin:0 0 14px 0;
  font-weight:800;
  font-size:12px;
  line-height:1.2;
}

/* Forgot only */
.form-card:has(input[name="email"]):not(:has(input[name="password"])) .lbl{
  display:none;
}

/* Register */
.form-card:has(form[enctype="multipart/form-data"]){
  width:min(900px, calc(100% - 48px));
  padding:20px;
}

.form-card:has(form[enctype="multipart/form-data"]) .card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px;
}

.form-card:has(form[enctype="multipart/form-data"]) .row{
  gap:30px;
  align-items:flex-start;
}

.form-card:has(form[enctype="multipart/form-data"]) .btn-main{
  padding:20px;
}

.form-card:has(form[enctype="multipart/form-data"]) .alert{
  padding:15px;
  margin-bottom:25px;
  border-left:4px solid var(--brand);
  background:#fdf2f8;
  color:var(--brand);
  border-radius:0;
}

.input-error{
  border:2px solid var(--brand) !important;
  background:#fff5f5 !important;
}

.check-loading,
.check-error{
  font-size:11px;
  font-weight:800;
  margin-top:-6px;
  margin-bottom:15px;
  display:none;
}

.check-loading{
  color:var(--text-soft);
}

.check-error{
  color:var(--brand);
}

#country-list{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-height:220px;
  overflow:auto;
  border:1px solid var(--border-strong);
  display:none;
  background:#fff;
  z-index:999;
  list-style:none;
  padding:0;
  margin:0;
}

#country-list li{
  padding:12px;
  cursor:pointer;
  font-size:13px;
  border-bottom:1px solid #f1f5f9;
  font-weight:700;
  color:#000;
  background:#fff;
}

#country-list li:hover{
  background:#f8fafc;
  color:var(--brand);
}

/* Rules link / checkbox */
#accept_rules{
  width:20px;
  height:20px;
  cursor:pointer;
  accent-color:var(--brand);
  margin:0;
}

label[for="accept_rules"]{
  font-size:12px;
  font-weight:800;
  color:var(--text-soft);
  cursor:pointer;
  text-transform:uppercase;
  margin:0;
}

#rulesLink{
  color:var(--brand);
  text-decoration:none;
  border-bottom:1px solid var(--brand);
  padding-bottom:1px;
}

#rulesLink:hover{
  opacity:.88;
}

/* Rules modal */
#rulesModal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
}

#rulesModal > div{
  max-width:980px;
  width:92%;
  max-height:88vh;
  margin:5vh auto;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

#rulesModal > div > div:first-child{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid #e5e7eb;
}

#rulesModal > div > div:first-child > div:first-child{
  font-weight:900;
  color:var(--text-main);
}

#rulesCloseBtn{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  color:var(--text-main);
}

#rulesModal > div > div:nth-child(2){
  height:70vh;
  background:#fff;
}

#rulesFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}

#rulesModal > div > div:last-child{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid #e5e7eb;
}

#rulesCloseBtn2{
  padding:10px 16px;
}

/* -------------------------
   12) MODAL / EMBED
------------------------- */
.modal-box{
  background:#fff;
  border-radius:14px;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border-light);
}

body.is-embed{
  background:#fff;
}

body.is-embed .admin-container{
  padding:0;
}

/* -------------------------
   13) FOOTER LINK / HOVER
------------------------- */
footer{
  margin-top:auto;
}

footer a{
  transition:color .3s ease;
  color:#fff;
  text-decoration:none;
  display:inline-block;
  transform:none !important;
  margin:0;
  padding:0;
}

footer a:hover{
  color:var(--brand) !important;
  transform:none !important;
  background:transparent !important;
}

footer button:hover,
footer .btn-subscribe:hover{
  background-color:#fff !important;
  color:var(--brand) !important;
  transform:none !important;
  box-shadow:none !important;
}

/* -------------------------
   14) RESPONSIVE
------------------------- */
@media (max-width:980px){
  .hb-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .header-logo-area{
    height:auto;
    min-height:0;
    padding:12px 0 16px;
    flex-direction:column;
    gap:10px;
  }

  .top-left-social,
  .top-right-auth{
    position:static;
    left:auto;
    right:auto;
    top:auto;
    transform:none;
    justify-content:center;
  }

  .brand-logo{
    order:-1;
    margin-bottom:4px;
    font-size:28px;
    justify-content:center;
  }

  .brand-logo img{
    max-height:52px;
    height:auto;
    width:auto;
    display:block;
  }

  .form-card:has(form[enctype="multipart/form-data"]){
    width:min(100%, calc(100% - 32px));
  }
}

@media (max-width:700px){
  .hb-grid{
    grid-template-columns:1fr;
  }

  .form-card:has(form[enctype="multipart/form-data"]) .row{
    gap:20px;
  }

  .col-half{
    flex:0 0 100%;
    width:100%;
  }
}
#city-list{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-height:220px;
  overflow:auto;
  border:1px solid #cbd5e1;
  display:none;
  background:#fff;
  z-index:999;
  list-style:none;
  padding:0;
  margin:0;
}

#city-list li{
  padding:12px;
  cursor:pointer;
  font-size:13px;
  border-bottom:1px solid #f1f5f9;
  font-weight:700;
}

#city-list li:hover{
  background:#f8fafc;
  color:#8A3F7F;
}
.field-help{
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
  font-weight:600;
}

.gallery-page{padding:24px 0;background:#fff;color:#0f172a}
.gallery-shell{width:min(1400px,calc(100% - 40px));margin:0 auto}
.gallery-alert{padding:14px 16px;border-radius:12px;margin:0 0 16px}
.gallery-alert-ok{background:#ecfdf5;color:#065f46}
.gallery-alert-err{background:#fef2f2;color:#991b1b}
.gallery-summary-card,.gallery-form-card,.gallery-album-card,.phot-dir-search,.home-directory-search,.profile-album-section{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px}
.gallery-section-title{margin:0 0 14px;font-size:22px;font-weight:800;color:#8A3F7F}
.gallery-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.gallery-stat{padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fafafa}
.gallery-stat span{display:block;font-size:12px;color:#64748b;margin-bottom:6px}
.gallery-stat strong{font-size:18px;color:#0f172a}
.gallery-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gallery-field-span-2{grid-column:1 / -1}
.gallery-field-align-end{display:flex;align-items:end}
.gallery-label{display:block;font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;margin:0 0 6px}

.gallery-textarea{min-height:110px;resize:vertical}
.gallery-textarea-small{min-height:80px}
.gallery-checkbox{display:flex;align-items:center;gap:10px;font-size:14px;color:#334155}
.gallery-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:1px solid #8A3F7F;border-radius:999px;background:#8A3F7F;color:#fff;text-decoration:none;font-weight:800;cursor:pointer}
.gallery-btn:hover{opacity:.92}
.gallery-btn-secondary{background:#fff;color:#8A3F7F}
.gallery-btn:disabled{opacity:.5;cursor:not-allowed}
.gallery-order-form{display:flex;flex-direction:column;gap:10px}



.gallery-album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:20px}
.gallery-album-card{display:flex;flex-direction:column;gap:14px}
.gallery-album-head h3{margin:0 0 8px;font-size:22px;color:#8A3F7F}
.gallery-album-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:#64748b}

.gallery-photo-grid{display:grid;grid-template-columns:1fr;gap:14px}
.gallery-photo-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fafafa}
.gallery-photo-thumb{width:100%;height:220px;object-fit:cover;border-radius:12px;display:block;margin-bottom:10px}
.gallery-photo-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#64748b;margin-bottom:12px}
.gallery-actions-row{display:flex;gap:10px;flex-wrap:wrap}
.gallery-empty{padding:22px;border:1px dashed #cbd5e1;border-radius:16px;color:#64748b;background:#fff}

.phot-dir-page{padding:30px 0}
.phot-dir-shell{width:min(1500px,calc(100% - 40px));margin:0 auto}

.phot-dir-search-grid{
  grid-template-columns:1fr 1fr 1fr auto;
}



.gallery-upload-form .gallery-btn-soft{
  background:#fee2e2 !important;
  color:#111 !important;
  border-color:#fca5a5 !important;
}

.gallery-upload-form .gallery-btn-soft:hover{
  background:#8A3F7F !important;
  color:#fff !important;
  border-color:#8A3F7F !important;
}

.gallery-upload-form .gallery-btn-soft:disabled{
  background:#fee2e2 !important;
  color:#111 !important;
  border-color:#fca5a5 !important;
  opacity:.5 !important;
}
.phot-dir-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}

.phot-dir-grid.is-centered{
  display:flex !important;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
  gap:20px;
}

.phot-dir-grid.is-centered .phot-dir-card{
  flex:0 0 calc((100% - 60px) / 4);
  max-width:calc((100% - 60px) / 4);
  min-width:280px;
}

@media (max-width:1200px){
  .phot-dir-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .phot-dir-grid.is-centered .phot-dir-card{
    flex:0 0 calc((100% - 20px) / 2);
    max-width:calc((100% - 20px) / 2);
    min-width:280px;
  }
}

@media (max-width:768px){
  .phot-dir-grid{
    grid-template-columns:1fr;
  }

  .phot-dir-grid.is-centered{
    display:flex !important;
  }

  .phot-dir-grid.is-centered .phot-dir-card{
    flex:0 0 100%;
    max-width:100%;
    min-width:0;
  }
}

.phot-dir-search-grid .gallery-input,
.home-directory-search-grid .gallery-input{
  border:1px solid #d7dde7 !important;
  border-radius:10px !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:0 42px 0 16px !important;
  min-height:48px;
  color:#1e293b !important;
  font-weight:500;
}

.phot-dir-search-grid .gallery-input:hover,
.home-directory-search-grid .gallery-input:hover,
.phot-dir-search-grid .gallery-input:focus,
.home-directory-search-grid .gallery-input:focus{
  border-color:#8A3F7F !important;
  box-shadow:0 0 0 2px rgba(138,63,127,.08) !important;
  cursor:pointer;
}

.phot-dir-search-grid,
.home-directory-search-grid{
  gap:20px !important;
}

.phot-dir-card-media{
  display:block;
  aspect-ratio:1 / 1;
  height:auto;
  background:#f8fafc;
  overflow:hidden;
}

.phot-dir-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.phot-dir-card{
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}

.phot-dir-card-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  height:100%;
}

.phot-dir-card h3{
  margin:0 0 8px;
  font-size:20px;
  color:#8A3F7F;
}

.phot-dir-meta{
  font-size:13px;
  color:#64748b;
  margin:0 0 8px;
}

.phot-dir-location{
  font-size:17px !important;
  line-height:1.5;
  font-weight:700;
  color:#475569;
  margin:0 0 10px;
}

.phot-dir-bio{
  font-size:13px;
  line-height:1.6;
  color:#334155;
  margin:0 0 12px;
}

.phot-dir-card-body .home-dir-btn{
  align-self:center;
  margin-top:auto;
}
.phot-dir-pagination{display:flex;gap:8px;justify-content:center;margin-top:26px}
.phot-dir-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border:1px solid #cbd5e1;border-radius:10px;text-decoration:none;color:#334155}
.phot-dir-pagination a.is-active{background:#8A3F7F;color:#fff;border-color:#8A3F7F}

.profile-page{padding:30px 0}
.profile-shell{width:min(1500px,calc(100% - 40px));margin:0 auto}
.profile-hero{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start;margin-bottom:26px}
.profile-avatar{width:280px;height:280px;object-fit:cover;border-radius:24px;border:1px solid #e2e8f0}
.profile-name{margin:0 0 10px;font-size:34px;font-weight:900;color:#8A3F7F}
.profile-meta-row{font-size:14px;color:#64748b;margin:0 0 8px}
.profile-bio{font-size:14px;line-height:1.7;color:#334155;white-space:pre-wrap}
.profile-action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.profile-album-section{margin-bottom:24px}
.profile-album-head h2{margin:0 0 8px;font-size:26px;color:#8A3F7F}
.profile-album-description{margin:0 0 16px;font-size:14px;color:#334155;line-height:1.6}
.profile-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.profile-photo-card{border:1px solid #e2e8f0;border-radius:18px;background:#fff;overflow:hidden}
.profile-gallery-image{width:100%;height:260px;object-fit:cover;display:block;cursor:pointer}
.profile-photo-body{padding:14px}
.profile-photo-title{font-size:16px;font-weight:800;color:#0f172a;margin:0 0 6px}
.profile-photo-caption{font-size:13px;line-height:1.5;color:#64748b;margin:0 0 10px}
.profile-photo-stats{font-size:12px;color:#64748b;margin:0 0 12px}
.profile-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:99999;padding:20px}
.profile-lightbox img{max-width:92vw;max-height:92vh;border-radius:16px}
.profile-lightbox.is-open{display:flex}



@media (max-width:900px){
  .gallery-form-grid,.phot-dir-search-grid,.home-directory-search-grid{grid-template-columns:1fr}
  .profile-hero{grid-template-columns:1fr}
  .profile-avatar{width:100%;height:auto;aspect-ratio:1/1}
}
/* =========================================
   HOME DIRECTORY — STANDARD 4 BOX FINAL
========================================= */

.home-directory-wrap{
  width:min(1600px,calc(100% - 48px));
  margin:30px auto;
}

.home-directory-search{
  max-width:800px;
 margin:50px auto 18px auto;
  padding:10px  16px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
}

.phot-dir-search-grid .gallery-input:hover,
.home-directory-search-grid .gallery-input:hover{
  border-bottom-color:#8A3F7F !important;
  color:#111827 !important;
  cursor:pointer;
}

.phot-dir-search-grid .gallery-input:hover + *,
.home-directory-search-grid .gallery-input:hover + *{
  cursor:pointer;
}

.home-directory-search-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 120px;
  gap:auto;
}

.home-directory-block{
  margin:0 0 28px 0;
}

.home-directory-block h2{
  margin:0 0 14px;
  font-size:28px;
  color:#8A3F7F;
  font-weight:900;
}



.home-directory-card{
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  min-width:0;
}

.home-directory-card-media > img:not(.home-membership-badge-img){
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.home-directory-card-body{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:24px !important;
  padding:15px !important;
  min-height:96px !important;
}

.home-directory-main{
  flex:1 1 auto;
  min-width:0;
}

.home-directory-side{
  flex:0 0 34%;
  max-width:34%;
  margin-left:auto;
  text-align:right;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
}

.home-directory-cats{
  color:#64748b !important;
  font-size:13px !important;
  line-height:1.45 !important;
  margin:0 0 0 auto !important;
  text-align:right !important;
  white-space:normal;
  word-break:break-word;
}

.home-directory-name{
  font-weight:500 !important;
  color:#334155 !important;
  font-size:16px !important;
  margin:0 0 5px 0 !important;
  line-height:1.25 !important;
}

.home-directory-meta{
  font-size:12px !important;
  line-height:1.45 !important;
  margin:0 !important;
}

.home-directory-country{
  font-weight:600 !important;
  color:#334155 !important;
}

.home-directory-sep{
  display:inline-block !important;
  margin:0 2px !important;
  color:#94a3b8 !important;
  font-weight:800 !important;
}

.home-directory-city{
  font-weight:400 !important;
  color:#64748b !important;
}

.home-directory-name{
  font-size:18px;
  font-weight:900;
  color:#8A3F7F;
  margin:0 0 6px;
}


.home-directory-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.home-directory-card-empty{
  min-height:320px;
  border:1px dashed #e2e8f0;
  background:#fff;
  border-radius:18px;
}

/* =========================================================
  BADGES
   ========================================================= */
.home-directory-card-media{
  position:relative;
  overflow:hidden;
}

.home-membership-badge-img{
  position:absolute !important;
  top:3px !important;
  right:4px !important;
  width:44px !important;
  height:44px !important;
  object-fit:contain !important;
  display:block !important;
  z-index:15 !important;
  pointer-events:none !important;
}

@media (max-width:1200px){
  .home-directory-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:768px){
  .home-directory-search-grid{
    grid-template-columns:1fr;
  }

  .home-directory-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   BAGWED — USER GALLERY FINAL
   ========================================================= */

.gallery-dashboard-page{
  --gallery-brand:var(--brand, #8A3F7F);
  --gallery-brand-light:var(--brand-light, #fdf4ff);
  --gallery-text:var(--text-main, #1e293b);
  --gallery-soft-text:var(--text-soft, #64748b);
  --gallery-muted:var(--text-muted, #94a3b8);
  --gallery-line:var(--border-light, #e2e8f0);
  --gallery-line-strong:var(--border-mid, #cbd5e1);
  --gallery-bg:var(--bg-white, #fff);
  --gallery-bg-soft:var(--bg-light, #f8fafc);
  --gallery-success:var(--success, #10b981);
  --gallery-success-bg:var(--success-bg, #ecfdf5);
  --gallery-danger:var(--danger, #dc2626);
  --gallery-danger-bg:var(--danger-bg, #fef2f2);
  color:var(--gallery-text);
}

.gallery-page{
  width:100%;
  padding:34px 0 60px;
}

.gallery-shell{
  width:min(1600px, calc(100% - 48px));
  margin:0 auto;
}

.gallery-album-back-row{
  margin:0 0 10px;
}
.gallery-dashboard-page *{
  box-sizing:border-box;
}

.gallery-alert{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;
  font-weight:800;
  margin:0 0 12px;
  border:1px solid var(--gallery-line);
}

.gallery-alert-ok{
  background:var(--gallery-success-bg);
  color:#047857;
  border-color:rgba(16,185,129,.18);
}

.gallery-alert-err{
  background:var(--gallery-danger-bg);
  color:var(--gallery-danger);
  border-color:rgba(220,38,38,.18);
}

.gallery-alert-icon,
.gallery-chip-icon,
.gallery-stat-icon,
.gallery-head-icon,
.gallery-btn-icon,
.gallery-badge-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  flex:0 0 auto;
  
}

.gallery-alert-icon svg,
.gallery-chip-icon svg,
.gallery-stat-icon svg,
.gallery-head-icon svg,
.gallery-btn-icon svg,
.gallery-badge-icon svg,
.gallery-album-list-arrow svg{
  width:14px;
  height:14px;
}

.gallery-photo-card .gallery-actions-row-compact{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
}

.gallery-photo-card .gallery-actions-row-compact > :nth-child(1){
  flex:0.9 1 0 !important; /* Save */
  min-width:0;
}

.gallery-photo-card .gallery-actions-row-compact > :nth-child(2),
.gallery-photo-card .gallery-actions-row-compact > :nth-child(3){
  flex:1.05 1 0 !important; /* Cover + Delete */
  min-width:0;
}

.gallery-photo-card .gallery-actions-row-compact > .gallery-inline-form{
  display:flex;
}

.gallery-photo-card .gallery-actions-row-compact .gallery-btn{
  width:100% !important;
  justify-content:center;
}


.gallery-hero-card,
.gallery-form-card,
.gallery-album-card{
  border:1px solid var(--gallery-line);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  margin-bottom:20px;
  box-shadow:none;
}

.gallery-hero-card{
  padding:18px;
}

.gallery-hero-main{
  margin-bottom:14px;
}

.gallery-hero-kicker,
.gallery-card-kicker{
  display:block;
  margin:0 0 8px;
  color:var(--gallery-soft-text);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.gallery-hero-title{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.1;
  color:var(--gallery-brand);
  font-weight:800;
}

.gallery-hero-text{
  margin:0;
  color:var(--gallery-soft-text);
  font-size:13px;
  line-height:1.6;
  max-width:920px;
}

.gallery-hero-flags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 16px;
}

.gallery-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:6px 14px;
  border-radius:30px;
  border:1px solid var(--gallery-line);
  background:#fff;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--gallery-text);
}

.gallery-chip.is-success{
  color:var(--gallery-success);
  background:var(--gallery-success-bg);
  border-color:rgba(16,185,129,.18);
}

.gallery-chip.is-danger{
  color:var(--gallery-danger);
  background:var(--gallery-danger-bg);
  border-color:rgba(220,38,38,.18);
}

.gallery-chip.is-muted{
  color:var(--gallery-soft-text);
}

.gallery-stats-grid{
  display:grid;
  width:fit-content;
  max-width:100%;
  grid-template-columns:repeat(5, minmax(105px, 1fr));
  gap:8px;
  margin:0 auto;
}

.gallery-stat-card{
  min-height:50px;
  padding:10px;
  border-radius:10px;
  gap:6px;
  border:1px solid var(--gallery-line);
  background:#fff;
}

.gallery-stat-icon{
  width:22px;
  height:22px;
  border-radius:6px;
}

.gallery-stat-icon svg{
  width:15px;
  height:15px;
}

.gallery-stat-label{
  font-size:15px;
  line-height:1.2;
}

.gallery-stat-value{
  font-size:16px;
  line-height:1;
}

.gallery-panel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:20px;
}

.gallery-form-card{
  padding:1px;
}

.gallery-card-head,
.gallery-block-head,
.gallery-upload-head{
  padding:12px 14px;
  border-bottom:1px solid var(--gallery-line);
  background:var(--gallery-bg-soft);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.gallery-upload-head{
  padding:0 0 12px;
  border-bottom:1px solid var(--gallery-line);
  background:transparent;
}

.gallery-head-icon{
  width:32px;
  height:32px;
  border-radius:8px;
  border:1px solid var(--gallery-line);
  background:#fff;
  color:var(--gallery-brand);
}

.gallery-section-title{
  margin:0;
  font-size:14px;
  text-transform:uppercase;
  color:var(--gallery-text);
  font-weight:800;
  font-family:Arial, Helvetica, sans-serif !important;
}

.gallery-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  padding:14px;
}

.gallery-field{
  min-width:0;
}

.gallery-field-span-2{
  grid-column:1 / -1;
}

.gallery-field-align-end{
  display:flex;
  align-items:flex-end;
}

.gallery-label{
  display:block;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--gallery-soft-text);
  margin:0 0 6px;
  letter-spacing:.3px;
}

.gallery-input,
.gallery-textarea{
  width:100%;
  border:1px solid var(--gallery-line-strong);
  border-radius:8px;
  padding:12px 14px;
  font-family:inherit;
  font-size:14px;
  color:var(--gallery-text);
  background:#fff;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}

.gallery-input:focus,
.gallery-textarea:focus{
  border-color:var(--gallery-brand);
  box-shadow:0 0 0 4px rgba(138,63,127,.05);
}

.gallery-textarea{
  min-height:110px;
  resize:vertical;
  line-height:1.5;
}

.gallery-textarea-small{
  min-height:72px;
}

.gallery-textarea-2line{
  min-height:72px;
  max-height:72px;
  resize:none;
  overflow:auto;
}

.gallery-input{
  padding:12px 14px;
}
.gallery-input-order{
  max-width:70px;
  padding:8px 10px;
  height:44px;
}


.gallery-file-input{
  padding:11px 12px;
}

.gallery-field-help,
.gallery-upload-help{
  margin-top:8px;
  color:var(--gallery-soft-text);
  font-size:12px;
  font-weight:700;
}

.gallery-upload-title{
  margin:0 0 6px;
  font-size:14px;
  text-transform:uppercase;
  color:var(--gallery-text);
  font-weight:800;
  font-family:Arial, Helvetica, sans-serif !important;
}

.gallery-upload-text{
  margin:0;
  color:var(--gallery-soft-text);
  font-size:13px;
  line-height:1.6;
}

.gallery-order-form{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.gallery-order-title{
  font-size:13px;
  font-weight:700;
  color:var(--gallery-text);
}

.gallery-btn,
.gallery-checkbox-pill{
  gap:2px !important;
  border-radius:30px;
  font-weight:800;
  text-transform:uppercase;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
  font-family:Arial, Helvetica, sans-serif !important;
}

.gallery-btn{
  padding:8px 18px;
  font-size:11px;
  gap:8px;
  border:1px solid var(--gallery-line) !important;
  background:#fff !important;
  color:var(--gallery-text) !important;
  box-shadow:none !important;
}

.gallery-btn:hover{
  color:var(--gallery-brand) !important;
  border-color:var(--gallery-brand) !important;
  background:var(--gallery-brand-light) !important;
}

.gallery-btn-primary{
  border:1px solid var(--gallery-line) !important;
  background:#fff !important;
  color:var(--gallery-text) !important;
}

.gallery-btn-primary:hover{
  color:var(--gallery-brand) !important;
  border-color:var(--gallery-brand) !important;
  background:var(--gallery-brand-light) !important;
}

.gallery-btn-danger:hover{
  border-color:var(--gallery-danger) !important;
  color:var(--gallery-danger) !important;
  background:var(--gallery-danger-bg) !important;
}

.gallery-btn-compact{
  min-height:34px;
  padding:6px 14px;
  font-size:10px;
  gap:7px;
}


/* ===== GALLERY ORDER BOX HEIGHT FINAL OVERRIDE ===== */

.gallery-panel-grid > .gallery-form-card:last-child .gallery-card-head{
  padding:10px 12px !important;
}

.gallery-panel-grid > .gallery-form-card:last-child .gallery-order-form{
  padding:8px !important;
  gap:3px !important;
}

.gallery-panel-grid > .gallery-form-card:last-child .gallery-order-row{
  min-height:10px !important;
  padding:6px 10px !important;
  gap:4px !important;
  border-radius:10px !important;
}

.gallery-panel-grid > .gallery-form-card:last-child .gallery-input-order{
  max-width:54px !important;
  width:54px !important;
  height:20px !important;
  min-height:25px !important;
  padding:3px 3px !important;
  text-align:center !important;
}

.gallery-panel-grid > .gallery-form-card:last-child .gallery-order-title{
  font-size:10px !important;
  line-height:1.2 !important;
}
.gallery-actions-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.gallery-actions-row-compact{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.gallery-actions-row-compact > .gallery-inline-form,
.gallery-actions-row-compact > .gallery-checkbox-pill,
.gallery-actions-row-compact > .gallery-btn{
  flex:1 1 0;
  min-width:0;
}

.gallery-actions-row-compact .gallery-inline-form{
  margin:0;
}

.gallery-actions-row-compact .gallery-inline-form .gallery-btn{
  width:100%;
}

.gallery-checkbox-pill{
  min-height:34px;
  padding:6px 14px;
  border:1px solid var(--gallery-line);
  background:#fff;
  color:var(--gallery-text);
  font-size:10px;
  gap:8px;
}

.gallery-checkbox-pill:hover{
  color:var(--gallery-brand);
  border-color:var(--gallery-brand);
  background:var(--gallery-brand-light);
}

.gallery-checkbox-pill input,
.gallery-checkbox input{
  accent-color:var(--gallery-brand);
}

.gallery-checkbox{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  color:var(--gallery-text);
}

.gallery-section-block{
  margin-top:0;
}

.gallery-block-count{
  padding:8px 14px;
  border:1px solid var(--gallery-line);
  border-radius:30px;
  background:#fff;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  color:var(--gallery-text);
}

.gallery-album-list{
  display:grid;
  gap:14px;
}

.gallery-album-list-link{
  margin-top:10px;
  min-height:40px;
 height:20px !important;
  width:100% !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:15px 10px;
  border:1px solid var(--gallery-line);
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  color:var(--gallery-text);
  box-shadow:none;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}

.gallery-album-list-link:hover{
  border-color:var(--gallery-brand);
  background:var(--gallery-brand-light);
}

.gallery-album-list-title{
  
  font-size:10px;
  line-height:1.2;
  font-weight:600;
  color:var(--gallery-text);
}

.gallery-album-list-arrow{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:30px;
  border:1px solid var(--gallery-line);
  background:#fff;
  color:var(--gallery-brand);
  flex:0 0 auto;
}

.gallery-album-card{
  padding:14px;
}

.gallery-album-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.gallery-album-title{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:var(--gallery-text);
}

.gallery-album-desc{
  margin:0;
  color:var(--gallery-soft-text);
  font-size:13px;
  line-height:1.6;
}

.gallery-album-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.gallery-badge,
.gallery-mini-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.gallery-badge{
  min-height:32px;
  padding:5px 12px;
  border:1px solid var(--gallery-line);
  border-radius:30px;
  background:#fff;
  color:var(--gallery-text);
}

.gallery-badge.is-live{
  color:var(--gallery-success);
  background:var(--gallery-success-bg);
  border-color:rgba(16,185,129,.18);
}

.gallery-badge.is-muted{
  color:var(--gallery-soft-text);
}

.gallery-mini-badge{
  padding:5px 10px;
  border:1px solid var(--gallery-line);
  border-radius:30px;
  background:#fff;
  color:var(--gallery-text);
}

.gallery-mini-badge.is-cover{
  color:var(--gallery-brand);
}

.gallery-mini-badge.is-flag{
  color:var(--gallery-danger);
  background:var(--gallery-danger-bg);
  border-color:rgba(220,38,38,.18);
}

.gallery-album-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(300px, .85fr);
  gap:16px;
  margin-bottom:16px;
}

.gallery-upload-box{
  border:1px solid var(--gallery-line);
  border-radius:12px;
  background:#fff;
  padding:14px;
}

.gallery-upload-form{
  margin-top:18px;
}
.gallery-album-tools{
  padding:0 14px 14px;
}

.gallery-photo-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}

.gallery-photo-card{
  border:1px solid var(--gallery-line);
  border-radius:8px;
  background:#fff;
  padding:12px;
}

.gallery-photo-thumb-wrap{
  position:relative;
  overflow:hidden;
  border-radius:0 !important;
  background:#fff;
  border:1px solid var(--gallery-line);
  aspect-ratio:1 / 1;
}

.gallery-photo-thumb,
.gallery-photo-thumb-default,
.gallery-photo-thumb-full{
  display:block;
  width:100%;
  height:100%;
  border-radius:0 !important;
}

.gallery-photo-thumb-default{
  object-fit:cover;
  opacity:1;
  transition:opacity .18s ease;
}

.gallery-photo-thumb-full{
  position:absolute;
  inset:0;
  object-fit:contain;
  background:#fff;
  opacity:0;
  transition:opacity .18s ease;
}

.gallery-photo-thumb-wrap:hover .gallery-photo-thumb-default{
  opacity:0;
}

.gallery-photo-thumb-wrap:hover .gallery-photo-thumb-full{
  opacity:1;
}

.gallery-photo-badge-stack{
  position:absolute;
  top:10px;
  left:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.gallery-photo-stats{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  font-size:13px;
  font-weight:800;
  color:var(--gallery-soft-text);
  margin:12px 0 10px;
}

.gallery-photo-stats > span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.gallery-empty,
.gallery-empty-inline{
  border:1px dashed var(--gallery-line-strong);
  border-radius:12px;
  background:#fff;
  color:var(--gallery-soft-text);
  padding:18px;
  text-align:center;
  font-size:13px;
  font-weight:700;
}

.gallery-empty{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  
}

@media (max-width: 1180px){
  .gallery-stats-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .gallery-album-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width: 980px){
  .gallery-panel-grid{
    grid-template-columns:1fr;
  }

  .gallery-album-top,
  .gallery-block-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-album-badges{
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .gallery-shell{
    width:min(100%, calc(100% - 28px));
  }

  .gallery-stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .gallery-album-list-title{
    font-size:16px;
  }
}

@media (max-width: 640px){
  .gallery-page{
    padding:22px 0 42px;
  }

  .gallery-form-grid{
    grid-template-columns:1fr;
  }

  .gallery-field-span-2{
    grid-column:auto;
  }

  .gallery-actions-row-compact{
    flex-direction:column;
    align-items:stretch;
  }

  .gallery-actions-row-compact > .gallery-inline-form,
  .gallery-actions-row-compact > .gallery-checkbox-pill,
  .gallery-actions-row-compact > .gallery-btn{
    width:100%;
    flex:1 1 auto;
    margin-top:10px;
  }

  .gallery-btn,
  .gallery-btn-compact{
   gap:2px !important;
  }

  
  .gallery-stats-grid{
    grid-template-columns:1fr;
  }
}
.gallery-inline-head{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.gallery-inline-head .gallery-card-kicker{
  margin:0;
}

.gallery-inline-head .gallery-section-title{
  margin:0;
}
.gallery-upload-form .gallery-btn{
  margin-top:14px !important;
}

/* =========================================
   PHOTO CARD ACTIONS TO BOTTOM
========================================= */

.gallery-photo-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.gallery-photo-card .gallery-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-bottom:10px;
}

.gallery-photo-card .gallery-actions-row-compact{
  margin-top:auto;
  padding-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.gallery-photo-card .gallery-actions-row-compact > :nth-child(1){
  flex:0.9 1 0 !important;
  min-width:0;
}

.gallery-photo-card .gallery-actions-row-compact > :nth-child(2),
.gallery-photo-card .gallery-actions-row-compact > :nth-child(3){
  flex:1.05 1 0 !important;
  min-width:0;
}

.gallery-photo-card .gallery-actions-row-compact > .gallery-inline-form{
  display:flex;
}

.gallery-photo-card .gallery-actions-row-compact .gallery-btn{
  width:100% !important;
  justify-content:center;
}

.gallery-photo-card .gallery-field-align-end{
  align-items:center;
}

.gallery-photo-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
}

.gallery-photo-grid > .gallery-photo-card{
  height:100%;
}

.gallery-album-list-title{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.gallery-album-list-count{
  font-size:10px;
  font-weight:700;
  color:var(--gallery-soft-text);
  text-transform:none;
  letter-spacing:0;
}

.gallery-hero-main{
  text-align:center;
}

.gallery-hero-text{
  margin:0 auto;
}

.gallery-hero-kicker{
  text-align:center;
}

/* ===== HERO SUMMARY IN ONE ROW ===== */

.gallery-hero-card{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
}

.gallery-hero-main{
  width:100%;
  margin-bottom:6px;
}

.gallery-hero-flags{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  margin:0;
}

.gallery-stats-grid{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  width:auto;
  max-width:none;
  margin:0;
}

.gallery-stat-card{
  min-height:34px;
  padding:6px 14px;
  border:1px solid var(--gallery-line);
  border-radius:30px;
  background:#fff;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.gallery-stat-icon{
  display:none;
}

/* ===== HERO SUMMARY VALUE DIFFERENCE ===== */

.gallery-chip{
  gap:6px;
}

.gallery-chip > span:last-child{
  color:var(--gallery-soft-text);
  font-weight:800;
}

.gallery-chip strong{
  color:var(--gallery-text);
  font-weight:900;
  letter-spacing:.2px;
}

.gallery-stat-label{
  display:inline;
  margin:0;
  font-size:11px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  color:var(--gallery-soft-text);
}

.gallery-stat-value{
  display:inline;
  margin:0;
  font-size:11px;
  line-height:1;
  font-weight:900;
  color:var(--gallery-text);
  letter-spacing:.2px;
}



@media (max-width: 1200px){
  .gallery-hero-flags,
  .gallery-stats-grid{
    flex-wrap:wrap;
  }
}

/* MOST VIEWED PROFILES — GALLERY IMAGE SQUARE */
.home-most-viewed-media{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  background:#f8fafc;
  overflow:hidden;
}

.home-most-viewed-media > img:not(.home-membership-badge-img){
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* KÖŞELERİ SIFIRLA (Keskin Köşe) */
.home-directory-card, 
.home-directory-card-media, 
.home-directory-card-media img,
.home-directory-card img {
    border-radius: 0 !important;
}

.phot-dir-search-grid .hb-btn.home-dir-btn,
.home-directory-search-grid .hb-btn.home-dir-btn{
  width: 120px;
  height:40px;
  min-height:40px;
  margin-top:6px;
  padding:0 16px;
  border-radius:30px !important;
  font-size:11px;
  background:#fff !important;
  color:var(--text-main) !important;
  border:1px solid var(--border-light) !important;
  box-shadow:none !important;
  gap:20px !important;
}
.home-directory-search-grid .gallery-input,
.phot-dir-search-grid .gallery-input{
  margin-bottom:8px !important;
}

.home-directory-search-grid .hb-btn.home-dir-btn,
.phot-dir-search-grid .hb-btn.home-dir-btn{
  margin-top:8px !important;
}

.phot-dir-search-grid .hb-btn.home-dir-btn:hover,
.home-directory-search-grid .hb-btn.home-dir-btn:hover{
  background:var(--brand) !important;
  color:#fff !important;
  border-color:var(--brand) !important;
}


.home-directory-block h2 {
    text-align: center !important; /* Başlığı tam ortaya hizalar */
    margin: -5 0 20px 0 !important; /* Sola veya sağa kaymasını önleyip sadece alt boşluk bırakır */
    font-size: 28px;
    color: #8A3F7F;
    font-weight: 900;
}
