/* =============================================================================
   Amar Khulna Core — Forms, Auth, User Dashboard, Photo Upload & Blood Widget
   Fluid Responsive Design (320px – 1920px+ | Portrait & Landscape)
   ============================================================================= */

.ak-form {
  --ak-form-green: #075d3a;
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

.ak-form *,
.ak-auth-grid *,
.ak-auth-wrapper *,
.ak-own-listings *,
.ak-account-stats *,
.ak-account-tabs *,
.ak-profile-grid * {
  box-sizing: border-box;
}

.ak-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.ak-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.ak-field--wide {
  grid-column: 1 / -1;
}

.ak-field label,
.ak-location-fields legend {
  font-weight: 700;
  color: #153f31;
  font-size: 0.93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ak-field label > span,
.ak-location-fields legend > span {
  color: #d32f2f;
}

.ak-field input:not([type="checkbox"]):not([type="radio"]),
.ak-field select,
.ak-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1.5px solid #cdded5;
  border-radius: 10px;
  background: #fff;
  color: #173e31;
  padding: 10px 13px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ak-field textarea {
  resize: vertical;
  min-height: 120px;
}

.ak-field select {
  padding-right: 30px;
  text-overflow: ellipsis;
}

.ak-field input:focus-visible,
.ak-field select:focus-visible,
.ak-field textarea:focus-visible,
.ak-checkbox input:focus-visible {
  outline: 3px solid rgba(7, 93, 58, 0.22);
  outline-offset: 1px;
  border-color: #075d3a;
}

.ak-field select:disabled {
  background: #f2f6f3;
  color: #6f8177;
}

.ak-field small,
.ak-form-note,
.ak-location-fields > small {
  color: #566e62;
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ak-form-intro {
  margin-bottom: 20px;
}

.ak-form-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: #075d3a;
  line-height: 1.4;
}

.ak-form-intro p {
  color: #50695b;
  line-height: 1.75;
  margin: 0;
}

.ak-location-fields {
  border: 1px solid #dce9e1;
  border-radius: 12px;
  padding: clamp(12px, 2.5vw, 16px);
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background: #fbfdfc;
}

.ak-location-fields legend {
  padding: 0 6px;
}

.ak-location-fields .ak-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ak-location-fields > small {
  display: block;
  margin-top: 10px;
}

.ak-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.65;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ak-checkbox input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  accent-color: #075d3a;
  margin: 3px 0 0;
}

.ak-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 46px;
  max-width: 100%;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: #075d3a;
  color: #fff !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(7, 93, 58, 0.16);
  transition: background 0.18s ease, transform 0.18s ease;
}

.ak-form-button:hover {
  background: #05482c;
  transform: translateY(-1px);
}

.ak-form-button:focus-visible,
.ak-form-secondary:focus-visible,
.ak-own-actions a:focus-visible {
  outline: 3px solid #91cdb2;
  outline-offset: 3px;
}

.ak-form-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ak-form-secondary {
  justify-self: start;
  color: #075d3a;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ak-form-secondary:hover {
  text-decoration: underline;
}

.ak-alert {
  border: 1px solid #d3e6dc;
  border-radius: 12px;
  background: #f2f8f4;
  color: #244f3b;
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 18px);
  margin: 0 0 20px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ak-alert--error {
  background: #fff4f3;
  border-color: #f0c6c2;
  color: #8f2625;
}

.ak-alert--success {
  background: #edf8f0;
  border-color: #b8dfc4;
  color: #185e37;
}

.ak-alert:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.ak-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ak-extra-fields {
  border: 1px solid #dce9e1;
  border-radius: 12px;
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 18px);
}

.ak-extra-fields summary {
  cursor: pointer;
  color: #075d3a;
  font-weight: 700;
  padding: 4px 0;
}

.ak-extra-fields[open] summary {
  margin-bottom: 16px;
}

/* Auth & Account Dashboard */
.ak-auth-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-width: 0;
}

.ak-auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}

.ak-auth-panel {
  padding: clamp(16px, 4vw, 26px);
  border: 1.5px solid #dce9e1;
  border-radius: 16px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 6px 20px rgba(7, 93, 58, 0.06);
}

.ak-auth-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  color: #075d3a;
}

.ak-auth-panel > p {
  color: #566e62;
  line-height: 1.65;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.ak-account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ak-account-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  overflow-wrap: anywhere;
}

