:root {
  --cec-primary: #C97C5D;
  --cec-primary-dark: #8B5E3C;
  --cec-primary-light: #E6B7A9;
  --cec-primary-pale: #F2E4D7;
  --cec-text: #FFFFFF;
  --cec-text-dark: #2F1F17;
  --cec-text-muted: #5A463D;
  --cec-bg-light: #FFFFFF;
  --cec-surface: #FFFDFB;
  --cec-shadow: rgba(201, 124, 93, 0.15);
  --cec-shadow-strong: rgba(201, 124, 93, 0.25);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .body-profile {
    display: flex;
    justify-content: center;
  }

  .body-profile>div {
    width: 450px;
  }
}

.logo {
  width: 32px;
  height: 32px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--cec-primary);
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: var(--cec-primary-pale);
  color: var(--cec-text-dark);
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

.btn-primary {
  --bs-btn-bg: var(--cec-primary);
  --bs-btn-border-color: var(--cec-primary);
  --bs-btn-hover-bg: var(--cec-primary-dark);
  --bs-btn-hover-border-color: var(--cec-primary-dark);
  --bs-btn-active-bg: var(--cec-primary-dark);
  --bs-btn-active-border-color: var(--cec-primary-dark);
  --bs-btn-color: var(--cec-text);
}

.btn-outline-primary {
  --bs-btn-color: var(--cec-primary);
  --bs-btn-border-color: var(--cec-primary);
  --bs-btn-hover-bg: var(--cec-primary);
  --bs-btn-hover-border-color: var(--cec-primary);
  --bs-btn-active-bg: var(--cec-primary-dark);
  --bs-btn-active-border-color: var(--cec-primary-dark);
}

.text-primary {
  color: var(--cec-primary) !important;
}

.bg-primary {
  background-color: var(--cec-primary) !important;
}

.border-primary {
  border-color: var(--cec-primary) !important;
}

.link-primary {
  color: var(--cec-primary);
}

.link-primary:hover,
.link-primary:focus {
  color: var(--cec-primary-dark);
}

.cec-hero {
  background: var(--cec-text-dark);
  color: var(--cec-text);
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.cec-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  animation: hero-shine 15s linear infinite;
}

@keyframes hero-shine {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cec-hero-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  letter-spacing: 0;
  line-height: 0.95;
  position: relative;
  min-height: 4.5em;
}

.cec-hero-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-text-rotate 12s infinite;
}

.cec-hero-text:nth-child(1) {
  animation-delay: 0s;
}

.cec-hero-text:nth-child(2) {
  animation-delay: 3s;
}

.cec-hero-text:nth-child(3) {
  animation-delay: 6s;
}

.cec-hero-text:nth-child(4) {
  animation-delay: 9s;
}

@keyframes hero-text-rotate {
  0%, 25% {
    opacity: 1;
    transform: translateY(0);
  }
  33%, 100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.cec-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 640px;
  line-height: 1.6;
}

.cec-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cec-hero-btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 31, 23, 0.22);
}

.cec-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--cec-shadow-strong);
}

.cec-hero-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--cec-text);
}

.cec-hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cec-text);
  color: var(--cec-text);
}

.cec-hero-preview {
  width: min(100%, 430px);
  margin-left: auto;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 24px 60px rgba(47, 31, 23, 0.32);
  color: var(--cec-text-dark);
}

.cec-preview-header,
.cec-preview-link,
.cec-preview-pix {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cec-preview-header {
  margin-bottom: 1.25rem;
}

.cec-preview-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  background: var(--cec-primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.cec-preview-logo {
  width: 60px;
  height: 60px;
}

.cec-preview-header span,
.cec-preview-pix span {
  display: block;
  color: var(--cec-text-muted);
  font-size: 0.92rem;
}

.cec-preview-link {
  min-height: 54px;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: var(--cec-primary-pale);
  color: var(--cec-primary-dark);
  font-weight: 700;
}

.cec-preview-link svg,
.cec-preview-pix svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.cec-preview-pix {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--cec-primary-dark);
  color: white;
}

.cec-preview-pix span {
  color: rgba(255, 255, 255, 0.82);
}

.cec-hero-scroll {
  margin-top: 3rem;
}

.cec-hero-scroll svg {
  width: 2rem;
  height: 2rem;
  opacity: 0.82;
}

.cec-section {
  padding: 5rem 0;
  background: var(--cec-primary-pale);
  scroll-margin-top: 88px;
}

.cec-section-alt {
  background: #fffaf6;
}

.cec-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cec-text-dark);
  margin-bottom: 3rem;
  position: relative;
}

