html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.shepherd-theme-dark {
    background: rgba(37, 38, 54, .8) !important;
    color: #fff;
    border-radius: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999999 !important;
}

.shepherd-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #999 !important;
}

.shepherd-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #999;
}

.shepherd-header {
    background: rgba(0, 0, 0, 0) !important;
    color: #fff !important;
}

.shepherd-content {
    padding: 2rem;
    color: #999 !important;
}

.shepherd-element {
    background: rgba(37, 38, 54, 0.8) !important;
    width: 100% !important;
    z-index: 99999999 !important;
}

.shepherd-cancel-icon {
    padding-left: 1.5rem;
}

.shepherd-modal-overlay-container {
    backdrop-filter: blur(15px) !important;
}

/* Glassy dark tooltip */
.shepherd-element.shepherd-theme-shabarber {
    background: rgba(30, 30, 40, 1) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
    max-width: 320px;
    transition: all 0.3s ease;
}

/* Header */
.shepherd-theme-shabarber .shepherd-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
}

.shepherd-theme-shabarber .shepherd-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffcb74;
}

/* Cancel (X) button */
.shepherd-theme-shabarber .shepherd-cancel-icon {
    color: #ccc;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

    .shepherd-theme-shabarber .shepherd-cancel-icon:hover {
        color: #fff !important;
    }

/* Body text */
.shepherd-theme-shabarber .shepherd-text {
    padding: 0.75rem 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Footer (buttons) */
.shepherd-theme-shabarber .shepherd-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Buttons */
.shepherd-theme-shabarber .shepherd-button {
    background-color: #aacb74;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

    .shepherd-theme-shabarber .shepherd-button:hover {
        background-color: #22e4b3;
    }

.shepherd-theme-shabarber .shepherd-button-secondary {
    background-color: transparent;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .shepherd-theme-shabarber .shepherd-button-secondary:hover {
        color: #fff;
        border-color: #fff;
    }

/* Arrow color */
.shepherd-theme-shabarber .shepherd-arrow::before {
    background-color: rgba(30, 30, 40, 0.9);
}

/* Overlay */
.shepherd-modal-overlay-container {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(15px);
    transition: opacity 0.3s ease-in-out;
}
/* QRelia Shepherd guided tours */
.qrelia-tour-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .68rem .95rem;
    background: linear-gradient(135deg, rgba(22,216,143,.95), rgba(69,217,255,.88));
    color: #041014;
    font-size: .86rem;
    font-weight: 850;
    letter-spacing: -.01em;
    box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 28px rgba(69,217,255,.18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.qrelia-tour-launcher.qrelia-tour-launcher-visible {
    display: inline-flex;
}

.qrelia-tour-launcher i {
    font-size: .95rem;
}

.qrelia-tour-launcher:hover,
.qrelia-tour-launcher:focus-visible {
    transform: translateY(-1px);
    color: #041014;
    outline: none;
    box-shadow: 0 20px 54px rgba(0,0,0,.42), 0 0 34px rgba(69,217,255,.26);
}

.shepherd-element.qrelia-shepherd,
.shepherd-element.shepherd-theme-shabarber {
    max-width: min(420px, calc(100vw - 28px));
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(6, 10, 18, .96);
    color: #f5f7fb;
    box-shadow: 0 26px 80px rgba(0,0,0,.50), 0 0 0 1px rgba(255,255,255,.05) inset;
    backdrop-filter: blur(20px);
}

.qrelia-shepherd .shepherd-header,
.shepherd-theme-shabarber .shepherd-header {
    background: linear-gradient(135deg, rgba(22,216,143,.16), rgba(69,217,255,.12));
    padding: 1rem 1.1rem .75rem;
}

.qrelia-shepherd .shepherd-title,
.shepherd-theme-shabarber .shepherd-title {
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -.03em;
}

.qrelia-shepherd .shepherd-text,
.shepherd-theme-shabarber .shepherd-text {
    color: #dce7f5;
    line-height: 1.55;
    padding: 1rem 1.1rem;
}

.qrelia-shepherd .shepherd-footer,
.shepherd-theme-shabarber .shepherd-footer {
    gap: .55rem;
    padding: 0 1.1rem 1.1rem;
}

.qrelia-shepherd .shepherd-button,
.shepherd-theme-shabarber .shepherd-button {
    border: 0;
    border-radius: 999px;
    padding: .58rem .9rem;
    background: linear-gradient(135deg, #16d88f, #45d9ff);
    color: #041014;
    font-weight: 850;
}

.qrelia-shepherd .shepherd-button-secondary,
.shepherd-theme-shabarber .shepherd-button-secondary {
    background: rgba(255,255,255,.08);
    color: #dce7f5;
}

.qrelia-shepherd .shepherd-cancel-icon,
.shepherd-theme-shabarber .shepherd-cancel-icon {
    color: rgba(255,255,255,.72);
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
    fill: rgba(0, 0, 0, .68);
}

@media (max-width: 640px) {
    .qrelia-tour-launcher {
        right: 12px;
        bottom: 12px;
        padding: .6rem .75rem;
        font-size: .78rem;
    }
}

/* QRelia tour containment hardening */
.shepherd-element.qrelia-shepherd,
.shepherd-element.shepherd-theme-shabarber {
    width: min(420px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    box-sizing: border-box !important;
}

.shepherd-element.qrelia-shepherd .shepherd-content,
.shepherd-element.shepherd-theme-shabarber .shepherd-content,
.shepherd-element.qrelia-shepherd .shepherd-text,
.shepherd-element.shepherd-theme-shabarber .shepherd-text {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.shepherd-modal-overlay-container {
    pointer-events: none;
}

@media (max-width: 640px) {
    .shepherd-element.qrelia-shepherd,
    .shepherd-element.shepherd-theme-shabarber {
        width: calc(100vw - 22px) !important;
        max-width: calc(100vw - 22px) !important;
    }

    .shepherd-element.qrelia-shepherd .shepherd-footer,
    .shepherd-element.shepherd-theme-shabarber .shepherd-footer {
        flex-wrap: wrap;
    }

    .shepherd-element.qrelia-shepherd .shepherd-button,
    .shepherd-element.shepherd-theme-shabarber .shepherd-button {
        min-width: 96px;
    }
}