.ak-account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ak-account-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #dce9e1;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ak-account-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  color: #566e62;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ak-account-tab:hover {
  color: #075d3a;
  background: #f2f8f4;
}

.ak-account-tab.is-active {
  color: #075d3a;
  background: #edf8f0;
  border-bottom-color: #075d3a;
}

.ak-tab-badge {
  background: #c33339;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 2px;
}

.ak-form-eyebrow {
  color: #075d3a;
  font-size: 0.85rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.ak-account-actions {
  display: flex;
  gap: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.ak-own-listings {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.ak-own-listings > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #dce9e1;
  min-width: 0;
}

.ak-own-listings h4 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.ak-own-listings small {
  display: block;
  color: #566e62;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.ak-status {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff1cd;
  color: #725409;
}

.ak-status--publish {
  background: #e5f5ea;
  color: #22693c;
}

.ak-status--draft {
  background: #eef1f4;
  color: #445564;
}

.ak-own-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ak-own-actions a {
  color: #075d3a;
  font-weight: 600;
  font-size: 0.9rem;
}

.ak-account-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ak-account-pagination .page-numbers {
  padding: 7px 12px;
  border: 1px solid #d3e6dc;
  border-radius: 7px;
  color: #075d3a;
  text-decoration: none;
}

.ak-account-pagination .current {
  background: #075d3a;
  color: #fff;
}

.ak-notices {
  display: grid;
  gap: 18px;
}

.ak-notice {
  padding: clamp(14px, 3vw, 20px);
  border: 1px solid #dce9e1;
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}

.ak-notice h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.ak-notice-content {
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.ak-notice-content img {
  max-width: 100%;
  height: auto;
}

/* Smartphone Photo Upload */
.ak-photo-field {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: clamp(12px, 3vw, 18px);
  border: 1.5px solid #cdded5;
  border-radius: 14px;
  background: #f7fbf8;
}

.ak-photo-field legend {
  padding: 0 6px;
  color: #153f31;
  font-weight: 700;
}

.ak-photo-field .ak-checkbox {
  margin-top: 14px;
}

.ak-photo-field input[type="file"] {
  padding: 8px;
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-photo-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 10px;
  background: #e5f2e9;
  color: #075d3a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ak-photo-preview,
.ak-photo-current {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.ak-photo-preview[hidden] {
  display: none;
}

.ak-photo-preview img,
.ak-photo-current img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 3px 14px rgba(21, 63, 49, 0.12);
  flex-shrink: 0;
}

.ak-photo-preview span {
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
  font-size: 0.88rem;
  color: #153f31;
  font-weight: 600;
}

.ak-photo-current .ak-checkbox {
  flex: 1;
  min-width: min(100%, 180px);
}

.ak-photo-field [role="status"] {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #075d3a;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ak-photo-field [role="status"]:empty {
  display: none;
}

.ak-photo-field .ak-photo-error {
  color: #b91c1c;
}

.ak-photo-field .ak-form-note {
  margin-bottom: 0;
}

/* Dynamic Listing Type Selector */
.ak-type-selector-wrap {
  margin-bottom: 20px;
  border: 1px solid #dce9e1;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 18px);
  background: #fbfdfc;
  min-width: 0;
}

.ak-type-selector-legend {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #075d3a;
  margin-bottom: 4px;
}

.ak-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ak-type-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e1ece6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  min-width: 0;
}

.ak-type-card:hover {
  border-color: #075d3a;
  background: #f7fbf9;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(7, 93, 58, 0.07);
}

.ak-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ak-type-card.is-selected {
  border-color: #075d3a;
  background: #edf8f0;
  box-shadow: 0 0 0 1px #075d3a;
}

.ak-type-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.ak-type-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ak-type-text strong {
  font-size: 0.86rem;
  color: #153f31;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ak-type-text small {
  font-size: 0.74rem;
  color: #566e62;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ak-type-fieldset {
  grid-column: 1 / -1;
  border: 1px solid #dce9e1;
  border-radius: 12px;
  padding: clamp(12px, 3vw, 18px);
  margin: 8px 0;
  background: #fbfdfc;
  min-width: 0;
}

.ak-type-fieldset legend {
  font-weight: 700;
  color: #075d3a;
  padding: 0 6px;
  font-size: 0.95rem;
}

.ak-type-group[hidden] {
  display: none !important;
}

.ak-type-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
}

.ak-status--correction {
  background: #fff2f0;
  color: #c33339;
  border: 1px solid #f9c2be;
}

.ak-correction-alert {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff5f5;
  border-left: 3px solid #c33339;
  border-radius: 4px;
  font-size: 12.5px;
  color: #8f2625;
}

/* Password, Auth Tabs, Profile & Saved Grids */
.ak-password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.ak-password-input-wrap input {
  padding-right: 46px !important;
}

.ak-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 6px;
  color: #566e62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ak-toggle-password:hover {
  color: #075d3a;
  background: #eef6f2;
}

.ak-strength-meter {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ak-strength-bar-wrap {
  height: 5px;
  width: 100%;
  background: #e1ece6;
  border-radius: 3px;
  overflow: hidden;
}

.ak-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}

.ak-strength-text {
  font-size: 0.78rem;
  font-weight: 700;
}

.ak-auth-tab-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
  background: #eef6f2;
  padding: 5px;
  border-radius: 12px;
}