.cec-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--cec-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.cec-card {
  border: 1px solid rgba(139, 94, 60, 0.14);
  border-radius: 8px;
  background: var(--cec-surface);
  box-shadow: 0 8px 24px rgba(47, 31, 23, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(47, 31, 23, 0.14);
}

.cec-card-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--cec-primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.cec-card-icon-wrap-sm {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  margin: 0 auto 1.25rem;
}

.cec-card:hover .cec-card-icon-wrap {
  background: var(--cec-primary);
  transform: scale(1.1) rotate(5deg);
}

.cec-card-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--cec-primary);
  transition: all 0.3s ease;
}

.cec-card-icon-wrap-sm .cec-card-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.cec-card:hover .cec-card-icon {
  color: white;
}

.cec-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cec-text-dark);
  margin-bottom: 0.75rem;
}

.cec-card-text {
  color: var(--cec-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cec-card-compact .cec-card-title {
  font-size: 1.05rem;
}

.cec-step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--cec-primary-dark);
}

.cec-steps .cec-card-text {
  max-width: 13rem;
  margin-left: auto;
  margin-right: auto;
}

.cec-cta {
  background: var(--cec-text-dark);
  color: var(--cec-text);
  padding: 4rem 0;
  position: relative;
}

.cec-cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cec-cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cec-cta-btn {
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  background: white;
  color: var(--cec-primary);
  border: none;
  transition: all 0.3s ease;
}

.cec-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: white;
  color: var(--cec-primary-dark);
}

.cec-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--cec-primary-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cec-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.cec-navbar {
  background: var(--cec-text-dark);
  box-shadow: 0 8px 30px rgba(47, 31, 23, 0.18);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
}

.cec-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: all 0.3s ease;
}

.cec-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cec-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cec-brand-mark svg {
  width: 20px;
  height: 20px;
}

.cec-navbar .navbar-brand:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.cec-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.cec-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.cec-navbar .navbar-collapse {
  gap: 1rem;
}

.cec-navbar-links,
.cec-auth-nav {
  align-items: center;
  gap: 0.25rem;
}

.cec-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
}

.cec-navbar .nav-link:hover,
.cec-navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.cec-navbar .nav-link svg,
.cec-navbar-cta svg {
  width: 1rem;
  height: 1rem;
}

.cec-navbar-cta {
  border-radius: 999px;
  background: white;
  color: var(--cec-primary-dark);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
}

.cec-navbar-cta:hover,
.cec-navbar-cta:focus {
  background: var(--cec-primary-pale);
  color: var(--cec-text-dark);
}

.cec-logout-link {
  border: 0;
}

.cec-footer {
  background: var(--cec-text-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.cec-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cec-primary-light), transparent);
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cec-primary-dark);
}

.footer-logo svg {
  width: 22px;
  height: 22px;
}

.footer-heart {
  width: 14px;
  height: 14px;
  color: var(--cec-primary);
  display: inline-block;
  vertical-align: middle;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--cec-primary);
  transform: translateY(-3px);
}

.cec-footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  margin-left: 10px;
  display: block;
}

.cec-footer-tagline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 30rem;
}

.cec-footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.cec-footer-links a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cec-footer-links a:hover,
.cec-footer-links a:focus {
  color: white;
}

.cec-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.62);
}

.cec-footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.cec-footer-social a,
.cec-social-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cec-footer-social a:hover,
.cec-footer-social a:focus {
  background: var(--cec-primary);
  transform: translateY(-3px);
  color: white;
}

.cec-footer-social svg {
  width: 20px;
  height: 20px;
}

.cec-footer-social .bi {
  font-size: 1.25rem;
}

.cec-social-x {
  font-weight: 800;
  line-height: 1;
  display: none;
}

.main-content {
  background: var(--cec-primary-pale);
  min-height: 50vh;
}

