@charset "UTF-8";

:root{
  --cz-red:#D60000;
  --cz-red-2:#b80000;

  --cz-bg:#f6f7f9;
  --cz-card:#ffffff;

  --cz-text:#111111;
  --cz-muted:#6b7280;

  --cz-border:#e6e7eb;
  --cz-shadow:0 10px 30px rgba(0,0,0,.06);

  --cz-radius:18px;
  --cz-radius-sm:14px;

  --cz-font:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family:var(--cz-font);
  color:var(--cz-text);
  background:var(--cz-bg);
}

a{ color:var(--cz-red); text-decoration:none; }
a:hover{ text-decoration:underline; }

.cadenza{
  min-height:100vh;
  background:var(--cz-bg);
}

/* Topbar */
.cz-topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--cz-border);
}

.cz-topbar-inner{
  max-width:1200px;
  padding:10px 0px 10px 16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}
.cz-brand{
  margin-right:auto;
}


/* For pages that do not include cz-topbar-inner */
.cz-topbar{
  padding:0px 0px 0px 16px;

  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cz-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:16px;
  color:var(--cz-text);
}

.cz-brand img{
  height:46px;
  width:auto;
  display:block;
}

@media (max-width: 520px){
  .cz-brand img{ height:42px; }
}

.cz-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--cz-border);
  background:#fff;
  box-shadow:var(--cz-shadow);
  cursor:pointer;
  text-decoration:none;
  color:#111;
  font-weight:600;
}

.cz-icon-btn:hover{ background:#fafafa; }

/* Page wrapper */
.cz-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:18px 16px 28px 16px;
}

/* Base card */
.cz-card{
  background:var(--cz-card);
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:16px;
}

.cz-note{
  background:#fff;
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:14px;
}

.cz-note.warn{
  background:#fff4f4;
  border-color:#ffd0d0;
  color:#7f1d1d;
}

.cz-note.info{
  background:#f0f6ff;
  border-color:#cfe2ff;
}

/* Typography */
.cz-h1{
  margin:0 0 6px 0;
  font-size:28px;
  font-weight:600;
}

.cz-h2{
  margin:0 0 6px 0;
  font-size:22px;
  font-weight:600;
}

.cz-h3{
  margin:0;
  font-size:16px;
  font-weight:600;
}

.cz-title{
  font-size:16px;
  font-weight:600;
  color:var(--cz-text);
}

.cz-sub{
  margin:0;
  font-size:13px;
  font-weight:500;
  color:var(--cz-muted);
  line-height:1.4;
}

.cz-label{
  font-size:12px;
  font-weight:600;
  color:#3f3f46;
  margin:0 0 6px 0;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--cz-border);
  border-radius:12px;
  outline:none;
  background:#fff;
  font-size:14px;
  font-weight:500;
  color:#111;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:focus,
textarea:focus{
  border-color:rgba(214,0,0,.35);
  box-shadow:0 0 0 4px rgba(214,0,0,.08);
}

input::placeholder,
textarea::placeholder{
  color:#9ca3af;
  font-weight:500;
}

/* Buttons */
button,
input[type="submit"]{
  font-family:var(--cz-font);
}

.cz-btn,
.cz-btn:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  border:none;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  line-height:1;
  user-select:none;
  white-space:nowrap;
}

.cz-btn svg{ flex:0 0 auto; }

.cz-btn:hover{ text-decoration:none; }

.cz-btn-wide{
  width:100%;
}

.cz-btn-ghost,
.cz-btn.ghost{
  background:#fff;
  color:#111;
  border-color:var(--cz-border);
}

.cz-btn-ghost:hover,
.cz-btn.ghost:hover{
  background:#fafafa;
}

.cz-btn,
.cz-btn.red{
  background:var(--cz-red);
  color:#fff;
  border-color:var(--cz-red);
}

.cz-btn:hover,
.cz-btn.red:hover{
  background:var(--cz-red-2);
  border-color:var(--cz-red-2);
  color:#fff;
}

