/**
 * NumAstral — Esoteric Application Styles
 * Mobile-first approach with CSS custom properties
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Number colors - each number has its own color */
    --number-1: #e74c3c; /* Red - Leadership, Fire */
    --number-2: #3498db; /* Blue - Harmony, Water */
    --number-3: #f39c12; /* Orange - Creativity, Sun */
    --number-4: #27ae60; /* Green - Stability, Earth */
    --number-5: #9b59b6; /* Purple - Change, Spirit */
    --number-6: #e91e63; /* Pink - Love, Heart */
    --number-7: #00bcd4; /* Cyan - Wisdom, Sky */
    --number-8: #795548; /* Brown - Power, Material */
    --number-9: #607d8b; /* Blue Grey - Completion, Universe */

    /* Base colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cosmic-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gold-gradient: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --cosmic-glow: 0 0 30px rgba(102, 126, 234, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: var(--cosmic-gradient);
    color: #fff;
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.hero-section .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
}

.hero-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    background: var(--cosmic-gradient);
    padding: 0.75rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
}

.language-switcher .dropdown-toggle {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
}

.language-switcher .dropdown-menu {
    min-width: auto;
}

.language-switcher .dropdown-item.active {
    background: var(--primary-gradient);
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */

.feature-tabs {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
}

.feature-tabs .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    padding: 0;
}

.feature-tabs .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #6c757d;
    transition: all var(--transition-normal);
    white-space: nowrap;
    font-size: 0.9rem;
}

.feature-tabs .nav-tabs .nav-link i {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.feature-tabs .nav-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.feature-tabs .nav-tabs .nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.feature-tabs .tab-content {
    padding: 1.5rem;
}

/* Locked tab indicator */
.nav-link .badge-premium {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    background: var(--gold-gradient);
    border-radius: 0.75rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.spinner-wrapper {
    text-align: center;
    color: #fff;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #667eea;
}

.loading-overlay .loading-text {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.result-card {
    animation: slideInUp 0.5s ease forwards;
}

/* ==========================================================================
   Number Circles
   ========================================================================== */

.number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.number-circle:hover {
    transform: scale(1.05);
}

/* Large circle for main results */
.number-circle-lg {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

/* Small circle for calculation display */
.number-circle-sm {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

/* Number-specific colors */
.number-circle[data-number="1"] { background: var(--number-1); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); }
.number-circle[data-number="2"] { background: var(--number-2); box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); }
.number-circle[data-number="3"] { background: var(--number-3); box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); }
.number-circle[data-number="4"] { background: var(--number-4); box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4); }
.number-circle[data-number="5"] { background: var(--number-5); box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4); }
.number-circle[data-number="6"] { background: var(--number-6); box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4); }
.number-circle[data-number="7"] { background: var(--number-7); box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4); }
.number-circle[data-number="8"] { background: var(--number-8); box-shadow: 0 4px 15px rgba(121, 85, 72, 0.4); }
.number-circle[data-number="9"] { background: var(--number-9); box-shadow: 0 4px 15px rgba(96, 125, 139, 0.4); }

.number-value {
    line-height: 1;
}

/* ==========================================================================
   Zodiac Sign Display
   ========================================================================== */

.zodiac-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--cosmic-gradient);
    color: #fff;
    font-size: 3rem;
    box-shadow: var(--cosmic-glow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    margin: 0 auto;
}

.zodiac-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.zodiac-circle-sm {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.sign-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #302b63;
    margin-top: 0.75rem;
}

