/* ===== BASE ===== */
body {
    font-family: 'Montserrat', sans-serif;
    background: #f8f9fa;
    transition: 0.4s ease;
}

/* ===== GOLD THEME ===== */
.text-gold {
    color: #8b2c2c !important;
}

.btn-gold {
    background: linear-gradient(135deg, #8b2c2c, #5a1a1a);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    transition: 0.4s;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #a53b3b, #6b1f1f);
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(139, 44, 44, 0.4);
}

/* ===== NAVBAR ===== */
.premium-nav {
    background: #0d0d0d;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ===== HEADER ===== */
.premium-header {
    padding: 120px 20px;
    color: #fff;
    text-align: center;

    background:
      linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
      url("../img/MSBC2.png"); /* your image */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark mode */
.dark-mode .premium-header {
    background:
      linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
      url("../img/MSBC3.png");
}

/* ===== PLAN CARDS ===== */
.plan-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    transition: 0.6s ease;
    animation: fadeUp 0.9s ease forwards;
}

.plan-card:hover {
    transform: rotateY(10deg) rotateX(6deg) scale(1.07);
}

/* ===== CARD IMAGE ===== */
.plan-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.6s ease;
}

.plan-card:hover img {
    transform: scale(1.15);
}

/* ===== CARD TEXT ===== */
.plan-card h4 {
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== MODAL ===== */
.premium-modal {
    background: radial-gradient(circle at top, #1f1f1f, #0e0e0e);
    color: #fff;
    border-radius: 16px;
    border: 1px solid #7a2a2a;
}

.modal-header {
    border-bottom: 1px solid #7a2a2a;
}

.modal-body img {
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* ===== DARK MODE ===== */
.dark-mode {
    background: #111;
    color: #fff;
}

.dark-mode .plan-card {
    background: #1b1b1b;
}

.dark-mode .plan-card p {
    color: #aaa;
}

.dark-mode .premium-nav {
    background: #000;
}

/* ===== BACK BUTTON ===== */
.btn-outline-warning {
    border: 2px solid #7a2a2a;
    color: #8b2c2c;
    border-radius: 30px;
    transition: 0.4s;
}

.btn-outline-warning:hover {
    background: #7a2a2a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(122, 42, 42, 0.45);
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .premium-header {
        padding: 80px 15px;
    }

    .plan-card img {
        height: 220px;
    }
}

/* ===== MASTER PLAN OVERVIEW CARDS ===== */
.overview-card {
    background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
    border: 1px solid #7a2a2a;
    border-radius: 16px;
    padding: 30px 10px;
    color: #fff;
    font-size: 34px;
    transition: 0.4s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.overview-card h6 {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #d2b0b0;
}

.overview-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, #8b2c2c, #5a1a1a);
    box-shadow: 0 20px 45px rgba(139,44,44,0.5);
}

/* Dark mode support */
.dark-mode .overview-card {
    background: #111;
    border-color: #8b2c2c;
}

/* ===== OVERVIEW ICON CARDS ===== */
.overview-card {
    background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
    border: 1px solid #7a2a2a;
    border-radius: 18px;
    padding: 30px 15px;
    cursor: pointer;
    transition: 0.5s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.overview-card img {
    width: 55px;
    margin-bottom: 12px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.6));
}

.overview-card h6 {
    font-weight: 600;
    color: #d9b1b1;
    font-size: 0.95rem;
}

.overview-card:hover {
    transform: translateY(-12px) scale(1.08);
    background: linear-gradient(135deg, #8b2c2c, #5a1a1a);
    box-shadow: 0 25px 50px rgba(139,44,44,0.6);
}

.fade-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MOBILE FIX (≤768px) ================= */
@media (max-width: 768px) {

  /* ===== NAVBAR ===== */
  .premium-nav .container {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-brand {
    font-size: 18px;
    text-align: center;
  }

  #darkModeToggle {
    width: 100%;
    font-size: 14px;
  }

  /* ===== HEADER ===== */
  .premium-header {
    padding: 70px 15px;
  }

  .premium-header h1 {
    font-size: 28px;
  }

  .premium-header p {
    font-size: 14px;
  }

  /* ===== OVERVIEW GRID ===== */
  .overview-card {
    padding: 20px 10px;
  }

  .overview-card img {
    width: 40px;
  }

  .overview-card h6 {
    font-size: 13px;
  }

  /* ===== PLAN CARDS ===== */
  .plan-card {
    margin-bottom: 20px;
  }

  .plan-card img {
    height: 180px;
  }

  .plan-card h4 {
    font-size: 18px;
  }

  .plan-card p {
    font-size: 13px;
  }

  .btn-gold {
    padding: 8px 18px;
    font-size: 14px;
  }

  /* Disable heavy 3D hover on mobile */
  .plan-card:hover {
    transform: none;
  }

  .plan-card:hover img {
    transform: none;
  }

  /* ===== MODAL ===== */
  .modal-dialog {
    margin: 10px;
  }

  .modal-body img {
    max-height: 300px;
    object-fit: contain;
  }

  .modal-title {
    font-size: 18px;
  }

  /* ===== BACK BUTTON ===== */
  .btn-outline-warning {
    width: 80%;
    font-size: 14px;
  }

  /* ===== SCROLL ANIMATION PERFORMANCE ===== */
  .fade-scroll {
    transform: none;
    opacity: 1;
  }
}