.gradient-title {
background: linear-gradient(90deg, #1e1e2d, #3a3a5c);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hover-card {
transition: all 0.3s ease;
background-color: #fff;
}

.hover-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== News Feed Timeline ===== */
.news-feed {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 6px;
}

.news-feed::-webkit-scrollbar {
  width: 5px;
}

.news-feed::-webkit-scrollbar-track {
  background: transparent;
}

.news-feed::-webkit-scrollbar-thumb {
  background: #d4d4da;
  border-radius: 5px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
  background: #b5264a;
}

.news-feed-item {
  display: flex;
  gap: 16px;
  position: relative;
}

.news-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 18px;
  padding-top: 5px;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b5264a;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(181, 38, 74, 0.15);
}

.news-line {
  width: 2px;
  flex: 1;
  background: #e8e8ef;
  margin-top: 4px;
}

.news-body {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.news-body:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: rgba(181, 38, 74, 0.15);
}

.news-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #b5264a;
  background: rgba(181, 38, 74, 0.08);
  border: 1px solid rgba(181, 38, 74, 0.15);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

.news-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5264a;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.news-content p {
  margin-bottom: 0;
}

.news-content {
  font-size: 0.95rem;
  line-height: 1.5;
}



/* ===== Podium Cards ===== */
.podium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podium-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #ccc;
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.podium-card.gold {
  border-left-color: #FFD700;
  background: rgba(255, 215, 0, 0.03);
}

.podium-card.silver {
  border-left-color: #C0C0C0;
}

.podium-card.bronze {
  border-left-color: #CD7F32;
}

.podium-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  background: #ccc;
}

.podium-rank.gold {
  background: linear-gradient(135deg, #FFD700, #E6B800);
  box-shadow: 0 3px 8px rgba(255, 215, 0, 0.35);
}

.podium-rank.silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  box-shadow: 0 3px 8px rgba(192, 192, 192, 0.35);
}

.podium-rank.bronze {
  background: linear-gradient(135deg, #CD7F32, #A65E1F);
  box-shadow: 0 3px 8px rgba(205, 127, 50, 0.35);
}

.podium-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.podium-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e1e2d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-subtitle {
  font-size: 0.78rem;
  color: #999;
  font-weight: 500;
}

.podium-usage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  min-width: 70px;
}

.podium-count {
  font-weight: 700;
  font-size: 1rem;
  color: #1e1e2d;
}

.podium-bar {
  width: 60px;
  height: 4px;
  background: #f0f0f5;
  border-radius: 2px;
  overflow: hidden;
}

