/* ═══════════════════════════════════════════════════════════════
   Astrology Tools — WordPress Plugin CSS
   Clean, modern design inspired by NextAstrology.com
   ═══════════════════════════════════════════════════════════════ */

.astro-tool {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.astro-subtitle {
    color: #555;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
}

/* ─── Form Container ──────────────────────────────────────── */
.astro-form-wrap {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    background: #fafafa;
}

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

.astro-row {
    display: flex;
    gap: 20px;
}

.astro-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.astro-half {
    flex: 1;
}

.astro-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ─── Input Fields ────────────────────────────────────────── */
.astro-input {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #eeeeee;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.astro-input:focus {
    background: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(30, 30, 80, 0.15);
}

.astro-input::placeholder {
    color: #999;
}

/* ─── Date & Time Rows ────────────────────────────────────── */
.astro-date-row,
.astro-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.astro-date-row span,
.astro-time-row span {
    font-size: 18px;
    color: #666;
    font-weight: 300;
}

.astro-date-row .astro-input,
.astro-time-row .astro-input {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
}

.astro-time-row select.astro-input {
    flex: 0.8;
    cursor: pointer;
    appearance: auto;
}

/* ─── City Autocomplete Dropdown ──────────────────────────── */
.astro-city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.astro-city-dropdown.active {
    display: block;
}

.astro-city-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

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

.astro-city-item:hover {
    background: #f5f5ff;
}

.astro-city-item .astro-city-tz {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ─── Submit Button ───────────────────────────────────────── */
.astro-submit-row {
    text-align: center;
    margin-top: 10px;
}

.astro-btn {
    background: #1a1a4e;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.astro-btn:hover {
    background: #2a2a6e;
    transform: translateY(-1px);
}

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

.astro-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* ─── Two Person Form ─────────────────────────────────────── */
.astro-person-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.astro-person-section:last-of-type {
    border-bottom: none;
}

.astro-person-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a4e;
    margin-bottom: 15px;
}

/* ─── Loading Spinner ─────────────────────────────────────── */
.astro-loading {
    text-align: center;
    padding: 40px 20px;
}

.astro-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #1a1a4e;
    border-radius: 50%;
    animation: astro-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes astro-spin {
    to { transform: rotate(360deg); }
}

.astro-loading p {
    color: #666;
    font-size: 15px;
}

/* ─── Results ─────────────────────────────────────────────── */
.astro-result {
    margin-top: 30px;
}

.astro-result-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.astro-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a4e;
    margin-bottom: 20px;
    text-align: center;
}

