/* 
   MERASİM.COM - TEMİZ KURUMSAL TASARIM 
   TAMAMEN BEYAZ ARKA PLAN - SADECE FOOTER KOYU
*/

:root {
  --primary: #2F8A4B;
  --primary-hover: #226435;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --radius: 12px;
}

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

html,
body {
  background-color: #ffffff !important;
  color: #1e293b;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-size: 14px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* HEADER */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Header Search Box */
.header-search-box-container {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}

.header-search-form {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
  overflow: hidden;
}

.header-search-form:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 4px 12px rgba(47, 138, 75, 0.1);
}

.search-icon-left {
  padding-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
}

.search-button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: #15803d;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .header-search-box-container {
    display: none;
  }
}

/* Dropdown Menu Styles */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.dropdown-trigger:hover {
  background: #f1f5f9;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  z-index: 1000;
  margin-top: 5px;
  overflow: visible;
  animation: fadeIn 0.2s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--primary);
}

.dropdown-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.dropdown-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 5px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

.nav-link {
  color: #1e293b !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: #0056b3;
  color: white !important;
}

/* LAYOUT */
.content-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.sidebar {
  width: 330px;
  flex-shrink: 0;
}

.main-content {
  flex-grow: 1;
  min-width: 0;
}

.search-box-container {
  background: white;
  padding: 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid #f1f5f9;
  margin-bottom: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.1);
  transform: translateY(-1px);
}

.search-input {
  flex: 1;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: #1e293b;
}

.search-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.search-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.menu-emoji {
  margin-right: 12px;
  font-size: 20px;
  display: inline-block;
  vertical-align: middle;
}

