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;
}
/* ---- Vestivo adminpanel-stil ---- */
body {
  background-color: #f4f5fb;
}

.admin-pill-nav {
  display: inline-flex;
  gap: 0.25rem;
  background: #eef0f8;
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-pill-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  color: #5b5f77;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.admin-pill-nav a.active {
  background: #ffffff;
  color: #1f2233;
  box-shadow: 0 1px 4px rgba(30, 34, 60, 0.12);
}

.admin-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eceef6;
  box-shadow: 0 4px 16px rgba(30, 34, 60, 0.05);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.admin-card h1, .admin-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.vestivo-input {
  border-radius: 10px;
  border: 1px solid #e2e4ef;
  padding: 0.6rem 0.9rem;
  background: #fafbfe;
}

.vestivo-input:focus {
  background: #ffffff;
}

.btn-vestivo {
  background: linear-gradient(135deg, #1a56c4, #0f3480);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  white-space: nowrap;
}

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

/* Reserverad for de handlingar som faktiskt ska driva kop/konvertering:
   Oppna konto, Kop andel, Bekrafta/registrera insattning. */
.btn-vestivo-cta {
  background: linear-gradient(135deg, #ff8a65, #ff6b4a);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  white-space: nowrap;
}

.btn-vestivo-cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

.form-switch .form-check-input {
  width: 2.5em;
  height: 1.4em;
}

.vestivo-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #8b8fa3;
  font-weight: 600;
  border-bottom: 1px solid #eceef6;
  padding-bottom: 0.6rem;
}

.vestivo-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #f2f3f9;
  vertical-align: middle;
}

/* ---- Vestivo hero (startsidan) ---- */
.vestivo-hero {
  background: linear-gradient(135deg, #1a56c4 0%, #0f3480 100%);
  border-radius: 24px;
  padding: 4.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.vestivo-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.vestivo-hero-white {
  color: #ffffff;
}

.vestivo-hero-accent {
  color: #7ec8ff;
}

@media (min-width: 768px) {
  .vestivo-hero-title {
    font-size: 3.25rem;
  }
}

.vestivo-hero-subtitle {
  color: #d7e6ff;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.btn-vestivo.btn-lg,
.btn-vestivo-cta.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

.btn-vestivo-cta.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* ---- Vestivo promo-sektion (startsidan) ---- */
.vestivo-promo {
  background: linear-gradient(135deg, #fdf2f2 0%, #eef4ff 100%);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 2rem 0;
}

.vestivo-badge-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ff6b4a;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.vestivo-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e4ef;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: #5b6472;
  background: #fff;
}

.vestivo-promo h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 1rem 0 0.75rem;
  color: #12203a;
}

.vestivo-promo p.lead {
  color: #5b6472;
  max-width: 800px;
  font-size: 1rem;
}

.vestivo-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.vestivo-asset-card {
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 18px;
  padding: 1.5rem;
}

.vestivo-asset-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56c4, #3b8beb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.vestivo-asset-badge {
  background: #ffe4da;
  color: #ff6b4a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  height: fit-content;
}

.vestivo-asset-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
}

.vestivo-asset-card p.desc {
  color: #5b6472;
  font-size: 0.9rem;
  min-height: 2.5rem;
}

.vestivo-asset-card hr {
  margin: 1rem 0;
  border-color: #f0f1f7;
}

.vestivo-asset-card .price-label {
  font-size: 0.75rem;
  color: #8b8fa3;
  text-transform: uppercase;
}

.vestivo-asset-card .price-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.vestivo-asset-card a.buy-link {
  color: #1a56c4;
  font-weight: 600;
  text-decoration: none;
}

/* ---- Vestivo innehallssidor (Om oss / Vara investeringar) ---- */
.vestivo-page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #12203a;
}

.vestivo-page-subtitle {
  font-size: 1.1rem;
  color: #5b6472;
  margin-bottom: 1.5rem;
}

/* ---- Vestivo Nyhetsbrev ---- */
.vestivo-newsletter-card {
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 20px;
  padding: 2.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.vestivo-newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56c4, #0d9e8c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.vestivo-newsletter-card h3 {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.vestivo-newsletter-card p {
  color: #5b6472;
  margin-bottom: 1.5rem;
}

.vestivo-newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.vestivo-newsletter-form input[type="email"] {
  flex: 1 1 260px;
}