/* Big Three Summary */
.astro-big-three {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.astro-sign-box {
    text-align: center;
    padding: 20px;
    background: #f8f8ff;
    border-radius: 12px;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

.astro-sign-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.astro-sign-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a4e;
}

.astro-sign-degree {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.astro-sign-element {
    font-size: 11px;
    color: #fff;
    background: #1a1a4e;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 8px;
}

/* Planet Table */
.astro-planet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.astro-planet-table th {
    background: #1a1a4e;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.astro-planet-table th:first-child {
    border-radius: 8px 0 0 0;
}

.astro-planet-table th:last-child {
    border-radius: 0 8px 0 0;
}

.astro-planet-table td {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.astro-planet-table tr:nth-child(even) {
    background: #fafafa;
}

.astro-retrograde {
    color: #e74c3c;
    font-weight: 600;
    font-size: 12px;
}

/* Compatibility Score */
.astro-compat-score {
    text-align: center;
    margin: 20px 0;
}

.astro-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1a1a4e;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.astro-score-num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.astro-score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.astro-score-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.astro-score-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.astro-score-bar-label {
    font-size: 13px;
    color: #555;
    width: 100px;
    text-align: right;
}

.astro-score-bar-track {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.astro-score-bar-fill {
    height: 100%;
    background: #1a1a4e;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.astro-score-bar-val {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a4e;
    width: 35px;
}

/* Aspects Table */
.astro-aspects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

.astro-aspects-table th {
    background: #f5f5f5;
    padding: 8px 12px;
    font-weight: 500;
    text-align: left;
    color: #555;
}

.astro-aspects-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Single Result (sign calculators) */
.astro-single-result {
    text-align: center;
    padding: 30px;
}

.astro-single-sign {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a4e;
    margin: 10px 0;
}

.astro-single-details {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-top: 15px;
}

/* Error */
.astro-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    font-size: 15px;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .astro-row {
        flex-direction: column;
        gap: 15px;
    }
    .astro-form-wrap {
        padding: 20px 15px;
    }
    .astro-big-three {
        flex-direction: column;
        align-items: center;
    }
    .astro-sign-box {
        max-width: 100%;
        width: 100%;
    }
    .astro-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ─── Interpretation Sections ──────────────────────────── */
.astro-interpretation {
    margin-top: 20px;
    padding: 0;
    text-align: left;
}
.astro-interp-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a4e;
    margin: 25px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8f0;
}
.astro-interp-section {
    margin-bottom: 15px;
}
.astro-interp-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.astro-interp-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* ─── Phase 3: SVG Bi-wheel Chart Display ──────────────── */
.astro-svg-wrap {
    text-align: center;
    margin: 20px auto 25px;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8f0;
    overflow: hidden;
}
.astro-svg-large {
    max-width: 620px;
}
.astro-svg-crop {
    width: 100%;
    max-height: 620px;
    overflow: hidden;
    position: relative;
}
.astro-svg-crop svg {
    display: block;
    margin: 0 auto;
    width: 200%;
    max-width: none;
    margin-left: -10%;
    margin-top: -5%;
}
.astro-svg-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #999;
}
.astro-svg-placeholder p {
    margin-top: 10px;
    font-size: 14px;
}
@media (max-width: 640px) {
    .astro-svg-large {
        max-width: 100%;
    }
    .astro-svg-crop {
        max-height: 400px;
    }
    .astro-svg-crop svg {
        width: 250%;
        margin-left: -30%;
        margin-top: -8%;
    }
}

/* ─── Section Titles (shared) ──────────────────────────── */
.astro-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a4e;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8f0;
}

/* ─── Side-by-side Planetary Table ──────────────────────── */
.astro-sidebyside-wrap {
    overflow-x: auto;
    margin: 0 0 10px;
}
.astro-sidebyside-table {
    width: 100%;
    border-collapse: collapse;
}
.astro-sidebyside-table th {
    background: #1a1a4e;
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}
.astro-sidebyside-table th:first-child { border-radius: 8px 0 0 0; }
.astro-sidebyside-table th:last-child  { border-radius: 0 8px 0 0; }
.astro-sidebyside-table td {
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.astro-sidebyside-table tr:nth-child(even) { background: #fafafa; }
.astro-sbs-planet {
    font-weight: 600;
    color: #1a1a4e;
}
.astro-sbs-house {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}

/* ─── Phase 1: Aspect Category Lines (Astro-Seek style) ─── */
.astro-cat-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e8e8f0;
}
.astro-cat-line {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
.astro-cat-line-count {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a4e;
    min-width: 30px;
    display: inline-block;
}
.astro-cat-line-emoji {
    font-size: 18px;
    vertical-align: middle;
}
.astro-cat-line-name {
    font-weight: 700;
    font-size: 15px;
}
.astro-cat-line-dash {
    color: #999;
}
.astro-cat-line-desc {
    color: #555;
    font-size: 14px;
}

/* ─── Phase 1: Aspect Category Badges (kept for reference) ─── */
.astro-cat-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
    justify-content: center;
}
.astro-cat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 2px solid;
    border-radius: 24px;
    background: #fff;
    font-size: 13px;
}
.astro-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}
.astro-cat-label {
    font-weight: 500;
    color: #333;
}

/* ─── Category Sections (expandable) ───────────────────── */
.astro-cat-section {
    margin-bottom: 8px;
}
.astro-cat-header {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a4e;
    margin: 0;
    padding: 12px 16px;
    background: #f8f8fc;
    border-radius: 10px;
    border-left: 4px solid;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    user-select: none;
}
.astro-cat-header:hover {
    background: #f0f0fa;
}
.astro-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.astro-cat-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
}
.astro-cat-arrow-up {
    transform: rotate(180deg);
}
.astro-cat-desc {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0 20px;
    font-style: italic;
}
.astro-cat-body {
    padding: 8px 0 0 0;
}
.astro-cat-header-flat {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a4e;
    margin: 0 0 8px;
    padding: 12px 16px;
    background: #f8f8fc;
    border-radius: 10px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 8px;
}
.astro-cat-table td,
.astro-cat-table th {
    font-size: 13px;
}

