/* ============================================
   PROFIL DESA - DESIGN SYSTEM
   Premium Government Website Theme
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ---- CSS Variables ---- */
:root {
  --primary: #15803d;
  --primary-light: #22c55e;
  --primary-dark: #166534;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  --secondary: #0f766e;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --dark: #1e293b;
  --dark-2: #334155;
  --dark-3: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--dark);
  background: var(--gray-50);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ---- Top Bar ---- */
.top-bar {
  background: linear-gradient(135deg,
      var(--primary-900) 0%,
      var(--primary-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 6px 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar i {
  margin-right: 4px;
}

/* ---- Navbar ---- */
.navbar-desa {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1040;
}

.navbar-desa.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.navbar-desa .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-desa .navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.navbar-desa .nav-link {
  color: var(--dark-2) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-desa .nav-link:hover,
.navbar-desa .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-50);
}

.navbar-desa .dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 8px;
}

.navbar-desa .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.88rem;
  transition: var(--transition);
}

.navbar-desa .dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary);
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg,
      var(--primary-900) 0%,
      var(--primary-dark) 40%,
      var(--secondary) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 0 120px;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 550px;
  line-height: 1.8;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.hero-btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}

.hero-btn-primary:hover {
  background: var(--primary-100);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.hero-stats-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.hero-stats-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.hero-stats-card .stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---- Section Styles ---- */
.section-padding {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-50);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

/* ---- Cards ---- */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-200);
}

.card-modern .card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-modern .card-body {
  padding: 24px;
}

.card-modern .card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.card-modern .card-text {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.card-modern .card-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-modern .card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-modern .card-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Stat Cards ---- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
      var(--primary) 0%,
      var(--primary-light) 100%);
  border-radius: 4px 0 0 4px;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stat-card .stat-icon.bg-green {
  background: var(--primary-100);
  color: var(--primary);
}

.stat-card .stat-icon.bg-blue {
  background: #dbeafe;
  color: #2563eb;
}

.stat-card .stat-icon.bg-amber {
  background: #fef3c7;
  color: #d97706;
}

.stat-card .stat-icon.bg-rose {
  background: #ffe4e6;
  color: #e11d48;
}

.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---- Quick Access Menu ---- */
.quick-menu-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.quick-menu-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--primary-200);
}

.quick-menu-item .menu-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.quick-menu-item:hover .menu-icon {
  transform: scale(1.1);
}

.quick-menu-item .menu-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
}

@media (max-width: 576px) {
  .quick-menu-item {
    padding: 16px 8px;
  }
  .quick-menu-item .menu-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .quick-menu-item .menu-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* ---- Sambutan Section ---- */
.sambutan-section {
  background: var(--white);
}

.sambutan-photo {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--white);
  outline: 2px solid var(--primary-200);
}

.sambutan-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.sambutan-content .nama-kades {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ---- Footer ---- */
.footer-desa {
  background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-desa h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.footer-desa a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desa a:hover {
  color: var(--primary-light);
}

.footer-desa .footer-links li {
  margin-bottom: 10px;
}

.footer-desa .footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-desa .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}

.footer-desa .social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  margin-right: 8px;
  transition: var(--transition);
}

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

/* ---- Buttons ---- */
.btn-desa {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-desa-primary {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-light) 100%);
  color: white;
}

.btn-desa-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(22, 163, 74, 0.5);
  color: white;
}

.btn-desa-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-desa-outline:hover {
  background: var(--primary);
  color: white;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg,
      var(--primary-900) 0%,
      var(--primary-dark) 50%,
      var(--secondary) 100%);
  padding: 100px 0 100px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  background: none;
  margin: 0;
  padding: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Budget Progress ---- */
