/* Global Reset & Variables */
:root {
  --bg-dark: #0f172a;
  --bg-slate: #1e293b;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --text-offwhite: #f1f5f9;
  --text-gray: #cbd5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-offwhite);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

a {
  color: var(--text-offwhite);
  text-decoration: none;
  margin-left: 1.5rem;
}

/* Header */
.header {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--accent-violet), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-box input {
  background: var(--bg-slate);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  color: var(--text-offwhite);
  width: 240px;
}

.btn-premium {
  background: var(--accent-violet);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Main */
.main { padding: 0rem 0; }

.featured-slider {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
}

.featured-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 60%;
}

.slider-content h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.slider-content p { margin-bottom: 1rem; color: var(--text-gray); }
.btn-violet {
  background: var(--accent-violet);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.comic-grid h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  background: var(--bg-slate);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.grid-item:hover { transform: translateY(-5px); }

.grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.grid-item h4 {
  padding: 0.75rem;
  font-size: 0.95rem;
}

/* Profile */
.profile-main {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
}

.profile-card {
  text-align: center;
  background: var(--bg-slate);
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.badge {
  background: #334155;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.profile-actions {
  margin-top: 1.5rem;
}

.profile-actions button {
  margin: 0.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-violet);
  color: var(--accent-violet);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: var(--bg-slate);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: var(--text-offwhite);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent-violet);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Pricing */
.pricing-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-slate);
  border-radius: 14px;
  padding: 2rem;
  width: 280px;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--accent-violet);
  position: relative;
}

.best {
  background: var(--accent-violet);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.price {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: var(--accent-cyan);
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-card li {
  padding: 0.4rem 0;
  color: var(--text-gray);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-slate);
  padding: 2rem;
  border-radius: 14px;
  width: 90%;
  max-width: 500px;
}

.payment-options label {
  display: block;
  margin: 0.5rem 0;
  cursor: pointer;
}

.hidden { display: none !important; }

/* Reader */
.reader-mode {
  background: #0a0f1d;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.reader-content {
  padding: 2rem;
  text-align: center;
}

.reader-content img {
  max-width: 800px;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.btn-download {
  background: var(--accent-violet);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Halaman Legal & Kontak */
.legal-page,
.contact-page {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1,
.contact-page h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-offwhite);
}

.last-updated {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--accent-violet);
}

.legal-page p,
.legal-page li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.contact-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
}

.contact-cta a {
  color: var(--accent-violet);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-details li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.contact-details a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.social-links a {
  color: var(--text-offwhite);
  text-decoration: none;
  margin-right: 0.5rem;
}

.social-links a:hover {
  color: var(--accent-violet);
}

.contact-form-box .input-group input,
.contact-form-box .input-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--text-offwhite);
  font-size: 1rem;
}

.contact-form-box .input-group textarea {
  resize: vertical;
}

/* Responsif */
@media (max-width: 600px) {
  .legal-page,
  .contact-page {
    padding: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Styles */
.footer {
  background: var(--bg-slate);
  color: var(--text-gray);
  margin-top: 4rem;
  padding: 3rem 0 1rem;
  border-top: 1px solid #334155;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-offwhite);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-offwhite);
  font-size: 1.4rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-violet);
}

.contact-info,
.quick-links {
  list-style: none;
}

.contact-info li,
.quick-links li {
  margin-bottom: 0.6rem;
}

.quick-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.quick-links a:hover {
  color: var(--accent-violet);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}