.ak-auth-tab-btn {
  padding: 9px 10px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #466355;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-width: 0;
}

.ak-auth-tab-btn.is-active,
.ak-auth-tab-btn:hover {
  background: #075d3a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(7, 93, 58, 0.18);
}

.ak-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  min-width: 0;
}

.ak-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  min-width: 0;
}

.ak-saved-card {
  background: #fff;
  border: 1px solid #dce9e1;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  transition: box-shadow 0.2s ease;
}

.ak-saved-card:hover {
  box-shadow: 0 4px 14px rgba(7, 93, 58, 0.08);
}

.ak-ref-badge {
  display: inline-block;
  font-size: 11px;
  background: #f0f4f2;
  padding: 2px 8px;
  border-radius: 4px;
  color: #284e3a;
  font-family: monospace;
  font-weight: 700;
}

/* Emergency Blood Assistance Widget */
.ak-emergency-blood-widget {
  background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
  border: 1.5px solid #f5c6cb;
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 22px);
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.06);
}

.ak-ebw-badge {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ak-ebw-header h3 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  color: #8e1620;
}

.ak-ebw-header p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #5c4548;
  line-height: 1.65;
}

.ak-ebw-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.ak-ebw-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ak-ebw-btn:hover {
  transform: translateY(-2px);
}

.ak-ebw-btn-need {
  background: #d32f2f;
  color: #fff !important;
  border: 1.5px solid #b71c1c;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.ak-ebw-btn-donate {
  background: #075d3a;
  color: #fff !important;
  border: 1.5px solid #05482c;
  box-shadow: 0 4px 12px rgba(7, 93, 58, 0.18);
}

.ak-ebw-btn-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.ak-ebw-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ak-ebw-btn-copy strong {
  font-size: 0.96rem;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

.ak-ebw-btn-copy small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.ak-ebw-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #f1cfd4;
  text-align: right;
}

.ak-ebw-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #b71c1c;
  text-decoration: none;
}

.ak-ebw-link:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .ak-location-fields .ak-form-grid {
    grid-template-columns: 1fr;
  }
  .ak-own-listings > li {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .ak-account-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .ak-account-actions .ak-form-button {
    width: 100%;
  }
  /* Keep form inputs at 16px on mobile to prevent involuntary browser zoom when keyboard opens */
  .ak-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .ak-field select,
  .ak-field textarea {
    font-size: 16px;
  }
  /* Ensure submit button stays accessible above mobile nav and keyboard */
  .ak-form button[type="submit"],
  .ak-form .ak-form-button {
    scroll-margin-bottom: 110px;
  }
}

@media (max-width: 600px) {
  .ak-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ak-form-button {
    width: 100%;
    justify-self: stretch;
  }
  .ak-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ak-type-card {
    padding: 9px 10px;
    gap: 8px;
  }
  .ak-type-text small {
    display: none;
  }
  .ak-account-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .ak-account-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  .ak-type-grid {
    grid-template-columns: 1fr;
  }
  .ak-auth-tab-switch {
    grid-template-columns: 1fr;
  }
  .ak-account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ak-photo-field input[type="file"] {
    font-size: 0.82rem;
  }
  .ak-photo-field input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 6px 0;
  }
}

