/* MAIN */
    /* Custom properties for easy theme management */
    :root {
        --bg-color: #ffffff;
        --text-primary: #1d1d1f;
        --text-secondary: #86868b;
        --border-color: #e8e8ed;
        --accent-hover: #f5f5f7;
        --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    /* Global Reset & Base Styles */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-primary);
        font-family: var(--font-system);
        font-size: 16px;
        line-height: 1.47059;
        letter-spacing: -0.022em;
        -webkit-font-smoothing: antialiased;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Typography elements */
    h1, h2, h3, h4 {
        font-weight: 600;
        letter-spacing: -0.025em;
    }

    a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    a:hover {
        color: var(--text-secondary);
    }

    ul {
        list-style: none;
    }

    /* Header & Navigation Blueprint */
    header {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    nav {
        max-width: 1024px;
        margin: 0 auto;
        padding: 0 22px;
        height: 48px;
        display: flex;
        align-items: center;
    }

    nav ul {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: -0.01em;
    }

    nav ul li {
        color: var(--text-primary);
    }

    /* Dynamic handling for links vs text strings inside nav */
    nav ul li a {
        color: var(--text-secondary);
    }

    nav ul li a:hover {
        color: var(--text-primary);
    }

    /* Main Content Wrapper */
    main {
        flex: 1;
        max-width: 1024px;
        width: 100%;
        margin: 0 auto;
        padding: 40px 22px;
    }

    /* Apple-style Form Components (For your login/signup views later) */
    input[type="text"], input[type="email"], input[type="password"] {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        font-size: 16px;
        font-family: var(--font-system);
        background-color: var(--accent-hover);
        color: var(--text-primary);
        outline: none;
        transition: all 0.2s ease;
    }

    input:focus {
        border-color: var(--text-primary);
        background-color: var(--bg-color);
    }

    button, .btn-primary {
        background-color: var(--text-primary);
        color: var(--bg-color);
        padding: 12px 24px;
        border-radius: 980px; /* Perfectly round pill button style */
        border: none;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    button:hover, .btn-primary:hover {
        background-color: #000000;
        opacity: 0.9;
    }

    /* Footer Section */
    footer {
        background-color: var(--accent-hover);
        border-top: 1px solid var(--border-color);
        padding: 32px 22px;
        font-size: 12px;
        color: var(--text-secondary);
    }

    footer p {
        max-width: 1024px;
        margin: 0 auto 16px auto;
        line-height: 1.33338;
    }

    footer nav {
        padding: 0;
        height: auto;
        border: none;
    }

    footer nav ul {
        justify-content: flex-start;
        gap: 24px;
    }

    footer nav ul li a {
        color: var(--text-secondary);
    }

    footer nav ul li a:hover {
        text-decoration: underline;
        color: var(--text-primary);
    }

/* INDEX CSS */
    /* Hero Search Page Layout */
    .hero-search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 60vh; /* Keeps it perfectly centered on large screens */
        max-width: 680px;  /* Limits structural layout width for focus */
        margin: 0 auto;
    }

    .hero-header h1 {
        font-size: 40px;
        font-weight: 700;
        margin-bottom: 12px;
        letter-spacing: -0.03em;
    }

    .hero-header h2 {
        font-size: 20px;
        font-weight: 400;
        color: var(--text-secondary);
        margin-bottom: 40px;
        line-height: 1.4;
    }

    /* Premium Search Form */
    .search-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .search-input-wrapper {
        position: relative;
        width: 100%;
    }

    /* Position the magnifying glass inside the field */
    .search-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        pointer-events: none; /* Allows user to click straight through the icon */
    }

    /* Overriding and elevating the previous global input styling */
    .search-input-wrapper input[type="text"] {
        width: 100%;
        padding: 18px 18px 18px 52px; /* Extra left padding to make room for icon */
        border: 1px solid var(--border-color);
        border-radius: 16px; /* slightly chunkier border-radius */
        font-size: 18px;
        background-color: var(--accent-hover);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .search-input-wrapper input[type="text"]:focus {
        background-color: var(--bg-color);
        border-color: var(--text-primary);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); /* Subtle ambient focus drop shadow */
    }

    /* Dynamic button layout expansion */
    .search-form button {
        width: auto;
        min-width: 200px;
        padding: 16px 32px;
        font-size: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .search-form button:hover {
        transform: scale(1.01); /* Micro-interaction scale on click intent */
    }

    /* Responsive adjustment for small phone layouts */
    @media (max-width: 480px) {
        .hero-header h1 { font-size: 32px; }
        .hero-header h2 { font-size: 17px; }
        .search-form button { width: 100%; } /* full width button on small mobile */
    }

/* NEW SEARCHES */
    /* Stacked Search Bar Group Setup */
    .search-fields-group {
        width: 100%;
        background-color: var(--accent-hover);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    /* Highlight the whole group block if an internal field gets selected */
    .search-fields-group:focus-within {
        background-color: var(--bg-color);
        border-color: var(--text-primary);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    }

    .search-fields-group .search-input-wrapper {
        position: relative;
        width: 100%;
    }

    .field-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        pointer-events: none;
    }

    /* Flatten default inputs so they merge seamlessly into our group block */
    .search-fields-group input[type="text"] {
        width: 100%;
        padding: 20px 20px 20px 52px;
        border: none !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        font-size: 16px;
        box-shadow: none !important;
    }

    /* Subtle divider border between inputs */
    .field-separator {
        height: 1px;
        background-color: var(--border-color);
        margin-left: 52px; /* aligns divider with the input text start point */
    }

    /* Layout adaptation for desktop screens */
    @media (min-width: 600px) {
        .search-fields-group {
            flex-direction: row;
            align-items: center;
            border-radius: 980px; /* turns it into a long sleek capsule Pill shape */
        }
        
        .field-separator {
            width: 1px;
            height: 32px;
            margin-left: 0;
            background-color: var(--border-color);
        }
    }


/* SEARCH RESULTS CSS */
    /* Container Layout */
    .results-container {
        max-width: 1024px;
        margin: 0 auto;
    }

    .results-header {
        margin-bottom: 40px;
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 16px;
    }

    .back-link:hover {
        color: var(--text-primary);
    }

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

    /* Response Search Result Cards Grid Architecture */
    .results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }

    /* SEARCH RESULTS HEADER */
    /* Enhanced Search Results Header Typography */
    .search-title {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -0.025em;
        color: var(--text-primary);
        line-height: 1.25;
        margin-top: 8px;
    }

    /* Gives custom emphasis to the parameters passed down by the search engine view */
    .search-title .highlight {
        font-weight: 700;
        color: #000000;
        /* Soft underlined design element mimicking Apple editorial pages */
        background: linear-gradient(180deg, transparent 75%, var(--border-color) 75%);
    }

    .results-meta {
        font-size: 15px;
        color: var(--text-secondary);
        margin-top: 8px;
    }

    /* Mobile scaling correction */
    @media (max-width: 600px) {
        .search-title {
            font-size: 24px;
        }
    }


    /* Individual Card Structural Elements */
    .carpool-card {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .carpool-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    }

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

    .group-name {
        font-size: 18px;
        font-weight: 600;
    }

    /* Badge System */
    .badge {
        padding: 4px 10px;
        border-radius: 980px;
        font-size: 11px;
        font-weight: 500;
    }

    .badge-available {
        background-color: #f5f5f7;
        color: var(--text-primary);
    }

    .badge-full {
        background-color: #ffeef0;
        color: #ff3b30;
    }

    /* Structural Rows inside body */
    .card-body {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .info-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .grid-2-col {
        flex-direction: row;
        justify-content: space-between;
    }

    .info-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
    }

    .info-value {
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sub-text {
        font-size: 13px;
        color: var(--text-secondary);
        display: block;
    }

    .verified-pill {
        background: #f5f5f7;
        border: 1px solid var(--border-color);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

    /* Capacity Progress Indicator Bar */
    .card-footer {
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .capacity-tracker {
        width: 100%;
    }

    .progress-bar {
        width: 100%;
        height: 6px;
        background-color: var(--accent-hover);
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 6px;
    }

    .progress-fill {
        height: 100%;
        background-color: var(--text-primary);
        border-radius: 3px;
        transition: width 0.3s ease;
    }

    .capacity-text {
        font-size: 12px;
        color: var(--text-secondary);
    }

    .card-btn {
        text-align: center;
        background-color: var(--accent-hover);
        color: var(--text-primary);
        padding: 10px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.2s;
    }

    .card-btn:hover {
        background-color: var(--text-primary);
        color: var(--bg-color);
    }

    /* Empty State Styles */
    .empty-state-container {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        border: 1px dashed var(--border-color);
        border-radius: 20px;
    }

    .empty-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .empty-state-container h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .empty-state-container p {
        color: var(--text-secondary);
        margin-bottom: 24px;
    }

    .btn-primary-action {
        display: inline-block;
        background-color: var(--text-primary);
        color: var(--bg-color);
        padding: 12px 24px;
        border-radius: 980px;
        font-size: 14px;
        font-weight: 500;
    }


/* GROUP DETAILS VIEW */
    /* Layout and structural components */
    .detail-container {
        max-width: 1024px;
        margin: 0 auto;
        animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .detail-header {
        margin-bottom: 24px;
    }

    .detail-split-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 40px;
        align-items: start;
    }

    /* Base Card Elements */
    .detail-card {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 24px;
        margin-bottom: 32px;
    }

    /* Main Hero Typography Block */
    .group-hero-meta {
        margin-bottom: 32px;
    }

    .meta-tag {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
        color: var(--text-secondary);
        display: block;
        margin-bottom: 8px;
    }

    .group-hero-meta h1 {
        font-size: 36px;
        font-weight: 700;
        letter-spacing: -0.03em;
        margin-bottom: 12px;
    }

    .destination-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: var(--accent-hover);
        padding: 8px 16px;
        border-radius: 980px;
        font-size: 14px;
        color: var(--text-primary);
    }

    /* Inline Grid Frameworks metrics */
    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .metric-item:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }

    .metric-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        margin-bottom: 4px;
        display: block;
    }

    .metric-value {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .metric-value.location {
        font-size: 15px;
        font-weight: 400;
    }

    /* Passenger Rosters */
    .passenger-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .passenger-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .passenger-row-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
    }

    .avatar-placeholder, .driver-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--text-primary);
        color: var(--bg-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
    }

    .parent-name {
        font-weight: 500;
        font-size: 15px;
    }

    .child-meta {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 2px;
    }

    .empty-roster-text {
        color: var(--text-secondary);
        font-size: 14px;
        font-style: italic;
    }

    /* Sidebar Layout specifics */
    .section-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        display: block;
        margin-bottom: 16px;
    }

    .driver-profile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .driver-profile-header h4 {
        font-size: 16px;
    }

    .neighborhood-tag {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .trust-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 6px;
    }

    .trust-pill.verified {
        background-color: #f5f5f7;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

    /* Sidebar interactive buttons widget panel */
    .joined-status-badge {
        width: 100%;
        background-color: #f5f5f7;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        padding: 14px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .seat-counter-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .huge-counter {
        font-size: 36px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .counter-label {
        font-size: 12px;
        line-height: 1.2;
        color: var(--text-secondary);
    }

    .btn-primary-action-fill {
        width: 100%;
        background-color: var(--text-primary);
        color: var(--bg-color);
        border: none;
        padding: 14px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .btn-primary-action-fill:hover {
        opacity: 0.9;
    }

    .btn-action-disabled {
        width: 100%;
        background-color: var(--accent-hover);
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
        padding: 14px;
        border-radius: 12px;
        font-size: 15px;
        cursor: not-allowed;
    }

    .disclaimer-text {
        font-size: 11px;
        color: var(--text-secondary);
        text-align: center;
        margin-top: 12px;
        line-height: 1.4;
    }

    /* Smooth view entry animations scale */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Adaptability breakpoints styling structural layout */
    @media (max-width: 768px) {
        .detail-split-layout {
            grid-template-columns: 1fr;
        }
        .detail-sidebar {
            order: -1; /* Pushes the booking actions above content on mobile */
        }
    }

/* PROFILE VIEW */
    /* Profile Layout Master Framework */
    .profile-container {
        max-width: 1024px;
        margin: 0 auto;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 40px;
        align-items: start;
    }

    .profile-card {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 24px;
        margin-bottom: 24px;
    }

    /* Sidebar Profile Styling Elements */
    .parent-hero-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: var(--text-primary);
        color: var(--bg-color);
        font-size: 24px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        letter-spacing: 0.02em;
    }

    .parent-hero-card h2 {
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .neighborhood-sub {
        font-size: 14px;
        color: var(--text-secondary);
        margin-top: 4px;
        margin-bottom: 16px;
    }

    /* Verification Status Badges */
    .badge-status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 500;
        padding: 6px 14px;
        border-radius: 980px;
    }

    .status-verified {
        background-color: var(--accent-hover);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

    .status-pending {
        background-color: #fff9e6;
        color: #b27b00;
        border: 1px solid #ffe699;
    }

    /* Detail Contact Card Elements */
    .contact-details-card h3 {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        margin-bottom: 16px;
    }

    .contact-row {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 14px;
        font-size: 14px;
    }

    .contact-label {
        font-size: 11px;
        color: var(--text-secondary);
        text-transform: uppercase;
    }

    .contact-value {
        color: var(--text-primary);
        word-break: break-word;
    }

    .location-text {
        line-height: 1.4;
    }

    .btn-secondary-action-outline {
        display: block;
        text-align: center;
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 10px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        margin-top: 20px;
        transition: background-color 0.2s;
    }

    .btn-secondary-action-outline:hover {
        background-color: var(--accent-hover);
    }

    /* Main Panels Right Column Content */
    .profile-section-block {
        margin-bottom: 40px;
    }

    .profile-section-block h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }

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

    .section-header-inline h3 {
        margin-bottom: 0;
    }

    .add-action-link {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
    }

    /* Horizontal Scrolling Grid for Child Profiles */
    .children-horizontal-grid {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .child-profile-pill {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 260px;
        flex: 1;
    }

    .child-icon {
        font-size: 24px;
        background-color: var(--accent-hover);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .child-text h4 {
        font-size: 15px;
        font-weight: 600;
    }

    .child-text p {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 1px;
    }

    .program-tag {
        display: inline-block;
        font-size: 10px;
        background-color: var(--accent-hover);
        padding: 2px 6px;
        border-radius: 4px;
        margin-top: 4px;
        font-weight: 500;
    }

    /* Stacked List Strip Layout for Carpools */
    .groups-stack-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .group-strip-card {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .strip-meta h4 {
        font-size: 15px;
        font-weight: 600;
    }

    .strip-meta p {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 2px;
    }

    .strip-times {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
        font-weight: 500;
    }

    .strip-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .capacity-micro-indicator {
        font-size: 12px;
        color: var(--text-secondary);
        background-color: var(--accent-hover);
        padding: 4px 8px;
        border-radius: 6px;
    }

    .btn-minimal-chevron {
        font-size: 14px;
        font-weight: 500;
    }

    /* Empty Panel Fallbacks */
    .panel-empty-state {
        width: 100%;
        border: 1px dashed var(--border-color);
        border-radius: 14px;
        padding: 24px;
        text-align: center;
        color: var(--text-secondary);
        font-size: 14px;
    }

    .link-action-text {
        display: block;
        margin-top: 8px;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: underline;
    }

    /* Profile System Responsiveness Breakpoints */
    @media (max-width: 768px) {
        .profile-grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }
        .group-strip-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }
        .strip-actions {
            width: 100%;
            justify-content: space-between;
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
        }
    }

/* DASHBOARD */
    /* Dashboard Main Container Structure */
    .dashboard-container {
        max-width: 1024px;
        margin: 0 auto;
        animation: slideUpIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
        margin-bottom: 32px;
        gap: 16px;
    }

    .welcome-meta h1 {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .welcome-meta p {
        font-size: 14px;
        color: var(--text-secondary);
        margin-top: 4px;
    }

    .sub-section-title {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.01em;
        margin-bottom: 20px;
    }

    /* Children Stack Structure Cards */
    .children-stack {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .child-dashboard-card {
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        overflow: hidden;
    }

    /* Child Header Strip banner block */
    .child-hero-strip {
        background-color: var(--accent-hover);
        padding: 16px 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .child-avatar-circle {
        width: 40px;
        height: 40px;
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .child-identity-text h3 {
        font-size: 18px;
        font-weight: 600;
    }

    .school-meta-text {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .pill-program-tag {
        margin-left: auto; /* Pushes the program tag cleanly to the right side edge */
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
    }

    /* Active Pool Sub-row listings inside cards */
    .active-pool-row {
        padding: 24px;
        display: grid;
        grid-template-columns: 1fr 280px auto;
        align-items: center;
        gap: 24px;
    }

    /* Separate consecutive pool blocks cleanly if multiple apply */
    .active-pool-row + .active-pool-row {
        border-top: 1px solid var(--border-color);
    }

    .pool-indicator-badge {
        display: inline-block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background-color: #f5f5f7;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .pool-main-details h4 {
        font-size: 16px;
        font-weight: 600;
    }

    .driver-credit {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 2px;
    }

    /* Timing layout architecture boxes */
    .pool-time-blocks {
        display: flex;
        gap: 24px;
    }

    .time-block {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .time-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: var(--text-secondary);
    }

    .time-value {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
    }

    /* Button variants layout styles */
    .btn-secondary-pill {
        background-color: var(--accent-hover);
        color: var(--text-primary);
        padding: 8px 16px;
        border-radius: 980px;
        font-size: 13px;
        font-weight: 500;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }

    .btn-secondary-pill:hover {
        background-color: var(--bg-color);
        border-color: var(--text-primary);
    }

    /* Fallback inner state components rows if empty */
    .pool-empty-row {
        padding: 32px 24px;
        text-align: center;
        color: var(--text-secondary);
        font-size: 14px;
    }

    .inline-search-link {
        display: inline-block;
        margin-top: 6px;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: underline;
    }

    /* Master full screen empty container layouts */
    .dashboard-empty-state {
        border: 1px dashed var(--border-color);
        border-radius: 20px;
        padding: 60px 24px;
        text-align: center;
    }

    .empty-emoji {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .dashboard-empty-state h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .dashboard-empty-state p {
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* Entry Transitions */
    @keyframes slideUpIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Mobile Layout Transformations Breakpoints */
    @media (max-width: 768px) {
        .dashboard-header {
            flex-direction: column;
            align-items: flex-start;
        }
        .dashboard-header .btn-primary-action {
            width: 100%;
            text-align: center;
        }
        .active-pool-row {
            grid-template-columns: 1fr;
            gap: 16px;
        }
        .pool-time-blocks {
            justify-content: space-between;
            background-color: var(--accent-hover);
            padding: 12px;
            border-radius: 12px;
        }
        .btn-secondary-pill {
            display: block;
            text-align: center;
            width: 100%;
        }
    }