.sign-dates {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==========================================================================
   Birth Chart
   ========================================================================== */

.chart-planet-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.chart-planet-row:last-child {
    border-bottom: none;
}

.chart-planet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.chart-planet-name {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.chart-planet-sign {
    color: #667eea;
    font-weight: 500;
}

.chart-planet-degree {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: auto;
}

/* ==========================================================================
   Keywords/Tags
   ========================================================================== */

.badge-keyword {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.badge-keyword:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   Subscription CTA
   ========================================================================== */

.subscription-cta {
    background: var(--cosmic-gradient);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.subscription-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

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

.subscription-cta .cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.subscription-cta .cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subscription-cta .cta-text {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.btn-subscribe {
    background: var(--gold-gradient);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.btn-subscribe:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 175, 25, 0.4);
}

/* ==========================================================================
   Subscription Plans
   ========================================================================== */

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    background: #fff;
}

.plan-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.plan-card.plan-featured {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.plan-card.plan-featured::before {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0;
}

.plan-price .currency {
    font-size: 1.25rem;
    vertical-align: super;
}

.plan-price .period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #555;
}

.plan-features li i {
    color: #27ae60;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* ==========================================================================
   Calculation Explanation
   ========================================================================== */

.calculation-explanation {
    background: #f8f9fa;
    margin: -1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
}

.calculation-box {
    padding: 0.5rem;
}

#calculation-formula {
    font-size: 1rem;
    color: #495057;
}

/* ==========================================================================
   Auth Forms
   ========================================================================== */

.auth-wrapper {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card {
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-card .card-header {
    background: var(--cosmic-gradient);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.auth-card .card-header h3 {
    margin: 0;
    font-weight: 700;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-card .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.5rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    background: #fff;
    padding: 0 1rem;
    color: #6c757d;
    position: relative;
}

/* ==========================================================================
   Manage Subscription
   ========================================================================== */

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.subscription-status.status-active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.subscription-status.status-canceled {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.subscription-status.status-past_due {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    border: none;
    border-radius: 0.75rem;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--cosmic-gradient);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: #fff;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 3.5rem 0 2.5rem;
    }

    .hero-section .hero-title {
        font-size: 2.5rem;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .number-circle-lg {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
    }

    .number-circle-sm {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .zodiac-circle {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
    }

    .card-header {
        padding: 1.5rem 2rem;
    }

    .card-body {
        padding: 2rem;
    }

    .feature-tabs .tab-content {
        padding: 2rem;
    }

    .feature-tabs .nav-tabs .nav-link {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    h1.display-5 {
        font-size: 2.5rem;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .hero-section .hero-title {
        font-size: 3rem;
    }

    .number-circle-lg {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }

    .zodiac-circle {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }

    .calculation-explanation {
        padding: 2rem;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .feature-tabs .nav-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .feature-tabs .nav-tabs .nav-link i {
        display: block;
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 1.1rem;
    }

    .feature-tabs .tab-content {
        padding: 1rem;
    }

    .subscription-cta {
        padding: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cosmic {
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-cosmic {
    background: var(--cosmic-gradient);
}

.glow {
    box-shadow: var(--cosmic-glow);
}

/* ==========================================================================
   Sign Cards
   ========================================================================== */

.bg-moon {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.zodiac-symbol {
    color: #302b63;
    line-height: 1;
}

.sign-richtext {
    line-height: 1.75;
    color: #4a5568;
    font-size: 0.95rem;
}

.sign-richtext p {
    margin-bottom: 1rem;
}

.sign-richtext p:last-child {
    margin-bottom: 0;
}

.sign-toggle-btn {
    transition: all var(--transition-fast);
}

.sign-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

/* ==========================================================================
   Results Header & Tabs
   ========================================================================== */

.results-header {
    padding-top: 0.5rem;
}

.results-header h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-result-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-result-tabs .nav-item {
    display: flex;
}

.nav-result-tab {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-result-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #dee2e6;
    transition: background var(--transition-fast);
}

.nav-result-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.nav-result-tab:hover::before {
    background: var(--primary-gradient);
}

.nav-result-tab.active {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.nav-result-tab.active::before {
    height: 4px;
    background: var(--primary-gradient);
}

.nav-result-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 1rem;
    transition: all var(--transition-fast);
}

/* Numerology tab icon */
#numerology-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
}

#numerology-tab-btn.active .nav-result-tab-icon,
#numerology-tab-btn:hover .nav-result-tab-icon {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Signs tab icon */
#signs-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #f5af1920 0%, #f1271120 100%);
    color: #f5af19;
}

#signs-tab-btn.active .nav-result-tab-icon,
#signs-tab-btn:hover .nav-result-tab-icon {
    background: var(--gold-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 175, 25, 0.35);
}

#signs-tab-btn.active::before,
#signs-tab-btn:hover::before {
    background: var(--gold-gradient);
}

/* Houses tab icon */
#houses-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #2dd4bf20 0%, #06b6d420 100%);
    color: #0d9488;
}

#houses-tab-btn.active .nav-result-tab-icon,
#houses-tab-btn:hover .nav-result-tab-icon {
    background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.35);
}

#houses-tab-btn.active::before,
#houses-tab-btn:hover::before {
    background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
}

/* Chinese Zodiac tab icon */
#chinesezodiac-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #dc262620 0%, #ef444420 100%);
    color: #dc2626;
}

#chinesezodiac-tab-btn.active .nav-result-tab-icon,
#chinesezodiac-tab-btn:hover .nav-result-tab-icon {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

#chinesezodiac-tab-btn.active::before,
#chinesezodiac-tab-btn:hover::before {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.nav-result-tab-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.nav-result-tab-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    transition: color var(--transition-fast);
}

.nav-result-tab-desc {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

#numerology-tab-btn.active .nav-result-tab-title {
    color: #667eea;
}

#signs-tab-btn.active .nav-result-tab-title {
    color: #e67e22;
}

#chinesezodiac-tab-btn.active .nav-result-tab-title {
    color: #dc2626;
}

#houses-tab-btn.active .nav-result-tab-title {
    color: #0d9488;
}

.nav-result-tab-arrow {
    color: #adb5bd;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    margin-left: 0.75rem;
}

.nav-result-tab.active .nav-result-tab-arrow {
    color: #667eea;
    transform: rotate(90deg);
}

#signs-tab-btn.active .nav-result-tab-arrow {
    color: #e67e22;
}