/* ==========================================================================
   AMAR KHULNA v5.7.0 — GOOGLE SIGN-IN & ONE-CLICK REGISTRATION BUTTON
   Full-width, touch-friendly, responsive (320px - 430px+ mobile & desktop),
   official multicolor Google G icon + subtle Bengali divider.
   ========================================================================== */
.ak-google-auth-block {
  width: 100%;
  margin: 4px 0 18px 0;
  box-sizing: border-box;
}

.ak-google-signin-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 12px 18px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.ak-google-signin-btn:hover {
  background: #F8FAFC !important;
  border-color: #075D3A !important;
  color: #075D3A !important;
  box-shadow: 0 6px 18px rgba(7, 93, 58, 0.12) !important;
  transform: translateY(-1px);
}

.ak-google-signin-btn:active {
  transform: translateY(0) scale(0.99);
  background: #F1F5F9 !important;
}

.ak-google-signin-btn:focus-visible {
  outline: 2.5px solid #075D3A !important;
  outline-offset: 2px !important;
}

.ak-google-signin-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

.ak-google-signin-icon svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
}

.ak-google-signin-text {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-align: center;
}

.ak-google-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 18px 0 6px 0 !important;
  box-sizing: border-box !important;
}

.ak-google-divider-line {
  flex: 1 1 0% !important;
  height: 1px !important;
  background: #DCE7E1 !important;
}

.ak-google-divider-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #566E62 !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}

.ak-google-admin-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 6px;
}

.ak-google-admin-warning-head {
  font-size: 12.5px;
  line-height: 1.5;
  color: #92400E;
  margin-bottom: 10px;
}

.ak-google-admin-warning-head strong {
  display: block;
  margin-bottom: 2px;
  color: #78350F;
}

@media (max-width: 480px) {
  .ak-google-signin-btn {
    min-height: 50px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }

  .ak-google-divider {
    gap: 9px !important;
    margin: 16px 0 4px 0 !important;
  }

  .ak-google-divider-label {
    font-size: 12.2px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (max-width: 359px) {
  .ak-google-signin-btn {
    min-height: 46px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  .ak-google-divider-label {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   AMAR KHULNA v6.1.0 — COMPACT ACCOUNT DASHBOARD & PREMIUM LOGOUT BUTTON UI
   Scoped strictly to Account Dashboard (.ak-acc-*, .ak-account-stats, .ak-logout-btn)
   ========================================================================== */

.ak-acc-compact-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid #DFEAE3;
}

.ak-acc-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EEF7F2;
  border: 1px solid #D5E6DC;
  color: #075B40 !important;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: background 0.16s ease, transform 0.14s ease;
}

.ak-acc-back-btn:hover {
  background: #E0F1E8;
  transform: translateX(-1px);
}

.ak-acc-page-title {
  margin: 0;
  font-size: clamp(1.12rem, 2.6vw, 1.38rem);
  font-weight: 800;
  color: #13392B;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
}

.ak-acc-google-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ECFDF5;
  color: #075B40;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Compact User Profile Summary Card */
.ak-acc-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F5FAF7;
  border: 1px solid #DFEAE3;
  border-radius: 13px;
  padding: 11px 13px;
  margin: 0 0 12px 0;
  min-width: 0;
}

.ak-acc-avatar-wrap {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}

.ak-acc-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #075B40;
  display: block;
}

.ak-acc-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #E3F3EB;
  color: #075B40;
  border: 1.5px solid #BFE0CF;
}

.ak-acc-user-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.ak-acc-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.ak-acc-user-name {
  margin: 0 !important;
  font-size: clamp(1rem, 2.4vw, 1.16rem) !important;
  font-weight: 800 !important;
  color: #13392B !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}

.ak-acc-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
}

.ak-acc-role-badge.is-super {
  background: #064E3B;
  color: #ECFDF5;
  border: 1px solid #047857;
}

.ak-acc-role-badge.is-admin {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.ak-acc-role-badge.is-member {
  background: #E8F2EC;
  color: #295240;
  border: 1px solid #CBE0D4;
}

.ak-acc-user-sub {
  margin: 0;
  font-size: 12.2px;
  color: #5B7065;
  line-height: 1.35;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  overflow-wrap: anywhere;
}

.ak-acc-dot {
  opacity: 0.6;
}

/* Compact Statistics Grid (4 columns on desktop, strictly 2 columns on mobile) */
.ak-account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px 0;
}

