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

body {
    font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
    background: #fafafa;
    min-height: 100vh;
    line-height: 1.6;
    padding: 0;
    color: #262626;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    background-color: #f6f7f8;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* 🌸 Centered Content Wrapper */
.feed-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 16px;
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Instagram Style Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    padding: 0;
    z-index: 1000;
    height: 60px;
    width: 100%;
}

/* ======================================================
   🌸 Lovculator Navigation Bar (Enhanced Pink Theme)
   ====================================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand .logo {
  color: #ff4b8d;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

/* Search placeholder (hidden for now) */
.nav-search {
  display: none;
}

/* Menu Items */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 17px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: #ff4b8d;
  background: rgba(255, 75, 141, 0.08);
  outline: none;
}

.nav-link.active {
  color: #ff4b8d;
  font-weight: 600;
  background: rgba(255, 75, 141, 0.1);
  box-shadow: inset 0 -2px 0 #ff4b8d;
}

/* ======================================================
   📱 Mobile Navigation
   ====================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
  background: #ff4b8d;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #ff4b8d;
}

.menu-toggle:focus {
  outline: 2px solid #ff4b8d;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ======================================================
   🌙 Mobile Menu Dropdown
   ====================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 18px;
    width: 100%;
    text-align: center;
  }
}

/* ======================================================
   🌫️ Mobile Overlay
   ====================================================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Small glow when hovering active tab */
.nav-link.active:hover {
  background: rgba(255, 75, 141, 0.15);
  box-shadow: inset 0 -3px 0 #ff4b8d;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 30px;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

/* Calculator Post */
.calculator-post {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.post-username {
    font-weight: 600;
    font-size: 20px;
    color: #262626;
}

.post-more {
    display: none;
}

.calculator-content {
    padding: 30px;
}

.love-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #262626;
    font-size: 14px;
}

.input-group input {
    padding: 14px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #ff4b8d;
    background: white;
}

.calculate-btn {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 141, 0.4);
}

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

.result {
    text-align: center;
    padding: 30px 0 20px 0;
}

.result.hidden {
    display: none;
}

.love-percentage {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.love-message {
    font-size: 1.3rem;
    color: #262626;
    margin-bottom: 10px;
    font-weight: 600;
}

.names-display {
    color: #8e8e8e;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.again-btn {
    background: #fafafa;
    color: #262626;
    border: 1px solid #dbdbdb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.again-btn:hover {
    background: #e9ecef;
}

/* Calculator Body Styles */
.calculator-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.person-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #262626;
    font-size: 14px;
}

.form-control {
    padding: 14px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #ff4b8d;
    background: white;
}

/* Gender Options */
.gender-group label {
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.gender-options {
    display: flex;
    gap: 10px;
    width: 100%;
}

.gender-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 44px;
    position: relative;
}

.gender-option:hover {
    border-color: #ff4b8d;
    background: #fff5f7;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-label {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    text-align: center;
    pointer-events: none;
}

.gender-option input[type="radio"]:checked + .gender-label {
    color: #ff4b8d;
    font-weight: 600;
}

.gender-option input[type="radio"]:checked + .gender-label::before {
    content: "✓ ";
    color: #ff4b8d;
}

.gender-option:has(input[type="radio"]:checked) {
    border-color: #ff4b8d;
    background: #fff5f7;
    box-shadow: 0 0 0 1px #ff4b8d;
}

.gender-option:focus-within {
    outline: 3px solid #ff4b8d;
    outline-offset: 2px;
}

/* Social Features Section */
.social-features-section {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

/* Experience Bar */
.experience-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.experience-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.experience-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #262626;
}

/* Badges Section */
.badges-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.badges-section h4 {
    margin-bottom: 10px;
    color: #262626;
    font-size: 0.9rem;
}

.badges-list {
    display: flex;
    gap: 8px;
}

.badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
    border-color: #ff4b8d;
}

