* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #fbfbfb;
  color: #111827;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 0;
}

.header-content {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -2px;
  color: #111827;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.btn-upload-header {
  background-color: #111827;
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upload-header:hover {
  background-color: #1f2937;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 896px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-subtitle-text {
  color: #6b7280;
  display: block;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
}

.btn-upload-main {
  background-color: #111827;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 180px;
  margin-top: 1rem;
}

.btn-upload-main:hover {
  background-color: #1f2937;
  transform: scale(1.05);
}

.btn-upload-main:active {
  transform: scale(0.95);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  z-index: 10;
}

.footer-content {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #4b5563;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content,
  .footer-content {
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .header-content,
  .footer-content {
    padding: 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 1.25rem 0;
  }

  .header-content,
  .footer-content {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3rem;
  }
}

#uploadLoading{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:20px;
}

.loader-ring{
    width:22px;
    height:22px;
    border:3px solid #ddd;
    border-top:3px solid #111;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

.upload-popup{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(6px);
    z-index:9999;
}

.upload-popup-card{
    min-width:220px;
    background:#fff;
    border-radius:20px;
    padding:22px 28px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    gap:14px;
    font-family:'Poppins',sans-serif;
    font-size:17px;
    font-weight:600;
    animation:popupFade .22s ease;
}

.upload-popup-text{
    white-space:nowrap;
}

.loader-ring{
    width:24px;
    height:24px;
    border:3px solid #e5e7eb;
    border-top:3px solid #111;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

@keyframes popupFade{
    from{
        opacity:0;
        transform:translateY(12px) scale(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.page-modal{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.65);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:20px;
}

.page-modal-card{
    width:100%;
    max-width:760px;
    max-height:85vh;
    overflow:auto;
    background:#fff;
    border-radius:24px;
    padding:34px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    position:relative;
    font-family:'Poppins',sans-serif;
}

.page-modal-title{
    font-size:30px;
    font-weight:700;
    margin-bottom:18px;
}

.page-modal-content{
    font-size:15px;
    line-height:1.9;
    color:#444;
}

.page-close-btn{
    position:absolute;
    top:18px;
    right:18px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    font-size:24px;
    cursor:pointer;
    font-weight:600;
}

.report-send-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 32px;
    background:#111827;
    color:#fff;
    font-weight:600;
    font-size:15px;
    text-decoration:none;
    border-radius:999px;
    transition:all .2s ease;
    transform:scale(1);
    user-select:none;
}

.report-send-btn:hover{
    background:#1f2937;
    transform:scale(1.05);
}

.report-send-btn:active{
    transform:scale(0.95);
}

/* === AGE GATE FIX === */
.age-gate{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none; /* penting */
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.85);
    z-index:9999;
}

/* BOX */
.age-box{
    background:#111;
    color:#fff;
    padding:25px 20px;
    border-radius:12px;
    width:90%;
    max-width:340px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.5);
    animation:fadeScale .3s ease;
}

/* TEXT */
.age-box h2{
    margin-bottom:10px;
}

.age-box p{
    font-size:14px;
    color:#ccc;
    margin-bottom:15px;
}

/* BUTTONS */
.age-btns{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.age-btns button{
    padding:10px;
    border:none;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
}

/* YES BUTTON */
.age-btns button:first-child{
    background:#4f46e5;
    color:#fff;
}

/* NO BUTTON */
.age-btns button:last-child{
    background:#222;
    color:#aaa;
}

/* ANIMATION */
@keyframes fadeScale{
    from{
        opacity:0;
        transform:scale(0.9);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}
