/* MAL88 Official Portal - Core Modern Stylesheet */
:root {
  --mal-bg-deep: #050e08;
  --mal-bg-surface: #0a1810;
  --mal-bg-card: #0f2419;
  --mal-bg-card-hover: #153323;
  --mal-border: #1a3c2a;
  --mal-border-focus: #00e676;
  --mal-green-primary: #00e676;
  --mal-green-dark: #00a651;
  --mal-green-glow: rgba(0, 230, 118, 0.25);
  --mal-gold: #ffd54f;
  --mal-gold-gradient: linear-gradient(135deg, #ffe082 0%, #ffd54f 50%, #cca028 100%);
  --mal-gold-glow: rgba(255, 213, 79, 0.3);
  --mal-text-main: #f0f7f2;
  --mal-text-muted: #95b3a0;
  --mal-text-subtle: #5f7d6a;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1240px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background-color: var(--mal-bg-deep);
  color: var(--mal-text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 166, 81, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 230, 118, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 14, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mal-border);
  height: var(--header-height);
  display: flex; align-items: center;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-badge { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.8rem; letter-spacing: -0.5px; }
.brand-logo-img { height: 38px; width: auto; object-fit: contain; }
.brand-domain {
  font-size: 0.68rem; font-weight: 700; color: var(--mal-gold);
  background: rgba(255, 213, 79, 0.1); border: 1px solid rgba(255, 213, 79, 0.3);
  padding: 2px 7px; border-radius: var(--radius-sm); text-transform: uppercase;
}
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.95rem; font-weight: 600; color: var(--mal-text-muted); position: relative; padding: 6px 0; }
.nav-link:hover, .nav-link.active { color: #ffffff; }
.nav-link.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--mal-green-primary); box-shadow: 0 0 8px var(--mal-green-primary); border-radius: 2px;
}

/* Actions */
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--mal-border); border-radius: var(--radius-sm); padding: 3px 6px; gap: 4px; }
.lang-btn { font-size: 0.76rem; font-weight: 700; color: var(--mal-text-muted); padding: 2px 6px; border-radius: 4px; }
.lang-btn:hover { color: #ffffff; }
.lang-btn.active { color: #05140a; background: var(--mal-green-primary); font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; padding: 8px 18px; border-radius: var(--radius-md); cursor: pointer; white-space: nowrap; }
.btn-login { color: #ffffff; border: 1px solid var(--mal-border); background: rgba(15, 36, 25, 0.4); }
.btn-login:hover { border-color: var(--mal-green-primary); color: var(--mal-green-primary); background: rgba(0, 230, 118, 0.08); }
.btn-register {
  background: linear-gradient(135deg, var(--mal-green-primary) 0%, var(--mal-green-dark) 100%);
  color: #031308; font-weight: 800; box-shadow: 0 4px 14px var(--mal-green-glow); border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4); }
.btn-gold { background: var(--mal-gold-gradient); color: #120e03; font-weight: 800; box-shadow: 0 4px 14px var(--mal-gold-glow); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--mal-text-main); }

/* Common Hero */
.page-hero { padding: 48px 0 36px; border-bottom: 1px solid rgba(26, 60, 42, 0.5); background: linear-gradient(180deg, rgba(10, 24, 16, 0.6) 0%, transparent 100%); }
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mal-green-primary); background: rgba(0, 230, 118, 0.1);
  padding: 4px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(0, 230, 118, 0.25); margin-bottom: 16px;
}
.page-hero-title { font-size: 2.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.page-hero-desc { font-size: 1.05rem; color: var(--mal-text-muted); max-width: 680px; }

/* Banner Carousel Component */
.carousel-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--mal-border); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.carousel-slide { min-width: 100%; }
.carousel-slide a { display: block; width: 100%; }
.carousel-slide img { width: 100%; height: auto; display: block; object-fit: cover; }
.carousel-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(5, 14, 8, 0.85); border: 1px solid var(--mal-green-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 10;
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot { width: 10px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.25s; }
.carousel-dot.active { width: 28px; background: var(--mal-green-primary); box-shadow: 0 0 8px var(--mal-green-primary); }

/* Content Modules */
.section-padding { padding: 50px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--mal-bg-card); border: 1px solid var(--mal-border); border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition); position: relative; display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--mal-border-focus); transform: translateY(-4px); background: var(--mal-bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.card-banner-img { width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, 0.08); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.card-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; color: #ffffff; }
.card-text { font-size: 0.92rem; color: var(--mal-text-muted); margin-bottom: 16px; flex: 1; }

/* FAQ */
.faq-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-card { background: var(--mal-bg-card); border: 1px solid var(--mal-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-card.active { border-color: var(--mal-green-primary); }
.faq-header { padding: 20px 24px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.faq-arrow { transition: transform var(--transition); color: var(--mal-green-primary); font-size: 0.8rem; }
.faq-card.active .faq-arrow { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 24px; font-size: 0.94rem; color: var(--mal-text-muted); line-height: 1.7; }
.faq-card.active .faq-body { max-height: 300px; padding: 0 24px 20px; }
.status-badge-pending { display: inline-block; font-size: 0.72rem; color: #ff9800; background: rgba(255, 152, 0, 0.12); border: 1px solid rgba(255, 152, 0, 0.3); padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }

/* Footer */
.site-footer { margin-top: auto; background: #030805; border-top: 1px solid var(--mal-border); padding: 50px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { font-size: 0.88rem; color: var(--mal-text-muted); margin: 16px 0 20px; max-width: 340px; }
.footer-col-title { font-size: 1rem; font-weight: 800; color: #ffffff; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-menu { display: flex; flex-direction: column; gap: 12px; }
.footer-menu-link { font-size: 0.88rem; color: var(--mal-text-muted); }
.footer-menu-link:hover { color: var(--mal-green-primary); transform: translateX(4px); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(26, 60, 42, 0.4); display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--mal-text-subtle); }

/* Mobile Floating */
.mobile-nav-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: rgba(5, 14, 8, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--mal-border); z-index: 999; align-items: center; justify-content: space-around; padding: 0 10px; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.72rem; font-weight: 600; color: var(--mal-text-muted); gap: 3px; flex: 1; }
.mobile-nav-item.active { color: var(--mal-green-primary); }
.mobile-nav-item-center { margin-top: -24px; }
.mobile-circle-btn { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--mal-green-primary) 0%, var(--mal-green-dark) 100%); display: flex; align-items: center; justify-content: center; color: #031308; font-size: 1.3rem; box-shadow: 0 6px 16px var(--mal-green-glow); border: 2px solid #ffffff; }

@media (max-width: 992px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero-title { font-size: 1.9rem; }
  .mobile-nav-bar { display: flex; }
  .site-footer { padding-bottom: 90px; }
}
