/* Modern Natal Chart Styles - Based on SVG Template */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: Tahoma, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  color: #3E3855;
  padding: 20px;
}

/* Mobile Warning Section */
.mobile-warning-section {
  display: none;
  padding: 0 20px;
  margin-bottom: 20px;
}

.mobile-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.mobile-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #f59e0b;
}

.warning-icon {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content h4 {
  margin: 0 0 8px 0;
  color: #92400e;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.warning-content p {
  margin: 0;
  color: #a16207;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 730px) {
  .mobile-warning-section {
    display: block;
  }
}

@media (max-width: 490px) {
  .mobile-warning-section {
    padding: 0 10px;
  }
  
  .mobile-warning {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .warning-content h4 {
    font-size: 0.95rem;
  }
  
  .warning-content p {
    font-size: 0.85rem;
  }
}

/* App Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 490px) {
  .app-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .ascendant-info {
    margin-top: -80px;
  }
  
  .ascendant-display {
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .birth-info-horizontal {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 12px !important;
    padding: 5px !important;
  }
  
  .birth-field {
    width: 100%;
    min-width: auto;
  }
  
  .birth-field input {
    width: 100%;
    box-sizing: border-box;
  }
  
  .city-search-field {
    grid-column: 1;
  }
  
  .birth-actions {
    grid-column: 1;
    justify-content: center;
  }
  
  .aspects-filter {
    margin-top: 10px;
  }
  
  .filter-checkboxes {
    gap: 8px;
  }
  
  .checkbox-item {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Main Content Layout */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Top Section - Chart only, block display */
.top-section {
  display: block;
}

.birth-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Chart Section */
.chart-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.chart-container {
  background: white;
  border-radius: 12px 12px 0 0;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 1360px;
  height: 1040px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
    z-index:-2;
}

.chart-title {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    z-index: 10;
    white-space: nowrap;
    min-width: 300px;
    min-height: 50px;
    line-height: 2;
}

.chart-points-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.chart-points-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2d3748;
  text-align: center;
}

/* Tables Section - Full Width Layout */
.tables-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Aspect Grid Section - Full Width with Houses Inside */
.aspect-grid-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.aspect-grid-section h3 {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.aspect-grid-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.aspect-grid {
  flex: 1;
}

.aspect-grid-container .houses-section {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.aspect-grid-container .houses-section h3 {
  display: none;
}

/* Responsive design for aspect grid container */
@media (min-width: 1025px) and (max-width: 1223px) {
  .aspect-grid-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .aspect-grid {
    width: 100%;
  }
  
  .aspect-grid-table {
    float: none;
    margin: 0 auto;
  }
  
  .aspect-grid-container .houses-section {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .aspect-grid-container {
    flex-direction: column;
  }
  
  .aspect-grid-container .houses-section {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 694px) {
  .aspect-grid-section {
    overflow: hidden;
  }
  
  .aspect-grid-container {
    overflow: hidden;
  }
  
  .aspect-grid {
    overflow-x: auto;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
  }
  
  .aspect-grid-table {
    transform: scale(0.75);
    transform-origin: center;
    margin: -50px auto -50px auto;
    display: block;
    width: 600px;
    height: 600px;
    flex-shrink: 0;
  }
}

@media (max-width: 550px) {
  .aspect-grid {
    min-height: 250px;
  }
  
  .aspect-grid-table {
    transform: scale(0.6);
    transform-origin: center;
    margin: -80px auto -80px auto;
    width: 600px;
    height: 600px;
  }
}

@media (max-width: 438px) {
  .aspect-grid {
    min-height: 200px;
  }
  
  .aspect-grid-table {
    transform: scale(0.45);
    transform-origin: center;
    margin: -120px auto -120px auto;
    width: 600px;
    height: 600px;
  }
}

.aspect-grid-table {
  border-collapse: collapse;
  float: left;
  background: white;
}

.aspect-cell {
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e0;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  font-weight: bold;
  position: relative;
}

.aspect-cell.planet-header {
  background: #edf2f7;
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
  padding: 4px;
}

.aspect-cell.planet-header img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.aspect-cell.planet-diagonal {
  background: #f0f4f8;
  border: 2px solid #cbd5e0;
}

.aspect-cell.planet-diagonal img {
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

.aspect-cell.bottom-label {
  background: #edf2f7;
  height: 30px;
}

.aspect-cell.label-text {
  font-weight: bold;
  font-size: 12px;
  color: #2d3748;
}

.planet-text {
  font-weight: bold;
  font-size: 12px;
  color: #2d3748;
  display: inline-block;
  min-width: 16px;
  text-align: center;
}

.aspect-cell.empty-corner {
  background: #f7fafc;
}

.aspect-cell.empty {
  background: #f8f9fa;
}

.aspect-cell img {
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

.aspect-cell.aspect-konjunkcija {
  background: #e6fffa;
}

.aspect-cell.aspect-opozicija {
  background: #fef5e7;
}

.aspect-cell.aspect-trinas {
  background: #e8f5e8;
}

.aspect-cell.aspect-kvadratas {
  background: #ffebee;
}

.aspect-cell.aspect-sekstilis {
  background: #f3e5f5;
}

.aspect-cell.aspect-inkongruentas {
  background: #fff3cd;
}

.aspect-cell.aspect-pusiau-kvadratas {
  background: #fce4ec;
}

.aspect-cell.aspect-pusiau-sekstilis {
  background: #e8eaf6;
}

/* English aspect names for compatibility */
.aspect-cell.aspect-conjunction {
  background: #e6fffa;
}

.aspect-cell.aspect-opposition {
  background: #fef5e7;
}

.aspect-cell.aspect-trine {
  background: #e8f5e8;
}

.aspect-cell.aspect-square {
  background: #ffebee;
}

.aspect-cell.aspect-sextile {
  background: #f3e5f5;
}

.aspect-cell.aspect-quincunx {
  background: #fff3cd;
}

.aspect-cell.aspect-semisquare {
  background: #fce4ec;
}

.aspect-cell.aspect-semisextile {
  background: #e8eaf6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .aspect-cell {
    width: 35px;
    height: 35px;
    font-size: 10px;
  }
  
  .aspect-cell img {
    max-width: 16px;
    max-height: 16px;
  }
}

/* Remove old aspect icons styles */

.table-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.table-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .top-section {
    display: block;
  }
}

@media (max-width: 1200px) {
  .top-section {
    display: block;
  }
  
  .birth-info-section {
    order: 1;
  }
  
  .chart-section {
    order: 2;
  }
  
  .tables-section {
    /* Already full width, no changes needed */
  }
  
  .table-card:last-child {
    /* No grid-column needed with flexbox layout */
  }
}

@media (max-width: 900px) {
  .tables-section {
    /* Already full width, no changes needed */
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .epsilon-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Component */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

/* Loader styles */
.loader {
  width: 80px;
  aspect-ratio: 1;
  display: grid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.loader::before,
.loader::after {    
  content:"";
  grid-area: 1/1;
  --c:no-repeat radial-gradient(farthest-side,#25b09b 92%,#0000);
  background: 
    var(--c) 50%  0, 
    var(--c) 50%  100%, 
    var(--c) 100% 50%, 
    var(--c) 0    50%;
  background-size: 20px 20px;
  animation: l12 1s infinite;
}
.loader::before {
  margin: 6px;
  filter: hue-rotate(45deg);
  background-size: 14px 14px;
  animation-timing-function: linear
}

@keyframes l12 { 
  100%{transform: rotate(.5turn)}
}

/* Chart container positioning - remove duplicate */

canvas {
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 1200px) {
  .premium-content {
    max-width: 90%;
  }
}

@media (min-width: 650px) and (max-width: 1118px) {
  .chart-container {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  .chart-title {
    top: 25px;
  }
  
  .ascendant-info {
    margin-top: -65px !important;
  }
}

@media (max-width: 1118px) {
  .chart-container {
    height: auto;
    min-height: 600px;
    padding: 10px;
  }
  
  canvas {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-width: 600px;
    max-height: 600px;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #4a5568;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #f7fafc;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Epsilon Grid */
.epsilon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.epsilon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.epsilon-item label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5568;
  margin: 0;
}

.epsilon-item input {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
  background: white;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 8px;
}

.btn-secondary:hover {
  background: #cbd5e0;
  transform: translateY(-1px);
}

.btn-clear {
  background: #fed7d7;
  color: #c53030;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 8px;
}

.btn-clear:hover {
  background: #feb2b2;
}

/* Info Section - Remove old grid positioning */
/* Storage Section - Remove old grid positioning */

/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.planetary-table,
.aspects-table,
.houses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.planetary-table th,
.aspects-table th,
.houses-table th {
  background: #f7fafc;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
}

.planetary-table td,
.aspects-table td,
.houses-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.planetary-table tr:hover,
.aspects-table tr:hover,
.houses-table tr:hover {
  background: #f7fafc;
}

/* Houses table specific styling */
.houses-table th:nth-child(1),
.houses-table td:nth-child(1) {
  width: 60px;
  padding: 10px 4px;
  text-align: center;
}

.houses-table th:nth-child(2),
.houses-table td:nth-child(2) {
  padding: 10px 12px;
}

.houses-table th:nth-child(3),
.houses-table td:nth-child(3) {
  width: 40px;
  padding: 10px 4px;
  text-align: center;
}

.house-number {
  font-weight: 600;
  color: #667eea;
  text-align: center;
}

.house-sign-icon {
  width: 24px;
  height: 24px;
}

.house-name {
  font-size: 0.85rem;
  color: #4a5568;
  max-width: 200px;
}

.house-cusp {
  font-weight: 500;
  color: #2d3748;
  white-space: nowrap;
}

/* House cell in planetary table */
.house-cell {
  text-align: center;
  font-weight: 600;
  color: #667eea;
  width: 60px;
}

/* Chart Points */
.chart-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-point {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.chart-point label {
  font-weight: 500;
  color: #4a5568;
  margin: 0;
}

.point-value {
  font-weight: 600;
  color: #2d3748;
}

/* Aspect highlighting styles */
.bondLine {
  cursor: pointer;
  transition: all 0.2s ease;
}

.bondLine:hover {
  background: #e2e8f0 !important;
}

.bondLine[data-highlight="true"] {
  background: #667eea !important;
  color: white;
  font-weight: 600;
}

.bondLine[data-highlight="true"] .planet-symbol,
.bondLine[data-highlight="true"] .aspect-separator {
  color: white;
}

/* Planet and aspect styling */
.planet-symbol {
  font-size: 1.1em;
  font-weight: 600;
  color: #667eea;
}

.planet-name {
  font-size: 0.85em;
  color: #4a5568;
  margin-left: 4px;
  text-transform: capitalize;
}

.sign-symbol {
  font-size: 1.1em;
  font-weight: 600;
  color: #764ba2;
}

.sign-name {
  font-size: 0.85em;
  color: #4a5568;
  margin-left: 4px;
}

.retrograde-indicator {
  background: #fed7d7;
  color: #c53030;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.direct-indicator {
  background: #c6f6d5;
  color: #2f855a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.retrograde {
  background: rgba(254, 215, 215, 0.3);
}

.aspect-separator {
  margin: 0 6px;
  color: #a0aec0;
  font-weight: 600;
}

.aspect-name {
  font-weight: 600;
  color: #2d3748;
}

.no-aspects {
  text-align: center;
  color: #a0aec0;
  font-style: italic;
  padding: 20px;
}

/* Aspect type colors */
.aspect-konjunkcija .aspect-name { color: #e53e3e; }
.aspect-opozicija .aspect-name { color: #3182ce; }
.aspect-trinas .aspect-name { color: #38a169; }
.aspect-kvadratas .aspect-name { color: #d69e2e; }
.aspect-sekstilis .aspect-name { color: #805ad5; }
.aspect-inkongruentas .aspect-name { color: #dd6b20; }
.aspect-pusiau-kvadratas .aspect-name { color: #718096; }
.aspect-pusiau-sekstilis .aspect-name { color: #4a5568; }

/* English aspect names for compatibility */
.aspect-conjunction .aspect-name { color: #e53e3e; }
.aspect-opposition .aspect-name { color: #3182ce; }
.aspect-trine .aspect-name { color: #38a169; }
.aspect-square .aspect-name { color: #d69e2e; }
.aspect-sextile .aspect-name { color: #805ad5; }
.aspect-quincunx .aspect-name { color: #dd6b20; }
.aspect-semisquare .aspect-name { color: #718096; }
.aspect-semisextile .aspect-name { color: #4a5568; }

/* Ascendant info section */
.sign-ruler {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 5px;
    color: #666;
}

.sign-ruler:hover {
    opacity: 1;
    color: #333;
}

/* Planetary Positions Table */
.planetary-positions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.planetary-positions table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.planetary-positions th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.planetary-positions td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    height: 40px;
    vertical-align: middle;
}

.planetary-positions tr:hover {
    background-color: #f8f9ff;
}

.planetary-positions tr.retrograde {
    background-color: #fff5f5;
}

.planetary-positions tr.retrograde:hover {
    background-color: #ffe5e5;
}

/* Enhanced planetary positions table */
.planet-cell {
    align-items: center;
    gap: 8px;
    border-left: 3px solid transparent;
    padding-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.planet-cell .planet-icon {
    display: inline-block;
    vertical-align: middle;
}

.planet-cell .planet-name {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.position-cell {
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

.sign-cell {
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 120px;
}

.sign-cell .sign-icon {
    display: inline-block;
    vertical-align: middle;
}

.sign-cell .sign-name {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.sign-cell .sign-ruler {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.house-cell {
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
}

.status-cell {
    text-align: center;
    vertical-align: middle;
}

.retrograde-indicator {
    color: #d32f2f;
    font-weight: bold;
}

.direct-indicator {
    color: #388e3c;
    font-weight: bold;
}

/* Ascendant info section */
.ascendant-info {
  margin: 0;
margin-top: -100px;
  padding: 0;
}

.ascendant-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px 20px;
  background: linear-gradient(135deg, #10b981, #059669, #047857);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  gap: 10px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.ascendant-label {
  font-weight: 600;
}

.ascendant-icon {
  width:32px;
  height:32px;
}

.ascendant-value {
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

/* Modern Birth Info Horizontal Panel */
.birth-info-section {
  margin: 0;
  padding: 0;
}

.birth-info-horizontal {
  display: grid;
  grid-template-columns: 200px 180px 1fr 120px;
  gap: 20px;
  align-items: end;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 25px 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.birth-info-horizontal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.birth-field {
  position: relative;
  z-index: 1;
}

.birth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.birth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  height: 44px;
  box-sizing: border-box;
}

.birth-field input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2);
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.birth-field input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.birth-actions {
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.birth-actions .btn-primary {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.birth-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.birth-actions .btn-primary:hover::before {
  left: 100%;
}

.birth-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.birth-actions .btn-primary:active {
  transform: translateY(0);
}

.birth-actions .btn-secondary {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Aspects filter section */
.aspects-filter {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  z-index: 1;
  position: relative;
}

.filter-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #4a5568;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.checkbox-group {
  display: contents;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aspect-icon {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.checkbox-item:hover .aspect-icon {
  opacity: 1;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #48bb78;
}

.checkbox-item label {
  font-size: 0.9rem;
  color: #4a5568;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}

/* Responsive design for birth info */
@media (max-width: 1200px) {
  .birth-info-horizontal {
    grid-template-columns: 180px 160px 1fr 110px;
    gap: 15px;
    padding: 20px 25px;
  }
  
  .birth-field {
    min-width: 130px;
  }
}

@media (max-width: 900px) {
  .birth-info-horizontal {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  
  .city-search-field {
    grid-column: 1 / -1;
  }
  
  .birth-field {
    min-width: auto;
  }
  
  .birth-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
  
  .filter-checkboxes {
    gap: 10px;
  }
  
  .checkbox-item {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .birth-actions {
    flex-direction: column;
  }
}

/* City Search Styles */
.city-search-field {
  position: relative;
}

.city-search-container {
  position: relative;
  width: 100%;
  z-index: 99999;
}

.city-search-field {
  position: relative;
  z-index: 99999;
}

.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  max-height: 300px;
  overflow-y: auto;
}

.city-dropdown.hidden {
  display: none;
}

.dropdown-content {
  padding: 0;
}

.city-option {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.city-option:hover {
  background-color: #f5f5f5;
}

.city-option:last-child {
  border-bottom: none;
}

.city-option.selected {
  background-color: #e3f2fd;
}

.no-results {
  padding: 12px 16px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Ensure the city input has proper styling to match other birth fields */
#cityInput {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #f7fafc;
  height: 44px; /* Fixed height for consistency */
  box-sizing: border-box;
}

#cityInput:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Premium Overlay with Glass Morphism */
.premium-overlay-container {
  position: relative;
}

.premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.premium-content {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  will-change: transform;
  transform: translateZ(0);
}

.premium-content h4 {
  margin: 0 0 10px 0;
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.premium-subtitle {
  margin: 0 0 20px 0;
  padding: 0 20px;
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}

.premium-button {
  background: linear-gradient(135deg, #0047bb 0%, #003d9e 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 71, 187, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.premium-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.premium-button:hover::before {
  left: 100%;
}

.premium-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 71, 187, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #0052d4 0%, #0041a8 100%);
}

/* Custom scrollbar for dropdown */
.city-dropdown::-webkit-scrollbar {
  width: 6px;
}

.city-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.city-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.city-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Aspects table fade effect */
.aspects-fade-container {
  position: relative;
}

.aspects-fade-container .table-container {
  position: relative;
  overflow: hidden;
  max-height: 600px;
  pointer-events: none;
}

.aspects-table tbody tr {
  transition: all 0.3s ease;
}

.aspects-table tbody tr:nth-child(1),
.aspects-table tbody tr:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
}

.aspects-table tbody tr:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
}

.aspects-table tbody tr:nth-child(4) {
  opacity: 0.95;
  transform: translateY(0);
}

.aspects-table tbody tr:nth-child(5) {
  opacity: 0.85;
  transform: translateY(2px);
  filter: blur(0.5px);
}

.aspects-table tbody tr:nth-child(6) {
  opacity: 0.7;
  transform: translateY(4px);
  filter: blur(1px);
}

.aspects-table tbody tr:nth-child(7) {
  opacity: 0.55;
  transform: translateY(6px);
  filter: blur(1.5px);
}

.aspects-table tbody tr:nth-child(8) {
  opacity: 0.4;
  transform: translateY(8px);
  filter: blur(2px);
}

.aspects-table tbody tr:nth-child(9) {
  opacity: 0.25;
  transform: translateY(10px);
  filter: blur(2.5px);
}

.aspects-table tbody tr:nth-child(10) {
  opacity: 0.1;
  transform: translateY(12px);
  filter: blur(3px);
}

.aspects-table tbody tr:nth-child(n+11) {
  display: none;
}

.aspects-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 15%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.85) 75%,
    rgba(255, 255, 255, 0.95) 90%,
    white 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  pointer-events: none;
}

.fade-message {
  text-align: center;
  color: #2d3748;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: auto;
}

.fade-message p {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
}

.fade-subtitle {
  font-size: 0.9rem !important;
  color: #4a5568 !important;
  font-weight: 400 !important;
  margin: 0 0 15px 0 !important;
}

.fade-message .premium-button {
  margin-top: 5px;
}

/* Error Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 400px;
  max-width: 500px;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

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

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

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f7fafc;
  color: #4a5568;
}

.modal-body {
  padding: 20px 25px;
}

.modal-body p {
  margin: 0;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
}

.modal-footer {
  padding: 15px 25px 20px;
  display: flex;
  justify-content: flex-end;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-1px);
}