/* --- Legacy Shop Settings Redesign (Flat Match) --- */
.legacy-shop-settings {
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
}

.legacy-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.legacy-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #f4f4f5;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.legacy-input:focus {
    border-color: #f97316;
}

.legacy-input::placeholder {
    color: #52525b;
}

select.legacy-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7%2010L12%2015L17%2010%22%20stroke%3D%22%23a1a1aa%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select.legacy-input option {
    background: #1a1a1a;
    color: #e4e4e7;
}

.legacy-speciality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #151515;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #27272a;
}

@media (max-width: 600px) {
    .legacy-speciality-grid {
        grid-template-columns: 1fr;
    }
}

.legacy-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.legacy-checkbox {
    display: none;
}

.legacy-checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #52525b;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.legacy-checkbox:checked+.legacy-checkbox-custom {
    background: #f97316;
    border-color: #f97316;
}

.legacy-checkbox:checked+.legacy-checkbox-custom::after {
    content: "\f00c";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
}

.legacy-checkbox-label {
    font-size: 0.9rem;
    color: #d4d4d8;
}

.legacy-brand-adder {
    display: flex;
    gap: 10px;
}

.legacy-btn-add {
    background: #18181b;
    border: 1px solid #27272a;
    color: #e4e4e7;
    border-radius: 8px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.legacy-btn-add:hover {
    background: #27272a;
}

.legacy-brands-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legacy-brand-item {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legacy-btn-save {
    width: 100%;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.legacy-btn-save:hover {
    background: #ea580c;
}

input[type="time"].legacy-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* --- Restored Speciality Grid (Screenshot Match) --- */
.legacy-speciality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.speciality-card {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.speciality-card input {
    display: none;
}

.spec-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #a1a1aa;
    transition: all 0.3s;
}

.spec-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #a1a1aa;
    line-height: 1.3;
}

.speciality-card:hover {
    background: #27272a;
    border-color: #3f3f46;
}

.speciality-card.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
}

.speciality-card.active .spec-icon {
    background: #f97316;
    color: white;
    transform: scale(1.1);
}

.speciality-card.active .spec-name {
    color: #f4f4f5;
    font-weight: 600;
}

/* --- New Card Layout Styles --- */
.settings-section-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 10px;
}

.settings-section-header i {
    color: #f97316;
    font-size: 1.1rem;
}

.settings-section-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e4e4e7;
    margin: 0;
}

.settings-main-header {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(24, 24, 27, 0) 100%);
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-main-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.settings-main-header-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.settings-main-header-text p {
    font-size: 0.9rem;
    color: #a1a1aa;
    margin: 0;
}