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

:root {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --secondary: #c084fc;
  --dark: #0f0b2e;
  --space-dark: #31085f;
  --light: #0a0118;
  --border: #2d1b69;
  --text: #e9d5ff;
  --text-dark: #c4b5fd;
  --success: #10b981;
  --danger: #ef4444;
  --star-color: #fbbf24;
  --glow: #c084fc;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(192, 132, 252, 0.1); }
  50% { box-shadow: 0 0 10px rgba(192, 132, 252, 0.2); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #0a0118 0%, #31085f 50%, #0f0b2e 100%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 95%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  opacity: 0.5;
  z-index: 0;
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle, rgba(192, 132, 252, 0.03) 1px, transparent 1px),
    radial-gradient(circle, rgba(167, 139, 250, 0.03) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  background: rgba(15, 11, 46, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #fbbf24, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo::before {
  content: '✨ ';
  -webkit-text-fill-color: #fbbf24;
}

.logo::after {
  content: ' ✨';
  -webkit-text-fill-color: #fbbf24;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.8);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 11, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 8px;
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(192, 132, 252, 0.2);
  color: white;
  padding-left: 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(192, 132, 252, 0.2));
  backdrop-filter: blur(20px);
  color: white;
  border-radius: 20px;
  margin: 2rem 0;
  border: 2px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: rotate 60s linear infinite;
  opacity: 0.3;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Calculator Form */
.calculator-section {
  max-width: 800px;
  margin: 2rem auto;
}

.calculator-form {
  background: rgba(49, 8, 95, 0.6);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
  margin-bottom: 2rem;
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(192, 132, 252, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: rgba(15, 11, 46, 0.5);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  background: rgba(15, 11, 46, 0.7);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: 2px solid rgba(192, 132, 252, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.3);
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

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

/* Result Card */
.result-card {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.result-card h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.result-details {
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.result-details p {
  margin-bottom: 0.5rem;
}

.zodiac-signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.sign-card {
  background: linear-gradient(135deg, #f8fafc, #e0e7ff);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--border);
}

.sign-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sign-icon {
  font-size: 3rem;
  margin: 1rem 0;
}

.sign-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0.5rem 0;
}

.sign-desc {
  font-size: 0.875rem;
  color: #64748b;
}

.sun-position {
  background: var(--light);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.sun-position h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Blog */
.blog-header {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(192, 132, 252, 0.15));
  border-radius: 16px;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.blog-header h1 {
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-header p {
  color: rgba(233, 213, 255, 0.8);
  font-size: 1.2rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
  align-items: start;
}

.blog-sidebar {
  background: rgba(49, 8, 95, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1.25rem;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.blog-sidebar h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.2rem;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.category-list a:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
  padding-left: 1.1rem;
}

.category-list a.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: rgba(49, 8, 95, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(192, 132, 252, 0.3);
  border-color: var(--primary);
}

.post-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.5), rgba(75, 47, 135, 0.5));
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.08);
}

.post-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 11, 46, 0.8), transparent);
  pointer-events: none;
}

.post-image-placeholder {
  background: linear-gradient(135deg,
    rgba(167, 139, 250, 0.15) 0%,
    rgba(192, 132, 252, 0.15) 50%,
    rgba(251, 191, 36, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image-placeholder a {
  text-decoration: none;
  border: none;
  outline: none;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.placeholder-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(167, 139, 250, 0.5));
  animation: float 3s ease-in-out infinite;
}

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

.placeholder-category {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.post-content-wrapper {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  align-items: center;
}

.post-category {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  min-height: 28px;
}

.post-date {
  color: rgba(233, 213, 255, 0.6);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-date::before {
  content: '📅';
  font-size: 0.9rem;
}

.post-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}

.post-card h2 a:hover {
  background-size: 100% 2px;
}

.post-excerpt {
  color: rgba(233, 213, 255, 0.8);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 1;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-overflow: ellipsis;
  max-height: 4.8rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: all 0.3s;
  width: fit-content;
  background: transparent;
  font-size: 0.9rem;
  margin-top: auto;
}

.read-more:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

/* Single Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  max-width: 100%;
  margin: 0;
  padding: 2rem 3rem;
}

.post-detail {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.post-header {
  padding: 2rem 0 2rem 0;
  text-align: center;
}

.post-header h1 {
  font-size: 2.75rem;
  color: var(--text);
  margin: 1rem 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #fbbf24, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta-info {
  display: flex;
  gap: 0.75rem;
  color: rgba(233, 213, 255, 0.6);
  font-size: 0.95rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.post-featured-image {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(49, 8, 95, 0.9), transparent);
  pointer-events: none;
}

.post-content {
  line-height: 1.9;
  font-size: 1.15rem;
  color: #ffffff;
  padding: 0;
  max-width: 100%;
}

.post-content p {
  margin-bottom: 1.75rem;
  color: #ffffff;
}

.post-content p:first-letter {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
}

.post-footer {
  margin-top: 3rem;
  padding: 2rem 0 1rem 0;
  border-top: 2px solid rgba(192, 132, 252, 0.2);
}

/* Post Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-sticky {
  background: rgba(49, 8, 95, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.post-sidebar h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(192, 132, 252, 0.2);
  background: linear-gradient(135deg, #fbbf24, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-card {
  background: rgba(15, 11, 46, 0.4);
  border: 1px solid rgba(192, 132, 252, 0.15);
  padding: 1.25rem;
  border-radius: 12px;
  transition: all 0.3s;
}

.related-card:hover {
  background: rgba(15, 11, 46, 0.6);
  border-color: var(--primary);
  transform: translateX(4px);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-card h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.related-card h4 a:hover {
  color: var(--primary);
}

.related-card p {
  font-size: 0.85rem;
  color: rgba(233, 213, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Admin Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.login-container {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.login-form {
  margin-bottom: 1rem;
}

.login-hint {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.back-link {
  display: block;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.error-message {
  background: #fee;
  border: 2px solid var(--danger);
  color: var(--danger);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Admin Dashboard */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
}

.admin-header h1 {
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.stat-card h3 {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
}

.posts-table,
.calculations-table {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 2rem 0;
}

.posts-table h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--light);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status.published {
  background: #d1fae5;
  color: var(--success);
}

.status.draft {
  background: #fee;
  color: var(--danger);
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-small:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover {
  background: #dc2626;
}

/* Post Form */
.post-form {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 2rem auto;
}

.post-form textarea {
  font-family: inherit;
  resize: vertical;
}

.checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
  width: auto;
}

/* Calculator Hub */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.calculator-card {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.9), rgba(49, 8, 95, 0.8));
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(192, 132, 252, 0.5);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s;
  position: relative;
  border: 2px solid rgba(192, 132, 252, 0.4);
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.2), transparent);
  transition: left 0.5s;
}