.podium-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.podium-bar-fill.gold {
  background: linear-gradient(90deg, #FFD700, #FFEC8B);
}

.podium-bar-fill.silver {
  background: linear-gradient(90deg, #C0C0C0, #E6E6E6);
}

.podium-bar-fill.bronze {
  background: linear-gradient(90deg, #CD7F32, #e2b179);
}

.stat-box {
      display: flex;
      align-items: center;
      gap: 14px;
      background: #fff;
      border-radius: 14px;
      padding: 22px 24px;
      margin-bottom: 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
      border: 1px solid #e8e8ef;
      transition: all 0.25s ease;
      overflow: hidden;
      min-height: 0;
      height: 100%;
    }

    .stat-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    }

    .stat-icon {
      width: 52px;
      height: 52px;
      min-width: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      font-size: 1.4rem;
      color: #333;
      flex-shrink: 0;
    }

    .bg-soft-primary {
      background: rgba(232, 64, 106, 0.08);
      color: #b5264a;
    }

    .bg-soft-danger {
      background: rgba(231, 76, 60, 0.08);
      color: #e74c3c;
    }

    .bg-soft-success {
      background: rgba(46, 204, 113, 0.08);
      color: #27ae60;
    }

    .bg-soft-warning {
      background: rgba(245, 166, 35, 0.08);
      color: #e09400;
    }

    .stat-label {
      font-size: 0.92rem;
      color: #6c757d;
      margin-bottom: 3px;
    }

    .stat-value {
      font-size: 1.55rem;
      font-weight: 600;
      color: #212529;
      margin: 0;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .text-success {
      color: #2ecc71 !important;
    }

    @media (max-width: 768px) {
      .stat-box {
        padding: 16px;
        gap: 12px;
      }

      .stat-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
      }

      .stat-value {
        font-size: 1.25rem;
      }

      .stat-label {
        font-size: 0.8rem;
      }
    }

/* ===== Mobile Podium ===== */
@media (max-width: 576px) {
  .podium-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .podium-rank {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .podium-bar {
    width: 46px;
  }

  .news-feed-item {
    gap: 10px;
  }
}





.features-list {
  margin-top: 1rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease-in-out;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ===== Chart Cards ===== */
.chart-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 0;
}

.chart-card .card-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
  padding: 16px 24px;
}

.chart-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e2d;
}

.chart-card .card-body {
  padding: 20px 24px;
}

/* ===== Chart Filter Buttons ===== */
.chart-filter-group {
  display: flex;
  gap: 6px;
}

.chart-filter-btn {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #e0e0e8;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-filter-btn:hover {
  border-color: #b5264a;
  color: #b5264a;
}

.chart-filter-btn.active {
  background: #b5264a;
  border-color: #b5264a;
  color: #fff;
}

/* ===== Detection Rate Card ===== */
.detection-rate-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8e8ef;
  transition: all 0.25s ease;
  height: 100%;
}

.detection-rate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* ===== Country Legend ===== */
.country-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.country-legend::-webkit-scrollbar {
  width: 4px;
}

.country-legend::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.country-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.country-legend-item .country-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.country-legend-item .country-name {
  flex: 0 0 auto;
  min-width: 70px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.country-legend-item .country-bar-wrap {
  flex: 1;
  height: 6px;
  background: #f0f0f5;
  border-radius: 3px;
  overflow: hidden;
}

.country-legend-item .country-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.country-legend-item .country-count {
  font-weight: 600;
  color: #1e1e2d;
  min-width: 36px;
  text-align: right;
}

.country-legend-item .country-pct {
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 42px;
  text-align: right;
}

@media (max-width: 768px) {
  .chart-card .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chart-filter-group {
    width: 100%;
    justify-content: flex-start;
  }

  .country-legend-item .country-name {
    max-width: 60px;
    min-width: 50px;
  }
}


/* ===================================================
   HOSTING PAGE STYLES
   =================================================== */

/* ===== Purchase Section — Hero Card ===== */
.hosting-hero {
  border: 1px solid #e8e8ef;
  background: #fff;
}

.hosting-hero-right {
  position: relative;
  background: linear-gradient(135deg, #b5264a 0%, #d94068 100%);
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hosting-hero-right-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hosting-hero-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hosting-stat-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pattern Overlay — subtle dots */
.hosting-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* ===== Feature Mini-Cards ===== */
.hosting-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f0f0f5;
  background: #fafafa;
  transition: all 0.25s ease;
}

.hosting-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border-color: rgba(181, 38, 74, 0.15);
}

.hosting-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(181,38,74,0.1), rgba(217,64,104,0.15));
  color: #b5264a;
}

/* ===== Price Display ===== */
.hosting-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hosting-price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: #b5264a;
  line-height: 1;
}


/* ===== Hosting Account Cards ===== */
.hosting-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #ccc;
  border-radius: 12px;
  padding: 0;
  transition: all 0.25s ease;
  overflow: hidden;
}

.hosting-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hosting-card.status-active {
  border-left-color: #2ecc71;
}

.hosting-card.status-flagged {
  border-left-color: #f39c12;
}

.hosting-card.status-suspended {
  border-left-color: #e74c3c;
}

.hosting-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f5;
  flex-wrap: wrap;
  gap: 8px;
}

.hosting-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
}