/* Activity Feed */
.activity-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #262626;
}

.notification-indicator {
    position: relative;
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4b8d;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: white;
    border-color: #ff4b8d;
    transform: translateX(5px);
}

.activity-avatar {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #262626;
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-text strong {
    color: #ff4b8d;
}

.activity-time {
    font-size: 0.75rem;
    color: #8e8e8e;
}

.empty-feed {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-feed h4 {
    margin: 0 0 8px 0;
    color: #262626;
}

.empty-feed p {
    margin: 0;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-weight: 500;
    color: #262626;
    margin-bottom: 4px;
}

.toast-time {
    font-size: 0.8rem;
    color: #8e8e8e;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #8e8e8e;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #262626;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modern Social Share Section */
.share-buttons {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 30px;
  margin: 40px auto 20px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.5s ease;
}

.share-buttons.show {
  display: flex;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-section-title::before {
  content: "🎉";
  font-size: 1.2rem;
}

/* Individual Share Buttons */
.share-btn {
  background: #f9f9f9;
  border: none;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 80%;
  max-width: 360px;
  color: #000;
}

.share-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-btn.facebook {
  color: #1877f2;
}

.share-btn.twitter {
  color: #000;
}

.share-btn.whatsapp {
  color: #25d366;
}

.share-btn.instagram {
  color: #c13584;
}

/* Love Stories Gallery */
.stories-gallery {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto 30px;
    max-width: 600px;
    width: 100%;
}

.stories-header {
    text-align: center;
    margin-bottom: 30px;
}

.stories-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.stories-header p {
    color: #8e8e8e;
    font-size: 1rem;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* =========================================
   💬 Comment Section — Lovculator v2 (Clean)
   ========================================= */
.comments-section {
  position: relative;
  z-index: 2;
  background: #fff;
  margin-top: 20px;
  padding: 15px;
  border-top: 1px solid #eee;
  border-radius: 12px;
}

/* --- Comment Input Form --- */
.comment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 0.9rem;
  background: #fafafa;
  transition: all 0.3s ease;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: #ff4b8d;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 75, 141, 0.1);
}

.comment-submit {
  background: #ff4b8d;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comment-submit:hover {
  background: #ff6b6b;
  transform: translateY(-1px);
}

/* --- Comments List --- */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Individual Comment --- */
.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #fafafa;
  border-radius: 12px;
  font-size: 0.9rem;
  animation: fadeInComment 0.25s ease;
}

@keyframes fadeInComment {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Comment Avatar --- */
.comment img,
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

/* --- Comment Content --- */
.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: #222;
}

.comment-time {
  font-size: 0.75rem;
  color: #999;
  margin-left: 6px;
}

.comment-text {
  color: #333;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* --- Comment Actions (Like/Reply) --- */
.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}

.comment-like,
.comment-reply {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 3px 6px;
  transition: all 0.2s ease;
}

.comment-like:hover,
.comment-reply:hover {
  color: #ff4b8d;
  background: #f5f5f5;
}

.comment-like.liked {
  color: #ff4b8d;
  font-weight: 600;
}

/* --- Smooth show/hide --- */
.comments-section.hidden {
  display: none !important;
}


/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 75, 141, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    animation: gentleFloat 3s ease-in-out infinite;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 75, 141, 0.6);
    animation: none;
}

.fab-button:active {
    transform: scale(1.05);
}

.fab-icon {
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.fab-button:hover .fab-icon {
    transform: rotate(90deg);
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #dbdbdb;
}

.modal-header h3 {
    margin: 0;
    color: #262626;
    font-size: 1.3rem;
}

.modal-overlay.hidden {
    display: none !important;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #8e8e8e;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #262626;
}

.story-form {
    padding: 25px;
}

.story-form .form-group {
    margin-bottom: 20px;
}

.story-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.story-form input,
.story-form textarea,
.story-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
}

.story-form input:focus,
.story-form textarea:focus,
.story-form select:focus {
    outline: none;
    border-color: #ff4b8d;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 75, 141, 0.1);
}

.story-form textarea {
    resize: vertical;
    min-height: 150px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 5px;
}

.char-count.warning {
    color: #ff6b6b;
}

.submit-story-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 141, 0.4);
}

