/* Design System & Root Variables */
:root {
  /* Color Palette - Light Theme (Default) */
  --bg-base: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.4);
  --card-border: rgba(255, 255, 255, 0.5);
  --card-shadow: rgba(148, 163, 184, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --link-bg: rgba(255, 255, 255, 0.5);
  --link-bg-hover: rgba(255, 255, 255, 0.85);
  --link-border: rgba(255, 255, 255, 0.6);
  --link-border-hover: rgba(99, 102, 241, 0.4);
  --link-shadow-hover: rgba(99, 102, 241, 0.1);
  
  --icon-bg: rgba(99, 102, 241, 0.1);
  --icon-color: #4f46e5;
  
  --mesh-color-1: rgba(199, 210, 254, 0.6); /* Indigo 200 */
  --mesh-color-2: rgba(245, 208, 254, 0.6); /* Fuchsia 200 */
  --mesh-color-3: rgba(253, 230, 138, 0.5); /* Amber 200 */
  
  --btn-action-bg: rgba(255, 255, 255, 0.5);
  --btn-action-hover: rgba(255, 255, 255, 0.8);
  
  --toast-bg: rgba(15, 23, 42, 0.9);
  --toast-color: #ffffff;
  
  /* Fonts */
  --font-primary: 'Outfit', 'Noto Sans KR', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Color Palette - Dark Theme */
  --bg-base: #090d16;
  --card-bg: rgba(17, 24, 39, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --link-bg: rgba(31, 41, 55, 0.4);
  --link-bg-hover: rgba(31, 41, 55, 0.7);
  --link-border: rgba(255, 255, 255, 0.05);
  --link-border-hover: rgba(129, 140, 248, 0.4);
  --link-shadow-hover: rgba(129, 140, 248, 0.15);
  
  --icon-bg: rgba(129, 140, 248, 0.15);
  --icon-color: #a5b4fc;
  
  --mesh-color-1: rgba(30, 27, 75, 0.5);  /* Deep Indigo */
  --mesh-color-2: rgba(70, 20, 100, 0.45); /* Deep Purple */
  --mesh-color-3: rgba(17, 45, 90, 0.5);   /* Deep Blue */
  
  --btn-action-bg: rgba(31, 41, 55, 0.4);
  --btn-action-hover: rgba(31, 41, 55, 0.7);
  
  --toast-bg: rgba(255, 255, 255, 0.95);
  --toast-color: #0f172a;
}

[data-theme="light"] {
  /* Explicit light theme values (matches root defaults) */
  --bg-base: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.4);
  --card-border: rgba(255, 255, 255, 0.5);
  --card-shadow: rgba(148, 163, 184, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --link-bg: rgba(255, 255, 255, 0.5);
  --link-bg-hover: rgba(255, 255, 255, 0.85);
  --link-border: rgba(255, 255, 255, 0.6);
  --link-border-hover: rgba(99, 102, 241, 0.4);
  --link-shadow-hover: rgba(99, 102, 241, 0.1);
  
  --icon-bg: rgba(99, 102, 241, 0.1);
  --icon-color: #4f46e5;
  
  --mesh-color-1: rgba(199, 210, 254, 0.6);
  --mesh-color-2: rgba(245, 208, 254, 0.6);
  --mesh-color-3: rgba(253, 230, 138, 0.5);
  
  --btn-action-bg: rgba(255, 255, 255, 0.5);
  --btn-action-hover: rgba(255, 255, 255, 0.8);
  
  --toast-bg: rgba(15, 23, 42, 0.9);
  --toast-color: #ffffff;
}

[data-theme="royal"] {
  /* Royal Navy Theme */
  --bg-base: #0a1128;
  --card-bg: rgba(13, 27, 42, 0.65);
  --card-border: rgba(65, 90, 119, 0.35);
  --card-shadow: rgba(0, 0, 0, 0.45);
  
  --text-primary: #e0e1dd;
  --text-secondary: #8d99ae;
  --text-muted: #6c757d;
  
  --link-bg: rgba(27, 38, 59, 0.5);
  --link-bg-hover: rgba(27, 38, 59, 0.85);
  --link-border: rgba(65, 90, 119, 0.2);
  --link-border-hover: rgba(141, 153, 174, 0.5);
  --link-shadow-hover: rgba(141, 153, 174, 0.15);
  
  --icon-bg: rgba(224, 225, 220, 0.1);
  --icon-color: #e0e1dd;
  
  --mesh-color-1: rgba(13, 27, 42, 0.8);
  --mesh-color-2: rgba(27, 38, 59, 0.8);
  --mesh-color-3: rgba(65, 90, 119, 0.6);
  
  --btn-action-bg: rgba(27, 38, 59, 0.5);
  --btn-action-hover: rgba(27, 38, 59, 0.8);
  
  --toast-bg: rgba(224, 225, 220, 0.95);
  --toast-color: #0a1128;
}

[data-theme="sunset"] {
  /* Sunset Amber Theme */
  --bg-base: #1c0a1a;
  --card-bg: rgba(45, 13, 33, 0.6);
  --card-border: rgba(244, 63, 94, 0.25);
  --card-shadow: rgba(0, 0, 0, 0.5);
  
  --text-primary: #fff1f2;
  --text-secondary: #fecdd3;
  --text-muted: #fda4af;
  
  --link-bg: rgba(136, 19, 55, 0.35);
  --link-bg-hover: rgba(136, 19, 55, 0.65);
  --link-border: rgba(244, 63, 94, 0.15);
  --link-border-hover: rgba(251, 146, 60, 0.55);
  --link-shadow-hover: rgba(251, 146, 60, 0.2);
  
  --icon-bg: rgba(251, 146, 60, 0.2);
  --icon-color: #fb923c;
  
  --mesh-color-1: rgba(136, 19, 55, 0.6);
  --mesh-color-2: rgba(196, 64, 48, 0.5);
  --mesh-color-3: rgba(120, 10, 80, 0.5);
  
  --btn-action-bg: rgba(136, 19, 55, 0.4);
  --btn-action-hover: rgba(136, 19, 55, 0.7);
  
  --toast-bg: rgba(254, 243, 199, 0.95);
  --toast-color: #1c0a1a;
}

[data-theme="forest"] {
  /* Forest Green Theme */
  --bg-base: #06140e;
  --card-bg: rgba(9, 29, 20, 0.65);
  --card-border: rgba(52, 211, 153, 0.2);
  --card-shadow: rgba(0, 0, 0, 0.5);
  
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: #86efac;
  
  --link-bg: rgba(6, 78, 59, 0.45);
  --link-bg-hover: rgba(6, 78, 59, 0.75);
  --link-border: rgba(52, 211, 153, 0.1);
  --link-border-hover: rgba(52, 211, 153, 0.45);
  --link-shadow-hover: rgba(52, 211, 153, 0.2);
  
  --icon-bg: rgba(52, 211, 153, 0.2);
  --icon-color: #6ee7b7;
  
  --mesh-color-1: rgba(6, 78, 59, 0.6);
  --mesh-color-2: rgba(2, 44, 34, 0.7);
  --mesh-color-3: rgba(4, 120, 87, 0.5);
  
  --btn-action-bg: rgba(6, 78, 59, 0.4);
  --btn-action-hover: rgba(6, 78, 59, 0.7);
  
  --toast-bg: rgba(240, 253, 244, 0.95);
  --toast-color: #06140e;
}

[data-theme="lavender"] {
  /* Pastel Lilac Theme */
  --bg-base: #f5f3ff;
  --card-bg: rgba(255, 255, 255, 0.45);
  --card-border: rgba(221, 214, 254, 0.55);
  --card-shadow: rgba(109, 40, 217, 0.12);
  
  --text-primary: #4c1d95;
  --text-secondary: #6d28d9;
  --text-muted: #7c3aed;
  
  --link-bg: rgba(255, 255, 255, 0.6);
  --link-bg-hover: rgba(255, 255, 255, 0.9);
  --link-border: rgba(221, 214, 254, 0.65);
  --link-border-hover: rgba(167, 139, 250, 0.55);
  --link-shadow-hover: rgba(167, 139, 250, 0.12);
  
  --icon-bg: rgba(139, 92, 246, 0.12);
  --icon-color: #8b5cf6;
  
  --mesh-color-1: rgba(237, 233, 254, 0.6);
  --mesh-color-2: rgba(245, 243, 255, 0.6);
  --mesh-color-3: rgba(219, 234, 254, 0.5);
  
  --btn-action-bg: rgba(255, 255, 255, 0.55);
  --btn-action-hover: rgba(255, 255, 255, 0.85);
  
  --toast-bg: rgba(76, 29, 149, 0.95);
  --toast-color: #ffffff;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
  transition: background-color var(--transition-slow);
}

/* Hide elements visually but keep accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Dynamic Mesh Gradient Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(90px);
  background-color: var(--bg-base);
  transition: background-color var(--transition-slow);
}

.mesh-ball {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transition: background-color var(--transition-slow);
}

[data-theme="dark"] .mesh-ball {
  mix-blend-mode: screen; /* Brighter blending in dark mode */
}

