/* === LANDING PAGE === */

/* NAVBAR */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.landing-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-logo span {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #2d8f4e, #68d391); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--txt2); text-decoration: none; transition: all .15s;
}
.nav-links a:hover { background: rgba(56,161,105,.07); color: var(--accent); }
.nav-links .btn-login {
  background: rgba(56,161,105,.08); color: var(--accent); border: 1px solid rgba(56,161,105,.15);
}
.nav-links .btn-login:hover { background: rgba(56,161,105,.15); }
.nav-links .btn-register {
  background: linear-gradient(135deg, #2d8f4e, #38a169); color: #fff;
  box-shadow: 0 2px 8px rgba(45,143,78,.2);
}
.nav-links .btn-register:hover { box-shadow: 0 4px 16px rgba(45,143,78,.3); transform: translateY(-1px); }

/* MOBILE NAV */
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--txt); padding: 8px; }
.nav-burger svg { width: 24px; height: 24px; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 24px 16px; background: #fff; border-bottom: 1px solid var(--border); gap: 4px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--txt2); text-decoration: none; }
.nav-mobile a:hover { background: rgba(56,161,105,.06); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* HERO */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 60px; position: relative; z-index: 1;
}
.hero-inner { max-width: 700px; }
.hero-logo { margin-bottom: 20px; }
.hero-logo-img {
  width: 80px; height: 80px; max-width: 80px; border-radius: 18px;
  object-fit: contain; display: block; margin: 0 auto;
  box-shadow: 0 8px 32px rgba(56,161,105,.22);
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  56% { transform: scale(1); }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 16px;
  color: var(--txt);
}
.hero-accent {
  background: linear-gradient(135deg, #1a8a4a 0%, #38a169 50%, #48bb78 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 900;
}
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.hero p { font-size: 17px; color: var(--txt2); line-height: 1.6; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 28px; font-size: 15px; border-radius: 14px; }

/* FEATURES */
.features {
  padding: 80px 24px; position: relative; z-index: 1;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px; font-weight: 800; color: var(--txt); margin-bottom: 8px;
}
.section-title p { color: var(--muted); font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  padding: 28px 24px; border-radius: 18px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border);
  transition: all .25s; box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.08); background: rgba(255,255,255,.9); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(56,161,105,.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--txt2); line-height: 1.6; }

