* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #1e90ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-overlay p {
  margin-top: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Tabs for profile steps */
.profile-steps {
  display: flex;
  gap: 1rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tab-link {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.tab-link.active {
  color: #2c3e50;
  border-color: #1e90ff;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* Card-like grouping for sections (to mirror the screenshot) */
.section-card {
  background: #e9ecef;
  border: 1px solid #dfe3e6;
  border-radius: 8px;
  padding: 1rem;
}

/* Ensure spacing between section-cards inside step */
#step2-panel .section-card + .section-card {
  margin-top: 1rem;
}

/* Password field with visibility toggle */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 44px; /* space for the eye button */
}

.toggle-visibility {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dee2e6;
  border: 1px solid #cfd4d9;
  border-radius: 6px;
  color: #495057;
  cursor: pointer;
}

.toggle-visibility i { font-size: 0.9rem; }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

.sidebar {
  width: 100%;
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  background: #27508e;
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.logo img {
  margin: auto;
  max-width: 100%;
  height: auto;
}

.user-profile {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #3498db;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-name {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  color: #fff;
  font-weight: 600;
}

.user-email {
  font-size: 0.9rem;
  color: #ecf0f1;
  margin: 0.25rem 0;
  word-break: break-all;
}

#dashui a{
  text-decoration: none;
  color: white;
  font-weight: 600;
}

#dashui{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2980b9;
  padding: 16px 20px;
  border-radius: 12px;

}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #3498db;
}

.contact-detail {
  margin-bottom: 1rem;
}

.contact-detail label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

.contact-detail span {
  font-weight: 500;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  width: 100%;
  overflow-y: auto;
  background: #f9f9f9;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-row.double {
  grid-template-columns: 1fr;
}

.form-row.single {
  grid-template-columns: 1fr;
}

/* Tablet and larger */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row.double {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    flex-direction: row;
  }
  
  .sidebar {
    width: 300px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
  }
  
  .main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .form-row.double {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c !important;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}

/* Error Messages */
.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
  animation: fadeIn 0.3s ease-in-out;
  font-weight: 500;
  padding-left: 0.25rem;
}

/* Success States */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #2ecc71 !important;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232ecc71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}

/* Animation for messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Message container */
.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  line-height: 1.5;
}

.message.error {
  background-color: #fdecea;
  color: #c62828;
  border-left: 4px solid #e53935;
  display: block;
}

.message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #43a047;
  display: block;
}

/* Form feedback */
.form-feedback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.form-feedback.error {
  color: #e74c3c;
  background-color: #fdecea;
  border-left: 3px solid #e53935;
}

.form-feedback.success {
  color: #2e7d32;
  background-color: #e8f5e9;
  border-left: 3px solid #43a047;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.file-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.file-input .file-btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 576px) {
  .file-input {
    flex-direction: row;
    align-items: center;
  }
  
  .file-input .file-btn {
    width: auto;
  }
}

.file-btn {
  background: #3498db;
  color: white;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.file-btn:hover {
  background: #2980b9;
}

.file-status {
  font-size: 0.9rem;
  color: #666;
}

.form-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-session-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

#auth-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#auth-status i {
  font-size: 2rem;
  color: #6c757d;
  min-width: 2rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 0.4;
}

#logged-in-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

#logged-in-email {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 400;
  word-break: break-all;
}

/* Hover effect for the user info */
#auth-status:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#auth-status {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  color: #495057;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#auth-status:before {
  content: '•';
  color: #28a745;
  font-size: 1.5rem;
  line-height: 1;
}

.sign-out-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.sign-out-btn:hover {
  background-color: #c0392b;
}

.sign-out-btn i {
  font-size: 0.9em;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #27ae60;
  color: white;
}

.btn-primary:hover {
  background: #219a54;
}

.btn-secondary {
  background: #e74c3c;
  color: white;
}

.btn-secondary:hover {
  background: #c0392b;
}

.btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

#auth-status {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

#message-container {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: none;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.loading {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Footer Styles */
.gigstm-footer {
  background: #2c5aa0;
  color: white;
  padding: 2rem 0 0;
  margin-top: auto;
  width: 100%;
  min-height: 200px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-section .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-section .contact-item i {
  width: 16px;
  color: white;
}

.social-section {
  margin-top: 1.5rem;
}

.social-section p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:before {
  content: '›';
  margin-right: 0.5rem;
  font-weight: bold;
}

.footer-links a:hover {
  color: #87ceeb;
}

.footer-bottom {
  background: #1a1a1a;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #ccc;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .footer-section {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Progress Bar Styles */
.progress-container {
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e90ff, #00d4ff);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

#progress-percentage {
  color: #1e90ff;
  font-weight: 600;
}

/* Unlock Button Styles */
.unlock-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 20px;
  background-color: #e0e0e0;
  color: #666;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.unlock-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.unlock-button:not(:disabled) {
  background: linear-gradient(135deg, #1e90ff, #00d4ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.unlock-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.5);
}

.unlock-button:not(:disabled):active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .unlock-button {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* File Preview UI */
.file-preview {
  display: none;
  width: 100%;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px;
  margin-top: 10px;
}

.file-preview.visible {
  display: block;
}

.preview-placeholder {
  color: #6c757d;
  font-size: 0.9rem;
}

.image-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.pdf-card .pdf-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fdecea;
  color: #c62828;
}

.pdf-filename {
  flex: 1;
  font-size: 0.95rem;
  color: #2c3e50;
  word-break: break-all;
}

.preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preview-actions .view-btn {
  background: #1e90ff;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.preview-actions .change-btn {
  background: #3498db;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.preview-actions .remove-btn {
  background: #e74c3c;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.preview-error {
  color: #e74c3c;
  background-color: #fdecea;
  border-left: 3px solid #e53935;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Thumbnail */
.thumbnail {
  max-height: 110px;
}
.thumbnail img {
  max-height: 110px;
}

/* Modal Overlay */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.preview-overlay.visible {
  display: flex;
}

.preview-modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  overflow: hidden;
  position: relative;
  animation: zoomIn 0.25s ease-out;
}

.modal-body {
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.modal-body iframe {
  width: 90vw;
  max-width: 900px;
  height: 80vh;
  border: none;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e9ecef;
  border: 1px solid #cfd4d9;
  color: #2c3e50;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* File Preview Styles */
.file-preview {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-preview img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  border: 1px solid #ddd;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-preview .pdf-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  color: #495057;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
}

.file-preview .pdf-preview:hover {
  background: #e2e6ea;
  color: #212529;
}

.file-preview .pdf-preview i {
  color: #dc3545; /* PDF Red */
  font-size: 1.2rem;
}

/* Image Modal Styles */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-content {
  position: relative;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-overlay.active .image-modal-content {
  transform: scale(1);
}

.image-modal-content img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  object-fit: contain;
  background: #fff;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 30px;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .image-modal-close {
    top: -40px;
    right: 0;
    background: transparent;
  }
}
