/* src/modules/coach/coach.css */

.coach-panel {
    flex: 1;
    background: var(--bg-surface);
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-primary);
    min-width: 0;
    height: 100vh;
}

.coach-header {
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 1rem 0 1.25rem 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.92) 0%, rgba(15, 17, 21, 0.6) 70%, rgba(15, 17, 21, 0) 100%);
    backdrop-filter: blur(10px);
}

.coach-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.coach-header h1 {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(90deg, var(--text-primary), var(--brand-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coach-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Dashboard */
.coach-dashboard {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-hero {
    /* Styles handled by glass-panel parent */
}

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    min-width: 80px;
}

.stat-item i {
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.stat-item.urgent i {
    color: var(--text-danger);
}

.stat-val {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.daily-actions {
    text-align: center;
}

.daily-actions h3 {
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
}

/* Skills Library */
.coach-skills {
    max-width: 980px;
    margin: 0 auto;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s;
}

.skill-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.skill-card.active {
    border-left: 4px solid var(--brand-primary);
}

.skill-info h3 {
    margin: 0 0 0.5rem 0;
}

.badge {
    background: var(--brand-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge.danger {
    background: var(--text-danger);
}

.status-indicator.active {
    color: var(--text-success);
    font-weight: bold;
}

/* Wizard */
.coach-wizard {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.wizard-step {
    margin-bottom: 2rem;
}

.wizard-step h3 {
    margin-top: 0.5rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Exam Center */
.coach-exam-center {
    max-width: 980px;
    margin: 0 auto;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.module-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-badge.unlocked {
    color: var(--text-success);
}

.module-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Error Cards */
.coach-error-cards {
    max-width: 800px;
    margin: 0 auto;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.error-card {
    background: rgba(255, 99, 71, 0.1); 
    border: 1px solid var(--text-danger);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.concept-id {
    font-family: var(--font-mono);
    font-weight: bold;
}

/* Settings */
.coach-settings {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.settings-group h3 {
    margin-bottom: 1rem;
    color: var(--brand-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Session & Feedback (Existing styles + tweaks) */
.coach-session-container {
    max-width: 800px;
    margin: 0 auto;
    gap: 1.5rem;
}

.session-card {
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* Utilities */
.full-width {
    width: 100%;
}

.glass-panel {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Mobile-first dashboard shell */
.learning-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

.hub-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-cta .action-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.hub-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));
}

.hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    margin: 0.2rem 0 0 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 0.2rem 0;
}

.microcopy {
    color: var(--text-secondary);
    margin: 0.35rem 0 0 0;
    font-size: 0.9rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}

.metric-chip {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-chip strong {
    font-size: 1.25rem;
}

.chip-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.icon-btn {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--border-active);
    transform: translateY(-1px);
}

.icon-btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-primary);
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pill.muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.pill.positive {
    background: rgba(16, 185, 129, 0.16);
    color: var(--text-success);
    border-color: rgba(16, 185, 129, 0.3);
}

.pill.warning {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.35);
}

.pill-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 0.35rem;
}

.practice-stack {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learning-card,
.micro-quiz,
.micro-challenge {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg, 14px);
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
}

.learning-card {
    position: relative;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-progress-fill {
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.card-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    width: min(100%, calc(var(--progress, 40) * 1%));
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary));
    border-radius: inherit;
    transition: width 0.3s ease;
}

.card-progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 3ch;
    text-align: right;
}

.flashcard-shell summary {
    list-style: none;
    cursor: pointer;
}

.flashcard-shell summary::-webkit-details-marker {
    display: none;
}

.flashcard-shell summary p {
    margin: 0.1rem 0;
}

.card-pack-title {
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.card-prompt {
    font-size: 1.05rem;
}

.reveal-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.flashcard-shell[open] {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    border: 1px dashed var(--border-subtle);
}

.card-answer {
    margin-top: 0.5rem;
}

.flashcard-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    align-items: center;
}

.chip {
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: var(--border-active);
}

.chip.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-success);
}

.chip.warning {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.35);
    color: #facc15;
}

.chip.ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.micro-quiz h3,
.micro-challenge h3 {
    margin: 0.1rem 0;
}

.quiz-question {
    margin: 0.4rem 0 0.6rem 0;
    color: var(--text-secondary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.quiz-option.active {
    border-color: var(--brand-primary);
    background: rgba(59, 130, 246, 0.12);
}

.quiz-option.ghost {
    background: rgba(255, 255, 255, 0.02);
}

.option-title {
    display: block;
    font-weight: 700;
}

.option-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.micro-challenge .challenge-text {
    margin: 0.25rem 0 0.65rem 0;
    color: var(--text-secondary);
}

.fill-blank {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fill-blank .input-field {
    flex: 1;
    min-height: 46px;
}

.timer-track {
    margin-top: 0.6rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    width: min(100%, calc(var(--progress, 70) * 1%));
    background: linear-gradient(90deg, var(--brand-primary), var(--text-success));
    animation: timer-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes timer-pulse {
    0% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

.empty-state {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 1rem;
}

.empty-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filters.compact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill-select {
    border-radius: 999px;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.pack-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pack-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pack-progress {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.pack-dots {
    width: 70px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, rgba(255, 255, 255, 0.12) 100%);
    opacity: 0.7;
}

.pack-duration {
    font-size: 0.85rem;
}

.pack-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pack-meta-stack {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.creation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-scroll {
    scroll-snap-type: x proximity;
}

.bottom-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
    padding: calc(0.6rem + env(safe-area-inset-bottom) * 0.25);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(8px);
}

.bar-btn {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.4rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    font-weight: 600;
}

.bar-btn.primary {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.bar-btn.ghost {
    color: var(--text-secondary);
}

.bar-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.bar-progress {
    grid-column: span 4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bar-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: min(100%, calc(var(--progress, 30) * 1%));
    background: linear-gradient(90deg, var(--brand-primary), var(--text-success));
    transition: width 0.3s ease;
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 90px;
}

.btn[disabled],
.bar-btn[disabled],
.chip[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coach utility headers (shared with Packs-like views) */
.packs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.packs-header h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.35rem;
}

.packs-header .actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Roadmap */
.roadmap-summary .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.roadmap-days {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1rem;
}

.roadmap-day-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roadmap-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.status-pill.todo {
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.status-pill.doing {
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.35);
}

.status-pill.done {
    color: var(--text-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.roadmap-day-title {
    margin: 0.5rem 0 0.35rem 0;
}

.roadmap-day-action {
    margin: 0;
}

.roadmap-day-view .roadmap-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 1rem 0;
}

.roadmap-feedback {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.roadmap-feedback-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.roadmap-day-footer {
    margin-top: 0.9rem;
}

/* Checklist */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
}

/* Interview */
.interview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.interview-item summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

.interview-item summary::-webkit-details-marker {
    display: none;
}

.interview-a {
    margin-top: 0.75rem;
}

/* Quizzes */
.quiz-questions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1rem;
}

.quiz-q-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.quiz-q-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quiz-q-feedback {
    margin-top: 0.75rem;
}

/* Mobile UX (e.g., S24 Ultra ~384-430px CSS width) */
@media (max-width: 520px) {
    .coach-panel {
        padding: 1rem;
    }

    .coach-header {
        margin-bottom: 1rem;
        padding: calc(env(safe-area-inset-top) + 0.75rem) 0 0.75rem 0;
    }

    .coach-header-top {
        align-items: center;
    }

    .coach-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .coach-dashboard,
    .coach-skills,
    .coach-exam-center,
    .coach-error-cards,
    .coach-settings {
        max-width: 100%;
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.9rem 0.75rem;
        min-width: 0;
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .tool-btn {
        padding: 1rem;
        justify-content: flex-start;
        text-align: left;
    }

    .coach-wizard,
    .coach-settings,
    .session-card {
        padding: 1rem;
    }

    .skill-card,
    .module-card {
        padding: 1rem;
    }

    .option-btn {
        padding: 0.95rem 0.9rem;
        min-height: 48px;
        touch-action: manipulation;
    }

    .learning-hub {
        padding-bottom: 6rem;
    }

    .hub-hero {
        padding: 1rem;
    }

    .hero-row {
        flex-direction: column;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .practice-stack {
        padding: 1rem;
    }

    .fill-blank {
        flex-direction: column;
        align-items: stretch;
    }

    .fill-blank .btn {
        width: 100%;
    }

    .packs-grid.mobile-scroll {
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 82vw);
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
    }

    .pack-card {
        min-width: 0;
    }

    .bottom-action-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .bar-progress {
        grid-column: span 3;
    }
}

/* Packs Grid */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pack-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
    scroll-snap-align: start;
}

.pack-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.pack-card[data-type="language"] {
    border-left: 4px solid var(--brand-primary);
}

.pack-card[data-type="certification"] {
    border-left: 4px solid var(--text-success);
}

.pack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pack-icon {
    font-size: 1.5rem;
}

.pack-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.pack-type, .pack-difficulty {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.pack-type {
    background: var(--brand-primary);
    color: white;
}

.pack-difficulty {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.pack-title {
    margin: 0;
    font-size: 1.05rem;
}

.pack-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 1.4rem;
}

.tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pack-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pack-cta {
    margin-top: auto;
}

/* Pack Tags */
.pack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pack-tags .tag {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--brand-primary);
    transition: all 0.2s;
}

.pack-tags .tag:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
}