.cz-btn-green{
  background:#16a34a;
  color:#fff;
  border-color:#16a34a;
}
.cz-btn-green:hover{ filter:brightness(.95); color:#fff; }

.cz-btn-red{
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
}
.cz-btn-red:hover{ filter:brightness(.95); color:#fff; }

.cz-btn-orange{
  background:#f59e0b;
  color:#111;
  border-color:#f59e0b;
}
.cz-btn-orange:hover{ filter:brightness(.95); }

.cz-btn.danger{
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
}

.cz-btn.small{
  padding:10px 12px;
  font-size:13px;
}

/* Layout (User dashboard) */
.cz-layout{
  display:grid;
  grid-template-columns:260px minmax(0, 1fr);
  gap:18px;
  align-items:start;
}

.cz-side{
  position:sticky;
  top:74px;
  align-self:start;
}

.cz-side-nav{
  background:#fff;
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cz-nav,
.cz-side-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  color:#111;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  border:1px solid transparent;
}

.cz-nav:hover,
.cz-side-nav a:hover{
  background:#fafafa;
  border-color:var(--cz-border);
  text-decoration:none;
}

.cz-nav-active,
.cz-side-nav a.active{
  background:rgba(214,0,0,.08);
  border-color:rgba(214,0,0,.20);
  color:var(--cz-red);
}

.cz-side-foot{
  margin-top:10px;
  padding:12px;
  border-top:1px solid var(--cz-border);
  color:var(--cz-muted);
  font-size:13px;
  font-weight:500;
}

.cz-main{
  min-width:0;
}

/* Mobile sidebar toggle support */
@media (max-width: 900px){
  .cz-layout{ grid-template-columns:1fr; }
  .cz-side{ position:relative; top:auto; }

  .cz-side-nav{ display:none; }
  .cz-side-nav.open{ display:flex; }

  .cz-topbar{ justify-content:space-between; }
}

/* Stacks */
.cz-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Admin stats */
.cz-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin:14px 0;
}

@media (max-width: 900px){
  .cz-stats{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px){
  .cz-stats{ grid-template-columns:1fr; }
}

.cz-stat{
  background:#fff;
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:14px;
}

.cz-stat-k{
  font-size:12px;
  font-weight:600;
  color:#3f3f46;
}

.cz-stat-v{
  margin-top:6px;
  font-size:24px;
  font-weight:900;
  color:#111;
}

.cz-stat-s{
  margin-top:6px;
  font-size:13px;
  font-weight:500;
  color:var(--cz-muted);
}

.cz-section{
  background:#fff;
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:16px;
  margin-top:14px;
}

.cz-section-h{
  font-size:16px;
  font-weight:600;
  margin-bottom:10px;
}

/* Admin search */
.cz-search{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:10px 0 14px 0;
}

.cz-search input[type="text"]{
  max-width:360px;
}

.cz-search button{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--cz-border);
  background:#fff;
  font-weight:600;
  cursor:pointer;
}

.cz-search button:hover{ background:#fafafa; }

/* Cards collections */
.cz-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

@media (max-width: 900px){
  .cz-cards{ grid-template-columns:1fr; }
}

.cz-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.cz-row-gap{
  margin-top:12px;
  gap:10px;
  flex-wrap:wrap;
}

.cz-form-inline{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin:0;
}

.cz-limit input[type="number"]{
  width:110px;
}

/* Admin badges and pills */
.cz-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid transparent;
  text-transform:capitalize;
}

.cz-badge-gray{ background:#f3f4f6; border-color:#e5e7eb; color:#111; }
.cz-badge-green{ background:#eaf7ee; border-color:#d9f0e1; color:#0a6a2a; }
.cz-badge-yellow{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.cz-badge-red{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

.cz-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid transparent;
}

.cz-pill-yellow{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }

/* Admin tabs */
.cz-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.cz-tab{
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--cz-border);
  color:#111;
  font-weight:600;
  font-size:12px;
  cursor:pointer;
  text-decoration:none;
}

.cz-tab:hover{ background:#fafafa; text-decoration:none; }

.cz-tab-active,
.cz-tab.active{
  background:rgba(214,0,0,.08);
  border-color:rgba(214,0,0,.22);
  color:var(--cz-red);
}

/* Admin validity row */
.cz-validity{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--cz-border);
}

.cz-validity-row{
  display:grid;
  grid-template-columns:160px 160px 1fr 160px;
  gap:12px;
  align-items:end;
}

@media (max-width: 900px){
  .cz-validity-row{
    grid-template-columns:1fr 1fr;
  }
}

.cz-check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:500;
  color:#111;
}

.cz-validity-btn{
  display:flex;
  justify-content:flex-end;
}

/* Dashboard grids */
.cz-grid{
  display:grid;
  gap:14px;
}

.cz-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

@media (max-width: 700px){
  .cz-grid-2{ grid-template-columns:1fr; }
}

/* User gallery list cards */
.cz-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}

@media (max-width: 1050px){
  .cz-gallery-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px){
  .cz-gallery-grid{ grid-template-columns:1fr; }
}

.cz-gcard{
  padding:0;
  overflow:hidden;
}

.cz-gcover{
  position:relative;
  height:160px;
  background:#fde7ea;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#6b7280;
}

.cz-gcover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cz-gcover svg{
  width:44px;
  height:44px;
  opacity:.85;
}

.cz-gstatus{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
}

.cz-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid transparent;
}