#chinesezodiac-tab-btn.active .nav-result-tab-arrow {
    color: #dc2626;
}

#houses-tab-btn.active .nav-result-tab-arrow {
    color: #0d9488;
}

.nav-result-tab:hover .nav-result-tab-arrow {
    color: #667eea;
}

#signs-tab-btn:hover .nav-result-tab-arrow {
    color: #e67e22;
}

#chinesezodiac-tab-btn:hover .nav-result-tab-arrow {
    color: #dc2626;
}

#houses-tab-btn:hover .nav-result-tab-arrow {
    color: #0d9488;
}

@media (max-width: 575.98px) {
    .nav-result-tabs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .nav-result-tab {
        padding: 1rem;
    }

    .nav-result-tab-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 0.6rem;
    }

    .nav-result-tab-title {
        font-size: 0.95rem;
    }

    .nav-result-tab-desc {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Chinese Zodiac Tab
   ========================================================================== */

.chinese-zodiac-emoji {
    font-size: 4rem;
    line-height: 1.2;
}

/* Card header backgrounds */
.bg-cz-animal {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.bg-cz-element {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.bg-cz-current {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* Chinese element badge colors */
.cz-badge-wood {
    background-color: #22c55e;
    color: #fff;
}

.cz-badge-fire {
    background-color: #ef4444;
    color: #fff;
}

.cz-badge-earth {
    background-color: #eab308;
    color: #fff;
}

.cz-badge-metal {
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    color: #374151;
}

.cz-badge-water {
    background-color: #3b82f6;
    color: #fff;
}

/* Yin/Yang badges */
.cz-badge-yang {
    background-color: #f8f9fa;
    color: #374151;
    border: 1px solid #dee2e6;
}

.cz-badge-yin {
    background-color: #374151;
    color: #f8f9fa;
}

/* Element text colors */
.cz-text-wood  { color: #16a34a; }
.cz-text-fire  { color: #dc2626; }
.cz-text-earth { color: #ca8a04; }
.cz-text-metal { color: #6b7280; }
.cz-text-water { color: #2563eb; }

/* ==========================================================================
   Elements & Triplicities Tab
   ========================================================================== */

/* Tab button theme (purple-indigo multi-element) */
#elements-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #a855f720 0%, #6366f120 100%);
    color: #7c3aed;
}

#elements-tab-btn.active .nav-result-tab-icon,
#elements-tab-btn:hover .nav-result-tab-icon {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

#elements-tab-btn.active::before,
#elements-tab-btn:hover::before {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
}

#elements-tab-btn.active .nav-result-tab-title {
    color: #7c3aed;
}

#elements-tab-btn.active .nav-result-tab-arrow {
    color: #7c3aed;
}

#elements-tab-btn:hover .nav-result-tab-arrow {
    color: #7c3aed;
}

/* Element card header gradients */
.bg-el-fire {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.bg-el-earth {
    background: linear-gradient(135deg, #16a34a 0%, #65a30d 100%);
}

.bg-el-air {
    background: linear-gradient(135deg, #0ea5e9 0%, #67e8f9 100%);
}

.bg-el-water {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
}

/* Element definition text */
.el-definition {
    line-height: 1.75;
    color: #4a5568;
    font-size: 0.95rem;
}

/* Sign mini-cards */
.el-sign-mini-card {
    border: 1px solid #e5e7eb;
    transition: all var(--transition-fast);
}

.el-sign-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.el-sign-mini-fire {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-color: #fecaca;
}

.el-sign-mini-earth {
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
    border-color: #bbf7d0;
}

.el-sign-mini-air {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    border-color: #bae6fd;
}

.el-sign-mini-water {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-color: #bfdbfe;
}

/* Sign symbol in mini-cards */
.el-sign-symbol {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
}

/* Relationship section */
.el-relation-section {
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid #e5e7eb;
    background: #f9fafb;
}

.el-relation-fire  { border-left-color: #f87171; background: #fef2f2; }
.el-relation-earth { border-left-color: #4ade80; background: #f0fdf4; }
.el-relation-air   { border-left-color: #38bdf8; background: #f0f9ff; }
.el-relation-water { border-left-color: #818cf8; background: #eff6ff; }

.el-relation-section p {
    line-height: 1.75;
    color: #4a5568;
    font-size: 0.95rem;
}

/* "Your Element" highlight */
.el-card.el-your-element {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 8px 25px rgba(124, 58, 237, 0.15);
}

/* Banner */
.el-your-banner {
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
}

.el-banner-fire  { background: rgba(239, 68, 68, 0.1);  color: #dc2626; }
.el-banner-earth { background: rgba(34, 197, 94, 0.1);  color: #16a34a; }
.el-banner-air   { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.el-banner-water { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }

/* Toggle button */
.el-toggle-btn {
    transition: all var(--transition-fast);
}

.el-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

@media (max-width: 575.98px) {
    .el-sign-symbol {
        font-size: 1.5rem;
    }

    .el-relation-section {
        padding: 0.75rem;
    }
}

/* ==========================================================================
   Houses Tab
   ========================================================================== */

.house-card {
    border-left: 4px solid #dee2e6;
    transition: all var(--transition-normal);
}

.house-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.house-number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.house-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #475569;
    line-height: 1;
}

/* Element-based badge colors */
.house-badge-fire {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
}
.house-badge-fire .house-number { color: #dc2626; }

.house-badge-earth {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
}
.house-badge-earth .house-number { color: #16a34a; }

.house-badge-air {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}
.house-badge-air .house-number { color: #2563eb; }

.house-badge-water {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
}
.house-badge-water .house-number { color: #7c3aed; }

/* Element-based left border colors */
.house-card:has(.house-badge-fire)  { border-left-color: #f87171; }
.house-card:has(.house-badge-earth) { border-left-color: #4ade80; }
.house-card:has(.house-badge-air)   { border-left-color: #60a5fa; }
.house-card:has(.house-badge-water) { border-left-color: #a78bfa; }

.house-sign-symbol {
    font-size: 1.5rem;
    line-height: 1;
}

.house-sign-info {
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.badge-keyword-house {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

.house-description p,
.house-sign-blurb p {
    line-height: 1.6;
}

.house-sign-blurb {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
    border-radius: 0.5rem;
    border-left: 3px solid #2dd4bf;
}

@media (max-width: 575.98px) {
    .house-number-badge {
        width: 38px;
        height: 38px;
    }

    .house-number {
        font-size: 1.1rem;
    }

    .house-sign-symbol {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Birth Chart Tab
   ========================================================================== */

/* Tab button theme (indigo/violet) */
#birthchart-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #8b5cf620 0%, #6366f120 100%);
    color: #7c3aed;
}

#birthchart-tab-btn.active .nav-result-tab-icon,
#birthchart-tab-btn:hover .nav-result-tab-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

#birthchart-tab-btn.active::before,
#birthchart-tab-btn:hover::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

#birthchart-tab-btn.active .nav-result-tab-title {
    color: #7c3aed;
}

#birthchart-tab-btn.active .nav-result-tab-arrow {
    color: #7c3aed;
}

#birthchart-tab-btn:hover .nav-result-tab-arrow {
    color: #7c3aed;
}

/* Card header gradient */
.bg-birthchart {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* SVG Wheel container */
.birthchart-wheel-container {
    max-width: 560px;
    margin: 0 auto;
}

.birthchart-wheel-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Element legend dots */
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-fire  { background: #f87171; }
.legend-earth { background: #4ade80; }
.legend-air   { background: #60a5fa; }
.legend-water { background: #a78bfa; }

/* Planet row styles (extends existing .chart-planet-row) */
.chart-planet-row .chart-planet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

/* Aspect row */
.chart-aspect-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background var(--transition-fast);
}

.chart-aspect-row:hover {
    background: rgba(139, 92, 246, 0.04);
}

.chart-aspect-row:last-of-type {
    border-bottom: none !important;
}

/* Planet row padding inside birth chart cards */
#birthchart-tab .chart-planet-row {
    padding: 0.75rem 1rem;
}

/* Collapse toggle animation */
.chart-collapse-toggle {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

.chart-collapse-toggle:hover {
    color: #6b7280;
}

.chart-collapse-toggle i {
    transition: transform var(--transition-fast);
}

.chart-collapse-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

/* Interpretation panels */
.chart-planet-interp,
.chart-aspect-interp {
    border-left: 3px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.02);
}

@media (max-width: 575.98px) {
    .birthchart-wheel-container {
        max-width: 100%;
    }

    .chart-planet-row {
        padding: 0.5rem 0.75rem;
    }

    .chart-aspect-row {
        padding: 0.5rem 0.75rem;
    }

    .chart-planet-row .chart-planet-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        margin-right: 0.75rem;
    }
}

/* ==========================================================================
   Place Autocomplete
   ========================================================================== */

.place-autocomplete-open,
.place-autocomplete-open .card,
.place-autocomplete-open .card-body,
.place-autocomplete-open .feature-tabs,
.place-autocomplete-open .tab-content,
.place-autocomplete-open .tab-pane {
    overflow: visible !important;
}

.place-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.place-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid #f5f5f5;
}

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

.place-autocomplete-item:hover,
.place-autocomplete-item.active {
    background-color: rgba(102, 126, 234, 0.08);
}

.place-autocomplete-icon {
    color: #667eea;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.place-autocomplete-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.place-autocomplete-city {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-autocomplete-detail {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-autocomplete-loading {
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .place-autocomplete-item {
        padding: 0.625rem 0.75rem;
    }

    .place-autocomplete-city {
        font-size: 0.9rem;
    }

    .place-autocomplete-detail {
        font-size: 0.75rem;
    }

    .place-autocomplete-dropdown {
        max-height: 200px;
    }
}

/* ======================================================================
   Save Blueprint Modal
   ====================================================================== */

.save-blueprint-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.save-blueprint-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem 1.5rem 1.2rem;
}

.save-blueprint-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.save-step.d-none {
    display: none !important;
}

.verification-code-input {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 12px 16px;
}

.verification-code-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.25rem rgba(118, 75, 162, 0.25);
}

/* ======================================================================
   Dashboard
   ====================================================================== */

.bg-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card {
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-card .card-header {
    border-bottom: none;
}

.dashboard-calc-row {
    transition: background-color 0.15s;
}

.dashboard-calc-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.dashboard-calc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.dashboard-expand-btn {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.dashboard-expand-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Dashboard responsive */
@media (max-width: 767.98px) {
    .dashboard-calc-row {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ==========================================================================
   Compatibility Tab
   ========================================================================== */

/* Compatibility tab spans full width on its own row (7th tab) */
.nav-result-tabs .compat-tab-item {
    grid-column: 1 / -1;
}

/* Tab button theme (rose/pink gradient) */
#compatibility-tab-btn .nav-result-tab-icon {
    background: linear-gradient(135deg, #ec489920 0%, #f4364320 100%);
    color: #e11d48;
}

#compatibility-tab-btn.active .nav-result-tab-icon,
#compatibility-tab-btn:hover .nav-result-tab-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43643 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

#compatibility-tab-btn.active::before,
#compatibility-tab-btn:hover::before {
    background: linear-gradient(135deg, #ec4899 0%, #f43643 100%);
}

#compatibility-tab-btn.active .nav-result-tab-title {
    color: #e11d48;
}

#compatibility-tab-btn.active .nav-result-tab-arrow,
#compatibility-tab-btn:hover .nav-result-tab-arrow {
    color: #e11d48;
}

/* Card header gradient (rose) */
.bg-compat {
    background: linear-gradient(135deg, #ec4899 0%, #f43643 100%);
}

/* Compatibility button */
.btn-compat {
    background: linear-gradient(135deg, #ec4899 0%, #f43643 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compat:hover {
    background: linear-gradient(135deg, #db2777 0%, #e11d48 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

/* Outline button for relationship type selector */
.btn-outline-compat {
    border-color: #ec4899;
    color: #ec4899;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-compat:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    color: #db2777;
}

.btn-check:checked + .btn-outline-compat {
    background: linear-gradient(135deg, #ec4899 0%, #f43643 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Overall score circle */
.compat-score-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    transition: transform 0.3s ease;
}

.compat-score-circle:hover {
    transform: scale(1.05);
}

/* Score tier gradients */
.compat-score-excellent {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.compat-score-good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.compat-score-moderate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.compat-score-challenging {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.compat-score-difficult {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

/* Dimension cards */
.compat-dimension-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.compat-dim-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.compat-dim-body {
    padding: 1.25rem;
}

.compat-dim-title {
    font-size: 0.95rem;
}

.compat-dim-score-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
}

.compat-dim-score-badge.badge-excellent {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.compat-dim-score-badge.badge-good {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.compat-dim-score-badge.badge-moderate {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.compat-dim-score-badge.badge-challenging {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
}

.compat-dim-score-badge.badge-difficult {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Versus layout for sign symbols */
.compat-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.compat-vs-sign {
    text-align: center;
}

.compat-vs-symbol {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0.25rem 0;
}

.compat-vs-divider {
    font-weight: 700;
    color: #9ca3af;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Person tag badges */
.compat-person-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compat-person1-tag {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.compat-person2-tag {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

/* Progress bar for dimension scores */
.compat-progress {
    height: 8px;
    border-radius: 4px;
    background: #f1f5f9;
    overflow: hidden;
}

.compat-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.compat-progress-bar.bar-excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.compat-progress-bar.bar-good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.compat-progress-bar.bar-moderate {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.compat-progress-bar.bar-challenging {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.compat-progress-bar.bar-difficult {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Collapse toggle for dimension text */
.compat-toggle-btn .fa-chevron-down {
    transition: transform 0.3s ease;
}

.compat-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.compat-dim-text {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* No-data prompt */
.compat-no-data {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.compat-no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: #ec4899;
}

/* Animate results reveal */
.animate-fade-in {
    animation: compatFadeIn 0.5s ease-out;
}

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

/* Compatibility responsive */
@media (max-width: 575.98px) {
    .compat-score-circle {
        width: 110px;
        height: 110px;
        font-size: 2rem;
    }

    .compat-vs {
        gap: 1rem;
    }

    .compat-vs-symbol {
        font-size: 1.5rem;
    }

    #compat-relationship-group {
        flex-direction: column;
    }

    #compat-relationship-group .btn-outline-compat {
        border-radius: 0.5rem !important;
        margin-bottom: 0.25rem;
    }
}