.ak-acc-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #DFEAE3;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
  box-shadow: 0 2px 6px rgba(19, 57, 43, 0.03);
}

.ak-acc-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 34px;
  background: #EEF7F2;
  color: #075B40;
}

.ak-acc-stat-card.is-live .ak-acc-stat-icon {
  background: #ECFDF5;
  color: #15803D;
}

.ak-acc-stat-card.is-pending .ak-acc-stat-icon {
  background: #FFFBEB;
  color: #B45309;
}

.ak-acc-stat-card.is-notif .ak-acc-stat-icon {
  background: #F0F9FF;
  color: #0369A1;
}

.ak-acc-stat-card.is-notif.has-unread {
  border-color: #FECACA;
  background: #FFFDFD;
}

.ak-acc-stat-card.is-notif.has-unread .ak-acc-stat-icon {
  background: #FEF2F2;
  color: #B91C1C;
}

.ak-acc-stat-card.is-correction {
  background: #FFF5F5;
  border-color: #FECACA;
}

.ak-acc-stat-card.is-correction .ak-acc-stat-icon {
  background: #FEE2E2;
  color: #B91C1C;
}

.ak-acc-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.ak-acc-stat-num {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  color: #13392B;
  line-height: 1.15;
}

.ak-acc-stat-card.is-live .ak-acc-stat-num {
  color: #15803D;
}

.ak-acc-stat-card.is-pending .ak-acc-stat-num {
  color: #B45309;
}

.ak-acc-stat-card.is-notif.has-unread .ak-acc-stat-num,
.ak-acc-stat-card.is-correction .ak-acc-stat-num {
  color: #B91C1C;
}

.ak-acc-stat-label {
  display: block;
  font-size: 11.8px;
  font-weight: 600;
  color: #5B7065;
  line-height: 1.25;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* Account Actions & Premium Logout Button */
.ak-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px 0 !important;
}

.ak-acc-mgmt-btn {
  background: #075B40 !important;
  color: #FFFFFF !important;
  border: 1px solid #064E32 !important;
  border-radius: 11px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(7, 91, 64, 0.16) !important;
}

.ak-acc-mgmt-btn:hover {
  background: #054831 !important;
}

.ak-acc-submit-btn {
  border-radius: 11px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
}

.ak-acc-pass-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #F5FAF7;
  border: 1px solid #DFEAE3;
  color: #13392B !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ak-acc-pass-link:hover {
  background: #E8F3EC;
  border-color: #C5DBD0;
}

/* Premium Logout Button ("লগআউট করুন") */
.ak-logout-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  background: #FEF2F2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease !important;
  margin-left: auto;
}

.ak-logout-btn:hover {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
  color: #991B1B !important;
}

.ak-logout-btn:active {
  transform: scale(0.99);
}

.ak-logout-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ak-logout-btn-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Mobile Responsive Account Layout (320px - 767px) */
@media (max-width: 767px) {
  .ak-account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .ak-acc-stat-card {
    padding: 9px 10px !important;
    gap: 8px !important;
    border-radius: 11px !important;
  }

  .ak-acc-stat-icon {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
    border-radius: 8px !important;
  }

  .ak-acc-stat-num {
    font-size: 1.12rem !important;
  }

  .ak-acc-stat-label {
    font-size: 11.2px !important;
  }

  .ak-account-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .ak-account-actions .ak-form-button,
  .ak-account-actions .ak-acc-pass-link,
  .ak-account-actions .ak-logout-btn,
  .ak-profile-panel .ak-logout-btn {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   AMAR KHULNA v6.3.0 — COMPACT MOBILE-FIRST 6-DIGIT EMAIL OTP PASSWORD RESET UI
   Brand Palette: #075B40 (Primary), #087A58 (Secondary), #F5FAF7 (Bg), #FFFFFF
   ========================================================================== */

.ak-otp-reset-wrapper {
  max-width: 460px !important;
  margin: 12px auto 32px auto !important;
}

.ak-otp-panel {
  background: #FFFFFF !important;
  border: 1.5px solid #DFEAE3 !important;
  border-radius: 16px !important;
  padding: clamp(16px, 4vw, 24px) !important;
  box-shadow: 0 8px 24px rgba(7, 91, 64, 0.06) !important;
}

.ak-otp-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E6F0EA;
}

.ak-otp-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ak-otp-shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F5FAF7;
  border: 1px solid #D5E6DC;
  color: #075B40;
  flex-shrink: 0;
}