.auth-page {
  min-height: calc(100vh - 300px);
  padding: 3rem 0;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.auth-header {
  background: var(--cec-primary);
  padding: 2rem;
  text-align: center;
}

.auth-header h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.auth-body {
  padding: 2rem;
}

.auth-btn {
  width: 100%;
  padding: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

.auth-divider span {
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.auth-body .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  background: white;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.auth-body .social-btn:hover {
  background: var(--cec-primary-pale);
  border-color: var(--cec-primary);
}

.auth-footer {
  text-align: center;
  padding: 1rem 2rem 2rem;
  background: var(--cec-primary-pale);
}

.auth-footer a {
  color: var(--cec-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.manage-page {
  padding: 2rem 0;
}

.manage-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: none;
  margin-bottom: 1.5rem;
}

.manage-card-header {
  background: transparent;
  border-bottom: 1px solid var(--cec-primary-pale);
  padding: 1.25rem 1.5rem;
}

.manage-card-header h4 {
  margin: 0;
  font-weight: 600;
  color: var(--cec-primary-dark);
}

.manage-card-body {
  padding: 1.5rem;
}

.manage-sidebar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.manage-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.manage-menu li {
  margin-bottom: 0.5rem;
}

.manage-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}

.manage-menu a:hover {
  background: var(--cec-primary-pale);
  color: var(--cec-primary);
}

.manage-menu a.active {
  background: var(--cec-primary);
  color: white;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cec-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

@media (max-width: 991.98px) {
  .cec-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(59, 35, 24, 0.35);
  }

  .cec-navbar-links,
  .cec-auth-nav {
    align-items: stretch;
    gap: 0.35rem;
  }

  .cec-navbar .nav-link,
  .cec-navbar-cta {
    width: 100%;
    justify-content: flex-start;
  }

  .cec-navbar-cta {
    margin-top: 0.35rem;
  }

  .cec-mobile-manage-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 0.45rem;
    padding-top: 0.75rem;
  }

  .cec-mobile-manage-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 1rem 0.35rem;
  }

  .cec-mobile-manage-link {
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
  }

  .cec-mobile-manage-link:hover,
  .cec-mobile-manage-link:focus,
  .cec-mobile-manage-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .cec-mobile-manage-link svg {
    height: 1rem;
    width: 1rem;
  }
}

@media (max-width: 768px) {
  .cec-hero {
    padding: 3.5rem 0 2.75rem;
  }

  .cec-hero-title {
    font-size: 3rem;
  }

  .cec-hero-actions {
    justify-content: center;
  }

  .cec-hero-btn {
    width: 100%;
    max-width: 320px;
  }

  .cec-hero-preview {
    margin: 0 auto;
  }

  .cec-card {
    text-align: left;
  }

  .cec-section {
    padding: 3rem 0;
  }

  .cec-section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .cec-footer {
    padding-top: 3.5rem;
  }

  .cec-footer-social {
    justify-content: center;
  }

  .cec-footer-tagline,
  .cec-footer-title,
  .cec-footer-links {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .cec-hero-title {
    font-size: 2.55rem;
  }

  .cec-hero-subtitle,
  .cec-cta-text {
    font-size: 1rem;
  }

  .cec-preview-header,
  .cec-preview-link,
  .cec-preview-pix {
    gap: 0.75rem;
  }
}

.profile-footer {
  padding: 3rem 1rem;
  text-align: center;
  margin-top: auto;
}

.profile-footer .footer-brand {
  margin-bottom: 0.5rem;
}

.profile-footer .brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cec-primary);
}

.profile-footer .footer-links {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.profile-footer .footer-links a {
  color: var(--cec-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.profile-footer .footer-links a:hover {
  color: var(--cec-primary);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--cec-surface);
  border: 1px solid var(--cec-primary-pale);
  border-radius: 12px;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.link-item:hover {
  border-color: var(--cec-primary);
  box-shadow: 0 4px 12px rgba(201, 124, 93, 0.15);
  transform: translateX(4px);
}

.link-item:active {
  cursor: grabbing;
}

.link-item.dragging {
  opacity: 0.5;
  background: var(--cec-primary-pale);
  border-style: dashed;
  transform: scale(1.02);
}

.link-item.drag-over {
  border-color: var(--cec-primary);
  border-width: 2px;
  background: var(--cec-primary-pale);
}

.link-item-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cec-primary-pale);
  border-radius: 10px;
  color: var(--cec-primary);
}

.link-item-icon svg {
  width: 20px;
  height: 20px;
}

.link-item-content {
  flex: 1;
  min-width: 0;
}

.link-item-title {
  font-weight: 600;
  color: var(--cec-text-dark);
  margin-bottom: 0.25rem;
}

.link-item-url {
  font-size: 0.85rem;
  color: var(--cec-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drag-handle {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cec-text-muted);
  cursor: grab;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.link-item:hover .drag-handle {
  opacity: 1;
  color: var(--cec-primary);
}

.drag-handle svg {
  width: 18px;
  height: 18px;
}

.no-links {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--cec-text-muted);
}

.no-links svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-links p {
  margin: 0;
}

.link-form-container {
  background: var(--cec-primary-pale);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.add-link-btn {
  width: 100%;
  padding: 0.875rem;
  border: 2px dashed var(--cec-primary);
  background: transparent;
  color: var(--cec-primary);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-link-btn:hover {
  background: var(--cec-primary-pale);
  border-color: var(--cec-primary-dark);
  color: var(--cec-primary-dark);
}

.admin-user-avatar,
.admin-detail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-avatar-placeholder,
.admin-detail-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cec-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cec-primary);
}

.admin-detail-avatar {
  width: 120px;
  height: 120px;
}

.admin-detail-avatar-placeholder {
  width: 120px;
  height: 120px;
  font-size: 3rem;
}

.table thead th {
  border-top: none;
  border-bottom: 2px solid var(--cec-primary-pale);
  color: var(--cec-primary-pale);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 10px;
  background-color: var(--cec-primary) !important;
}

.table thead th:first-child {
  border-top-left-radius: 12px;
}

.table thead th:last-child {
  border-top-right-radius: 12px;
}

.table tbody tr {
  border-bottom: 1px solid var(--cec-primary-pale);
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--cec-primary-pale);
}

.table tbody td {
  padding: 0.875rem 10px;
  vertical-align: middle;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cec-primary-pale);
}