.hosting-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f5;
  background: #fafafa;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Stat label + value pair ===== */
.hosting-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hosting-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e1e2d;
}

/* ===== Empty State ===== */
.hosting-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 2px dashed #e0e0e8;
  border-radius: 14px;
}

.hosting-empty i {
  font-size: 3rem;
  color: #ccc;
  display: block;
  margin-bottom: 12px;
}

/* ===== Modal Gradient Header ===== */
.modal-header-gradient {
  background: linear-gradient(135deg, #b5264a, #d94068);
  border-bottom: none;
  padding: 18px 24px;
}

.modal-header-gradient .modal-title {
  color: #fff;
}

.modal-header-gradient .btn-close-white {
  filter: brightness(0) invert(1);
}

/* ===== Under Attack Toggle (hosting cards) ===== */
.attack-toggle.form-switch {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: fit-content !important;
}

.attack-toggle i {
  width: 2.75rem !important;
  height: 1.375rem !important;
  border-radius: 0.6875rem !important;
}

.attack-toggle i::after {
  width: 1rem !important;
  height: 0.95rem !important;
  border-radius: 0.5rem !important;
  transform: translate3d(3px, 2px, 0) !important;
}

.attack-toggle input:checked + i {
  border-color: #2ecc71 !important;
}

.attack-toggle input:checked + i::after {
  background-color: #2ecc71 !important;
  transform: translate3d(23px, 2px, 0) !important;
}

/* ===== Hosting Mobile Responsive ===== */
@media (max-width: 992px) {
  .hosting-hero-right {
    min-height: 300px;
  }

  .hosting-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hosting-card-header {
    padding: 12px 16px;
  }

  .hosting-card-body {
    padding: 12px 16px;
  }

  .hosting-card-footer {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===================================================
   PROFILE / SETTINGS PAGE STYLES
   =================================================== */

/* ===== Profile Accent Outline Button ===== */
.btn-outline-primary-accent {
  color: #b5264a;
  border-color: #b5264a;
  background: transparent;
}

.btn-outline-primary-accent:hover,
.btn-outline-primary-accent:focus,
.btn-outline-primary-accent:active {
  background: #b5264a;
  border-color: #b5264a;
  color: #fff !important;
}

/* ===== Profile Hero Banner ===== */
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #b5264a;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  flex-wrap: wrap;
}

.profile-hero:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.profile-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(181, 38, 74, 0.15);
  flex-shrink: 0;
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e1e2d;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.profile-badge-status.verified {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.profile-badge-status.suspended {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.2);
}

.profile-badge-status.unverified {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.profile-badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  color: #b5264a;
  background: rgba(181, 38, 74, 0.08);
  border: 1px solid rgba(181, 38, 74, 0.15);
  white-space: nowrap;
}

.profile-hero-sub {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.profile-hero-sub i {
  margin-right: 4px;
}

/* ===== Profile Info Cards (stat-style) ===== */
.profile-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8e8ef;
  transition: all 0.25s ease;
}

.profile-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.profile-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.profile-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-info-label {
  font-size: 0.82rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 2px;
}

.profile-info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e1e2d;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Profile Section Card ===== */
.profile-section-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #b5264a;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
}

.profile-section-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f5;
}

.profile-section-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e2d;
  margin: 0;
}

.profile-section-header i {
  font-size: 1.2rem;
  color: #b5264a;
}

.profile-section-body {
  padding: 24px;
}

/* ===== License Code Display ===== */
.license-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f8fc;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88rem;
  color: #1e1e2d;
  word-break: break-all;
  line-height: 1.5;
}

.license-code code {
  flex: 1;
  color: #1e1e2d;
  font-size: 0.88rem;
  word-break: break-all;
}

/* ===== Profile History Table ===== */
.profile-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.profile-history-table thead th {
  background: #f8f8fc;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8ef;
}

.profile-history-table tbody tr {
  transition: background 0.2s ease;
}