.sidebar-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.sidebar-menu {
  list-style: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-menu li {
  border-bottom: 1px solid var(--border);
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  display: flex;
  padding: 12px 16px;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.sidebar-menu a:hover {
  background-color: #f0fdf4;
  color: var(--primary);
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}

.sidebar-menu li a:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.sidebar-menu li.has-children.active>a svg.menu-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.sidebar-submenu {
  list-style: none;
  padding-left: 55px;
  margin-top: 2px;
  margin-bottom: 5px;
  display: none;
  /* JS ile açılacak */
}

.sidebar-submenu li a {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.sidebar-submenu li a:hover {
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
}

.sidebar-menu li.active .sidebar-submenu {
  display: block;
}

/* PROFESSIONAL SIDEBAR STYLES */
.sidebar-professional {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-header-new {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.sidebar-header-new svg {
  color: var(--primary);
  opacity: 0.8;
}

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

.professional-menu>li {
  border-bottom: 1px solid #f1f5f9;
}

.professional-menu>li:last-child {
  border-bottom: none;
}

.professional-menu>li>a {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.professional-menu>li>a:hover {
  background: #f8fafc;
}

.professional-menu>li.active>a {
  background: #f0fdf4;
}

.professional-menu .icon-box {
  width: 44px;
  height: 44px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.professional-menu>li:hover .icon-box {
  transform: scale(1.15) rotate(5deg);
}

.professional-menu>li.active .icon-box {
  transform: scale(1.1);
}

.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.professional-menu .chevron {
  color: #cbd5e1;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.professional-menu li.active .chevron {
  transform: rotate(90deg);
  color: var(--primary);
}

.sidebar-submenu-new {
  list-style: none;
  padding: 0 0 15px 84px;
  background: #f0fdf4;
  margin: 0;
  display: none;
}

.professional-menu li.active .sidebar-submenu-new {
  display: block;
}

.sidebar-submenu-new li a {
  display: block;
  padding: 8px 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-submenu-new li a:hover {
  color: var(--primary);
}

.badge-new {
  background: #ef4444;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}


/* SLIDER */
.home-slider {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.2) 100%);
  display: flex;
  align-items: center;
  padding: 40px;
}

.slide-content h2 {
  color: white;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.1;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 20px;
}

.btn-green {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-green:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* CARDS & FORMS */
.card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 138, 75, 0.1);
}

.alert {
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.vitrin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.detay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* RESPONSIVE HELPERS */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-slider {
  display: flex !important;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  /* Firefox */
}

.news-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.news-card {
  flex: 0 0 calc(50% - 15px);
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  .news-card {
    flex: 0 0 85%;
  }
}

@media (max-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vitrin-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s;
}

.vitrin-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* FOOTER - BURASI KOYU KALACAK */
.site-footer {
  background-color: #0f172a !important;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.site-footer h3 {
  color: #f8fafc;
  margin-bottom: 20px;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

/* FORM ELEMENTS */
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

@media (max-width: 991px) {
  .site-header .header-container {
    display: none;
  }

  .site-header {
    background: transparent;
    border: none;
    box-shadow: none;
    position: static;
    height: auto;
  }

  .mobile-header {
    display: flex !important;
  }

  body {
    padding-top: 64px;
    padding-bottom: 80px !important;
    background-color: #ffffff !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  .content-wrapper {
    flex-direction: column;
    margin-top: 0;
    gap: 15px;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-header {
    display: none;
  }

  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .sidebar-menu {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .sidebar-menu li {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  .sidebar-menu a {
    padding: 14px 12px !important;
    align-items: center;
    font-size: 14px;
  }

  .card {
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }

  .vitrin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .detay-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-slider {
    height: 160px;
    border-radius: 12px;
  }

  .slide-overlay {
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .search-box-container {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: auto;
    padding: 10px;
    margin: 10px 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .search-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
  }

  .search-btn {
    width: 100%;
    margin-top: 8px;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
  }

  .site-footer {
    padding-bottom: 80px;
    padding-top: 40px;
  }

  .site-footer h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* Fix stretched images globally on mobile */
  img {
    object-fit: cover;
  }

  .img-contain {
    object-fit: contain !important;
    background: #f8fafc;
  }
}

/* Mobile Specific Elements */
.mobile-header {
  display: none;
  background-color: var(--primary);
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-header .logo-box {
  background: white;
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-header .header-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: center;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  height: 60px;
  align-items: center;
  justify-content: space-around;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  height: 100%;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
}

.mobile-bottom-nav .nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item .plus-circle {
  background: var(--primary);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(47, 138, 75, 0.3);
}

/* Global Mobile Fixes for Squashed Images */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto !important;
  }

  .thumb-box img,
  .vitrin-item img {
    height: 100% !important;
    object-fit: cover !important;
  }

  #main-image-display {
    height: 300px !important;
    object-fit: contain !important;
    background: #f8fafc;
  }
}

/* CUSTOM NOTIFICATION SYSTEM (TOAST) */
.meracim-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.meracim-toast {
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-left: 5px solid #cbd5e1;
  pointer-events: auto;
  animation: toastSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.meracim-toast.success {
  border-left-color: #10b981;
}

.meracim-toast.error {
  border-left-color: #ef4444;
}

.meracim-toast.warning {
  border-left-color: #f59e0b;
}

.meracim-toast.hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

.meracim-toast-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.meracim-toast-content {
  flex: 1;
}

.meracim-toast-title {
  font-weight: 800;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 4px;
}

.meracim-toast-message {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.meracim-toast-close {
  color: #cbd5e1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  transition: color 0.2s;
}

.meracim-toast-close:hover {
  color: #94a3b8;
}

.meracim-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
}

.meracim-toast-progress-bar {
  height: 100%;
  width: 100%;
  background: currentColor;
  opacity: 0.3;
  animation: toastProgress linear forwards;
}

.meracim-toast.success .meracim-toast-progress-bar {
  color: #10b981;
}

.meracim-toast.error .meracim-toast-progress-bar {
  color: #ef4444;
}

.meracim-toast.warning .meracim-toast-progress-bar {
  color: #f59e0b;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

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

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* --- IG STYLE STORIES SYSTEM --- */
.stories-header {
  background: #fff;
  border-bottom: 1px solid #efefef;
  padding: 15px 0 10px;
  margin-bottom: 25px;
  overflow: hidden;
}

.stories-wrapper {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-wrapper::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  margin-bottom: 6px;
  transition: transform 0.1s ease;
}

.story-item:active .story-ring {
  transform: scale(0.94);
}

.story-avatar-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  /* White inner space like IG */
  overflow: hidden;
  background: #fafafa;
}

.story-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-label {
  width: 100%;
  font-size: 11px;
  color: #262626;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* STORY VIEWER (IG THEME) */
.story-viewer-fs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.story-viewer-fs.active {
  display: flex;
}

.sv-progress-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  height: 2px;
  z-index: 100;
}

.sv-progress-seg {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.sv-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width linear;
}

.sv-container {
  width: 100%;
  height: 100%;
  max-width: 480px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.sv-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sv-header {
  position: absolute;
  top: 25px;
  left: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  z-index: 101;
}

.sv-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #555;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sv-username {
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sv-close {
  font-size: 30px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.sv-title {
  position: absolute;
  bottom: 80px;
  left: 20px;
  right: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.meracim-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.meracim-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.meracim-modal {
  background: #fff;
  width: 90%;
  max-width: 440px;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.meracim-modal-backdrop.show .meracim-modal {
  transform: translateY(0) scale(1);
}

.meracim-modal-icon {
  font-size: 50px;
  margin-bottom: 20px;
  display: block;
}

.meracim-modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 15px;
}

.meracim-modal-text {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 35px;
}

.meracim-modal-footer {
  display: flex;
  gap: 15px;
}

.meracim-modal-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.meracim-modal-btn.cancel {
  background: #f1f5f9;
  color: #475569;
}

.meracim-modal-btn.confirm {
  background: #16a34a;
  color: #fff;
}

.meracim-modal-btn:active {
  transform: scale(0.96);
}