.admin-detail-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cec-primary-pale);
}

.admin-detail-avatar-placeholder-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cec-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cec-primary);
  font-size: 2.5rem;
  margin: 0 auto;
}

.stat-box {
  background: var(--cec-primary-pale);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  display: inline-block;
  min-width: 100px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cec-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--cec-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--cec-primary-pale);
  gap: 1rem;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-label {
  font-weight: 600;
  color: var(--cec-text-muted);
  font-size: 0.85rem;
  flex: 0 0 140px;
}

.info-value {
  flex: 1;
  color: var(--cec-text-dark);
  font-size: 0.95rem;
  word-break: break-word;
}

.info-value code {
  background: var(--cec-primary-pale);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--cec-primary-dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cec-primary-pale);
  border-radius: 10px;
  border: 1px solid var(--cec-primary-pale);
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: var(--cec-primary);
  background: var(--cec-primary-pale);
  transform: translateY(-2px);
}

.link-order {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--cec-primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-info strong {
  display: block;
  color: var(--cec-text-dark);
  margin-bottom: 0.25rem;
}

.link-url {
  display: block;
  color: var(--cec-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-url:hover {
  color: var(--cec-primary);
}

.admin-page-header {
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--cec-primary-pale);
  box-shadow: 0 2px 8px rgba(201, 124, 93, 0.08);
}

.admin-page-header .row {
  align-items: center;
}

.btn-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cec-primary-pale);
  color: var(--cec-text-dark);
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-back:hover {
  background: var(--cec-primary);
  color: white;
  transform: translateX(-2px);
}

.btn-back i {
  font-size: 1.1rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cec-text-dark);
  margin: 0.5rem 0 0 0;
}

.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--cec-primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-view-profile:hover {
  background: var(--cec-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 124, 93, 0.3);
}

@media (max-width: 768px) {
  .admin-page-header {
    padding: 1rem;
  }

  .admin-page-title {
    font-size: 1.25rem;
  }

  .btn-view-profile span {
    display: none;
  }

  .btn-view-profile {
    padding: 0.625rem;
  }
}

/* Color Picker Styles */
.color-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.color-input-wrapper .color-picker {
  width: 60px;
  height: 38px;
  padding: 2px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.color-input-wrapper .color-hex {
  flex: 1;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

/* Shadow Input Styles */
.shadow-input-wrapper {
  background: #f8f9fa;
}

.shadow-input-wrapper .shadow-color-picker {
  width: 100%;
  height: 45px;
  padding: 2px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
}

.shadow-input-wrapper .form-range {
  cursor: pointer;
}

.shadow-preview {
  width: 100%;
  height: 50px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: box-shadow 0.2s ease;
}

/* Theme Preview Card */
.theme-preview-card {
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.theme-preview-card:hover {
  border-color: var(--cec-primary);
  transform: translateY(-2px);
}

.theme-preview-card.active {
  border-color: var(--cec-primary);
  box-shadow: 0 4px 12px rgba(201, 124, 93, 0.2);
}

/* Theme Preview Swatches */
.theme-palette-swatch {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-palette-swatch:hover {
  transform: scale(1.15);
}

#theme-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-color: var(--cec-primary-pale) !important;
}