.profile-history-table tbody tr:hover {
  background: rgba(181, 38, 74, 0.02);
}

.profile-history-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f5;
  font-size: 0.88rem;
  color: #333;
  vertical-align: middle;
}

.profile-history-table tbody tr:last-child td {
  border-bottom: none;
}

.profile-index-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f5;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Profile Password Form ===== */
.profile-password-form {
  max-width: 450px;
}

/* ===== Count Badge ===== */
.profile-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(181, 38, 74, 0.08);
  color: #b5264a;
}

/* ===== Profile Empty State ===== */
.profile-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.profile-empty-state i {
  font-size: 2.5rem;
  color: #d4d4da;
  display: block;
  margin-bottom: 12px;
}

/* ===== Profile Mobile Responsive ===== */
@media (max-width: 768px) {
  .profile-hero {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .profile-hero-name {
    font-size: 1.15rem;
  }

  .profile-info-card {
    padding: 16px 18px;
  }

  .profile-section-body {
    padding: 18px;
  }

  .profile-password-form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .profile-hero {
    padding: 16px;
  }

  .profile-hero-avatar {
    width: 52px;
    height: 52px;
  }

  .profile-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .profile-section-header {
    padding: 14px 18px;
  }

  .profile-section-body {
    padding: 14px 18px;
  }

  .profile-history-table thead th,
  .profile-history-table tbody td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}


/* ===================================================
   SHORTENER & REDIRECTION PAGE STYLES
   =================================================== */

/* ===== Page Hero Card ===== */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #b5264a;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  flex-wrap: wrap;
}

.page-hero:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.page-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.page-hero-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(181, 38, 74, 0.08);
  color: #b5264a;
}

.page-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1e2d;
  margin: 0;
}

.page-hero-sub {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.page-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Stat Pill (compact inline stat) ===== */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.stat-pill i {
  font-size: 1rem;
}

/* ===== Section Card (reusable) ===== */
.section-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-left: 4px solid #b5264a;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
}

.section-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.section-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f5;
}

.section-card-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e2d;
  margin: 0;
}

.section-card-header i {
  font-size: 1.2rem;
  color: #b5264a;
}

.section-card-body {
  padding: 24px;
}

/* ===== Styled Data Table ===== */
/* ===== DataTables wrapper spacing inside p-0 cards ===== */
.section-card-body.p-0 .dataTables_wrapper {
  padding: 16px 20px;
}

.section-card-body.p-0 .dataTables_wrapper table.styled-table {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px) !important;
}

.section-card-body.p-0 .dataTables_wrapper .dataTables_info,
.section-card-body.p-0 .dataTables_wrapper .dataTables_paginate {
  padding-top: 12px;
}

.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.styled-table thead th {
  background: #f8f8fc;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 24px;
  border-bottom: 1px solid #e8e8ef;
  white-space: nowrap;
}

.styled-table tbody tr {
  transition: background 0.2s ease;
}

.styled-table tbody tr:hover {
  background: rgba(181, 38, 74, 0.02);
}

.styled-table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f5;
  font-size: 0.88rem;
  color: #333;
  vertical-align: middle;
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Price Highlight ===== */
.price-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(181, 38, 74, 0.06);
  border: 1px solid rgba(181, 38, 74, 0.12);
}

.price-highlight .price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b5264a;
}

.price-highlight .price-period {
  font-size: 0.82rem;
  color: #6c757d;
}

/* ===== Accent Button Solid ===== */
.btn-accent {
  background: #b5264a !important;
  border-color: #b5264a !important;
  color: #fff !important;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
  background: #9a1f3e !important;
  border-color: #9a1f3e !important;
  color: #fff !important;
}

.btn-accent i,
.btn-accent .mdi {
  color: #fff !important;
}