/* ─── Color-coded Aspect Badges ────────────────────────── */
.astro-asp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.astro-asp-trine        { background: #2a9d8f; }
.astro-asp-sextile      { background: #52b788; }
.astro-asp-conjunction   { background: #d4a017; }
.astro-asp-square       { background: #e63946; }
.astro-asp-opposition   { background: #c1121f; }

.astro-exact-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: #6c3ec1;
    background: #f0ebff;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Color-coded table rows (subtle bg) */
tr.astro-asp-trine td      { background: rgba(42,157,143,0.04); }
tr.astro-asp-sextile td    { background: rgba(82,183,136,0.04); }
tr.astro-asp-conjunction td { background: rgba(212,160,23,0.04); }
tr.astro-asp-square td     { background: rgba(230,57,70,0.04); }
tr.astro-asp-opposition td { background: rgba(193,18,31,0.04); }

/* ─── Phase 2: House Overlay Cards ─────────────────────── */
.astro-overlays {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.astro-overlay-card {
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s;
}
.astro-overlay-card:hover {
    box-shadow: 0 2px 8px rgba(26,26,78,0.08);
}
.astro-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f8fc;
    border-bottom: 1px solid #f0f0f5;
    flex-wrap: wrap;
}
.astro-overlay-planet {
    font-weight: 700;
    color: #1a1a4e;
    font-size: 15px;
}
.astro-overlay-info {
    font-size: 13px;
    color: #666;
}
.astro-overlay-arrow {
    color: #999;
    font-size: 16px;
}
.astro-overlay-house {
    font-weight: 600;
    color: #2a9d8f;
    font-size: 14px;
    background: #e8f8f5;
    padding: 2px 10px;
    border-radius: 10px;
}
.astro-overlay-interp {
    padding: 12px 16px;
}
.astro-overlay-interp p {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* ─── Responsive additions ─────────────────────────────── */
@media (max-width: 640px) {
    .astro-cat-summary {
        gap: 6px;
    }
    .astro-cat-badge {
        padding: 4px 10px;
        font-size: 12px;
    }
    .astro-overlay-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .astro-sidebyside-table {
        font-size: 12px;
    }
    .astro-svg-wrap {
        padding: 5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BIRTH CHART UPGRADE — New Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Chart Wheel Section ───────────────────────────────── */
.astro-chart-wheel-section {
    margin: 24px 0;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

/* ─── Overview Grid (Shape, Elements, Modality, Aspects) ─ */
.astro-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 24px 0 12px;
}

.astro-overview-card {
    background: linear-gradient(135deg, #f8f6ff 0%, #fef5fb 100%);
    border: 1px solid #e8e0f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.astro-overview-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8b7aa0;
    margin-bottom: 6px;
    font-weight: 600;
}

.astro-overview-value {
    font-size: 16px;
    font-weight: 700;
    color: #2a2a5e;
    line-height: 1.3;
}

.astro-overview-pct {
    font-size: 12px;
    font-weight: 500;
    color: #8b7aa0;
    margin-left: 4px;
}

.astro-shape-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 8px 0 24px;
    padding: 12px 16px;
    background: #f9f7ff;
    border-left: 3px solid #a58ed4;
    border-radius: 4px;
    font-style: italic;
}

/* ─── Section Titles ─────────────────────────────────── */
.astro-section-title {
    margin: 28px 0 10px;
    font-size: 18px;
    color: #1a1a4e;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0edf5;
}

.astro-section-desc {
    font-size: 13px;
    color: #777;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* ─── Chart Patterns ─────────────────────────────────── */
.astro-patterns {
    display: grid;
    gap: 14px;
    margin: 16px 0 24px;
}

.astro-pattern-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fef5f5 100%);
    border: 1px solid #f0e0d0;
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

.astro-pattern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4a373 0%, #c58e8e 100%);
}

.astro-pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.astro-pattern-name {
    font-size: 16px;
    font-weight: 700;
    color: #8b5a3c;
}

.astro-pattern-loc {
    font-size: 12px;
    color: #a07a5f;
    background: #fff4e6;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.astro-pattern-planets {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.astro-pattern-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ─── Interpretation Block Titles ─────────────────────── */
.astro-interp-title {
    font-size: 17px;
    font-weight: 700;
    color: #2a2a5e;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.astro-interp-section h5 {
    font-size: 13px;
    font-weight: 700;
    color: #6b5b95;
    margin: 10px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-interp-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 8px;
}

/* ─── Houses Table ─────────────────────────────────────── */
.astro-table-wrap {
    overflow-x: auto;
    margin: 12px 0 24px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.astro-houses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.astro-houses-table th {
    background: #f4f0fa;
    color: #4a3a6b;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-houses-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f3f8;
}

.astro-houses-table tr:last-child td { border-bottom: none; }

.astro-houses-table tr:nth-child(even) td { background: #fafafc; }

.astro-house-num {
    font-weight: 700;
    color: #6b5b95;
    white-space: nowrap;
}

.astro-house-sign {
    font-weight: 600;
    color: #2a2a5e;
}

.astro-house-area {
    color: #666;
    font-size: 12px;
}

/* ─── Enhanced Planet Table ───────────────────────────── */
.astro-planet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.astro-planet-table th {
    background: #f4f0fa;
    color: #4a3a6b;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-planet-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f3f8;
}

.astro-planet-table tr:nth-child(even) td { background: #fafafc; }

.astro-planet-name {
    font-weight: 700;
    color: #2a2a5e;
}

/* ─── Aspects Table Enhancement ───────────────────────── */
.astro-legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 14px;
    font-size: 12px;
    color: #666;
}

.astro-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.astro-legend-dot.astro-asp-trine { background: #4caf50; }
.astro-legend-dot.astro-asp-sextile { background: #4caf50; }
.astro-legend-dot.astro-asp-square { background: #e53935; }
.astro-legend-dot.astro-asp-opposition { background: #e53935; }
.astro-legend-dot.astro-asp-conjunction { background: #9c27b0; }

.astro-asp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.astro-asp-badge.astro-asp-trine, .astro-asp-badge.astro-asp-sextile {
    background: #4caf50;
}

.astro-asp-badge.astro-asp-square, .astro-asp-badge.astro-asp-opposition {
    background: #e53935;
}

.astro-asp-badge.astro-asp-conjunction {
    background: #9c27b0;
}

.astro-exact-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

/* ─── Hemisphere Grid ─────────────────────────────────── */
.astro-hemi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 14px 0 24px;
}

.astro-hemi-card {
    background: #faf8fc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 14px;
}

.astro-hemi-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.astro-hemi-val {
    font-size: 14px;
    font-weight: 700;
    color: #2a2a5e;
}

/* ─── Action Buttons ──────────────────────────────────── */
.astro-actions {
    margin: 24px 0 12px;
    text-align: center;
}

.astro-print-btn {
    background: #555 !important;
}

/* ─── Print Styles ────────────────────────────────────── */
@media print {
    .astro-form-wrap, .astro-actions, .astro-recalc-btn, .astro-submit-row {
        display: none !important;
    }
    .astro-result {
        box-shadow: none;
        padding: 0;
    }
    .astro-section-title {
        page-break-after: avoid;
    }
    .astro-pattern-card, .astro-overview-card {
        page-break-inside: avoid;
    }
}

/* ─── Mobile Responsive (Birth Chart Upgrade) ─────────── */
@media (max-width: 640px) {
    .astro-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .astro-overview-value {
        font-size: 14px;
    }
    .astro-section-title {
        font-size: 16px;
    }
    .astro-pattern-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .astro-houses-table, .astro-planet-table, .astro-aspects-table {
        font-size: 12px;
    }
    .astro-houses-table th, .astro-planet-table th, .astro-aspects-table th,
    .astro-houses-table td, .astro-planet-table td, .astro-aspects-table td {
        padding: 8px 6px;
    }
    .astro-house-area {
        font-size: 11px;
    }
    .astro-legend-item {
        display: block;
        margin-bottom: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BIRTH CHART v2.1 POLISH — Birth Data Card + Share Buttons
   ═══════════════════════════════════════════════════════════════ */

/* ─── Chart Wheel Clean Display ─────────────────────────── */
.astro-chart-wheel-section {
    margin: 24px 0 16px;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    border: none;
}

.astro-chart-wheel-section .astro-svg-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.astro-chart-wheel-section svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Remove the extra data text that Kerykeion draws — use wheel_only mode */
.astro-chart-wheel-section .astro-svg-crop {
    overflow: hidden;
    border-radius: 8px;
}

/* ─── Birth Data Card (separate, clean) ─────────────────── */
.astro-birth-data-card {
    background: linear-gradient(135deg, #f8f6ff 0%, #fef5fb 100%);
    border: 1px solid #e8e0f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 24px;
}

.astro-birth-data-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b5b95;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(107, 91, 149, 0.15);
}

.astro-birth-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 20px;
}

.astro-bd-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.astro-bd-label {
    font-size: 11px;
    color: #8b7aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.astro-bd-value {
    font-size: 14px;
    color: #2a2a5e;
    font-weight: 600;
}

/* ─── Social Share Buttons ─────────────────────────────── */
.astro-actions {
    margin: 32px 0 16px;
    text-align: center;
    padding: 24px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.astro-share-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.astro-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: white;
    font-family: inherit;
}

.astro-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: white;
}

.astro-share-btn svg {
    flex-shrink: 0;
}

.astro-share-whatsapp { background: #25D366; }
.astro-share-whatsapp:hover { background: #1da851; }

.astro-share-facebook { background: #1877F2; }
.astro-share-facebook:hover { background: #145dbe; }

.astro-share-twitter { background: #000000; }
.astro-share-twitter:hover { background: #333; }

.astro-share-telegram { background: #0088cc; }
.astro-share-telegram:hover { background: #006ba3; }

.astro-share-copy {
    background: #6b5b95;
    color: white;
}
.astro-share-copy:hover { background: #554478; }

/* ─── Mobile — Share Buttons ─────────────────────────── */
@media (max-width: 640px) {
    .astro-share-buttons {
        gap: 8px;
    }
    .astro-share-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .astro-share-btn svg {
        width: 16px;
        height: 16px;
    }
    .astro-birth-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
    }
    .astro-bd-value {
        font-size: 13px;
    }
    .astro-actions {
        padding: 18px 14px;
    }
}

/* ─── Print-friendly (hide share buttons when printing) ── */
@media print {
    .astro-actions {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SYNASTRY RELATIONSHIP SCORE CARD
   ═══════════════════════════════════════════════════════════════ */

.astro-rel-score-card {
    background: linear-gradient(135deg, #fff5f8 0%, #f5f0ff 100%);
    border: 1px solid #f0e0eb;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(139, 91, 149, 0.08);
}

.astro-rel-score-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8b7aa0;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Circular score display */
.astro-rel-score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.astro-rel-score-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.astro-rel-score-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.astro-rel-score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.astro-rel-score-num {
    font-size: 48px;
    font-weight: 800;
    color: #2a2a5e;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.astro-rel-score-outof {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.astro-rel-score-rating {
    font-size: 24px;
    font-weight: 700;
    margin: 12px 0;
    letter-spacing: 0.5px;
}

.astro-rel-score-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    max-width: 580px;
    margin: 0 auto 16px;
    padding: 0 16px;
}

/* Breakdown section */
.astro-rel-score-breakdown {
    margin: 20px auto 0;
    max-width: 500px;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid rgba(139, 91, 149, 0.1);
}

.astro-rel-score-breakdown-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b5b95;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 91, 149, 0.15);
}

.astro-rel-score-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.astro-rel-score-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.astro-rel-score-breakdown-desc {
    color: #555;
    flex: 1;
    line-height: 1.4;
}

.astro-rel-score-breakdown-pts {
    font-weight: 700;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 4px;
    min-width: 42px;
    text-align: center;
    flex-shrink: 0;
}

.astro-rel-score-breakdown-pts.positive {
    background: #e8f5e9;
    color: #2e7d32;
}

.astro-rel-score-breakdown-pts.negative {
    background: #ffebee;
    color: #c62828;
}

.astro-rel-score-breakdown-pts.neutral {
    background: #f5f5f5;
    color: #666;
}

.astro-rel-score-method {
    font-size: 11px;
    color: #999;
    margin-top: 16px;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .astro-rel-score-card {
        padding: 24px 16px;
    }
    .astro-rel-score-circle {
        width: 140px;
        height: 140px;
    }
    .astro-rel-score-num {
        font-size: 40px;
    }
    .astro-rel-score-rating {
        font-size: 20px;
    }
    .astro-rel-score-desc {
        font-size: 13px;
        padding: 0;
    }
    .astro-rel-score-breakdown {
        padding: 14px 16px;
    }
    .astro-rel-score-breakdown-desc {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 2A — 5 SIGN TOOLS UPGRADE
   (Sun, Moon, Rising, Big Three, Venus — shared styles)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Result Title ─────────────────────────────────────── */
.astro-subtitle-desc {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0 10px;
}

.astro-subtitle-desc strong {
    color: #2a2a5e;
    font-weight: 700;
}

/* ─── Sign Hero Card (the BIG visual piece) ─────────────── */
.astro-sign-hero {
    position: relative;
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    color: white;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
}

.astro-sign-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.astro-sign-hero-tool {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.astro-sign-hero-glyph {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    font-weight: 400;
}

.astro-sign-hero-name {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
}

.astro-sign-hero-meta {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    font-weight: 500;
}

.astro-sign-hero-degree {
    font-weight: 700;
}

.astro-sign-hero-sep {
    opacity: 0.5;
}

.astro-sign-hero-retro {
    background: rgba(255,255,255,0.25);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── Sign Hero Badges (Element, Quality, Ruler) ──────── */
.astro-sign-hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.astro-sign-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 90px;
}

.astro-sign-badge-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 600;
    margin-bottom: 2px;
}

.astro-sign-badge-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

/* ─── Single Sign Result Container ───────────────────── */
.astro-single-result {
    padding: 0;
}

.astro-single-desc {
    margin: 20px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    padding: 14px 18px;
    background: #faf8fc;
    border-left: 3px solid #a58ed4;
    border-radius: 4px;
    font-style: italic;
}

/* ─── Big Three Grid Layout ─────────────────────────── */
.astro-big-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.astro-bt-wrap .astro-sign-hero {
    padding: 24px 14px 20px;
    margin: 0;
}

.astro-bt-wrap .astro-sign-hero-glyph {
    font-size: 54px;
}

.astro-bt-wrap .astro-sign-hero-name {
    font-size: 24px;
    margin-bottom: 8px;
}

.astro-bt-wrap .astro-sign-hero-tool {
    font-size: 10px;
    margin-bottom: 8px;
}

.astro-bt-wrap .astro-sign-hero-meta {
    font-size: 12px;
    margin-bottom: 12px;
}

.astro-bt-wrap .astro-sign-hero-badges {
    gap: 6px;
}

.astro-bt-wrap .astro-sign-badge {
    min-width: 0;
    padding: 5px 10px;
}

.astro-bt-wrap .astro-sign-badge-label {
    font-size: 9px;
}

.astro-bt-wrap .astro-sign-badge-val {
    font-size: 11px;
}

.astro-bt-interp-section {
    margin-bottom: 8px;
}

/* ─── Mobile responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .astro-big-three-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .astro-bt-wrap .astro-sign-hero {
        padding: 28px 20px 24px;
    }
    .astro-bt-wrap .astro-sign-hero-glyph {
        font-size: 64px;
    }
    .astro-bt-wrap .astro-sign-hero-name {
        font-size: 32px;
    }
    .astro-bt-wrap .astro-sign-badge-label {
        font-size: 10px;
    }
    .astro-bt-wrap .astro-sign-badge-val {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .astro-sign-hero {
        padding: 28px 18px 22px;
    }
    .astro-sign-hero-glyph {
        font-size: 64px;
    }
    .astro-sign-hero-name {
        font-size: 32px;
    }
    .astro-sign-hero-meta {
        font-size: 13px;
        gap: 6px;
    }
    .astro-sign-hero-badges {
        gap: 8px;
    }
    .astro-sign-badge {
        padding: 6px 12px;
        min-width: 80px;
    }
    .astro-sign-badge-val {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOVE COMPATIBILITY CALCULATOR — UPGRADED (v2.6.0)
   ═══════════════════════════════════════════════════════════════ */

.astro-love-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Dual-person hero cards grid */
.astro-love-persons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.astro-love-person-card {
    background: linear-gradient(135deg, #fff5f8 0%, #fef0f5 100%);
    border: 2px solid var(--accent, #e11d48);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astro-love-person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.15);
}

.astro-love-person-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent, #e11d48);
    text-align: center;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.15);
}

.astro-love-signs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.astro-love-sign-item {
    background: #ffffff;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.astro-love-sign-planet {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.astro-love-sign-name {
    font-size: 16px;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.astro-love-sign-element {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Love compatibility progress bars */
.astro-love-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.astro-love-bar-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
}

.astro-love-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.astro-love-bar-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.astro-love-bar-pct {
    font-size: 18px;
    font-weight: 700;
}

.astro-love-bar-track {
    background: #e5e7eb;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.astro-love-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .astro-love-persons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .astro-love-person-card {
        padding: 20px 16px;
    }

    .astro-love-person-name {
        font-size: 20px;
    }

    .astro-love-signs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .astro-love-sign-item {
        padding: 8px 10px;
    }

    .astro-love-sign-name {
        font-size: 14px;
    }

    .astro-love-bar-item {
        padding: 12px 14px;
    }

    .astro-love-bar-label {
        font-size: 14px;
    }

    .astro-love-bar-pct {
        font-size: 16px;
    }
}
