/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 44px);
    background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%);
    padding: 0 32px 40px 32px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.welcome-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.welcome-illustration {
    width: 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-illustration svg {
    width: 280px;
    height: 200px;
    filter: drop-shadow(0 4px 12px rgba(107, 70, 193, 0.1));
}

.building-group {
    animation: float 6s ease-in-out infinite;
}

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

.welcome-content {
    margin-bottom: 80px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 16px 0;
    line-height: 40px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6B7280;
    line-height: 24px;
    margin: 0;
    max-width: 280px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 311px;
}

/* Updated button styles for welcome screen */
.welcome-actions .btn-primary {
    background: #1E3A8A;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding: 16px 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.welcome-actions .btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.welcome-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.welcome-actions .btn-link {
    background: transparent;
    color: #1E3A8A;
    border: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.welcome-actions .btn-link:hover {
    color: #1E40AF;
    text-decoration: underline;
}

.welcome-actions .btn-link:active {
    color: #1E3A8A;
}

/* Remove old welcome-house styles */
.welcome-house,
.house-outline {
    display: none;
}

/* Budget Screen Styles */
.budget-screen {
    background: #F9FAFB;
    min-height: calc(100vh - 44px);
    padding-bottom: 100px;
}

/* Top Tabs */
.top-tabs-container {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 0 24px;
}

.top-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.top-tab {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.top-tab.active {
    color: #1F2937;
}

.top-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3B82F6;
    border-radius: 1px;
}

/* Budget Summary */
.budget-summary-section {
    background: white;
    margin: 16px 24px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.budget-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.summary-period {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.edit-budget-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.edit-budget-btn:hover {
    background: #F3F4F6;
}

.budget-cards {
    display: flex;
    gap: 12px;
}

.budget-card {
    flex: 1;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.budget-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.budget-card-content {
    flex: 1;
    min-width: 0;
}

.budget-card-label {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 4px 0;
}

.budget-card-amount {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.2;
}

/* This Month Section */
.this-month-section {
    background: white;
    margin: 0 24px 16px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.this-month-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.this-month-label {
    font-size: 14px;
    color: #F59E0B;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.this-month-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.this-month-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}

.spending-chart {
    margin-top: 20px;
}

.chart-container {
    width: 100%;
    height: 120px;
}

.spending-chart-svg {
    width: 100%;
    height: 120px;
}

/* Budget Bottom Tabs */
.budget-bottom-tabs {
    display: flex;
    background: white;
    margin: 0 24px 16px;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.budget-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.budget-tab.active {
    background: #3B82F6;
    color: white;
}

/* Transactions Section */
.transactions-section {
    margin: 0 24px;
}

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

.transactions-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.filter-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background: #F3F4F6;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.transaction-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.detail-value {
    font-size: 12px;
    color: #1F2937;
    font-weight: 500;
}

.transaction-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.add-bill-btn {
    position: fixed;
    bottom: 120px;
    right: 24px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
}

.add-bill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.add-bill-btn:active {
    transform: scale(0.95);
}

.add-bill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 8px 0 20px;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    background: #1F2937;
    color: white;
    border-radius: 12px;
    padding: 6px 12px;
}

.nav-item.active .nav-label {
    color: #1F2937;
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    transition: all 0.2s ease;
}

/* Find Pros Screen Styles */
.find-pros-screen {
    background: #F9FAFB;
    min-height: calc(100vh - 44px);
    padding-bottom: 100px;
}

/* Search Section */
.search-section {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #E5E7EB;
}

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

.profession-selector {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    cursor: pointer;
    padding: 8px 0;
}

.selector-text {
    font-size: 16px;
    font-weight: 600;
}

.search-actions {
    display: flex;
    gap: 16px;
}

.search-action {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.search-action:hover {
    background: #F3F4F6;
}

.filter-chips {
    display: flex;
    gap: 8px;
}

.filter-chip {
    background: #F3F4F6;
    color: #6B7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Categories Section */
.categories-section {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    margin-bottom: 16px;
    overflow-x: auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.category-item:hover {
    background: #F3F4F6;
}

.category-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.2;
}

/* Professionals List */
.professionals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
}

.professional-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.professional-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.professional-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.rating-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid white;
}

.rating-value {
    margin-right: 2px;
}

.rating-count {
    font-size: 10px;
    opacity: 0.9;
}

.professional-info {
    flex: 1;
    min-width: 0;
}

.professional-name {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.professional-location {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 8px 0;
}

.professional-description {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.shortlist-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.shortlist-btn:hover {
    background: #F3F4F6;
}

.shortlist-btn.active {
    background: #FEF2F2;
}

.professional-actions {
    display: flex;
    gap: 12px;
}

.btn-shortlist,
.btn-view-work {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-shortlist {
    background: #F3F4F6;
    color: #374151;
}

.btn-shortlist:hover {
    background: #E5E7EB;
}

.btn-view-work {
    background: #1E40AF;
    color: white;
}

.btn-view-work:hover {
    background: #1E3A8A;
}

/* Modal Styles */
.profession-selector-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profession-option {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.profession-option:hover {
    background: #F3F4F6;
}

.profession-option.active {
    background: #DBEAFE;
    color: #1E40AF;
}

.search-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-filters h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

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

.filter-tag {
    background: #F3F4F6;
    color: #6B7280;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #E5E7EB;
    color: #374151;
}

.professional-detail-modal {
    text-align: center;
}

.professional-avatar-large {
    margin: 0 auto 16px;
}

.professional-avatar-large .avatar-placeholder {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.professional-detail-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.professional-detail-modal .location {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 12px 0;
}

.rating-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating {
    font-weight: 600;
    color: #1F2937;
}

.reviews {
    font-size: 14px;
    color: #6B7280;
}

.professional-detail-modal .description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.contact-btn {
    background: #F3F4F6;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Pathway Screen Styles */
.pathway-screen {
    background: #F9FAFB;
    min-height: calc(100vh - 44px);
    padding-bottom: 100px;
}

.progress-overview {
    background: white;
    margin: 16px 24px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.overview-header {
    text-align: center;
    margin-bottom: 24px;
}

.overview-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.overview-header p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 24px;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
}

.progress-label {
    display: block;
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
    margin-top: 2px;
}

.progress-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.phases-section {
    margin: 0 24px;
}

.phases-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.phases-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phase-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.phase-card.in-progress {
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.phase-card.completed {
    border-color: #10B981;
    background: #F0FDF4;
}

.phase-card.pending {
    opacity: 0.6;
    cursor: not-allowed;
}

.phase-card:hover:not(.pending) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.phase-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
}

.phase-icon {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.phase-card.in-progress .phase-icon {
    background: #DBEAFE;
}

.phase-card.completed .phase-icon {
    background: #D1FAE5;
}

.phase-info {
    flex: 1;
    min-width: 0;
}

.phase-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.phase-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.completion-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
}

.orange-button {
    width: 32px;
    height: 32px;
    background: #F97316;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    animation: pulse 2s infinite;
}

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

.phase-progress {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-steps {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.progress-percent {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #1E40AF);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.phase-card.completed .progress-fill {
    background: linear-gradient(90deg, #10B981, #059669);
}

.phase-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.step-item.completed {
    background: #F0FDF4;
}

.step-item.pending {
    background: #F9FAFB;
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-item.completed .step-icon {
    background: #10B981;
    color: white;
}

.step-item.pending .step-icon {
    background: #E5E7EB;
    color: #9CA3AF;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.step-item.completed .step-title {
    color: #047857;
}

.continue-btn,
.start-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.continue-btn {
    background: #3B82F6;
    color: white;
}

.continue-btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.start-btn {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

.start-btn:disabled {
    opacity: 0.5;
}

/* Phase Details Modal */
.phase-details-modal {
    text-align: center;
}

.phase-icon-large {
    width: 80px;
    height: 80px;
    background: #F3F4F6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.phase-details-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.phase-details-modal p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.steps-progress {
    text-align: left;
    margin-bottom: 24px;
}

.steps-progress h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
}

.step-detail.completed {
    background: #F0FDF4;
}

.step-detail.pending {
    background: #F9FAFB;
}

.step-detail .step-icon {
    font-size: 16px;
}

.phase-actions {
    display: flex;
    justify-content: center;
}

.btn-continue {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-continue:hover {
    background: #2563EB;
}

/* Onboarding Screens */
.onboarding-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 44px);
    padding: 40px 24px 24px;
}

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

.onboarding-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.onboarding-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 300px;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-medium);
    transition: all 0.2s ease-in-out;
}

.pagination-dot.active {
    background: var(--primary-blue);
    width: 24px;
}

.onboarding-illustration {
    width: 280px;
    height: 200px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.path-illustration {
    position: relative;
    width: 200px;
    height: 120px;
}

.path-house {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    border-radius: var(--radius-lg);
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 80px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.path-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.path-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.onboarding-actions {
    padding-top: 24px;
}

/* Dashboard Screen */
.dashboard-screen {
    padding-bottom: 100px; /* Space for bottom nav */
}

.dashboard-header {
    padding: 20px 24px;
    background: var(--bg-primary);
}

.dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.greeting-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.greeting-name {
    color: var(--accent-orange);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.action-icon:hover {
    background: var(--bg-muted);
    transform: scale(1.05);
}

.dashboard-content {
    padding: 0 24px;
}

.dashboard-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.build-streak {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}

.streak-days {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.streak-day {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.streak-day.active {
    background: var(--secondary-blue);
    color: var(--text-white);
}

.streak-day.completed {
    background: var(--primary-blue);
    color: var(--text-white);
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.project-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    position: relative;
    overflow: hidden;
}

.project-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

.project-details {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-phase {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.quick-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tool-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

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

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    color: var(--primary-blue);
}

.tool-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.team-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}

.team-members {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.team-member {
    position: relative;
}

.team-more {
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pathway Screen */
.pathway-screen {
    padding-bottom: 100px;
}

.pathway-tabs {
    background: var(--bg-secondary);
    margin: 0 24px 24px;
    border-radius: var(--radius-lg);
    padding: 4px;
    display: flex;
}

.pathway-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pathway-tab.active {
    background: var(--bg-primary);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.phase-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin: 0 24px 24px;
    box-shadow: var(--shadow-sm);
}

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

.phase-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.phase-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.phase-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease-in-out;
}

.phase-toggle:hover {
    background: var(--bg-secondary);
}

.phase-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.phase-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.phase-stat-icon {
    font-size: 16px;
}

.phase-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
}

.pathway-steps {
    padding: 0 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.step-item:hover {
    background: var(--bg-secondary);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

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

.step-marker {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 2px solid var(--border-medium);
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
}

.step-marker.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.step-marker.completed {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.step-marker.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 24px;
}

/* Phase Detail Screens */
.phase-detail-screen {
    padding-bottom: 100px;
}

.phase-detail-header {
    padding: 20px 24px;
    background: var(--bg-primary);
}

.phase-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.phase-detail-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
}

.phase-detail-content {
    padding: 0 24px;
}

.phase-illustration {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.illustration-content {
    text-align: center;
    color: var(--text-secondary);
}

.illustration-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.phase-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.key-decisions {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}

.decisions-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.decision-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.decision-item:last-child {
    margin-bottom: 0;
}

.decision-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.decision-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.phase-navigation {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom));
    left: 24px;
    right: 24px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 390px) {
    .dashboard-content,
    .pathway-steps,
    .phase-detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .pathway-tabs,
    .phase-card {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .phase-navigation {
        left: 16px;
        right: 16px;
    }
}

/* Track Screen (Inspiration Board) Styles */
.track-content {
    padding: 16px;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.intro-section {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.intro-text p {
    font-size: 16px;
    color: #475569;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.upload-inspiration-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.2s ease;
}

.upload-inspiration-btn:hover {
    background: #1d4ed8;
}

.upload-inspiration-btn svg {
    width: 20px;
    height: 20px;
}

.clusters-section,
.requirements-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.section-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.clusters-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.cluster-card {
    min-width: 160px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.cluster-card:hover {
    transform: translateY(-2px);
}

.cluster-image {
    position: relative;
    width: 160px;
    height: 120px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    position: relative;
}

.cluster-living-room {
    background: linear-gradient(45deg, #fef3c7, #f59e0b);
}

.cluster-study {
    background: linear-gradient(45deg, #dbeafe, #3b82f6);
}

.cluster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 12px 12px;
}

.cluster-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.create-cluster-btn {
    background: white;
    color: #1e40af;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 140px;
    height: 120px;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.create-cluster-btn:hover {
    border-color: #1e40af;
    background: #f8fafc;
}

.create-cluster-btn svg {
    width: 24px;
    height: 24px;
}

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

.requirement-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.requirement-card:hover {
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.blank-card .card-icon {
    color: #1e40af;
}

.checklist-card .card-icon {
    color: #6b7280;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.view-all-container {
    text-align: right;
}

.view-all-link {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.view-all-link:hover {
    text-decoration: none;
}

/* Search Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

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

.search-input-container {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}