/* ============ M5Auth: butoni ne header + dritarja e hyrjes (e njejte ne te gjithe faqen) ============ */
.m5a-widget {
  --m5-display: var(--display, 'Barlow Condensed', Impact, sans-serif);
  --m5-body: var(--body, 'Inter Tight', system-ui, sans-serif);
  --m5-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  position: relative; display: inline-flex; align-items: center; flex: none;
}
.p-bar .m5a-widget { margin-left: auto; margin-right: 8px; }
.m5a-widget svg, .m5a-modal svg, .m5a-menu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* "Sign in" */
.m5a-signin {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  border: 0; background: #000; color: #fff; font: 600 14px/1 var(--m5-body); letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: transform 0.2s var(--m5-ease), box-shadow 0.2s, background 0.2s;
}
.m5a-signin svg { width: 18px; height: 18px; }
.m5a-signin:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); background: #161616; }

/* anetari i loguar */
.m5a-user {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, 0.75); color: #000; font: 600 14px/1 var(--m5-body);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: background 0.2s;
}
.m5a-user:hover, .m5a-user[aria-expanded='true'] { background: #fff; }
.m5a-user > svg { width: 16px; height: 16px; transition: transform 0.25s var(--m5-ease); }
.m5a-user[aria-expanded='true'] > svg { transform: rotate(180deg); }

.m5a-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font: 700 14px/1 var(--m5-body); object-fit: cover; background: #888; }
.m5a-av.sm { width: 32px; height: 32px; font-size: 12px; }
.m5a-av.md { width: 44px; height: 44px; font-size: 15px; }

/* menuja */
.m5a-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; z-index: 80; padding: 8px; border-radius: 22px;
  background: #0b0b0d; color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-origin: top right; animation: m5a-pop 0.28s var(--m5-ease);
}
.m5a-menu[hidden] { display: none; }
@keyframes m5a-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.m5a-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; }
.m5a-menu-head b { display: block; font: 700 15px/1.2 var(--m5-body); }
.m5a-menu-head small { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.m5a-menu a, .m5a-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 0; background: none;
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font: 500 14px/1.2 var(--m5-body); cursor: pointer; text-align: left;
}
.m5a-menu a svg, .m5a-menu button svg { width: 18px; height: 18px; opacity: 0.7; }
.m5a-menu a em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.m5a-menu a:hover, .m5a-menu button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.m5a-menu hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 6px 4px; }

