:root{
  --asg-bg:#061f33;
  --asg-bg2:#031523;
  --asg-fluo:#dfff00;
  --asg-text:#ffffff;
  --asg-card:#ffffff;
  --asg-muted:#53616d;
  --asg-dark:#061f33;
  --asg-border:rgba(223,255,0,.45);
  --asg-soft:#f4f8fa;
  --asg-line:#dce5ea;
  --asg-good:#147a38;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:linear-gradient(180deg,var(--asg-bg) 0%,var(--asg-bg2) 100%);
  color:var(--asg-text);
  min-height:100vh;
}

.asg-page{
  max-width:980px;
  margin:0 auto;
  padding:32px 16px 54px;
}

.asg-top{
  margin-bottom:24px;
}

.asg-back{
  display:inline-block;
  color:var(--asg-fluo);
  text-decoration:none;
  font-weight:800;
  margin-bottom:22px;
}

.asg-back:visited{
  color:var(--asg-fluo);
}

.asg-back:hover{
  color:#ffffff;
}

.asg-hero{
  border:1px solid var(--asg-border);
  background:rgba(223,255,0,.08);
  border-radius:24px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.asg-badge{
  display:inline-block;
  background:var(--asg-fluo);
  color:var(--asg-dark);
  padding:7px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:14px;
}

h1{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.1;
  color:var(--asg-fluo);
  text-transform:uppercase;
}

.asg-hero p{
  margin:0;
  color:#ffffff;
  font-size:18px;
  line-height:1.55;
  font-weight:600;
}

.asg-intro{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(223,255,0,.30);
  color:#ffffff;
  line-height:1.65;
}

.asg-intro strong{
  color:var(--asg-fluo);
  font-size:17px;
}

.asg-intro p{
  margin:8px 0 0;
  color:#ffffff;
}

.asg-tool{
  margin-top:24px;
  background:var(--asg-card);
  color:var(--asg-dark);
  border-radius:24px;
  padding:26px;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  border-top:7px solid var(--asg-fluo);
}

label{
  display:block;
  font-weight:900;
  margin:14px 0 8px;
  color:var(--asg-dark);
}

input[type="number"]{
  width:100%;
  border:2px solid #d8e1e6;
  border-radius:14px;
  padding:14px;
  font-size:16px;
  color:var(--asg-dark);
  background:#ffffff;
  outline:none;
}

input[type="number"]:focus{
  border-color:var(--asg-fluo);
  box-shadow:0 0 0 4px rgba(223,255,0,.25);
}

small{
  display:block;
  margin-top:7px;
  color:var(--asg-muted);
  font-size:13px;
  font-weight:800;
  line-height:1.4;
}

.asg-warning{
  border-left:6px solid var(--asg-fluo);
  background:#fffbe8;
  padding:14px;
  border-radius:12px;
  line-height:1.55;
  color:var(--asg-dark);
}

.asg-settings{
  display:grid;
  grid-template-columns:minmax(200px,280px) 1fr;
  gap:18px;
  align-items:end;
  margin-top:18px;
}

.asg-check{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  margin:14px 0 0;
  padding:12px 14px;
  border:1px solid var(--asg-line);
  border-radius:14px;
  background:var(--asg-soft);
  cursor:pointer;
}

.asg-check:hover{
  border-color:var(--asg-fluo);
  background:#fbfdea;
}

.asg-check input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--asg-dark);
  flex:0 0 auto;
}

.asg-check span{
  color:var(--asg-dark);
  font-weight:900;
  line-height:1.4;
}

.asg-section-title{
  margin:30px 0 8px;
  color:var(--asg-dark);
  font-size:22px;
  line-height:1.25;
}

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

.usage-card{
  padding:16px;
  background:var(--asg-soft);
  border:1px solid var(--asg-line);
  border-radius:16px;
}

.usage-card label{
  min-height:42px;
  margin:0 0 9px;
  line-height:1.35;
}

.asg-extra-box{
  margin-top:18px;
  padding:16px;
  background:#ffffff;
  border:1px solid var(--asg-line);
  border-radius:16px;
}

.asg-extra-box label{
  margin-top:0;
}

.asg-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

button{
  border:0;
  cursor:pointer;
  background:var(--asg-dark);
  color:var(--asg-fluo);
  padding:13px 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
  display:inline-block;
  transition:filter .2s ease,transform .2s ease;
}