.ball-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background-color: var(--mesh-color-1);
  animation: float-1 25s ease-in-out infinite alternate;
}

.ball-2 {
  bottom: -15%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background-color: var(--mesh-color-2);
  animation: float-2 30s ease-in-out infinite alternate;
}

.ball-3 {
  top: 30%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background-color: var(--mesh-color-3);
  animation: float-3 20s ease-in-out infinite alternate;
}

/* Background Animations */
@keyframes float-1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(8%, 10%) rotate(90deg) scale(1.1); }
  100% { transform: translate(-5%, 5%) rotate(180deg) scale(0.9); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-10%, -8%) rotate(-120deg) scale(0.9); }
  100% { transform: translate(5%, -15%) rotate(-240deg) scale(1.15); }
}

@keyframes float-3 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(12%, -12%) scale(1.1); }
  100% { transform: translate(-10%, 10%) scale(1); }
}

/* Main Container Layout */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card */
.profile-card {
  width: 100%;
  max-width: 430px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 40px 32px 32px 32px;
  box-shadow: 0 20px 40px var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: background var(--transition-slow), border var(--transition-slow), box-shadow var(--transition-normal);
  
  /* Initial load animation */
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Buttons Area */
.card-actions {
  position: absolute;
  top: 24px;
  width: calc(100% - 48px);
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}

.card-actions-right {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: var(--btn-action-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--btn-action-hover);
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn .icon {
  width: 18px;
  height: 18px;
}

/* Theme Icon Display logic */
.sun-icon {
  display: none;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}

/* Profile Header Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  cursor: pointer;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.avatar-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #d946ef);
  z-index: 1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--transition-normal);
}

.avatar-wrapper:hover .profile-avatar {
  transform: scale(1.05);
}

.avatar-wrapper:hover .avatar-glow {
  opacity: 0.6;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--transition-slow);
}

.profile-tagline {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--icon-color);
  margin-bottom: 12px;
  transition: color var(--transition-slow);
}

.profile-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
  transition: color var(--transition-slow);
}

/* Links List Section */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.links-section.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.link-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  padding: 16px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Modern hover border animation effect */
.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #6366f1, #a855f7);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.link-item:hover {
  background: var(--link-bg-hover);
  border-color: var(--link-border-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 20px -5px var(--link-shadow-hover);
}

.link-item:hover::before {
  opacity: 1;
}

.link-item:active {
  transform: translateY(-1px);
}

.link-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all var(--transition-normal);
}

.link-item:hover .link-icon-bg {
  transform: scale(1.08);
}

.link-icon {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  transition: color var(--transition-slow);
}

.link-title {
  grid-column: 2;
  font-size: 16px;
  font-weight: 600;
}

.chevron-icon {
  grid-column: 3;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.link-item:hover .chevron-icon {
  transform: translateX(3px);
  opacity: 1;
  color: var(--icon-color);
}

/* Footer & Social Icons */
.profile-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-item:hover {
  background: var(--link-bg-hover);
  border-color: var(--link-border-hover);
  color: var(--icon-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px -4px var(--link-shadow-hover);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.copyright {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition-slow);
}

/* Toast Styling */
.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--toast-bg);
  color: var(--toast-color);
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  pointer-events: none;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modal Overlay & Box Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-box {
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px var(--card-shadow);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
  color: var(--text-primary);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
}

.modal-title-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body-view {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 6px;
}

/* Custom Scrollbar for Modal Body */
.modal-body-view::-webkit-scrollbar {
  width: 6px;
}

.modal-body-view::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body-view::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 10px;
}

.modal-body-view::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.modal-description-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Form Styling */
.editor-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .col {
  flex: 1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--icon-color);
  background: var(--link-bg-hover);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.text-area {
  resize: vertical;
  min-height: 72px;
}

.form-error-msg {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
  margin-top: 4px;
  display: none;
}

.form-error-msg.show {
  display: block;
}

/* Section Header & Title */
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--icon-color);
  margin: 24px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
  letter-spacing: 0.5px;
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px 0;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 6px;
}

