.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .share-overlay {
    padding: 0;
  }
}

.modal {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  color: #1e293b;
  border-radius: 4px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  position: relative;
  scrollbar-width: none;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: hidden;
}

.modal.dark {
  background: #000;
}

@media (max-width: 600px) {
  .modal {
    padding: 1rem;
  }
}

.modal .headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .modal .headerRow {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 16px;
    position: relative;
  }
}

.modal .toggleTheme {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.modal .toggleTheme:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.modal .titleSection {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.modal .titleSection .title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.modal .titleSection .subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.modal .close {
  font-size: 28px !important;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.modal .close:hover {
  color: #111827;
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .modal .close {
    position: absolute;
    right: 20px;
    top: 10px;
    text-align: end;
  }
}

.modal .urlBox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin: 20px 0;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .modal .urlBox {
    flex-direction: column;
    align-items: stretch;
  }
}

.modal .urlBox input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal .urlBox input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.modal .urlBox button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.modal .urlBox button i {
  font-size: 16px;
}

.modal .urlBox button:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.modal .urlBox button:active {
  transform: scale(0.97);
}

.modal .buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.modal .buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff !important;
  height: 50px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  width: 100% !important;
}

.modal .buttons button i {
  font-size: 18px;
  color: #ffffff !important;
}

.modal .buttons button:nth-child(1) {
  background-color: #1877f2 !important;
}
.modal .buttons button:nth-child(2) {
  background-color: #1da1f2 !important;
}
.modal .buttons button:nth-child(3) {
  background-color: #0077b5 !important;
}
.modal .buttons button:nth-child(4) {
  background-color: #25d366 !important;
}
.modal .buttons button:nth-child(5) {
  background-color: #0088cc !important;
}
.modal .buttons button:nth-child(6) {
  background-color: #6c757d !important;
}
.modal .buttons button:nth-child(7) {
  background-color: #bd081c !important;
}
.modal .buttons button:nth-child(8) {
  background-color: #ff4500 !important;
}
.modal .buttons button:nth-child(9) {
  background-color: #00c300 !important;
}
.modal .buttons button:nth-child(10) {
  background-color: #35465c !important;
}
.modal .buttons button:nth-child(11) {
  background-color: #665cac !important;
}
.modal .buttons button:nth-child(12) {
  background-color: #ed812b !important;
}
.modal .buttons button:nth-child(13) {
  background-color: #1f1f1f !important;
}
.modal .buttons button:nth-child(14) {
  background-color: #ef3f56 !important;
}
.modal .buttons button:nth-child(15) {
  background-color: #00a4de !important;
}

.modal .buttons button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}

.modal .buttons .SmsShareButton {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: #34b7f1;
  color: #fff;
  height: 50px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  width: 100% !important;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal .buttons .SmsShareButton {
    display: inline-flex;
  }
}

.modal .buttons .SmsShareButton i {
  font-size: 1rem;
}

.modal .buttons .SmsShareButton:hover {
  background-color: #1a99d5;
}

.modal .extraButtons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.modal .extraButtons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #4a4a4a;
  height: 50px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  width: 100% !important;
}

.modal .extraButtons button i {
  font-size: 18px;
  color: #ffffff !important;
}

.modal .extraButtons button:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal .extraButtons button:nth-child(1) {
  background-color: #4caf50;
}
.modal .extraButtons button:nth-child(2) {
  background-color: #d32f2f;
}
.modal .extraButtons button:nth-child(3) {
  background-color: #1976d2;
}

.modal .qrBarcodeWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
}

.modal .qr,
.modal .barcode {
  flex: 1 1 100%;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.modal .barcode svg {
  width: 100% !important;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}

.modal .qrWrapper {
  padding: 16px;
  background: #f7f7f7;
  border-radius: 10px;
}

.modal .qr button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #00a4de;
  color: #fff;
  border: none;
  padding: 12px 24px !important;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100% !important;
}

.modal .qr button i {
  color: #fff !important;
  font-size: 18px !important;
}

.modal .qr button:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .share-overlay {
    padding: 0;
  }
  .modal .qr,
  .modal .barcode {
    flex: 1 1 calc(50% - 12px);
  }
}