button.secondary{
  background:#e9eef2;
  color:var(--asg-dark);
}

button:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.asg-result{
  margin-top:20px;
  border:1px solid var(--asg-line);
  background:var(--asg-soft);
  border-radius:18px;
  padding:18px;
  color:var(--asg-dark);
  line-height:1.55;
}

.asg-result h2,
.asg-result h3{
  margin-top:0;
  color:var(--asg-dark);
}

.asg-result-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin:14px 0 18px;
}

.asg-result-card{
  background:#ffffff;
  border:1px solid var(--asg-line);
  border-radius:16px;
  padding:14px;
}

.asg-result-card b{
  display:block;
  color:var(--asg-dark);
  font-size:25px;
  line-height:1.15;
}

.asg-result-card span{
  display:block;
  margin-top:5px;
  color:var(--asg-muted);
  font-size:13px;
  font-weight:900;
}

.asg-plan{
  margin:16px 0;
  padding:14px;
  border-left:6px solid var(--asg-fluo);
  border-radius:12px;
  background:#ffffff;
}

.asg-plan strong{
  color:var(--asg-good);
}

.asg-table-wrap{
  overflow-x:auto;
}

.asg-breakdown{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  background:#ffffff;
}

.asg-breakdown th,
.asg-breakdown td{
  padding:10px;
  border:1px solid var(--asg-line);
  text-align:left;
  vertical-align:top;
}

.asg-breakdown th{
  color:var(--asg-dark);
  background:#eef4f6;
  font-weight:900;
}

.asg-breakdown td:last-child,
.asg-breakdown th:last-child{
  text-align:right;
}

.asg-small{
  color:var(--asg-muted);
  font-size:14px;
  line-height:1.5;
}

.asg-note{
  margin-top:24px;
  padding:22px;
  border-radius:18px;
  background:rgba(223,255,0,.10);
  border:1px solid rgba(223,255,0,.35);
  color:#ffffff;
  line-height:1.6;
}

.asg-note > strong{
  color:var(--asg-fluo);
}

.asg-social-buttons{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
}

.asg-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:13px 18px;
  border-radius:14px;
  background:#dfff00;
  color:#06131d !important;
  font-weight:800;
  line-height:1;
  text-decoration:none !important;
  border:1px solid rgba(223,255,0,.8);
  box-shadow:0 0 18px rgba(223,255,0,.25);
  transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.asg-social-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
  flex:0 0 auto;
}

.asg-social-btn:visited{
  color:#06131d !important;
}

.asg-social-btn:hover{
  background:#ffffff;
  color:#06131d !important;
  box-shadow:0 0 22px rgba(255,255,255,.25);
  transform:translateY(-1px);
}

.asg-review-box{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(223,255,0,.25);
}

.asg-review-text{
  margin:0 0 14px;
  color:#ffffff;
  line-height:1.6;
}

.asg-review-text strong{
  color:#deff00;
}

.asg-review-stars{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:6px;
  margin:0 0 18px;
}

.asg-review-stars span{
  display:inline-block;
  color:#deff00;
  font-size:23px;
  line-height:1;
  text-shadow:0 0 8px rgba(222,255,0,.22);
}

.google-review-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:12px 18px;
  border-radius:14px;
  background:#ffffff;
  color:#d93025 !important;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  text-decoration:none !important;
  border:1px solid #d8d8d8;
  box-shadow:0 4px 14px rgba(0,0,0,.16);
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.google-review-btn:visited{
  color:#d93025 !important;
}

.google-review-btn:hover{
  background:#f5f5f5;
  color:#c5221f !important;
  border-color:#cfcfcf;
  box-shadow:0 6px 18px rgba(0,0,0,.20);
  transform:translateY(-1px);
}

.google-review-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.google-review-icon svg{
  display:block;
  width:21px;
  height:21px;
}

.asg-assistance{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  color:#ffffff;
  line-height:1.6;
}

.asg-assistance strong{
  color:var(--asg-fluo);
}

@media(max-width:700px){
  .asg-page{
    padding:22px 13px 44px;
  }

  .asg-hero,
  .asg-tool{
    padding:20px;
  }

  h1{
    font-size:29px;
  }

  .asg-hero p{
    font-size:16px;
  }

  .asg-settings{
    grid-template-columns:1fr;
    gap:4px;
  }

  .asg-check{
    margin-top:4px;
  }

  .usage-card label{
    min-height:auto;
  }

  .asg-actions button{
    width:100%;
    text-align:center;
  }

  .asg-breakdown{
    font-size:14px;
  }
}

