/* SOCFYP ADS — FULL-SCREEN MOBILE HOMEPAGE */

body:has(.sf-home) {
  margin:0;
  overflow:hidden;
  background:#050d19;
  color:#eaf4ff;
}

.sf-home,
.sf-home * {
  box-sizing:border-box;
}

.sf-home {
  height:100dvh;
  max-height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:
    env(safe-area-inset-top)
    12px
    env(safe-area-inset-bottom);
  background:
    radial-gradient(
      ellipse at 85% 12%,
      #17244d 0,
      transparent 42%
    ),
    linear-gradient(
      160deg,
      #06111e,
      #07101e 72%,
      #09152b
    );
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.sf-home a {
  text-decoration:none;
  color:inherit;
}

/* HEADER */

.sf-head {
  height:60px;
  flex:0 0 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.sf-brand {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.sf-logo {
  width:42px;
  height:42px;
  border-radius:13px;
  background:linear-gradient(145deg,#6af5dc,#06bda9);
  color:#062a2d;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:26px;
  box-shadow:0 5px 22px #18e7d43a;
}

.sf-brand strong {
  display:block;
  font-size:17px;
  line-height:1.2;
}

.sf-brand small {
  display:block;
  color:#90a9c4;
  font-size:10px;
  margin-top:2px;
}

.sf-head-actions {
  display:flex;
  align-items:center;
  gap:8px;
}

.sf-sign {
  border:1px solid #4a6781;
  border-radius:11px;
  padding:9px 11px;
  font-size:12px;
  font-weight:750;
}

.sf-user {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid #3b5677;
  color:#69f4db!important;
  font-size:20px;
}

/* SCREEN CONTENT */

.sf-content {
  flex:1 1 auto;
  min-height:0;
  width:100%;
  max-width:560px;
  margin:0 auto;
  display:grid;
  grid-template-rows:
    minmax(108px,1.18fr)
    minmax(96px,1fr)
    minmax(142px,1.5fr)
    minmax(57px,.58fr)
    minmax(45px,.48fr);
  gap:10px;
  padding:5px 0 9px;
}

/* HERO */

.sf-hero {
  position:relative;
  overflow:hidden;
  border:1px solid #187c9b;
  border-radius:20px;
  background:
    radial-gradient(
      circle at 88% 92%,
      #5822b8a8,
      transparent 47%
    ),
    linear-gradient(
      125deg,
      #06323b,
      #10183c 70%
    );
  display:flex;
  align-items:center;
  padding:14px 16px;
}

.sf-hero-text {
  position:relative;
  z-index:1;
  max-width:79%;
}

.sf-label {
  display:inline-block;
  padding:4px 8px;
  border:1px solid #2ea3bb;
  border-radius:25px;
  background:#00577763;
  color:#b5fbff;
  font-size:9px;
  font-weight:750;
  letter-spacing:.03em;
}

.sf-hero h1 {
  font-size:clamp(21px,5.4vw,32px);
  line-height:1.08;
  letter-spacing:-.045em;
  margin:9px 0 7px;
}

.sf-hero h1 em {
  font-style:normal;
  color:#49edcb;
}

.sf-hero p {
  font-size:clamp(10px,2.9vw,13px);
  line-height:1.3;
  color:#c1d5eb;
  margin:0;
}

.sf-hero-icon {
  position:absolute;
  right:6%;
  top:17%;
  font-size:clamp(55px,19vw,104px);
  line-height:1;
  transform:rotate(-22deg);
  color:#c558fa;
  text-shadow:
    0 0 15px #a420f9,
    3px 3px 0 #1febeb;
  opacity:.75;
}

.sf-orb {
  position:absolute;
  right:3%;
  top:5%;
  width:34%;
  aspect-ratio:1;
  border-radius:100%;
  border:2px solid #963fff70;
  box-shadow:0 0 30px #9c33f45a;
}

/* ADVERTISER AND PUBLISHER */

.sf-roles {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  min-height:0;
}

.sf-role {
  position:relative;
  border-radius:18px;
  padding:12px 13px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
  border:1px solid #49bdf5;
  box-shadow:inset 0 0 27px #00a6ff12;
}

.sf-advertiser {
  background:linear-gradient(145deg,#065f9b,#09306d);
}

.sf-publisher {
  background:linear-gradient(145deg,#6c1eae,#371066);
  border-color:#bc5eff;
}

.sf-role-icon {
  color:#a7f5ff;
  font-size:29px;
  line-height:1.15;
  margin-bottom:4px;
}

.sf-role strong {
  font-size:clamp(14px,4vw,20px);
  line-height:1.2;
}

.sf-role small {
  color:#e2edff;
  font-size:clamp(9px,2.65vw,12px);
  margin-top:4px;
}

.sf-go {
  position:absolute;
  right:10px;
  top:45%;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  background:#ffffff2b;
  border-radius:50%;
  font-size:23px;
}

/* 8-FEATURE GRID */

.sf-shortcuts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:1fr 1fr;
  gap:8px;
  min-height:0;
}

.sf-shortcuts a {
  min-width:0;
  min-height:0;
  border:1px solid #244e65;
  background:linear-gradient(145deg,#0a2938,#09172e);
  border-radius:15px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}

.sf-shortcuts a>span {
  font-size:clamp(22px,6vw,30px);
  font-weight:750;
  line-height:1;
}

.sf-shortcuts small {
  font-size:clamp(8px,2.2vw,11px);
  font-weight:700;
  text-align:center;
  line-height:1.1;
}

.sf-shortcuts .mint {color:#48f5c5}
.sf-shortcuts .pink {color:#ff77ba}
.sf-shortcuts .yellow {color:#ffd458}
.sf-shortcuts .cyan {color:#6adfff}
.sf-shortcuts .violet {color:#d68aff}

/* COMPACT INFORMATION BAR */

.sf-status {
  min-height:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-radius:15px;
  border:1px solid #23728c;
  background:
    linear-gradient(95deg,#073745,#101a36 65%,#231445);
  padding:5px;
}

.sf-status>div {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  gap:1px;
}

.sf-status>div+div {
  border-left:1px solid #47728b;
}

.sf-status span {
  font-size:15px;
  color:#4ff1d2;
  line-height:1;
}

.sf-status strong {
  font-size:clamp(9px,2.5vw,12px);
  line-height:1.1;
}

.sf-status small {
  font-size:clamp(8px,2vw,10px);
  color:#aac0d8;
}

/* MAIN ACTION */

.sf-cta {
  background:linear-gradient(90deg,#56f4d3,#19d2af);
  color:#002d31!important;
  border-radius:14px;
  font-size:clamp(13px,3.5vw,17px);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-shadow:0 0 18px #0ed4b22b;
}

.sf-cta span {
  font-size:21px;
}

/* BOTTOM APP NAVIGATION */

.sf-nav {
  width:100%;
  max-width:560px;
  margin:0 auto;
  height:65px;
  flex:0 0 65px;
  background:linear-gradient(160deg,#082436,#0b1027);
  border:1px solid #176181;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:space-around;
}

.sf-nav a {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  justify-content:center;
  min-width:0;
  padding:5px;
}

.sf-nav a span {
  font-size:22px;
  line-height:1;
  color:#b7c8e1;
}

.sf-nav a small {
  color:#c7d6e7;
  font-size:9px;
}

.sf-nav a.active span,
.sf-nav a.active small {
  color:#33f5d9;
}

/* INFORMATION PANELS */

.sf-modal {
  position:fixed;
  inset:0;
  z-index:999;
  background:#020712df;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.sf-modal:target,
.sf-modal.sf-legal-open {
  display:flex;
}

.sf-dialog {
  position:relative;
  width:min(430px,100%);
  padding:24px;
  background:#101c34;
  border:1px solid #427b99;
  border-radius:20px;
  box-shadow:0 30px 90px #0008;
}

.sf-dialog h2 {
  font-size:22px;
  margin:0 0 12px;
}

.sf-dialog p {
  color:#b5c8df;
  font-size:14px;
  line-height:1.6;
}

.sf-close {
  position:absolute;
  right:16px;
  top:8px;
  color:#fff;
  font-size:30px;
  text-decoration:none;
}

.sf-dialog-btn {
  display:inline-block;
  margin-top:10px;
  padding:12px 16px;
  background:#34dfbe;
  border-radius:12px;
  color:#052525;
  text-decoration:none;
  font-weight:800;
}

/* RESPONSIVE SIZES */

@media(min-width:650px) {
  .sf-home {
    padding-left:24px;
    padding-right:24px;
  }
}

@media(max-height:690px) {
  .sf-head {
    height:52px;
    flex-basis:52px;
  }

  .sf-content {
    gap:6px;
    grid-template-rows:
      minmax(89px,1.2fr)
      minmax(75px,1fr)
      minmax(112px,1.5fr)
      minmax(47px,.6fr)
      minmax(37px,.48fr);
  }

  .sf-nav {
    height:53px;
    flex-basis:53px;
  }

  .sf-hero {
    padding:9px 12px;
  }

  .sf-hero h1 {
    margin:5px 0;
    font-size:clamp(18px,5vw,27px);
  }

  .sf-role {
    padding:8px 10px;
  }

  .sf-role-icon {
    font-size:22px;
  }

  .sf-shortcuts a {
    gap:2px;
  }

  .sf-shortcuts a>span {
    font-size:21px;
  }
}

@media(max-height:525px) {
  body:has(.sf-home) {
    overflow:auto;
  }

  .sf-home {
    min-height:525px;
    max-height:none;
    height:auto;
  }
}