/* zilja + njoftimet */
.m5a-bell {
  position: relative; width: 40px; height: 40px; margin-right: 6px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.75); color: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: background 0.2s;
}
.m5a-bell:hover, .m5a-bell[aria-expanded='true'] { background: #fff; }
.m5a-bell svg { width: 20px; height: 20px; }
.m5a-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: #e5452f; color: #fff; font: 700 11px/1 var(--m5-body); font-style: normal; box-shadow: 0 0 0 2px #fff; animation: m5a-pop 0.3s var(--m5-ease);
}
.m5a-notes {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, calc(100vw - 24px)); z-index: 80; border-radius: 22px; overflow: hidden;
  background: #fff; color: #000; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06); animation: m5a-pop 0.28s var(--m5-ease);
  font-family: var(--m5-body);
}
.m5a-notes[hidden] { display: none; }
.m5a-notes-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.m5a-notes-head b { font: 800 22px/1 var(--m5-display); text-transform: uppercase; }
.m5a-notes-head span { font: 700 12px/1 var(--m5-body); color: #e5452f; }
.m5a-notes-list { max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 6px; }
.m5a-ntf { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 14px; color: #000; text-decoration: none; }
.m5a-ntf:hover { background: #f5f5f5; }
.m5a-ntf.new { background: rgba(43, 69, 201, 0.06); }
.m5a-ntf.new::after { content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #2b45c9; }
.m5a-ntf .m5a-av { width: 36px; height: 36px; }
.m5a-av-site { background: #000 !important; font: italic 800 13px/1 var(--m5-display) !important; }
.m5a-note-ic { position: absolute; left: 34px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.m5a-note-txt { font: 400 14px/1.4 var(--m5-body); padding-right: 16px; overflow-wrap: anywhere; }
.m5a-note-txt q { color: #555; }
.m5a-note-txt small { display: block; margin-top: 3px; font-size: 12px; color: #8e8e8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m5a-push-ask { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 0 12px 10px; padding: 14px 40px 14px 14px; border-radius: 16px; background: linear-gradient(135deg, #eef1fd, #f7f8fc); font: 400 13px/1.45 var(--m5-body); color: #3a3a3a; }
.m5a-push-ask > span { font-size: 22px; line-height: 1; }
.m5a-push-ask b { display: block; font: 700 14px/1.3 var(--m5-body); color: #000; }
.m5a-push-ask small { display: block; margin-top: 2px; font-size: 12.5px; color: #595959; }
.m5a-push-ask small b { display: inline; font-size: inherit; }
.m5a-push-on { margin-top: 10px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 600 13px/1 var(--m5-body); cursor: pointer; }
.m5a-push-on:hover { background: #1c1c1c; }
.m5a-push-ask .m5a-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #8a8a8a; cursor: pointer; font-size: 12px; }
.m5a-push-ask .m5a-x:hover { background: rgba(0, 0, 0, 0.06); color: #000; }
.m5a-notes-empty { padding: 24px 22px 28px; text-align: center; color: #8e8e8e; font: 400 14px/1.5 var(--m5-body); }
.m5a-notes-all { display: block; padding: 13px; text-align: center; border-top: 1px solid #efefef; color: #2b45c9; text-decoration: none; font: 700 13px/1 var(--m5-body); }
.m5a-notes-all:hover { background: #fafafa; }
@media (max-width: 520px) {
  .m5a-notes { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; }
}

/* Google */
.m5a-google { margin-bottom: 16px; }
.m5a-google[hidden] { display: none; }
.m5a-google-btn { display: flex; justify-content: center; min-height: 44px; max-width: 100%; overflow: hidden; color-scheme: light; } /* tema e erret: pa katror te bardhe pas butonit te Google */
.m5a-or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: rgba(0, 0, 0, 0.45); font: 600 12px/1 var(--m5-body); text-transform: uppercase; letter-spacing: 0.08em; }
.m5a-or::before, .m5a-or::after { content: ''; flex: 1; height: 1px; background: rgba(0, 0, 0, 0.1); }

/* ---------------- dritarja ---------------- */
html.m5a-lock { overflow: hidden; }
.m5a-modal {
  --m5-display: var(--display, 'Barlow Condensed', Impact, sans-serif);
  --m5-body: var(--body, 'Inter Tight', system-ui, sans-serif);
  --m5-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; font-family: var(--m5-body);
}
.m5a-bg { position: absolute; inset: 0; background: rgba(8, 8, 10, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s; }
.m5a-panel {
  position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; width: min(880px, 100%); max-height: calc(100vh - 40px);
  border-radius: 32px; overflow: hidden; background: #f4f1f0; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(20px) scale(0.98); transition: opacity 0.35s var(--m5-ease), transform 0.5s var(--m5-ease);
}
.m5a-modal.on .m5a-bg { opacity: 1; }
.m5a-modal.on .m5a-panel { opacity: 1; transform: none; }

.m5a-side {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 36px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #2a2c33 0%, #0b0b0d 60%);
}
.m5a-side::after {
  content: ''; position: absolute; right: -60px; bottom: -40px; width: 260px; height: 260px; transform: skewX(-20deg);
  background: linear-gradient(90deg, #56a6e6 0 33%, #2b45c9 33% 66%, #e5452f 66%); opacity: 0.9; pointer-events: none;
}
.m5a-side-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.m5a-side-top b { font: italic 800 24px/1 var(--m5-display); }
.m5a-side-top small { font: 600 11px/1 var(--m5-body); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.m5a-stripes { display: inline-flex; gap: 3px; transform: skewX(-20deg); }
.m5a-stripes i { display: block; width: 6px; height: 22px; }
.m5a-stripes i:nth-child(1) { background: #56a6e6; } .m5a-stripes i:nth-child(2) { background: #2b45c9; } .m5a-stripes i:nth-child(3) { background: #e5452f; }
.m5a-side-title { position: relative; z-index: 1; font: 800 46px/0.9 var(--m5-display); text-transform: uppercase; }
.m5a-perks { position: relative; z-index: 1; list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.m5a-perks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.m5a-perks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.m5a-side-foot { position: relative; z-index: 1; font: 600 12px/1 var(--m5-body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

.m5a-main { position: relative; padding: 40px 40px 34px; overflow-y: auto; }
.m5a-x {
  position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.06); color: #000; font-size: 24px; line-height: 1; transition: background 0.2s, transform 0.2s;
}
.m5a-x:hover { background: rgba(0, 0, 0, 0.12); transform: rotate(90deg); }
.m5a-title { font: 800 42px/0.92 var(--m5-display); text-transform: uppercase; color: #000; padding-right: 40px; }
.m5a-note { margin: 10px 0 22px; color: rgba(0, 0, 0, 0.58); font-size: 15px; line-height: 1.5; }

/* ---------------- format-et ---------------- */
.m5a-forms { font-family: var(--m5-body, 'Inter Tight', system-ui, sans-serif); color: #000; }
.m5a-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); margin-bottom: 22px; }
.m5a-tabs button { position: relative; z-index: 1; height: 42px; border: 0; background: none; border-radius: 999px; cursor: pointer; font: 600 14px/1 inherit; font-family: inherit; color: rgba(0, 0, 0, 0.55); transition: color 0.25s; }
.m5a-tabs button[aria-selected='true'] { color: #fff; }
.m5a-tab-ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #000; transition: transform 0.4s var(--m5-ease, ease); }
.m5a-forms[data-mode='register'] .m5a-tab-ink { transform: translateX(100%); }
.m5a-form { display: grid; gap: 14px; }
.m5a-form[hidden] { display: none; }
.m5a-form.shake { animation: m5a-shake 0.4s; }
@keyframes m5a-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.m5a-label { display: grid; gap: 7px; font: 600 13px/1.2 inherit; font-family: inherit; color: rgba(0, 0, 0, 0.75); }
.m5a-field { position: relative; display: flex; align-items: center; }
.m5a-field > svg { position: absolute; left: 15px; width: 18px; height: 18px; color: rgba(0, 0, 0, 0.4); pointer-events: none; transition: color 0.2s; }
.m5a-field input {
  width: 100%; height: 52px; padding: 0 46px 0 46px; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.12); background: #fff;
  font: 500 16px/1 inherit; font-family: inherit; color: #000; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.m5a-field input::placeholder { color: rgba(0, 0, 0, 0.32); }
.m5a-field input:focus { border-color: #000; box-shadow: 0 0 0 4px rgba(43, 69, 201, 0.12); }
.m5a-field:focus-within > svg { color: #000; }
.m5a-eye { position: absolute; right: 8px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: rgba(0, 0, 0, 0.45); display: grid; place-items: center; }
.m5a-eye:hover { background: rgba(0, 0, 0, 0.05); color: #000; }
.m5a-eye svg { width: 18px; height: 18px; }
.m5a-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.m5a-strength i { height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); transition: background 0.3s; }
.m5a-strength[data-s='1'] i:nth-child(-n + 1) { background: #e5452f; }
.m5a-strength[data-s='2'] i:nth-child(-n + 2) { background: #f39c12; }
.m5a-strength[data-s='3'] i:nth-child(-n + 3) { background: #56a6e6; }
.m5a-strength[data-s='4'] i { background: #1f9d55; }
.m5a-strength-txt { font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, 0.5); min-height: 14px; }
.m5a-row { display: flex; justify-content: space-between; margin-top: -4px; }
.m5a-link { font-size: 13px; font-weight: 600; color: #000; text-decoration: none; }
.m5a-link:hover { text-decoration: underline; }
.m5a-err { padding: 12px 14px; border-radius: 14px; background: rgba(229, 69, 47, 0.1); color: #b42318; font-size: 14px; font-weight: 500; line-height: 1.4; }
.m5a-err[hidden] { display: none; }
.m5a-submit {
  position: relative; height: 54px; border-radius: 16px; border: 0; cursor: pointer; overflow: hidden;
  background: #000; color: #fff; font: 700 16px/1 inherit; font-family: inherit; letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.m5a-submit::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #56a6e6 0 33%, #2b45c9 33% 66%, #e5452f 66%); }
.m5a-submit:hover { background: #161616; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24); }
.m5a-submit:active { transform: scale(0.98); }
.m5a-submit:disabled { cursor: default; opacity: 0.85; }
.m5a-spin { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: m5a-rot 0.7s linear infinite; }
.m5a-submit.busy span { visibility: hidden; }
.m5a-submit.busy .m5a-spin { display: block; }
@keyframes m5a-rot { to { transform: rotate(360deg); } }
.m5a-fine { font-size: 12px; line-height: 1.5; color: rgba(0, 0, 0, 0.5); text-align: center; }
.m5a-fine a { color: #000; }
.m5a-switch { font-size: 14px; color: rgba(0, 0, 0, 0.55); text-align: center; }
.m5a-switch button { border: 0; background: none; padding: 0; cursor: pointer; font: 700 14px/1 inherit; font-family: inherit; color: #000; text-decoration: underline; text-underline-offset: 3px; }
.m5a-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.m5a-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 250; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #000; color: #fff; padding: 14px 20px; border-radius: 999px; font: 600 14px/1.2 var(--body, system-ui); max-width: calc(100vw - 32px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); transition: 0.35s var(--ease, ease);
}
.m5a-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* faqja /account/ (forma brenda faqes) */
.b-acc-auth .m5a-forms { background: rgba(255, 255, 255, 0.6); border-radius: 30px; padding: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }

@media (max-width: 820px) {
  .m5a-modal { padding: 0; place-items: end center; }
  .m5a-panel { grid-template-columns: 1fr; width: 100%; max-height: 94vh; border-radius: 28px 28px 0 0; transform: translateY(40px); }
  .m5a-side { display: none; }
  .m5a-main { padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); }
  .m5a-main::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.15); margin: -14px auto 18px; }
  .m5a-title { font-size: 36px; }
  .m5a-user > span:not(.m5a-av), .m5a-user > svg { display: none; }
  .m5a-user { padding: 0 4px; }
  .m5a-signin { padding: 0 12px 0 10px; height: 36px; font-size: 13px; }
  .m5a-signin svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .m5a-panel, .m5a-bg, .m5a-menu, .m5a-tab-ink { transition: none; animation: none; }
}

/* "Forgot password" */
button.m5a-link { border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; }
.m5a-forms[data-mode='forgot'] :is(.m5a-tabs, .m5a-google) { display: none; }
.m5a-help { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.75; }
.m5a-ok { padding: 12px 14px; border-radius: 14px; background: rgba(31, 157, 85, 0.12); color: #13703c; font-size: 14px; line-height: 1.45; }
.m5a-ok[hidden] { display: none; }
html[data-theme='dark'] .m5a-ok { background: rgba(31, 157, 85, 0.18); color: #7ee2a8; }

/* konfirmimi i email-it pas regjistrimit */
.m5a-forms:is([data-mode='verify'], [data-mode='resend']) :is(.m5a-tabs, .m5a-google) { display: none; }
.m5a-verify { text-align: center; }
.m5a-verify-ic { width: 64px; height: 64px; margin: 4px auto 2px; display: grid; place-items: center; border-radius: 50%; background: rgba(43, 69, 201, 0.1); color: #2b45c9; }
.m5a-verify-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m5a-verify-t { margin: 0; font: 800 22px/1.1 var(--display, inherit); text-transform: uppercase; }
.m5a-verify .m5a-help { text-align: center; }
.m5a-submit.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.m5a-submit.ghost::after { display: none; }
html[data-theme='dark'] .m5a-verify-ic { background: rgba(86, 166, 230, 0.16); color: #8cc4f0; }