.form-section-header .form-section-title {
  margin: 0;
  border: none;
  padding: 0;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--icon-color);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  transition: opacity var(--transition-fast);
}

.btn-text-action:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Buttons */
.btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--icon-color);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--link-bg);
  color: var(--text-primary);
  border: 1px solid var(--link-border);
}

.btn-secondary:hover {
  background: var(--link-bg-hover);
  transform: translateY(-1px);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.modal-actions-single {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.modal-actions-single .btn {
  width: 100%;
}

/* Dynamic Links List in Editor */
.editor-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-edit-card {
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  padding: 16px;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-remove-link {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.btn-remove-link:hover {
  opacity: 1;
}

/* PC & Mobile Responsive Adjustments */
@media (max-width: 500px) {
  .profile-container {
    padding: 16px;
  }
  
  .profile-card {
    border-radius: 24px;
    padding: 36px 20px 24px 20px;
    border-width: 1px;
  }

  .modal-box {
    padding: 20px;
    border-radius: 20px;
    max-height: 90vh;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .card-actions {
    top: 20px;
    width: calc(100% - 24px);
    padding: 0 4px;
  }
  
  .link-item {
    padding: 14px 16px;
    border-radius: 16px;
  }
  
  .link-icon-bg {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }
  
  .link-title {
    font-size: 15px;
  }
  
  .link-subtitle {
    font-size: 11px;
  }
  
  .social-item {
    width: 40px;
    height: 40px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  .mesh-ball, 
  .profile-card,
  .action-btn,
  .profile-avatar,
  .avatar-glow,
  .link-item,
  .link-icon-bg,
  .chevron-icon,
  .social-item,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}