/* PRICING */
.pricing { padding: 80px 24px; position: relative; z-index: 1; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.price-card {
  padding: 32px 28px; border-radius: 20px;
  background: rgba(255,255,255,.75); border: 1px solid var(--border);
  text-align: center; transition: all .25s; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.price-card.popular {
  border-color: var(--accent); background: rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(45,143,78,.12);
}
.price-card.popular::before {
  content: 'POPULER'; position: absolute; top: 16px; right: -28px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  padding: 4px 32px; transform: rotate(45deg); letter-spacing: 1px;
}
.price-badge {
  display: inline-block; padding: 4px 12px; border-radius: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.price-card h3 { font-size: 20px; font-weight: 800; color: var(--txt); margin-bottom: 8px; }
.price-amount {
  font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px;
}
.price-orig { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.price-period { font-size: 13px; color: var(--txt2); margin-bottom: 20px; }
.price-features { list-style: none; text-align: left; margin-bottom: 24px; }
.price-features li {
  padding: 8px 0; font-size: 13px; color: var(--txt2);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(74,124,89,.06);
}
.price-features li:last-child { border: none; }
.price-features .check { color: var(--ok); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; padding: 14px; font-size: 14px; }

/* FOOTER */
.landing-footer {
  padding: 40px 24px; text-align: center; position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}
.landing-footer p { color: var(--muted); font-size: 12px; }
.landing-footer a { color: var(--accent); text-decoration: none; }

/* GUEST INBOX (full layout) */
.guest-inbox-wrap {
  margin-top: 40px; max-width: 960px; margin-left: auto; margin-right: auto;
  text-align: left; position: relative;
}
.gi-subtitle {
  font-size: 13px; color: var(--txt2); margin-bottom: 16px; text-align: center;
}
.gi-initial {
  text-align: center;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(45,143,78,.15); border-radius: 20px;
  padding: 28px 24px; max-width: 560px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.gi-initial::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2d8f4e, #68d391, #f9a8c9, #fff9c4);
  border-radius: 3px 3px 0 0;
}
.gw-btn { padding: 14px 32px; font-size: 15px; border-radius: 14px; }
.gw-counter, .gw-counter-sm { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }
.gw-counter-sm { margin-top: 0; }

/* Guest control panel */
.gi-cpanel {
  padding: 20px 16px; margin-bottom: 14px; position: relative; overflow: hidden;
  border: 1px solid rgba(45,143,78,.15); border-radius: 20px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .gi-cpanel { padding: 28px; } }
.gi-cpanel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2d8f4e, #68d391, #f9a8c9, #fff9c4);
  border-radius: 3px 3px 0 0; opacity: .8;
}

/* Scoped input/select overrides for landing page context */
.guest-inbox-wrap .iwrap input,
.guest-inbox-wrap .iwrap select {
  background: #fff !important;
  color: var(--txt) !important;
}
.guest-inbox-wrap .ae-box input {
  background: rgba(45, 143, 78, 0.04) !important;
}

/* Active email hint + timer row */
.ae-hint-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; flex-wrap: wrap; gap: 8px;
}
.ae-timer {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(45,143,78,.08); padding: 4px 10px;
  border-radius: 8px; white-space: nowrap;
}
.ae-timer.warning { color: var(--danger, #e53e3e); background: rgba(229,62,62,.08); }

/* Quota bar */
.gi-quota {
  font-size: 11px; color: var(--muted); margin-top: 12px; text-align: center;
}

/* Actions row */
.gi-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 16px;
}
.btn-sm { padding: 8px 14px !important; font-size: 12px !important; border-radius: 10px !important; }

/* Guest inbox panels — override glass for landing context */
.guest-inbox-wrap .inbox-layout { margin-top: 0; }
.guest-inbox-wrap .elist-panel {
  min-height: 300px; max-height: 50vh;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(45,143,78,.15); border-radius: 20px;
}
.guest-inbox-wrap .vpanel {
  min-height: 300px; max-height: 50vh;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(45,143,78,.15); border-radius: 20px;
}

/* Mobile — stack panels */
@media (max-width: 767px) {
  .guest-inbox-wrap { padding: 0 8px; }
  .guest-inbox-wrap .elist-panel { min-height: 200px; max-height: 40vh; }
  .guest-inbox-wrap .vpanel { min-height: 200px; }
  .gi-cpanel { padding: 16px 12px; }
  .gi-actions { margin-top: 12px; }
}

/* GUEST LIMIT MODAL */
.guest-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.guest-modal {
  max-width: 420px; width: 100%; padding: 36px 28px; border-radius: 24px;
  text-align: center; position: relative;
  border: 1px solid var(--border); background: rgba(255,255,255,.95);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.gm-icon { font-size: 48px; margin-bottom: 12px; }
.guest-modal h3 { font-size: 20px; font-weight: 800; color: var(--txt); margin-bottom: 8px; }
.guest-modal p { font-size: 13px; color: var(--txt2); margin-bottom: 16px; line-height: 1.6; }
.guest-modal ul {
  list-style: none; text-align: left; margin-bottom: 20px;
  background: rgba(45,143,78,.04); border-radius: 12px; padding: 12px 16px;
}
.guest-modal ul li { padding: 6px 0; font-size: 13px; color: var(--txt2); }
.gm-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gm-btns .btn { padding: 12px 24px; font-size: 14px; border-radius: 12px; }
.gm-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 18px; color: var(--muted);
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.gm-close:hover { background: rgba(0,0,0,.06); }

/* Spin animation for loading */
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tambah Waktu button */
.btn-w {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important; border: none !important;
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
  transition: all .2s;
}
.btn-w:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
  transform: translateY(-1px);
}
.btn-w:active { transform: translateY(0); }

/* Auto-refresh progress bar animation */
.ptrack {
  height: 3px; background: rgba(45,143,78,.08);
  border-radius: 3px; overflow: hidden; margin: 0;
}
.pbar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #2d8f4e, #68d391, #f59e0b);
  border-radius: 3px;
  transition: width 5s linear;
}

/* Responsive brow (button row) wrap */
@media (max-width: 480px) {
  .brow { flex-wrap: wrap; }
  .brow .btn-w { width: 100%; justify-content: center; margin-top: 4px; }
}