@media(max-width:600px){
  .asg-social-buttons{
    align-items:stretch;
  }

  .asg-social-btn,
  .google-review-btn{
    width:100%;
  }
}

/* Calcolatore Hash File */
.hash-dropzone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:14px;
  padding:28px 18px;
  border:2px dashed #b8c6ce;
  border-radius:18px;
  background:var(--asg-soft);
  color:var(--asg-dark);
  text-align:center;
  cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease,transform .2s ease;
}

.hash-dropzone:hover,
.hash-dropzone:focus,
.hash-dropzone.dragover{
  border-color:var(--asg-fluo);
  background:#fbfdea;
  outline:none;
  transform:translateY(-1px);
}

.hash-dropzone > strong{
  font-size:18px;
  color:var(--asg-dark);
}

.hash-dropzone > span{
  color:var(--asg-muted);
  font-weight:800;
}

.hash-drop-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:var(--asg-dark);
  color:var(--asg-fluo);
  font-size:30px;
  font-weight:900;
  line-height:1;
}

.hash-file-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:15px;
  border:1px solid var(--asg-line);
  border-radius:16px;
  background:#ffffff;
}

.hash-file-info > div{
  min-width:0;
}

.hash-file-info strong,
.hash-file-info span{
  display:block;
}

.hash-file-info strong{
  overflow:hidden;
  color:var(--asg-dark);
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hash-file-info span{
  margin-top:4px;
  color:var(--asg-muted);
  font-size:13px;
  font-weight:800;
}

.hash-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.hash-option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-height:96px;
  margin:0;
  padding:16px;
  border:1px solid var(--asg-line);
  border-radius:16px;
  background:var(--asg-soft);
  cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease;
}

.hash-option:hover{
  border-color:var(--asg-fluo);
  background:#fbfdea;
}

.hash-option input{
  width:19px;
  height:19px;
  margin:2px 0 0;
  accent-color:var(--asg-dark);
  flex:0 0 auto;
}

.hash-option span,
.hash-option strong,
.hash-option small{
  display:block;
}

.hash-option strong{
  color:var(--asg-dark);
  font-size:17px;
}

.hash-option small{
  margin-top:5px;
}

.hash-status{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:#eef4f6;
  color:var(--asg-dark);
  font-weight:900;
  text-align:center;
}

.hash-results{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}

.hash-result-row{
  padding:15px;
  border:1px solid var(--asg-line);
  border-radius:16px;
  background:#ffffff;
}

.hash-result-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.hash-result-head strong{
  color:var(--asg-dark);
}

.hash-copy-btn{
  padding:8px 13px;
  font-size:13px;
}

.hash-code{
  display:block;
  overflow-wrap:anywhere;
  padding:13px;
  border-radius:12px;
  background:var(--asg-dark);
  color:var(--asg-fluo);
  font-family:Consolas,"Courier New",monospace;
  font-size:14px;
  line-height:1.55;
}

.hash-compare-box{
  margin-top:24px;
  padding-top:2px;
  border-top:1px solid var(--asg-line);
}

.hash-compare-box textarea{
  width:100%;
  min-height:110px;
  border:2px solid #d8e1e6;
  border-radius:14px;
  padding:14px;
  color:var(--asg-dark);
  background:#ffffff;
  font-family:Consolas,"Courier New",monospace;
  font-size:15px;
  line-height:1.5;
  resize:vertical;
  outline:none;
}

.hash-compare-box textarea:focus{
  border-color:var(--asg-fluo);
  box-shadow:0 0 0 4px rgba(223,255,0,.25);
}

.hash-compare-result{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  font-weight:900;
  line-height:1.5;
}

.hash-compare-result.match{
  border:1px solid #b8dfc3;
  background:#e8f5ec;
  color:#147a38;
}

.hash-compare-result.no-match{
  border:1px solid #edc6c3;
  background:#fff0ef;
  color:#a1261e;
}

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

  .hash-file-info{
    align-items:stretch;
    flex-direction:column;
  }

  .hash-file-info button{
    width:100%;
  }

  .hash-result-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .hash-copy-btn{
    width:100%;
  }
}
