/* ============ Client Portal CSS ============ */

:root {
  --portal-purple: #7c4dff;
  --portal-blue: #0d6efd;
  --portal-red: #dc3545;
  --portal-orange: #ff9800;
  --portal-border: #e3e6ea;
  --portal-bg: #f4f6f9;
}

* { box-sizing: border-box; }

/* ---------- Auth pages ---------- */

.portal-auth-body {
  background: #eef1f6;
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.portal-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-auth-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.portal-auth-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: #222;
  text-align: center;
}
.portal-auth-brand span { color: var(--portal-blue); }
.portal-auth-logo {
  max-width: 240px;
  object-fit: contain;
}

.portal-logo-img {
  max-width: 160px;
  object-fit: contain;
}

.portal-auth-card h1 { font-size: 26px; font-weight: 700; }

.portal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.portal-alert-success { background: #e7f7ee; color: #1a7f4b; border: 1px solid #b9e6cd; }
.portal-alert-error { background: #fdeaea; color: #b02a37; border: 1px solid #f5c2c7; }

/* ---------- Dashboard layout ---------- */

.portal-body {
  margin: 0;
  background: var(--portal-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #222;
}

.portal-topbar {
  background: #fff;
  border-bottom: 1px solid var(--portal-border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.portal-topbar-brand { font-weight: 800; letter-spacing: 1px; }
.portal-topbar-brand span { color: var(--portal-blue); }
.portal-topbar-home { color: #555; text-decoration: none; font-size: 14px; }
.portal-topbar-home:hover { color: var(--portal-blue); }

.portal-wrap {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* Fixed column width ~200px */
.portal-col {
  width: 200px;
  flex: 0 0 250px;
}

.portal-center {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 40px;
  padding-bottom: 48px;
}

/* ---------- Left nav ---------- */

.portal-nav {
  background: #fff;
  border: 1px solid var(--portal-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-nav-logo {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-border);
  text-align: center;
}
.portal-nav-logo i { color: var(--portal-blue); margin-right: 6px; }

.portal-nav-menu { display: flex; flex-direction: column; gap: 2px; }

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.portal-nav-item i { width: 18px; text-align: center; font-size: 15px; }
.portal-nav-item:hover { background: #f1f3f7; }
.portal-nav-item.active { background: #f0ebff; color: var(--portal-purple); font-weight: 600; }

.portal-nav-upgrade { margin: 22px 0 10px; }
.portal-upgrade-btn {
  display: block;
  text-align: center;
  padding: 9px 12px;
  border-radius: 4px;
  border: 2px solid var(--portal-purple);
  color: var(--portal-purple);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.portal-upgrade-btn:hover { background: var(--portal-purple); color: #fff; }

.portal-nav-consult {
  margin-top: 8px;
  justify-content: center;
}
.portal-nav-consult:hover { background: #f0ebff; color: var(--portal-purple); }

/* Animated "Get Consultation" button (hover: text + divider slide left, headset centers) */
.consult-btn {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  background-color: #8e66ff;
  border-radius: 4px;
  border: none;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
  transition: background-color .25s cubic-bezier(0.310, -0.105, 0.430, 1.400);
}
.consult-btn-text {
  display: block;
  flex: 1;
  padding-left: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .25s, transform .3s cubic-bezier(0.310, -0.105, 0.430, 1.400);
}
.consult-btn-divider {
  width: 1px;
  height: 70%;
  background-color: #b093ff;
  flex-shrink: 0;
  transition: opacity .25s, transform .3s cubic-bezier(0.310, -0.105, 0.430, 1.400);
}
.consult-btn-icon {
  width: 34px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(0.310, -0.105, 0.430, 1.400);
}
.consult-btn:hover {
  background-color: #7a52e6;
}
.consult-btn:hover .consult-btn-text {
  opacity: 0;
  transform: translateX(-80%);
}
.consult-btn:hover .consult-btn-divider {
  opacity: 0;
  transform: translateX(-300%);
}
.consult-btn:hover .consult-btn-icon {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0) scale(1.25);
}
.consult-btn:active { opacity: 1; }

/* Green variant (Upgrade Plan) */
.consult-btn-green {
  background-color: #45ad5a;
  margin-bottom: 0;
}
.consult-btn-green:hover { background-color: #3a9450; }
.consult-btn-green .consult-btn-divider { background-color: #7fcf92; }

/* Orange variant (Refer a Friend) */
.consult-btn-orange {
  background-color: #ff9e07;
}
.consult-btn-orange:hover { background-color: #e68a00; }
.consult-btn-orange .consult-btn-divider { background-color: #ffd07a; }

/* Blue variant (Change Address) */
.consult-btn-blue {
  background-color: #7099ff;
}
.consult-btn-blue:hover { background-color: #5c86e6; }
.consult-btn-blue .consult-btn-divider { background-color: #a6c2ff; }

/* Change Address button (gradient like Back to dashboard) */
.portal-change-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  background: linear-gradient(0deg, #4030ff, #7d5dff);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.portal-change-address-btn i { font-size: 16px; }
.portal-change-address-btn:hover {
  color: #ffffff;
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(64,48,255,0.35);
}

/* Add button (gradient, same family as Change Address) */
.portal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: linear-gradient(0deg, #4030ff, #7d5dff);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(64,48,255,0.3);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.portal-add-btn i { font-size: 16px; }
.portal-add-btn:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(64,48,255,0.4);
}

/* Decode date button (gradient, same family as Change Address) */
.portal-decode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: linear-gradient(0deg, #4030ff, #7d5dff);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(64,48,255,0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.portal-decode-btn:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Filter / search bar (addresses, appliances) */
.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.portal-filter-bar .form-control,
.portal-filter-bar .form-select {
  border-radius: 4px;
  font-size: 14px;
}
.portal-search-input {
  flex: 1 1 220px;
  max-width: 340px;
}
.portal-search-wrap {
  position: relative;
  flex: 1 1 200px;
  max-width: 300px;
}
.portal-search-wrap .bi-search {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f42c1;
  font-size: 15px;
  pointer-events: none;
}
.portal-search-wrap .form-control {
  padding-left: 34px;
}
.portal-search-wrap .form-control::placeholder {
  color: #6c757d;
  font-size: 12px;
  opacity: 1;
}
.portal-mobile-cards .portal-search-wrap {
  max-width: none;
  flex: 1 1 100%;
}
.portal-filter-select {
  width: auto;
  min-width: 170px;
}
@media (max-width: 575.98px) {
  .portal-filter-bar .form-control,
  .portal-filter-bar .form-select {
    width: 100%;
    max-width: none;
  }
}

.portal-nav-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--portal-border);
}

.portal-logout i { color: var(--portal-red); }
.portal-logout:hover { background: #fdeaea; color: var(--portal-red); }

/* Divider above Settings/Logout in the profile column. */
.portal-nav-divider {
  border-top: 1px solid var(--portal-border);
  margin: 14px 0 8px;
}

/* ---------- Right profile ---------- */

.portal-profile {
  background: #fff;
  border: 1px solid var(--portal-border);
  padding: 16px;
  align-self: stretch;
  height: auto;
}

.portal-profile-title { font-size: 13px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: .5px; text-align: center; }

.portal-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 5px var(--portal-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto;
  overflow: hidden;
  background: #f0ebff;
  font-weight: 700;
  color: var(--portal-purple);
  font-size: 22px;
}
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }

.portal-hello { text-align: center; font-weight: 700; font-size: 16px; }

.portal-company {
  text-align: center;
  font-size: 13px;
  color: #8a919c;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 4px;
}

.portal-points {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 6px 0 16px;
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 14px;
}
.portal-points i { color: #f5a623; }

.portal-profile-address {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
}
.portal-profile-address i { color: var(--portal-blue); }

.portal-points-badge {
  background: #f5a623;
  color: #fff;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

/* Notice pill (Need attention, days left) — white, gray border, full rounding. */
.portal-days,
.portal-notice-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #cdd3dc;
  border-radius: 999px;
  color: #5a6472;
  font-size: 12px;
  padding: 2px 10px;
  margin-left: 4px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.portal-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}
.portal-btn-outline {
  background: #fff;
  border: 1px solid var(--portal-border);
  color: #333;
}
.portal-btn-outline:hover { border-color: var(--portal-blue); color: var(--portal-blue); }

.portal-btn-warning { background: var(--portal-orange); color: #fff; }
.portal-btn-warning:hover { opacity: .9; }
.portal-btn-blue { background: #7099ff; color: #fff; }
.portal-btn-blue:hover { opacity: .9; }
.portal-btn-purple { background: #8e66ff; color: #fff; }
.portal-btn-purple:hover { opacity: .9; }
.portal-days { font-weight: 400; opacity: .85; }

/* ---------- Center: appliance cards ---------- */

.portal-appliances-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.portal-appliances-head h2 { font-size: 22px; font-weight: 700; margin: 0; }

.portal-member-banner {
  background: #fff8ec;
  border: 1px solid #f5c97b;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #8a5a00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-member-banner i { color: var(--portal-orange); font-size: 16px; }

.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* Desktop wide: exactly 3-across */
@media (min-width: 1201px) {
  .portal-cards { grid-template-columns: repeat(3, 1fr); }
}

.portal-appliance-card {
  background: #fff;
  border: 1px solid #cdcdcd;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  padding: 10px 14px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Photo sits ABOVE the card (not inside it); its bottom edge touches the card's top. */
.portal-card-wrap {
  display: flex;
  flex-direction: column;
}
.portal-card-photo {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 0;
  position: relative;
  display: block;
  min-height: 60px;
}
.portal-card-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.portal-card-photo i { font-size: 48px; color: var(--portal-blue); }
.portal-card-photo + .portal-appliance-card {
  border-radius: 0 0 14px 14px;
}

/* Warning icon — overlayed in the center of the photo, not clickable */
.portal-card-warn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--portal-orange);
  cursor: default;
  z-index: 5;
  line-height: 1;
  background: none;
  border: none;
  border-radius: 0;
}
.portal-card-warn i { color: #ffc107; font-size: 35px; }

/* The tooltip helper (.portal-tip) forces position:relative; the warning icon
   is absolutely centered, so restore absolute after it. */
.portal-card-warn.portal-tip {
  position: absolute;
  margin-top: 40px;
}

/* Custom tooltip: gray text on white, gray border, rounded */
.portal-tip {
  position: relative;
  display: inline-block;
}
.portal-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #6b7684;
  border: 1px solid #c4c9d1;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity .15s ease;
}
.portal-tip:hover::after { opacity: 1; }

.portal-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.portal-card-actions .btn-book {
  width: 60%;
  margin-top: 0;
}
.portal-card-iconbtns {
  display: flex;
  gap: 0;
  margin-left: auto;
}
.portal-card-button {
  display: none;
}
.portal-card-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.portal-card-btn.btn-edit-card { color: #45ad5a; }
.portal-card-btn.btn-edit-card:hover { color: #57c26d; }
.portal-card-btn.btn-delete-card { color: #ff7272; }
.portal-card-btn.btn-delete-card:hover { color: #ff8d8d; }

.portal-card-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #999;
  cursor: pointer;
  font-size: 16px;
}
.portal-card-edit:hover { color: var(--portal-blue); }

.portal-card-icon {
  width: 200px;
  height: 200px;
  margin: 6px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-appliance-svg {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.portal-card-name { font-weight: 700; text-align: left; font-size: 15px; color: #6c757d; }
.portal-card-detail { font-size: 13px; color: #a1a1a1; text-align: left; margin-top: 2px; }

/* ---------- Empty / add card ---------- */

.portal-empty-card {
  background: #fff;
  border: 2px dashed #c9ced6;
  border-radius: 14px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a919c;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.portal-empty-card:hover { border-color: var(--portal-blue); color: var(--portal-blue); }

.portal-plus-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--portal-blue);
  margin-bottom: 12px;
}

/* ---------- Modals ---------- */

.portal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 16px;
}
.portal-modal-inner {
  background: #fff;
  border: 1px solid #cdd3dc;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  position: relative;
  color: #5a6472;
}
.portal-modal-inner h1, .portal-modal-inner h2, .portal-modal-inner h3 {
  color: #4a545f;
}
.portal-modal-inner .form-label, .portal-modal-inner label { color: #5a6472; }

/* Small pill-like shape for round avatars/plus marks. */
.portal-plus-circle,
.portal-avatar {
  border-radius: 50%;
}

/* Buttons: uniform 4px rounding. */
.portal-modal-close,
.portal-card-btn,
.portal-upgrade-btn,
.portal-btn,
.portal-points-badge,
.portal-modal-inner .btn {
  border-radius: 4px;
}
.portal-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.portal-modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }

.portal-readonly {
  background: #f4f6f9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
}

/* ---------- Settings ---------- */

.portal-settings-back {
  display: inline-block;
  margin: 18px 0 0 24px;
  color: var(--portal-blue);
  text-decoration: none;
  font-size: 14px;
}
.portal-settings-back:hover { text-decoration: underline; }

.portal-settings-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    position: relative;
  }
.portal-settings-wrap h1 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }

/* ---------- Decode date chips ---------- */

.portal-decode-opt {
  display: inline-block;
  background: #fff;
  border: 1px solid #cdd3dc;
  color: #5a6472;
  border-radius: 4px;
  padding: 3px 10px;
  margin: 2px 4px 0 0;
  font-size: 12px;
  cursor: pointer;
}
.portal-decode-opt:hover { border-color: var(--portal-blue); color: var(--portal-blue); }

/* =====================================================
   MOBILE LAYOUT — hidden unless ≤992px
   ===================================================== */

.portal-mobile-header,
.portal-mobile-addressbar,
.portal-mobile-menu,
.portal-mobile-cards {
  display: none;
}

.portal-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--portal-border);
}
.portal-mobile-logo img {
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.portal-mobile-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-mobile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px var(--portal-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f0ebff;
  font-weight: 700;
  color: var(--portal-purple);
  font-size: 14px;
}
.portal-mobile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-mobile-user-text { text-align: left; }
.portal-mobile-hello { font-weight: 700; font-size: 13px; color: #344761; }
.portal-mobile-points { font-size: 11px; color: #8a919c; margin-top: 2px; }
.portal-mobile-points i { color: #f5a623; }
.portal-mobile-plan {
  font-size: 11px;
  color: #0d8323;
  font-weight: 600;
  margin-top: 2px;
}
.portal-mobile-plan-none { color: #8a919c; font-weight: 400; }

.portal-mobile-addressbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--portal-border);
}
.portal-mobile-address {
  font-size: 13px;
  color: #5a6472;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-mobile-address i { color: var(--portal-blue); margin-right: 4px; }
.portal-mobile-change {
  color: #7099ff;
  text-decoration: none;
  margin-left: 4px;
  font-weight: 600;
}
.portal-mobile-change:hover { text-decoration: underline; }
.portal-mobile-burger {
  background: transparent;
  border: none;
  font-size: 26px;
  color: #344761;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* Mobile dropdown menu */
.portal-mobile-menu {
  background: #fff;
  border-bottom: 1px solid var(--portal-border);
  padding: 8px 16px 14px;
  flex-direction: column;
  gap: 2px;
}
.portal-mobile-menu.open { display: flex; }
.portal-mobile-menu .portal-nav-divider { margin: 8px 0; }
.portal-mobile-menu .portal-nav-item { font-size: 15px; }
.portal-mobile-menu .portal-nav-item > i {
  font-size: 18px;
}
.mob-ico-home    { color: #6f42c1; }
.mob-ico-addr    { color: #7099ff; }
.mob-ico-refer   { color: #ff9e07; }
.mob-ico-plan    { color: #45ad5a; }
.mob-ico-consult { color: #8e66ff; }
.mob-ico-settings{ color: #6c757d; }

/* Mobile appliance cards */
.portal-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  margin: 12px 10px;
}
.portal-mobile-add {
  cursor: pointer;
  border: 2px dashed #c9ced6 !important;
  border-radius: 14px;
  background: #fff !important;
  box-shadow: none !important;
  gap: 14px;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  min-height: 120px;
  color: #8a919c;
  font-size: 15px;
  font-weight: 600;
}
.portal-mobile-add:hover { border-color: var(--portal-blue); color: var(--portal-blue); }
.portal-mobile-add .portal-plus-circle-sm {
  width: 64px;
  height: 64px;
  font-size: 28px;
  border-radius: 50%;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-blue);
}
.portal-mobile-add:hover .portal-plus-circle-sm { color: var(--portal-blue); }

/* Mobile card — photo is a separate element, card body has bg/border/rounding */
.portal-mobile-card {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 120px;
}
.portal-mobile-card-photo {
  position: relative;
  width: 70px;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portal-mobile-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-mobile-card-photo i { font-size: 38px; color: var(--portal-blue); }

/* The actual card body (right side) */
.portal-mobile-card-body {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
}

/* Warning icon centered on the mobile photo */
.portal-mobile-card-warn {
  position: absolute;
  top: 45%;
  left: 58%;
  transform: translate(-50%, -50%);
  color: var(--portal-orange);
  font-size: 26px;
  line-height: 1;
  z-index: 5;
  cursor: default;
}
.portal-mobile-card-warn i { color: var(--portal-orange); font-size: 28px; }

.portal-mobile-card-info {
  padding: 10px 10px 48px 12px;
}
.portal-mobile-card-name {
  font-weight: 700;
  font-size: 14px;
  color: #2b3441;
}
.portal-mobile-card-detail {
  font-size: 12px;
  color: #6b7684;
  margin-top: 2px;
}

/* Book Service button pinned to the bottom right, flush, no bottom rounding */
.btn-mob-book-text {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 6px 0 0 0;
  font-size: 13px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Edit / Delete on the right, stacked */
.portal-mobile-card-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  z-index: 6;
}
.portal-mobile-card-actions .portal-card-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.portal-mobile-card-actions .btn-edit-card { color: #45ad5a; }
.portal-mobile-card-actions .btn-delete-card { color: #ff7272; }

/* =====================================================
   Tablet: keep layout, cards 2-across (768–1200px)
   ===================================================== */
@media (max-width: 1200px) and (min-width: 993px) {
  .portal-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .portal-cards { grid-template-columns: repeat(2, 1fr); }
  .portal-wrap { flex-direction: row; }
  .portal-col { width: 190px; flex: 0 0 190px; }
}

/* =====================================================
   Phone: mobile header/menu/cards, hide sidebars
   ===================================================== */
@media (max-width: 768px) {
  .portal-mobile-header,
  .portal-mobile-addressbar,
  .portal-mobile-cards { display: flex; }

  .portal-wrap { display: none; }

  .portal-mobile-header { display: flex; }
  .portal-mobile-addressbar { display: flex; }
  .portal-mobile-menu { display: none; }
  .portal-mobile-menu.open { display: flex; }

  .portal-mobile-cards { display: flex; }

  /* Modals should stay usable on mobile */
  .portal-modal-inner { max-width: 94vw; padding: 18px; }
  .portal-modal { padding: 10px; }
}

/* ---------- Profile subscription badge ---------- */

.portal-profile-plan {
  background: #edffeb;
  border: 1px solid #0d8323;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}
.portal-profile-plan-name {
  font-weight: 700;
  font-size: 13px;
  color: #0d8323;
}
.portal-profile-plan-name i { color: #0d8323; }
.portal-profile-plan-benefits {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.portal-profile-plan-benefits li {
  font-size: 12px;
  color: #444;
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.portal-profile-plan-benefits i { color: #1a7f4b; }
.portal-profile-plan-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1.5px solid #0d8323;
  color: #0d8323;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.portal-profile-plan-btn:hover { background: #0d8323; color: #fff; }

/* Violet variant (Get Consultation card) */
.portal-profile-plan-violet {
  background: #f0ebff;
  border-color: #9100ff;
}
.portal-profile-plan-violet .portal-profile-plan-name { color: #9100ff; }
.portal-profile-plan-violet .portal-profile-plan-name i { color: #9100ff; }
.portal-profile-plan-violet .portal-profile-plan-benefits i { color: #9100ff; }
.portal-profile-plan-btn-violet {
  border-color: #9100ff;
  color: #9100ff;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.portal-profile-plan-btn-violet:hover {
  background: #9100ff;
  color: #fff;
}

/* Orange variant (Refer a Friend card) */
.portal-profile-plan-orange {
  background: #fff2eb;
  border-color: #ff5f00;
}
.portal-profile-plan-orange .portal-profile-plan-name { color: #ff5f00; }
.portal-profile-plan-orange .portal-profile-plan-name i { color: #ff5f00; }
.portal-profile-plan-orange .portal-profile-plan-benefits i { color: #ff5f00; }
.portal-profile-plan-btn-orange {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-color: #ff5f00;
  color: #ff5f00;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.portal-profile-plan-btn-orange:hover {
  background: #ff5f00;
  color: #fff;
}

/* Blue variant (Install App card) */
.portal-profile-plan-blue {
  background: #eef3ff;
  border-color: #3b82f6;
}
.portal-profile-plan-blue .portal-profile-plan-name { color: #3b82f6; }
.portal-profile-plan-blue .portal-profile-plan-name i { color: #3b82f6; }
.portal-profile-plan-blue .portal-profile-plan-benefits i { color: #3b82f6; }
.portal-profile-plan-btn-blue {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-color: #3b82f6;
  color: #3b82f6;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.portal-profile-plan-btn-blue:hover {
  background: #3b82f6;
  color: #fff;
}

/* Full-width buttons inside the nav plan cards */
.portal-profile-plan-violet .portal-profile-plan-btn,
.portal-profile-plan-orange .portal-profile-plan-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Icons inside plan cards: 14px */
.portal-profile-plan-name i,
.portal-profile-plan-benefits li i {
  font-size: 14px;
}

/* ---------- Onboarding wizard ---------- */
.portal-onboard-inner {
  max-width: 460px;
}
.onboard-step { text-align: center; }
.onboard-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f0ebff;
  color: #9100ff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.onboard-step h3 { font-size: 18px; font-weight: 800; color: #1c2330; }
.onboard-step p { font-size: 13px; color: #5a6472; line-height: 1.55; margin: 8px 0 16px; }
.onboard-bonus {
  color: #9100ff;
  white-space: nowrap;
  font-weight: 800;
}
.onboard-hint {
  font-size: 12px !important;
  color: #8a919c !important;
  margin: -6px 0 14px !important;
}
.onboard-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.onboard-perks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #4b4f5a;
  margin-bottom: 8px;
}
.onboard-perks li i {
  color: #0d8323;
  font-size: 16px;
  margin-top: 1px;
}
.onboard-install-info {
  background: #f4f6f9;
  border: 1px dashed #c4c9d1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5a6472;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 14px;
}

/* ---------- Addresses: desktop rows ---------- */
.portal-address-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-appliance-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.portal-appliance-line .p-app { font-weight: 700; color: #344761; font-size: 15px; }
.portal-appliance-line small { color: #8a919c; font-size: 12px; }
.portal-appliance-line .p-sep { color: #c9ced6; font-size: 12px; }

/* Appliance drag & drop */
.portal-appliance-row.app-draggable { cursor: grab; }
.portal-appliance-row.app-dragging { opacity: 0.55; }
.btn-order-up,
.btn-order-down {
  color: #7099ff;
  font-size: 16px;
}
.btn-order-up:hover,
.btn-order-down:hover {
  color: #345fb4;
}
.portal-mobile-card {
  transition: transform 0.25s ease;
}
.portal-mobile-card-arrows {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  height: 32px;
  padding-left: 2px;
}

/* Home drag & drop */
.portal-card-wrap { cursor: grab; }
.portal-card-dragging { opacity: 0.4; }
.app-dragging { opacity: 0.4; }
.portal-drag-active,
.portal-drag-active * {
  user-select: none;
  -webkit-user-select: none;
}
.portal-drag-ghost {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.88;
  box-shadow: 0 18px 45px rgba(23, 24, 54, 0.3);
}
.portal-address-text { flex: 1 1 auto; min-width: 0; }
.portal-address-text .p-label { font-weight: 700; color: #344761; margin-right: 4px; }
.portal-address-text .p-addr { color: #5a6472; font-size: 14px; }
.portal-address-text small { display: block; color: #8a919c; font-size: 12px; }
.portal-address-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.portal-address-actions form { margin: 0; }
.portal-card-btn.portal-star-btn { color: #c9ced6; font-size: 16px; width: 34px; }
.portal-card-btn.portal-star-btn:hover { color: #f5a623; }
.portal-card-btn.portal-star-btn.is-default { color: #f5a623; cursor: default; }

/* ---------- Mobile utility cards (addresses / appliances / repairs) ---------- */
.portal-mob-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  padding: 12px 14px;
}
.portal-mob-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.portal-mob-addr { font-size: 13px; font-weight: 600; color: #344761; }
.portal-mob-addr-sm { font-size: 12px; color: #8a919c; }
.portal-mob-count { font-size: 12px; color: #8a919c; }
.portal-mob-app-name { font-size: 15px; font-weight: 700; color: #344761; }
.portal-mob-app-detail { font-size: 13px; color: #6c757d; }
.portal-mob-card-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- Repair history cards ---------- */
.portal-repair-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-repair-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  padding: 14px 16px;
}
.portal-repair-info { flex: 1 1 auto; min-width: 0; }
.portal-repair-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a919c;
}
.portal-repair-app { font-size: 15px; font-weight: 700; color: #344761; margin-top: 2px; }
.portal-repair-desc { font-size: 13px; color: #6c757d; margin-top: 2px; }
.portal-repair-cost {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0d8323;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-align: center;
}
.portal-repair-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 110px;
}
.portal-repair-docs {
  display: flex;
  gap: 6px;
}
.portal-repair-docs .btn-inv-doc {
  color: #6f42c1;
  font-size: 17px;
  padding: 4px;
}
.portal-repair-docs .btn-inv-doc:hover {
  color: #9100ff;
}

/* Places autocompletе (new API element) */
.places-wrap { position: relative; }
.places-wrap input,
.places-wrap .full,
.places-wrap > pm-placeautocomplete,
.places-wrap > span {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  min-height: 42px;
  color: #1c2330;
  box-shadow: none;
}
.places-wrap input,
.places-wrap input:hover,
.places-wrap input:focus {
  color: #1c2330 !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
}
.install-pop { margin: 8px 0 14px; }
.install-os {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #344761;
  margin: 4px 0 8px;
}
.install-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}
.install-browser-col {
  width: 100px;
  flex-shrink: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #344761;
  background: #f0f3f8;
  line-height: 1.25;
}
.install-instr {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #5a6472;
  line-height: 1.4;
}
.install-instr b {
  color: #3b82f6;
  font-weight: 600;
}
.install-instr i {
  color: #3b82f6;
}

/* Invoice / receipt lightbox modal */
.portal-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-doc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 30, 0.72);
  backdrop-filter: blur(2px);
}
.portal-doc-box {
  position: relative;
  height: 100%;
  width: 980px;
  max-width: 98vw;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.portal-doc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1c2330;
  color: #fff;
  flex-shrink: 0;
}
.portal-doc-toolbar .btn {
  font-size: 13px;
  font-weight: 600;
}
.portal-doc-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.portal-doc-close:hover { opacity: 0.8; }
#docFrame {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 0;
  background: #fff;
  overflow: auto;
}
@media (max-width: 575.98px) {
  .portal-doc-box {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
  #docFrame {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 575.98px) {
  .portal-repair-side {
    min-width: 0;
    width: 100%;
    align-items: flex-end;
  }
}
@media (max-width: 575.98px) {
  .portal-repair-card { flex-direction: column; align-items: stretch; }
  .portal-repair-cost {
    min-width: 0;
    justify-content: flex-end;
    font-size: 20px;
  }
}

.portal-profile-no-plan {
  background: #f4f6f9;
  border-color: #e3e6ea;
}
.portal-profile-no-plan .portal-profile-plan-name { color: #6c757d; }
.portal-profile-no-plan .portal-profile-plan-name i { color: #6c757d; }
.portal-profile-no-plan-text {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a919c;
}
.portal-profile-no-plan .portal-profile-plan-btn {
  border-color: #0d8323;
  color: #0d8323;
}
.portal-profile-no-plan .portal-profile-plan-btn:hover { background: #0d8323; color: #fff; }

/* ---------- Upgrade Plan (pricing cards, styled like the site) ---------- */

.portal-plans-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  position: relative;
}
.portal-plans-wrap h1 { font-size: 24px; font-weight: 700; }

.portal-plans-back {
  display: inline-block;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 5;
  padding: 11px 20px;
  background: linear-gradient(0deg, #4030ff, #7d5dff);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(64,48,255,0.3);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.portal-plans-back:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(64,48,255,0.4);
}
@media (max-width: 575.98px) {
  .portal-plans-back {
    position: static;
    display: block;
    max-width: 210px;
    margin: 0 0 14px auto;
    text-align: center;
  }
}

.pricing .section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.pricing .section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #344761;
}
.pricing .section-title p {
  color: #77818f;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.pricing .pricing-card {
  background-color: #ffffff;
  border: 1px solid #e5e8ee;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}
.pricing .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(83, 93, 107, 0.15);
}
.pricing .pricing-card.featured {
  border-color: #198754;
  background-color: #f2f9ff;
}
.pricing .pricing-card.featured:hover {
  transform: scale(1.02) translateY(-5px);
}
.pricing .pricing-card.featured .featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #198754;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pricing .pricing-card .plan-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing .pricing-card .plan-header .plan-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #344761;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.pricing .pricing-card .plan-header .plan-description {
  font-size: 0.95rem;
  color: #77818f;
  line-height: 1.6;
  margin-bottom: 0;
}
.pricing .pricing-card .pricing-display {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing .pricing-card .pricing-display .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}
.pricing .pricing-card .pricing-display .price .currency {
  font-size: 1.25rem;
  color: #7b8593;
  font-weight: 500;
}
.pricing .pricing-card .pricing-display .price .amount {
  font-size: 3.5rem;
  font-weight: 300;
  color: #344761;
  letter-spacing: -0.02em;
}
.pricing .pricing-card .pricing-display .price .period {
  font-size: 1rem;
  color: #7b8593;
  font-weight: 400;
}
.pricing .pricing-card .features-list {
  margin-bottom: 2.5rem;
}
.pricing .pricing-card .features-list .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.pricing .pricing-card .features-list .feature i {
  color: #5c99ee;
  font-size: 1rem;
  flex-shrink: 0;
}
.pricing .pricing-card .features-list .feature span {
  font-size: 0.95rem;
  color: #535d6b;
  line-height: 1.5;
}
.pricing .pricing-card .btn-plan {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #5c99ee;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.pricing .pricing-card .btn-plan:hover {
  background-color: transparent;
  border: 1.5px solid #5c99ee;
  color: #5c99ee;
  transform: translateY(-1px);
}
.btn-plan-2 {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #4caf50;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-plan-2:hover {
  background-color: transparent;
  border: 1.5px solid #4caf50;
  color: #4caf50;
  transform: translateY(-1px);
}
.btn-plan-3 {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #ff5722;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-plan-3:hover {
  background-color: transparent;
  border: 1.5px solid #ff5722;
  color: #ff5722;
  transform: translateY(-1px);
}
.pricing .pricing-card.featured .btn-plan:hover {
  background-color: #4a86d0;
  border-color: #4a86d0;
  color: #ffffff;
}
.pricing .pricing-footer .guarantee-text {
  color: #7b8593;
}

/* ============================================================
   PRICING CARDS — same style as on the homepage (BRIX-style)
   ============================================================ */
.pr-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid #e9e9f0;
	border-radius: 14px;
	padding: 30px 28px 26px 28px;
	box-shadow: 0 10px 30px rgba(23, 24, 54, 0.06);
	text-align: left;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-sizing: border-box;
}

.pr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(23, 24, 54, 0.12);
}

.pr-card-featured {
	background: linear-gradient(315deg, #08006d, #ef00ff);
	border: none;
	color: #fff;
	box-shadow: 0 18px 45px rgba(111,66,193,0.35);
}

.pr-card-featured:hover {
	box-shadow: 0 22px 55px rgba(111,66,193,0.5);
}

@media (min-width: 992px) {
	.pr-card-featured {
		transform: translateY(-18px);
	}
	.pr-card-featured:hover {
		transform: translateY(-22px);
	}
}

.pr-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: #f2f0ff;
	color: #6f42c1;
	font-size: 26px;
	margin-bottom: 18px;
}

.pr-card-featured .pr-card-icon {
	background: rgba(255,255,255,0.14);
	color: #fff;
}

.pr-card-for {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #9aa0ac;
	margin-bottom: 6px;
}

.pr-card-featured .pr-card-for {
	color: rgba(255,255,255,0.65);
}

.pr-card-name {
	font-size: 22px;
	font-weight: 800;
	color: #0e0f1a;
	margin: 0 0 8px 0;
	line-height: 1.25;
}

.pr-card-featured .pr-card-name {
	color: #fff;
}

.pr-card-desc {
	font-size: 14px;
	line-height: 1.55;
	color: #767b88;
	margin: 0 0 20px 0;
	min-height: 44px;
}

.pr-card-featured .pr-card-desc {
	color: rgba(255,255,255,0.82);
}

.pr-card-price {
	margin-bottom: 18px;
}

.pr-card-price-amount {
	font-size: 60px;
	font-weight: 800;
	line-height: 1;
	color: #0e0f1a;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pr-card-featured .pr-card-price-amount {
	color: #fff;
}

.pr-card-price-period {
	font-size: 13px;
	font-weight: 600;
	color: #9aa0ac;
	margin-left: 4px;
}

.pr-card-featured .pr-card-price-period {
	color: rgba(255,255,255,0.65);
}

.pr-card-included {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #767b88;
	padding-top: 16px;
	margin-bottom: 14px;
	border-top: 1px solid #efeff5;
}

.pr-card-featured .pr-card-included {
	color: rgba(255,255,255,0.7);
	border-top-color: rgba(255,255,255,0.16);
}

.pr-card-features {
	list-style: none;
	padding: 0;
	margin: 0 0 22px 0;
	flex: 1 1 auto;
}

.pr-card-features li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	line-height: 1.45;
	color: #4b4f5a;
	margin-bottom: 10px;
}

.pr-card-features li i {
	flex-shrink: 0;
	margin-top: 2px;
	color: #1f9d55;
	font-size: 15px;
}

.pr-card-featured .pr-card-features li {
	color: rgba(255,255,255,0.9);
}

.pr-card-featured .pr-card-features li i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255,255,255,0.16);
	color: #fff;
	font-size: 12px;
	margin-top: 1px;
}

.pr-card-btn {
	display: block;
	width: 100%;
	padding: 13px 18px;
	background: #0e0f1a;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 8px;
	box-sizing: border-box;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-card-btn:hover {
	background: #6f42c1;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.pr-card-featured .pr-card-btn {
	background: #fff;
	color: #6f42c1;
}

.pr-card-featured .pr-card-btn:hover {
	background: #f3efff;
	color: #6f42c1;
}

.pr-card-btn-disabled {
	background: #c6c9d0 !important;
	color: #fff;
	cursor: default !important;
}

.pr-card-btn-disabled:hover {
	background: #c6c9d0;
	transform: none;
}

.pr-card-note {
	display: block;
	margin-top: 10px;
	font-size: 11px;
	color: #9aa0ac;
	text-align: center;
}

/* ---------- Register form (register.php) ---------- */
.rf-title { color: #7099ff; text-align: center; }

/* Fields: icon box style (variant 2), labels as 13px placeholders inside the field */
.rf { position: relative; margin-bottom: 1rem; }
.rf-input {
	display: block; width: 100%; height: calc(2.25rem + 2px);
	padding: 0.375rem 0.75rem; font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5;
	color: #212529; background-color: #fff; background-clip: padding-box;
	border: 1px solid #bdbdbd; border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.rf-input:focus { color: #212529; background-color: #fff; border-color: #bdbdbd; outline: 0; box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25); }
.rf-icon {
	position: absolute; top: 0; bottom: 0; left: 0; width: 2.5rem; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	background: #f5f5f5; border: 1px solid #bdbdbd; border-radius: 0.25rem 0 0 0.25rem;
	font-size: 1rem; pointer-events: none;
}
.rf-icon i { color: #72b8ff; }
.rf-has-icon .rf-input { padding-left: 3rem; }
.rf-ph {
	position: absolute; top: 50%; left: 0.75rem; right: 0.75rem; transform: translateY(-50%);
	color: #8a919c; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	pointer-events: none; transition: opacity 0.15s ease-in-out;
}
.rf-has-icon .rf-ph { left: 3rem; }
.rf-input:focus ~ .rf-ph, .rf-input:not(:placeholder-shown) ~ .rf-ph { opacity: 0; }
.rf-req { color: #dc3545; }
.rf-opt { color: #8a919c; }
.rf-hint { font-size: 10px; color: #8a919c; margin: -0.5rem 0 1rem 0.25rem; }

/* First / Last name: one field with a divider in the middle */
.rf-pair {
	display: flex; height: calc(2.25rem + 2px); overflow: hidden;
	border: 1px solid #bdbdbd; border-radius: 0.25rem; background: #fff;
	transition: box-shadow 0.15s ease-in-out;
}
.rf-pair:focus-within { box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25); }
.rf-half { position: relative; flex: 1 1 0; min-width: 0; }
.rf-half + .rf-half { border-left: 1px solid #bdbdbd; }
.rf-pair .rf-input { border: 0; border-radius: 0; height: 100%; }
.rf-pair .rf-input:focus { box-shadow: none; }
.rf-pair .rf-icon { border: 0; border-right: 1px solid #bdbdbd; border-radius: 0; }

/* Notification toggles */
.rf-notify { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 13px; color: #8a919c; }
.rf-notify label { margin: 0; cursor: pointer; }
.rf-notify .checkbox-wrapper-34 { flex: 0 0 auto; }

/* Create Account button */
.btn-create, .btn-create:hover, .btn-create:focus, .btn-create:active { background: #7099ff; border-color: #7099ff; color: #fff; }

/* Toggle switch (checkbox-wrapper-34) */
.checkbox-wrapper-34 {
	--blue: #72b8ff;
	--g08: #E1E5EB;
	--g04: #848ea1;
}
.checkbox-wrapper-34 .tgl { display: none; }
.checkbox-wrapper-34 .tgl,
.checkbox-wrapper-34 .tgl:after,
.checkbox-wrapper-34 .tgl:before,
.checkbox-wrapper-34 .tgl *,
.checkbox-wrapper-34 .tgl *:after,
.checkbox-wrapper-34 .tgl *:before,
.checkbox-wrapper-34 .tgl + .tgl-btn {
	box-sizing: border-box;
}
.checkbox-wrapper-34 .tgl::selection,
.checkbox-wrapper-34 .tgl:after::selection,
.checkbox-wrapper-34 .tgl:before::selection,
.checkbox-wrapper-34 .tgl *::selection,
.checkbox-wrapper-34 .tgl *:after::selection,
.checkbox-wrapper-34 .tgl *:before::selection,
.checkbox-wrapper-34 .tgl + .tgl-btn::selection {
	background: none;
}
.checkbox-wrapper-34 .tgl + .tgl-btn {
	outline: 0;
	display: block;
	width: 44px;
	height: 22px;
	position: relative;
	cursor: pointer;
	user-select: none;
	font-size: 10px;
	font-weight: 400;
	color: #fff;
}
.checkbox-wrapper-34 .tgl + .tgl-btn:after,
.checkbox-wrapper-34 .tgl + .tgl-btn:before {
	position: relative;
	display: block;
	content: "";
	width: 44%;
	height: 100%;
}
.checkbox-wrapper-34 .tgl + .tgl-btn:after { left: 0; }
.checkbox-wrapper-34 .tgl + .tgl-btn:before {
	display: flex;
	align-items: center;
	position: absolute;
	top: 0;
	height: 100%;
	line-height: 1;
}
.checkbox-wrapper-34 .tgl:checked + .tgl-btn:after { left: 56.5%; }

.checkbox-wrapper-34 .tgl-ios + .tgl-btn {
	background: var(--g08);
	border-radius: 20rem;
	padding: 2px;
	transition: all 0.4s ease;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:after {
	border-radius: 2em;
	background: #fff;
	transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:before {
	content: "No";
	left: 24px;
	color: var(--g04);
	transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:active { box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1); }
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:active:after { padding-right: 0.4em; }
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn { background: var(--blue); }
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:active { box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1); }
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:active:after { margin-left: -0.4em; }
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:before {
	content: "Yes";
	left: 4px;
	color: #fff;
}
