/* UANG4D - Brand Stylesheet */
/* Domain: uang4d.asia */
/* Color Scheme: Royal Purple & Gold */
/* Focus: Togel/4D Lottery */

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --gold: #FBBF24;
  --gold-dark: #D97706;
  --gold-light: #FDE68A;
  --bg-dark: #1A0B2E;
  --bg-darker: #0D0518;
  --bg-card: #241338;
  --bg-card-hover: #2D1A45;
  --text: #E9D5FF;
  --text-muted: #9F8AB5;
  --text-bright: #FFFFFF;
  --border: #3B1D5C;
  --gradient-primary: linear-gradient(135deg, #7C3AED, #A78BFA);
  --gradient-gold: linear-gradient(135deg, #FBBF24, #F59E0B);
  --gradient-hero: linear-gradient(135deg, #1A0B2E 0%, #2D1A45 50%, #1A0B2E 100%);
  --shadow-card: 0 4px 20px rgba(124, 58, 237, 0.08);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(13, 5, 24, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 44px;
  width: auto;
}

.navbar .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-light) !important;
  background: rgba(124, 58, 237, 0.1);
}

.navbar .nav-link.btn-login {
  background: var(--gradient-primary);
  color: var(--text-bright) !important;
  font-weight: 700;
  padding: 0.5rem 1.5rem !important;
  border-radius: var(--radius-sm);
}

.navbar .nav-link.btn-login:hover {
  background: var(--gradient-gold);
  color: var(--bg-dark) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--gradient-hero);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .gold-text {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-bright);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary-custom:hover {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gold-custom {
  background: var(--gradient-gold);
  border: none;
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-gold-custom:hover {
  background: var(--primary);
  color: var(--text-bright);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--text-bright);
}

/* ===== CARDS ===== */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
}

.row > [class*="col-"] > .card-custom,
.row > [class*="col-"] > .game-card,
.row > [class*="col-"] > .blog-card,
.row > [class*="col-"] > .pasaran-card,
.row > [class*="col-"] > .prediksi-card {
  min-height: 100%;
}

.d-flex.flex-column > .card-custom,
.d-flex.flex-column > .game-card,
.d-flex.flex-column > .blog-card {
  min-height: auto !important;
}

.card-custom:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-custom .card-title {
  color: var(--text-bright);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card-custom .card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== PASARAN CARDS (Togel Markets) ===== */
.pasaran-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.pasaran-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pasaran-card .pasaran-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
}

.pasaran-card .pasaran-header h3 {
  color: var(--text-bright);
  margin: 0;
  font-size: 1.3rem;
}

.pasaran-card .pasaran-body {
  padding: 1.5rem;
}

.pasaran-card .pasaran-time {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pasaran-card .pasaran-prize {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== PREDIKSI CARDS ===== */
.prediksi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.prediksi-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.prediksi-card .prediksi-market {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.prediksi-card .prediksi-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.prediksi-card .prediksi-numbers {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.prediksi-card .prediksi-num {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
}

/* ===== KELUARAN TABLE ===== */
.keluaran-table {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.keluaran-table table {
  margin-bottom: 0;
}

.keluaran-table thead {
  background: var(--bg-darker);
}

.keluaran-table th {
  color: var(--primary-light) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary) !important;
}

.keluaran-table td {
  color: var(--text) !important;
  border-color: var(--border) !important;
  vertical-align: middle;
}

.keluaran-table .keluaran-num {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
}

.keluaran-table tbody tr:hover {
  background: var(--bg-card-hover) !important;
}

/* ===== GAME CARDS ===== */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.game-card .game-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-darker);
}

.game-card .game-body {
  padding: 1rem 1.2rem;
}

.game-card .game-title {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.game-card .game-provider {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===== SECTIONS ===== */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title .highlight {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===== PROMO CARDS ===== */
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.promo-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.promo-card .promo-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
  text-align: center;
}

.promo-card .promo-header h3 {
  color: var(--text-bright);
  margin: 0;
  font-size: 1.4rem;
}

.promo-card .promo-body {
  padding: 1.5rem;
}

.promo-card .promo-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  margin: 1rem 0;
}

/* ===== FAQ ===== */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--bg-card);
  color: var(--text-bright) !important;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
  background: var(--bg-card-hover);
  color: var(--primary-light) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.accordion-button::after {
  filter: invert(1) brightness(0.8);
}

.accordion-body {
  color: var(--text-muted);
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
main {
  display: block;
  min-height: calc(100vh - 80px - 300px);
  position: relative;
  z-index: 1;
}

main::after {
  content: '';
  display: table;
  clear: both;
}


.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 3rem 0 4rem; /* Increased bottom padding to accommodate floating bar */
  clear: both;
  display: block;
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: 50px;
}

/* ===== FLOATING BONUS BAR ===== */
.floating-bonus-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 11, 46, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-bright);
  padding: 12px 0;
  z-index: 1060;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
  text-align: center;
}
.bonus-text {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 15px;
  display: inline-block;
  vertical-align: middle;
}
.btn-daftar-flash {
  background: var(--gradient-gold);
  color: var(--bg-darker) !important;
  padding: 6px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition);
  animation: flash-btn 1.5s infinite;
  border: 2px solid transparent;
}
.btn-daftar-flash:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--gold);
}
@keyframes flash-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0px var(--gold); }
  50% { transform: scale(1.05); box-shadow: 0 0 15px var(--gold); }
}

.footer h5 {
  color: var(--primary-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer .footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer .footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== STATS COUNTER ===== */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-box .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
}

.stat-box .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ===== BLOG ===== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.blog-card .blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .blog-body {
  padding: 1.5rem;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card .blog-meta .tag {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.blog-card .blog-title {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.blog-card .blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
}

.breadcrumb-custom .breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--primary-light);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* ===== CONTENT AREA ===== */
.content-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.content-area h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-area h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.content-area h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.content-area p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-area ul, .content-area ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-area li {
  margin-bottom: 0.5rem;
}

.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ===== SYAIR BOX ===== */
.syair-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.syair-box .syair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.syair-box .syair-market {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
}

.syair-box .syair-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.syair-box .syair-content {
  color: var(--text);
  font-style: italic;
  line-height: 2;
  white-space: pre-line;
}

.syair-box .syair-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.syair-box .syair-num {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
}

/* ===== 404 PAGE ===== */
.error-404 {
  text-align: center;
  padding: 5rem 0;
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-404 .error-text {
  font-size: 1.5rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

/* ===== LOGIN/REGISTER FORM ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 450px;
  margin: 0 auto;
}

.form-card .form-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-card .form-label {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-card .form-control {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  color: var(--text) !important;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
}

.form-card .form-control:focus {
  background: var(--bg-darker);
  border-color: var(--primary);
  color: var(--text) !important;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

.form-card .form-control::placeholder {
  color: var(--text-muted);
}

/* ===== BENEFIT CARDS (register sidebar) ===== */
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
}

.benefit-card .benefit-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.benefit-card .benefit-title {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 600;
  margin: 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  margin-right: 0.5rem;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--text-bright);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .error-404 .error-code {
    font-size: 5rem;
  }
  .content-area {
    padding: 1.5rem;
  }
}

/* ===== CRITICAL: Bootstrap text color override ===== */
p { color: var(--text) !important; }
.text-body, .text-dark, .text-secondary { color: var(--text) !important; }
.text-muted, .form-text { color: var(--text-muted) !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}