.selection-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
}

.step-container {
    margin-bottom: 3rem;
    text-align: left;
}

.step-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

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

.option-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

body.light-mode .option-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--border-med);
}

.option-card:hover:not(.disabled) {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.option-card img.brand-logo {
    max-width: 120px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

body.light-mode .option-card img.brand-logo {
    filter: none;
}

.option-card span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-1);
}

body.light-mode .option-card span {
    color: var(--text-1);
}

.option-card small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.option-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

/* Base styles for new classes */
.brand-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}
.option-card.disabled .brand-icon {
    color: var(--text-muted);
}
.brand-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-1);
    transition: all 0.3s ease;
}
body.light-mode .brand-name {
    color: var(--text-1);
}
.brand-sub {
    display: block;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Pill layout styles */
#brand-grid {
    transition: all 0.3s ease;
}
#brand-grid.pill-mode {
    display: flex;
    justify-content: flex-start;
}

.option-card.pill {
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 50px;
    background: var(--primary);
    border-color: var(--primary);
    width: auto;
    margin-bottom: 0;
    animation: shrinkToPill 0.3s ease-out forwards;
}

.option-card.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.option-card.pill .brand-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #fff;
}

.option-card.pill .brand-name {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
}

.option-card.pill .brand-sub {
    display: none;
}

.option-card.pill.disabled {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--glass-border);
}
body.light-mode .option-card.pill.disabled {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--border-med);
}
.option-card.pill.disabled .brand-icon {
    color: var(--text-muted);
}
.option-card.pill.disabled .brand-name {
    color: var(--text-muted);
}

@keyframes shrinkToPill {
    0% { transform: scale(1.05); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#step-brand {
    transition: all 0.3s ease;
}
#step-brand.pill-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
#step-brand.pill-container h3 {
    margin-bottom: 0;
}
