/* ==========================================================================
   FLAMEBOOSTS - Complemento Oficial para FlameHosting
   Mantiene el 100% de la fidelidad visual de MegaHosting-FlameHosting
   ========================================================================== */

/* Discord Nitro Float Badge en Avatar */
.discord-avatar-wrap {
  position: relative;
  display: inline-block;
}

.discord-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--bs-primary);
  object-fit: cover;
}

.discord-avatar-wrap.boosting .discord-avatar-img {
  border-color: #f47fff;
  box-shadow: 0 0 16px rgba(244, 127, 255, 0.45);
}

.nitro-float-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #f47fff 0%, #ec4899 50%, #5865F2 100%);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111111;
  font-size: 12px;
}

/* Indicadores de Estado de Servidor */
.server-status-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.server-status-pill.active {
  background: rgba(0, 183, 98, 0.15);
  color: #00b762;
  border: 1px solid rgba(0, 183, 98, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background: #00b762;
  box-shadow: 0 0 8px #00b762;
}

/* Botón Discord */
.btn-discord {
  background: #5865F2 !important;
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 2px !important;
  border-bottom-right-radius: 15px !important;
  border-bottom-left-radius: 2px !important;
  transition: all 0.25s ease;
}

.btn-discord:hover {
  background: #4752c4 !important;
  color: #fff !important;
}

.btn-nitro {
  background: linear-gradient(135deg, #ff7b00 0%, #ec4899 50%, #5865F2 100%) !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 2px !important;
  border-bottom-right-radius: 15px !important;
  border-bottom-left-radius: 2px !important;
  transition: all 0.25s ease;
}

.btn-nitro:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

/* Selección interactiva de tarjeta */
.select-option-card {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.select-option-card:hover {
  border-color: var(--bs-primary) !important;
  transform: translateY(-3px);
}

.select-option-card.selected {
  border-color: var(--bs-primary) !important;
  background: rgba(255, 123, 0, 0.05) !important;
  box-shadow: 0 0 20px rgba(255, 123, 0, 0.2);
}

.select-option-card input[type="radio"] {
  position: absolute;
  top: 15px;
  right: 15px;
  accent-color: var(--bs-primary);
}

/* Toast Container */
#flame-toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   STATUS PAGE COMPONENT STYLES
   ========================================================================== */
.service-icon-box {
  width: 50px;
  height: 50px;
  border-top-left-radius: 14px;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.service-icon-box.online {
  background: rgba(22, 201, 114, 0.12);
  color: #16c972;
  border: 1px solid rgba(22, 201, 114, 0.35);
  box-shadow: 0 0 12px rgba(22, 201, 114, 0.2);
}
.service-icon-box.offline {
  background: rgba(240, 62, 90, 0.12);
  color: #f03e5a;
  border: 1px solid rgba(240, 62, 90, 0.35);
  box-shadow: 0 0 12px rgba(240, 62, 90, 0.2);
}

/* Tarjeta de servicio con acentos laterales en los lados */
.status-service-card {
  border-top-left-radius: 32px !important;
  border-bottom-right-radius: 32px !important;
  border-top-right-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  background: #111111 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.status-service-card.card-online {
  border-left: 3px solid #16c972 !important;
  border-right: 1px solid rgba(22, 201, 114, 0.25) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), -3px 0 16px rgba(22, 201, 114, 0.12) !important;
}

.status-service-card.card-online:hover {
  border-color: rgba(22, 201, 114, 0.4) !important;
  border-left-color: #25e786 !important;
  border-right-color: rgba(22, 201, 114, 0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), -6px 0 25px rgba(22, 201, 114, 0.25), 6px 0 20px rgba(22, 201, 114, 0.15) !important;
}

.status-service-card.card-offline {
  border-left: 3px solid #f03e5a !important;
  border-right: 1px solid rgba(240, 62, 90, 0.25) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), -3px 0 16px rgba(240, 62, 90, 0.15) !important;
}

.status-service-card.card-offline:hover {
  border-color: rgba(240, 62, 90, 0.5) !important;
  border-left-color: #ff4767 !important;
  border-right-color: rgba(240, 62, 90, 0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), -6px 0 25px rgba(240, 62, 90, 0.35) !important;
}

.metric-box {
  background: rgba(0, 0, 0, 0.4);
  border-top-left-radius: 14px;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.metric-box:hover {
  background: rgba(255, 123, 0, 0.05);
  border-color: rgba(255, 123, 0, 0.2);
}

.history-bar-container {
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
}

.history-bar-pill {
  height: 100%;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.history-bar-pill:hover {
  transform: scaleY(1.3);
}

.bar-online {
  background: #16c972;
  opacity: 0.85;
}

.bar-online:hover {
  background: #25e786;
  opacity: 1;
  box-shadow: 0 0 10px rgba(22, 201, 114, 0.8);
}

.bar-offline {
  background: #f03e5a;
  opacity: 0.9;
}

.bar-offline:hover {
  background: #ff4767;
  opacity: 1;
  box-shadow: 0 0 10px rgba(240, 62, 90, 0.8);
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}


/* Sistema visual compartido con FlameHosting Status */
:root {
  --bs-primary: #ff7b00;
  --bs-primary-rgb: 255, 123, 0;
  --bs-dark: #111111;
  --bs-dark-rgb: 17, 17, 17;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));

  --flame-core: #ff7b00;
  --flame-hot: #f55d1e;
  --flame-bright: #ff9d3b;
  --flame-glow: rgba(255, 123, 0, 0.35);
  --flame-gradient: linear-gradient(135deg, #ff7b00 0%, #f55d1e 55%, #d94c10 100%);
  --flame-gradient-h: linear-gradient(90deg, #ff7b00 0%, #ffffff 100%);
  --green: #16c972;
  --green-glow: rgba(22, 201, 114, 0.3);
  --red: #f03e5a;
  --red-glow: rgba(240, 62, 90, 0.3);
  --amber: #f0a030;
  --blue: #3ab8f5;
  --bg-darkest: #070707;
  --bg-base: #0a0a0a;
  --bg-card: #111111;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-card-tl: 32px;
  --radius-card-br: 32px;
  --radius-card-tr: 6px;
  --radius-card-bl: 6px;
  --radius-btn-tl: 14px;
  --radius-btn-br: 14px;
  --radius-btn-tr: 2px;
  --radius-btn-bl: 2px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  overflow-x: hidden !important;
  background-color: #0a0a0a !important;
  background-image:
    radial-gradient(circle at 0% 18%, rgba(255, 123, 0, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 100% 18%, rgba(255, 123, 0, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 0% 65%, rgba(255, 123, 0, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 100% 65%, rgba(255, 123, 0, 0.09) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(245, 93, 30, 0.18) 0%, transparent 70%),
    linear-gradient(145deg, rgba(10, 10, 10, 0.88) 0%, rgba(17, 17, 17, 0.75) 50%, rgba(10, 10, 10, 0.95) 100%),
    linear-gradient(-145deg, rgba(10, 10, 10, 0.88) 0%, rgba(17, 17, 17, 0.75) 50%, rgba(10, 10, 10, 0.95) 100%),
    url('/assets/img/Gemini_Generated_Image_cfv41zcfv41zcfv4.webp');
  background-position: center top;
  background-size: auto, auto, auto, auto, auto, auto, auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #e2e8f0 !important;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif !important;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.hero-title,
.section-title,
.stat-value,
.card-name {
  font-family: 'Fredoka', 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.3px;
}

.gradient-red {
  background: linear-gradient(90deg, #ff7b00, #ffffff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.card,
.modal-content {
  border-top-left-radius: var(--radius-card-tl) !important;
  border-bottom-right-radius: var(--radius-card-br) !important;
  border-top-right-radius: var(--radius-card-tr) !important;
  border-bottom-left-radius: var(--radius-card-bl) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card:hover {
  border-color: rgba(255, 123, 0, 0.35) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 123, 0, 0.15);
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-dark {
  background-image: var(--bs-gradient) !important;
  border: none !important;
  border-top-left-radius: var(--radius-btn-tl) !important;
  border-bottom-right-radius: var(--radius-btn-br) !important;
  border-top-right-radius: var(--radius-btn-tr) !important;
  border-bottom-left-radius: var(--radius-btn-bl) !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 15px rgba(255, 123, 0, 0.4);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-radius: var(--radius-btn-tl) 2px var(--radius-btn-br) 2px !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
  background: var(--bs-primary) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 123, 0, 0.4);
}

.form-group {
  margin-bottom: 18px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.form-group label {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

.form-input,
input.form-control,
select.form-control,
textarea.form-control {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 10px 14px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px 2px 12px 2px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;
}

.form-input:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: var(--flame-core) !important;
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.12) !important;
  outline: none !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 123, 0, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 123, 0, 0.85);
}

html {
  scrollbar-color: rgba(255, 123, 0, 0.5) #0a0a0a;
  scrollbar-width: thin;
}
