@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root{
  --bg: #0b1020;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --card: rgba(10, 14, 25, 0.55);
  --cardBorder: rgba(255,255,255,0.18);

  --primary: #7c3aed;        /* modern purple */
  --primary2: #22c55e;       /* subtle green accent option */
  --ghost: rgba(255,255,255,0.10);

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Header ---------- */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
  backdrop-filter: blur(10px);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo{
  height: 54px;
  width: auto;
  border-radius: 8px;
}

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

/* ---------- Hero ---------- */

.hero{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 18px 56px; /* account for fixed header */
  overflow: hidden;
}

.hero__bg{
  position: absolute;
  inset: 0;
  background-image: url("https://myclientbox.com/gifs/clouds.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.03);
}

.hero__shade{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(124,58,237,0.22), transparent 55%),
    radial-gradient(900px 450px at 80% 20%, rgba(34,197,94,0.16), transparent 60%),
    linear-gradient(to bottom, rgba(5,8,15,0.30), rgba(5,8,15,0.18));
}

.hero__shade{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(124,58,237,0.22), transparent 55%),
    radial-gradient(900px 450px at 80% 20%, rgba(34,197,94,0.16), transparent 60%),
    linear-gradient(to bottom, rgba(5,8,15,0.10), rgba(5,8,15,0.05));
}


