.achieve-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.achieve-modal-overlay.open {
  display: flex;
}

.achieve-modal-box {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(8, 20, 40, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.25s ease;
  display: flex;
  flex-direction: column;
}

.amb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

.amb-image-shell {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  flex-shrink: 0;
}

.amb-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.amb-main-image.is-loading {
  opacity: 0;
}

.amb-image-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.amb-image-loader::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.16);
  border-top-color: #60a5fa;
  animation: spin 0.9s linear infinite;
}

.amb-content {
  padding: 24px 24px 28px;
}

.amb-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.amb-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #cbd5e1;
  margin: 0 0 20px;
}

.amb-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(96, 165, 250, 0.2);
}

.amb-copy-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.amb-copy-btn:hover {
  background: rgba(96, 165, 250, 0.22);
  transform: translateY(-1px);
}

/* ── Share Buttons ── */
.amb-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.amb-share-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: #fff;
}

.amb-share-btn-facebook {
  background: #1877f2;
  border-color: #1877f2;
}
.amb-share-btn-facebook:hover {
  background: #165ec4;
  transform: translateY(-2px);
}

.amb-share-btn-twitter {
  background: #1da1f2;
  border-color: #1da1f2;
}
.amb-share-btn-twitter:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
}

.amb-share-btn-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
}
.amb-share-btn-linkedin:hover {
  background: #084d9e;
  transform: translateY(-2px);
}

.amb-share-btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
}
.amb-share-btn-whatsapp:hover {
  background: #1fa857;
  transform: translateY(-2px);
}

.amb-share-btn-telegram {
  background: #0088cc;
  border-color: #0088cc;
}
.amb-share-btn-telegram:hover {
  background: #006ab3;
  transform: translateY(-2px);
}

.amb-share-btn-email {
  background: #ea4335;
  border-color: #ea4335;
}
.amb-share-btn-email:hover {
  background: #d33426;
  transform: translateY(-2px);
}

.amb-share-btn-copy {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}
.amb-share-btn-copy:hover {
  background: rgba(96, 165, 250, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .achieve-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .achieve-modal-box {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px;
    overflow-y: auto;
  }

  .amb-image-shell {
    height: auto;
    max-height: 46vh;
    min-height: 220px;
  }

  .amb-main-image {
    height: auto;
    max-height: 46vh;
    object-fit: contain;
  }

  .amb-content {
    padding: 16px 16px 20px;
  }

  .amb-title {
    font-size: 22px;
  }

  .amb-desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .amb-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
}

@keyframes fadeInUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