/* ---- Vestivo hero-variant för undersidor (Marknad, Om oss, Våra investeringar) ---- */
.vestivo-hero-sm {
  padding: 3rem 2rem;
}

/* ---- Vestivo info-kort (ikon + rubrik + text) ---- */
.vestivo-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.vestivo-info-card {
  background: #fff;
  border: 1px solid #eceef6;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.vestivo-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56c4, #3b8beb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.85rem;
}

.vestivo-info-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #12203a;
}

.vestivo-info-card p {
  color: #5b6472;
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Vestivo KYC-guide (rullande flikar) ---- */
.kyc-wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kyc-wizard-step-dot {
  flex: 1;
  min-width: 100px;
  text-align: center;
  font-size: 0.75rem;
  color: #8b8fa3;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #eceef6;
  font-weight: 600;
}

.kyc-wizard-step-dot.active {
  color: #1a56c4;
  border-bottom-color: #1a56c4;
}

.kyc-wizard-step-dot.done {
  color: #0d9e8c;
  border-bottom-color: #0d9e8c;
}

.kyc-step {
  display: none;
}

.kyc-step.active {
  display: block;
}

.kyc-radio-group label,
.kyc-check-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid #eceef6;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.kyc-radio-group label:hover,
.kyc-check-group label:hover {
  border-color: #1a56c4;
}

.kyc-radio-group input,
.kyc-check-group input {
  flex-shrink: 0;
}

.kyc-pep-warning {
  background: #fdf2f2;
  border: 1px solid #f7c6c6;
  color: #a12525;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.vestivo-video-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 2rem 0;
  min-height: 340px;
  background: #05070d;
  display: flex;
  align-items: flex-end;
}

.vestivo-video-panel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vestivo-video-panel-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.55) 55%, rgba(5, 7, 13, 0) 100%);
}

.vestivo-video-panel-overlay h2 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.vestivo-video-panel-overlay p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

@media (max-width: 576px) {
  .vestivo-video-panel {
    min-height: 220px;
  }
  .vestivo-video-panel-overlay {
    padding: 1.5rem;
  }
}

.vestivo-footer-lankar {
  padding: 0;
}

.vestivo-footer-lank {
  background: none;
  border: none;
  padding: 0;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.vestivo-footer-lank:hover {
  color: #1a56c4;
  text-decoration: underline;
}

.vestivo-footer-modaltext {
  line-height: 1.7;
  color: #3d4152;
  font-size: 0.95rem;
}

.vestivo-footer-modaltext p {
  margin-bottom: 1.1rem;
}

.vestivo-footer-modaltext p:last-child {
  margin-bottom: 0;
}

.vestivo-footer-modal .modal-header {
  border-bottom: 1px solid #eef0f5;
  padding: 1.25rem 1.5rem;
}

.vestivo-footer-modal .modal-title.vestivo-footer-modal-title {
  font-weight: 700;
  color: #1e2340;
  font-size: 1.15rem;
}

.vestivo-footer-modal .modal-body {
  padding: 1.5rem;
}

.vestivo-footer-modal .modal-footer {
  border-top: 1px solid #eef0f5;
  padding: 1rem 1.5rem;
}

.vestivo-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.vestivo-auth-logo-icon svg {
  display: block;
}

.vestivo-auth-logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: #16213a;
}

.vestivo-footer {
  background: #f8f9fc;
}

.vestivo-footer-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: #1e2340;
  letter-spacing: 0.02em;
}

.vestivo-footer-tagline {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 0;
}

.vestivo-footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #1e2340;
  margin-bottom: 1rem;
}

.vestivo-footer-collist {
  margin: 0;
}

.vestivo-footer-collist li {
  margin-bottom: 0.65rem;
}

.vestivo-footer-collist a {
  color: #6c757d;
  font-size: 0.9rem;
  text-decoration: none;
}

.vestivo-footer-collist a:hover {
  color: #1a56c4;
  text-decoration: underline;
}

.vestivo-footer-lankar li {
  margin-bottom: 0.65rem;
}

.vestivo-footer-bottom {
  font-size: 0.8rem;
  color: #8b8fa3;
}