.ak-otp-heading {
  margin: 0 !important;
  font-size: clamp(1.18rem, 3vw, 1.38rem) !important;
  font-weight: 800 !important;
  color: #075B40 !important;
  line-height: 1.25 !important;
}

.ak-otp-step-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ak-otp-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  border-radius: 8px;
  background: #F5FAF7;
  border: 1px solid #DFEAE3;
  color: #5B7065;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s ease;
}

.ak-otp-step-pill.is-active {
  background: #075B40;
  border-color: #075B40;
  color: #FFFFFF;
}

.ak-otp-step-pill.is-done {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #087A58;
}

.ak-otp-desc {
  margin: 0 0 4px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  color: #466053 !important;
}

.ak-otp-change-email-btn {
  background: none;
  border: 0;
  padding: 0 2px;
  color: #087A58;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Dynamic Status Alert Box */
.ak-otp-status-box {
  margin: 0 0 14px 0;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid #D3E6DC;
  background: #F5FAF7;
  color: #13392B;
}

.ak-otp-status-box.is-success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.ak-otp-status-box.is-error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

/* 6-Digit OTP Input Boxes */
.ak-otp-digits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.ak-otp-digit-input {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #075B40 !important;
  background: #F5FAF7 !important;
  border: 1.8px solid #C5DBD0 !important;
  border-radius: 11px !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease !important;
}

.ak-otp-digit-input:focus {
  background: #FFFFFF !important;
  border-color: #075B40 !important;
  box-shadow: 0 0 0 3px rgba(7, 91, 64, 0.16) !important;
  outline: none !important;
}

/* Countdown & Resend Row */
.ak-otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #F5FAF7;
  border: 1px solid #DFEAE3;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.83rem;
  color: #466053;
}

.ak-otp-expiry-tag strong,
.ak-otp-cooldown-text strong {
  color: #075B40;
  font-weight: 800;
}

.ak-otp-resend-btn {
  background: #ECFDF5;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  padding: 5px 10px;
  color: #075B40;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ak-otp-resend-btn:hover:not(:disabled) {
  background: #D1FAE5;
}

.ak-otp-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Primary Submit Button & Loading Spinner */
.ak-otp-submit-btn {
  width: 100% !important;
  min-height: 46px !important;
  background: #075B40 !important;
  border-radius: 11px !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  justify-content: center !important;
  margin-top: 2px;
}

.ak-otp-submit-btn:hover:not(:disabled) {
  background: #087A58 !important;
}

.ak-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: akOtpSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes akOtpSpin {
  to { transform: rotate(360deg); }
}

.ak-otp-footer-nav {
  text-align: center;
  padding-top: 4px;
}

.ak-otp-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #075B40 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
}

.ak-otp-back-link:hover {
  color: #087A58 !important;
  text-decoration: underline !important;
}

/* Step 4 Success Screen */
.ak-otp-success-screen {
  text-align: center;
  padding: 12px 6px 6px;
}

.ak-otp-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #087A58;
  color: #075B40;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ak-otp-success-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #075B40;
}

.ak-otp-success-text {
  margin: 0 0 18px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #466053;
}

.ak-otp-login-btn {
  width: 100% !important;
  justify-content: center !important;
  background: #075B40 !important;
  border-radius: 11px !important;
  min-height: 46px !important;
}

/* Mobile Responsive Adjustments (320px - 767px) — Prevent Overlap with Bottom Nav & Messenger */
@media (max-width: 767px) {
  .ak-otp-reset-wrapper {
    margin: 6px auto 96px auto !important;
  }

  .ak-otp-panel {
    padding: 14px 12px 18px !important;
    border-radius: 14px !important;
  }

  .ak-otp-digits-grid {
    gap: 6px;
  }

  .ak-otp-digit-input {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 1.2rem !important;
    border-radius: 9px !important;
  }
}

@media (max-width: 359px) {
  .ak-otp-digits-grid {
    gap: 4px;
  }

  .ak-otp-digit-input {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 1.1rem !important;
  }

  .ak-otp-step-pill {
    font-size: 10.5px;
    padding: 4px 3px;
  }
}