.cz-chip-green{ background:#eaf7ee; border-color:#d9f0e1; color:#0a6a2a; }
.cz-chip-yellow{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.cz-chip-red{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

.cz-gbody{
  padding:16px;
}

.cz-gtitle{
  font-size:16px;
  font-weight:600;
  margin:0 0 8px 0;
}

.cz-gmeta{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--cz-muted);
  font-size:13px;
  font-weight:500;
  margin-bottom:10px;
}

.cz-gmeta svg{
  width:18px;
  height:18px;
}

.cz-gwarn{
  margin:0 0 12px 0;
  border:1px solid var(--cz-border);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  font-weight:600;
}

.cz-gstats{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#374151;
  font-size:13px;
  font-weight:500;
  margin-bottom:14px;
}

.cz-gactions{
  display:flex;
  gap:10px;
}

.cz-gactions .cz-btn,
.cz-gactions .cz-btn-ghost{
  flex:1;
}

/* Media grid in gallery view (owner view) */
.cz-media-top{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.cz-media-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}

@media (max-width: 900px){
  .cz-media-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px){
  .cz-media-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

.cz-media{
  position:relative;
  border-radius:14px;
  background:#f3f4f6;
  overflow:hidden;
  border:1px solid #eef0f3;
  aspect-ratio:1/1;
}

.cz-media img,
.cz-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Guest Event Gallery section */
.cz-section-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.cz-section-title{
  font-weight:600;
  color:#111;
  font-size:14px;
}

.cz-section-sub{
  font-weight:500;
  color:var(--cz-muted);
  font-size:13px;
}

/* Always 3 per row, including mobile */
.cz-gallery-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}

.cz-media-tile{
  position:relative;
  border-radius:14px;
  background:#f3f4f6;
  overflow:hidden;
  aspect-ratio:1/1;
  border:1px solid #eef0f3;
}

.cz-media-tile img,
.cz-media-tile video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cz-tag{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  background:rgba(0,0,0,.75);
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
}

/* QR */
.cz-qr-wrap{
  display:grid;
  grid-template-columns:180px minmax(0, 1fr);
  gap:14px;
  align-items:center;
}

@media (max-width: 700px){
  .cz-qr-wrap{ grid-template-columns:1fr; }
}

.cz-qr-box{
  background:#fff;
  border:1px solid var(--cz-border);
  border-radius:14px;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cz-qr-box img{
  width:160px;
  height:160px;
  display:block;
}

.cz-copy{
  display:flex;
  gap:10px;
  align-items:center;
}

.cz-copy input{ flex:1; }

/* Upload progress */
.cz-progress{
  width:100%;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #f0f0f0;
  background:#f3f4f6;
}

.cz-progress-bar{
  height:100%;
  background:var(--cz-red);
  width:0%;
  transition:width .2s ease;
}
/* Admin: one gallery card per row */
.cz-cards-1{
  grid-template-columns:1fr;
}
.cz-topbar-inner-admin{
  justify-content:space-between;
}

.cz-topbar-inner-admin .cz-brand{
  margin-right:auto;
}

.cz-cards.cz-cards-1{
  grid-template-columns:1fr;
}
.cz-topbar-inner-dash{
  justify-content:flex-start;
}

.cz-topbar-inner-dash .cz-brand{
  margin-right:auto;
}

/* Hide burger on desktop */
@media (min-width: 901px){
  .cz-burger{
    display:none;
  }
}
/* Force dashboard topbar to align left */
.cz-topbar-inner-dash{
  max-width: none;
  margin: 0;
  padding-left: 4px;
  padding-right: 4px;
  justify-content: flex-start;
}
/* Auth pages */
.cz-auth-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
}

.cz-auth-wrap{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.cz-auth-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  margin-bottom:18px;
}

.cz-auth-logo img{
  height:44px;
  width:auto;
  display:block;
}

.cz-auth-head{
  text-align:center;
  margin-bottom:14px;
}

.cz-auth-title{
  margin:0 0 6px 0;
  font-size:34px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--cz-text);
}

.cz-auth-sub{
  margin:0;
  font-size:14px;
  font-weight:500;
  color:var(--cz-muted);
}

.cz-auth-card{
  width:100%;
  background:var(--cz-card);
  border:1px solid var(--cz-border);
  border-radius:var(--cz-radius);
  box-shadow:var(--cz-shadow);
  padding:18px;
}

.cz-auth-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cz-auth-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cz-auth-label{
  font-size:13px;
  font-weight:700;
  color:var(--cz-text);
}

.cz-auth-form input[type="text"],
.cz-auth-form input[type="email"],
.cz-auth-form input[type="password"]{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--cz-border);
  border-radius:12px;
  outline:none;
  background:#fff;
  font-size:14px;
  font-weight:600;
  color:var(--cz-text);
}