/* ===== Empty State (generic) ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-state i {
  font-size: 2.5rem;
  color: #d4d4da;
  display: block;
  margin-bottom: 12px;
}

/* ===== Shortener / Redirect Mobile ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 20px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .page-hero-left {
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-hero-right {
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-card-body {
    padding: 18px;
  }
}

@media (max-width: 576px) {
  .page-hero {
    padding: 16px;
    gap: 12px;
  }

  .page-hero-left {
    flex: 1 1 100%;
  }

  .page-hero-right {
    width: 100%;
    justify-content: flex-start;
  }

  .page-hero-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .section-card-header {
    padding: 14px 18px;
  }

  .section-card-body {
    padding: 14px 18px;
  }

  .styled-table thead th,
  .styled-table tbody td {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
}

/* ===== Analytics: Top Blocked IPs ===== */
.top-ips-list {
  max-height: 380px;
  overflow-y: auto;
}

.top-ip-item {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.top-ip-item:last-child {
  border-bottom: none;
}

.top-ip-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  font-size: 0.7rem;
  font-weight: 700;
}

.top-ip-addr {
  font-size: 0.8rem;
  color: #1e1e2d;
  background: rgba(30,30,45,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.top-ip-bar {
  height: 4px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.top-ip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #b5264a);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ===== Analytics: Recent Blocked Table ===== */
.recent-blocked-table thead th {
  background: #fafafa;
  color: #999;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-bottom: 2px solid #f0f0f0;
}

.recent-blocked-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  font-size: 0.85rem;
  border-bottom: 1px solid #f8f8f8;
}

.recent-blocked-table tbody tr:hover {
  background: rgba(181,38,74,0.02);
}

.recent-blocked-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(181,38,74,0.08);
  color: #b5264a;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===== Global Mobile Responsive ===== */

/* -- Tables: ensure all tables scroll on mobile -- */
@media (max-width: 768px) {
  .card-body > table,
  .section-card-body > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table td, .table th {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  /* DataTables wrapper inside cards */
  .dataTables_wrapper {
    overflow-x: hidden;
  }

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length {
    margin-bottom: 10px;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 200px;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    font-size: 0.8rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 8px !important;
    font-size: 0.78rem;
  }

  /* Chart cards */
  .chart-card {
    min-height: auto;
  }

  /* Section card headers */
  .section-card-header h5 {
    font-size: 0.95rem;
  }

  /* Stat pills in hero */
  .stat-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  /* Alert banners */
  .alert {
    font-size: 0.85rem;
    padding: 12px 16px;
  }

  /* Form controls - touch friendly */
  .form-control, .form-select {
    min-height: 42px;
    font-size: 0.9rem;
  }

  /* Price highlight */
  .price-highlight {
    padding: 6px 12px;
  }

  .price-highlight .price-amount {
    font-size: 1.1rem;
  }

  .price-highlight .price-period {
    font-size: 0.75rem;
  }

  /* Recent blocked table */
  .recent-blocked-table td,
  .recent-blocked-table th {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

@media (max-width: 576px) {
  /* Container fluid padding */
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Section cards */
  .section-card-body {
    padding: 14px 12px;
  }

  .section-card-header {
    padding: 12px 14px;
  }

  /* Stat boxes on dashboard */
  .stat-box {
    padding: 12px;
    gap: 10px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  /* Buttons */
  .btn {
    font-size: 0.85rem;
  }

  .btn-accent {
    padding: 8px 16px;
  }

  /* Country legend items */
  .country-legend-item {
    padding: 6px 0;
  }

  .country-legend-item .country-name {
    min-width: 50px;
    font-size: 0.75rem;
  }

  .country-legend-item .country-count {
    font-size: 0.72rem;
    min-width: 28px;
  }

  .country-legend-item .country-pct {
    font-size: 0.72rem;
  }

  /* Top blocked IPs */
  .top-ip-addr {
    font-size: 0.78rem;
  }

  /* Section card body p-0 with DataTables */
  .section-card-body.p-0 .dataTables_wrapper {
    padding: 12px 14px;
  }

  .section-card-body.p-0 .dataTables_wrapper table.styled-table {
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px) !important;
  }
}