.submit-story-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mood Options */
.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mood-option {
    padding: 8px 12px;
    border: 2px solid #dbdbdb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mood-option:hover {
    border-color: #ff4b8d;
}

.mood-option.selected {
    border-color: #ff4b8d;
    background: #fff5f7;
    color: #ff4b8d;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.success-content h4 {
    margin: 0 0 10px 0;
    color: #262626;
    font-size: 1.5rem;
}

.success-content p {
    color: #444;
    margin-bottom: 25px;
}

.success-ok-btn {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 75, 141, 0.4);
}

/* Name Analysis Section */
.name-analysis-section {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 30px;   
    margin: 20px 0;
}

.name-analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.name-analysis-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.name-analysis-subtitle {
    color: #444;
    font-size: 1rem;
}

.name-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.name-factor-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.name-factor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.name-factor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.factor-icon {
    font-size: 2.0rem;
    margin-bottom: 15px;
    display: block;
}

.name-factor-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.name-factor-card p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Quick Access Section */
.quick-access-section {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quick-access-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-access-card:hover {
    transform: translateY(-2px);
    border-color: #ff4b8d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.quick-access-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.quick-access-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 5px;
}

.quick-access-card p {
    color: #444;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Compatibility Guide */
.compatibility-guide {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    padding: 30px;
}

.guide-header {
    text-align: center;
    margin-bottom: 25px;
}

.guide-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.guide-subtitle {
    color: #8e8e8e;
    font-size: 14px;
}

/* Compatibility Grid */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.compat-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
}

.compat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.percentage {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff4b8d;
}

.emoji {
    font-size: 1.4rem;
}

.compat-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.compat-card p {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.compat-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compat-card li {
    color: #444;
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.compat-card li::before {
    content: '•';
    color: #ff4b8d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Love Tips Guide */
.love-tips-guide {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.tip-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.tip-card p {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-card li {
    color: #444;
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.tip-card li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.inspiration-quote {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    border-radius: 12px;
    color: white;
}

.inspiration-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.inspiration-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.faq-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-subtitle {
    color: #444;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ff4b8d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 75, 141, 0.15);
}

.faq-item.active {
    border-color: #ff4b8d;
    background: white;
    box-shadow: 0 8px 25px rgba(255, 75, 141, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.faq-question:hover {
    background: rgba(255, 75, 141, 0.02);
}

.faq-item.active .faq-question {
    background: rgba(255, 75, 141, 0.03);
}

.faq-icon {
    font-size: 0.9rem;
    color: #ff4b8d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 500px;
    border-top-color: #f0f0f0;
}

/* About Page Specific Styles */
.about-post {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: 20px auto;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
}

.about-content {
    padding: 30px;
}

.about-hero {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.about-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.5;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.about-section {
    padding: 25px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff4b8d;
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
    text-align: center;
}

.about-section p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: #ff4b8d;
    box-shadow: 0 4px 12px rgba(255, 75, 141, 0.1);
}

.feature-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.feature-item p {
    color: #444;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Mission Stats */
.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.mission-stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.mission-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4b8d;
    margin-bottom: 8px;
}

.mission-stat-label {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}

/* Team Highlights */
.team-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.highlight-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.highlight-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.highlight-item p {
    color: #444;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Disclaimer Section */
.about-section.disclaimer {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.about-section.disclaimer h2 {
    color: #856404;
}

.about-section.disclaimer p {
    color: #856404;
}

.about-section.disclaimer .section-icon {
    color: #856404;
}

/* Contact Page Styles */
.contact-post {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    margin: 0 auto;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
}

.contact-content {
    padding: 30px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 30px;
}

.contact-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.contact-hero .hero-subtitle {
    color: #000000;
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.card-main {
    font-size: 0.9rem;
    color: #ff4b8d;
    font-weight: 500;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.8rem;
    color: #8e8e8e;
    line-height: 1.4;
    margin: 0;
}

/* Contact Form */
.contact-form-container {
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #262626;
    font-size: 14px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    padding: 14px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #ff4b8d;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 75, 141, 0.1);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.submit-btn {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 75, 141, 0.3);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 141, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
}

/* Quick Help Section */
.quick-help {
    margin-top: 40px;
}

.quick-help h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 20px;
    text-align: center;
}

.help-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.help-item:hover {
    transform: translateX(5px);
    border-color: #ff4b8d;
}

.help-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.help-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
}

.help-content p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e8e8e8;
    padding: 2rem 20px;
    margin-top: auto;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    margin-bottom: 0.75rem;
    font-size: 14px;
    color: #262626;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #ff4b8d;
    background: rgba(255, 75, 141, 0.05);
    transform: translateY(-1px);
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #444;
}

/* Social media links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #262626;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #ff4b8d;
    color: white;
    transform: translateY(-2px);
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 90%;
    width: 400px;
}

.install-prompt.hidden {
    display: none;
}

.prompt-content {
    text-align: center;
}

.prompt-content p {
    margin-bottom: 20px;
    color: #262626;
    font-size: 16px;
}

.install-btn {
    background: #ff4b8d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.install-btn:hover {
    background: #ff6b6b;
}

.cancel-btn {
    background: transparent;
    color: #262626;
    border: 1px solid #dbdbdb;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.cancel-btn:hover {
    background: #fafafa;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading state for buttons */
.calculate-btn:disabled,
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Focus styles for accessibility */
.calculate-btn:focus,
.again-btn:focus,
.submit-btn:focus,
.nav-link:focus {
    outline: 2px solid #ff4b8d;
    outline-offset: 2px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
        gap: 20px;
        max-width: 100%;
    }

    .calculator-post,
    .compatibility-guide,
    .love-tips-guide,
    .about-post,
    .contact-post,
    .faq-section,
    .social-features-section,
    .stories-gallery,
    .name-analysis-section,
    .quick-access-section {
        max-width: 100%;
        border: none;
        border-bottom: 2px solid #dbdbdb;
        border-radius: 10px;
    }

    .calculator-header {
        padding: 14px 16px;
    }

    .calculator-content {
        padding: 25px 20px;
    }

    .love-form {
        gap: 16px;
    }

    .input-group input {
        padding: 16px;
        font-size: 16px;
    }

    .calculate-btn {
        padding: 16px;
        font-size: 16px;
    }

    .love-percentage {
        font-size: 3.5rem;
    }

    .love-message {
        font-size: 1.2rem;
    }

    .person-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gender-options {
        gap: 10px;
    }

    .gender-option {
        padding: 8px 12px;
        justify-content: center;
    }

    .footer {
        padding: 1.5rem 15px;
        max-width: 100%;
    }

    .install-prompt {
        bottom: 80px;
        width: 95%;
        max-width: 350px;
    }

    .faq-section {
        padding: 40px 24px;
    }

    .faq-header {
        margin-bottom: 40px;
    }

    .faq-header h2 {
        font-size: 1.5rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .faq-question {
        padding: 20px;
        font-size: 1.05rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
        max-height: 600px;
    }

    .about-post {
        margin: 0px;
        max-width: none;
    }

    .about-content {
        padding: 20px;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-section {
        padding: 20px;
    }

    .feature-grid,
    .mission-stats,
    .team-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

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

    .navbar {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 25px 0;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: pan-y;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
        padding: 0 25px;
        box-sizing: border-box;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 16px;
        padding: 16px 0;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #262626 !important;
        text-decoration: none;
        transition: all 0.3s ease;
        min-height: 44px;
        box-sizing: border-box;
    }

    .nav-link:hover,
    .nav-link:focus {
        color: #ff4b8d !important;
        background: #fff5f7;
        padding-left: 10px;
        outline: none;
    }

    .nav-search {
        display: none;
    }

    .nav-brand .logo {
        font-size: 1.3rem;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 70px 0 20px 0;
    }

    .nav-item {
        padding: 0 20px;
    }

    .main-content {
        padding: 15px 10px;
        gap: 15px;
    }

    .calculator-header {
        padding: 12px 14px;
    }

    .calculator-content {
        padding: 20px 15px;
    }

    .post-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .love-percentage {
        font-size: 3rem;
    }

    .love-message {
        font-size: 1.1rem;
    }

    .gender-option {
        padding: 10px;
    }

    .footer {
        padding: 1rem 10px;
    }

    .about-content {
        padding: 15px;
    }

    .about-section {
        padding: 15px;
    }

    .about-hero h1 {
        font-size: 1.6rem;
    }

    .section-icon {
        font-size: 2rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .share-btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }

    .container {
        padding-top: 60px;
        padding-bottom: 0;
        max-width: 100%;
    }

    .stories-hero {
        padding: 30px 20px;
    }

    .calculator-content {
        padding: 25px 20px;
    }

    .lovculator-platform-section {
        padding: 30px 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
    }

    .stories-hero {
        padding: 25px 15px;
    }

    .calculator-content {
        padding: 20px 15px;
    }

    .lovculator-platform-section {
        padding: 25px 15px;
    }
}

@media (min-width: 600px) {
  .share-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 20px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .calculate-btn:hover,
    .submit-btn:hover,
    .again-btn:hover,
    .compat-card:hover,
    .tip-card:hover,
    .name-factor-card:hover,
    .quick-access-card:hover,
    .story-card:hover,
    .activity-item:hover,
    .share-btn:hover,
    .stat-card:hover,
    .feature-item:hover,
    .contact-card:hover,
    .help-item:hover {
        transform: none !important;
    }

    .share-btn::before {
        display: none;
    }

    .pulse {
        animation: none;
    }

    .share-buttons {
        transition: none;
    }

    .like-animation {
        animation: none;
    }

    .modal.active,
    .tab-pane.active {
        animation: none;
    }

    .loading-spinner {
        animation: none;
    }

    .skeleton {
        animation: none;
        background: #f0f0f0;
    }

    .platform-feature-card:hover,
    .differentiator-item:hover,
    .audience-card:hover,
    .cta-btn:hover {
        transform: none;
    }

    .stat-number.updated,
    .export-success {
        animation: none;
    }

    .stat-number.loading {
        animation: none;
        background: #f0f0f0;
    }
}

.faq-question:focus {
    outline: 2px solid #ff4b8d;
    outline-offset: 2px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}

/* Stories Filters */
.stories-filters {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tab {
    padding: 10px 16px;
    border: 1px solid #dbdbdb;
    background: #fafafa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tab.active, .filter-tab:hover {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border-color: #ff4b8d;
    transform: translateY(-1px);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #ff4b8d;
}

/* Loading State */
.loading-stories {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4b8d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Empty State */
.empty-stories-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 16px;
    margin: 20px 0;
}

.empty-stories-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-stories-state h3 {
    margin: 0 0 10px 0;
    color: #262626;
    font-size: 1.5rem;
}

.empty-stories-state p {
    color: #8e8e8e;
    margin-bottom: 15px;
    font-size: 1rem;
}

.empty-helper {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.home-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 141, 0.4);
    text-decoration: none;
    color: white;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #fafafa;
    color: #262626;
    border: 1px solid #dbdbdb;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.load-more-btn:hover {
    background: #e9ecef;
    border-color: #ff4b8d;
    color: #ff4b8d;
}

/* FAB Notification Styles */
.fab-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ff4b8d);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: fabPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 75, 141, 0.4);
    z-index: 1002;
}

@keyframes fabPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fab-notification-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(255, 75, 141, 0.4);
    z-index: 1001;
    animation: slideUpFade 0.5s ease-out;
    max-width: 280px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fab-button:hover .fab-notification-badge {
    animation: fabPulse 0.5s ease-in-out infinite;
}

/* Story User Info */
.story-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff4b8d20;
  overflow: hidden;
  display: block;
}

.story-user-link img.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.story-user-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.story-username {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.story-date {
    font-size: 0.85rem;
    color: #8e8e8e;
}

.story-user-link, 
.story-username-link {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.story-user-link:hover img {
    transform: scale(1.05);
    border-color: #ff4b8d;
}

.story-username-link:hover .story-username {
    color: #ff4b8d;
}

.follow-btn {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff4b8d);
    transform: scale(1.05);
}

.follow-btn.following {
    background: #e0e0e0;
    color: #333;
}

/* Animation for new stories */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card.new {
    animation: slideInUp 0.5s ease-out;
}

/* Like Animation */
.like-animation {
    animation: heartBeat 0.6s ease-out;
}

@keyframes heartBeat {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Loading States */
.stat-number.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
    border-radius: 4px;
    min-height: 28px;
    width: 60px;
    margin: 0 auto 5px auto;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus styles for accessibility */
.filter-tab:focus,
.sort-select:focus,
.story-action:focus,
.read-more:focus,
.load-more-btn:focus {
    outline: 2px solid #ff4b8d;
    outline-offset: 2px;
}

/* Records Page Specific Styles */
.calculator-post {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: 0 auto;
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.post-username {
    font-weight: 600;
    font-size: 20px;
    color: #262626;
}

.calculator-content {
    padding: 30px;
}

/* Privacy Notice */
.privacy-notice {
    background: #fff3f7;
    border: 1px solid #ffd1e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.privacy-notice strong {
    color: #ff4b8d;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.privacy-notice p {
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ff4b8d;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff4b8d;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Activity Message */
.activity-message {
    text-align: center;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e8ecff;
}

.activity-message h3 {
    color: #262626;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-message p {
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.activity-message p:last-of-type {
    margin-bottom: 0;
}

/* Last Updated */
.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 20px 0;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.last-updated strong {
    color: #262626;
}

/* Data Actions */
.data-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    font-size: 0.9rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.clear {
    background: linear-gradient(135deg, #ff6b6b, #ff4b8d);
}

.action-btn.clear:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    margin: 20px 0;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #444;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.empty-state p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}


/* Focus styles for accessibility */
.action-btn:focus {
    outline: 2px solid #ff4b8d;
    outline-offset: 2px;
}

/* Confirmation Dialog Styles */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.confirmation-content h3 {
    color: #262626;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 80px;
}

.confirm-btn {
    background: #ff4b8d;
    color: white;
}

.confirm-btn:hover {
    background: #ff6b6b;
}

.cancel-btn {
    background: #f8f9fa;
    color: #262626;
    border: 1px solid #dbdbdb;
}

.cancel-btn:hover {
    background: #e9ecef;
}

/* Export Success Message */
.export-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Stories Grid - For Profile Page */
.stories-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    padding: 1.5rem;
}

.grid-story-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grid-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff4b8d;
}

.grid-story-card h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.3;
}

.story-couple {
    color: #ff4b8d;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.story-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.story-category, .story-mood {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.story-stats {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.story-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ======================================================
   🌸 QUORA-LIKE FEED LAYOUT POLISH
====================================================== */

/* Feed container - centers all posts */
.feed-container {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Adjust card spacing */
.story-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #eaeaea;
  padding: 22px 0;
  transition: background 0.2s ease;
}

.story-card:hover {
  background: #fafafa;
}

/* Smooth spacing between sections */
.story-card:last-child {
  border-bottom: none;
}

/* Fix gradient fade color */
.story-content::after {
  background: linear-gradient(transparent, #f6f7f8);
}

/* Header layout fine-tuned */
.story-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.story-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.story-author-avatar-fallback {
  background: #ff4b8d;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Name and meta info */
.story-couple h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.story-meta {
  font-size: 0.82rem;
  color: #8e8e8e;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Follow button refined */
.follow-button {
  border: 1px solid #ff4b8d;
  color: #ff4b8d;
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.follow-button:hover {
  background: #ff4b8d;
  color: #fff;
}

/* Story title + content */
.story-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.story-content {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.story-content.expanded {
  max-height: 1000px;
  overflow: hidden;
}

.read-more {
  color: #ff4b8d;
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 4px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Footer styling */
.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.story-actions {
  display: flex;
  gap: 20px;
}

.story-action {
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.story-action:hover {
  color: #ff4b8d;
  background: #f5f5f5;
}

.story-action.liked {
  color: #ff4b8d;
  font-weight: 600;
}

.story-mood {
  font-size: 0.85rem;
  background: #eee;
  color: #333;
  padding: 4px 10px;
  border-radius: 14px;
}

/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateX(5px);
    border-color: #ff4b8d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4b8d20;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 5px 0;
    color: #262626;
    font-size: 1rem;
}

.user-info .user-bio {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
}

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

.follow-btn {
    background: #ff4b8d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

.follow-btn.following {
    background: #e0e0e0;
    color: #333;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: white;
    border-color: #ff4b8d;
    transform: translateX(5px);
}

.activity-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #262626;
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-text strong {
    color: #ff4b8d;
}

.activity-time {
    font-size: 0.75rem;
    color: #8e8e8e;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    margin: 1.5rem;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.empty-state .btn {
    margin: 0 5px;
}

/* Error States */
.error-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin: 1.5rem;
}

.error-state h3 {
    color: #e53e3e;
    margin: 0 0 1rem 0;
}

/* Enhanced Edit Profile Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    max-width: 450px;
    width: 90%;
    z-index: 10;
    animation: popIn 0.35s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffe0eb;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h3 {
    color: #ff4b8d;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ff4b8d;
    transform: scale(1.2);
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: #ff4b8d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 75, 141, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn.btn-primary {
    background-color: #ff4b8d;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.25s;
    font-family: inherit;
}

.btn.btn-primary:hover {
    background-color: #e63d7b;
    transform: translateY(-1px);
}

.btn.btn-secondary {
    background-color: #eee;
    border: none;
    color: #555;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.25s;
    font-family: inherit;
}

.btn.btn-secondary:hover {
    background-color: #ddd;
}

.edit-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
}

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

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

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Loading skeleton for profile */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.skeleton-title {
    height: 1.5rem;
    width: 200px;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Lovculator Platform Section */
.lovculator-platform-section {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 30px 0;
    width: 100%;
    max-width: 600px;
}

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

.platform-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.platform-subtitle {
    color: #8e8e8e;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

.platform-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.platform-feature-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.platform-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff4b8d;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.platform-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
    text-align: center;
}

.platform-feature-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1rem;
}

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

.feature-list li {
    color: #444;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-list li::before {
    content: '✓';
    color: #ff4b8d;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.platform-differentiators {
    margin-bottom: 50px;
    padding: 30px 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.platform-differentiators h3 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 30px;
}

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

.differentiator-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.differentiator-item:hover {
    transform: translateX(5px);
    border-color: #ff4b8d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.diff-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.diff-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.diff-content p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.platform-audience {
    margin-bottom: 50px;
}

.platform-audience h3 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 30px;
}

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

.audience-card {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
}

.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #ff4b8d;
}

.audience-emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.audience-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.audience-card p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.platform-mission {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.platform-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,6 C8,4 6,4 4,6 C2,8 2,10 4,12 L10,18 L16,12 C18,10 18,8 16,6 C14,4 12,4 10,6 Z" fill="white"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
}

.mission-content {
    position: relative;
    z-index: 1;
}

.mission-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.mission-content > p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mission-point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mission-point:last-child {
    border-bottom: none;
}

.point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.platform-cta {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cta-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
}

.cta-content p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-align: center;
    min-width: 180px;
    justify-content: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ff4b8d, #ff6b6b);
    color: white;
    border: none;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 75, 141, 0.4);
}

.cta-btn.secondary {
    background: white;
    color: #262626;
    border: 1px solid #dbdbdb;
}

.cta-btn.secondary:hover {
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff4b8d;
}

/* Animation for feature cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.platform-feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.platform-feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Focus styles for accessibility */
.cta-btn:focus {
    outline: 2px solid #ff4b8d;
    outline-offset: 2px;
}

.activity-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 123, 255, 0.1);
    cursor: pointer;
}

.activity-link:hover {
    text-decoration: underline;
    background: rgba(0, 123, 255, 0.2);
}

.activity-meta {
    font-size: 0.875rem;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-message {
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.activity-item {
    padding: 12px 16px;
    margin-bottom: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* --- Global Button Styles (Consolidated) --- */
.btn-primary, .btn-secondary {
    padding: 8px 14px;
    border-radius: 25px; /* Use pill shape for modern consistency */
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
}

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

.btn-primary:hover {
    background: #e63e7f; /* Slightly darker Lovculator pink */
}

.btn-secondary {
    background: #e9ecef;
    color: #333;
}

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

/* 🌸 Ask/Post Trigger Bar (Top Section Like Quora) */
.ask-post-bar {
  width: 100%;
  max-width: 650px;
  margin: 80px auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  position: relative;
  z-index: 5;
}

.ask-input {
  flex: 1;
  padding: 10px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 25px;
  cursor: pointer;
  color: #555;
  transition: all 0.25s ease;
}

.ask-input:hover {
  background: #fff;
  border-color: #ff4b8d;
}

.ask-buttons {
  display: flex;
  gap: 10px;
  margin-left: 15px;
}

.ask-btn, .post-btn {
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ask-btn {
  background: #ff4b8d;
  color: #fff;
}

.ask-btn:hover {
  background: #e63e7f;
}

.post-btn {
  background: #eee;
  color: #333;
}

.post-btn:hover {
  background: #ddd;
}

/* 🧠 Fullscreen Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeInModal 0.25s ease;
}

/* 🪄 Quora-style Modal Box */
.modal-box.ask-modal {
  background: #fff;
  width: 90%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 20px 25px;
  animation: slideUp 0.3s ease;
}

/* ✨ Tabs: Add Question / Create Post */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  padding: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #ff4b8d;
  border-bottom: 3px solid #ff4b8d;
}

/* 💡 Tip Box */
.tip-box {
  background: #f5f7ff;
  border: 1px solid #dce3ff;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 15px;
}

.tip-box h4 {
  color: #0033cc;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.tip-box ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

/* 📝 Text Area */
.question-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.question-input:focus {
  outline: none;
  border-color: #ff4b8d;
  box-shadow: 0 0 0 2px rgba(255, 75, 141, 0.2);
}

/* Footer (Buttons at Bottom) */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.btn-primary {
  background: #ff4b8d;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #e63e7f;
}

.btn-secondary {
  background: #eee;
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
}

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

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* 🔄 Smooth Animations */
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* 🔧 FIX: Proper modal layering and interaction */
.modal-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important; /* 👈 Highest layer to stay above header */
  padding: 20px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content,
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  position: relative;
  z-index: 100000 !important; /* Ensure clickable inside */
  animation: fadeInModal 0.25s ease;
}

/* Ensure modal clicks work */
.modal-overlay * {
  pointer-events: auto;
}

/* Optional: smooth entrance */
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Prevent background scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