.vestivo-image-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 2rem 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.vestivo-image-panel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vestivo-image-panel-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.2rem;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.85) 0%, rgba(5, 7, 13, 0.45) 55%, rgba(5, 7, 13, 0) 100%);
}

.vestivo-image-panel-overlay h2 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.vestivo-image-panel-overlay p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 520px;
}

@media (max-width: 576px) {
  .vestivo-image-panel {
    min-height: 200px;
  }
  .vestivo-image-panel-overlay {
    padding: 1.4rem;
  }
}

.vestivo-faq-section {
  background: #f7f9fc;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
}

.vestivo-faq-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #16213a;
}

.vestivo-faq-accordion {
  --bs-accordion-active-color: #16213a;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-border-color: rgba(0, 0, 0, 0.08);
  max-width: 760px;
  margin: 0 auto;
}

.vestivo-faq-accordion .accordion-button {
  font-weight: 600;
  color: #16213a;
  padding: 1.1rem 0.25rem;
  background: transparent;
}

.vestivo-faq-accordion .accordion-body {
  padding: 0 0.25rem 1.3rem;
  color: #6c757d;
  white-space: pre-wrap;
}

@media (max-width: 576px) {
  .vestivo-faq-section {
    padding: 1.8rem 1.2rem;
  }
}

.vestivo-chatt-badge {
  font-size: 0.68rem;
  vertical-align: top;
  margin-left: 0.15rem;
}

#vestivoNotisBehallare {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 340px;
}

.vestivo-notis {
  background: #16213a;
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vestivo-notis:hover {
  filter: brightness(1.1);
}

.vestivo-notis-dold {
  opacity: 0;
  transform: translateY(-8px);
}

.vestivo-omoss-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin: 2.5rem 0;
}

.vestivo-omoss-column h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e2340;
  margin-bottom: 0.9rem;
}

.vestivo-omoss-column p {
  color: #4a5170;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .vestivo-omoss-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.vestivo-varainvest-text {
  color: #4a5170;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 2rem 0;
  max-width: 760px;
}

.vestivo-nav-cta {
  margin-left: 0.5rem;
}

.btn-vestivo-ljusgra {
  background: #eef0f6;
  border: none;
  color: #3a3f55;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  white-space: nowrap;
}

.btn-vestivo-ljusgra:hover {
  background: #e2e5ee;
  color: #1e2340;
}

.vestivo-avgiftskort {
  margin-top: 2.5rem;
}

.vestivo-avgiftskort h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e2340;
  margin-bottom: 0.75rem;
}

.vestivo-tvafaktor-steg {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.vestivo-tvafaktor-qr {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.vestivo-tvafaktor-qr img {
  border: 1px solid #e5e7ee;
  border-radius: 8px;
  padding: 0.5rem;
  background: #ffffff;
}

.vestivo-tvafaktor-nyckel {
  font-family: monospace;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  background: #ffffff;
  border: 1px solid #e5e7ee;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  display: inline-block;
  word-break: break-all;
}

/* ---- Cookiebanner ---- */
.vestivo-cookiebanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: #ffffff;
  border-top: 1px solid #e5e7ee;
  box-shadow: 0 -4px 16px rgba(15, 25, 60, 0.08);
  padding: 1rem 1.25rem;
}

.vestivo-cookiebanner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vestivo-cookiebanner-text {
  margin: 0;
  color: #4b5165;
  font-size: 0.9rem;
  flex: 1 1 320px;
}

.vestivo-cookiebanner-knappar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-vestivo-outline {
  border: 2px solid #1a56c4;
  color: #1a56c4;
  background: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: calc(0.65rem - 1px) calc(1.6rem - 1px);
  white-space: nowrap;
}

.btn-vestivo-outline:hover {
  background: #f0f4ff;
  color: #0f3480;
}

@media (max-width: 576px) {
  .vestivo-cookiebanner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .vestivo-cookiebanner-knappar {
    justify-content: stretch;
  }
  .vestivo-cookiebanner-knappar .btn {
    flex: 1;
  }
}

.vestivo-blogg-kort {
  background: #f8f9fb;
  border-radius: 14px;
  border: 1px solid #eceef6;
}

.vestivo-blogg-kort h3 a {
  color: inherit;
  text-decoration: none;
}

.vestivo-blogg-kort h3 a:hover {
  text-decoration: underline;
}

.vestivo-blogg-innehall p {
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