.cz-auth-form input:focus{
  border-color:rgba(214,0,0,.35);
  box-shadow:0 0 0 4px rgba(214,0,0,.08);
}

.cz-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:-4px;
}

.cz-auth-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:var(--cz-muted);
}

.cz-auth-check input{
  width:16px;
  height:16px;
}

.cz-auth-btn{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid var(--cz-red);
  background:var(--cz-red);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.cz-auth-btn:hover{
  filter:brightness(.95);
}

.cz-auth-foot{
  margin-top:10px;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:var(--cz-muted);
}

.cz-auth-link{
  color:var(--cz-red);
  font-weight:700;
  text-decoration:none;
}

.cz-auth-link:hover{
  text-decoration:underline;
}

.cz-auth-alert{
  width:100%;
  border-radius:14px;
  padding:12px 12px;
  font-size:13px;
  font-weight:650;
  margin:0 0 12px 0;
  border:1px solid var(--cz-border);
  background:#fff;
  color:var(--cz-text);
}

.cz-auth-alert-warn{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

.cz-auth-alert-error{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#9f1239;
}

.cz-auth-alert-ok{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#065f46;
}

@media (max-width:520px){
  .cz-auth-title{ font-size:28px; }
  .cz-auth-card{ padding:16px; }
}
.cz-support-btn {
  margin-left: auto;
}
.cz-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.cz-card-link:hover {
    background: #fff0f0;
}

.cz-chevron {
    font-size: 24px;
    font-weight: 600;
    color: #d40000;
}
/* Mobile: keep action buttons inside cards */
@media (max-width: 768px) {
  .cz-card { overflow: hidden; }

  /* Any row with items side by side should wrap */
  .cz-row { flex-wrap: wrap; }

  /* Buttons should not exceed card width */
  .cz-btn,
  .cz-icon-btn {
    max-width: 100%;
  }

  /* If your QR section uses a dedicated wrapper, this will help */
  .cz-media-top,
  .cz-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  /* Main action button takes full width */
  .cz-media-top .cz-btn,
  .cz-qr-actions .cz-btn {
    width: 100%;
  }

  /* Copy icon stays aligned and never overflows */
  .cz-qr-actions .cz-icon-btn {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-self: flex-start;
  }

  /* Inputs should also stay inside */
  input,
  select,
  textarea {
    max-width: 100%;
  }
}