.calculator-card:hover::before {
  left: 100%;
}

.calculator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(192, 132, 252, 0.3);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.95), rgba(75, 47, 135, 0.9));
}

.calc-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.calculator-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.calculator-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.calc-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}

.info-section {
  margin: 4rem 0;
  padding: 3rem;
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 12px;
}

.info-section h2 {
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  text-align: center;
  padding: 1.5rem;
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Simple Calculator Layout */
.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 2rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-btn:hover {
  text-decoration: underline;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.simple-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.calc-form-section {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.simple-form {
  margin-bottom: 2rem;
}

.explanation-section {
  background: rgba(15, 11, 46, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.explanation-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.explanation-section h4 {
  color: var(--text);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.explanation-section ul,
.explanation-section ol {
  margin-left: 1.5rem;
  line-height: 1.8;
}

.explanation-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Result Boxes */
.result-box {
  background: linear-gradient(135deg, #f8fafc, #e0e7ff);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--primary);
  margin-top: 2rem;
}

.result-box h2 {
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
}

.zodiac-result {
  text-align: center;
}

.zodiac-symbol {
  font-size: 4rem;
  margin: 1rem 0;
}

.zodiac-result h3 {
  font-size: 2rem;
  color: var(--primary);
  margin: 0.5rem 0;
}

.birth-info {
  color: #64748b;
  font-size: 0.9rem;
}

/* Zodiac List */
.zodiac-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.zodiac-item {
  padding: 0.5rem;
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Compatibility Results */
.compatibility-result {
  text-align: center;
}

.couple-signs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.person-sign {
  text-align: center;
}

.sign-badge {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-weight: 600;
}

.heart-icon {
  font-size: 2rem;
  color: #ef4444;
}

.compatibility-score {
  margin: 2rem 0;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.score-number {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.compatibility-meaning {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* Chinese Zodiac */
.chinese-zodiac-result {
  text-align: center;
  padding: 2rem;
}

.animal-display h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.year-info {
  color: #64748b;
  font-size: 1rem;
}

.chinese-animals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.animal-box {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.animal-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.animal-box p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Numerology */
.numerology-result {
  text-align: center;
}

.life-path-display {
  margin-bottom: 2rem;
}

.number-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.life-path-display h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0.5rem 0;
}

.number-meaning {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
}

.number-meaning h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.number-meaning p {
  line-height: 1.8;
  margin: 0;
}

/* Note boxes and examples */
.note-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 4px;
}

.example-box {
  background: rgba(49, 8, 95, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid var(--primary);
  font-family: monospace;
  line-height: 1.8;
}

/* Footer */
footer {
  background: rgba(15, 11, 46, 0.9);
  backdrop-filter: blur(10px);
  color: rgba(233, 213, 255, 0.7);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

/* Biorhythm Styles */
.biorhythm-result {
  margin-top: 1.5rem;
}

.cycle-item {
  margin-bottom: 2rem;
}

.cycle-item h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: rgba(15, 11, 46, 0.7);
  border-radius: 15px;
  overflow: hidden;
  margin: 0.5rem 0;
  border: 2px solid rgba(192, 132, 252, 0.3);
}

.progress-fill {
  height: 100%;
  transition: width 1s ease;
  border-radius: 15px;
}

.cycle-item p {
  color: var(--text);
  margin: 0.5rem 0;
}

.cycle-desc {
  color: #64748b !important;
  font-size: 0.9rem !important;
}

/* Lucky Number Styles */
.lucky-number-display {
  text-align: center;
  margin: 2rem 0;
}

.lucky-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-size: 5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
  animation: float 3s ease-in-out infinite;
}

.lucky-message {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1rem 0;
}

.lucky-meanings {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: left;
}

.lucky-meanings h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.lucky-meanings p {
  line-height: 1.8;
}

/* Tarot Card Styles */
.tarot-card-display {
  text-align: center;
  margin: 2rem 0;
}

.tarot-card {
  width: 200px;
  height: 300px;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.9), rgba(75, 47, 135, 0.9));
  border: 3px solid var(--star-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
  position: relative;
  overflow: hidden;
}

.tarot-card::before {
  content: '✨';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
}

.tarot-card::after {
  content: '✨';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
}

.card-name {
  color: var(--star-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

.question-asked {
  background: rgba(15, 11, 46, 0.7);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.question-asked strong {
  color: var(--primary);
}

.card-meaning {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  text-align: left;
}

.card-meaning h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Chakra Styles */
.chakra-display {
  text-align: center;
  padding: 2rem;
}

.chakra-symbol {
  font-size: 5rem;
  margin: 1rem 0;
  animation: float 4s ease-in-out infinite;
}

.chakra-display h3 {
  color: var(--text);
  font-size: 2rem;
  margin: 1rem 0;
}

.chakra-location {
  color: #64748b;
  font-style: italic;
  margin: 0.5rem 0;
}

.chakra-display p {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.chakra-meaning {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Angel Number Styles */
.angel-number-display {
  text-align: center;
  margin: 2rem 0;
}

.angel-number-badge {
  font-size: 3rem;
  color: var(--star-color);
  font-weight: bold;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.9), rgba(75, 47, 135, 0.9));
  border-radius: 16px;
  border: 3px solid var(--star-color);
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
  display: inline-block;
  margin: 1rem;
  animation: glow 2s ease-in-out infinite;
}

.angel-message {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1rem 0;
  line-height: 1.8;
}

.angel-guidance {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: left;
}

.angel-guidance h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.angel-guidance p {
  line-height: 1.8;
}

/* Dream Interpretation Styles */
.dream-analysis {
  margin-top: 1.5rem;
}

.dream-text {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.dream-text h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.symbols-found h3,
.general-interpretation h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.symbol-item {
  background: rgba(15, 11, 46, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--star-color);
}

.symbol-item h4 {
  color: var(--star-color);
  margin-bottom: 0.5rem;
}

/* Planetary Hour Styles */
.planetary-hour-display {
  text-align: center;
  padding: 2rem;
}

.planet-info {
  background: rgba(15, 11, 46, 0.7);
  padding: 2rem;
  border-radius: 12px;
}

.planet-symbol {
  font-size: 6rem;
  margin: 1rem 0;
  animation: float 4s ease-in-out infinite;
}

.planet-info h3 {
  color: var(--text);
  font-size: 2rem;
  margin: 1rem 0;
}

.planet-info p {
  line-height: 1.8;
  margin: 1rem 0;
}

.hour-time {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1.5rem !important;
}

/* Enhanced Footer */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  color: rgba(233, 213, 255, 0.7);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: rgba(233, 213, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(192, 132, 252, 0.2);
  padding-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
  }

  .post-detail {
    width: 100%;
    max-width: 800px;
  }

  .post-sidebar {
    position: static;
    width: 100%;
    max-width: 800px;
  }

  .sidebar-sticky {
    max-width: 100%;
  }

  .related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .blog-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-image {
    height: 240px;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden !important;
    width: 100%;
  }

  body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    position: relative;
  }

  body.menu-open {
    overflow: hidden;
  }

  main {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .post-layout {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .post-detail {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
  }

  .hero, .calculator-grid, .blog-layout, .blog-posts {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  .calculator-card, .post-card {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  .burger {
    display: flex;
    z-index: 101;
    position: relative;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 101;
  }

  body {
    padding-top: 60px;
  }

  .nav-links {
    position: fixed;
    top: 71px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 71px);
    background: rgba(15, 11, 46, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s;
    border-left: 1px solid rgba(192, 132, 252, 0.3);
    z-index: 100;
    overflow-y: auto;
  }

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

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s;
  }

  .dropdown-toggle:hover {
    background: rgba(192, 132, 252, 0.1);
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    margin: 0;
    padding: 0;
    background: rgba(45, 27, 105, 0.5);
    border: 1px solid rgba(192, 132, 252, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

  .blog-posts {
    grid-template-columns: 1fr;
  }

  .post-image {
    height: 250px;
  }

  .post-excerpt {
    -webkit-line-clamp: 4;
  }

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

  .zodiac-signs {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  /* Blog post page specific - wider text */
  .post-layout .container {
    padding: 0 !important;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .post-sidebar {
    position: static;
    order: 2;
    padding: 0 0.75rem;
  }

  .post-detail {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .post-header {
    padding: 1.5rem 0.25rem 1rem 0.25rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
  }

  .post-content {
    padding: 0 0.25rem;
    font-size: 1rem;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
  }

  .post-footer {
    padding: 1.5rem 0.25rem 2rem 0.25rem;
  }

  .post-featured-image {
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 2rem;
    width: 100vw;
    max-width: 100vw;
    height: 200px;
    padding: 0;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(15, 11, 46, 0.3);
  }

  .post-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
  }

  .related-list {
    gap: 1rem;
  }

  .related-card {
    padding: 1rem;
  }

  .simple-calc-layout {
    grid-template-columns: 1fr;
  }

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

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

  .back-btn {
    position: static;
    display: block;
    margin-bottom: 1rem;
  }

  .couple-signs {
    flex-direction: column;
    gap: 1rem;
  }

  .zodiac-list,
  .chinese-animals-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Extra narrow screens (Galaxy Z Fold, very narrow phones) */
@media (max-width: 400px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  body {
    padding-top: 55px;
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.75rem !important;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-layout {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-detail {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .post-header {
    padding: 0.75rem 0;
    text-align: center;
  }

  .post-header h1 {
    font-size: 1.35rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    padding: 0 0.25rem;
  }

  .post-category {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .post-meta-info {
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.5rem;
    justify-content: center;
  }

  .post-content {
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-content p {
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1.25rem;
  }

  .post-content p:first-letter {
    font-size: 1.3em;
  }

  .post-footer {
    padding: 1.25rem 0 1.5rem 0;
    text-align: center;
  }

  .post-footer .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }

  .post-featured-image {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    left: 0;
    right: 0;
    width: calc(100% + 1.5rem);
    max-width: calc(100% + 1.5rem);
    height: 170px;
  }

  .post-sidebar {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .sidebar-sticky {
    padding: 1rem;
  }

  .related-card {
    padding: 0.85rem;
  }

  .related-card h4 {
    font-size: 0.9rem;
  }

  .related-card p {
    font-size: 0.8rem;
  }
}