.hero__content{
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* ---------- Card ---------- */

.card{
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.card__top{
  padding: 6px 6px 2px;
}

.card__brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__mini-logo{
  height: 34px;
  width: auto;
  border-radius: 8px;
}

.card__title{
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.card__subtitle{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.card__features{
  display: grid;
  gap: 10px;
  margin: 14px 6px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.feature{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
}

.feature__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}

.card__cta{
  padding: 6px;
  display: grid;
  gap: 10px;
}

.card__pricing{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.price{
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price__hint{
  color: var(--muted);
  font-size: 14px;
}

.card__fineprint{
  margin: 8px 2px 0;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.4;
}

/* Make client boxes use a wider content column */
.page-box .hero__content{
  max-width: 990px;
}

/* (Optional) a little breathing room on large screens */
.page-box .hero{
  padding-left: 18px;
  padding-right: 18px;
}


/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease, background-color .12s ease, border-color .12s ease;
  color: #fff;
}

.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:active{ transform: translateY(0px); filter: brightness(0.98); }

.btn--block{ width: 100%; }

.btn--primary{
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(99,102,241,0.95));
  border-color: rgba(255,255,255,0.14);
}

.btn--secondary{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.btn--ghost{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.icon{
  height: 18px;
  width: 18px;
  object-fit: contain;
}

.badge{
  height: 22px;
  width: auto;
  border-radius: 6px;
}

/* ---------- Footer ---------- */

.site-footer{
  padding: 28px 18px 36px;
  background: #070a12;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner{
  max-width: 980px;
  margin: 0 auto;
}

.footer-title{
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 10px;
}

.footer-links a{
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover{
  text-decoration: underline;
}

.footer-quote{
  margin: 10px 0 12px;
  color: rgba(255,255,255,0.70);
  line-height: 1.5;
}

.footer-social{
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.footer-social a{
  display: inline-flex;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.footer-copy{
  margin: 0;
  color: rgba(255,255,255,0.70);
  line-height: 1.5;
}

.footer-copy a{
  color: rgba(255,255,255,0.88);
}

/* --- Signup form controls --- */
.form{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.form__label{
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  margin: 6px 2px 0;
}

.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  outline: none;
}

.input:focus{
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
}

.form__hint{
  margin: 0 2px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.45;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 6px 0;
}

/* Make warning blocks look good if $warninghtml is plain text or wrapped */
.card .warning,
.card .error,
.card .notice{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.22);
  color: rgba(255,255,255,0.92);
}

.card--wide{
  max-width: 1100px;
}

.popup-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.portraitbox{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.gallerypagepic{
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* --- Client box (content area) --- */
.card--wide{
  max-width: 990px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  color: #222;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);
}

.card--wide h1,
.card--wide h2,
.card--wide h3,
.card--wide p,
.card--wide a{
  color: #222;
}

.card--wide a{
  text-decoration: underline;
}

.card--wide a:hover{
  color: #000;
}

a.brand{
  color: white;
}


.popup-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.portraitbox{
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.gallerypagepic{
  width: 100%;
  height: auto;
  border-radius: 10px;
}





.button{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  cursor: pointer;
  transition: transform .12s ease,
              box-shadow .12s ease,
              filter .12s ease;
}

/* Hover */
.button:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Active / pressed */
.button:active{
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

/* Focus (keyboard accessibility) */
.button:focus{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124,58,237,0.35),
    0 6px 18px rgba(0,0,0,0.25);
}



/* --- Modernised legacy buttonfind --- */
.buttonfind{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;

  padding: 8px 14px;
  min-height: 36px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;

  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);

  cursor: pointer;
  transition: transform .12s ease,
              box-shadow .12s ease,
              filter .12s ease;
}

/* Hover */
.buttonfind:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Active / pressed */
.buttonfind:active{
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

/* Focus (keyboard accessibility) */
.buttonfind:focus{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124,58,237,0.35),
    0 6px 18px rgba(0,0,0,0.25);
}

P.clear{clear:both;}

/* --- Modernised legacy input fields (.select) --- */
/* --- Modernised legacy input fields --- */
.select,
.largeselect,
.smallselect{
  width: 100%;
  padding: 12px 14px;

  font-family: inherit;
  font-size: 16px;

  color: #1f2937;
  background: #ffffff;

  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 14px;

  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.06),
    0 1px 2px rgba(0,0,0,0.05);

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}


/* Focus state */
.select:focus{
  outline: none;
  border-color: #7c3aed;   /* matches primary button */
  box-shadow:
    0 0 0 4px rgba(124,58,237,0.18),
    inset 0 1px 2px rgba(0,0,0,0.06);
}

.select:focus,
.largeselect:focus,
.smallselect:focus{
  outline: none;
  border-color: #7c3aed;
  box-shadow:
    0 0 0 4px rgba(124,58,237,0.18),
    inset 0 1px 2px rgba(0,0,0,0.06);
}

.select:disabled,
.largeselect:disabled,
.smallselect:disabled,
.select[readonly],
.largeselect[readonly],
.smallselect[readonly]{
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.select::placeholder,
.largeselect::placeholder,
.smallselect::placeholder{
  color: #9ca3af;
}

/* --- Client box list grid --- */
.clientboxgrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

/* --- Individual client box tile --- */
.clientboxlink{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.clientboxlink:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

/* Inner layout */
.clientboxlink__inner{
  margin: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.clientboxlink img{
  flex-shrink: 0;
  border-radius: 6px;
}

/* Link */
.clientboxlink a{
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.clientboxlink a:hover{
  text-decoration: underline;
}

/* Meta (file count) */
.clientboxlink__meta{
  margin-left: auto;
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 999px;
}

.clientboxlink a{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  flex: 1;
}

.searchbox{
  margin: 14px 0 18px;
}

.searchbox form{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.searchbox__label{
  font-weight: 700;
  margin-right: 6px;
}


/* --- Admin grid: 2 across desktop, 1 on mobile --- */
.adminfilegrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

/* 1 column on smaller screens */
@media (max-width: 799px){
  .adminfilegrid{
    grid-template-columns: 1fr;
  }
}

/* Admin portrait boxes (works with your existing markup) */
.adminfilegrid .portraitbox{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  padding: 12px;
  overflow: hidden;
}

/* Stop old <p> styling from forcing awkward widths/margins */
.adminfilegrid .portraitbox p{
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Images fill the card nicely */
.adminfilegrid .portraitbox .gallerypagepic{
  width: 100%;
  height: 280px;       /* consistent tile height */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
}

/* Make long filenames/paths wrap instead of overflowing */
.adminfilegrid .portraitbox a{
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Optional: make action links look like buttons */
.adminfilegrid .portraitbox a[href*="delete-file"],
.adminfilegrid .portraitbox a[href*="box-resize-graphic"]{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #f3f4f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.adminfilegrid .portraitbox a[href*="delete-file"]:hover{
  background: #fee2e2;
  border-color: rgba(220,38,38,0.25);
}

.adminfilegrid .portraitbox a[href*="box-resize-graphic"]:hover{
  background: #e0f2fe;
  border-color: rgba(2,132,199,0.25);
}

/* --- Admin action buttons (sign out / manage account) --- */
.admin-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}

.admin-action{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 700;
  font-size: 14px;
  text-decoration: none;

  background: #ffffff;
  color: #1f2937;

  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background-color .12s ease;
}

.admin-action:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Sign out = slightly cautionary */
.admin-action--signout:hover{
  background: #fee2e2;
  border-color: rgba(220,38,38,0.25);
}

/* Manage account = neutral / tools */
.admin-action--manage:hover{
  background: #e0f2fe;
  border-color: rgba(2,132,199,0.25);
}

/* Icons */
.admin-action img{
  display: block;
}


/* ---------- Mobile tweaks ---------- */

@media (max-width: 520px){
  .brand__logo{ height: 44px; }
  .site-header{ padding: 12px 12px; }
  .header-actions{ gap: 8px; }
  .btn{ padding: 10px 12px; }
  .card{ padding: 14px; }
}
