/* Import Orbitron font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Fade page transition */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, #8B0000 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
}
body.fade-in {
    opacity: 1;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    position: relative;
}
.login-header {
    text-align: center;
    margin-bottom: 10px;
}
.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    width: 175px;
    height: auto;
}

/* Smooth Pulse Animation */
@keyframes pulse {
    0%   { transform: scale(1);   opacity: 1;   }
    20%  { transform: scale(1.15);opacity: 0.95;}
    40%  { transform: scale(0.7); opacity: 0.9; }
    60%  { transform: scale(1.2); opacity: 0.95;}
    80%  { transform: scale(0.85);opacity: 0.97;}
    100% { transform: scale(1);   opacity: 1;   }
}
.login-header .logo img {
    max-width: 100%;
    max-height: 175px;
    height: 150px;
    display: block;
    animation: pulse 5s infinite ease-in-out;
    transform-origin: center;
}

/* Form */
.form-control {
    border-radius: 10px;
    padding: 10px 5px;
    border: 2px solid #e9ecef;
    font-size: 16px;
    transition: all 0.3s ease;
}
@media (max-width: 576px) {
    .form-control {
        padding: 15px 12px;
        font-size: 14px;
    }
}
.form-control:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25);
}
.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
}
.input-group-text i {
    color: #8B0000;
    font-size: 1.1rem;
}

/* Button */
.btn-login {
    background: linear-gradient(45deg, #8B0000, #1a1a1a);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #1a1a1a, #8B0000);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}
.bottom-nav .nav-item {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    flex: 1;
}
.bottom-nav .nav-item i {
    display: block;
    font-size: 1.3rem;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: #ff4d4d;
}

/* Special Staking Now */
.bottom-nav .staking-now {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white !important;
    border-radius: 15px;
    padding: 3px 6px;
    font-weight: bold;
    animation: stakingPulse 1.5s infinite;
}
.bottom-nav .staking-now i {
    font-size: 28px;
    margin-bottom: 5px;
}
.bottom-nav .staking-now:hover {
    background: linear-gradient(45deg, #ff5722, #e91e63);
}
@keyframes stakingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Top Navigation */
.custom-top-nav {
    --nav-height: 55px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: linear-gradient(135deg, #1a1a1a 0%, #8B0000 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}
.custom-top-nav .nav-side {
    display: flex;
    align-items: center;
}
.custom-top-nav .nav-icon {
    color: #fff;
    font-size: 1.3rem;
    padding: 8px;
}
.custom-top-nav .nav-icon:hover {
    color: #ff4d4d;
}
.custom-top-nav .nav-center {
    flex: 1;
    text-align: center;
}
.custom-top-nav .nav-title {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 0 10px;
}

/* Captcha */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-img {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Home content */
.home-content {
  margin-top: 60px;
  padding: 5px;
  margin-bottom: 70px;
}
.home-content .row {
  justify-content: center;
  gap: 15px;
}
.home-content .col-6 {
  flex: 0 0 48%;
  max-width: 48%;
}
@media (min-width: 992px) {
  .home-content {
    margin-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-content .row {
    justify-content: space-between;
    gap: 10px;
  }
  .home-content .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.home-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}
.home-content .col-6 {
  flex: 1 1 calc(50% - 10px);
}

/* Tombol sejajar */
.double-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.double-btn-group .btn-login {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 20px;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .double-btn-group {
    flex-direction: column;
  }
  .double-btn-group .btn-login {
    width: 100%;
    font-size: 13px;
    margin: 3px 0;
  }
}

/* Ikon tombol */
.btn-login i {
  margin-right: 6px;
  font-size: 1rem;
}

/* Angka saldo */
.card .text-muted {
  color: #e13c3c !important;
  font-weight: 500;
}

.icon-main,
.title-main {
    color: #b22222 !important; /* Dark Red, masih nyambung ke tema */
}