.budget-progress {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.budget-progress .progress {
  height: 10px;
  border-radius: 10px;
  background: var(--gray-200);
}

.budget-progress .progress-bar {
  border-radius: 10px;
  background: linear-gradient(90deg,
      var(--primary) 0%,
      var(--primary-light) 100%);
}

/* ---- Org Chart ---- */
.org-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.org-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.org-card .org-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.org-card .org-name {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.org-card .org-jabatan {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Leaflet Map ---- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
}

.map-fullpage {
  height: calc(100vh - 200px);
  min-height: 500px;
}

.map-legend {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Budget Item Cards ---- */
.budget-item-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.budget-item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
  transform: translateY(-3px);
}

.budget-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.budget-sub-stat {
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.budget-sub-stat .label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.budget-sub-stat .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-section {
    min-height: auto;
    padding: 80px 0 150px;
  }

  .hero-stats-card {
    padding: 16px;
  }

  .hero-stats-card .stat-number {
    font-size: 1.6rem;
  }

  .hero-stats-card .stat-label {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-padding {
    padding: 50px 0;
  }

  .page-header {
    padding: 80px 0 80px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card .stat-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-section {
    padding: 60px 0 160px;
  }

  .hero-stats-card {
    padding: 12px 10px;
  }

  .hero-stats-card .stat-number {
    font-size: 1.35rem;
  }

  .hero-stats-card .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-card .stat-value {
    font-size: 0.9rem;
    letter-spacing: -0.3px;
  }

  .budget-item-card {
    padding: 18px;
  }
}

@media (max-width: 1199.98px) {
  .navbar-desa .navbar-collapse {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    border: 1px solid var(--gray-200);
  }
  .navbar-desa .nav-link {
    padding: 10px 15px !important;
    margin-bottom: 4px;
  }
  .navbar-desa .dropdown-menu {
    box-shadow: none;
    border: none;
    background: var(--gray-50);
    margin-top: 0;
    padding-left: 15px;
  }
  .navbar-desa .nav-item.ms-xl-2 {
    margin-left: 0 !important;
    margin-top: 8px;
  }
  .navbar-desa .btn-desa-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Medsos Cards ---- */
.medsos-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.medsos-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition);
}

.medsos-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* WhatsApp Theme */
.medsos-whatsapp::before { background: #22c55e; }
.medsos-whatsapp .medsos-icon-container { background: #dcfce7; color: #16a34a; }
.medsos-whatsapp .btn-medsos { background: #22c55e; color: white; }
.medsos-whatsapp .btn-medsos:hover { background: #16a34a; box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4); }
.medsos-whatsapp:hover { border-color: #22c55e; box-shadow: 0 15px 30px rgba(34, 197, 94, 0.15); }

/* Facebook Theme */
.medsos-facebook::before { background: #1877f2; }
.medsos-facebook .medsos-icon-container { background: #dbeafe; color: #1877f2; }
.medsos-facebook .btn-medsos { background: #1877f2; color: white; }
.medsos-facebook .btn-medsos:hover { background: #166fe5; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.medsos-facebook:hover { border-color: #1877f2; box-shadow: 0 15px 30px rgba(24, 119, 242, 0.15); }

/* Instagram Theme */
.medsos-instagram::before { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.medsos-instagram .medsos-icon-container { background: #ffe4e6; color: #db2777; }
.medsos-instagram .btn-medsos { background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%); color: white; }
.medsos-instagram .btn-medsos:hover { opacity: 0.9; box-shadow: 0 5px 15px rgba(219, 39, 119, 0.4); }
.medsos-instagram:hover { border-color: #db2777; box-shadow: 0 15px 30px rgba(219, 39, 119, 0.15); }

/* TikTok Theme */
.medsos-tiktok::before { background: #000000; }
.medsos-tiktok .medsos-icon-container { background: #f1f5f9; color: #000000; border: 1px solid #e2e8f0; }
.medsos-tiktok .btn-medsos { background: #000000; color: white; }
.medsos-tiktok .btn-medsos:hover { background: #1e293b; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); }
.medsos-tiktok:hover { border-color: #000000; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }

/* YouTube Theme */
.medsos-youtube::before { background: #ff0000; }
.medsos-youtube .medsos-icon-container { background: #ffe4e6; color: #ff0000; }
.medsos-youtube .btn-medsos { background: #ff0000; color: white; }
.medsos-youtube .btn-medsos:hover { background: #cc0000; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }
.medsos-youtube:hover { border-color: #ff0000; box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15); }

/* Twitter Theme */
.medsos-twitter::before { background: #0f172a; }
.medsos-twitter .medsos-icon-container { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }
.medsos-twitter .btn-medsos { background: #0f172a; color: white; }
.medsos-twitter .btn-medsos:hover { background: #1e293b; box-shadow: 0 5px 15px rgba(15, 23, 42, 0.4); }
.medsos-twitter:hover { border-color: #0f172a; box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15); }

/* Website & Default Theme */
.medsos-website::before, .medsos-other::before { background: var(--primary); }
.medsos-website .medsos-icon-container, .medsos-other .medsos-icon-container { background: var(--primary-50); color: var(--primary); }
.medsos-website .btn-medsos, .medsos-other .btn-medsos { background: var(--primary); color: white; }
.medsos-website .btn-medsos:hover, .medsos-other .btn-medsos:hover { background: var(--primary-dark); box-shadow: 0 5px 15px rgba(21, 128, 61, 0.4); }
.medsos-website:hover, .medsos-other:hover { border-color: var(--primary); box-shadow: 0 15px 30px rgba(21, 128, 61, 0.15); }

.medsos-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0;
    transition: var(--transition);
}

.medsos-card:hover .medsos-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.medsos-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.medsos-handle {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
    font-weight: 500;
}

.btn-medsos {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: var(--transition);
}

/* ---- Loading Overlay ---- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
}

.loading-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-width: 480px;
  width: 90%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
}

.loading-overlay.show .loading-content {
  transform: scale(1);
}

/* ---- Hero Accent Button ---- */
.hero-btn-accent {
  background: var(--accent);
  color: var(--white) !important;
}

.hero-btn-accent:hover {
  background: var(--accent-light);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- Premium Modal Styles ---- */
.modal-content-premium {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
}

.modal-header-premium {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px;
}

.modal-body-premium {
  padding: 24px;
}

@media (max-width: 576px) {
  .modal-header-premium {
    padding: 12px 16px;
  }
  .modal-header-premium .modal-title {
    font-size: 1.0rem !important;
  }
  .modal-body-premium {
    padding: 15px 16px;
  }
  .modal-body-premium .form-label {
    font-size: 0.78rem !important;
    margin-bottom: 4px !important;
  }
  .modal-body-premium .form-control {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
  }
  .modal-body-premium .form-text {
    font-size: 0.65rem !important;
    margin-top: 3px !important;
    line-height: 1.25;
  }
  .modal-body-premium .invalid-feedback {
    font-size: 0.68rem !important;
    margin-top: 3px !important;
  }
  .modal-body-premium .alert-warning {
    font-size: 0.68rem !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    line-height: 1.35;
  }
  .modal-body-premium button[type="submit"] {
    font-size: 0.82rem !important;
    padding: 10px 20px !important;
    width: 100%; /* Make button full width on mobile for better tapping target */
    justify-content: center !important; /* Center text and icon on mobile when width is 100% */
  }
  /* Loading overlay text adjustments on mobile */
  .loading-content {
    padding: 24px 16px !important;
  }
  .loading-content h4 {
    font-size: 1.15rem !important;
  }
  .loading-content p {
    font-size: 0.8rem !important;
  }
  
  /* Custom upload and preview responsive styles */
  .custom-upload-zone {
    padding: 16px 12px;
  }
  .custom-upload-content i {
    font-size: 1.8rem;
  }
  .custom-upload-text {
    font-size: 0.8rem;
  }
  .custom-upload-subtext {
    font-size: 0.68rem;
  }
  .upload-preview-name {
    font-size: 0.78rem;
  }
  .upload-preview-size {
    font-size: 0.68rem;
  }
  .upload-preview-img {
    width: 48px;
    height: 48px;
  }
}

/* ---- Custom File Upload Styling ---- */
.custom-upload-zone {
  border: 2px dashed #cbd5e1;
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.custom-upload-zone:hover {
  border-color: var(--primary);
  background-color: rgba(34, 197, 94, 0.03);
}

.custom-upload-zone.dragover {
  border-color: var(--primary);
  background-color: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.custom-upload-content i {
  font-size: 2.2rem;
  color: var(--gray-400);
  margin-bottom: 8px;
  transition: color 0.25s ease;
  display: block;
}

.custom-upload-zone:hover .custom-upload-content i,
.custom-upload-zone.dragover .custom-upload-content i {
  color: var(--primary);
}

.custom-upload-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.custom-upload-subtext {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.upload-preview-container {
  display: none;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.upload-preview-container.show {
  display: flex;
}

.upload-preview-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.upload-preview-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.upload-preview-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.upload-preview-size {
  font-size: 0.72rem;
  color: var(--gray-500);
}

.btn-remove-preview {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-preview:hover {
  background: #ef4444;
  color: var(--white);
}