body {
  margin: 0 auto;
  width: 100%;
  max-width: 30rem;
  padding: 0;
  color: #eee;
  position: relative;
}

p { line-height: 1.5; margin: 0; }
h2, h3 { margin: 0; }

.icon { width: 1.5rem; height: 1.5rem; }
a { text-decoration: none; user-select: none; }

/* Overlay */
#modal{
  position:fixed; top:0; left:0;
  width:100%; height:100%;
  z-index:9999;
  display:flex; flex-direction:column; align-items:center;
  opacity:0; visibility:hidden;
  transition:opacity .12s ease-out, top .2s ease-out;
  overflow-y:auto;
  background:rgba(0,0,0,.45);   /* <- bring back the backdrop */
}

/* Close (top-right, above content) */
#close{
  position:sticky; top:0;
  align-self:flex-end;
  padding:1rem; line-height:0; cursor:pointer;
  z-index:1;
}

/* Modal content cards */
#copyView,#qrView,#shiftView{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  width:min(92vw,860px);
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  margin:12px 16px 48px;        /* breathing room & keeps it off the very top */
  padding:16px;
}

/* Shift inputs (keep) */
#shiftView .shiftInput{
  width:100%; max-width:24rem;
  padding:.75rem; border-radius:.5rem;
  border:1px solid #eceff2; background:#fff; color:#111; outline:none;
}

#copyURL {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  padding: 1rem 1.5rem;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

#copyURL span { margin-left: .5rem; }

#qrView h3 { margin: 2rem 2rem 0; }
#qrView p { margin: .5rem 2rem 0; }

#shiftView h3 { margin: 2rem 0 1rem; }
#shiftView p { margin: 0 0 1rem; }
#shiftView .shiftInput {
  width: 100%;
  max-width: 24rem;
  padding: .75rem;
  border-radius: .5rem;
  border: 1px solid #eceff2;
  background: #fff;
  color: #111;
  outline: none;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.headerImgC {
  display: grid;
  overflow: hidden;
}

#cover {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: top center;
}

.logo-wrapper {
  background: rgba(255,255,255,.05);
  padding: .25rem .75rem;
  border-radius: .75rem;
  backdrop-filter: blur(6px);
  display: inline-block;
  margin: 3rem 0 6rem;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

#logo {
  max-height: 6rem;
  user-select: none;
}

/* Toolbar */
#topActions {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
}

#topActions > div { display: flex; }
#topActions a {
  padding: 1rem;
  cursor: pointer;
  line-height: 0;
}

/* Main content */
main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#profilePhoto {
  width: 10rem;
  height: 10rem;
  border-radius: .5rem;
  margin-top: -6rem;
  user-select: none;
}

#cta {
  display: flex;
  align-items: center;
  border-radius: .5rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
#cta .icon { margin-right: .5rem; }

.actions {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.actionsC { width: 33.33%; }

.actionBtn {
  padding: .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.actionBtn a {
  border-radius: .5rem;
  padding: 1rem;
}
.actionBtn p {
  margin: .5rem 0 0;
  font-size: .9rem;
}

.featured {
  display: flex;
  flex-direction: column;
  margin: 2rem 0 0;
  width: 100%;
}
.section {
  font-weight: bold;
  text-align: center;
  font-size: 1.3rem;
  padding: 1rem 0;
}

.media {
  overflow: hidden;
  border-radius: .5rem;
  margin-top: 1rem;
}
.controls {
  padding: 1rem;
  font-size: .9rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.title { font-size: 1rem; font-weight: bold; }

.sub {
  font-size: .9rem;
  margin: .5rem 0 0;
  opacity: .8;
}

.label {
  display: inline-block;
  font-size: 1rem;
  margin: 1rem 0 .5rem;
  border-radius: .5rem;
  letter-spacing: 1px;
  padding: 1rem 1.5rem;
}
.label p { margin: 0; }

/* Buttons */
.btn, .label-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.label-btn p { margin: 0; }

/* Color helpers */
.bg-primary { background: #fe5911; }
.bg-gray { background: #6c757d; }
.bg-github { background: #333; }
.bg-discord { background: #7289da; }
.bg-linkedin { background: #0077b5; }
